mardi 30 décembre 2014

VNC into login screen (instead of user's desktop)


I'm using RasPi B+ with Raspian from Noobs, lightdm, lxde




There are various descriptions out there on how to set up TightVNC on a RasPi, most of them VNC into root's desktop or another pre-specified user's desktop. I would like to see the lightdm login screen instead when connecting via VNC. Reasons:



  • flexibility: not being limited to a specific user (especially not root)

  • functionality: those recipes force a user, then use startx or the like, which gives you a slightly crippled lxde session (no permission to mount USB devices, no reboot/shutdown).


I was able to set something like this up using x11vnc, using recipes like:



This starts x11vnc together with lightdm and mirrors the main desktop over to VNC. Drawbacks:



  • performance: x11vnc is considerably slower than tightvnc. I've played with the x11vnc flags for a day, but have to reduce quality a lot to get somewhere near the performance of tightvnc.

  • boot performance: having to boot into lightdm instead of command line adds about 10secs on boot time.

  • CPU load: x11vnc constantly uses about 15-30% CPU


Is there a way to get TightVNC to load the lightdm login screen? I reckon I need to modify the line /usr/bin/lxsession -s LXDE & in ~/.vnc/xstartup, but unsure how. Any help appreciated!



Aucun commentaire:

Enregistrer un commentaire