Reply To: Different servers or folders / how to

#10945
S80_UK
Participant

OK – so this is a S60mt-daapd file…

#!/bin/sh

# make sure our shared libraries are in the path.
# if we get /etc/ld.so.conf working, this export
# can be removed
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/All/mt-daapd.conf
/opt/sbin/mt-daapd -c /opt/etc/mt-daapd/Leslie/mt-daapd.conf
/opt/sbin/mt-daapd -c /opt/etc/mt-daapd/Jenny/mt-daapd.conf
/opt/sbin/mt-daapd -c /opt/etc/mt-daapd/Joanne/mt-daapd.conf

You will see that each instantiation of the server points to a different config file (they are in separate directories in this case).

Now, if each user had a unique choice of music, then your life is simple since each config only has to point to a single folder. However, if there is some music that two people like, but they also have their own unique preferences, then you either need to double up on the music they both like and put it in the folder for each of them, or give them another folder which they can share. Since Firefly can easily be set to point to more than one folder, I did it the second way.

Here are the relevant entries from one of the mt-daapd.conf files….


#
# give each user a log file, a unique server name, and a unique port number
#
logfile = /share/flash/data/mt-daapd/Leslie/mt-daapd.log
servername = Leslie's Music
port = 3690
#
#

#
# give each user a unique database location
#
db_type = sqlite
db_parms = /share/flash/data/mt-daapd/Leslie

#
# mp3_dir (required)
#
# Location of the mp3 files to share. This corresponds
# to a folder called "mp3" in the "DISK 1" share.
#
# this is unique for each user
#
mp3_dir = /share/flash/data/music/All,/share/flash/data/music/Leslie,/share/flash/data/music/Jenny-Leslie,/share/flash/data/music/Joanne-Leslie
#

mp3_dir = /share/flash/… is all on one line – on my screen it end up looking as though it is on two lines…

You will need to edit your own config files to suit your needs. Also note thet the use of the path ‘…/flash/…’ simply points to the hard drive on port 2 on the NSLU2, it is nothing to do with flash memory.

Hope this helps you,

Les.