Ever wanted to use the simplicity of Bonjour on your home network but don’t have a zillion squid spare to spend on an entirely mac based collection of computers? Well if you’re like me and tend to end up fixing up previously used computers and making them useful again then you’d probably either leave Windows on them (yeah right) or stick a distribution of Linux on to test it out.
Thanks to my friend Spode I tried out Mint Linux on my old Laptop (HP dv2054ea) and started wondering how well I could integrate it with my Mac.
Mac’s have a nice discovery service called Bonjour which will look for devices that are advertised using Bonjour. There is an open source version called Avahi - this will allow you to use Linux to advertise services that you want to share from your Linux box - such as afp based file share (where Netatalk comes in).
Now this is where you need to be careful - Mac’s will require encryption to let you connect up to any file shares and so you need to do a bit of compiling with ssl enabled of the netatalk package. There is a blog post by someone who’s set up his share’s so that you can even use your linux box as a remote time machine (similar to Apple’s time capsule).
Since I already have a time capsule, I didn’t need to set up all of the things suggested there but most of it applied to what I needed and all in one page!

The “ndrew’s rem…” below minty is the VNC connection advertised from the avahi daemon running on ‘minty’ (the Linux Laptop). I’m pretty sure I didn’t have to define that in avahi, it just advertised it.
So, if you want to set this up, go follow the relevant parts on the article at kremalicious.com.

July 11th, 2008 at 15:35
Hi Nathan,
thanks for the link love. As for the VNC advertising: The VNC server on Linux do this themselves. But if you add a vnc service file in your avahi/services folder there will be a new button at the top (”Share Screen”) when you click on your server in Finder sidebar. Sadly I found no way to stop the VNC server from advertising itself as another server in the sidebar.