NOTE: Here are complete semi-official directions for how to set things up with daapd and firefly (I'm writing this because I want people to test the firefly backend to make sure that things work properly with it).
1. Login as root to FreeNAS box.
2. Execute the following commands:
3. Copy the following to /usr/local/etc/mt-daapd.conf (replace the parameters below with something more useful for your install.. see /usr/local/etc/mt-daapd.conf.sample for hints on what you can change):
mount -wu /
# There's a bug in either FreeNAS or the port that prevents this from being done automatically.
pw user add daapd
# Work around a bug with prefixing in the port.
sed -i '' -e 's,^required_dirs.*,required_dirs="/var/db/firefly",g' /usr/local/etc/rc.d/mt-daapd
4. Test out your settings
web_root = /usr/local/share/mt-daapd/admin-root
port = 3689
admin_pw = mt-daapd
db_type = sqlite3
db_parms = /var/db/firefly
mp3_dir = /mnt/tank/
servername = FreeNAS %v on %h
# port bug.. doesn't start with user = daapd for some odd reason.
runas = root
# Set this if you want to have password access to your share.
#password = password
extensions = .mp3,.m4a,.m4p,.ogg,.flac
ssc_codectypes = ogg,flac,alac
ssc_prog = /usr/local/bin/mt-daapd-ssc.sh
logfile = /var/log/mt-daapd.log
debuglevel = 5
rescan_interval = 300
always_scan = 0
scan_type = 0
compress = 1
plugin_dir = /usr/local/lib/mt-daapd/plugins
process_playlists = 1
process_itunes = 1
process_m3u = 1
If all goes well, the following command should print out something like the following:
If all doesn't go well, check /var/log/firefly.log for more details.
[root@freenas] ~# /usr/local/etc/rc.d/mt-daapd onestatus
firefly is running as pid 7852.
5. Making the change permanent
echo 'firefly_enable="YES"' >> /conf/base/etc/rc.conf
# DO NOT FORGET THIS!
mount -ru /
- I've gotten things to play properly with iTunes 10.4.1 on Snow Leopard, but some versions of iTunes have issues with Firefly according to posts I've seen elsewhere.
- This only allows you to play audio files right now, from what I've seen (tried playing some purchased video content, but it didn't work). I'm looking at importing forked-daapd, but in the meantime this works and is relatively stable.