Configuration of VNC-Server on CentOS 5.7 & Prior Versions of CentOS 5.9

Steps to configure VNC server on CentOS:

//First verify version & redhat-release by following command:

[root@centos ~]# cat /proc/version
[root@centos ~]# cat /etc/redhat-release

 

//Install required packages:
[root@centos ~]# yum install vnc* -y
[root@centos ~]# yum groupinstall "GNOME Desktop Environment" -y
OR
You can download repected rpm of vnc & GNOME Desktop environment from web.

[root@centos ~]# vncpasswd
Password: supp0rt
Verify: supp0rt

 

//Edit this file as below
[root@centos ~]# nano /etc/sysconfig/vncservers
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1024×800"

 

//Restart VNC-Server services by issuing following command:

[root@centos ~]# service vncserver stop
[root@centos ~]# service vncserver start
OR
[root@centos ~]# service vncserver restart

 

//Edit following file, Remove comments
[root@centos ~]# nano .vnc/xstartup
unset SESSION_MANAGER // Remove comment
exec /etc/X11/xinit/xinitrc // Remove comment

 

//Stop all iptables.
[root@centos ~]# /etc/init.d/iptables stop

 

//Restart VNC-Server services again by issuing following command:
[root@centos ~]# service vncserver stop
[root@centos ~]# service vncserver start
OR
[root@centos ~]# service vncserver restart

 

//Access vnc from browser:
URL: <IP_address>:5802
OR
You can use VNC Viewer to take access.

You will get GUI of the same server.

**************************************************************
Note: Please don’t hesitate to revert in case of any query OR feedback.
Thanking you.
Have a easy life ahead.

This entry was posted in Linux and tagged .

Leave a Reply