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:
- Install the desktop and xrdp:
apt update && apt install -y xfce4 xfce4-goodies xrdp - Say which session to start:
echo xfce4-session > /root/.xsession - 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
- How to connect to a server over SSH, step by step
- How to reinstall the system on a server
- UFW blocked SSH: how to get back into the server
- How to add an extra IP address to a server
- Signing in and protecting your account: e-mail, Google, Telegram, a code
- One-click apps: how to install one on a server
- Traffic and speed: what a plan includes
- Payment, renewal and auto-renewal of a server
- Which server to choose for your task
- Why a service shows another country for the server
- How to move to a higher plan and carry your data over
- Windows Server 2022 on a server: plans and connecting
- How to make a Minecraft server to play with friends
- How to put mods on a Minecraft server: Forge and Fabric
- How to make your own CS2 server to play with friends
- How to run a Telegram bot on a server so that it works 24/7
- How to put n8n on your own server: no limits on runs
- PIRS partner programme: 20 % of payments, with no end date