If you’ve followed my earlier tutorial on how to setup a Linux based Time Capsule, you might want to follow this guide to make sure it’s up to date. As of now, Ubuntu doesn’t have the latest Netatalk available, and you have to install it manually. This includes a bit of manual work, but is fairly simple.
Why would you want to upgrade?
We’re using this setup at my office, and after doing an upgrade to Mavericks, I found it terribly slow! After doing a lot of research, I figured I could try to upgrade the Netatalk version, which was as version 2.2.X. With the upgrade I got at version 3.1.0.
Did it make a difference? Hooooo, yes! It takes a couple of minutes for it to start, but afterwards I copied 95GB in 1,5 hours! It is a bit of a hassle to upgrade, as they’ve removed several of the configuration files and merged them into one. It’s a different structure in the configuration files as well. In addition to having a different structure, they’ve also set a couple of the options as default, meaning less configuration for the user. This will allow for a much simpler scratch install with Netatalk, and a much simpler management of users.
If you are running in a virtual machine, please take a copy of the whole machine. Even though this is fairly straight forward, you never know. Please make sure you have a backup before beginning, or continue on your own risk.
If you’re ready to continue, log in with sudo on your server, and continue:
Begin with stopping the Netatalk service:
service netatalk stop
Then run the following command to install the dependencies. (You will probably have several these from before, but it won’t hurt to be sure):
apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev
Then download the latest (3.1.0) Netatalk version:
Untar it and move to /usr/src/ then change directory to the new location:
tar jxvf netatalk-3.1.0.tar.bz2\?download mv netatalk-3.1.0 /usr/src/ cd /usr/src/netatalk-3.1.0/
Run the following commands:
./configure --with-init-style=debian --with-zeroconf make checkinstall
Now you’re ready to configure the AFP share and user credentials. You should write down, or copy out what you have in the bottom of these files:
These are now obsolete, and replaced by:
/mnt/TimeCapsuleData &quot;TimeCapsule&quot; cnidscheme:dbd options:usedots,upriv,tm volsizelimit:100000 allow:timecapsule
A pain to manage, especially with several users. A multiple user one would typically look like this:
/mnt/TimeCapsuleData/user1 &quot;User1&quot; cnidscheme:dbd options:usedots,upriv,tm volsizelimit:100000 allow:user1 /mnt/TimeCapsuleData/user2 &quot;User2&quot; cnidscheme:dbd options:usedots,upriv,tm volsizelimit:100000 allow:user2 /mnt/TimeCapsuleData/user3 &quot;User3&quot; cnidscheme:dbd options:usedots,upriv,tm volsizelimit:100000 allow:user3
And you also had to configure afpd.conf to include:
- -tcp -noddp -uamlist uams_dhx.so,uams_dhx2_passwd.so -nosavepassword
These are now default settings!
The new way of setting up users and shares is by editing /usr/local/etc/afp.conf to look something like this:
; ; Netatalk 3.x configuration file ; [Global] mimic model = TimeCapsule6,106 log level = default:warn log file = /var/log/afpd.log hosts allow = 10.0.0.0/16 ; [Homes] ; basedir regex = /xxxx [User1] path = /mnt/TimeCapsuleData/user1 valid users = user1 time machine = yes vol size limit = 100000 [User2] path = /mnt/TimeCapsuleData/user2 valid users = user2 time machine = yes vol size limit = 100000 [User3] path = /mnt/TimeCapsuleData/user3 valid users = user3 time machine = yes vol size limit = 100000
Managing this is so much easier! You can also easily add other non-time machine shares as well.
If you only have one common Time Machine login, remove “User2” and “User3” and change “User1” to this:
[TimeMachine] path = /mnt/TimeCapsuleData/ valid users = timemachine time machine = yes vol size limit = 100000
After you’ve done this, do a reboot, and you should be good to go!
In theory, this guide should also work for a scratch install, but please take a look at my earlier guide to get some tips on how to mount and format the storage for your DIY Time Capsule.