Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/08/2019, à 20:59

Squaria-sama

Vncserver avec gnome ne fonctionne pas à cause de Gnome Shell

Bonjour,
j'essaye actuellement d'installer un vncserver (tigervncserver) avec l'interface GNOME sur ubuntu 18.04 server. Malheureusement je rencontre un blackscreen lors de ma connexion avec TigerVNC viewer sur windows.

Après de nombreuses recherches en essayant de changer chaques paramètres dans .vnc/xstartup
J'ai d'abord essayé ceci :

#!/bin/sh 
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &

puis :

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export XDG_MENU_PREFIX="gnome-flashback-"

gnome-session --session=gnome-flashback-metacity --disable-acceleration-check &

Dans le debug j'ai à la fin de l'execution de :

gnome-session --session=gnome-flashback-metacity --disable-acceleration-check --debug &

Ceci :

gnome-session-binary[8740]: DEBUG(+): fill: *** Getting session 'gnome-flashback-metacity'
gnome-session-binary[8740]: DEBUG(+): fill: *** Looking if /home/guy/.config/gnome-session/sessions/gnome-flashback-metacity.session is a valid session file
gnome-session-binary[8740]: WARNING: Cannot use session '/home/guy/.config/gnome-session/sessions/gnome-flashback-metacity.session': no 'GNOME Session' group.
gnome-session-binary[8740]: DEBUG(+): fill: *** Looking if /etc/xdg/gnome-session/sessions/gnome-flashback-metacity.session is a valid session file
gnome-session-binary[8740]: DEBUG(+): Cannot use session '/etc/xdg/gnome-session/sessions/gnome-flashback-metacity.session': non-existing or invalid file.
gnome-session-binary[8740]: DEBUG(+): fill: *** Looking if /usr/local/share/gnome-session/sessions/gnome-flashback-metacity.session is a valid session file
gnome-session-binary[8740]: DEBUG(+): Cannot use session '/usr/local/share/gnome-session/sessions/gnome-flashback-metacity.session': non-existing or invalid file.
gnome-session-binary[8740]: DEBUG(+): fill: *** Looking if /usr/share/gnome-session/sessions/gnome-flashback-metacity.session is a valid session file
gnome-session-binary[8740]: DEBUG(+): Cannot use session '/usr/share/gnome-session/sessions/gnome-flashback-metacity.session': non-existing or invalid file.
gnome-session-binary[8740]: DEBUG(+): fill: *** Looking if /var/lib/snapd/desktop/gnome-session/sessions/gnome-flashback-metacity.session is a valid session file
gnome-session-binary[8740]: DEBUG(+): Cannot use session '/var/lib/snapd/desktop/gnome-session/sessions/gnome-flashback-metacity.session': non-existing or invalid file.
gnome-session-binary[8740]: CRITICAL: We failed, but the fail whale is dead. Sorry....

Lorsque j'exécutais à part sans --session (même chose avec --session=ubuntu vu sur un autre tutoriel) :

gnome-session --disable-acceleration-check --debug

j'ai découvert que gnome shell pose problème :

gnome-session-binary[8754]: DEBUG(+): GsmManager: starting app '/org/gnome/SessionManager/App1'
gnome-session-binary[8754]: DEBUG(+): Starting app: /org/gnome/SessionManager/App1
gnome-session-binary[8754]: DEBUG(+): GsmAutostartApp: starting org.gnome.Shell.desktop: command=/usr/bin/gnome-shell startup-id=10a15fc26ba777d6cf156580806641142800000087540000
gnome-session-binary[8754]: DEBUG(+): GsmAutostartApp: started pid:8769
gnome-session-binary[8754]: DEBUG(+): GsmAutostartApp: (pid:8769) done (status:1)
gnome-session-binary[8754]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
gnome-session-binary[8754]: DEBUG(+): Re-starting app: /org/gnome/SessionManager/App1
gnome-session-binary[8754]: DEBUG(+): Starting app: /org/gnome/SessionManager/App1
gnome-session-binary[8754]: DEBUG(+): GsmAutostartApp: starting org.gnome.Shell.desktop: command=/usr/bin/gnome-shell startup-id=10a15fc26ba777d6cf156580806641142800000087540000
gnome-session-binary[8754]: DEBUG(+): GsmAutostartApp: started pid:8772
gnome-session-binary[8754]: DEBUG(+): GsmAutostartApp: (pid:8772) done (status:1)
gnome-session-binary[8754]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
gnome-session-binary[8754]: DEBUG(+): Re-starting app: /org/gnome/SessionManager/App1
gnome-session-binary[8754]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
gnome-session-binary[8754]: CRITICAL: We failed, but the fail whale is dead. Sorry....

S'il est possible de voir en détail pourquoi Gnome Shell crash (

'org.gnome.Shell.desktop' exited with code 1

), dites le moi, merci d'avoir pris le temps de me lire ^^.

Dernière modification par Squaria-sama (Le 15/08/2019, à 10:46)

Hors ligne

#2 Le 22/08/2019, à 13:11

Squaria-sama

Re : Vncserver avec gnome ne fonctionne pas à cause de Gnome Shell

J'ai de nouveau fait des recherches mais sans succès. Si quelqu'un à un moyen de résoudre une des erreurs que je rencontre, s'il-vous-plaît dites le moi.

J'ai essayé de lancer gnome-shell directement et j'ai cette erreur :

xxx@xxx:~$ gnome-shell
Window manager warning: Unsupported session type

J'ai essayé avec wayland :

xxx@xxx:~$ XDG_SESSION_TYPE=wayland nohup dbus-run-session gnome-session
nohup: les entrées sont ignorées et la sortie est ajoutée à 'nohup.out'
xxx@xxx:~$ cat nohup.out
dbus-daemon[15008]: [session uid=1000 pid=15008] Activating service name='org.freedesktop.systemd1' requested by ':1.1' (uid=1000 pid=15009 comm="/usr/lib/gnome-session/gnome-session-binary ")
dbus-daemon[15008]: [session uid=1000 pid=15008] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[15008]: [session uid=1000 pid=15008] Activating service name='org.freedesktop.systemd1' requested by ':1.3' (uid=1000 pid=15009 comm="/usr/lib/gnome-session/gnome-session-binary ")
dbus-daemon[15008]: [session uid=1000 pid=15008] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[15008]: [session uid=1000 pid=15008] Activating service name='org.freedesktop.systemd1' requested by ':1.5' (uid=1000 pid=15009 comm="/usr/lib/gnome-session/gnome-session-binary ")
dbus-daemon[15008]: [session uid=1000 pid=15008] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[15008]: [session uid=1000 pid=15008] Activating service name='org.freedesktop.systemd1' requested by ':1.7' (uid=1000 pid=15009 comm="/usr/lib/gnome-session/gnome-session-binary ")
dbus-daemon[15008]: [session uid=1000 pid=15008] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[15008]: [session uid=1000 pid=15008] Activating service name='org.freedesktop.systemd1' requested by ':1.9' (uid=1000 pid=15009 comm="/usr/lib/gnome-session/gnome-session-binary ")
dbus-daemon[15008]: [session uid=1000 pid=15008] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[15008]: [session uid=1000 pid=15008] Activating service name='org.freedesktop.systemd1' requested by ':1.11' (uid=1000 pid=15009 comm="/usr/lib/gnome-session/gnome-session-binary ")
dbus-daemon[15008]: [session uid=1000 pid=15008] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[15008]: [session uid=1000 pid=15008] Activating service name='org.freedesktop.systemd1' requested by ':1.12' (uid=1000 pid=15009 comm="/usr/lib/gnome-session/gnome-session-binary ")
dbus-daemon[15008]: [session uid=1000 pid=15008] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[15008]: [session uid=1000 pid=15008] Activating service name='org.gtk.vfs.Daemon' requested by ':1.13' (uid=1000 pid=15045 comm="/usr/lib/gnome-initial-setup/gnome-initial-setup-c")
dbus-daemon[15008]: [session uid=1000 pid=15008] Successfully activated service 'org.gtk.vfs.Daemon'
A connection to the bus can't be made

J'ai essayé de renommer le dossier .config en old_.config mais cela n'as rien changé.

Dernière modification par Squaria-sama (Le 22/08/2019, à 14:11)

Hors ligne