Can't get gnome-session to work in vncserver

I have followed the instructions at TightVNC (VNC Xvnc) on openSUSE as Client or Server (Remote Desktop Connections). I have also successfully configured vnc servers to use both Gnome and KDE on many machines; this is the first time I’ve had trouble.

Here is my xstartup file:

#!/bin/sh

-r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title “$VNCDESKTOP Desktop” &
/usr/bin/gnome &

And here is the output from the log file:

Couldn’t open RGB_DB ‘/usr/X11R6/lib/X11/rgb’

Xvnc Free Edition 4.1.3 - built Oct 15 2008 12:55:42
Copyright (C) 2002-2008 RealVNC Ltd.
See RealVNC - VNC® remote control software for information on VNC.
Underlying X server release 40201000, The XFree86 Project, Inc

Fri Dec 10 17:58:47 2010
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
xsetroot: unknown color “grey”
Xlib: extension “RANDR” missing on display “:1.0”.
libxcb: WARNING! Program tries to unlock a connection without having acquired
a lock first, which indicates a programming error.
There will be no further warnings about this issue.
libxcb: WARNING! Program tries to lock an already locked connection,
which indicates a programming error.
There will be no further warnings about this issue.
vncconfig: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)’ failed.
gnome-session[27371]: WARNING: Failed to acquire org.gnome.SessionManager
gnome-session[27371]: ******************* START ********************************
gnome-session[27371]: Frame 0: gnome-session [0x805d975]
gnome-session[27371]: Frame 1: gnome-session [0x805db24]
gnome-session[27371]: Frame 2: [0xffffe400]
gnome-session[27371]: Frame 3: gnome-session [0x805f52c]
gnome-session[27371]: Frame 4: /lib/libc.so.6(__libc_start_main+0xe5) [0xb6b3a705]
gnome-session[27371]: Frame 5: gnome-session [0x8050041]
gnome-session[27371]: ******************* END **********************************
joebacon@chixserverqa:~/.vnc>

Hi

This is how my file xstartup.sh looks in Gnome on openSUSE 11.3:

#!/bin/sh

#xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title “$VNCDESKTOP Desktop” &
#twm &
/usr/bin/gnome &

So try this:

#!/bin/sh
/usr/bin/gnome &

Hi, I have similar issue on SLES 12.1, however applying above fixes did not help me. Looks like my xstartup file was not used when logging in vi VNC

This is openSUSE forum not the SUSE fourm

please ask here

https://forums.suse.com/forum.php