You may also need to edit the vncserver configuration file, I think it's called /etc/sysconfig/vncservers so it has an entry for the users you want to start vnc for or the startup may fail (can't remember exactly what happens)
eg/
vi /etc/sysconfig/vncservers
VNCSERVERS="1:myusername"
VNCSERVERARGS[4]="-geometr
The user `myusername` will then need to assign a password using vncpasswd.
For gnome to start you may also need to edit the .vnc file in the users home directory;
eg/
vi ~myusername/.vnc/xstartup
change the twn& (or whatever it is) to;
gnome-session &
Once VNC is started you should be able to connect to the desktop defined in the vncservers file, eg `vncviewer 192.168.1.1:1`
J
Main Topics
Browse All Topics





by: nedvisPosted on 2006-05-08 at 19:06:42ID: 16635893
In order to connect to your CentOS 4,3 box from remote PC via VNC viewer you have to make sure VNC server is running on CentOS box. VNC server service can be launched in any of four user levels ( 2,3,4,5 ) via init scripts.
In CentOS 4,3 terminal windows type :
chkconfig --list
( to get the list of all services currently running )
To make sure also VNC server is ruining in runlevel(s) you're most likely to use type:
chkconfig --level 235 vncserver on
which will add lines to init scripts for vnc server to be launched in runlevels 2, 3 and 5 ( 2-single user text mode, 3-multiuser text mode and 5-multiuser GUI mode) .
good luck
nedvis