It is not easy to find how to configure VNC server to start at boot with the following requirements:
- Provides direct control of the local X session which (usually) is running on the physical monitor.
Most of the guides are about virtual screen rather than a physical one. - Works on login screen after boot.
- It works even without logged in user.
The solution works on linux distributions which are using display manager LightDM. Init systems systemd or SysV init.
- MX Linux 19.1
- Debian 10 with Xfce
- Kali Linux 2020.1b