How to Install Centos Remote Desktop (RDP) on VPS

How to Install Centos Remote Desktop (RDP) on VPS

In this small tutorial we are going to learn how to install an CenOS remote desktop (rdp)  on a linux vps with centos operating system installed. Linux remote desktop has a graphical interface like windows and loads and works faster than a windows rdp. And in this way you can get an Centos Remote Desktop (rdp) for even quarter of the price that you will be paying for a windows rdp.The only consideration is that your vps should have a minimum guaranteed ram of 512 mb and burstable ram of more than 700 mb. Now you can follow this step by step tutorial to install your remote desktop on your Centos vps.

Step 1:

Download an install putty . This is a utility which you will use to send remote commands to your vps for installing Centos Remote Desktop. You can download putty from here. When you will run putty , it will open a window like this.Where you enter the ip address of your vps which your host gave you and click on open.

Step 2:

In the next window login as root and supply your root password. This will log you as root into your vps.

Step 3:

The next steps assume that your centos comes with YUM already installed. You may check if it is installed or not by issuing the following command in ur putty window.


If the output is something like this window , then it is ok otherwise contact your hosting provider to isntall yum for you. They can do it in two seconds and they should have included it in the first place.

Step 3:

Now we are using the command to install genome desktop enviroment which will install graphical environment on your vps . Issue the following command in the putty window.

yum groupinstall 'GNOME Desktop Environment' 'X Window System'

This will take quite some time ( around 10-15 ) minutes , depending upon the speed of your vps. Please wait for it to finish. After the command executes successfully , issue the following command in our quest to install Centos Remote Desktop (RDP).

yum update

This will update your system.

Step 4:

Now we will install NX/FreeNX server in vps which will act as our server when in the next steps we connect to this vps as Cenotos Remote Desktop. More information about NX server and client can be found here. In your putty window , issue the following command.

yum install nx freenx

When this command executes successfully , you again issue the yum update command.

yum update

Now restart your server and issue the following command.

shutdown -r now

This will restart your server in about two minutes time. You will have to close the putty window and again start putty and connect to your server as in Step 2 above. We will be needing something from this putty window one final time in a while.

Step 5:

For the next step to install Centos Remote Desktop go  here and download NX client for windows and install it.

Now run nx client from programs and a window like this will open.Enter in the Host box your IP address of vps , Select Gnome as desktop and display area as Available Area and move to next step without pressing any other button.

Step 6:

Go to your putty window and issue the following command.

cat /var/lib/nxserver/home/.ssh/client.id_dsa.key

Now copy the resulting dsa key with Control + C . The area to be copied is shown as grey area in the following picture.

Now go to the nomachine client window that we have left opened in Step 5 and click on key and paste the copied text from putty window in place of the already existing default key there.

Click Save and Then Click OK. It will open a window like this.

Enter your user name as root and your root password and click login. And if you followed me correctly , you will soon see a screen like this.

And then finally your centos remote desktop screen like this:

Hope you liked the tutorial to install Centos Remote Desktop and it was of some use for you. Do contact me in case of any queries.

  • Nikola

    Grate Tutorial keep going good work ;)

  • Pingback: RealTime - Questions: "How to install some application on remote PC without user knowledge?"()

  • silverboy


  • teddy

    I get the error when I try connecting to the VPS with nomachine:

    “The NX service is not available or the NX access was disabled on host”

    NX> 203 NXSSH running with pid: 2584
    NX> 285 Enabling check on switch command
    NX> 285 Enabling skip of SSH config files
    NX> 285 Setting the preferred NX options
    NX> 200 Connected to address: on port: 22
    NX> 202 Authenticating user: nx
    NX> 208 Using auth method: publickey
    NX> 204 Authentication failed.

  • JumpJustin_

    I get to the !M and then it closes. What is my problem?

    • hatem

      did you find any solve to that problem because I have the same issue

    • Abdullah

      Nice tutorial but i face the same problem as hatem faced which is when I login I go to the step when !M appear and the session close Kindly help.

  • martin

    great, works fine

  • Gonzalo Sanchez

    worked perfect!!!
    step by step without complications.

    thank you master!

  • Robert Madore

    Followed instructions to a “T” and it worked first try.

    Thank you for such a great tutorial!!!!!


  • Google-Boy

    Thanks man Work fine without any problem

    Reagrds Ainab inc

  • Thilina

    Memory: 512 MB
    Burst: 512 MB <<<<

    these r my vps configeration….
    login as: 456
    Access denied
    thilina@173.2xx.62.14's password:

    can some one help me to fix

  • nano

    this is fine when i login he configure but not open any display kindly tell me whats the prob

  • syed muhammad taha

    Dear i was try many time and i not seccess but today i seccess good job dear this is great post Thanks

  • Nick

    I did try it and worked, however, after sometime it started staying authentication failure for root when i am pretty sure its all fine.

    • Thilina

      yes me too

    • amir

      yes i got the same “authentication failed for user root” what should i do?

  • abdullahkamal

    Really good one as comparison with vnc server installation and configuration nx is nice one and worked so smart.

    Keep going dude!

  • mitakie


  • YeuHost

    Hello, your article is very well, but I have a question. How much Rams recommend for running well this GNOME Remote?

  • jk33443

    [root@yea2 ~]# yum install nx freenx
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base:
    * extras:
    * updates:
    Setting up Install Process
    No package nx available.
    No package freenx available.
    Error: Nothing to do


  • Jeremy McCoy

    I wasn’t able to get it to work until I added the nx user to the wheel group. Not sure why.

    • Woody He

      I encontered the same problem when I connect to CentOS 6.2 on my PL (Windows 7)..Who can help me? Appriciated!

  • hatem

    hi ,it is really great but I still have a problem
    when I login I go to the step when !M appear and the session close

  • hatem

    I can login to my vps with centos 6 but the languge is like squares beside each other
    what can I do to fix the languge in NXclint

    • Woody He

      I encontered the same problem when I connect to CentOS 6.2 on my PL (Windows 7)..Who can help me? Appriciated!

  • Abdullah

    when I login I go to the step when !M appear and the session close

  • ed

    everything exept 1 thing works. everything what are supposed to be letters look like this []

    where computer shout be it sais. [][][][][][][][]

    any idea how to fix this?

  • jay

    When I installed NoName Machine NX. the window does not have “Key” button to insert Key.

    Another issue is that when I gave this shutdown -r now command my server is not coming back up. when I tried to use Putty its gave message “connection timed out” seems my server has not restarted. wondering what I should do

  • Vikram Kamath

    very useful…worked in one try…
    Already had ‘GNOME Desktop Environment’ and ‘X Window System’ groupinstalled.

    Did not require to restart CentOS server.

    CentOS 5.8…

    Connected from Windows Server 2008 client

  • Bifs

    Hi! Hope you can help me, since I can’t find any thing related with my problem:

    I followed all the above steps and can establish a connection with server. I can click and open the icons on the desktop, open a terminal windows, etc. BUT CANNOT REACH THE UPPER MENU (Applications, Places, system etc…)

    If I press Ctrl+Alt+F (toggle fullscreen mode) the menu disapears and only the white background stripe is visible.

    I tried to access from Ubuntu, MacOSX and Windows and all have the same problem, so I think is something related to the running CentOS 5.9 system.

    Greetings and thanks in advance for your help.


  • Raj

    Thanks gr8 support,i got success in first attempt.

  • Fachim

    Simple and easy step by step. Thanks.

  • rizal

    hi. thanks for the tutorial. it’s seem good.

    but i wanna ask you? i don’t know what happened. but when i run nomachine, it show up and close suddenly. instalation is succes from putty and instal nx freenx. and get the “key”

    but the problem is when i run namachines enter my user name as root and your root password and click login, the screen is showing up, but close suddenly. please help.
    thank you

  • Bill

    Hello, Thank you for the tutorial! But i have a problem. When i connect to my VPS the screen: appears but then closes. I’m using centos 6 btw! Please help me!!! Thankkss!

  • ad

    the nx service is not available or the nx access was disabled on host

  • ad

    Hellow All


    To all That get !m screen closes after getting connected you need to install:

    yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts

    That’s It will work now

    it its helps reply my comment and say Thanks to me

  • itho

    I’m a newbie still looking for a way to get a remote desktop connection to a linux vps. I will surely try this… Thanks :)

  • ad

    Dear Admin

    This cannot work without the font code i checked on 2 VPs 1gb and a 2gb vps

    Please Can you add this code as step 7 as it will help newbies:
    yum groupinstall “Desktop” “Desktop Platform” “X Window System” “Fonts

  • lck

    It’s broken my centos 5 + Kloxo server ;/