1.install vncserver
[root@hostname ~]#yum install vncserver
2.startup vncserver
[root@hostname ~]# service vncserver start
Starting VNC server: no displays configured [ OK ]
3.change environment who user you want to login
[root@hostname ~]#su – root
4.startup a vncserver instance and assign login password
[root@hostname ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'hostname:1 (root)' desktop is hostname:1 http://xx.xx.xx.xx:5801
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/hostname:1.log
5.stop the vncserver instance.
[root@hostname ~]# vncserver -kill :1
6.Modifiy default startup script /root/.vnc/xstartup
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER <= remove the mark
exec /etc/X11/xinit/xinitrc <= remove the mark
7.Use Vnc Client as like OpenVnc and UltraVnc to connect the server.
Resources:
http://forum.icst.org.tw/phpbb/viewtopic.php?t=11500
http://linux.vbird.org/linux_server/0310telnetssh.php#vnc