Remote Desktop into Ubuntu Server with GUI on Windows Azure by Zane J Chua

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

Related Posts

7 Responses to “Remote Desktop into Ubuntu Server with GUI on Windows Azure”

  1. Avatar

    Asher Sterkin

    I reproduced this procedure step by step, but all what I got at the end was a gray screen. I also tried another method described here: http://blogs.technet.com/b/uktechnet/archive/2013/11/12/running-a-remote-desktop-on-a-windows-azure-linux-vm.aspx with the same result. There is a blog post claiming that Remote Desktop for Ubuntu does not work on Azure (http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/d7fad3f4-6bbf-40c7-9af5-ce3387f3da04/empty-grey-desktop-in-rdp-on-ubuntu?forum=WAVirtualMachinesforWindows). What could be possible wrong?

    Reply
    • Zane J Chua

      Zane J Chua

      Hey Asher,

      Initially I also did get a grey screen when trying with Unity. However when I switched over to XFCE I didn’t have a problem. It’s a little slow but usable. I have tried and tested and made sure that it works before making a post. I will try this again from scratch and I’ll see if it still works.

      Reply
  2. Avatar

    Luis Serrano

    I could connect to a RDP session as you indicated, thank you. Do you know if there is a way I can make work OpenGL using this method? I’m trying to run a Genymotion emulator on an Azure VM.

    Reply
    • Zane J Chua

      Zane J Chua

      Hey Luis,

      I’m glad to here that you could connect to the RDP session. Looks like my guide still works. I’m not too sure about OpenGL and I don’t have the time at the moment to see if I could get it to work. Sorry about that. But do report back if you manage to!

      With Warm Regards,
      Zane J.

      Reply
  3. Avatar

    David Thoma

    Is There Anyway to use the default UI on azure like gnome or unity

    Reply
  4. Avatar

    tran

    hi,
    my run is missing xrdp command. How do I get?

    Thnx

    Reply
  5. Avatar

    Jenny

    Thank u so much, is the best instructions that i found. Very Simple and understandable.

    Reply

Leave a Reply