Azure: RDP to Ubuntu in azure cloud

Had problems to connect to my Ubuntu server in Azure. These posts helped me:

  1. http://blogs.msdn.com/b/jimblizzard/archive/2015/02/25/rdp-to-ubuntu-linux-vm-in-azure.aspx
  2. (http://blogs.msdn.com/b/plankytronixx/archive/2013/11/12/running-a-remote-desktop-on-a-windows-azure-linux-vm.aspx)
  3. http://c-nergy.be/blog/?p=5305 –> this might be the one to solely use.

This part was the solution, I think (source):

Install XRDP Package from Ubuntu Repository

In this post, we will be installing the standard xrdp package from the Ubuntu Repository. In order to perform the installation of the xrdp package, you will login into your ubuntu 14.04 machine.

Using the Dash button, in the search box, type Terminal

xrdp14.04_1

Click on Picture for Better Resolution

Click on the terminal icon and the Terminal console will open

In the Terminal, type the following command

sudo apt-get install xrdp

You will be prompted for your password

xrdp14.04_2

Click on Picture for Better Resolution

You will be then informed about the package size. To proceed with the installation, press Y

xrdp14.04_3

Click on Picture for Better Resolution

Wait for the completion

When done, you need to install an alternate desktop environment. In our scenario, we are using xfce4

Installing the xfce4 Desktop environment

In the Terminal console; type the following command

sudo apt-get update

sudo apt-get install xfce4

xrdp14.04_4

Click on Picture for Better Resolution

You might be prompted for a password.Enter the password and press enter

You will be then informed about the package size. To proceed with the installation, press Y

Wait for the completion

Configure xrdp to use xfce desktop environment

At this stage, you have to configure your Ubuntu machine in order for xrdp to knowthat the xfce desktop will be used instead of the Unity or Gnome (which are not working anymore in Ubuntu). To configure this, from the terminal console, you will issue the following command

echo xfce4-session >~/.xsession

xrdp14.04_5

Click on Picture for Better Resolution

Restart the xrdp service by issuing the following command

sudo service xrdp restart

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s