You are here: Home » Topic » Firefly on NAS?page 3

Firefly on NAS?

Viewing 15 posts - 31 through 45 (of 63 total)
  • Author
    Posts
  • #10694
    Anonymous
    Inactive

    Hi all!
    I finally got time to sit down and try to fix my NAS.
    It seems that everything worked fine, exept that Idon’t
    seem to get the Firefly running.
    Do I have to include som startscript in the header for making the Firefly run?
    The response when trying the “ps -ef | grep mt-daapd” command is this:
    “root 892 886 0 18:41 pts/0 00:00:00 grep mt-daapd”
    Do I have to copy the “S99firefly” script anywhere exept at the “/etc/init.d”
    and where to if so…

    thnx!
    /Andy

    #10695
    fizze
    Participant

    Try to run the binary manually first.
    Make sure you have set execute permissions (chmod 755) to mt-daapd.

    Then check the paths in the init script, make that executeable as well (chmod 755) and try to give it a go.

    Make sure to monitor the log! 😉

    #10696
    Anonymous
    Inactive

    Hey Fizze!
    Well, sorry for my unknowledge, but how do I do that?

    /Andy

    #10697
    fizze
    Participant

    Locate the binary, usually its in /opt/bin or /usr/bin, called mt-daapd.
    then try to execute it. 😉

    If that fails, please post the output of

    ls -al mt-daapd

    when you’re in that directory. Chances are you dont have execute permissions set.

    #10698
    Anonymous
    Inactive

    Hi!
    I tried the above, but with this result:
    “./mt-daapd
    Error reading config file (/usr/local/etc/mt-daapd.conf)”
    But I do see the mt-daap file there…

    /Andy

    #10699
    fizze
    Participant

    What exactly is the command that you used when you tried to run mt-daapd?

    If you run it maunally mt-daapd expects a single parameter, the location of the config file.

    So if your config file is in /usr/local/etc/mt-daapd.conf this should be like:

    mt-daapd -c /usr/local/etc/mt-daapd.conf

    If you did it like that, then probably your config-file isnt world-readable.
    try this:

    chmod 755 /usr/local/etc/mt-daapd.conf

    (This isnt 100% water-proof, from a security point of view, but it should do for testing some stuff on a local NAS)

    #10700
    Anonymous
    Inactive

    OK, so I finally got execute permission and got it to accept the command:
    “./mt-daapd.conf -c /etc/mt-daapd.conf”
    But all I get in response is:

    ./mt-daapd.conf: line 13: [general]: command not found
    ./mt-daapd.conf: line 27: web_root: command not found
    ./mt-daapd.conf: line 36: port: command not found
    ./mt-daapd.conf: line 44: admin_pw: command not found
    ./mt-daapd.conf: line 54: db_type: command not found
    ./mt-daapd.conf: line 68: db_parms: command not found
    ./mt-daapd.conf: line 78: mp3_dir: command not found
    ./mt-daapd.conf: line 88: servername: command not found
    ./mt-daapd.conf: line 102: runas: command not found
    ./mt-daapd.conf: line 117: playlist: command not found
    ./mt-daapd.conf: line 148: extensions: command not found
    ./mt-daapd.conf: line 172: ssc_codectypes: command not found
    ./mt-daapd.conf: line 192: ssc_prog: command not found
    ./mt-daapd.conf: line 280: scan_type: command not found
    ./mt-daapd.conf: line 297: [plugins]: command not found
    ./mt-daapd.conf: line 298: plugin_dir: command not found

    whats wrong?!

    /Andy

    #10701
    sonichouse
    Participant

    @andrease wrote:

    OK, so I finally got execute permission and got it to accept the command:
    “./mt-daapd.conf -c /etc/mt-daapd.conf”
    But all I get in response is:

    ./mt-daapd.conf: line 13: [general]: command not found

    You need to run

    ./mt-daapd -c /etc/mt-daapd.conf
    #10702
    Anonymous
    Inactive

    Ahhhh, I see…
    I’ll try that when I get home.
    Thnx!
    8)

    #10703
    Anonymous
    Inactive

    Hmmmm…. I just don’t get it Sorry!
    But both files mt-daapd and mt-daapd.conf is in the etc directory, but
    I get this message when I try your code:
    ./mt-daapd -c /etc/mt-daapd.conf
    bash: ./mt-daapd: No such file or directory

    Confused!!

    #10704
    fizze
    Participant

    Where is the mt-daapd binary located? The program, not the config file 😉

    eG if its in /usr/bin you’d have to type

    /usr/bin/mt-daapd -c /etc/mt-daapd.conf
    #10705
    Anonymous
    Inactive

    OK, so it’s in “/usr/local/sbin/”
    when I’m in that directory, I run: “./mt-daapd -c /etc/mt-daapd.conf”
    and I got no response, just back to the promt.
    And when I try the “ps -ef | grep mt-daapd” command,
    all I still get is:
    “root 1181 1168 0 16:22 pts/0 00:00:00 grep mt-daapd”

    arghhhh….. 😈

    #10706
    sonichouse
    Participant

    To locate the mt-daapd executable try this from your telnet session

    find / -name mt-daapd

    This should list the location of the file.

    [edit]
    Sorry, after reading your posts above again, try this

    /etc/mt-daapd -c /etc/mt-daapd.conf

    [/edit]

    #10707
    Anonymous
    Inactive

    Ok, response: /opt/mt-daapd-svn-1586/src/mt-daapd

    So I should write code:
    “/opt/mt-daapd-svn-1586/src/mt-daapd -c /etc/mt-daapd.conf” ??

    #10708
    sonichouse
    Participant

    If that is the binary, then yes.

    to check try

    ls -l /opt/mt-daapd-svn-1586/src/mt-daapd

    and it should show something like

    -rwxr-xr-x 1 root root 350844 May 18 03:37 /opt/sbin/mt-daapd

    This shows if it is executable. My fear is that is just a directory you listed.

Viewing 15 posts - 31 through 45 (of 63 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.