terra incognita

Configure afp service on Debian

2014-12-17 15:16

First, install netatalk:

sudo apt-get install netatalk

Then edit /etc/netatalk/afpd.conf, uncommenting the last line, which should look like - -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword

After that, edit /etc/netatalk/AppleVolumes.default, making the line starts with :DEFAULT to be something like this:

:DEFAULT: options:upriv,usedots /home/USERNAME USERNAME

As you can guess, here we set the directory to be shared and the username.

Note: this could raise the premission problem, you should notice that. However, I only use afp service for virtual machine, so no worry about it.

Last, restart afp service: /etc/init.d/netatalk restart

Now you should be able to access your folder by connecting from Finder on OS X: cmd + K, enter the URL: afp://USERNAME@TARGET_IP, voila.