Saturday, 4 September 2010

How to setup Firefly Media Server on Ubuntu 10.0.4


Firefly, formerly known as the incongruously titled mt-daapd is a server based streaming app that streams to DAAP clients like iTunes, Banshee and Rhythmbox (see screenshot above) or hardware players like the Roku Soundbridge. Unfortunately iTunes 10 cannot access Firefly at the moment, hopefully this will be sorted soon. Since I'm installing this on a headless Ubuntu 10.0.4 server I'm using commandline configuration, accessing it from my laptop via ssh. Either enter these commands sitting at the server in a terminal, or ssh into it from another PC that has a terminal or ssh client. Enable ssh access to your server with sudo apt-get install ssh and login to your server with ssh ip-address - for example: ssh 192.168.16.14


Install Firefly


sudo apt-get install libid3tag0 (I think this ensures Firefly can read mp3 tags, it's usually installed already in Ubuntu)

then:

sudo apt-get install mt-daapd


Configure Firefly

Next you need to edit Firefly's config file:

sudo nano /etc/mt-daapd.conf


Use Ctrl + W to find the parts of the config file you want to edit. First you need to edit Firefly's admin password (replace password with something you'll remember that's secure):

admin_pw = password


Next add your music folder - mine is:

mp3_dir = /storage1/music


You can also have a password for playing music (the one you enter in the player e.g. iTunes) - remove the '#' and replace mp3 with a suitable password, but this is entirely optional.

#password = mp3


Then you might want to change the Firefly server name, I've named mine "server2-Firefly".

servername = Server2-Firefly %v on %h


Next start Firefly with:

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


Now you should be able to log in to Firefly's admin page from your web browser on your network.

http://servers-ip-address:3689

for instance mine is http://192.168.16.14:3689

or if you are configuring it on your server:

http://localhost:3689



Here you can rescan the collection, set scanning preferences and various other options. And that's pretty much the whole setup. You may have to set your music folders permissions so they they can be read by everyone, so Firefly can see all your music. Now you should be able to play your Firefly server's music from Rhythmbox, Banshee, Amarok, iTunes or whichever DAAP client you use. Rock on!

12 comments:

mangopacket said...

Great post, thanks for the info :) It helped me get mine running.

Pieman said...

What's the default username to login to the server?

Carl Draper said...

mt-daapd

Olivier said...

I installed the firefly on an ubuntu 12.10 server, but I cannot get it up and running.

Installation done with the user of webmin.

Pointed, in the conf-file, the corrected folder for my music.

Process is running.

Url works fine, but the username/pwd is not working.

Any pointers what cqn be wrong?

Olivier said...

I installed the firefly on an ubuntu 12.10 server, but I cannot get it up and running.

Installation done with the user of webmin.

Pointed, in the conf-file, the corrected folder for my music.

Process is running.

Url works fine, but the username/pwd is not working.

Any pointers what cqn be wrong?

Olivier said...

I installed the firefly on an ubuntu 12.10 server, but I cannot get it up and running.

Installation done with the user of webmin.

Pointed, in the conf-file, the corrected folder for my music.

Process is running.

Url works fine, but the username/pwd is not working.

Any pointers what cqn be wrong?

Olivier said...

I installed the firefly on an ubuntu 12.10 server, but I cannot get it up and running.

Installation done with the user of webmin.

Pointed, in the conf-file, the corrected folder for my music.

Process is running.

Url works fine, but the username/pwd is not working.

Any pointers what cqn be wrong?

Olivier said...

I installed the firefly on an ubuntu 12.10 server, but I cannot get it up and running.

Installation done with the user of webmin.

Pointed, in the conf-file, the corrected folder for my music.

Process is running.

Url works fine, but the username/pwd is not working.

Any pointers what cqn be wrong?

Olivier said...

I installed the firefly on an ubuntu 12.10 server, but I cannot get it up and running.

Installation done with the user of webmin.

Pointed, in the conf-file, the corrected folder for my music.

Process is running.

Url works fine, but the username/pwd is not working.

Any pointers what cqn be wrong?

Olivier said...

I installed the firefly on an ubuntu 12.10 server, but I cannot get it up and running.

Installation done with the user of webmin.

Pointed, in the conf-file, the corrected folder for my music.

Process is running.

Url works fine, but the username/pwd is not working.

Any pointers what cqn be wrong?

Olivier said...

I installed the firefly on an ubuntu 12.10 server, but I cannot get it up and running.

Installation done with the user of webmin.

Pointed, in the conf-file, the corrected folder for my music.

Process is running.

Url works fine, but the username/pwd is not working.

Any pointers what cqn be wrong?

Carl Draper said...

It's been awhile since I used mt-daapd (it's not even in Ubuntu's repositories now) and have not tried it for awhile.

Which username and password do you mean? The admin interface?