How to Enable XRDP on RHEL 7

Xrdp is an open source tool which allows users to access the Linux remote desktop via Windows RDP. Apart from Windows RDPxrdp tool also accepts connections from other RDP clients like FreeRDP, rdesktop and NeutrinoRDP. XRDP is used to do RDP from

Below are the Steps to Enable XRDP

Step 1: Install the Nux-Desktop RPM to install XRDP in RHEL 7

# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

Step 2: Verify Once the RPM is installed, we can see an Repo created in YUM with the name ‘xrdp.repo’

# vi /etc/yum.repos.d/xrdp.repo

Step 3 : Install the XRDP and TigerVNC packages using yum

# yum -y install xrdp tigervnc-server

Step 4: Verify the packages are installed in server.

# rpm -qa | grep nux-dextop

# rpm -qa | grep xrdp

Step 5: Start the service of XRDP

# systemctl start xrdp.service

# systemctl enable xrdp.service

Step 6 : If the server is enabled with firewall, make sre to add the entries to allow RDP traffic .

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

# firewall-cmd –reload

Note : If firewall is disabled , ignore the step 6

Step 7 : Comment the channel code

#vi /etc/xrdp/xrdp.ini

channel code=1                                                      Comment the channel code

Step 8: Restart the services.

# systemctl restart xrdp.service

Now you can connect this server from anywhere. if you are facing any issue comment below.

One Reply to “How to Enable XRDP on RHEL 7”

  1. Nice post. I was checking continuously this blog and I’m impressed!

    Very usegul information specially the last part 🙂 I care for such info a lot.
    I was looking for this pzrticular information forr a long time.
    Thank you and bwst of luck.

Leave a Reply

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