A remote X11 desktop can be painfully slow when the network is poor, but sometimes a Linux server still needs a GUI. I tried xrdp as a more responsive way to connect and recorded the setup below, along with VNC alternatives.
1. XRDP
xrdp feels much like Windows RDP to use. Although it relies on X11, I found the desktop a little more responsive.
1. Install xrdp and xfce4
1 | sudo apt install xfce4 |
That is usually enough to connect. If the connection does not work, try the following troubleshooting steps.
2. Configure key permissions
1 | sudo adduser xrdp ssl-cert |
3. Disable the GUI on the primary display
The next commands disable the graphical session on the machine’s primary display:
1 | sudo systemctl start multi-user.target |
To restore the graphical target later, run:
1 | sudo systemctl set-default graphical.target |
A reboot is required!
4. Log in as root once first (a strange issue)
If you are still unable to connect, try logging in once as root and then retry with your normal account. This was an odd workaround I encountered.
2. Switch to VNC
If xrdp connects but remains too slow, VNC may be worth trying. Remote Linux desktops can still involve plenty of frustrating problems, though; a local virtual machine or a one-click tool such as TeamViewer may be easier.
1 | gsettings set org.gnome.Vino require-encryption false |
Then open Settings → Screen Sharing and enable screen sharing to use VNC.
3. Run noVNC directly in Docker
If setting up the desktop is too frustrating, another option is to let a ready-made Docker image provide noVNC:
1 | docker run -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=mypassword fredblgr/ubuntu-novnc:22.04 |
With that, the container provides the desktop in a single command.

