Quick setup of netatalk and avahi on Ubuntu 10.04.
Simply,
apt-get install netatalk avahi-daemon
Next configure services. netatalk first.
cd /etc/netatalk/
Enable the server options.
vi afpd.conf
ubuntu -tcp -ipaddr 0.0.0.0 -guestname nogroup \
-admingroup admin -savepassword
Setup some shares.
vi AppleVolumes.default
~/ "$u Home Directory" allow:$u rwlist:@admin options:usedots,upriv perm:0775 veto:/lost+found/
/path "shareName" allow:@admin rwlist:@admin options:usedots,upriv perm:0775 veto:/lost+found/
Enable the server to run.
vi /etc/default/netatalk
CNID_METAD_RUN=yesAFPD_RUN=yesTIMELORD_RUN=yes
Avahi
Setup afpd to be broadcast.
vi /etc/avahi/services/afpd.service
<?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=Xserve</txt-record> </service> </service-group>
Start the services:
/etc/init.d/netatalk restart
restart avahi-daemon
More details at the references.References: http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/ http://netatalk.sourceforge.net/2.0/htmldocs/AppleVolumes.default.5.html