

If you have an enterprise subscription on RealVNC, you can have virtual VNC sessions spawning automatically on demand per-client connection and closing once the client disconnects. Check all logs via journalctl -u vncserver-x11-serviced.

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.

When you see these ttys, then you know those are graphical sessions. Root pts/5 172.20.199.30 13:20 0.00s 0.02s 0.02s wĪs you see, root is logged in from tty pts/5 (from a remote location through a text ssh client) en the rest from :number. When logging in from a nx client, in fact you get a remote display so you see something like this when using 'w' nxserver:~# wġ3:20:33 up 186 days, 5:42, 6 users, load average: 3,97, 4,09, 4,11
