Need remote access to help people troubleshoot their computers around the farm. But needs to have access on lock screen even before first user has logged in.
sudo apt install x11vnc
sudo nano /etc/systemd/system/x11vnc.service
[Unit]
Description=x11vnc server
After=display-manager.service
Wants=display-manager.service
[Service]
Type=simple
Environment=HOME=/root
ExecStart=/bin/sh -c 'exec /usr/bin/x11vnc -display :0 -auth "$(ls /run/sddm/xauth_* | head -n1)" -forever -noxdamage -repeat -shared -rfbauth /etc/x11vnc.passwd -rfbport 5900 -o /var/log/x11vnc.log'
Restart=always
RestartSec=3
[Install]
WantedBy=graphical.target
sudo systemctl daemon-reload
sudo systemctl enable --now x11vnc
sudo x11vnc -storepasswd /etc/x11vnc.passwd