Windows : xRDP to CentOS 6.5

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:


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:
* epel: should be present
* extras:
* updates:

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

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

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp — anywhere anywhere state NEW tcp dpt:ms-wbt-server



Courtesy :

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s