Raspberry Pi VNC Server Commands
RealVNC Server is available for Raspberry Pi and runs in two modes: service mode (uses the physical console) and virtual mode (creates a virtual display). Use systemctl to manage both.
VNC Server in Service Mode (Physical Console)
# Start / stop
systemctl start vncserver-x11-serviced.service
systemctl stop vncserver-x11-serviced.service
# Enable / disable at boot
systemctl enable vncserver-x11-serviced.service
systemctl disable vncserver-x11-serviced.service
VNC Server in Virtual Mode (Headless)
# Start / stop
systemctl start vncserver-virtuald.service
systemctl stop vncserver-virtuald.service
# Enable / disable at boot
systemctl enable vncserver-virtuald.service
systemctl disable vncserver-virtuald.service
Verify
systemctl status vncserver-x11-serviced.service
Notes
- Service mode shares the Pi's physical desktop; virtual mode creates an independent virtual display.
- Connect with any VNC client (RealVNC Viewer, TightVNC) using the Pi's IP address.
- Enable VNC in Raspberry Pi Configuration > Interfaces before starting the service.