1.) Install some prerequisites: sudo apt-get install automake libtool build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libgcrypt11 libgcrypt11-dev
2.) Configure the software with dhx2_passwd in mind:
./configure –with-init-style=debian –with-zeroconf
3.) Setup the netatalk configuration file (typically /usr/local/etc/afp.conf)
[Global] ; Global server settings passwd file = /usr/local/etc/afppasswd mimic model = rackmac vol preset = default_for_all_vol log file = /var/log/netatalk.log log level = default:error,uamsdaemon:debug save password = no
uam list = uams_dhx2_passwd.so uam path = /usr/local/lib/netatalk
mimic model = rackmac
[default_for_all_vol] file perm = 0664 directory perm = 0774 cnid scheme = dbd
[timecap] path = /spare/timecapsule valid users = nick appledouble = v2 time machine = yes
[Homes] basedir regex = /home valid users = nick