Install XRDP Server on CentOS 6.3 (X86_64)
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 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
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/
Now to install updated version of XRDP
Setup Users Groups
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="-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
Now to turn on the services and setup the Startup when you reboot
#chkconfig vncserver on
#service vncserver 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.