VNC on Raspberry Pi OS Bookworm (Debian 12) Cannot Connect from Mac, and Cursor Behavior Rotates when Screen is Rotated

Raspberry-Pi
2024-09-19 03:24 (18 months ago)
Sideways Cursor
Play a song themed on this article

This is a memo detailing the findings from installing Raspberry Pi OS Bookworm (Debian 12) on a Raspberry Pi and using VNC.

Overview

The GUI environment has been changed from X11 to Wayland (this seems to have been changed around Buster).

The VNC server has been changed from RealVNC to WayVNC.

Issues Arising from the Switch to WayVNC

  • Cannot connect from the standard "Screen Sharing" app on Mac
    • You can connect by using a RealVNC client.
  • Cursor behavior rotates when the screen on the Raspberry Pi is rotated
  • Tried installing NoVNC on the Raspberry Pi to use it from a browser, but the connection is not established by default.
    • Possibly due to encryption on the WayVNC side.
    • In WayVNC settings, setting enable_auth=true also enables encryption.
    • Setting enable_auth=false allows connection from NoVNC.
    • There's no option to enable simple password authentication without requiring encryption.
    • Tried setting the relax_encryption option, but it didn't work.

WayVNC

Configuration File

/etc/wayvnc/config

Configuration File Documentation

https://github.com/any1/wayvnc/blob/master/wayvnc.scd

Restarting (to apply settings)

sudo systemctl restart wayvnc

NoVNC

Installation

sudo apt install novnc

How to Start

/usr/share/novnc/utils/novnc_proxy <options>

Categories

Archive