Thursday, May 18, 2006

Linux iTunes Server on Fedora Core 5

Linux iTunes Server - Fedora Core 5



There are 2 components to an iTunes server on Fedora Core 5: the iTunes server daemon and the zeroconf (or bonjour, or rendezvous) multicast.

For the iTunes server, I used mt-daapd (http://www.mt-daapd.org/). I downloaded the standard SRPM from sourceforge and made a minor edit to the configure command in the spec:

./configure --prefix=$RPM_BUILD_ROOT/usr --enable-howl --with-howl-includes=/usr
/include/avahi-compat-howl

With that change, the rpm compiled cleanly, and hooked into the FC5 zeroconf multicast system, avahi.

To configure avahi, you need to add an xml fragment to /etc/avahi/services/ - it should look something like this:





Basement Tunes

_daap._tcp
3689





(man avahi.service for more info)

The file gets placed in /etc/avahi/services/ and must have an extension of ".service"

Once you do this, and start the avahi-daemon and mt-daapd services, and "Basement Tunes" will show up on your iTunes sidebar.

Keep in mind that the mDNS multicast will not typically pass through a router, and everything should work fine.