Another post for Mac users. If you’ve followed my previous post to setup Avahi for AFP auto discovery, you might want to do the same for VNC.

To do this, add a new service under /etc/avahi/services. Using Terminal:

  1. Run “sudo nano /etc/avahi/services/rfb.service
  2. Enter the following:
    <?xml version="1.0" standalone='no'?>
    <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
      <name replace-wildcards="yes">%h</name>
  3. Under the <port> element in step three, ensure you enter the correct port number that you chose when starting your VNC server .
  4. Press ctrl and x to exit, then y to save and press return after confirming the file location
  5. If your Mac doesn’t pick it up within a view minutes, restart the avahi service: “sudo /etc/init.d/avahi.deamon restart

You should now see a “Share Screen…” button when you select your Raspberry Pi in the Finder side bar. Click this and the Screen Sharing app will open, enter your VNC password (leave the username blank). Other VNC software should be able to discover it also, though I’ve only tested it on Mocha VNC for iPad.

Strangely, the Apple Remote Desktop app still does not discover my VNC server using bonjour. I’ll update this post if I find out why.

  1. gettingstartedwithraspberrypi posted this