Saturday, November 15, 2008

setting up VNC in the centos

note ::
all the command start with either : -
# = super user
$ = normal user

stop the vnc server
#/etc/init.d/vncserver stop

modify the /etc/sysconfig/vncservers
#vi /etc/sysconfig/vncservers
add below 2 lines: -

VNCSERVERS="3:hackintosh"
VNCSERVERSARGS[3]="-geometry 1024x800"

note: hackintosh must an user in the system

login as hackintosh and then issue this command:
$vncpasswd
then, change your vnc password

Then, try the below command and see the information is correct or not :-
$vncserver -httpd

if you see the below message that mean the hackintosh user are allow to use the VNC
xauth: creating new authority file /home/hackintosh/.Xauthority
New 'hackintosh.com:3 (hackintosh)' desktop is hackintosh.com:3
Creating default startup script /home/hackintosh/.vnc/xstartup
Starting applications specified in /home/hackintosh/.vnc/xstartup
Log file is /home/hackintosh/.vnc/hackintosh.com:3.log

Then, restart vnc server。
#/etc/init.d/vncserver restart

Then, you will see the messages some sort like below : -
Starting VNC server: 3:hackintosh
New 'hackintosh.com:3 (hackintosh)' desktop is hackintosh:3

Starting applications specified in /home/hackintosh/.vnc/xstartup
Log file is /home/hackintosh/.vnc/hackintosh.com:3.log

[ OK ]


you see the above message the hackintosh.com:3 that mean you use the port 5903 to connect to server :P

simple enough :P

No comments: