problem: need VNC Access to your Linux machine before user log in?
solution:
apt-get -y remove vino
apt-get -y install x11vnc
mkdir /etc/x11vnc
x11vnc --storepasswd /etc/x11vnc/vncpwd
# *******
# *******
# Y
nano /lib/systemd/system/x11vnc.service
[Unit]
Description=x11vnc VNC Server for X11
Requires=lightdm.service
After=lightdm.service
[Service]
Type=forking
ExecStart=/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -display WAIT:0 -ncache 10 -forever -nevershared -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -xkb -norc -noxrecord -noxdamage -nomodtweak
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
Restart-sec=2
[Install]
WantedBy=graphical.target
systemctl daemon-reload
systemctl enable x11vnc.service
systemctl start x11vnc.service || reboot
done.
on OSX, for example, connect with RealVNC Viewer