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.

**************************************************************

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: