2006/03/04 - Updated for iTunes 6.0.4 breakage
DAAP, or Digital
Audio Access Protocol, is Apple's
protocol for streaming audio from iTunes to other compatible devices and
clients. There are many versions of DAAP daemons/servers; as listed here; however this HOWTO covers the configuration of MT-DAAPD on Ubuntu.
I've chosen MT-DAAPD over my previous favorite
DAAPD because MT-DAAPD is better
maintained (in my opinion) and it has groovy features
like:
Supports the Roku
SoundBridge (query/browse/index support)
Supports periodic rescans of the
database
Can advertise shoutcast streams
Is web-configurable and managable
Support dynamic
playlists, like iTunes "Smart playlists"
Notes:
- There are other HOWTO's
available here and here; however this one is much simpler and has been
easily reproduced on many installs.
- I will also
be giving the CLI commands so that you can do this install without a GUI
installed.
- All CLI commands will be indented and use this font.
- CLI commands start with '$'to indicate the beginning
of the command. Do not copy and paste the '$' into your CLI as it
won't work.
First install the pre-requisite ID3 tag manipulation
library:
$sudo apt-get install
libid3tag0
Download the latest Debian package from
Sourceforge. (Check here for the latest.)
$wget http://prdownloads.sourceforge.net/mt-daapd/mt-daapd_0.2.4-1_i386.deb?download
Install the package with dpkg:
$sudo dpkg -i
/path/to/mt-daapd_0.2.4-1_i386.deb
Once the package is installed; open up the
config file in VI (or GEdit if using a GUI):
$sudo vi
/etc/mt-daapd.conf
Look out for the following sections and customise them to
your needs. (There are other fields you can change, however these are just the
basic one to get your server up and running.)
#
# mp3_dir (required)
#
# Location of the mp3 files to
share. Note that because
the
# files are stored in the database by inode, these must
be
# in the same physical filesystem.
#
mp3_dir
/path/to/music
#
# servername (required)
#
# This is both the name of the server as
advertised
# via rendezvous, and the name of the database
# exported via DAAP. Also know as "What shows up in
iTunes".
#
servername
My Jukebox
Since I run a dedicated
DAAP server I normally set the re-scan option in the config file to auto-scan
every 3600 seconds so that it will pick up any new files I copy
there.
Restart the daemon to apply the new config file:
$sudo /etc/init.d/mt-daapd
restart
Your DAAP server is configured! Fire up iTunes and start
enjoying.
To
access the web administration hit the URL below:
http://localhost:3689/
username: admin
password: mt-daapd
I run this configuration at home with my 54Mb/s wireless network so that
I can stream my music to any room in the house. I normally perch my notebook on
top of my HiFi and play the music through there. (Just make sure you secure your
WLAN so your neighbours don't get free music... if you don't want them
to;)