Install a GUI on Ubuntu Server: Xfce Desktop Over RDP
Part of New VPS setup, our guide to this topic
To install a GUI on Ubuntu Server, add a light desktop with apt — Xfce is the sensible default — then reach it over RDP with xrdp, through an SSH tunnel. The honest caveat up front: most server tasks are better done over SSH or a web panel, and a desktop costs RAM, so on a VPS pick Xfce, not GNOME.
On this page
This guide has no affiliate links in the steps.
A GUI on a server is for the few jobs that actually need a screen: a graphical installer, a desktop app, or a tool that refuses to run without one. Everything else is faster from the command line and uses less of the RAM you pay for. If the box is brand new, run the new VPS setup checklist first; if you haven’t logged in yet, start with how to SSH into a VPS, and the server side of SSH is covered in the Ubuntu SSH server guide.

Which desktop should you install?
On a VPS, RAM is the constraint, so choosing a desktop is mostly a RAM decision. These are the four common options on Ubuntu 24.04 LTS. Package names and the display manager each one pulls in come from packages.ubuntu.com; the RAM figures come from each project’s own download or requirements page, all read 2026-11-21:
| Desktop | Packages (24.04 LTS) | Display manager it pulls in | RAM (their docs) |
|---|---|---|---|
| Xfce | xfce4 / xubuntu-core |
none / LightDM | 1 GB minimum, 2 GB recommended (xubuntu.org) |
| LXQt | lubuntu-desktop |
SDDM | No current figure we could check |
| MATE | ubuntu-mate-core |
Arctica Greeter (recommended) | 2 GB minimum, 4 GB recommended (ubuntu-mate.org) |
| GNOME | ubuntu-desktop-minimal / ubuntu-desktop |
GDM | 6 GB for the current LTS desktop (ubuntu.com) |
GNOME is the default Ubuntu desktop and the heaviest: Ubuntu’s download page now lists 6 GB of system memory for the desktop edition. Xfce needs 1 GB by Xubuntu’s own numbers, which is why it is the usual choice on a VPS, and MATE sits in between. LXQt is built to be light too, but Lubuntu’s site would not load for our check, so we give no number for it. The rest of this guide installs Xfce; swap in lubuntu-desktop or ubuntu-mate-core and the steps are the same.
Ubuntu now lists 6 GB of system memory for its GNOME desktop. Source: ubuntu.com/download/desktop, captured Nov 21, 2026.
Xubuntu’s minimum is 1 GB of memory; its recommended setup is 2 GB. Source: xubuntu.org/download, captured Nov 21, 2026.
Ubuntu MATE asks for 2 GB of RAM at minimum and recommends 4 GB. Source: ubuntu-mate.org/about/requirements, captured Nov 21, 2026.
Install a GUI on Ubuntu Server: 6 steps
Replace yourname and YOUR_SERVER_IP with your own values. Every command below is for Ubuntu 24.04 LTS. On 26.04 LTS the same packages exist under the same names (xrdp is version 0.10 there), but we checked the steps against 24.04.
Install Xfce without the extras
On the server:
serversudo apt update
sudo apt install xfce4 xfce4-terminal --no-install-recommends
xfce4 is the meta package for the Xfce desktop: panel, window manager, file manager, session and settings. --no-install-recommends tells apt to install only the hard dependencies. For xfce4 that skips the full xorg stack, the notification daemon and some themes; xrdp brings the X server it needs in step 2. The xfce4 package does not include a terminal app, so xfce4-terminal is added by hand.
If you’d rather have Xubuntu’s look and defaults, install xubuntu-core instead. It is a much bigger pull: it depends on xubuntu-desktop-minimal, which brings LightDM, printer drivers and the Xubuntu artwork.
If it fails: Unable to locate package xfce4. The package index is stale, or the universe repository is off. Run sudo apt update and try again; if it still fails, run sudo add-apt-repository universe first.
Install xrdp and let it read the certificate
serversudo apt install xrdp
sudo adduser xrdp ssl-cert
sudo systemctl enable --now xrdp
xrdp is an open-source RDP server: it lets a normal Remote Desktop client connect to a Linux box. Installing it with recommends pulls in xorgxrdp, the X server module it uses. On Ubuntu, xrdp’s TLS certificate is a link to the system’s “snakeoil” key in /, which only the ssl-cert group can read. The package’s install script does not add the xrdp user to that group, so the second line does it. The third line starts the service now and on every boot.
Check: systemctl status xrdp reports active (running).
Tell xrdp to start Xfce
xrdp doesn’t know which desktop you want, so set it for your user. Run this as the account you will log in with, not as root:
serverecho "startxfce4" > ~/.xsession
That writes a one-line file the RDP session reads when you log in. If you installed LXQt or MATE instead, use startlxqt or mate-session. The system-wide alternative is to edit /, but the per-user file is simpler and survives package updates.
Keep xrdp off the internet and connect through an SSH tunnel
Out of the box xrdp listens on port 3389 on every network interface — the xrdp.ini manual says a bare port number means “all interfaces”. Many VPS images have no firewall turned on, so your desktop login would face the whole internet. Bind it to the server itself instead:
serversudo sed -i 's|^port=3389|port=tcp://127.0.0.1:3389|' /etc/xrdp/xrdp.ini
sudo systemctl restart xrdp
Check: sudo ss -tlnp | grep 3389 shows 127.0.0.1:3389, not 0.0.0.0:3389 or *:3389.
A bare port number makes xrdp listen on all interfaces, which is why step 4 binds it to 127.0.0.1. Source: manpages.ubuntu.com, xrdp.ini(5) for 24.04, captured Nov 21, 2026.
Do not run sudo ufw allow 3389 either. Tunnel RDP through SSH, which is already open. On your own computer:
your computerssh -L 3390:127.0.0.1:3389 yourname@YOUR_SERVER_IP
Leave that terminal open, then point your RDP client at localhost:3390. We use 3390 on your side because 3389 may already be taken by your own computer’s Remote Desktop service. On Windows 10 and 11 the same ssh command works in PowerShell; if you haven’t set up SSH keys on Windows yet, do that first, then use Remote Desktop Connection. On Linux, Remmina works. The RDP traffic is encrypted inside your SSH connection, so nothing new is exposed. The tunnel is only as safe as your SSH, so switch to SSH key login if you still use a password.
If you do run a firewall, the full rules are in the UFW guide. For a tunnel you need no new rule at all — SSH is already allowed.
Leave the boot target alone (usually)
Ubuntu Server boots to a text console (multi-user.target). xrdp starts its own desktop session when you connect, so for RDP you can leave that default as it is.
graphical.target only matters if a display manager is installed (LightDM, GDM, SDDM). The xfce4 install from step 1 has none, and on a VPS you would only see that login screen in your provider’s web console. If you installed a full flavour and want it to boot to the login screen:
serversudo systemctl set-default graphical.target
To switch it back to headless:
serversudo systemctl set-default multi-user.target
Remove the desktop again
If the desktop wasn’t worth the RAM, undo it:
serversudo apt remove xrdp xfce4 xfce4-terminal
sudo apt autoremove
sudo systemctl set-default multi-user.target
autoremove clears the dependencies that are no longer needed. That is another reason --no-install-recommends in step 1 pays off: there’s less to clean up. Add --purge to the remove line if you also want xrdp’s config in / gone.
Key takeaways
- To install a GUI on Ubuntu Server, run
sudo apt install xfce4 xfce4-terminal --no-install-recommends— a light desktop that runs in 1 GB, where Ubuntu lists 6 GB for GNOME. - Reach it with xrdp: install it, add
xrdptossl-cert, and set~/.xsessiontostartxfce4. - xrdp listens on all interfaces by default; bind it to 127.0.0.1 and connect through an SSH tunnel instead of opening port 3389.
- The boot target only matters with a display manager; xrdp works with the default
multi-user.target. - Undo it all with
sudo apt remove xrdp xfce4 xfce4-terminalandsudo apt autoremove.
A VPS for this guide
Everything above runs on a VPS with 2 GB of RAM or more. The cheapest 2 GB+ plan at each provider whose prices we read every day, IPv4 included:
| Plan · provider | vCPU · RAM · disk | You pay | Visit |
|---|---|---|---|
1 slice InterServer · New York +2 | 1 vCPU·2 GB·40 GB | $3.00/mo | |
KVM VPS Special 2 GB RackNerd · New York +3 | 2 vCPU·2 GB·35 GB | $3.00/mo | |
VPS nano G11.5s netcup · Nuremberg | 2 vCPU·2 GB·60 GB | $3.36/mo | |
SSD VPS 2 CloudCone · USA | 4 vCPU·2 GB·60 GB | $3.83/mo | |
NVMe 2 GB HostHatch · Amsterdam +15 | 1 vCPU·2 GB·10 GB | $4.00/mo |
Prices read Dec 4, 2026. gets that provider's deals on Telegram. Compare every 2 GB plan →
What a desktop VPS costs
A desktop over RDP needs more RAM than a headless server: Xfce starts at 1 GB, MATE at 2 GB, and you want headroom for whatever you open. A browser on top of the desktop is what eats memory. These 2 GB plans come from our own daily price reads, with the billing term spelled out:
- InterServer 1 slice — 1 vCPU / 2 GB RAM / 40 GB at $3.00/month, billed monthly with no term, so you can leave whenever you like. Catch: no refunds by default.
- netcup VPS nano — 2 vCPU / 2 GB RAM / 60 GB at $3.36/month before VAT, on a 6-month minimum term. Catch: netcup asks for ID verification or a prepayment after your first order.
- HostHatch NVMe 2 GB — 1 vCPU / 2 GB RAM / 10 GB at $4.00/month, billed monthly. Catch: its refund policy only pays out for HostHatch’s own fault, with evidence.
For MATE at its recommended 4 GB, or Xfce with a browser open all day, step up to 4 GB:
- RackNerd KVM VPS Special 4 GB — 4 vCPU / 4 GB RAM / 60 GB at $4.00/month, billed yearly. Catch: you pay 12 months up front, and there are no refunds by default.
- OVHcloud VPS-1 — 2 vCPU / 4 GB RAM / 40 GB at $5.35/month, billed monthly. Catch: no refunds.
- InterServer 2 slices — 1 vCPU / 4 GB RAM / 80 GB at $6.00/month, billed monthly, same terms as the 1 slice.
GNOME at Ubuntu’s 6 GB is past what these cheap plans offer; on a VPS, Xfce is the better trade. The “A VPS for this guide” table at the end lists the cheapest 2 GB plan at each provider whose prices we read ourselves. To see everything at once, compare every plan by real monthly cost.
Common Ubuntu Server GUI problems
The RDP client connects, then shows a black screen.Usually a session or certificate issue: check that ~/.xsession contains startxfce4 for the user you log in as, and that xrdp is in the ssl-cert group (groups xrdp). A GNOME session over xrdp is also a common cause — Xfce is the reliable choice.
Unable to locate package xfce4.The package index is stale or universe is off. Run sudo apt update, then install again.
The desktop feels slow over RDP.Check memory first with free -h. If little is left, close what you opened or move up a plan — a 1 GB box running Xfce has little room for a browser.
The RDP client can’t connect to the server’s IP.That’s by design after step 4: xrdp only listens on 127.0.0.1. Start the SSH tunnel and point the client at localhost:3390, not the server’s IP.
xrdp won’t start after the edit in step 4.Run sudo grep ^port= /etc/xrdp/xrdp.ini: there should be exactly one line, port=tcp://127.0.0.1:3389. Then check journalctl -u xrdp for the error.
Questions
What is the best GUI for Ubuntu Server?
It depends on how much RAM you have. Xfce runs in 1 GB, MATE wants 2 GB, and Ubuntu lists 6 GB for its GNOME desktop — see the table above. On a VPS, Xfce is the safe default.
Does Ubuntu have a minimal install?
Yes. ubuntu-desktop-minimal is the stripped-down GNOME desktop, and the Server installer offers a minimized option with fewer packages. On a VPS the lighter route is a different desktop entirely: xfce4 with --no-install-recommends.
Should I install a GUI on a VPS?
Only if a specific task needs one. Most server work is faster over SSH or a web panel, and a desktop costs RAM you could give to your apps. Install it when you need it, remove it when you don’t.
Can I reach the desktop without opening port 3389?
Yes, and you should. Bind xrdp to 127.0.0.1, tunnel RDP through SSH with ssh -L 3390:127.0.0.1:3389 yourname@YOUR_SERVER_IP, then connect your RDP client to localhost:3390.
How much RAM does a GUI need on Ubuntu Server?
Xfce needs 1 GB (2 GB recommended), MATE 2 GB (4 GB recommended), and the current Ubuntu GNOME desktop 6 GB. Those are each project’s published figures, read 2026-11-21. Add headroom for whatever you open on top.
How we checked: Package names, dependencies and recommends were read on packages.ubuntu.com for Ubuntu 24.04 (noble). The certificate step follows Ubuntu’s own xrdp package scripts, which link the snakeoil key and do not add xrdp to ssl-cert. The listen-address step follows the xrdp.ini manual. RAM figures come from ubuntu.com (GNOME), xubuntu.org (Xfce) and ubuntu-mate.org (MATE), all read on 2026-11-21; Lubuntu’s site blocked our check, so LXQt has no number. We did not run the install on every provider’s image, so a provider with a custom image may differ slightly. Plan prices and billing terms come from our daily reads. How we check.