Install xrdp On CentOS / RHEL

Install xrdp On CentOS / RHEL

Insight: Tutorial to Install xrdp on CentOS 7 / RHEL 7

In this tutorial, we are going to show you the method to install xrdp on CentOS and Red Hat operating system.

If you don’t know what xrdp is then it’s an Open Source Remote desktop Protocol server. With the help of it you can have a remote connection to your Linux server from Windows based systems.

Install xrdp On CentOS / RHEL

At first let’s install GNOME GUI:

CentOS 7:

# yum groupinstall "GNOME Desktop" "Graphical Administration Tools"


# yum groupinstall "Server with GUI"


Enable it to run on startup:

# ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

Now you need to install EPEL and configure it as xrdp is available in EPEL repository.

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Install XRDP on CentOS 7 /RedHat

yum -y install xrdp tigervnc-server

Start the xrdp service using the following command.

systemctl start xrdp

Run the following command to start xrdp during startup:

systemctl enable xrdp

It’s not done yet as you need to configure the firewall to allow RDP connection from other systems. The following command will add the exception for RDP port 3389.

firewall-cmd --permanent --add-port=3389/tcp
firewall-cmd --reload

Now configure SE Linux:

chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman

Finally, you are good to go as you can start connection from Windows based systems.


READ THIS ALSO  How To Install Ansible On Linux Distributions