Skip to content

Instantly share code, notes, and snippets.

Embed
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/
wget http://prdownloads.sourceforge.net/netatalk/netatalk-3.1.6.tar.gz
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 \
    --with-zeroconf

5. Build

make
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.

/etc/afp.conf

;
; Netatalk 3.x configuration file
;

[Global]
mimic model = RackMac

[Homes]
basedir regex = /home

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

7. Start services

/etc/init.d/netatalk start

Optional

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
@tomtastic
Copy link

tomtastic commented Jun 1, 2013

apt-get install libpam0g-dev

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

@joshenders
Copy link
Author

joshenders commented Oct 5, 2014

Thanks! Updated for 3.1.6

@tilllt
Copy link

tilllt commented Jan 23, 2015

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

@sdenaro
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