Skip to content

Set Up xRDP on a Linux Server – Enable Remote Desktop Access

Discover how to set up Remote Desktop access on Ubuntu and Debian servers to simplify management and control

12 November 20261 min read63 Views0 helpful

Introduction

Linux servers typically use a standard SSH console for management. However, in some cases, using a Remote Desktop connection is easier—similar to Windows.
Most Linux distributions support installing this feature afterward. This guide explains how to do it for Ubuntu and Debian.

Info

Important: You must use at least Ubuntu 18.04.X LTS (Bionic Beaver) or Debian 10 (Buster) as the operating system. Newer versions are recommended.

Installing xRDP

First, update the server:

Code
// Debian
sudo apt update; sudo apt upgrade -y

// Ubuntu
sudo apt update; sudo apt upgrade -y

After updating, install the required packages:

Code
// Debian
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils -y

// Ubuntu
sudo apt install ubuntu-desktop -y

Then install xRDP:

Code
// Debian
sudo apt install xrdp

// Ubuntu
sudo apt install xrdp

After installation, the status should show as "active":

Code
// Debian
sudo systemctl status xrdp

// Ubuntu
sudo systemctl status xrdp

If the status is correct, create a user. Then restart the xRDP service:

Code
// Debian
sudo adduser xrdp ssl-cert; sudo systemctl restart xrdp

// Ubuntu
sudo adduser xrdp ssl-cert; sudo systemctl restart xrdp

After configuration, you can connect via Remote Desktop using the root or the respective user account on the server.
The default port is: 3389

Connection

Connect using any RDP tool with IP:PORT.
You will be prompted for login credentials:

After successful login, you will see the desktop.
The appearance differs slightly between Ubuntu and Debian:

Ubuntu:

Debian:

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

First update your system, then install the necessary desktop packages (e.g., xfce4, xfce4-goodies, xorg, dbus-x11, x11-xserver-utils for Debian; ubuntu-desktop for Ubuntu), and finally install xrdp using sudo apt install xrdp.
At least Ubuntu 18.04.X LTS (Bionic Beaver) or Debian 10 (Buster); newer versions are recommended.
The default port for xRDP is 3389.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.