xrdp is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server from Windows machine; it is capable of accepting connections from rdesktop, freerdp, and remote desktop clients. This how to will help you to setup xrdp server on CentOS 7 / RHEL 7.
Prerequisites:
1. This was written when xrdp is available neither on CentOS repositories nor on EPEL repository, after a lot of Google search; i found desktop repository (http://li.nux.ro/) which was having xrdp for CentOS 7 / RHEL 7. We need to manually setup the repository on CentOS 7.
2. Don’t forget to install Gnome on CentOS 7
Automatic (recommended):
Install EPEL and nux Desktop repository rpms.
Manual:
Create a repository file.
Place the following content. Once added, save and close the file.
Installation:
Issue the following command to install xrdp
You will get the following output, make sure you are getting package from the newly created repository.
Once it is installed, lets start the xrdp service.
xrdp will listen on 3389, lets confirm this by issuing following command.
By default, services wont auto start after system reboot. Issue the following command to enable the service at system start up.
Next is to create iptables rule to allow rdp connection from the external machines, following command will add the exception for rdp port (3389).
Configure SELinux
# chcon --type=bin_t /usr/sbin/xrdp # chcon --type=bin_t /usr/sbin/xrdp-sesman
Test:
Now take rdp from any windows machine using Remote Desktop Connection, enter ip address of Linux server in computer field and click on connect
Note:Display settings of Remote desktop must be 24 bit
You would be asked to enter the user name and password, you can either use root or any user that you have it on system. Make sure you use module “sesman-Xvnc”.
If you click ok, you will see the processing. In less than a half min, you will get a desktop
That’s All, you have successfully configured xRDP on CentOS 7 / RHEL 7.
We welcome your comments
No comments:
Post a Comment