Je suis ravin des problèmes d'obtenir mon bureau Gnome pour charger via vnc
au départ, j'ai suivi ce guide pour xfce vnc https://www.digitalocean.com/community/tatudials/how-a-install-and-configure-vnc-on-ubuntu-18-04
travailler xfce config:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
/usr/bin/autocutsel -s CLIPBOARD -fork
vncconfig -iconic &
x-terminal-emulator -geometry 80x24x10x10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
j'essaie de changer cela pour permettre à ma session Gnome:
J'ai trouvé une configuration de: Comment faire fonctionner le serveur VNC avec Ubuntu-Desktop sans Xfce
export XKL_XMODMAP_DISABLE=1
# unset SESSION_MANAGER
# unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24x10x10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
Cela me fait un écran gris mais Nautilus fonctionne (une sorte de oui)
mon journal ressemble à:
25/01/20 16:12:35 Xvnc version TightVNC-1.3.10
25/01/20 16:12:35 Copyright (C) 2000-2009 TightVNC Group
25/01/20 16:12:35 Copyright (C) 1999 AT&T Laboratories Cambridge
25/01/20 16:12:35 All Rights Reserved.
25/01/20 16:12:35 See http://www.tightvnc.com/ for information on TightVNC
25/01/20 16:12:35 Desktop name 'X' (Ubuntu-server:1)
25/01/20 16:12:35 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
25/01/20 16:12:35 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
No VNC extension on display :1
/home/dev/.vnc/xstartup: 14: /home/dev/.vnc/xstartup: gnome-settings-daemon: not found
** (gnome-panel:3635): WARNING **: 16:12:36.071: Failed to request name: the name already has an owner
metacity-Message: 16:12:36.101: could not find XKB extension.
(metacity:3637): metacity-WARNING **: 16:12:36.105: Failed to create MetaCompositorXRender: Missing composite extension required for compositing
25/01/20 16:12:40 Got connection from client 192.168.0.5
25/01/20 16:12:40 Using protocol version 3.8
25/01/20 16:12:40 Full-control authentication passed by 192.168.0.5
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 24
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 16
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 22
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 21
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 15
25/01/20 16:12:40 Using zlib encoding for client 192.168.0.5
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding -314
25/01/20 16:12:40 Enabling full-color cursor updates for client 192.168.0.5
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding -223
25/01/20 16:12:40 Pixel format for client 192.168.0.5:
25/01/20 16:12:40 8 bpp, depth 6
25/01/20 16:12:40 true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
25/01/20 16:12:40 Using raw encoding for client 192.168.0.5
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 24
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 22
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 21
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 16
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 15
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding -314
25/01/20 16:12:40 Enabling full-color cursor updates for client 192.168.0.5
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding -223
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 24
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 16
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 22
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 21
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding 15
25/01/20 16:12:40 Using zlib encoding for client 192.168.0.5
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding -314
25/01/20 16:12:40 Enabling full-color cursor updates for client 192.168.0.5
25/01/20 16:12:40 rfbProcessClientNormalMessage: ignoring unknown encoding -223
25/01/20 16:12:40 Pixel format for client 192.168.0.5:
J'ai fait des recherches et j'ai vu utiliser Gnome Flashback pourrait être la voie à suivre
changé ma configuration à:
#!/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 --debug &
le journal a l'air meilleur mais non existant ou non valide:
25/01/20 21:25:19 Xvnc version TightVNC-1.3.10
25/01/20 21:25:19 Copyright (C) 2000-2009 TightVNC Group
25/01/20 21:25:19 Copyright (C) 1999 AT&T Laboratories Cambridge
25/01/20 21:25:19 All Rights Reserved.
25/01/20 21:25:19 See http://www.tightvnc.com/ for information on TightVNC
25/01/20 21:25:19 Desktop name 'X' (Ubuntu-server:1)
25/01/20 21:25:19 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
25/01/20 21:25:19 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
gnome-session-binary[2658]: DEBUG(+): Enabling debugging
gnome-session-binary[2658]: DEBUG(+): hardware acceleration check is disabled
gnome-session-binary[2658]: DEBUG(+): Using systemd for session tracking
gnome-session-binary[2658]: DEBUG(+): GsmManager: setting client store 0x56286684db70
gnome-session-binary[2658]: DEBUG(+): GsmXsmpServer: SESSION_MANAGER=local/Ubuntu-server:@/tmp/.ICE-unix/2658,unix/Ubuntu-server:/tmp/.ICE-unix/2658
gnome-session-binary[2658]: DEBUG(+): emitting SessionIsActive
gnome-session-binary[2658]: DEBUG(+): fill: *** Getting session 'gnome-flashback-metacity'
gnome-session-binary[2658]: DEBUG(+): fill: *** Looking if /home/dev/.config/gnome-session/sessions/gnome-flashback-metacity.session is a valid session file
gnome-session-binary[2658]: DEBUG(+): Cannot use session '/home/dev/.config/gnome-session/sessions/gnome-flashback-metacity.session':
Je suis assez nouveau à Linux et Ubuntu, et travaillez avec ma boîte Ubuntu sans tête via un ordinateur portable Windows
Quelqu'un peut-il aider?
Acclamations
S'avère que je devais me connecter directement à la boîte, puis vous déconnecterez-vous à la session GNOME Flashback. Déconnectez-vous ensuite rétrécitivement VNC et fonctionne bien