Install xrdp on CentOS 7 / RHEL 7

XRDP is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server from Windows machine; it is capable of accepting connections from rdesktop, freerdp, and remote desktop clients.

1- First you need to Install Gnome GUI on Linux Servers

2- xrdp is available in EPEL repository

# rpm -Uvh

3- Use YUM Command to install xrdp package on CentOS 7 / RHEL 7.

# yum -y install xrdp tigervnc-server

4- Once xrdp is installed, start the xrdp service using the following command.

# systemctl start xrdp

xrdp should now be listening on 3389. You can confirm this by using netstat command.

# netstat -tupln | grep 3389
tcp        0      0  *               LISTEN      83395/xrdp

By default, xrdp service won’t start automatically after a system reboot. Run the following command in the terminal to enable the service at system startup.

# systemctl enable xrdp


Configure the firewall to allow RDP connection from external machines. The following command will add the exception for RDP port (3389).

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

Mohammed has written 29 articles

One thought on “Install xrdp on CentOS 7 / RHEL 7

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>