From the command line:
Install EPEL for RHEL8:
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Or, install EPEL for CentOS8:
sudo yum install -y epel-release
Install packages
sudo yum -y install xrdp tigervnc-server
Start xrdp and enable it to auto-start on boot
sudo systemctl start xrdp sudo systemctl enable xrdp
Allow xrdp through firewall
sudo firewall-cmd --permanent --add-port=3389/tcp sudo firewall-cmd --reload
From Windows I could not remote into the RHEL xrdp server if it was running a desktop (I’m not sure if that is normal). I had to “sudo init 3” to whack the desktop. To make this permanent:
sudo systemctl set-default multi-user.target
You will have to “init 3” or reboot if you’re not already in run level 3 (text mode, non-desktop).