Tuesday 1 September 2015

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

HOME


 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


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

 

Enjoy......

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


5 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..

    ReplyDelete
  2. how many session we can use at a time

    ReplyDelete
  3. Appreciated... well done Great Job

    ReplyDelete