Tuesday, 1 September 2015

Take Remote Desktop of your Linux Server from your windows Box -- RHEL7 Tutorial


 If i take my Linux server RDP from windows machine without using VNC.. wow..!!

go through the setup steps you will amaze..

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 RHEL 7


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 which was having xrdp for CentOS 7 / RHEL 7. We need to manually setup the repository on CentOS 7. Don’t forget to install Gnome on CentOS 7

Inbuilt xrdp packages are not available in RHEL7 for not-registered users, so download the packages from other resource. 

Install EPEL and nux Desktop repository rpms

 ~]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
 ~]# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

 configure your yum repository by providing the path to server.

Installation Process:

~]# yum -y install xrdp tigervnc-server

verify the packages are installed or not

Once it is installed, lets start the xrdp service.
 ~]# systemctl start xrdp.service

verify xrdp is working or not 
~]#netstat -antup xrdp.service

 By default, services wont auto start after system reboot. Issue the following command to enable the service at system start up.
~]#systemctl enable xrdp.service

Allow the 3389 port from firewall

~]# firewall-cmd --permanent --zone=public --add-port=3389/tcp
~]# firewall-cmd --reload
then configure the SELinux
~]# chcon --type=bin_t /usr/sbin/xrdp 
~]# chcon --type=bin_t /usr/sbin/xrdp-sesman

Test the Connection

Go to RUN and type mstsc click OK

 Click on Connect

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.



Please provide your valuable comments..............


  1. this is very useful. nice bro..thank you very much for this post.and also i need how i configure ldap and some liux configuratio also..

  2. how many session we can use at a time

  3. I had issue in setting up firwall but this helped
    How to Configure ‘FirewallD’ in RHEL/CentOS 7 and Fedora 21

    This was a nice article but for more clearity i used

  4. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Red Hat Enterprise Linux, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on Red Hat Enterprise Linux. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us:
    Name : Arunkumar U
    Email : arun@maxmunus.com
    Skype id: training_maxmunus
    Contact No.-+91-9738507310
    Company Website –http://www.maxmunus.com