How to Install Remote Desktop (XRDP) on Ubuntu 20.04

xrdp-logo

In this article, we will have explained the necessary steps to install and configure Remote Desktop (XRDP) on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to graphically control a remote computers. With RDP you can log in to the remote machine and create a real desktop session same as if you had logged in to a local machine.

Install Remote Desktop (XRDP) on Ubuntu

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils

Step 2. Install XRDP on Ubuntu system.

By default, the Xrdp package is available in Ubuntu repositories. Run the following command to install it:

sudo apt install xrdp

To validate that Xrdp is installed, run the commands below:

$ sudo systemctl status xrdp

xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: >
Active: active (running) since Tue 2020-04-05 10:09:52 CDT; 15s ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 2989 (xrdp)
Tasks: 1 (limit: 4657)
Memory: 1.0M
CGroup: /system.slice/xrdp.service
└─2989 /usr/sbin/xrdp
May 05 10:16:22 ubuntu2004 xrdp[2986]: (2986)(140236664779328)[INFO ] address [>
May 05 10:16:22 ubuntu2004 xrdp[2986]: (2986)(140239666679328)[INFO ] listening>

Step 4.  Allow RDP traffic through UFW Firewall.

Allow just RDP through the local firewall:

sudo ufw allow 3389/tcp

Step 5. Test RDP by connecting through RDP.

Connect via Remote Desktop on a Windows (Microsoft Remote Desktop Client) or through Remmina on Linux.

That’s all you need to do to install XRDP Remote Desktop on Ubuntu 20.04 Focal Fossa. I hope you find this quick tip helpful. Don’t forget to share your valuable queries/feedback in the below comment box. Thanks for visiting LinuxTips Keep Learning!!