[CentOS] vncserver does not start gnome-sessioin automatically

Sat Mar 29 08:23:27 UTC 2014
Miranda Hawarden-Ogata <hawarden at ifa.hawaii.edu>

On 2014/03/28 22:00, Yawei Guo wrote:
> Hi Miranda,
>
> The attached  files are xtartup and my log file.
>
> The following is xstartup.
> #!/bin/sh
>
> # Uncomment the following two lines for normal desktop:
> # 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" &
> startkde &
>
>
> Thanks very much.
> Yawei
Try removing all extra lines and using only the following lines in your 
file, since if I recall you are trying to start gnome, not kde, right? 
Also, kde won't work since you did not install it on your 6.x box.

#!/bin/sh
gnome-session &

Another thing, I forgot to check, you are killing your vnc server and 
restarting it each time you change your xstartup, correct? Just 
disconnecting and reconnecting a vncviewer will not change the running 
server, and sometimes people who are not familiar with vnc get confused 
on that point, so I just thought I'd ask (to be safe).

Miranda