Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problem with gnome startup under vnc

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
dort
Posts: 4
Joined: 2018-02-03 01:46

Problem with gnome startup under vnc

#1 Post by dort »

I am trying to run my system headless with vnc, and am encountering a problem I hope you can help me with.

My setup:

I am running stretch: Linux debian-dev 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux

Everything should be pretty much out of the box EXCEPT that I do have AMD proprietary drivers installed for my GPU.

What I am trying to do:
I am trying to get a desktop using tiger vnc with the server running on my debian system, and the viewer on windows.

*I actually don't care that much what my window manager is by the way*, so solutions that don't involve gnome are A-OK too.
*Nor am I particularly tied to TigerVNC*

Here is my .vnc/xstartup script:

#!/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" &
exec gnome-session &

My problem:
When I connect from the windows side I get a usable xterm, but the desktop is just gray, and there are no things like borders on the xterm, or even a system menu.

Looks like gnome didn't start right I guess. So, looking at /var/log/syslog:
Feb 11 10:02:36 debian-dev gnome-session[1700]: libGL error: unable to load driver: swrast_dri.so
Feb 11 10:02:36 debian-dev gnome-session[1700]: libGL error: failed to load driver: swrast
Feb 11 10:02:36 debian-dev gnome-session[1700]: libGL error: unable to load driver: swrast_dri.so
Feb 11 10:02:36 debian-dev gnome-session[1700]: libGL error: failed to load driver: swrast
Feb 11 10:02:36 debian-dev gnome-session[1700]: X Error of failed request: BadValue (integer parameter out of range for operation)
Feb 11 10:02:36 debian-dev gnome-session[1700]: Major opcode of failed request: 152 (GLX)
Feb 11 10:02:36 debian-dev gnome-session[1700]: Minor opcode of failed request: 3 (X_GLXCreateContext)
Feb 11 10:02:36 debian-dev gnome-session[1700]: Value in failed request: 0x0
Feb 11 10:02:36 debian-dev gnome-session[1700]: Serial number of failed request: 22
Feb 11 10:02:36 debian-dev gnome-session[1700]: Current serial number in output stream: 25
Feb 11 10:02:36 debian-dev gnome-session[1700]: gnome-session-check-accelerated: GL Helper exited with code 256
Feb 11 10:02:36 debian-dev gnome-session[1700]: Xlib: extension "DRI2" missing on display ":3".
Feb 11 10:02:36 debian-dev gnome-session[1700]: Xlib: extension "DRI2" missing on display ":3".
Feb 11 10:02:36 debian-dev kernel: [ 1012.783274] gnome-session-c[1719]: segfault at 18 ip 00007fe4e46b69ad sp 00007ffe80ea3b40 error 4 in libdrm_amdgpu.so.1.0.0[7fe4e46af000+d000] <------"Hmmmm"
Feb 11 10:02:36 debian-dev gnome-session[1700]: gnome-session-binary[1700]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Feb 11 10:02:36 debian-dev gnome-session-binary[1700]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Feb 11 10:02:36 debian-dev gnome-session[1700]: gnome-session-binary[1700]: WARNING: Could not parse desktop file xscreensaver.desktop or it references a not found TryExec binary
Feb 11 10:02:36 debian-dev gnome-session-binary[1700]: WARNING: Could not parse desktop file xscreensaver.desktop or it references a not found TryExec binary
Feb 11 10:02:36 debian-dev gnome-keyring-pkcs11.desktop[1724]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
Feb 11 10:02:36 debian-dev gnome-session[1700]: gnome-session-binary[1700]: CRITICAL: gsm_manager_set_phase: assertion 'GSM_IS_MANAGER (manager)' failed
Feb 11 10:02:36 debian-dev gnome-session-binary[1700]: CRITICAL: gsm_manager_set_phase: assertion 'GSM_IS_MANAGER (manager)' failed
Feb 11 10:02:36 debian-dev gnome-keyring-ssh.desktop[1726]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
Feb 11 10:02:36 debian-dev gnome-keyring-secrets.desktop[1727]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh

So yup, looks like something is not loaded properly.

What I've tried:
Googled the crap out of this and the best lead was to load the packages (that supposedly contain) those drivers:
libgl1-mesa-dri
mesa-utils

This makes NO difference.

I would appreciate any help or tips you can give me.

Post Reply