VNC Server Installation




Step 1

## CentOS5
yum install vncserver
## CentOS6
yum install tigervnc-server

Yum Install VNC server, you need to set the password during the installation
You need have X-window 1st , if not , try
yum grouplist
yum groupinstall "GNONE Desktop Environment"




Step 2

vi /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"

Modify config file.




Step 3

vncpasswd

/etc/init.d/vncserver start
chkconfig vncserver on

Set password , you can remove it reset
rm ~/.vnc/passwd
Start the server session 1 with port 5901




Step 4

# Comment all in the config file without above. It help to launch desktop GUI VNC.
vi /root/.vnc/xstartup
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

/etc/init.d/vncserver restart

Set up to Launch normal desktop of VNC

Then, in client OS, open vncviewer to 'serverip:5901'


Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.