Categories
Raspberry Pi

Using the Raspberry Pi’s built-in VNC Server with iMac

The Raspberry Pi already has a VNC server installed but there are a couple of things that need to be done to use it.

Firstly you must enable it by running sudo rasp-config, selecting Interfacing Options and then making sure that VNC is enabled.

If you are going to use an iMac to access your Raspberry Pi then you must change the authentication mode on the Raspberry Pi VNC Server:-

  • sudo vncpasswd
  • sudo vi /root/.vnc/config.d/vncserver-x11
  • Add “Authentication=VncAuth”
  • For some reason the VNC server won’t send the display with the default screen resolution. Start raspi-config (sudo raspi-config) and select “Advanced Options / Resolution”. Now choose another resolution e.g. 1024×768.
  • Restart VNC Server using: sudo raspi-config

You should now be able to access your Raspberry Pi using your iMac’s built-in VNC viewer:-

  • Open Finder
  • Select “Go / Connect to Server” from the menu.
  • Enter “vnc://raspberruypi/” in the Server Address field and then click on connect.
  • You will be prompted to enter a password. Enter the password you supplied when you executed vncpasswd earlier.