Lars Sommer, [email protected]
Makes it possible to use FreeBSD as a file server for multiple Apple OSX
clients via the Apple File Share protocol.
Install the ports:
netatalk gives the file server, and multiple other services via the afs protocol.
Edit the file describing the actual shares on the server:
Add your shares to it. On one server I have the following:
~ “Lars home directory”
/mnt/tolv.data1/TimeMachine_backups/ “Time Machine backup”
/mnt/tolv.data1/ “Tolv Data 1”
/mnt/tolv.data2/ “Tolv Data 2”
The first part is the path to the folder on the server.
The second part is a freely chosen name, which is seen on the client.
Edit the configuration file for netatalks afp daemon:
Add the following line to let the daemon make use of the cnid file name translation service:
- -ipaddr 10.6.6.12 -cnidserver localhost:4700
where 10.6.6.12 should be the address of your own server.
No, configuring howl, it is:
mDNSResponder broadcasts the service discovery information making the shares appear automagically on the OSX clients.
Edit the configuration file:
Add a line which describes the afs service:
Tolv _afpovertcp._tcp local. 548
The first word, here “Tolv”, names the discovered server for the clients.
You can choose it freely, but I typically names it identical to the hostname of the server, to make it easier for myself to remember who is who.
Add to /etc/rc.conf
And start the services: