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)
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
- Although a pull request has been made and merged regarding this issue, it has not been resolved.
- https://github.com/raspberrypi/documentation/issues/3353
- 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=truealso enables encryption. - Setting
enable_auth=falseallows connection from NoVNC. - There's no option to enable simple password authentication without requiring encryption.
- Tried setting the
relax_encryptionoption, 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>
Please rate this article
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.