
XRDP uses port 3389 by default, so you need to open/forward it from your router to DietPi. 192.168.0.100.Ĭlick connect and enter the following details once connected: To connect to the desktop, open the remote desktop application in Windows (or any other XRDP compatible client).Įnter the IP address of your DietPi device, e.g. XRDP is a remote desktop application using the Windows Remote Desktop Client. Follow the instructions within the section Running directly rendered apps such as Minecraft remotely in.Then reboot the system to have the changes taking effect.Run dietpi-autostart 2 to autostart into a desktop session and have RealVNC attached to it automatically.systemctl enable -now vncserver-virtuald enables the on demand VNC session daemon.systemctl disable -now vncserver disables the persistent virtual VNC session on screen :1.To enable this, after adding your enterprise subscription credentials, do the following: That way no resource-intense X11/desktop session needs to be persistently active on the server to allow VNC connections. 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. Remote Desktop & Remote Access Remote Desktop & Remote Access Table of contentsīy default DietPi will start a virtual VNC session on boot at screen :1 for user root.
