#!/bin/bash # Enable extended attributes on filesystem # http://netatalk.sourceforge.net/wiki/index.php/Install_Netatalk_3.1.11_on_Ubuntu_16.04_Xenial#Setting_Up # Get system to updated state and install required packages sudo apt update sudo apt full-upgrade -y sudo apt install -y clang make libdb-dev libgcrypt20-dev libavahi-client-dev libpam0g-dev # Get code cd ~ wget https://iweb.dl.sourceforge.net/project/netatalk/netatalk/3.1.11/netatalk-3.1.11.tar.bz2 tar xf netatalk-3.1.11.tar.bz2 && rm netatalk-3.1.11.tar.bz2 cd netatalk-3.1.11 # Build and install ./configure --with-init-style=systemd --disable-static make -j $(grep -c ^processor /proc/cpuinfo) sudo make install-strip # Add to /usr/local/etc/afp.conf (uncomment) # [Homes] # basedir regex = /home # Enable and start sudo systemctl enable netatalk sudo systemctl start netatalk