Thursday, June 14, 2018

Remote Desktop Sharing Using xRDP (In Cento 7 / RHEL7)



xrdp is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server from Windows machine. 
For this practical need to install three rpm files-epel, nux and xrdp.

Steps…
Step1-Install EPEL and nux repository rpms

Open terminal and install epel and nux rpms using rpm utility.
rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
 

Step2-xRDP Service Installation

rpm –ivh https://li.nux.ro/download/nux/dextop/el7/x86_64/xrdp-0.6.1-3.el7.nux.x86_64.rpm

Once xrdp is installed, enable then start the xrdp service using the following command.
systemctl enable xrdp

systemctl start xrdp

Step3-Firewall
Configure the firewall to allow RDP connection from external machines. (For open xrdp port-3389)
Firewall-cmd --permanent --add-port=3389/tcp
Firewall-cmd --reload
Step4-Configure SELinux
Configure SELinux
chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman
Test xrdp Remote Connectivity

Now take RDP from any windows machine using Remote Desktop Connection.
 Enter the ip address of Linux server in the computer field and then click on connect.
Use your Linux user and password for login credentials.

Click on ok.

Thanks!!!!!!!!!!!!!!!






No comments:

Post a Comment