xRDP is an open-source protocol server for Linux. It provides a graphical user interface to login and does tasks on the remote machines. Let’s dive into the installation process without wasting time. In the tutorial we will install Xrdp Server (Remote Desktop) on Ubuntu 20.04 LTS (Focal Fossa)
Installing Ubuntu Desktop Environment
We have 2 major options available for the ubuntu-desktop environment. Gnome is a standard desktop environment and Xfce is an open source lightweight package.
- Install Gnome
Open Terminal and run the following commands to install Ubuntu Gnome on your remote server.
sudo apt update sudo apt install ubuntu-desktop
- Install Xfce
Open Terminal and run the following commands to install Xfce.
sudo apt update sudo apt install xfce4
NOTE: As these commands will download GUI packages and install them on your remote server. It might take some time
xRDP is already come with ubuntu repositories to install on your remote server run the following command
sudo apt install xrdp
After installation xrdp service will automatically start, to verify You can verify it by executing following command:
sudo systemctl status xrdp
OUTPUT of the command
xrdp.service - xrdp daemon Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled) Active: active (running) since TUE 2020-12-08 17:36:16 UTC; 12min 23s ago ...
Xrdp uses the /etc/ssl/private/ssl-cert-snakeoil.key the file that is readable only by members of the “ssl-cert” group.
Run the following command to add certificate
sudo adduser xrdp ssl-cert
Now restart the xrdp server by executing following command.
sudo systemctl restart xrdp
Connecting to the Xrdp Server
Now you have installed and configured XRDP server on your ubuntu machine. It is time to connect from your local machine.
Open any remote desktop connection tool and add your ubuntu server’s IP and password to add and connect
XRDP server allows you to connect your Ubuntu server from the local machine and made changes with GUI.
For more Linux Tutorials
If you have any issue’s or any question feel free to comment here.