Skip to content

Instantly share code, notes, and snippets.

@kylemcdonald
Forked from frkd-dev/netatalk-build.sh
Last active August 8, 2018 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemcdonald/c748835f1624e2bf552bf3bd4e6fbcac to your computer and use it in GitHub Desktop.
Save kylemcdonald/c748835f1624e2bf552bf3bd4e6fbcac to your computer and use it in GitHub Desktop.
Build netatalk 3.1.11 on Ubuntu 16.04
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment