Skip to content

Instantly share code, notes, and snippets.

@dinigo
Forked from mAAdhaTTah/1_netatalk-3-install-on-ubuntu-14.04.sh
Last active August 31, 2023 21:50
Show Gist options
  • Select an option

  • Save dinigo/321c026fa57f6413adbf to your computer and use it in GitHub Desktop.

Select an option

Save dinigo/321c026fa57f6413adbf to your computer and use it in GitHub Desktop.

Revisions

  1. Daniel Iñigo revised this gist Feb 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ apt-get install build-essential pkg-config checkinstall git avahi-daemon libavah

    # libevent
    cd /usr/local/src
    wget https://github.com/downloads/libevent/libevent/libevent-${libevent_version}.tar.gz
    wget http://skylink.dl.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-${libevent_version}.tar.gz
    tar xfv libevent-${libevent_version}.tar.gz
    cd libevent-${libevent_version}
    ./configure
  2. Daniel Iñigo revised this gist Feb 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@

    # Versions to use
    libevent_version="2.0.22-stable"
    netatalk_version="3.1.7"
    netatalk_version="3-1-7"

    # Install prerequisites:
    apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.3-dev db-util db5.3-util libgcrypt11 libgcrypt11-dev libtdb-dev
  3. Daniel Iñigo revised this gist Feb 8, 2015. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion afp.conf
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    [TimeMachine]
    path = /store/time-machine
    time machine = yes
    valid users = @timemachine
    valid users = @timemachine
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -68,4 +68,4 @@ echo " sudo usermod -a -G timemachine <username>"
    echo " Afterwards they can log in the Time Machine"
    echo " volume with their linux user and password"
    echo "------------------------------------"
    echo " CONFIG FILE: /usr/local/etc/afp.conf"
    echo " CONFIG FILE: /usr/local/etc/afp.conf"
  4. Daniel Iñigo revised this gist Feb 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@ checkinstall \
    --fstrans=no

    # Install time machine configuration
    cp afp.conf /usrl/local/etc/
    cp afp.conf /usr/local/etc/

    # Start services
    service avahi-daemon start
  5. Daniel I revised this gist Jan 12, 2015. 1 changed file with 20 additions and 0 deletions.
    20 changes: 20 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,29 @@
    #!/bin/bash
    # This script will install the latest stable version of netatalk 3.x and libevent in order
    # to configure a Time machine volume

    # Versions to use
    libevent_version="2.0.22-stable"
    netatalk_version="3.1.7"

    # Install prerequisites:
    apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.3-dev db-util db5.3-util libgcrypt11 libgcrypt11-dev libtdb-dev

    # libevent
    cd /usr/local/src
    wget https://github.com/downloads/libevent/libevent/libevent-${libevent_version}.tar.gz
    tar xfv libevent-${libevent_version}.tar.gz
    cd libevent-${libevent_version}
    ./configure
    make
    checkinstall \
    --pkgname=libevent-${libevent_version} \
    --pkgversion=${libevent_version} \
    --backup=no \
    --deldoc=yes \
    --default --fstrans=no
    cd ../

    # netatalk
    git clone git://git.code.sf.net/p/netatalk/code netatalk-code
    cd netatalk-code
  6. Daniel I revised this gist Jan 12, 2015. 4 changed files with 55 additions and 69 deletions.
    33 changes: 0 additions & 33 deletions 1_netatalk-3-install-on-ubuntu-14.04.sh
    Original file line number Diff line number Diff line change
    @@ -1,33 +0,0 @@
    # Get root:

    sudo su

    # Install prerequisites:

    apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.3-dev db-util db5.3-util libgcrypt11 libgcrypt11-dev

    # Build libevent from source:
    cd /usr/local/src
    wget https://github.com/downloads/libevent/libevent/libevent-2.0.22-stable.tar.gz
    tar xfv libevent-2.0.22-stable.tar.gz
    cd libevent-2.0.22-stable
    ./configure
    make
    checkinstall --pkgname=libevent-2.0.22-stable --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    cd ../

    # Download src:
    git clone git://git.code.sf.net/p/netatalk/code netatalk-code
    cd netatalk-code
    ./bootstrap

    # Configure install

    ./configure --enable-debian --enable-zeroconf --with-cracklib --with-acls --enable-tcp-wrappers --with-init-style=debian
    make

    # Build!

    checkinstall --pkgname=netatalk --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no

    # Config is in /usr/local/etc/afp.conf
    36 changes: 0 additions & 36 deletions 2_netatalk-3-afp.conf
    Original file line number Diff line number Diff line change
    @@ -1,36 +0,0 @@
    ;/usr/local/etc/afp.conf
    ; Netatalk 3.x configuration file
    ;

    [Global]
    ; Global server settings
    vol preset = default_for_all_vol
    hostname = TimeCapsule
    log file = /var/log/netatalk.log
    log level = default:info
    uam list = uams_dhx.so,uams_dhx2.so
    save password = no
    disconnect time = 168
    dsireadbuf = 96
    sleep time = 24
    tcprcvbuf = 524288
    tcpsndbuf = 524288
    dircachesize = 131072
    keep sessions = yes
    mimic model = Xserve

    [default_for_all_vol]
    file perm = 0664
    directory perm = 0774
    ;cnid scheme = cbd
    valid users = @tm

    [Homes]
    basedir regex = /home
    cnid scheme = dbd
    home name = Home: $u

    [TimeMachine]
    path = /home/tm
    time machine = yes
    ;vol size limit = 953674
    4 changes: 4 additions & 0 deletions afp.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    [TimeMachine]
    path = /store/time-machine
    time machine = yes
    valid users = @timemachine
    51 changes: 51 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    #!/bin/bash

    # Versions to use
    libevent_version="2.0.22-stable"
    netatalk_version="3.1.7"

    # netatalk
    git clone git://git.code.sf.net/p/netatalk/code netatalk-code
    cd netatalk-code
    git checkout netatalk-${netatalk_version}
    ./bootstrap
    ./configure \
    --enable-debian \
    --enable-krbV-uam \
    --enable-zeroconf \
    --enable-krbV-uam \
    --enable-tcp-wrappers \
    --with-cracklib \
    --with-acls \
    --with-dbus-sysconf-dir=/etc/dbus-1/system.d \
    --with-init-style=debian-sysv \
    --with-pam-confdir=/etc/pam.d \
    --with-tracker-pkgconfig-version=0.16
    make
    checkinstall \
    --pkgname=netatalk \
    --pkgversion=${netatalk_version} \
    --backup=no \
    --deldoc=yes \
    --default \
    --fstrans=no

    # Install time machine configuration
    cp afp.conf /usrl/local/etc/

    # Start services
    service avahi-daemon start
    service netatalk start

    # Instruct User
    echo "************************************"
    echo "* INSTALLATION COMPLETE *"
    echo "************************************"
    echo " To add users to your Time Machine symply"
    echo " simadd them to the timemachine group by"
    echo " running the following command as root:"
    echo " sudo usermod -a -G timemachine <username>"
    echo " Afterwards they can log in the Time Machine"
    echo " volume with their linux user and password"
    echo "------------------------------------"
    echo " CONFIG FILE: /usr/local/etc/afp.conf"
  7. Daniel I revised this gist Jan 10, 2015. 1 changed file with 0 additions and 0 deletions.
    Empty file modified 1_netatalk-3-install-on-ubuntu-14.04.sh
    100644 → 100755
    Empty file.
  8. Daniel I revised this gist Jan 8, 2015. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions 1_netatalk-3-install-on-ubuntu-14.04.sh
    Original file line number Diff line number Diff line change
    @@ -4,16 +4,16 @@ sudo su

    # Install prerequisites:

    apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev
    apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.3-dev db-util db5.3-util libgcrypt11 libgcrypt11-dev

    # Build libevent from source:
    cd /usr/local/src
    wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
    tar xfv libevent-2.0.21-stable.tar.gz
    cd libevent-2.0.21-stable
    wget https://github.com/downloads/libevent/libevent/libevent-2.0.22-stable.tar.gz
    tar xfv libevent-2.0.22-stable.tar.gz
    cd libevent-2.0.22-stable
    ./configure
    make
    checkinstall --pkgname=libevent-2.0.21-stable --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    checkinstall --pkgname=libevent-2.0.22-stable --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    cd ../

    # Download src:
    @@ -30,4 +30,4 @@ make

    checkinstall --pkgname=netatalk --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no

    # Config is in /usr/local/etc/afp.conf
    # Config is in /usr/local/etc/afp.conf
  9. @mAAdhaTTah mAAdhaTTah renamed this gist Aug 17, 2014. 1 changed file with 0 additions and 0 deletions.
  10. @mAAdhaTTah mAAdhaTTah revised this gist Jun 17, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 1_netatalk-3-install-on-ubuntu-14.04
    Original file line number Diff line number Diff line change
    @@ -28,6 +28,6 @@ make

    # Build!

    sudo checkinstall --pkgname=netatalk --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    checkinstall --pkgname=netatalk --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no

    # Config is in /usr/local/etc/afp.conf
  11. @mAAdhaTTah mAAdhaTTah revised this gist Jun 17, 2014. 1 changed file with 25 additions and 21 deletions.
    46 changes: 25 additions & 21 deletions 1_netatalk-3-install-on-ubuntu-14.04
    Original file line number Diff line number Diff line change
    @@ -1,29 +1,33 @@
    Install prerequisites:
    # Get root:

    $ sudo apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev
    sudo su

    Build libevent from source:
    $ cd /usr/local/src
    $ wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
    $ tar xfv libevent-2.0.21-stable.tar.gz
    $ cd libevent-2.0.21-stable
    $ ./configure
    $ make
    $ sudo checkinstall --pkgname=libevent-2.0.21-stable --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    $ cd ../
    Download src:
    $ git clone git://git.code.sf.net/p/netatalk/code netatalk-code
    $ cd netatalk-code
    $ sudo ./bootstrap
    $ sudo make
    # Install prerequisites:

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

    Configure install
    # Build libevent from source:
    cd /usr/local/src
    wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
    tar xfv libevent-2.0.21-stable.tar.gz
    cd libevent-2.0.21-stable
    ./configure
    make
    checkinstall --pkgname=libevent-2.0.21-stable --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    cd ../

    $ ./configure --enable-debian --enable-zeroconf --with-cracklib --with-acls --enable-tcp-wrappers --with-init-style=debian
    # Download src:
    git clone git://git.code.sf.net/p/netatalk/code netatalk-code
    cd netatalk-code
    ./bootstrap

    Build!
    # Configure install

    $ sudo checkinstall --pkgname=netatalk --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    ./configure --enable-debian --enable-zeroconf --with-cracklib --with-acls --enable-tcp-wrappers --with-init-style=debian
    make

    Config is in /usr/local/etc/afp.conf
    # Build!

    sudo checkinstall --pkgname=netatalk --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no

    # Config is in /usr/local/etc/afp.conf
  12. @mAAdhaTTah mAAdhaTTah revised this gist Jun 16, 2014. 2 changed files with 1 addition and 11 deletions.
    10 changes: 0 additions & 10 deletions 1_netatalk-3-install-on-debian-7
    Original file line number Diff line number Diff line change
    @@ -1,10 +0,0 @@
    $ tar xvf netatalk-3.0.5.tar.bz2
    $ cd netatalk-3.0.5

    $ ./configure \
    --with-init-style=debian \
    --with-cracklib \
    --without-libevent \
    --with-pam-confdir=/etc/pam.d \
    --with-dbus-sysconf-dir=/etc/dbus-1/system.d
    $ checkinstall --pkgname=netatalk-3.x --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Install prerequisites:

    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev
    $ sudo apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev

    Build libevent from source:
    $ cd /usr/local/src
  13. @beshkenadze beshkenadze revised this gist Sep 3, 2013. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions 1_netatalk-3-install-on-debian-7
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    $ tar xvf netatalk-3.0.5.tar.bz2
    $ cd netatalk-3.0.5

    $ ./configure \
    --with-init-style=debian \
    --with-cracklib \
    --without-libevent \
    --with-pam-confdir=/etc/pam.d \
    --with-dbus-sysconf-dir=/etc/dbus-1/system.d
    $ checkinstall --pkgname=netatalk-3.x --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
  14. @beshkenadze beshkenadze revised this gist Sep 3, 2013. 2 changed files with 9 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,16 @@ Install prerequisites:

    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev

    Download src:

    Build libevent from source:
    $ cd /usr/local/src
    $ wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
    $ tar xfv libevent-2.0.21-stable.tar.gz
    $ cd libevent-2.0.21-stable
    $ ./configure
    $ make
    $ sudo checkinstall --pkgname=libevent-2.0.21-stable --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
    $ cd ../
    Download src:
    $ git clone git://git.code.sf.net/p/netatalk/code netatalk-code
    $ cd netatalk-code
    $ sudo ./bootstrap
    File renamed without changes.
  15. @beshkenadze beshkenadze revised this gist Jun 25, 2013. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
  16. @beshkenadze beshkenadze revised this gist Jun 25, 2013. 1 changed file with 36 additions and 0 deletions.
    36 changes: 36 additions & 0 deletions afp.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    ;/usr/local/etc/afp.conf
    ; Netatalk 3.x configuration file
    ;

    [Global]
    ; Global server settings
    vol preset = default_for_all_vol
    hostname = TimeCapsule
    log file = /var/log/netatalk.log
    log level = default:info
    uam list = uams_dhx.so,uams_dhx2.so
    save password = no
    disconnect time = 168
    dsireadbuf = 96
    sleep time = 24
    tcprcvbuf = 524288
    tcpsndbuf = 524288
    dircachesize = 131072
    keep sessions = yes
    mimic model = Xserve

    [default_for_all_vol]
    file perm = 0664
    directory perm = 0774
    ;cnid scheme = cbd
    valid users = @tm

    [Homes]
    basedir regex = /home
    cnid scheme = dbd
    home name = Home: $u

    [TimeMachine]
    path = /home/tm
    time machine = yes
    ;vol size limit = 953674
  17. @beshkenadze beshkenadze renamed this gist Jun 25, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  18. @beshkenadze beshkenadze revised this gist Jun 25, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,8 @@ Install prerequisites:
    Download src:

    $ cd /usr/local/src
    $ git clone git://netatalk.git.sourceforge.net/gitroot/netatalk/netatalk
    $ cd netatalk
    $ git clone git://git.code.sf.net/p/netatalk/code netatalk-code
    $ cd netatalk-code
    $ sudo ./bootstrap
    $ sudo make

  19. @beshkenadze beshkenadze revised this gist Jun 25, 2013. No changes.
  20. @beshkenadze beshkenadze revised this gist Jun 25, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,9 @@ Download src:
    $ cd /usr/local/src
    $ git clone git://netatalk.git.sourceforge.net/gitroot/netatalk/netatalk
    $ cd netatalk
    $ ./bootstrap
    $ sudo ./bootstrap
    $ sudo make


    Configure install

  21. @beshkenadze beshkenadze revised this gist Dec 5, 2012. 1 changed file with 2 additions and 15 deletions.
    17 changes: 2 additions & 15 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Install prerequisites:

    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev
    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev

    Download src:

    @@ -9,22 +9,9 @@ Download src:
    $ cd netatalk
    $ ./bootstrap

    Find current version of Berkeley DB available

    $ apt-cache search libdb

    Mine was 5.1, so I'll install that

    $ sudo apt-get install libdb5.1-dev db-util db5.1-util

    Same for libgcrypt:

    $ apt-cache search libgcrypt
    $ sudo apt-get install libgcrypt11 libgcrypt11-dev

    Configure install

    $ ./configure --enable-debian --enable-zeroconf --with-cracklib --with-acls --with-ldap --enable-tcp-wrappers --with-init-style=debian
    $ ./configure --enable-debian --enable-zeroconf --with-cracklib --with-acls --enable-tcp-wrappers --with-init-style=debian

    Build!

  22. @beshkenadze beshkenadze revised this gist Dec 5, 2012. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,6 @@ Configure install

    Build!

    $ make
    $ sudo checkinstall
    $ sudo checkinstall --pkgname=netatalk --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no

    Config is in /usr/local/etc/afp.conf
  23. @beshkenadze beshkenadze revised this gist Dec 5, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ Same for libgcrypt:

    Configure install

    $ ./configure --with-init-style=debian --with-zeroconf
    $ ./configure --enable-debian --enable-zeroconf --with-cracklib --with-acls --with-ldap --enable-tcp-wrappers --with-init-style=debian

    Build!

  24. @beshkenadze beshkenadze revised this gist Dec 4, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Install prerequisites:

    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool
    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev

    Download src:

  25. @beshkenadze beshkenadze revised this gist Dec 4, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Install prerequisites:

    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev
    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool

    Download src:

  26. @vena vena created this gist Jun 2, 2012.
    34 changes: 34 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    Install prerequisites:

    $ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev

    Download src:

    $ cd /usr/local/src
    $ git clone git://netatalk.git.sourceforge.net/gitroot/netatalk/netatalk
    $ cd netatalk
    $ ./bootstrap

    Find current version of Berkeley DB available

    $ apt-cache search libdb

    Mine was 5.1, so I'll install that

    $ sudo apt-get install libdb5.1-dev db-util db5.1-util

    Same for libgcrypt:

    $ apt-cache search libgcrypt
    $ sudo apt-get install libgcrypt11 libgcrypt11-dev

    Configure install

    $ ./configure --with-init-style=debian --with-zeroconf

    Build!

    $ make
    $ sudo checkinstall

    Config is in /usr/local/etc/afp.conf