J'essaie de configurer VNC sur lightdm afin que plusieurs utilisateurs puissent se connecter au serveur et avoir chacun leur propre session. J'utilise TightVNC Viewer à partir d'une machine Windows pour me connecter à la machine virtuelle Ubuntu (VMware sur un serveur). L'unité s'affiche, je peux entrer mes informations d'identification, mais le bureau ne se charge plus, tout ce que je reçois est un écran vide avec un fond d'écran. J'ai aussi essayé le lightdm-gtk-greeter, avec le même résultat.
Voici mon /etc/lightdm/lightdm.conf:
[SeatDefaults]
allow-guest=false
greeter-hide-users=true
greeter-show-manual-login=true
autologin-guest=false
# More sessions at /usr/share/xsessions/
user-session=gnome-fallback
# More greeters at /usr/share/xgreeters/
# greeter-session=lightdm-gtk-greeter
greeter-session=unity-greeter
[XDMCPServer]
enabled=true
port=177
[VNCServer]
enabled=true
command=/usr/bin/Xvnc -rfbauth /etc/vncpasswd
port=5900
width=1280
height=1024
depth=24
Notez la session utilisateur: j'essaie de me connecter à une session gnome-fallback. L'unité-greeter a bien Gnome présélectionné. J'ai également essayé les autres entrées (par exemple, Gnome Classic), avec le même résultat.
Les erreurs sont consignées dans les erreurs ~/.xsession:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 109 (X_ChangeHosts)
Value in failed request: 0x5
Serial number of failed request: 6
Current serial number in output stream: 8
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 109 (X_ChangeHosts)
Value in failed request: 0x5
Serial number of failed request: 6
Current serial number in output stream: 8
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
init: gpg-agent post-stop process (4335) killed by TERM signal
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd respawning too fast, stopped
init: unity-settings-daemon main process (4382) terminated with status 1
init: unity-settings-daemon main process ended, respawning
init: gnome-session (Unity) main process (4391) terminated with status 1
init: unity-settings-daemon main process (4573) killed by TERM signal
init: Disconnected from notified D-Bus bus
Messages dans /var/log/lightdm/lightdm.log immédiatement après la saisie des informations d'identification dans la page d'accueil:
[+971.31s] DEBUG: Session pid=5164: Continue authentication
[+971.92s] DEBUG: Session pid=5220: Authentication complete with return value 0: Success
[+971.92s] DEBUG: Session pid=5164: Authenticate result for user pamberg: Success
[+971.92s] DEBUG: Session pid=5164: User pamberg authorized
[+971.93s] DEBUG: Session pid=5164: Greeter requests default session
[+971.93s] DEBUG: Seat: Stopping greeter; display server will be re-used for user session
[+971.93s] DEBUG: Session pid=5164: Sending SIGTERM
[+971.95s] DEBUG: Session pid=5164: Exited with return value 0
[+971.95s] DEBUG: Seat: Session stopped
[+971.95s] DEBUG: Seat: Greeter stopped, running session
[+971.95s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+971.99s] DEBUG: Session pid=5220: Not setting XDG_VTNR
[+972.00s] DEBUG: Session pid=5220: Running command /usr/sbin/lightdm-session /usr/lib/gnome-panel/gnome-session-flashback
[+972.00s] DEBUG: Creating shared data directory /var/lib/lightdm-data/pamberg
[+972.00s] DEBUG: Session pid=5220: Logging to .xsession-errors
[+972.08s] DEBUG: Activating login1 session c13
[+972.12s] WARNING: Error activating login1 session: GDBus.Error:org.freedesktop.DBus.Error.Failed: Operation not supported
Des idées?
Cela ressemble à ce problème: https://bugs.launchpad.net/lightdm/+bug/1420558 . En bref, la stratégie AppArmor de LightDM n’est pas (à partir d’Ubuntu 14.04.2 LTS) prise en compte de VNC.
Essayez de supprimer /etc/apparmor.d/lightdm-guest-session
.