AFP/netatalk Installer (free community supported add-on)
Attention: AFP is EoL as Apple switched to SMB as the default sharing protocol.
The new APFS filesystem from Apple is announced to cancel AFP sharing support.
AFP support in Unix depends on distribution and available packages and is broken quite often
on changes from Apple. AFP support in napp-it will be removed in one of the next napp-it releases.
If you use AFP/ netatalk for fileservices, switch to SMB2 that is faster with a far better compatibility,
stability and reliability and more features regarding permissions with ACL and snap support (previous versions).
If you use AFP/ netatalk for TimeMachine backups you can use SMB as well. Google for a Howto.
Next OSX version macOS Sierra (Sep 16) is supposed to support TimeMachine on SMB shares per default
but with many restrictions, see https://developer.apple.com/library/prerelease/content/releasenotes/NetworkingInternetWeb/Time_Machine_SMB_Spec/index.html#//apple_ref/doc/uid/TP40017496
This installer is basically for OmniOS but may work on OI and Solaris
but due to the many changes in OS and natatalk, it is broken from time to time
wget -O - www.napp-it.org/afp | perl
The usual way to setup OmniOS with napp-it was
- install netatalk via the maawi repository via wget -O - www.napp-it.org/afp | perl
- set nbmand of the afp filesystem to off and aclinherit + aclmode to pass-through (is the default)
- share the filesystem via napp-it, menu ZFS filesystems (use menu set en in About > Settings)
The above installer compiles netatalk (OI, Solaris) or installs via IPS from mavi.uni-ulm
current state of above afp installer:
OI 151.a8: ok (default wget)
Solaris 11.2: ok ( default wget)
OmniOS 151012: ok ( default wget via mawi.uni ulm)
Release see http://scott.mathematik.uni-ulm.de/release/en/catalog.shtml
Current OmniOS: problem with pkg from maawi,
maybe related to https://sourceforge.net/p/netatalk/bugs/592/
Install: (old installer, prior Jun 3rd, 2014)
wget -O - www.napp-it.org/afp_old | perl ""
Install other netatalk versions:
Step 1: download installer:
rm ./afp (optional delete former installer)
wget www.napp-it.org/afp (download installer)
Step 2: start installer with a version as parameter:
perl ./afp mawi (OmniOS=default, install newest netatalk via IPS from mawi.uni ulm)
perl ./afp 3.1.0 (Install/ compile this version, any from 3.0, 3.0.1, ..,3.1, 3.1.1, 3.1.2)
For special configurations, check/ edit the afp installer.
If you find a bug and a solution, send an email to email@example.com
Rick: commented about the current afp setup on OmniOS (via IPS repository Mawi/ Uni Ulm)
I found that the "afp" process you documented did not work for me;
I had my log file filling up with afp restarts such as:
May 31 16:49:42 zfsbox netatalk: [ID 702911 daemon.notice]
Restarting 'afpd' (restarts: 3)
Running it by hand, I could see that there was a dynamic linking failure
against libgcrypto [or something similar]; probably a missing LD_LIBRARY or
better a proper link command would fix it but....
The afp install process seemed a bit messy and "behind OmniOS's back" as it
was, so I tried pkgin. [thank you for the pkgin intro and link!]
pkgin install netatalk
gave me netatalk-3.1.0, which works just fine! Good fast clean process
1) a line like the following
192.168.xx.xx hostname hostname.local
MUST be present in /etc/hosts
[for fully qualified IP address and where "hostname" is what "hostname"
or netatalk/afpd won't bind correctly - it will negotiate share names,
but fail with authentication
2) Manually you must
sudo mkdir /var/db/netalk
sudo mkdir /var/db/netatalk/CNID
or the various database directories don't exist and things will fail
3) You may need to create
I made one from a migration so i don't recall; the other messages from
pkgin can be safely ignored
4) you will need to start afp/netatalk. i'm attaching an SMF/XML file I
made which will work via
svccfg import netatalk-smf.xml
against the pkgin netatalk version
5) Finally, napp-it won't recognize netatalk even after you start it with
svcadm enable network/netatalk
The problem turns out to be several locations all looking
[somewhat independently and disjointedly] for the afp.conf file, and not
looking in the pkgin location:
The correct fix would be to add this to the list of places napp-it looks.
I did this gross hack
sudo mkdir /opt/netatalk
sudo ln -s /opt/local/etc/netatalk /opt/netatalk/etc
This seemed ultimately a cleaner method than the temporary repository
direct trick, and more importantly, it worked.
Finally, with pkgin up and running, mediatomb is just a pkgin install
away. I made a SMF/XML file for that, which was a little more work as
various permissions and wrappers need to be set up, but it ultimately works
cleanly. I can provide more info if helpful. musicpd ["mpd"] also works
straight up from pkgin.