Running Remote Desktop Server on Centos 7

This article will explain how to install a remote desktop server onto Centos 7. The tool that will be used here is called xrdp. It is not available by default from the Centos repository so you have to revert to third party repositories:

yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
# maybe you also have to install the EPEL Repository. Not sure if this is really a prerequisite.
yum -y install xrdp
yum -y install tigervnc-server # rumours say, that the installation order is important.
chcon -t bin_t /usr/sbin/xrdp
chcon -t bin_t /usr/sbin/xrdp-sesman
systemctl start xrdp.service
systemctl enable xrdp.service
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload

Now try to rdp into the server and hope it all worked. Initially, my connection waits a long while on a black screen but eventually displays the desktop.