Set up an AFP Server for Apple Time Machine

If you follow the steps on this site you install netatalk from the Ubuntu binary archives and not from source! So make sure you use uams_dhx2.so (as mentioned below) as auth module in order to encrypt your password.

sudo aptitude install netatalk
# Edit the configuration files:
sudo vim /etc/default/netatalk
sudo vim /etc/netatalk/afpd.conf
sudo vim /etc/netatalk/AppleVolumes.default
# Restart netatalk:
sudo /etc/init.d/netatalk restart
# Allow network access to the ports 548 and 427
sudo ufw allow 548
sudo ufw allow 427
sudo ufw disable && sudo ufw enable

changes to the configuration:

  • In /etc/default/netatalk set CNID_METAD_RUN=yes (default in Maverick 10.10)
  • In /etc/netatalk/AppleVolumes.default added the line:
    /home/philipp/afp TimeMachine options:tm,usedots,upriv
  • And in /etc/netatalk/afpd.conf add at the end the line:
    - -transall -uamlist uams_dhx2.so -nosavepassword
    (if you want to allow and advertise SSH tunneling, add two more lines: -advertise_ssh and -fqdn diebezahl.uni-frankfurt.de)

resources

Comments