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
Next, open Windows’ Remote Desktop Connection and type Ubuntu hostname or IP address.
When prompted, type your Ubuntu username and password to connect.
Enjoy!
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

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
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.
Your help is so greatly appreciated! Thank you!
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.
It is not accepting my login and password?
I can connect, but I dont see the menu. All I see is the desktop background. Also, I cant open up a terminal.
Same as above.. All I see is the background. No menu cant open terminal.
Same here … pity cause this would be awesome
got it working by selecting console …
Can you explain it sir ?
what console did you use?
i got the same problem but after i used the cammands as writer wrote down
sudo apt-get install gnome-session-fallback
echo “gnome-session –session=ubuntu-2d” > ~/.xsession
and it started working
Still doesnt work
try this
sudo apt-get install gnome-session-fallback
echo “gnome-session –session=gnome-fallback” > ~/.xsession
sudo /etc/init.d/xrdp restart
most useful linux tip i’ve ever read (and the easiest to implement)
Great! Thanks Dude
Super! Thanks Dude
Hello,
Is it for 12,04? Because i followed above all steps but no luck. Here am using 10.04.
Thanks & Regards,
Pavan
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
just tried it out today on a windows hyper-V set up worked without any issues
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.
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…?