Click here to Skip to main content
15,886,518 members
Articles / All Topics

Windows: xRDP to CentOS 6.5

Rate me:
Please Sign up or sign in to vote.
4.43/5 (3 votes)
7 Apr 2014CPOL2 min read 27.2K   4   4
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:

  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
    <span style="color:#993300;">* epel: mirror.cogentco.com=========This should be present</span>
    * 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

centos

Courtesy

Filed under: Operating System
Tagged: centos, configuring centos, Windows : xRDP to CentOS 6.5
Image 2 Image 3 Image 4 Image 5 Image 6 Image 7 Image 8 Image 9

License

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



Comments and Discussions

 
QuestionHow about CentOS 7? Pin
Member 1072842112-Sep-14 20:17
Member 1072842112-Sep-14 20:17 
AnswerRe: How about CentOS 7? Pin
Vidyasagar Machupalli9-Nov-14 16:19
professionalVidyasagar Machupalli9-Nov-14 16:19 
QuestionWatch your - characters! Pin
Member 1073983310-Apr-14 6:02
Member 1073983310-Apr-14 6:02 
QuestionAddition to instructions Pin
Member 1073983310-Apr-14 5:54
Member 1073983310-Apr-14 5: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.