Sep 24, 2008

Linux remote desktop using VNC

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.


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.

No comments: