Skip to content

Instantly share code, notes, and snippets.

@joshenders
Forked from vena/gist:2856490
Last active November 7, 2015 07:15
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save joshenders/3976698 to your computer and use it in GitHub Desktop.
Save joshenders/3976698 to your computer and use it in GitHub Desktop.
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

apt-get install libpam0g-dev

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

@joshenders
Copy link
Author

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