From eLinux.org
Revision as of 12:55, 9 July 2014 by Ejurgensen (talk | contribs) (Remove discussion of obsolete versions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page is intended for people who have their music stored on their Raspberry Pi, and who want to run an iTunes server (DAAP server) and listen to their music in one of these ways:

  • streaming to an AirPlay device and controlling the server with a remote app (like Apple Remote on iPod Touch/iPhone/iPad or TunesRemote+ on Android) or with iTunes
  • streaming to a DAAP player/client (like iTunes, Rhythmbox, Music Pump DAAP Player)
  • using the Pi's own sound card and controlling the server with a remote app or with iTunes
  • streaming to a Roku device

forked-daapd is an iTunes server (DAAP server) made by Julian Blache, based on mt-daapd (Firefly). It's also a Roku server (RSP server).

Forked-daapd is available for Raspbian and Raspbmc. It is not recommended to install directly from the Raspbian Wheezy repository as the version (0.19) is obsolete. Instead you can install a newer version by following these instructions: you can look here.

Newer versions of forked-daapd are also available in Debian Wheezy-backports, Jessie and Sid.

Configuring forked-daapd

Once installed the forked-daapd server will be started automatically, however we need to stop it while we configure it so that the changes are accepted

The following will stop the server

sudo /etc/init.d/forked-daapd stop

We will now edit the configuration file

sudo nano /etc/forked-daapd.conf

Change the line

directories = { "/srv/music" }

to point to wherever your music lives (I have mounted a USB drive with my library). If you are not running forked-daapd with root privileges make sure that the user (probably "daapd") has require read access.

Ctrl+X to exit, Y to save followed by enter

Start forked-daapd back up

sudo /etc/init.d/forked-daapd start

Testing it worked

If it all went well, if you open iTunes on a computer connected to the same network a your library should appear under Shared, allowing you to stream music to you machine.

Enabling Remote

If you have an iOS device you can control the playback via the Remote app. To set this up:

Create a file in the same directory as your music, it can be called anything but must have a .remote extension

nano /pathtoyourmusiclibrary/temp.remote

Now add two lines, the first must be the exact name of your device (You can find this in Settings - General - About), the second is the passcode given by the remote app when adding a new library: for example:


Ctrl+X to exit, Y to save followed by enter

As soon as you do this the Remote app should add your library, in the 19-04 release of Debian ensure you enable sounds

sudo modprobe snd_bcm2835

If you play a song using Remote app, but it closes, try add the daapd user to the audio group

sudo adduser daapd audio

If you have any problems change the logging level to info in the config and check the logs at /var/log/forked-daapd.log.