Apple File Sharing on Raspberry Pi

Setting up shared access to the Raspberry Pi is nice and easy for us Apple users. No messing about with Samba or cifs. all we need to do is this.

sudo apt-get update
sudo apt-get install netatalk

That will install appletalk and afp on your Pi. This will make your Raspberry Pi appear in the sidebar of Finder windows and allow access to the home folder of your Raspberry Pi user. If that is all you need then we’re all done!

To add other folders that are not in the home folder…

sudo /etc/init.d/netatalk stop
sudo nano /etc/netatalk/AppleVolumes.default

Scroll to the bottom where it says

~/                      "Home Directory"

and add the required paths in the same format

~/                      "Home Directory"
/mnt/pidata             "Pi Data"

Scroll up and change the line that says

:DEFAULT: options:upriv,usedots

to

:DEFAULT: options:upriv,usedots,rw

you can also add ‘tm’  for Time Machine if you wish. Then just restart netatalk

sudo /etc/init.d/netatalk start