OpenSolaris + TimeMachine backup + network discovery
I found several tutorials on blogs about how to build “netatalk” on OpenSolaris to enable file sharing using the AFP protocol for better use by TimeMachine backups on the mac. Here are a few:
As far as making the AFP service discoverable, most people point to this article:
However, I found a better way to make the service discoverable, and that is by using the avahi-bridge. You’ll need to make sure that you have multicast dns running and the avahi bridge
1. Install netatalk according to the above instructions.
2. Install multicast dns and avahi bridge (I’m using snv_134 development branch, note that the package names have changed since 2009.06 release)
# pkg install system/network/avahi
# pkg install service/network/dns/mdns
3. enable both services (why is one called mdns and the next multicast?)
# svcadm enable network/dns/multicast:default
# svcadm enable system/avahi-bridge-dsd:default
4. setup a service xml file for avahi-bridge:
# cat > /etc/avahi/services/afp.service
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
If you’re interested in advertising other services so that they are discoverable by the Mac, this is a great article (it’s for linux, but the avahi side of things is the same using avahi-bridge): Benjamin Sherman » Advertising Linux Services via Avahi/Bonjour.
Now I have a server in my Finder side bars just like any other mac server.