Home > linux > How to install xrdp in ubuntu

How to install xrdp in ubuntu

September 2nd, 2009 Leave a comment Go to comments

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.

SocialTwist Tell-a-Friend
Categories: linux Tags: , ,
  1. Johansen
    September 29th, 2009 at 16:59 | #1

    When i restart the system, the connection doesn’t work. Do you know why?

  2. September 29th, 2009 at 17:16 | #2

    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

  3. Johansen
    September 29th, 2009 at 23:27 | #3

    @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.

  4. September 30th, 2009 at 00:00 | #4

    @Johansen
    That’s a known bug, you can track it here:
    https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/339032

  5. Billy
    December 5th, 2009 at 03:23 | #5

    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

  6. December 5th, 2009 at 14:04 | #6

    Thanks, just corrected.

  7. teang
    January 14th, 2010 at 11:36 | #7

    Windows CE 5.0 can connect XRDP?

  8. February 10th, 2010 at 01:21 | #8

    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!

  1. September 2nd, 2009 at 12:43 | #1