Pages

Sunday, May 1, 2011

Configuring VNC

Created by: eng.Abd el Rahman Samy

Log in as root then:

•Set your VNC password by the command:
vncpasswd

•Edit /etc/sysconfig/vncservers so that it contains the line:
VNCSERVERS="1:root"

•Enable vncserver as a system service.
chkconfig --level 345 vncserver on

•Start vncserver so it creates the user's xstartup file.
service vncserver start

•Stop vncserver.
service vncserver stop

•Edit /root/.vnc/xstartup and uncomment the first two lines started with ( unset & exec ) to be run.

•Start vncserver.
service vncserver start
Test the connection by running VNC viewer on the windows machine

•Enter server name then session number in the vncviewer as:
:1

No comments:

Post a Comment