How to enable remote desktop¶
Mir supports remote desktops via the VNC protocol. To demo this, you’ll use
wayvnc - a VNC server.
Install
wayvnc:sudo apt install wayvnc
Install your preferred VNC client.
Start the compositor with all extensions enabled:
miral-app --add-wayland-extensions all
Note: Due to security reasons, some Wayland extensions needed by on-screen keyboards are disabled by default. In this how-to, we override this setting by passing
--add-wayland-extensions allwhen launchingmiral-app. passing a--add-wayland-extensions allflag when launching an example application.In the shell, open the terminal and run
wayvnc:wayvnc
A
wayvncserver will start and will listen tolocalhost.Run your VNC client and connect to
localhost. You will see the exact same view in both the Mir compositor and the VNC viewer.