Install VNC Server on Centos / Redhat /Redora

VNC (Virtual Networking Computing) is a desktop sharing system over the network (LAN/VPN/WAN) , this allows you to connect any server with VNCserver software installed.

VNC software required

Server (destination machine)     : Tiger-VNC-Server

Client(Source machine)      : Tight-VNC-viewer

In our installation guide we are going to use Centos 6.5 – 64bit operating system to install VNC-server software using yum command line utility .

In Linux you can create multiple VNC session , and each session will run different port which we are going cover installation steps


Make sure  server  started at boot level 5 (Graphical mode)

If you don’t X Windows system , then install using below command

[root@experts ~]#yum -y groupinstall “Desktop” “Desktop Platform” “X Window System” “Fonts”

After that change default boot level to 5 by editing in  /etc/inittab

[root@experts ~]# vi /etc/inittab 


Save & Exit!

or use init 5 to swtich over from any boot level to level 5 (graphical mode)


Step 1:

Install  tigervnc-server using below command

[root@experts ~]#yum install tigervnc-server*

Step 2:

Set VNC server password for root and test (users)

set the password for root user

[root@experts ~]#vncpasswd

set the password for test user

[root@experts ~]#su – test

[root@experts ~]$vncpasswd

Step 3:

create a vnc session on default port number or userdefine one. VNC profile will be created under userhome/.vnc/

Use below configuration file to control users and session port numbers.

[root@experts ~]#vi /etc/sysconfig/vncservers



 VNCSERVERARGS[2]=”-geometry 800×600″

 VNCSERVERARGS[3]=”-geometry 800×600″

Save & Exit!.

start vncserver using below command and set it ON at default boot .

[root@experts ~]#service vncserver start/stop/restart

Step 4:

Login to client machine (source), in our guide we are going to use windows 7 with tight-vnc-viewer.

Invoke VNC-viwer -> IPaddress:port

Thanks for watching , for more details visit us

Leave a Reply

Your email address will not be published. Required fields are marked *

91 − 81 =