Windows Azure Ubuntu Server RDP Guide

Someone was trying this out and could not get this to work so I mentioned I would write an article if I got it working and I did get it working so here is the article.

Let’s not have much of the usual gibberish that I write at the start of the post and get straight to the point.

What you would need:

  1. 30-Day Trial Azure Subscription [link] (If you do not have one)
  2. A little bit of knowledge of Linux shell commands
  3. PuTTY [link] on Windows | Terminal on OS X
  4. Remote Desktop Client (It’s on the Mac App Store for you OS X users. P.S. The OS X Version is also really pretty.) [link]

Create your Virtual Machine through Windows Azure and let’s make one running the latest Ubuntu which is 14.04 LTS as seen below. Give it a little bit to create, eat a cookie, drink a cuppa joe or anything that can be done in 5 minutes.

Windows Azure Virtual Machine Creation

Once that’s done, go to the Endpoints section of the Virtual Machine and click Add to add an Endpoint.

Windows Azure Virtual Machine Endpoints

Once you see this click next and select Remote Desktop as the name of the Endpoint, all the relevant details will be filled out for you (yipee) and just hit the tick at the bottom right.

Endpoints Configuration Step 1Remote Desktop Endpoint

Wait a little again and your Endpoint will be successfully added. Moving on to commandline stuff!

Fire Up PuTTY and fill in your login details as such or if you are on OS X follow the image below PuTTY one.

PuTTY Login Details

OS X Terminal OpenSSH

Now, let’s proceed onto this by just typing commands into the box above. Each line means a new command. sudo -i apt-get update && apt-get upgrade apt-get install xrdp xfce4 exit echo “xfce4-session” > ~/.xsession sudo service xrdp restart Command Line Explanations:

  1. Getting elevated administrator (root) permissions.
  2. Updating the repositories and thereafter uprgrading any packages
  3. Install Packages xrdp and xfce4
  4. Exit from elevated administrator (root) permissions.
  5. Write a file called .xsession in ~/ with the contents “xfce4-session”
  6. Restarting the xrdp service.

*Note: It is not recomended to install a desktop environment in a Server environment. Reason [link] The installation above will be done in a jiffy. By default Ubuntu Server does not come with a desktop environment and what you are essentially doing is installing one.

Once that’s done’s fire up Remote Desktop. Fill in your server details and Voilà! We have a nice Graphical User Interface through RDP.

Spiffyrocks RDP Settings Spiffyrocks Ubuntu  Server 14.04 LTS on Windows Azure