How to Install XRDP Automatically on Different Linux OS


The tutor is about the installation of XRDP in different Linux distributions automatically
Supported Linux distributions:
CentOS 7.x 64-bit
CentOS 8.x 64-bit
Ubuntu Server 20 LTS 64-bit
Ubuntu Server 18 LTS 64-bit
Debian 9.x 64-bit

Step1 Download the installation file

Before we download the file, we need to install the related tool wget in our server. The command is as follows:
In Ubuntu, the command is “apt-get -y install wget ”.(When you login to Ubuntu as "administrator", input "sudo -i" for root privilege to install XRDP, then begin those operations)
In CentOS, the command is “ yum -y install wget ”
Then you need to download the installation file:

Step2 Run "bash"


Step3 Install XRDP in Different Systems

3.1 Install XRDP in CentOS 7.x 64-bit 

After running " bash ", you will be asked whether to install audio, the default is not to install.

3.2 Install XRDP in Ubuntu Server 20 and Ubuntu Server 18

After running "bash", you will need to select the desktop environment to install, choose “gnome” or “xfce4”

3.3 Install XRDP in Debian 9

After running " bash ", there will be a "software selection" interface, you need to select "Debian desktop environment" and "GNOME".

Step4 Test XRDP connection

1. Enter win+R on the keyboard and type “mstsc” to launch the Remote Desktop Connection application, then input your hostname or IP.
2. Input username root/administrator and server password, different systems need to choose different "sessions", as shown below:
Centos7: Session should be Xvnc
Ubutu20 and Ubuntu 18: Session should be Xorg
Debian 9:  Session should be Xvnc


Add Feedback