-
-
Save kylemcdonald/c748835f1624e2bf552bf3bd4e6fbcac to your computer and use it in GitHub Desktop.
Build netatalk 3.1.11 on Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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