Skip to content

Instantly share code, notes, and snippets.

@mdrxy
Created October 15, 2024 23:37
Show Gist options
  • Save mdrxy/5690e788b769fec53ba1c074cfedb1d6 to your computer and use it in GitHub Desktop.
Save mdrxy/5690e788b769fec53ba1c074cfedb1d6 to your computer and use it in GitHub Desktop.
Controlling a Raspberry Pi using macOS's Screen Sharing app

You can bypass needing to install VNC Viewer and use the macOS's built-in Screen Sharing.app instead.

Open the RealVNC Server configuration (on the device you wish to remote into) interface by clicking its menu bar icon.

On the VNC Server window, click the hamburger menu, and select check for updates. If there are any available, take them. Otherwise, press "Options".

Select "Security" and set Encryption to "Prefer On" and Authentication to "VNC password". Press “Apply” and then select an 8 character password. Save this password in 1Password. If you’re on a version of VNC Server that has a checkbox to “allow connections from legacy VNC Viewer users” check the box. I think this is only on the armhf version of the software (since I was using a Pi Zero 2 W) but haven’t been able to test it. The Pi 4 version did not have this checkbox.

  • The reason for choosing “VNC password” for authentication is that macOS Screen Sharing.app seems to have issues connecting if VNC Server is using UNIX login credentials.
  • I don’t know if the password actually needs to be 8 characters. Someone online said that, and it worked for me, so… maybe worth testing pushing the bar on that.

I like to turn off the option “Notify when users connect and disconnect” under the privacy tab of VNC settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment