{"id":8442,"date":"2026-11-26T19:55:41","date_gmt":"2026-11-26T19:55:41","guid":{"rendered":"https:\/\/cloudvpshosts.com\/kb\/?p=8442"},"modified":"2026-11-26T19:56:44","modified_gmt":"2026-11-26T19:56:44","slug":"ubuntu-vps-with-gui-xfce-xrdp","status":"publish","type":"post","link":"https:\/\/cloudvpshosts.com\/kb\/ubuntu-vps-with-gui-xfce-xrdp\/","title":{"rendered":"Ubuntu VPS with a GUI: XFCE + xRDP Setup"},"content":{"rendered":"<p>The easiest way to get an Ubuntu VPS with a GUI is to install the XFCE desktop and the xRDP server, then connect with the Remote Desktop app you already have on Windows or macOS. XFCE is light enough for a small server, and xRDP speaks the same RDP protocol as Windows, so there is no extra client to learn. Setup takes about 15 minutes.<\/p>\n<p>This guide is for people who need a browser, a file manager or a graphical tool on a remote Linux server: running a trading or monitoring app, testing a website from another country, or managing a server without living in the terminal. It works on Ubuntu 22.04, 24.04 and 26.04 LTS.<\/p>\n<h2>Why XFCE and xRDP instead of GNOME?<\/h2>\n<p>XFCE uses far less memory and CPU than Ubuntu&#8217;s default GNOME desktop, which matters on a server without a graphics card. Recent GNOME releases also lean heavily on Wayland, which does not work well with remote desktop on a headless VPS. XFCE runs on X11, which xRDP supports well.<\/p>\n<table>\n<thead>\n<tr>\n<th>Option<\/th>\n<th>Resource use<\/th>\n<th>Client you need<\/th>\n<th>Best for<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>XFCE + xRDP<\/td>\n<td>Low<\/td>\n<td>Built-in Remote Desktop app<\/td>\n<td>Most VPS desktops<\/td>\n<\/tr>\n<tr>\n<td>XFCE + VNC<\/td>\n<td>Low<\/td>\n<td>A VNC viewer<\/td>\n<td>People already using VNC<\/td>\n<\/tr>\n<tr>\n<td>GNOME (ubuntu-desktop)<\/td>\n<td>High<\/td>\n<td>Varies<\/td>\n<td>Not recommended on a VPS<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>What do you need first?<\/h2>\n<ul>\n<li>An <a href=\"https:\/\/cloudvpshosts.com\/linux-vps.php\">Ubuntu VPS<\/a> with root SSH access. See how to connect to a Linux VPS with SSH if you have not logged in yet.<\/li>\n<li>At least 4 GB of RAM. A desktop with a web browser open uses most of that, so 8 GB feels noticeably smoother.<\/li>\n<li>Remote Desktop Connection on Windows, or Microsoft&#8217;s Windows App on macOS, iOS or Android.<\/li>\n<\/ul>\n<h2>Step 1: Create a normal user for the desktop<\/h2>\n<p>Do not log in to the desktop as root. Create a regular user and give it sudo rights:<\/p>\n<pre><code>adduser deskuser\nusermod -aG sudo deskuser<\/code><\/pre>\n<p>Replace <code>deskuser<\/code> with the name you want.<\/p>\n<h2>Step 2: Install XFCE and xRDP<\/h2>\n<pre><code>apt update\napt install -y xfce4 xfce4-goodies xrdp<\/code><\/pre>\n<p>If a screen asks which display manager to use, pick <strong>lightdm<\/strong>. The install pulls in a few hundred packages and takes several minutes.<\/p>\n<h2>Step 3: Tell xRDP to start XFCE<\/h2>\n<p>Allow xRDP to read its TLS certificate, then set XFCE as the session for your desktop user:<\/p>\n<pre><code>adduser xrdp ssl-cert\nsu - deskuser -c 'echo \"xfce4-session\" &gt; ~\/.xsession'\nsystemctl enable --now xrdp\nsystemctl restart xrdp<\/code><\/pre>\n<p>Check that it is listening on port 3389:<\/p>\n<pre><code>ss -tlnp | grep 3389<\/code><\/pre>\n<h2>Step 4: Keep port 3389 away from the internet<\/h2>\n<p>Bots scan the whole internet for open RDP ports, so do not leave 3389 open to everyone. Use one of these two approaches.<\/p>\n<h3>Option A: connect through an SSH tunnel (safest)<\/h3>\n<p>Leave 3389 closed in the firewall and forward it over SSH from your own computer:<\/p>\n<pre><code>ssh -L 3389:localhost:3389 deskuser@YOUR_SERVER_IP<\/code><\/pre>\n<p>Keep that window open, then point your Remote Desktop app at <code>localhost<\/code>.<\/p>\n<h3>Option B: allow only your own IP<\/h3>\n<p>If you connect from a fixed address, open the port for that address alone with UFW:<\/p>\n<pre><code>ufw allow OpenSSH\nufw allow from YOUR_HOME_IP to any port 3389 proto tcp\nufw enable<\/code><\/pre>\n<p>Our UFW firewall guide explains these rules in more detail. If your home IP changes often, use the SSH tunnel or connect through a VPN instead. Our <a href=\"https:\/\/cloudvpshosts.com\/ClientArea\/store\/nordvpn\">NordVPN plans<\/a> are one way to do that from public Wi-Fi.<\/p>\n<h2>Step 5: Connect from your computer<\/h2>\n<ol>\n<li>Open Remote Desktop Connection (Windows) or Windows App (macOS).<\/li>\n<li>Enter <code>localhost<\/code> if you used the tunnel, or the server&#8217;s IP if you allowed your address.<\/li>\n<li>Accept the certificate warning the first time; xRDP uses a self-signed certificate.<\/li>\n<li>Log in with the desktop user you created, not root.<\/li>\n<\/ol>\n<p>You should see the XFCE desktop within a few seconds. If you also use Windows servers, the steps are the same as in our guide to connecting to a Windows VPS with Remote Desktop.<\/p>\n<h2>Why do I get a black or blank screen?<\/h2>\n<p>A black screen almost always means the session did not start. Check these in order:<\/p>\n<ul>\n<li>The <code>~\/.xsession<\/code> file exists in the desktop user&#8217;s home folder and contains <code>xfce4-session<\/code>.<\/li>\n<li>The same user is not also logged in to a local graphical session on the server.<\/li>\n<li>The xRDP logs: <code>journalctl -u xrdp -u xrdp-sesman --since \"10 min ago\"<\/code>.<\/li>\n<\/ul>\n<p>Restart xRDP after any change with <code>systemctl restart xrdp<\/code>.<\/p>\n<h2>Which plan works for a Linux desktop?<\/h2>\n<p>For one person using a browser and a few apps, Cloud Turbo (6 vCores, 8 GB DDR4 RAM, \u20ac39 a month) gives a smooth session. Cloud Core (2 vCores, 4 GB RAM, \u20ac25 a month) handles a light desktop with a terminal and file manager, but slows down with several browser tabs open. If what you really want is Windows software rather than Linux, a Windows VPS with RDP built in is simpler than running a Linux desktop.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>Does this work on Ubuntu 24.04 and 26.04?<\/h3>\n<p>Yes. XFCE and xRDP are in the standard Ubuntu repositories for 22.04, 24.04 and 26.04 LTS, and the steps are the same on each.<\/p>\n<h3>Can several people use the desktop at once?<\/h3>\n<p>Yes. Each user gets a separate session. Create one Linux user per person and size the server for the combined memory use.<\/p>\n<h3>Is the connection encrypted?<\/h3>\n<p>xRDP encrypts the session with TLS. Its default certificate is self-signed, which is why your client shows a warning. The SSH tunnel adds a second layer of encryption.<\/p>\n<h3>How do I remove the desktop later?<\/h3>\n<p>Run <code>apt purge xrdp xfce4 xfce4-goodies<\/code> followed by <code>apt autoremove<\/code>. Your files in the user&#8217;s home folder stay in place.<\/p>\n<h2>Next step: set up the desktop on a server with room to breathe<\/h2>\n<p>A GUI is only as smooth as the RAM behind it. Start with 8 GB if you will run a browser, keep port 3389 behind a tunnel or firewall rule, and you will have a remote Linux desktop you can reach from anywhere.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install the lightweight XFCE desktop and xRDP on an Ubuntu VPS, connect with Remote Desktop, and secure it with an SSH tunnel or firewall rule.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_focuskw":"","rank_math_title":"Ubuntu VPS with GUI: XFCE and xRDP Setup Guide","rank_math_description":"Add a desktop to an Ubuntu VPS with XFCE and xRDP, connect from Windows or macOS with Remote Desktop, and keep port 3389 closed to the internet.","rank_math_focus_keyword":"ubuntu vps with gui"},"categories":[69],"tags":[],"class_list":["post-8442","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/comments?post=8442"}],"version-history":[{"count":2,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8442\/revisions"}],"predecessor-version":[{"id":8454,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8442\/revisions\/8454"}],"wp:attachment":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/media?parent=8442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/categories?post=8442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/tags?post=8442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}