Just in case anyone is interested in recreating this set-up, I thought I'd sign off this thread with a fuller description on the procedure
(in appreciation for the help this forum gave me)
Please Note:
For ANY of this to work, the MBWEII requires hacking to install the mt-daapd Firefly server (part of NSLU2 Optware package).
Easy to follow details can be found at the following links:
http://mybookworld.wikidot.com/hacks-and-howtohttp://wiki.fireflymediaserver.org/MyBo ... on_Installhttp://www.nslu2-linux.org/wiki/Optware/Mt-daapdOnce that is set up a small number of files need to be created and configured, as I shall attempt to detail below.
******************** FOR A SINGLE mt-daapd INSTANCE: ********************
1. Create the mt-daapd configuration file; /opt/etc/mt-daapd/mt-daapd.conf
Edit the the following fields:
-- db_dir - pointer to the directory holding the songs.gdb database file (e.g. /opt/var/mt-daapd)
-- mp3_dir - pointer to your mp3 directory (e.g /shared/internal/PUBLIC/MP3)
-- servername - a name for your server that will be visible to DAAP clients (e.g. MyBook Firefly)
2. create the songs database using the following command; /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
This will start the mt-daapd process and begin creating/updating the songs.gdb database file.
You may monitor the progress of the database creation using the following commands
ls-l /opt/var/mt-daapd
ps -ef | grep mt-daapd
3. Create a script to start your mt-daap process with the MBWE (e.g. /opt/etc/init.d/S60mt-daapd)
Include the following:
#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib
if [ -n "`pidof mt-daapd`" ] ; then
killall mt-daapd 2>/dev/null
fi
sleep 2
/opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
******************** FOR MULTIPLE mt-daapd INSTANCES: ********************
For each mt-daapd instance (denoted with the generic "<xyz>" postfix below):
1. create a unique <xyz>.conf file in the directory /opt/etc/mt-daapd/.
Edit the following fields for each instance:
-- db_dir - location you wish to put the songs.gdb database file (e.g. /opt/var/mt-daapd/db_<xyz>/)
-- mp3_dir - pointer to the mp3 directory (e.g. /shared/internal/PUBLIC/MP3/<xyz>)
-- servername - (in MyBook Firefly <xyz>)
-- port - assign a unique port to each instance (e.g. 3689, 3690,...)
Optionally create unique entries for the following
-- rescan_interval - use different periods so that the db updates are usually not synchronized
-- playlist - pointer to customized playlist file for each songs.gdb (e.g. /opt/etc/mt-daapd/mt-daapd_<xyz>.playlist)
Note:
The mp3_dir field only accepts a single directory argument which means hacking your MP3 directory structure to suit your servers!
For greater flexibility, I personally point each "mp3_dir" field to a directory containing one (or more) symbolic links to the "branches"
of my MP3 library that I wish included in each database.
Creating one such "links" directory for each server, containing multiple links to branches of your MP3 tree is much easier.
For example, the following will include both the pop and blues subdirectories in the db<xyz>/songs.gdb database:
mkdir /opt/var/mt-daapd/db_<xyz>/ln
ln -s /shared/internal/PUBLIC/MP3/pop /opt/var/mt-daapd/db_<xyz>/ln/pop
ln -s /shared/internal/PUBLIC/MP3/blues /opt/var/mt-daapd/db_<xyz>/ln/blues
2. Create songs database with the following command:
/opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd_<xyz>.conf
This will start mt-daapd and begin creating/updating the database file indicated in the <xyz>.conf file
(/opt/var/mt-daapd/db_<xyz>/songs.gdb )
3. Create a script to start/restart mt-daapd with your MyBook (e.g. /opt/etc/init.d/S60mt-daapd)
#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib
if [ -n "`pidof mt-daapd`" ] ; then
killall mt-daapd 2>/dev/null
fi
sleep 2
# include the following line for each mtdaapd instance running:
/opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd_<xyz>.conf
That's about it really. Hopefully I have remembered all the necessary steps.
As long as your music collection doesn't exceed around 20,000 files, a single server works just fine.
I have three, serving over 40,000 songs. Works great. No sign of excessive processor loading.
-if that worries you, two of 70mm fans like below perfectly replace the noisy little bugger in the MBWEII
makes it nice and cool, plus even more noticeably, super quiet!
MASSCOOL FD07015S1M3/4 70mm Case Fan
http://www.newegg.com/Product/Product.a ... 6835150064