First of all I recommend to install at least netatalk-2.2.1 which was updated in the ports tree on September 10th. I had a couple of problems with previous versions. The package and port have a dependency on avahi-app which implements Zeroconf and replaces howl. Therefore the description about the howl configuration in my previous article is obsolete now.
Apple Filing Protocol
This is my configuration in
:DEFAULT: options:upriv,usedots veto:/lost+found/ dbpath:/var/db/afpd/$v
# The "~" below indicates that Home directories are visible by default.
# If you do not wish to have people accessing their Home directories,
# please put a pound sign in front of the tilde or delete it.
This allows sharing all home directories on the FreeBSD file server. It also hides
lost+found directories and moves the CNID databases to subdirectories below
/var/db/afpd. Make sure you don't run out of space there or the database may become corrupted. You should also create that directory.
Next, the configuration file
/usr/local/etc/afpd.conf has the following line:
Elan would be the name showing up in Finder. This version of Netatalk has an easy way to change the icon used in Finder by using the
mimicmodel option. I decided to to use the Xserve icon for my FreeBSD server.
Finally the following entries in
/etc/rc.conf are necessary to start all relevant services during boot:
This configuration should be sufficient to access your home directory on the FreeBSD server.
Now the Time Machine specific parts. As written in my previous article I wanted to use a dedicated volume for my backups. So I added the volume name to
As before tmbackup is the user that will own the backups on the FreeBSD server.
Now create the file
/usr/local/etc/avahi/services/afpd.service and put the following XML code into it:
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<name replace-wildcards="yes">Time Capsule</name>
Make sure to replace
00:15:f2:xx:xx:xx with the MAC address of your network controller. With this file Avahi announces a file server named Time Capsule and a volume Time Machine with the necessary capabilities in your network. The volume name must match the entry used in
AppleVolumes.default as shown above.
Finder will even use the Time Capsule icon for it. The code for the icon is derived from the article Specify the Finder icon with Avahi.
Now the setup of your Mac to use the volume offered by the FreeBSD based Time Capsule should work as described in the section Configuration of Time Machine of my previous article Using FreeBSD as Time Machine server.