

If you set SOFTWARE_VNCSERVER_SHARE_DESKTOP=1 in /boot/dietpi.txt or select desktop auto login via dietpi-autostart (index 2), RealVNC server will be started on boot in shared desktop mode, attaching to the first found local desktop session.Ĭheck the service status via systemctl status vncserver-x11-serviced. Restart it via systemctl restart vncserver. When you logout (instead of only closing the VNC Viewer window), the session will exit.

Logs can be viewed via journalctl -t Xvnc:1 -t vncserver and in /root/.vnc/. The screen index can be changed via SOFTWARE_VNCSERVER_DISPLAY_INDEX in /boot/dietpi.txt.

