After a successful RDP to Ubuntu.Our next challenge was to RDP to CentOS 6.5. Frankly speaking,this wasn’t as easy as ubuntu.
We will use the same Putty (which we have configured in our previous post )
Login with root or any user who is part of sudoers file
1) sudo yum update
2) reboot
3)uname -r
Response : 2.6.32-431.el6.x86_64
Once you determine your architecture then you can install the correct EPEL repository with the below commands:
4)
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
You can verify that the EPEL repository is there by running the below command and you should see the EPEL repository listed
5) sudo yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.thelinuxfix.com
* epel: mirror.cogentco.com=========This should be present
* extras: centos.mirror.nac.net
* updates: centos.mirror.netriplex.com
Once you have verified the EPEL repository is installed correctly you need to perform the last few steps below this will install XRDP and Tiger VNC Server for you to connect to. The Front end of XRDP uses the RDP protocol and internally it uses VNC to connect and display the Remote Desktop to you.
6) sudo yum install xrdp tigervnc-server
7) service vncserver start
8) sudo service xrdp start
9) sudo chkconfig xrdp on
10) sudo chkconfig vncserver on
If you are not able to get connected to the XRDP Login window check your iptables settings. If you are using iptables you need to edit your rules and add the port 3389 to the INPUT list. You can use the below commands to accomplish this (note that the port number shows as the service name ms-wbt-server instead of 3389):
11) sudo iptables -I INPUT -p tcp -m state –state NEW -m tcp –dport 3389 -j ACCEPT
12) sudo service iptables save
Response iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
13) sudo service iptables restart
Response
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
14) sudo iptables -L
Response
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:ms-wbt-server
Courtesy :
http://ajmatson.net/wordpress/2014/01/install-xrdp-remote-desktop-to-centos-6-5/
http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x