yum -y install tigervnc-server
chkconfig vncserver on
service vncserver start
* Edit /etc/sysconfig/vncservers and change lines as follows (username is your linux user for the VNC session):
VNCSERVERS="2:username"
VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -localhost"
* Edit /home/username/.vnc/xstartup * Note you can have users 1-9 and make each will connect to their VNC session at port 590n (some VNC clients 'know' the end of 590 part and only have you enter n)* Run vncpasswd for each user in VNCSERVERS= list; this performs the file look as follows:initial user setup. # twm &* Start and stop vncserver to initialize vnc for each configured user startx &* Stop and service vncserver start vncserver:
service vncserver stop
* Edit /home/username/.vnc/xstartup and change the end of the file:
twm &
To:
exec gnome-session &
* Now finally start vncserver for real!
service vncserver start
* Start VNC on reboot (do this as your linux user for the VNC session):
crontab -e
@reboot vncserver
* Run your VNC Client and enter hda:1 as the host/IP address. You should now see your HDA Desktop screen.