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:
- Run “
sudo nano /etc/avahi/services/rfb.service”
- Enter the following:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
- Under the <port> element in step three, ensure you enter the correct port number that you chose when starting your VNC server .
- Press ctrl and x to exit, then y to save and press return after confirming the file location
- 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.Source: fusionsecurity.blogspot.co.uk