How to Set Up Ubuntu RDP on a VPS (Remote Desktop Access Guide)

So, you’re looking to access your Ubuntu VPS remotely using a graphical interface — just like a desktop? You’re in the right place.
In this guide, I’ll walk you through how to set up RDP (Remote Desktop Protocol) on Ubuntu hosted on a VPS, step by step — even if you’re not a Linux pro. Let’s make remote access simple and seamless!
Why Use RDP on Ubuntu VPS?
Using RDP allows you to control your Ubuntu VPS with a full desktop interface — just like using your local computer. This is especially useful if you:
- Prefer GUI over terminal
- Manage files, web apps, or development environments
- Want a Windows-like remote experience on Linux
What You Need Before Getting Started
1. A VPS with Ubuntu Installed
Make sure your VPS is running Ubuntu 20.04 or later. You can choose any reliable hosting provider.
2. Root or Sudo Access
You’ll need root or sudo privileges to install and configure software.
3. Stable Internet Connection
For smooth remote performance, ensure your network is stable.
Step-by-Step Guide to Install RDP on Ubuntu VPS
Step 1: Update Your Ubuntu Packages
Before installing anything, update your server:
sudo apt update && sudo apt upgrade -y
Step 2: Install a Desktop Environment
Ubuntu servers don’t come with a graphical interface by default. Let’s install one:
sudo apt install ubuntu-desktop -y
This might take a while depending on your VPS specs.
Step 3: Install XRDP (The RDP Protocol)
Now install the XRDP server, which allows Windows or RDP clients to connect to your Ubuntu VPS:
sudo apt install xrdp -y
Start and enable the XRDP service:
sudo systemctl enable xrdp
sudo systemctl start xrdp
Step 4: Allow RDP Port (3389) Through Firewall
If your firewall is active, open the RDP port:
sudo ufw allow 3389
Step 5: Connect from Your Local Machine
Now that your VPS is ready, it’s time to connect.
- From Windows: Use the built-in “Remote Desktop Connection” tool.
- From Linux or macOS: Use clients like Remmina or rdesktop.
Simply enter your VPS IP and login credentials.
Common Issues and Fixes
Black Screen After Login?
Make sure your user is allowed to use XRDP. Also, install gnome-tweaks
or try restarting the XRDP service.
sudo systemctl restart xrdp
Connection Refused?
Double-check that port 3389 is open and the XRDP service is running properly.
Tips for Better Performance
- Use lightweight desktop environments like XFCE for low-spec VPS
- Optimize Ubuntu settings for remote performance
- Use SSH tunneling for added security
Setting up RDP on Ubuntu VPS gives you a powerful, visual way to manage your server — whether you’re a developer, freelancer, or business owner. It only takes a few commands to go from terminal-only to a fully usable remote desktop.
If you’re looking for reliable VPS setup, Linux support, or custom server solutions, you can always count on CodeHunger — your trusted tech partner for smart, scalable, and secure digital solutions.