wayvnc shares a wlroots-based Wayland desktop over RFB. It attaches to a running session, creates virtual input devices, and supports headless setups.
Overview
wayvnc is a VNC server aimed at wlroots-based Wayland compositors; GNOME, KDE, and Weston are called out as unsupported. It connects to an active Wayland session, adds virtual input devices, and publishes the display through the standard RFB protocol used by VNC clients.
The server can run on headless Wayland sessions, so remote access does not require a physical monitor. By default it listens only on localhost; you can bind more widely when combined with authentication or SSH tunneling as described in the documentation.
Security options include VeNCrypt TLS with X.509 certificates, RSA-AES trust-on-first-use authentication, and legacy DES authentication for older clients that lack newer schemes. Optional PAM integration is mentioned alongside warnings about unencrypted legacy modes.
A Unix control socket and wayvncctl utility expose JSON IPC for runtime queries and automation, including an event-watcher example for reacting to server events from scripts.
Key features
- RFB/VNC screen sharing
- wlroots Wayland compositor support
- Virtual input devices
- Headless session capture
- VeNCrypt TLS and RSA-AES auth
- wayvncctl control socket IPC
- Localhost-only default binding
Use cases
- Remote Sway or wlroots desktops
- Headless Wayland workstation access
- Local VNC via SSH tunnel
- Automated wayvnc control scripts