devNoo

musings of a Software Developer

Ubuntu 11.10 network shares to Os X lion with netatalk

| 11 Comments

I had quite some problems getting netatalk to run again after upgrading my server to ubuntu 11.10.
This will explain the way I did it(also as a note for myself when I need it again).

first I removed netatalk completly, you can make a backup of your /etc/netatalk if you want.

sudo apt-get remove netatalk --purge
sudo rm /etc/netatalk -R -f 

Now I added a new repository with netatalk 2.2.1 in it to the sources for apt.
edit /etc/apt/sources.list and add the following lines.

now reinstall netatalk

sudo apt-get update
sudo apt-get install netatalk

now you have to edit the file /etc/netatalk/afpd.conf

Watch it, this is different form the most used one in ubuntu versions before 11.10, the uams_dhx2.so is replaced by uams_dhx2_passwd.so, cause of a bug in ubuntu netatalk, see the bug report at https://bugs.launchpad.net/ubuntu/+source/netatalk/+bug/810732

also I added the logging options to get some feedback if it goes wrong.

Now edit /etc/netatalk/AppleVolumes.default with your normal shares:

finaly restart netatalk:

sudo service netatalk restart

This did the trick for me, let me no if it does not work, might be I forgot a step cause it took me hours to get the whole thing working again.

references:
http://www.trollop.org/2011/07/23/os-x-10-7-lion-time-machine-netatalk-2-2/
https://bugs.launchpad.net/ubuntu/+source/netatalk/+bug/810732
http://www.tristanwaddington.com/2011/07/debian-time-machine-server-os-x-lion/

Leave a Reply

Required fields are marked *.