Remote Desktop for Linux
I’ve created this sysadmin user guide, Remote desktop for linux that explaining how you can
remotely connecting to Linux servers with NX or VNC.
NX is very good for connecting via VPN to Linux servers. (When VPN is with a slow connection)
VNC is very good for connecting internally (LAN) to Linux servers.
Free NX server version – 0.7.3-18
NX Client veriosn – 184.108.40.206-3
VNC server version – 4.1.2-14
VNC Client version – 5.2.3
Let’s get started…
- Install and configure NX server
- Install and configure NX Client
- Install and configure VNC server
Install and configure NX server.
NX Server Installation and Configuration.
FreeNX in the EPEL + nux-dextop repositories for CentOS 6
To install freenx server “NX freenx-server” via RPM command:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
After you have done to install the “freenx-server” you need to configure the /etc/nxserver/node.conf.
First backup copy of node.conf file:
Edit the node.conf file and change the lines as follows:
Now you need to generate the client id key, go to /usr/libexec/nx/
For Redhat 6/Centos 6
Start the steps above + Run yum install x2goserver to install all NX libs including nxagent.
This is fix the error you received in NX client “session failed”.
Restart NX server:
Install and configure NX client.
Install the NX client on your Windows machine and follows the wizard:
Now you need to create and configure the NX client to connect to the Linux server.
Open the “NX client for Windows” icon on the Desktop and follow the wizard:
After you click finish, the NX client login screen appears, click on configure:
Click on the Key button, to open the DSA Key client management:
Copy the client-id from the Linux server where you generate the client id key.
location of the client id key:
Copy the key including the BEGIN DSA to the END DSA:
Paste the client id key and save:
Now you are ready to connect Linux server via the NX client.
Install and configure VNC server.
Some of the Linux distribution, the VNC server are installed by default.
You just need to start the service:
Install VNC server from YUM command:
Restart the VNCSERVER service to start working with VNC:
Now you need to create a VNC user, “su” to Linux user:
Follow this steps to create the VNC user X session:
Kill VNC process:
Use GNOME to your X display by changing the line in the xstartup file, go to /home/user/.vnc/xstartup disable TWM & by # and add gnome-session &
Start VNC session:
Download and install a VNC viewer and connecting to a Linux server with IP address or Host Name & port:
When you click connect, password screen appear.
Enter the password of the VNC user and click OK:
You have completed the installation and configuration of the VNC server.
To increase the user screen resolution to 1920×1080, first kill the VNC process by “vncserver -kill :3”
Follow this command:
To lock VNC session port to VNC user, go to /etc/sysconfig/vncserver and add the VNC user to VNCSERVERS=
And the user resolution to VNCSERVERARGS=
To add more than one user to the /etc/sysconfig/vncserver file: