Install Netatalk 3.1.0 on Ubuntu 12-13 (or Debian Wheezy)
(Created page with "== Required Packages == Install the following packages by "<tt>apt-get install</tt>". *<tt>build-essential</tt> *<tt>libssl-dev</tt> (DHX auth aka DHCAST128) *<tt>libgcrypt11-de...") |
(→Build) |
||
Line 59: | Line 59: | ||
</tt> | </tt> | ||
</blockquote> | </blockquote> | ||
+ | |||
+ | The version 0.14 <tt>--with-tracker-pkgconfig-version=0.14</tt> must match the pkg-config version of the installed Tracker libraries. Use the following commands for finding the version info: | ||
+ | <blockquote> | ||
+ | <tt> | ||
+ | <pre> | ||
+ | $ pkg-config --list-all | grep tracker | ||
+ | ... | ||
+ | </pre> | ||
+ | </tt> | ||
+ | </blockquote> | ||
+ | |||
On successful completion, you will see a report similar to the following: | On successful completion, you will see a report similar to the following: |
Revision as of 17:32, 2 December 2013
Contents |
Required Packages
Install the following packages by "apt-get install".
- build-essential
- libssl-dev (DHX auth aka DHCAST128)
- libgcrypt11-dev (DHX2 auth)
- libkrb5-dev (Kerberos V auth)
- libpam0g-dev (PAM)
- libwrap0-dev (TCP Wrapper)
- libdb-dev (Berkeley DB)
- libavahi-client-dev (Bonjour support)
- libacl1-dev (ACL support)
- libldap2-dev (LDAP support)
- libcrack2-dev (password ckeck)
- systemtap-sdt-dev (DTrace-compatible)
- libdbus-1-dev (used by afpstats command)
- libdbus-glib-1-dev (used by afpstats command)
- libglib2.0-dev (used by afpstats command)
- libtracker-sparql-0.14-dev (used for spotlight indexing)
- libtracker-miner-0.14-dev (used for spotlight indexing)
If libavahi-compat-libdnssd-dev package is installed, remove it, in order to avoid conflict between Avahi and mDNSResponder.
Build
Extract a tarball.
$ tar xvf netatalk-3.1.0.tar.bz2 $ cd netatalk-3.1.0
You should read the help message, in order to know configure options.
If the applicable libraries are installed, many options will be detected automatically.
$ ./configure --help
Do configure! The following options are not auto-detected.
$ ./configure \ --with-init-style=debian \ --with-cracklib \ --enable-krbV-uam \ --with-pam-confdir=/etc/pam.d \ --with-dbus-sysconf-dir=/etc/dbus-1/system.d \ --with-tracker-pkgconfig-version=0.14
The version 0.14 --with-tracker-pkgconfig-version=0.14 must match the pkg-config version of the installed Tracker libraries. Use the following commands for finding the version info:
$ pkg-config --list-all | grep tracker ...
On successful completion, you will see a report similar to the following:
Compilation summary: CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include CFLAGS = -D_U_="__attribute__((unused))" -g -O2 LIBS = -ldl -lcrack PTHREADS: LIBS = CFLAGS = -pthread TRACKER: LIBS = -Wl,--export-dynamic -pthread -ltracker-sparql-0.14 -lgio-2.0 -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/tracker-0.14 -I/usr/include/tracker-0.14/libtracker-sparql SSL: LIBS = -L/usr/lib64 -lcrypto CFLAGS = -I/usr/include/openssl LIBGCRYPT: LIBS = -L/lib/x86_64-linux-gnu -lgcrypt CFLAGS = PAM: LIBS = -lpam CFLAGS = WRAP: LIBS = -lwrap CFLAGS = BDB: LIBS = -L/usr/lib64 -ldb-5.1 CFLAGS = GSSAPI: LIBS = -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err CFLAGS = ZEROCONF: LIBS = -lavahi-common -lavahi-client CFLAGS = -D_REENTRANT LDAP: LIBS = -lldap CFLAGS = LIBEVENT: bundled TDB: bundled Configure summary: INIT STYLE: debian AFP: Extended Attributes: ad | sys ACL support: yes Spotlight: yes CNID: backends: dbd last tdb UAMS: DHX (PAM SHADOW) DHX2 (PAM SHADOW) RANDNUM (afppasswd) Kerberos V clrtxt (PAM SHADOW) guest Options: Zeroconf support: yes tcp wrapper support: yes quota support: yes admin group support: yes valid shell check: yes cracklib support: yes ACL support: auto Kerberos support: yes LDAP support: yes AFP stats via dbus: yes dtrace probes: yes Paths: Netatalk lockfile: /var/lock/netatalk init directory: /etc/init.d dbus system directory: /etc/dbus-1/system.d pam config directory: /etc/pam.d Documentation: Docbook: no
Docbook is not needed because it is for developers only.
Make and install.
$ make # make install
Check
Check features and paths, using "afpd -V".
$ /usr/local/sbin/afpd -V afpd 3.1.0 - Apple Filing Protocol (AFP) daemon of Netatalk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Please see the file COPYING for further information and details. afpd has been compiled with support for these features: AFP versions: 2.2 3.0 3.1 3.2 3.3 CNID backends: dbd last tdb Zeroconf support: Avahi TCP wrappers support: Yes Quota support: Yes Admin group support: Yes Valid shell checks: Yes cracklib support: Yes EA support: ad | sys ACL support: Yes LDAP support: Yes D-Bus support: Yes DTrace probes: Yes afp.conf: /usr/local/etc/afp.conf extmap.conf: /usr/local/etc/extmap.conf state directory: /usr/local/var/netatalk/ afp_signature.conf: /usr/local/var/netatalk/afp_signature.conf afp_voluuid.conf: /usr/local/var/netatalk/afp_voluuid.conf UAM search path: /usr/local/lib/netatalk// Server messages path: /usr/local/var/netatalk/msg/
Setting
Edit "/usr/local/etc/afp.conf".
Ex:
[Global] mac charset = MAC_JAPANESE afpstats = yes [Homes] basedir regex = /home [Test Volume] path = /export/test1 [My Time Machine Volume] path = /export/timemachine time machine = yes vol size limit = 512000
Start and Stop
You should check firewall. AFP's port number is 548.
The initscript is /etc/init.d/netatalk.
# service netatalk start # service netatalk stop