Setting up daapd with Firefly on the freenas nightlies post-09/25/2011

Discussion in 'Configuration' started by gcooper, Sep 26, 2011.

Thread Status:
Not open for further replies.
  1. gcooper New Member

    Member Since:
    Sep 23, 2011
    Message Count:
    416
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Former iXsystems Software Developer
    gcooper, Sep 26, 2011

    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:

    Code (text):
    1.  
    2. mount -wu /
    3. # There's a bug in either FreeNAS or the port that prevents this from being done automatically.
    4. pw user add daapd
    5. # Work around a bug with prefixing in the port.
    6. sed -i '' -e 's,^required_dirs.*,required_dirs="/var/db/firefly",g' /usr/local/etc/rc.d/mt-daapd
    7. mkdir /var/db/firefly
    8.  
    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 (text):
    1. [general]
    2. web_root = /usr/local/share/mt-daapd/admin-root
    3. port = 3689
    4. admin_pw = mt-daapd
    5. db_type = sqlite3
    6. db_parms = /var/db/firefly
    7. mp3_dir = /mnt/tank/
    8. servername = FreeNAS %v on %h
    9. # port bug.. doesn't start with user = daapd for some odd reason.
    10. runas = root
    11. # Set this if you want to have password access to your share.
    12. #password = password
    13. extensions = .mp3,.m4a,.m4p,.ogg,.flac
    14. ssc_codectypes = ogg,flac,alac
    15. ssc_prog = /usr/local/bin/mt-daapd-ssc.sh
    16. logfile = /var/log/mt-daapd.log
    17. debuglevel = 5  
    18. rescan_interval = 300
    19. always_scan = 0
    20. scan_type = 0
    21. compress = 1
    22.  
    23. [plugins]
    24. plugin_dir = /usr/local/lib/mt-daapd/plugins
    25.  
    26. [scanning]
    27. process_playlists = 1
    28. process_itunes = 1
    29. process_m3u = 1
    4. Test out your settings

    Code (text):
    1.  
    2. /usr/local/etc/rc.d/mt-daapd onestart
    3.  
    If all goes well, the following command should print out something like the following:

    Code (text):
    1.  
    2. [root@freenas] ~# /usr/local/etc/rc.d/mt-daapd onestatus
    3. firefly is running as pid 7852.
    4.  
    If all doesn't go well, check /var/log/firefly.log for more details.

    5. Making the change permanent

    Code (text):
    1.  
    2. echo 'firefly_enable="YES"' >> /conf/base/etc/rc.conf
    3.  
    6. Cleanup

    Code (text):
    1.  
    2. # DO NOT FORGET THIS!
    3. mount -ru /
    4.  
    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.
  2. jerrybme Member

    Member Since:
    Sep 28, 2011
    Message Count:
    33
    Likes Received:
    7
    Trophy Points:
    8
    jerrybme, Oct 9, 2011

    I just built r8187 from svn with software features set to:SW_FEATURES="DEBUG REPORTING MULTIMEDIA" and found mt-daap was missing in the resulting image. Has firefly been pulled?
    Thanks,
    Jerry
  3. gcooper New Member

    Member Since:
    Sep 23, 2011
    Message Count:
    416
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Former iXsystems Software Developer
    gcooper, Oct 9, 2011

    I don't remember why, but I pulled it (I may have been trying to slim down the image and committed that by accident). If you svn up it'll be there again.
  4. jerrybme Member

    Member Since:
    Sep 28, 2011
    Message Count:
    33
    Likes Received:
    7
    Trophy Points:
    8
    jerrybme, Oct 10, 2011

    Thanks got this morning and it compiled fine.
    Jerry
  5. MrWGT New Member

    Member Since:
    Jan 6, 2012
    Message Count:
    7
    Likes Received:
    0
    Trophy Points:
    0
    MrWGT, Jan 6, 2012

    Hi...

    i've installed 8.0.3 multimedia and followed the above steps and firefly starts up ok. But after a reboot /usr/local/etc/mt-daapd.conf is resetted. How can i prevent the loose of changes?

    Kind regards

    Gerd
  6. MrWGT New Member

    Member Since:
    Jan 6, 2012
    Message Count:
    7
    Likes Received:
    0
    Trophy Points:
    0
    MrWGT, Jan 8, 2012

    I made some changes to your steps and now it's working for me after a restart. The changes are below.

    1) Added user daapd over gui instead of "pw user add daapd"
    2) Modified /conf/base/etc/local/mt-daapd.conf instead of /usr/local/etc/mt-daapd.conf. Only modified db_parms and mp3_dir in file mt-daapd.conf.
    3) Wrote back changes with "mount -ru /" because "mount -ro /" will not change rw mount to r only.

    Question: Is there a document/thread where i can read about which file is copied/mapped to on startup?

    Gerd
  7. awjs New Member

    Member Since:
    Dec 20, 2011
    Message Count:
    16
    Likes Received:
    0
    Trophy Points:
    0
    awjs, Jan 11, 2012

    nothing for this works what am I doing wrong ?????? log in as dlna user and get permission denied, please be more clear on these instructions and if I am too dump to do this please tell me that also because something is wrong as this doent work sorry
Thread Status:
Not open for further replies.

Share This Page