Remote desktop in Ubuntu Linux


The goal is to connect from Windows / Linux to a remote desktop in Ubuntu Linux.

Honestly, I tried a lot of options, and this is what I finally came to. Here everything is described quite well in steps (in English).

Almost everything worked, but I had two problems:

  1. The Russian keyboard does not work (people somehow cope with this problem).
  2. The VNC session starts when the server boots and hangs there. Not good…

Now the option that I liked the most.

First, install xrdp, it is in the repositories. Then you need to install the latest version of x11rdp – this is a normal RDP server for Linux. The whole problem for me personally was finding its source code. 🙂

Compile x11rdp:

# apt-get install subversion gcc libice-dev pkg-config zlib1g-dev cvs autoconf libtool libssl-dev libpam0g-dev libx11-dev libxfixes-dev xfonts-base   
$ svn co svn://
$ mkdir /usr/local/X11rdp
$ cd x11rdp_xorg71
# sh /usr/local/X11rdp

It will take some time. After successful compilation, it is worth making links to the xserver for xrdp:

# ln -s /usr/local/X11rdp/bin/X11rdp /usr/local/bin
# ln -s /usr/share/fonts/X11 /usr/local/X11rdp/lib/X11/fonts

Finally, we configure the xrdp to use the x11rd. Edit /etc/xrdp/xrdp.ini:



That's all 🙂 In fact, everything is very simple! This allows you to establish several connections at the same time, with a normal rdp client, all keyboard shortcuts work and layouts change without problems. If there are no active clients, only one process is running – xrdp. I am now sitting at work via a remote desktop;)


VNC is certainly cool, but you can try to install teamviewer. It's kind of free. No hemorrhage. If there is no allergy to wine, then it is probably the best choice.

Scroll to Top