Raspberry PI File Sharing with a Mac

Posted by Quinn Madson | Posted in | Posted on 6:02 PM


From the Raspberry Pi terminal or SSH into the Pi:
  1. sudo apt-get update
  2. sudo apt-get install netatalk
  3. sudo /etc/init.d/netatalk stop
  4. sudo vi /etc/netatalk/AppleVolumes.default
    1. Change this line: :DEFAULT: options:upriv,usedots
    2. To this line: :DEFAULT: options:upriv,usedots,rw
  5. sudo /etc/init.d/netatalk start

On a mac connected to the same network: Finder >> Go >> Connect to Server >> Browse. Double-click on the hostname of your Raspberry Pi and click the "Connect as" button. Enter your username and password for the Raspberry Pi and you should see the share contents.

If you cannot browse to the Raspberry Pi: Finder >> Go >> Connect to Server. For server address, put in: afp://[IP ADDRESS OF PI] so, for example: afp:// and click the "Connect" button.

Add more shares:
  1. sudo vi /etc/netatalk/AppleVolumes.default
  2. Go to the bottom of the file (hit G in vi) and add new paths under: 
    1. ~/                      "Home Directory" 
  3. Example:
    1. /media              "Media"
    2. /mnt                  "Mount"

Comments (0)