G
gcooper
Guest
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):
4. Test out your settings
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.
5. Making the change permanent
6. Cleanup
Notes:
1. Login as root to FreeNAS box.
2. Execute the following commands:
Code:
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 mkdir /var/db/firefly
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):
Code:
[general] 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 [plugins] plugin_dir = /usr/local/lib/mt-daapd/plugins [scanning] process_playlists = 1 process_itunes = 1 process_m3u = 1
4. Test out your settings
Code:
/usr/local/etc/rc.d/mt-daapd onestart
If all goes well, the following command should print out something like the following:
Code:
[root@freenas] ~# /usr/local/etc/rc.d/mt-daapd onestatus firefly is running as pid 7852.
If all doesn't go well, check /var/log/firefly.log for more details.
5. Making the change permanent
Code:
echo 'firefly_enable="YES"' >> /conf/base/etc/rc.conf
6. Cleanup
Code:
# DO NOT FORGET THIS! mount -ru /
Notes:
- 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.