Sharing Files using Apple Filing Protocol (AFP)

From GlassTTY
Jump to: navigation, search

AFP Shares can be created using Netatalk and Avahi from the AUR repository.

Ensure base packages are installed.

   pacman -S base-devel

Download package into the builds folder. Do this as normal (sudo) user but not root. See Installing AUR Packages for details.

   cd ~/builds
   curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/netatalk.tar.gz
   tar -xvf netatalk.tar.gz
   cd netatalk

Check files manually to check integrity

   nano PKGBUILD

Install

   makepkg -srfci

The same process can be used to update a package.

Shares are defined in /etc/afp.conf

e.g.

   ; Netatalk 3.x configuration file
   
   [Global]
   ; Global server settings
   
   ; [Homes]
   ; basedir regex = /xxxx
   
   [Music]
   path = /home/john/Music
   
   [Photos]
   path = /home/john/Photos
   
   [ADTPro]
   path = /home/john/ADTPro-2.0.2/disks

Netatalk

   systemctl enable netatalk.service
   systemctl start netatalk.service

Bonjour (required)

   pacman -S avahi
   systemctl enable avahi-daemon.service
   systemctl start avahi-daemon.service