Install VNC Server
|
[root@ns ~]#
yum -y install vnc-server
[root@ns ~]#
vi /etc/sysconfig/vncservers
# line 20: make valid and set as '(diplay number):(user name)' like follwing example
VNCSERVERS="
1:cent
"
# line 21: uncomment and remove '-localhost' like below
# And set any screen resolution you like VNCSERVERARGSStep [1]="-geometry
1024x768
-nolisten tcp -nohttpd"[root@ns ~]#
su - cent
[cent@ns ~]$
vncpasswd
# set VNC password
Password:
# input
Verify:
# verify
[cent@ns ~]$
su -
Password: [root@ns ~]#
/etc/rc.d/init.d/vncserver start
Starting VNC server: 1:cent New 'ns.server-linux.info:1 (cent)' desktop is ns.server-linux.info:1 Creating default startup script /home/cent/.vnc/xstartup Starting applications specified in /home/cent/.vnc/xstartup Log file is /home/cent/.vnc/ns.server-linux.info:1.log
[ OK ]
[root@ns ~]#
vi /home/cent/.vnc/xstartup
# at the bottom: make it comment
#
twm &
# run Ghome
exec gnome-session & [root@ns ~]#
/etc/rc.d/init.d/vncserver restart
Shutting down VNC server: 1:cent
[ OK ]
Starting VNC server: 1:cent New 'ns.server-linux.info:1 (cent)' desktop is ns.server-linux.info:1 Starting applications specified in /home/cent/.vnc/xstartup Log file is /home/cent/.vnc/ns.server-linux.info:1.log
[ OK ]
|
Step [2] | Install VNC viewer on client computer next. Download from the site below to install. http://www.realvnc.com/products/free/4.1/download.html Start VNC viewer after installing. Then following scrren is shown. Input [(Server's hostname or IP address):(display number)] like following example. |
Step [3] | Password is required. Input VNC password you set in the section Step [1]. |
Step [4] | Just connected. |