Netatalk

Netatalk is a free, open-source implementation of the Apple Filing Protocol (AFP). It allows Unix-like operating systems to serve as file servers for Macintosh computers.

Installation

Install the netatalkAUR package.

Configuration

Start/enable netatalk.service.

Besides the configuration files that are installed (and checked during upgrade), netatalk may generate two files /etc/netatalk/afp_signature.conf or /var/state/netatalk/afp_signature.conf which holds the system UUID, and /etc/netatalk/afp_voluuid.conf or /var/state/netatalk/afp_voluuid.conf which holds volume UUIDs for TimeMachine. These files may remain after package removal and should be kept in most cases to disambiguate the services broadcast over the local network.

Netatalk 3.x uses a single configuration file, /etc/afp.conf. See afp.conf(5) and the following example (make sure processes have write access to afpd.log):

/etc/afp.conf
[Global]
 mimic model = TimeCapsule6,106
 log level = default:warn
 log file = /var/log/afpd.log
 hosts allow = 192.168.1.0/16

[Homes]
 basedir regex = /home

[TimeMachine]
 path = /mnt/timemachine
 valid users = tmuser
 time machine = yes

[Shared Media]
 path = /srv/share/media
 valid users = joe sam
Warning: Avoid using symbolic links in afp.conf

Guest access

In order to allow guest read-only access to your shared folders, add following line to the section: To allow guest read/write access, first, allow read-only access as in the previous example and then add following lines to a particular share section:

iptables

If you use the iptables package for firewall services, consider adding the following: (replace with -A as necessary)

Bonjour/Zeroconf
iptables -I INPUT -p udp --dport mdns -d 224.0.0.251 -j ACCEPT
iptables -I OUTPUT -p udp --dport mdns -d 224.0.0.251 -j ACCEPT

Enable Bonjour/Zeroconf

Bonjour/Zeroconf is now a requirement of netatalk and is compiled by default. No configuration is necessary, netatalk will register its own services using the dbus link. Make sure you set to the desired string (see on a Mac for a full list).

You may need to start and enable if it is not running yet.

gollark: Correction: no it did not it exported wrong oh bees.
gollark: Further evidence of XML bad: the important data in the 300MB XML file turned into a 7.2MB SQLite database.
gollark: In retrospect it should have had a progress bar. I'll just go to lunch and wait.
gollark: Wow, my horrible accursed python script to parse a 300MB XML file and dump some of the data into SQLite for analysis did not immediately crash!
gollark: Not yet.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.