Enabling XRDP on Centos 7

I’ve been playing with Centos recently and have been working on integrated it with a Windows Domain / VM I have setup. To ease accessing it, I found that it is possible setup XRDP (an open-source version of RDP) so that you can access Centos from a Windows system using regular RDP.

Assuming you already have your desktop environment setup, open up terminal and run the following as root:

yum -y install xrdp tigervnc-server

Then, start the service:

systemctl start xrdp.service

To see if it is running, type:

netstat -antup | grep xrdp

 

I had to run these commands to get it to work:

chcon -t bin_t /usr/sbin/xrdp

chcon -t bin_t /usr/sbin/xrdp-sesman

 

Followed by restarting the service:

systemctl restart xrdp.service

Then all you have to do is enable the service:

systemctl enable xrdp.service

And put in a firewall exclusion and reload the firewall:

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

That’s it!

 

For more info, this TechNet article was super helpful. 

Leave a Reply