How to install xrdp in ubuntu
xrdp is an open source remote desktop protocol(rdp) server, so it’s able to serve a desktop to any Microsoft terminal server client. (that includes any recent Windows, Linux via rdesktop, or many portable devices with RDP clients.
But, the default installation of xrdp in ubuntu has some glitches that need to be solved. So this is what’s needed:
I’ll be using ubuntu 9.04 (jaunty jackalpe)
1-Since xrdp requires a vnc server, one is automatically installed with xrdp, BUT the only working one is tightvnc (if you have already installed vnc4server, remove it) so you MUST install tightvnc first, either using synaptic or the following command:
sudo apt-get install tightvncserver
2-Now Install the xrdp server via synaptic or with
sudo apt-get install xrdp
Now in order to get the proper keyboard map and theme in GNOME, you need to make a modification:
3-Open gconf-editor either by typing that in a console, or in the Alt+F2 window.
4-Inside gconf-editor, navigate to /apps/gnome_settings_daemon/plugins/keyboard and set “active” to false.
That’s it. your Remote Desktop sever should be up and running.

When i restart the system, the connection doesn’t work. Do you know why?
What error message do you get if you restart the service it from console?
Use the following command to do it:
sudo /etc/init.d/xrdp restart@mexlinux
Stopping xrdp: sesman xrdp.
Starting xrdp: It looks like xrdp is allready running,
if not delete the xrdp.pid file and try again
xrdp sesman.
i deleted the .pid and it worked but when the system shuts down the same happens again.
@Johansen
That’s a known bug, you can track it here:
https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/339032
its gconf-editor, not gconf_editor.
seems like a small typo, but it can cause a major headache if you don’t know what youre doing
Thanks, just corrected.
Windows CE 5.0 can connect XRDP?
Fully documented xrdp setup here: http://ubuntuwiki.net/index.php/Xrdp,_installing
Leaves you with the ability to choose connection to the active locally logged in user’s session OR an arbitrary TightVNC session at the time of RDP connection. Documents working around the keyboard mapping bug, setting up xrdp, Vino, and tightvnc, and how to autostart tightvnc sessions at boot time.
Thank you for the article here, it was one of many I went through tonight getting this all set up properly!