After setting up a Jinzora server, I’ve decided to integrate iTunes into the Jinzora setup. To get iTunes up and running, we’re going to need a multicast DNS (known as Apple Rendezvous) server to announce the service to iTunes and some kind of DAAP (Digital Audio Access Protocol) server to stream it. The DAAP server we’ll use is daapd, and we’ll use the howl and mdnsresponder packages to take care of the mDNS side.
Don’t worry, it’s not that difficult to set up and shouldn’t take more than ten minutes on Debian thanks to the wonders of apt-get.
As my system runs Debian stable, I needed to make some changes to my apt configuration to get things working.
Firstly, open up /etc/apt/sources.list and add an unstable packages mirror by adding the following (replace ftp.us.debian.org with your local debian mirror)
# Debian unstable (needed for itunes services)
deb http://ftp.us.debian.org/debian/ unstable main non-free contrib
deb-src http://ftp.us.debian.org/debian/ unstable main non-free contrib
Save your changes, then enter the following (as root) from the command line so that you don’t end up accidentally upgrading your system to debian unstable in the process.
echo ‘APT::Default-Release “stable”;’ >> /etc/apt/apt.conf
apt-get update
Now a quick apt-cache search daapd should reveal that the daapd package is available for installation, so off we go.
# apt-get install daapd
Reading Package Lists… Done
Building Dependency Tree… Done
The following extra packages will be installed:
libhowl0 mdnsresponder
The following NEW packages will be installed:
daapd libhowl0 mdnsresponder
0 packages upgraded, 3 newly installed, 0 to remove and 582 not upgraded.
Need to get 264kB of archives. After unpacking 954kB will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.us.debian.org unstable/main libhowl0 0.9.8-2 [38.4kB]
Get:2 http://ftp.us.debian.org unstable/main mdnsresponder 0.9.8-2 [72.2kB]
Get:3 http://ftp.us.debian.org unstable/contrib daapd 0.2.4a-1 [153kB]
Fetched 264kB in 2s (130kB/s)
Selecting previously deselected package libhowl0.
(Reading database … 53040 files and directories currently installed.)
Unpacking libhowl0 (from …/libhowl0_0.9.8-2_i386.deb) …
Selecting previously deselected package mdnsresponder.
Unpacking mdnsresponder (from …/mdnsresponder_0.9.8-2_i386.deb) …
Selecting previously deselected package daapd.
Unpacking daapd (from …/daapd_0.2.4a-1_i386.deb) …
Setting up libhowl0 (0.9.8-2) …
Setting up mdnsresponder (0.9.8-2) …
Starting Zeroconf service discovery responder: mDNSResponder.
Setting up daapd (0.2.4a-1) …
Adding system user `daapd’…
Adding new user `daapd’ (117) with group `nogroup’.
Creating home directory `/var/cache/daapd’.
Adding system startup for /etc/init.d/daapd …
/etc/rc0.d/K25daapd -> ../init.d/daapd
/etc/rc1.d/K25daapd -> ../init.d/daapd
/etc/rc6.d/K25daapd -> ../init.d/daapd
/etc/rc2.d/S25daapd -> ../init.d/daapd
/etc/rc3.d/S25daapd -> ../init.d/daapd
/etc/rc4.d/S25daapd -> ../init.d/daapd
/etc/rc5.d/S25daapd -> ../init.d/daapd
This looks like your first time running daapd, so it may
take a few minutes to scan all of your music.
Starting DAAP music sharing server: daapd.
Ok, so the next stage is to open up /etc/daapd.conf and make some changes.
You need to change the Root directive entry to point to your Music collection (in my case /u01/Music/shared/) and set the DBName to the name you want your music directory to show up as in iTunes, but other than that there shouldn’t need to be much by way of changes.
a quick /etc/init.d/daapd restart and /etc/init.d/mdnsresponder start later and you should be good to go.

Fire up itunes and you should find your new Music service in the panel on the left (as shown above). You should be able to click on there, then bring back your music.
As the project leader of Jinzora I’m curious how Jinzora really fits into this? Are you using it with iTunes or did you drop it for iTunes? I’d love to hear from you via email at ross at jinzora dot com.
Thanks,
Ross
I basicaly ran it alongside the existing deployment, so my Jinzora mp3s are all contained within the structure that is available to itunes, accessible over Samba. I originally just used Samba but have been having trouble with my Xbox timing out on Xbox Media Center. As XBMC doesn’t integrate with Jinzora I wanted another way of accessing the same music collection (I have two collections, a ‘permanent’ Jinzora deployment and a straight file share for non-retagged collections). iTunes works a lot better for me with XBMC, but sadly doesn’t update Jinzora.
The only problem is that of course this doesn’t update Jinzora, so I end up with one set of favourites on each iTunes client and one set of favourites for each Jinzora, but basically anything accessible by one is accessible by the other. If I get the time I’ll do a full writeup on Samba, iTunes, Apache, Mysql and Jinzora, although this probably won’t be until I’ve written up some other stuff I’ve been working on.
Cheers,
Steve
I can’t find the daapd package anywhere, but there is a pretty functional alternative: mt-daapd.
Working from a guide somebody made for installing mt-daapd on Ubuntu, I made one for generic Debian:
http://wiki.mt-daapd.org/wiki/Quickstart_Debian
Same problem — daapd doesn’t seem to be in the Debian tube any longer. Wonder why? Gonna try my-daaapd.