Install XRDP Server on CentOS 6.3 (X86_64)

Posted on September 10, 2012 by Vernon Spangler

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 toGembul’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
#rpm -Uvh
#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
#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
#make install

Setup Users Groups
#groupadd tsusers
#groupadd tsadmins

Edit Groups file
#nano -w /etc/groups

Edit the following lines to look like this.

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

Time to Edit the VNC Server
#nano -w /etc/sysconfig/vncservers

Insert at the end of file
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"

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

Add the following to the end of the file
/etc/xrdp/ start

Now to turn on the services and setup the Startup when you reboot
#chkconfig vncserver on
#service vncserver start
#/etc/xrdp/ 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.


Share this:

About these ads