How to Install XRDP Remote Desktop on CentOS 7

r00t October 27, 2017

Install XRDP Remote Desktop on CentOS 7

In this tutorial we’ll learn how to install XRDP remote desktop on CentOS 7. We will also install and configure its prerequisites. XRDP Remote Desktop Server is nothing but a service or a daemon which Is enables user to shoot remote of Linux Operating System from RDP (Remote Desktop Protocol) clients. As All of We know that the RDP stands for Remote Desktop Protocol comes with Microsoft Windows operating Systems. With The aid of XRDP we can able to shoot distant of Linux Operating Systems Graphically from Windows Systems.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install XRDP Remote Desktop on CentOS 7

Step 1. First, ensure your system is fully up-to-date by running the following:

yum -y update
yum -y install epel-release

Next install NUX repository by running the following command:

rpm -Uvh

Step 2. Iinstalling XRDP Remote Desktop.

Run following command to install xrdp:

sudo yum install xrdp tigervnc-server

Once it is installed, lets start the xrdp service:

systemctl start xrdp.service
systemctl enable xrdp.service

Step 3. Configure Firewall for XRDP.

Add the listen port into iptables and reload the firewall:

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

Run the following command to configure Selinux for xrdp:

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

Step 4. Testing from Client Side.

We have done Together with our configuration Component of Server Side, Let’s Check from the customer side to confirm whether the XRDP Remote Desktop Server is functioning properly or not.

For that only go and login any Microsoft Windows Operating System (e.g. : Windows XP, Windows 7 or Windows 10) and open the Remote Desktop Connection Client by following below steps: START -> All Program -> Accessories -> Remote Desktop Connection OR Just go to Start->Run and type mstsc. Then you can see a window such as shown in the photo below.

Then enter the IP Address of XRDP Remote Desktop Server on Computer TextBox and click on the link as shown in the photo below.

Install XRDP Remote Desktop on CentOS 7

Install XRDP Remote Desktop on CentOS 7

Congratulation’s! You have successfully install and configure XRDP server on your CentOS 7 server. Thanks for using this tutorial for installing XRDP remote desktop on CentOS 7 system.


Leave a Comment

Comments are closed.