Different servers or folders / how to

FireFly Media Server Firefly Media Server Forums Firefly Media Server Setup Issues Different servers or folders / how to

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1434
    ervin23
    Participant

    hi,

    Testing mt-daapd and I’m surprised how functional it is … great!!

    Question …. aside from playlists is it possible to set more servers on the same net (Linux) or another workaround for the following wish:

    To have an iTunes view by owner name, like:

      Frank’s music
      Peter’s music
      Sophie’s music
      and so on ….

    Is that possible ?

    Ciao

    #10943
    S80_UK
    Participant

    Hi,

    Welcome to the forum.

    Yes – it is possible. Have a read of this thread….

    http://forums.fireflymediaserver.org/viewtopic.php?t=5590

    Effectively you can run multiple instances of the Firefly server with each instance configured independently.

    Cheers,

    Les.

    #10944
    ervin23
    Participant

    @S80_UK wrote:

    Hi,

    Welcome to the forum.

    Yes – it is possible. Have a read of this thread….

    http://forums.fireflymediaserver.org/viewtopic.php?t=5590

    Effectively you can run multiple instances of the Firefly server with each instance configured independently.

    Cheers,

    Les.

    I think I got it, thanks a lot πŸ™‚

    …. can you share with me the contents of your S60mt-daapd file and maybe one of your config files, how do setup your wife’s config to read All, Wife and Me folders – can’t you just set one folder pr config file ?

    #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.

    #10946
    ervin23
    Participant

    @S80_UK wrote:

    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.

    I’m almost there – it’s running …. your advice having several daemons running is brilliant πŸ™‚

    The shared mp3_dir is however causing me trouble ….

    #
    # mp3_dir (required)
    #
    # Location of the mp3 files to share. This corresponds
    # to a folder called “mp3” in the “DISK 1” share.
    #

    mp3_dir=/share/hdd/data/mp3/all,/share/hdd/data/mp3/ev

    # servername (required)
    #
    # This is both the name of the server as advertised
    # via rendezvous, and the name of the database
    # exported via DAAP
    #

    servername All Music

    #
    # runas (required)
    File mt-daapd.conf saved
    # /opt/etc/init.d/S60mt-daapd
    Required config entry ‘mp3_dir’ not specified
    Error reading config file (/opt/etc/mt-daapd/all/mt-daapd.conf)
    # mp3_dir=/share/hdd/data/mp3/all,/share/hdd/data/mp3/ev
    #
    You see I have the “mp3_dir=etc” ….. but the server can’t read it on restart

    I’m on Version 0.2.4

    Any tips … best regards ev

    #10947
    S80_UK
    Participant

    @ervin23 wrote:

    The shared mp3_dir is however causing me trouble ….

    #
    # mp3_dir (required)
    #
    # Location of the mp3 files to share. This corresponds
    # to a folder called “mp3” in the “DISK 1” share.
    #

    mp3_dir=/share/hdd/data/mp3/all,/share/hdd/data/mp3/ev

    # servername (required)
    #
    # This is both the name of the server as advertised
    # via rendezvous, and the name of the database
    # exported via DAAP
    #

    servername All Music

    #
    # runas (required)
    File mt-daapd.conf saved
    # /opt/etc/init.d/S60mt-daapd
    Required config entry ‘mp3_dir’ not specified
    Error reading config file (/opt/etc/mt-daapd/all/mt-daapd.conf)
    # mp3_dir=/share/hdd/data/mp3/all,/share/hdd/data/mp3/ev
    #
    You see I have the “mp3_dir=etc” ….. but the server can’t read it on restart

    I’m on Version 0.2.4

    Any tips … best regards ev

    At the moment I can’t see anything obvious. I have never used 0.2.4 so I wonder if that may be related – I am currently on the recent nightly release 1586 (from http://nightlies.mt-daapd.org/), but I got his working with 1511 I think.

    But before you change anything big – let’s check the basics… Have you tried with just a single directory specifed? Can you see the directory(s) at the location specified? (try

    cd /share/hdd/data/mp3/all

    for example to change to that directory, then

    ls

    to see the files and directories there)

    (and apologes in advance if you know all that stuff πŸ™‚ )

    If anyone else can see a problem here that I’m missing – please join in…

    Les.

    #10948
    ervin23
    Participant

    @S80_UK wrote:

    @ervin23 wrote:

    The shared mp3_dir is however causing me trouble ….

    #
    # mp3_dir (required)
    #
    # Location of the mp3 files to share. This corresponds
    # to a folder called “mp3” in the “DISK 1” share.
    #

    mp3_dir=/share/hdd/data/mp3/all,/share/hdd/data/mp3/ev

    # servername (required)
    #
    # This is both the name of the server as advertised
    # via rendezvous, and the name of the database
    # exported via DAAP
    #

    servername All Music

    #
    # runas (required)
    File mt-daapd.conf saved
    # /opt/etc/init.d/S60mt-daapd
    Required config entry ‘mp3_dir’ not specified
    Error reading config file (/opt/etc/mt-daapd/all/mt-daapd.conf)
    # mp3_dir=/share/hdd/data/mp3/all,/share/hdd/data/mp3/ev
    #
    You see I have the “mp3_dir=etc” ….. but the server can’t read it on restart

    I’m on Version 0.2.4

    Any tips … best regards ev

    At the moment I can’t see anything obvious. I have never used 0.2.4 so I wonder if that may be related – I am currently on the recent nightly release 1586 (from http://nightlies.mt-daapd.org/), but I got his working with 1511 I think.

    But before you change anything big – let’s check the basics… Have you tried with just a single directory specifed? Can you see the directory(s) at the location specified? (try

    cd /share/hdd/data/mp3/all

    for example to change to that directory, then

    ls

    to see the files and directories there)

    (and apologes in advance if you know all that stuff πŸ™‚ )

    If anyone else can see a problem here that I’m missing – please join in…

    Les.

    hi

    8) …. the server is running perfectly with 4 mp3 filled folders, all named separately with their own conf file as shares in iTunes …let’s call them A, B, C % D … but only with one mp3_dir line is each conf file, ex:

    mp3_dir         /share/hdd/data/mp3/A

    … and all the folders (dirs) are present.

    so far so good

    I’m trying to combine these four in share All as follows:

    mp3_dir=/share/hdd/data/mp3/all,/share/hdd/data/mp3/A,/share/hdd/data/mp3/B,/share/hdd/data/mp3/C,/share/hdd/data/mp3/D

    and I get this error when restarting the server:

    # /opt/etc/init.d/S60mt-daapd
    Required config entry ‘mp3_dir’ not specified
    Error reading config file (/opt/etc/mt-daapd/all/mt-daapd.conf)
    # mp3_dir=/share/hdd/data/mp3/all,/share/hdd/data/mp3/A,/share/hdd/data/mp3/B,/share/hdd/data/mp3/C,/share/hdd/data/mp3/D
    #
    I wonder as well if it’s ver 2.4.2 related ….

    ervin πŸ˜€

    #10949
    S80_UK
    Participant

    @ervin23 wrote:

    I wonder as well if it’s ver 2.4.2 related ….

    ervin πŸ˜€

    OK – it sound like you have most things set up OK, so trying a more recent verson would seem the most likely thing to do next. Note however, that when you install (if upgrading) the installer will offer you the choice of keeping your old config file. You should allow it to overwrite with a new one since I understand that there have been some config file format changes. You will then need to edit back in your customisation tweaks so make sure you have copies first.

    Good luck,

    Les.

    #10950
    ervin23
    Participant

    @S80_UK wrote:

    @ervin23 wrote:

    I wonder as well if it’s ver 2.4.2 related ….

    ervin πŸ˜€

    OK – it sound like you have most things set up OK, so trying a more recent verson would seem the most likely thing to do next. Note however, that when you install (if upgrading) the installer will offer you the choice of keeping your old config file. You should allow it to overwrite with a new one since I understand that there have been some config file format changes. You will then need to edit back in your customisation tweaks so make sure you have copies first.

    Good luck,

    Les.

    hi

    Install of the ver. 1586 (http://nightlies.mt-daapd.org/) solved the issue and I got a SQL database on top …. a dream.

    Thx a lot πŸ™‚ πŸ˜€

    #10951
    S80_UK
    Participant

    You’re welcome. Glad we got there in the end.

    Les.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Setup Issues’ is closed to new topics and replies.