-
-
Save beshkenadze/4203763 to your computer and use it in GitHub Desktop.
Netatalk 3 installation procedure (Ubuntu 12.04.2 LTS/Debian 7)
This file contains 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
$ 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 |
This file contains 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
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 | |
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 | |
Configure install | |
$ ./configure --enable-debian --enable-zeroconf --with-cracklib --with-acls --enable-tcp-wrappers --with-init-style=debian | |
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 |
This file contains 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
;/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 |
"sudo make" after "sudo ./bootstrap" just says that there is no makefile. Can't see any error msgs before it.
@tempelmann
Run at first .configure and then make, it works then
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compilation fails if libevent-dev is not installed. I suppose you will need to add it to "Install prerequisites" list.