Broadcasting Music with daapd
Posted by joe on Thu 16 Jun 2005 at 23:35
The most common application that uses daap is iTunes. There are, however, a few other applications for Linux that offer the same functionality.
What I'll be showing you is how to set up a daapd server so you can have a central music repository quick and easily.
First, installation. Ready for it? Here it comes...
apt-get install daapdwhew.
It'll most likely also want to install mdnsresponder, too. You also might want to toss in some other music libraries like ogg or aac while you're at it. mdnsresponder is the guy that will handle all the mDNS stuff for you. There isn't much to that package. There's a configuration file but not really any documentation on what to do with it. That really doesn't matter though since all you need to do is start it up and never worry about it again.
Next, you'll want to edit your /etc/daapd.conf file. The options are all self-explanitory and have good descriptions. One thing you'll want to do, though, is get rid of any .m3u playlist files. I noticed that this causes applications to crash for some reason -- which is unfortunate because applications that support m3u through daapd will automatically show you the playlists in the application. Hopefully this will be fixed in a later version.
After you're all done with that, start daapd up with a good 'ol
/etc/init.d/daapd startIf your music directory is quit big, it'll take a while for the initial scan. Once that's all done, fire up your client application (like iTunes) and your host should pop up in the menu.
And that's it.
It's also worth noting that you can't copy songs to your own computer via DAAP, per se. DAAP works via HTTP and if you're sneaky, you could always use something like wget. But you didn't hear that from me or him..
Here's some daapd references:
daapd homepage
daap wiki
Have fun!
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
GNUMP3d (package) might be worth looking at for streaming music.
Although I'm biased as it is my code ..
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
You're welcome .. it's probably the single most popular or useful thing I've ever written.
I'm tempted to post an article on it, but it's kinda taking self-promotion a bit far!
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
promoting gnump3d would be most useful. It took me a while to find it, but I am using it a lot now, and i am so used firing up my browser to play some music that i could hardly do without.
I sometimes do a ssh tunnel to play music from other places:
ssh -fg gateway.homedomain -L 8888:internalhost.homedomain:8888 sleep 3600
About daapd, it should be noted that howl, the source of mdnsresponder, is not so free as it is a fork of code published under the Apple Public Source License. This is the reason why it is not in sarge.
Cheers, piem
[ Parent | Reply to this comment ]
aptitude show mt-daapd
...
mt-daapd is a DAAP server that works with most POSIX compatible operating systems. It allows you to share your music collection over the local network using
the same protocol iTunes uses, so real iTunes users may peruse your music.
Moreover, if your music is in more esoteric formats like FLAC, Ogg Vorbis, or Musepack, these can be converted on the fly to different formats (usually WAV),
so that your entire music collection can be listened to by normal iTunes clients.
It also features a web interface that can be used to control components of the server, trigger database updates, and create playlists.
[ Parent | Reply to this comment ]