Steps to configure VNC server on CentOS:
//First verify version & redhat-release by following command:
[[email protected] ~]# cat /proc/version
[[email protected] ~]# cat /etc/redhat-release
//Install required packages:
[[email protected] ~]# yum -y install tigervnc-server xorg*
[[email protected] ~]# yum groupinstall “General Purpose Desktop” ñy
OR
You can download repected rpm of “tigervnc-server, xorg & General Purpose Desktop” from web.
[[email protected] ~]# vncpasswd
Password: supp0rt
Verify: supp0rt
//Edit this file as below
[[email protected] ~]# nano /etc/sysconfig/vncservers
VNCSERVERS=”2:root”
VNCSERVERARGS[2]=”-geometry 1024◊800″
//Restart VNC-Server services by issuing following command:
[[email protected] ~]# service vncserver stop
[[email protected] ~]# service vncserver start
OR
[[email protected] ~]# service vncserver restart
//Edit this file as below
[[email protected] ~]# nano .vnc/xstartup
twm & //comment last line.
exec gnome-session & //add this line
//Stop all iptables.
[[email protected] ~]# /etc/init.d/iptables stop
//Restart VNC-Server services by issuing following command:
[[email protected] ~]# service vncserver stop
[[email protected] ~]# service vncserver start
OR
[[email protected] ~]# service vncserver restart
//Access vnc from browser:
URL: :5802
OR
You can use VNC Viewer to take access.
You will get GUI of the same server.