Connect to Ubuntu 12.04 (Precise Pangolin) via Windows Remote Desktop

Want to connect to Ubuntu 12.04 from Windows 7 via Remote Desktop Connection? Well, it’s now easy to do it with xRDP server. In the past, it was almost impossible to do but thanks to xRDP, you can easily use Microsoft RDP to connect to Ubuntu without any configuration.

All you need to do is install the xrdp package, then open Remote Desktop Connection from Windows and connect. That’s it, nothing to configure.

Without wasting anymore of your time, let’s get going.

Objectives:

  • Connect to Ubuntu from Windows via RDP Protocol
  • Enjoy!

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to install xRDP package.

sudo apt-get install xrdp

 

xrdp_precise

 

Next, open Windows’ Remote Desktop Connection and type Ubuntu hostname or IP address.

 

xrdp_precise_1

 

When prompted, type your Ubuntu username and password to connect.

 

xrdp_precise_2

 

Enjoy!

 

xrdp_precise_3

 

If you have a problem connecting, run the commands below and restart Ubuntu, then try again.

echo "gnome-session --session=ubuntu-2d" > ~/.xsession

 

Or install gnome session fallback.

sudo apt-get install gnome-session-fallback
22 comments on “Connect to Ubuntu 12.04 (Precise Pangolin) via Windows Remote Desktop
  1. Dihego says:

    Hey–

    I have installed this nice software im encoutering a problem where it asks me for the Login Keyrin password. How do I obtain that? im able to manage all folders but it keeps on poping up

    • Sean Brisbane says:

      Dear Dihego,

      Your login keyring is something that you can safely ignore, but you must have set up a keyring and password at some time in the past. Things like Ubuntu one will try to use the login keyring to get a password to connect to the cloud storage service etc.

      If you want to get rid of the keyring:
      rm /home/{user}/.gnome2/keyrings/*

      Next time you will probably be asked to set a new password.

  2. Shawn F says:

    Your help is so greatly appreciated! Thank you!

  3. Sean Brisbane says:

    This is incredible. Now that this works well it makes using Ubuntu in an Entrprise cloud environment that much more attractive.

    I am quite frankly amazed at how well this worked straight away.

  4. flakdroid says:

    It is not accepting my login and password?

  5. natty_nik says:

    I can connect, but I dont see the menu. All I see is the desktop background. Also, I cant open up a terminal.

  6. BKJ says:

    Same as above.. All I see is the background. No menu cant open terminal.

  7. David says:

    most useful linux tip i’ve ever read (and the easiest to implement)

  8. Muhammad Sholihin says:

    Great! Thanks Dude

  9. Riccardo says:

    Super! Thanks Dude

  10. Pavan says:

    Hello,

    Is it for 12,04? Because i followed above all steps but no luck. Here am using 10.04.

    Thanks & Regards,
    Pavan

  11. Jordan says:

    Thanks for the post!

    I was able to RDP in but had a number of permission issues.

    ex: USB drive would not mount when in an RDP session.

    I found a fix here:
    http://ubuntuforums.org/showthread.php?t=1138337

    The recommended steps are:
    Create a blank .Xauthority file in the home directory of the user you are connecting with (not necessary if file already exists). Be sure to log in as that user (either graphically, or via the terminal), then run:

    touch ~/.Xauthority
    chmod 600 ~/.Xauthority

  12. mustapha says:

    just tried it out today on a windows hyper-V set up worked without any issues

  13. Marcelo Caldas says:

    Hi all,
    I’m trying this from a Win2008 r2, but I’m getting an error saying:
    “Because of a security error, the client could not connect to the remote computer. Verify that you are logged on to the network, and then try connecting again.”

    does anyone successfully made this work on win2008 r2? or seeing this error and fixed it somehow?

    thanks,
    Marcelo Caldas.

  14. Nostromo says:

    Guys, if you are using ufw then you need to allow incoming port 3389 (GRE) from whatever IPs (or local subnet e.g. 192.168.1.0/24) you want to access.

    My slightly different prob is that if I RDP from more than 1 PC, it creates a 2nd/3rd session/shell which doesn’t see the GUI instances of various running programs. This is, obviously, a bit annoying, as I can see those progs in the process list clearly. Any suggestions on how to re-attach to a previous RDP session…?

1 Pings/Trackbacks for "Connect to Ubuntu 12.04 (Precise Pangolin) via Windows Remote Desktop"
  1. [...] xRDP:  xRDP allowed me to remotely access the server from a Windows computer.  This was important so that I didn’t have to constantly sit at the server box when updating the server system.  There is a little bit of lag for screen refresh, but the interface works well overall and I am able to control the computer remotely.  The only major hurdle that I’ve found: login sessions appear to be independent of one another, even when using the same login account… this means that if I start playing music while physically sitting at the server, and then log in remotely to play music, I end up with two overlapping audio streams instead of being able to skip songs or otherwise interact with the session in progress.  More on that in a future post… [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>