I'm running CentOS5.6 and am attempting to configure VNC. I edited /etc/sysconfig/vncservers to read as follows:
VNCSERVERS="2:paul 3:sid"
VNCSERVERARGS[2]="-geometry 800x600"
VNCSERVERARGS[3]="-geometry 800x600"
When I try to start or stop vncserver, I receive the message
starting VNC server 2:paul [FAILED]
I created xstartup as follows:
#!/bin/sh
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startx &
exec gnome-session &
What additional steps are required to successfully start vncserver and allow remote access to the GNOME desktop?
Maybe you have a problem with the init script. Login as
paul
orsid
and start a separate VNC session with$ vncserver :2
or$ vncserver :3
.