Click here to Skip to main content
13,298,655 members (59,231 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


4 bookmarked
Posted 7 Apr 2014

Windows: xRDP to CentOS 6.5

, 7 Apr 2014
Rate this:
Please Sign up or sign in to vote.
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:
    <span style="color:#993300;">* epel: should be present</span>
    * 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



Filed under: Operating System
Tagged: centos, configuring centos, Windows : xRDP to CentOS 6.5


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

You may also be interested in...

Comments and Discussions

QuestionHow about CentOS 7? Pin
Member 1072842112-Sep-14 21:17
memberMember 1072842112-Sep-14 21:17 
AnswerRe: How about CentOS 7? Pin
Vidyasagar MSC9-Nov-14 17:19
professionalVidyasagar MSC9-Nov-14 17:19 
QuestionWatch your - characters! Pin
Member 1073983310-Apr-14 7:02
memberMember 1073983310-Apr-14 7:02 
QuestionAddition to instructions Pin
Member 1073983310-Apr-14 6:54
memberMember 1073983310-Apr-14 6:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171207.1 | Last Updated 8 Apr 2014
Article Copyright 2014 by Vidyasagar Machupalli
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid