
If you followed this guide, your Ubuntu machine can now serve files to Macs on your local area network (LAN) using AFP. It would be nice if this Ubuntu/Netatalk Apple file server was discovered automatically by your Macs. This can be accomplished by installing Avahi, an implementation of Zeroconf similar to Apple’s Bonjour that allows services running on your Ubuntu machine to be broadcast on the LAN. The following guide (written for Ubuntu Hardy Heron 8.04 and OS X Leopard 10.5.2) will get you started with the installation. When you are finished, the Ubuntu/Netatalk Apple file server will appear in Finder on your Macs connected to your LAN.
Install the Avahi daemon using the aptitude package management software included with Ubuntu. Open a terminal and type the following command:
I’ve noticed that Avahi may already be installed by default if you are using Ubuntu Hardy Heron (8.04). The Avahi service should start automatically when your machine boots but to make sure type the following command:
Next, create a file that will specify information about the AppleShare file server (i.e. Netatalk server) running on your Ubuntu machine.
Copy and paste the following XML code into this file.
<!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-group>
Then, restart Avahi.
That’s it. After a few minutes your AFP server running on you Ubuntu machine should show up in Finder on your Mac.
This post is one of five in a series on how to integrate Ubuntu into a Mac OS X Network. Check out the others linked to below.
Ubuntu Guide: Configure a Netatalk File Server Based on Apple Filing Protocol (AFP)
Ubuntu Guide: Configure Avahi to Broadcast Services via Bonjour to Mac OS X
Ubuntu Guide: Configure Vinagre to Share the Screen with Mac OS X
Ubuntu Guide: Configure a Firefly (mt-daapd) Streaming Media Server for iTunes and Front Row
Ubuntu Guide: Configure Netatalk to Share a USB Printerr

Add New Comment
Viewing 5 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks
(Trackback URL)
April 29, 2008 at 9:03 am
[...] Congratulations, now your Ubuntu machine can serve files to Macs running OS X on the LAN. But it would ...
April 29, 2008 at 10:19 am
[...] Hardy Heron 8.04) with my Mac (running OS X Leopard 10.5.2). If you have installed Avahi following this post ...
April 29, 2008 at 10:34 am
[...] your Ubuntu machine can host an iTunes media server which, with the help of Avahi installed as per this ...
April 30, 2008 at 9:34 am
[...] 2) Ubuntu Guide: Configure Avahi to Broadcast Services via Bonjour to Mac OS X [...]
April 30, 2008 at 9:42 am
[...] to below. Ubuntu Guide: Configure a Netatalk File Server Based on Apple Filing Protocol (AFP) Ubuntu Guide: Configure Avahi ...
June 7, 2008 at 9:06 pm
[...] open source network service discovery protocol similar to Apple’s Bonjour called Avahi (see this post for a setup guide), ...