Total Pageviews

Sunday, 22 October 2017

Install XRDP Server on CentOS 6

Recently I thought it would be nice to install a method that would allow me to use Remote Desktop Client from Windows to connect to a my CentOS 6.3 system. This method will use XRDP Server to Connect locally to a VNC Service. It took a fair amount of research online without any real instructions on what you should do. So with that in mind, hopefully my instructions will help you. Special thanks to Gembul’s Weblog & IT Specialists Blog for giving me a guiding point in order to figure out what was needed.
SSH to your system. I preferr to log in using root so I do not have to use sudo commands to do all the installing
Install/Update EPEL & RPMforge to CentOS 6.3
#rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
#rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
#yum -y update
#yum repolist

Install needed Packages
#yum install -y xrdp tiger-vncserver autoconf automake libtool openssl-devel pam-devel libX11-devel libXfixes-devel
Download and install the updated version of XRDP
I downloaded mine to roots home directory in order confirm that everything is being installed correctly
http://www.xrdp.org/
#tar -zxf xrdp-v0.6.6.tar.gz
#mv xrdp-v0.6.6/ /usr/lib64/xrdp-v0.6.6/
#cd /usr/lib64/xrdp-v0.6.6/

Now to install updated version of XRDP
#./bootstrap
#./configure
#make
#make install

Setup Users Groups
#groupadd tsusers
#groupadd tsadmins

Edit Groups file
#nano -w /etc/groups
Edit the following lines to look like this.
tsusers:x:501:YOURUSERNAME
tsadmins:x:502:root

Now to setup VNC Password for the user that you want to use XRDP Services
#su YOURUSERNAME
#vncpasswd
Insert your password twice
#exit
To return root user

Time to Edit the VNC Server
#nano -w /etc/sysconfig/vncservers
Insert at the end of file
VNCSERVERS="1:YOURUSERNAME"
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"

Now to hook XRDP Server to the rc.local file
#nano -w /etc/rc.local
or
#nano -w /etc/rc.d/rc.local

Add the following to the end of the file
/etc/xrdp/xrdp.sh start
Now to turn on the services and setup the Startup when you reboot
#chkconfig vncserver on
#service vncserver start
#/etc/xrdp/xrdp.sh start

Now you should be able to RDP to your linux system. Please keep in mind that you may need to port forward port 3389 if your firewall is enabled. If you are unable to connect try rebooting your systems and see if it will let you connect. I found it has a 50/50 chance to allow you to connect on the first time without a reboot. Below is a screen shoot of what you should see when you connect to system.

from  http://www.nanix.net/2012/09/10/install-xrdp-server-on-centos-6-3-x86_64/
------------

Install xrdp and X11rdp – the comprehensive HOWTO for Ubuntu and Debian based systems

from https://scarygliders.net/2011/09/23/install-xrdp-and-x11rdp-the-comprehensive-howto-for-ubuntu-and-debian-based-systems/

 https://scarygliders.net/2011/11/17/x11rdp-ubuntu-11-10-gnome-3-xrdp-customization-new-hotness/

No comments:

Post a Comment