Order

Help

An XFCE desktop on an Ubuntu server over RDP

If the server needs a graphical interface, install the light XFCE desktop and the xrdp service, then connect with an ordinary remote desktop client.

What you need

A server with Ubuntu, root access and memory: from 2 GB, 4 GB is more comfortable. The root password is on the server's page in the panel, in the Password row. The eye button shows it.

Installing

Connect to the server over SSH as root and run in order:

  1. Install the desktop and xrdp: apt update && apt install -y xfce4 xfce4-goodies xrdp
  2. Say which session to start: echo xfce4-session > /root/.xsession
  3. Enable the service and start it at once: systemctl enable --now xrdp

Connecting

Open the client:

  • on Windows: Remote Desktop Connection;
  • on a Mac: the Windows App.

Enter the server's address (port 3389), the user root and the server's password from the panel.

If the password does not match, press Reset the password on the server's page and sign in with the new one.

Security

Port 3389 is probed on the internet all the time, so set a strong password. Best of all, allow the port only from your own address:

ufw allow from YOUR_ADDRESS to any port 3389

Put your own IP address in place of YOUR_ADDRESS. We never send passwords in messages and never ask customers for them.

Questions

How much memory do XFCE and xrdp need?

At least 2 GB, 4 GB is more comfortable.

Which port does the connection use?

Port 3389. It is best to allow it in the firewall only from your own address: ufw allow from YOUR_ADDRESS to any port 3389.

The root password does not match, what now?

On the server's page in the panel press Reset the password and sign in with the new one.

More in the help