Netatalk3 Mac file sharing on NetBSD

Software

This is the latest installment of my unintentional NetBSD for FreeBSD users blog post series! This is the minimum viable process to get netatalk3 on NetBSD, assuming you’ve configured pkgin:

# pkgin install netatalk3
# cp /usr/pkg/share/examples/rc.d/netatalk /etc/rc.d/

Normally I back up any package-provided configs to a .orig file first, but there’s a example config in /usr/pkg/share/examples/netatalk you can restore from.

# vi /usr/local/etc/afp.conf
==> ksh: /usr/local/etc/afp.conf: not found

Whoops, head is still in FreeBSD land.

# vi /usr/pkg/etc/netatalk/afp.conf

And set up to start:

# echo netatalk=YES >> /etc/rc.conf
# service netatalk start 

On FreeBSD I separate my rc scripts from the base system in /usr/local/etc/rc.d. NetBSD guides on the official wiki and on forums say to just use /etc/rc.d, but let me know if you’re a NetBSD user and think I should do something similar.

And special thanks to hauke for maintaining netatalk3 on pkgsrc.

Author bio and support

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.