useradd vncuser
passwd vncuser
yum groupinstall ” X Window System” “GNOME Desktop Environment”
yum install vnc-server
vi /etc/sysconfig/vncservers
VNCSERVERS=”1:vncuser”
VNCSERVERARGS[2]=”-geometry 1024×768 -nolisten tcp -nohttpd”
service vncserver start
chkconfig vncserver on /* auto start at boot */
vi /home/vncuser/.vnc/xstartup
exec gnome-session &
su vncuser
vncpasswd
tail -f /home/vncuser/.vnc/hostname:1.log
.vnc/xstartup: Permission denied
chmod + x /home/vncuser/.vnc/xstartup
service vncserver restart