Skip to content

Instantly share code, notes, and snippets.

Forked from vena/gist:2856490
Last active November 7, 2015 07:15
What would you like to do?
How to install Netatalk 3.1.6 under Debian Wheezy

1. Install dependencies

apt-get install automake avahi-daemon build-essential checkinstall db5.1-util db-util git-core libacl1-dev libavahi-client-dev libdb5.1-dev libgcrypt11 libgcrypt11-dev libpam0g-dev libtool pkg-config

2. Download and unpack source

cd /usr/src/
tar -xvzf netatalk-3.1.6.tar.gz

3. Configure

cd netatalk-3.1.6
./configure \
    --enable-fhs \
    --with-acls \
    --with-init-style=debian-sysv \

5. Build

make install

6. Configure daemon

Here is a minimal configuration that shares home directories only. You'll want to take a look at the official documentation for more elaborate environments.


; Netatalk 3.x configuration file

mimic model = RackMac

basedir regex = /home

; [My AFP Volume]
; path = /path/to/volume

7. Start services

/etc/init.d/netatalk start


If you don't need ACL support, you'll need to patch libatalk/util/unix.c and include/atalk/volume.h as suggested in this netatalk bug report. After patching, use --without-acls at configure time.

If you want to preserve .AppleDouble metadata, you can rebuild the Netatalk CNID database with the following command

dbd -r -C -t -v
Copy link

apt-get install libpam0g-dev

Fixed the issues I saw with --enable-fhs.

Copy link

Thanks! Updated for 3.1.6

Copy link

tilllt commented Jan 23, 2015

building a package with "checkinstall make install" probably would have advantages for most people...

Copy link

sdenaro commented Nov 7, 2015

If you're trying to install 3.17 on Debian 8 (Jesse), you'll need to install these depends:

apt-get install automake avahi-daemon build-essential checkinstall db5.3-util db-util git-core libacl1-dev libavahi-client-dev libdb5.3-dev libgcrypt20 libgcrypt20-dev libpam0g-dev libtool pkg-config

berkley db and libgcrypt are updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment