[CentOS] vncserver does not start gnome-sessioin automatically

Mon Mar 31 13:44:57 UTC 2014
Yawei Guo <ywguo527 at gmail.com>

Hi Miranda,

I had not killed my vnc server and restarting it each time I changed my
xstartup. I thought that would reset xstartup to the original one. And I
did not understand how vnc server work. Now gnome session appears after I
kill and restart my vnc server. Thank you very much. You are so nice.


Yawei


2014-03-29 16:23 GMT+08:00 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
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>