Linux VPS7 min read•Last updated: •By SkyRain Cloud Team

Linux VPS with GUI: Install a Desktop and Connect with Remote Desktop

Most Linux servers are managed from a terminal, but sometimes you want windows and a mouse: a browser that runs from a server's IP address, a graphical tool, a testing environment, or simply a familiar desktop while you learn. A Linux VPS with GUI access gives you exactly that, and it takes only a few commands to set up.

This guide installs a lightweight desktop (XFCE) and the xrdp server on Ubuntu, connects to it with the Remote Desktop app already on Windows, secures access properly, and explains the alternatives and the resources you will need.

Quick answer

To get a GUI on a Linux VPS, install a lightweight desktop and a remote-desktop server: on Ubuntu run sudo apt install xfce4 xfce4-goodies xrdp, tell xrdp to start XFCE with echo xfce4-session > ~/.xsession, and enable the service with sudo systemctl enable --now xrdp. Connect with Windows Remote Desktop (mstsc), ideally through an SSH tunnel rather than exposing port 3389. Plan for at least 4 GB of RAM, or 8 GB if you will run a web browser.

Choose a desktop and a remote protocol

DesktopMemory useNotes
XFCELowLight, stable and works well over xrdp; the usual choice for servers
LXQtVery lowEven lighter; fewer features
MATELow to mediumTraditional layout, also works well remotely
GNOMEHighUbuntu's default desktop; heavier and less suited to remote sessions on a VPS
ProtocolClientBest for
RDP (xrdp)Built into Windows; Microsoft apps for macOS, iOS and AndroidMost users; familiar and efficient
VNC (TigerVNC)Any VNC viewerSimple setups; always tunnel it, as VNC encryption is weak or absent
X2Go or NoMachineTheir own clientsGood performance on slow links
Linux VPS with GUI – SkyRain Cloud servers in India

Set up a Linux VPS with GUI: install XFCE and xrdp on Ubuntu

Log in over SSH as a user with sudo rights, then:

sudo apt update
sudo apt install -y xfce4 xfce4-goodies xrdp
echo xfce4-session > ~/.xsession
sudo adduser xrdp ssl-cert
sudo systemctl enable --now xrdp
sudo systemctl status xrdp

The ~/.xsession line tells xrdp to start XFCE for your user; repeat it for every user who will log in graphically. Adding xrdp to the ssl-cert group lets it read the certificate used to encrypt connections. If the installer asks which display manager to use, either choice works for xrdp.

Each user needs a password for the graphical login, even if SSH uses keys only. Set one with sudo passwd username.

A few useful additions once the desktop works:

  • A browser: sudo apt install -y firefox (on recent Ubuntu releases this installs the snap package).
  • Clipboard and drive sharing: xrdp supports copy and paste with your local machine out of the box; drive redirection can be enabled in your RDP client.
  • Keyboard layout: if keys are wrong, set the layout in XFCE's keyboard settings.

The xrdp project documentation covers advanced options such as session reconnection and certificate configuration.

Connect securely: use an SSH tunnel

Port 3389 open to the internet attracts constant password-guessing. The safest approach is to keep it closed and reach it through SSH, which is already secured with your keys:

# On your own computer
ssh -L 3390:localhost:3389 user@203.0.113.25

Leave that window open, then connect Remote Desktop to localhost:3390. The session travels inside the encrypted SSH connection, and the VPS firewall only needs port 22 open. If you prefer to allow RDP directly, restrict it to your own IP address:

sudo ufw allow from 198.51.100.7 to any port 3389 proto tcp

Our RDP security guide explains why open RDP is risky, and two-factor authentication for SSH protects the tunnel itself.

How much RAM and CPU a GUI needs

UseSuggested RAMSuggested vCores
Light desktop, terminal and file manager4 GB2
Desktop plus a web browser with a few tabs8 GB2–4
Several users, or browser automation and IDEs16 GB or more4 or more

A VPS has no graphics card, so the desktop is drawn in software. Office work, browsers and admin tools run well; video playback and 3D applications do not.

Common problems and fixes

ProblemLikely cause and fix
Black screen after loginThe user is also logged in to a local desktop session, or ~/.xsession is missing. Log out other sessions and recreate the file.
Connection refusedxrdp not running (systemctl status xrdp) or the firewall blocks the port. With a tunnel, check the SSH window is still open.
Login screen appears then closesCheck /var/log/xrdp-sesman.log; often a desktop not installed for that user.
Very slow sessionToo little RAM or a heavy desktop; switch to XFCE, lower colour depth in the RDP client, and check memory with free -h.
"Authentication required" pop-upsBackground services asking for permissions; usually harmless. Dismiss them or configure the specific service.

For general server issues, our VPS troubleshooting guide covers memory, disk and service problems, and optimising an Ubuntu VPS helps keep the desktop responsive.

When a GUI is the wrong tool

A desktop adds packages to update and memory to pay for. For running websites, databases or bots, the terminal plus a web-based panel is leaner and safer. If what you really need is a Windows desktop for Windows-only software, a Windows RDP server is simpler; and for security research with Kali Linux, see our guide to Kali Linux RDP hosting.

Why developers choose SkyRain Cloud VPS

A desktop on a VPS needs memory and a fast disk. SkyRain Cloud Intel VPS plans include:

  • KVM virtualization. Your own kernel and allocated vCores, so you can tune the system the way this guide describes.
  • Intel Xeon Platinum 8269CY hosts. Server-class Cascade Lake CPUs with DDR4 ECC memory.
  • NVMe SSD storage on every plan, which keeps I/O wait low for databases and builds.
  • Full root access to install and configure whatever your stack needs.
  • Unmetered 1 Gbps port in India, close to your users.
  • Simple billing and real support. Monthly billing in rupees with UPI, plus 24/7 tickets, WhatsApp and Discord.

Frequently Asked Questions

Can I use a GUI on a Linux VPS?
Yes. Install a desktop environment such as XFCE and a remote-desktop server such as xrdp, then connect with an RDP client.
Which desktop is best for a Linux VPS?
XFCE is the usual choice: light on memory and reliable over xrdp. LXQt is lighter still; GNOME is heavier.
How do I connect to a Linux VPS desktop from Windows?
Use the built-in Remote Desktop Connection (mstsc). Connect to the VPS through an SSH tunnel such as ssh -L 3390:localhost:3389, then open localhost:3390.
How much RAM does a Linux VPS with GUI need?
At least 4 GB for a light desktop, and 8 GB or more if you will use a web browser regularly.
Is xrdp secure?
xrdp encrypts connections, but exposing port 3389 invites password-guessing attacks. Use an SSH tunnel or restrict the port to your own IP address.
Why do I get a black screen with xrdp?
Usually because the same user is logged in to another desktop session, or the ~/.xsession file is missing. Log out other sessions and create the file again.

Conclusion

Setting up a Linux VPS with GUI access takes a few minutes: install XFCE and xrdp, point xrdp at the XFCE session, and connect with the Remote Desktop app you already have. Keep port 3389 closed and use an SSH tunnel or an IP restriction, give the server enough memory for the desktop and browser, and you have a responsive remote Linux desktop that is available from anywhere.

For a VPS in India with room for a desktop, see our Intel VPS plans.

SkyRain Cloud Intel Xeon VPS Plans

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.

Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning