Search Results for: vnc

Install VNC Server On CentOS

Virtual Network Computing (VNC) is a graphical  desktop sharing system that used to remotely control/access another computer.  It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.

VNC is platform-independent  i.e  A VNC viewer on one operating system may connect to a VNC server on the same or any other operating system. To access remote machine with VNc client it is necessary that you have VNC server installed on the remote machine. and VNC client on local machine.

Following are the steps to install VNC Server on Linux CentOS (server side steps)

1) Install the X Windows System & GNOME Desktop Environment

root@Server[~]#yum groupinstall “X Window System”
root@Server[~]#yum groupinstall “GNOME Desktop Environment”

NOTE: If you get the following error “Error: Missing Dependency: is needed
By package nautilus-sendto” while installing GNOME Desktop Environment, you will need to manually install nautilus-sendto with the following procedure:

root@Server[~]# yum install yum-utils
root@Server[~]# yumdownloader nautilus-sendto
root@Server[~]# rpm -Uvh –nodeps nautilus-sendto[PRESS TAB]

2) Configure VNC Server

* Edit the /etc/sysconfig/vncservers file and uncomment the following two lines:
VNCSERVERS=”5:root” # display port and username
VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”

* Set password to VNC Server
root# vncpasswd

3) To start VNC server issue command

root@Server[~]#vncserver :5

After starting service file /root/.vnc/xstartup will be created.

* Edit the local config file in the root folder:
nano ~/.vnc/xstartup
Replace “twm &” with “gnome-session &”

To stop VNC server issue command

root@Server[~]#vncserver -kill :5

Client side steps….

To access server remotely you will need tom install VNC viewer on your local machine. you can download VNC client from Here

Once installed, open your VNC client and type your server’s IP followed by the port number

*Open your VNC client (e.g. TightVNC or RealVNC) and type your  server’s IP followed by the port number

e.g.   server’s ip address:5  –> where 5 is the port you set in

Click on Ok and it will prompt for password. Enter the password you have set.

And you will get the remote desktop access.

Post to Twitter