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 IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

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

You can leave me a comment by contacting me, and I might publish your thoughts. Please read the FAQs first though.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!