Apple File Share in Ubuntu. AFP, netatalk.
Summary
Just install netatalk
. No config is needed at all. The default settings will just work. It works with macOS Sierra (10.12) and Ubuntu (16.04.1 LTS).
I don’t need Avahi
at all.
Reference
sudo /etc/init.d/netatalk restart
https://kremalicious.com/ubuntu-as-mac-file-server-and-time-machine-volume/
Sharing more folders (optional)
The default will work.
sudo vi /etc/netatalk/AppleVolumes.default
Append: ~/ “$u” allow:username_1 cnidscheme:cdb