Remote desktop access of CentOS server : How to

In this article, I would be teaching you how to take remote desktop of centOS server using nx-server-client. There are alternatives like vnc server, but they’d cause too much trouble for you if you’re new.

Your life becomes really easy if you take RDP aka remote desktop of centOS to your VPS / Dedicated server to work on it. Because, if you are new to server management, command line would not do everything for you. Meanwhile you learn SSH and linux commands, it is a good idea to work on the server using remote desktops. There are several ways of taking remote access, however, we’re going to look at the once that’s easiest and least time consuming.

 

  1. Connecting to server using Putty:
    Putty is a little tool that will let you connect to your server using SSH. It will basically give you access to the terminal / command prompt of your server so that you can work on it and make changes. So first thing you want to do is, download putty FROM HERE. Once you have putty downloaded, open it up. It should look something like below:

    SSH putty

    Putty screen shot

    Now, the place where you see an arrow pointed, insert the IP of your server and it will connect to it. All you gotta do is, input your root username and password to get access. [Note- You will not see anything happening when you'd type the password.]

  2. Downloading GNOME Desktop environment:
    Now that you’re connected to your server, next thing we’d be doing is, installing GNOME Desktop environment, which will create desktop on your server. Copy the following command and hit enter.

    yum groupinstall ‘GNOME Desktop Environment’ ‘X window system’

  3. This download will take several minutes [may be 15 to 20] depending on the speed of your internet. Once installation completes, issue the following command to make sure everything is up to date.

    yum update

  4. Now what we have is a server with GNOME Desktop installed on it, next thing we’d be doing is, installing nx-server-client on your server as well as desktop so that you can take the Remote Desktop of centOS. Issue the following command to install nx-server on your server.

    yum install nx freenx

  5. Once the nx server has been installed successfully on your server, again you’d want to update the server using same “yum update” command.
  6. Once everything is done, you are required to restart your server using following command.

    shutdown -r now

  7. Now your server is totally ready. All you need is the NX client on your own desktop, so that you can connect to the server. You can download NX Client FORM HERE. Here’s a screen shot to give you an idea.
    Downloading NX Client

    Downloading NX Client

     

  8. Once you have NX Client installed, open it and It should look something like the screenshot shown below. All you have to do is, insert your server’s IP, Select “GNOME” as desktop environment.
    NX Server screenshot
  9. You will also see a button called “KEY”. You need to get this key from your server using Putty again. Connect to your server using putty and issue the following command to get the key.

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

  10. Now copy this key and paste it into the NX client of your desktop. Click on OK and it will open up a login box as shown below. All you need to do is, input the root username and password and click on Connect.
    NX Client Login screen
  11. You should see following screens.
    Remote desktop centosCentOS Desktop Screenshot
If you see the final screenshot, it means that everything is working fine and now you can connect to your VPS or Dedicated server as many times as you want using NX Client. In case you want to connect to your server using any other computer, just download the NX Client, configure the key and connect it! So, this is how you take remote desktop of centOS.

Incoming search terms:

Leave a Reply

*
Premium Wordpress Themes