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: -

VNCSERVERSARGS[3]="-geometry 1024x800"

note: hackintosh must an user in the system

login as hackintosh and then issue this command:
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)' desktop is
Creating default startup script /home/hackintosh/.vnc/xstartup
Starting applications specified in /home/hackintosh/.vnc/xstartup
Log file is /home/hackintosh/.vnc/

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)' desktop is hackintosh:3

Starting applications specified in /home/hackintosh/.vnc/xstartup
Log file is /home/hackintosh/.vnc/

[ OK ]

you see the above message the that mean you use the port 5903 to connect to server :P

simple enough :P

No comments: