Sep 24, 2008

Linux remote desktop using VNC

Steps:
1.install vncserver

[[email protected] ~]#yum install vncserver

2.startup vncserver

[[email protected] ~]# service vncserver start
Starting VNC server: no displays configured [ OK ]

3.change environment who user you want to login

[[email protected] ~]#su – root

4.startup a vncserver instance and assign login password

[[email protected] ~]# 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.

[[email protected] ~]# 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