Flexion.Org
Bad grammar and typos for total strangers
Wiki › Daap Server
Wiki Index All Recent Edit Bottom

DAAP Server

1.   Introduction
2.   Installing Fire Fly Server
3.   Configuring Fire Fly Server
3.1   Scan Music Library
4.   Last.fm Support

Introduction

I wanted to setup a simple music server so I could stream audio to my wifes laptop. This has been tested on Ubuntu and Debian.

Installing Fire Fly Server

The FireFly Media Server seemed the most simplest and most suitable media server for this proof of concept, although it lacks some feature I would like such as audio matching play lists using something like http://www.musicip.com/.

 aptitude install mt-daapd

Configuring Fire Fly Server

I haven't dug very deep into the configuration yet.

 nano /etc/mt-daapd.conf

Change the password and path to your music files.

 /etc/init.d/mt-daapd restart

Scan Music Library

Browse to :

Click Start Scan to import you music into the database.

Automating Scans

Re-scan

* http://localhost:3689/xml-rpc?method=rescan

Full rescan

* http://localhost:3689/xml-rpc?method=rescan&full=1

If you are doing it from a remote system, you may need to use username and password as well:

* http://user:password@localhost:9999?xml-rpc?method=rescan

Last.fm Support

I no longer embed Last.fm support in my Firefly servers, this is here for reference only.

 aptitude install lastfmsubmitd sqlite3

When prompted...

  • User name of Last.fm account: your last.fm user
  • Password for Last.fm account: your last.fm password
  • Group that may send submissions: lastfm

Create a script to submit recently played files to Last.fm.

 nano /usr/local/bin/firefly-to-lastfm.sh

Sample

Set the permissions appropriately.

 sudo chmod 755 /usr/local/bin/firefly-to-lastfm.sh

Play some music (complete tracks) via the Fire Fly server, then as root run the script.

 /usr/local/bin/firefly-to-lastfm.sh

Now login to you Last.fm account as check your profile to make sure the tracks you just listened to have been added.

Finally, create a cron job to submit you recently played music to Last.fm.

 ln -s /usr/local/bin/firefly-to-lastfm.sh /etc/cron.hourly/

References

$Id: DaapServer,v 1.21 2008/07/19 17:37:10 martin Exp $

Wiki Index All Recent Edit Top
 
Valid XHTML Valid CSS Hacker