From ArchWiki
Revision as of 04:29, 16 January 2013 by Bluerider (talk | contribs) (Installation)
Jump to: navigation, search

xrdp is a daemon that supports Microsoft's Remote Desktop Protocol (RDP). It uses Xvnc or X11rdp as a backend.


There is xrdpAUR in the AUR. However, this doesn't work without further changes and it depends on tightvnc, which has severe problems giving the correct colors.

With xrdp-gitAUR there is currently a better alternative. It depends on tigervncAUR, which is a successor of tightvnc that doesn't have the mentioned problems.

Users can find install xrdp from the AUR : xrdpAUR. Note, as of 1/15/2013; the user must download a modified package build from


In addition, the user must download a patch at :


Fixing Problems in xrdpAUR

You won't have these problems when you use xrdp-gitAUR so you can skip this section when you chose the git version.

If Xvnc (tightvnc) fails with

Fatal server error:
could not open default font 'fixed'

you must create a symlink at /usr/X11R6/lib/X11/fonts pointing to /usr/share/fonts.

xrdp will just fail without giving you that error. You can only see the error message when you try to start Xvnc manually for a test.

To fix the message Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb' copy /usr/share/X11/rgb.txt to /usr/X11R6/lib/X11/rgb.txt or create a symlink. If this file is missing, standard X11 colors are wrong (pink or blue instead of black) and Xterm is broken.

Autoboot at Startup

When you installed xrdp-gitAUR you can just add rdpd to the DAEMONS section of /etc/rc.conf file.

Otherwise you have to copy /etc/xrdp/xrdp.sh to /etc/rc.d and use that.

Autoboot at Startup with Systemd

The aur xrdp package contains service files for systemd. Enable xrdp.service :

# systemctl enable xrdp.service

Enable xrdp-sesman.service :

# systemctl enable xrdp-sesman.service


After starting xrdp you can point any RDP client to localhost (on standard RDP port 3389) xrdp will give a small message window.

When you choose sessman-Xvnc you can give a username and password for any account on your host and xrdp will start another Xvnc instance for you. Opening a window manager out of a SESSION list provided in /etc/xrdp/startwm.sh.

When you just close the session window and RDP connection, you can access the same session again next time you connect with RDP. When you exit the window manager or desktop environment from the session window, the session will close and a new session will be opened the next time.

xrdp checks only if a session with the same geometry is already opened. It will start a new session if the geometry/resolution doesn't match.

See also

  • Vncserver - VNC, an alternative to RDP, also used as backend here