Making a Time Capsule using Debian Squeeze
Posted in HOWTO on May 18th, 2011 by Simon – 4 CommentsNote: This tutorial is deprecated. Word in the street is that the new version of netatalk supports TimeMachine out of the box. Havn’t confirmed it though..
Now that Debian 6 (Squeeze) has been released, many of the packages are now also updated to the latest version. This means, no more hacks and fixes (for a while).
I have for a long time used Matthias Kretschmann‘s guide on “HowTo: Make Ubuntu A Perfect Mac File Server And Time Capsule Volume” to get my time capsule to work on my Debian Machine. Not anymore. With Debian 6, everything seems to work; out of the box.
So here we go.
First we install and set up netatalk:
$ sudo apt-get install netatalkGo in and add your shares:
$ sudo nano /etc/netatalk/AppleVolumes.defaultThese are mine:
/mnt/time_machine/TimeMachine “TimeMachine” cnidscheme:dbd options:usedots,upriv,tm ea:adNote the options:tm (for Time Machine)/mnt/big_disk “BigDisk” cnidscheme:dbd options:usedots,upriv ea:ad
Now, install and configure Avahi:
$ sudo apt-get install avahi-daemon libnss-mdnsGo in and make sure “mdns” is at the end of the line that starts with “hosts:”, in:
$ sudo nano /etc/nsswitch.confedit services/afpd.service:
$ sudo nano /etc/avahi/services/afpd.serviceand add the following:
Note: Make sure the quotes-signs are correct. Sometimes WordPress will mess them up.<?xml version="1.0" standalone='no'?><!---nxml---><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><service-group><name replace-wildcards="yes">%h</name><service><type>afpovertcp.tcp</type><port>548</port></service><service><type>device-info.tcp</type><port>0</port><txt-record>model=TimeCapsule</txt-record></service></service-group>
Restart the servers:
$ sudo /etc/init.d/netatalk restart; sudo /etc/init.d/avahi-daemon restart
Make sure everything is OK:
You can follow the messages from afpd and avahi-daemon, by tailing /var/log/daemon.log


