Hi There,
In this tutorial I will show you how to RDP into your CentOS 7 Server. This tutorial will also work on a Redhat 7 server. In order to follow this tutorial you will need to be sure that you have CentOS 7 installed with the GNOME Desktop. If you haven’t done this yet be sure to follow this tutorial to get up to speed.
The first thing that we need to do is to add two repos to our CentOS server. The two commands that you need to run are:
- sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
- sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
Next we will install the xrdp software package and then start it as a service. The commands to do this are:
- sudo yum -y install xrdp tigervnc-server
- Sudo systemctl start xrdp.service
Now we need to allow the ports for xrdp through the firewall. After that we’ll need to restart the firewall service. This can be done by running these commands.
- sudo firewall-cmd –permanent –zone=public –add-port=3389/tcp
- sudo firewall-cmd –reload
Finally we need to configure SELinux. To do so run these two commands:
- sudo chcon –type=bin_t /usr/sbin/xrdp
- sudo chcon –type=bin_t /usr/sbin/xrdp-sesman
We can now try to RDP to our CentOS 7 server.
First open RDP and type in the IP address of you CentOS 7 Server.
If you get certificate warnings click yes to continue.
Now enter your CentOS username and password
You will now be brought to your CentOS Desktop.
A full video of this tutorial can be seen here: