Install netatalk and avahi on Ubuntu 10.04

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

<div id="_mcePaste">CNID_METAD_RUN=yes</div>
<div id="_mcePaste">AFPD_RUN=yes</div>
<div id="_mcePaste">TIMELORD_RUN=yes</div>

Avahi

Setup afpd to be broadcast.
vi /etc/avahi/services/afpd.service

&lt;?xml version="1.0" standalone='no'?&gt;&lt;!--*-nxml-*--&gt;
&lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;
&lt;service-group&gt;
&lt;name replace-wildcards="yes"&gt;%h&lt;/name&gt;
&lt;service&gt;
&lt;type&gt;_afpovertcp._tcp&lt;/type&gt;
&lt;port&gt;548&lt;/port&gt;
&lt;/service&gt;
&lt;service&gt;
&lt;type&gt;_device-info._tcp&lt;/type&gt;
&lt;port&gt;0&lt;/port&gt;
&lt;txt-record&gt;model=Xserve&lt;/txt-record&gt;
&lt;/service&gt;
&lt;/service-group&gt;

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
CategoriesUncategorized

Leave a Reply