2

Today I spent 6 hours trying to make vnc work on ubuntu 18.04 with locked screen. Fuck.
Initial problem: can connect via vnc but the screen is black. Fuck;
I switched back the lightdm --> vnc connection works but I can only see the wallpaper. Fuck:
In the end I installed xfce.
Good part: now vnc works even with locked screen.
Bad part: the shell doesn't work anymore. Fuck.
:-)

Comments
  • 0
    Locked screen -- login screen or actual lock screen?
    Does it work w/ unlocked screen?
    Which vnc server?
  • 0
    @netikras Login screen. I tried a bunch of different vnc servers, vinagre, TightVNC, x11vnc, it's not their problem. Other people have the same problem too. The guy in this guide https://c-nergy.be/blog/?p=12220 says there's a trick where you need to use 2 vnc connections, 1 for the login screen and 1 for the desktop environment. I tried but it didn't work.

    With xfce I can vnc but the 'normal' shell doesn't work, I need to use xfce-terminal.
  • 0
    You need to use a different xauth for a login screen. DISPLAY=:0 doesn't work there. When you launch x11vnc there is a lot of text and some of it mentions x's auth. Read through it. You'll have to provide some paths to some files.

    [assuming ofc you're still using X]
  • 1
    @netikras I guesss you're referring to the -auth /run/user/120/gdm/Xauthority thing. I put that.
  • 0
    @Chrupiter is it /run/... now? Not in /var/... any more?
  • 0
    @netikras With lightdm it's var/run, with gdm run/user
Add Comment