How to get AFP (netatalk) working on Raspberry Pi or linux for Mac OsX 10.8

netatalkHow to make AFP (netatalk) working on the Raspberry Pi or linux for Mac Osx 10.8.

sudo -s

apt-get install avahi-daemon libavahi-client-dev libdb5.3-dev db-util db5.3-util libgcrypt11 libgcrypt11-dev

Let’s get back to the home dir in user mode:

exit

cd ~/

Now we need netatalk, just get the latest from sourceforge:
http://netatalk.sourceforge.net

This is probably not the latest:

wget http://prdownloads.sourceforge.net/netatalk/netatalk-3.0.4.tar.bz2?download

Rename with:

mv netatalk-3.0.4.tar.bz2\?download netatalk-3.0.4.tar.bz2

Unpack

tar -xvf netatalk-3.0.4.tar.bz2

After you downloaded and unpacked netatalk, lets configure and install

cd netatalk-3.0.4/

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

make

In the meantime, smoke a cigarette or get a coffee. This is going to take about 15 minutes..
When it’s done lets install:

sudo -s

make install

It’s now done installing, time to configure the shares

vi /usr/local/etc/afp.conf

And use the following configuration:


;
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
hostname = ENTER YOUR SHARENAME HERE
uam list = uams_dhx.so uams_dhx2.so uams_guest.so
zeroconf = yes
guest account = nobody
save password = no

[NetDrive]
path = ENTER PATH TO YOUR SHARE HERE
cnid scheme - dbd
ea = auto
mac charset = MAC_ROMAN
invisible dots = yes
unix priv = yes
search db = yes

Now restart netatalk

/etc/init.d/netatalk restart

Done

Sidebar