Home of the Squeezebox™ & Transporter® network music players.
Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 77
  1. #41
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,323

    How to: Installing LMS 7.9 nightly in aFreeBSD jail on FreeNAS 9.3

    > how can a user like me know which modules have been updated easily?
    > If I know what has been updated I can figure out which modules to
    > copy across from my own building of slimserver-vendor.


    I do understand that the situation currently can be a bit confusing. I
    don't know of a simple response to your problem. Because it also depends
    on Perl versions etc.

    It's probably easiest to build your binaries, then run LMS with
    --d_startup enabled to get the maximum output from the initialization.
    And go from there: if you see a version mis-match, check what is being
    built in slimserver-vendor. Make sure you copy both the binary AND the
    ..pm of the modules.

    Are you still having a problem running LMS now?

    --

    Michael

  2. #42
    Junior Member
    Join Date
    Aug 2009
    Posts
    16
    Michael, how can a user like me know which modules have been updated easily? If I know what has been updated I can figure out which modules to copy across from my own building of slimserver-vendor. Alternatively I may try copying across more of my build into a noCPAN nightly and see what happens.

  3. #43
    Junior Member
    Join Date
    Aug 2009
    Posts
    16
    Quote Originally Posted by mherger View Post
    I do understand that the situation currently can be a bit confusing. I
    don't know of a simple response to your problem. Because it also depends
    on Perl versions etc.

    It's probably easiest to build your binaries, then run LMS with
    --d_startup enabled to get the maximum output from the initialization.
    And go from there: if you see a version mis-match, check what is being
    built in slimserver-vendor. Make sure you copy both the binary AND the
    ..pm of the modules.

    Are you still having a problem running LMS now?
    I have working 7.9 now so all is well but I was thinking about what happens when I want update LMS, let's say in six months or a year. How will I be able to know which modules have been updated? I can start with './slimserver.pl --d_startup' and then work back to fix any mismatches, I understand that process but I was wondering if there might be a more efficient method. If I wait to see where mismatches occur then I also have to figure out where to find the necessary modules or binaries.

    This message doesn't really need an answer unless someone has a suggestion for how to automate or simplify the install and update process. I should also say a big 'thank you' to Michael for all his work keeping LMS going.
    Last edited by stuarty; 2016-04-27 at 05:15. Reason: Thanks added

  4. #44
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,323

    How to: Installing LMS 7.9 nightly in aFreeBSD jail on FreeNAS 9.3

    > I have working 7.9 now so all is well but I was thinking about what
    > happens when I want update LMS, let's say in six months or a year. How


    Check https://github.com/Logitech/slimserv...ublic/7.9/CPAN for
    any recent change. If in doubt, come here to ask :-)

    Chances are you won't have any issue, as I try to keep changes in this
    area as little as possible.

    --

    Michael

  5. #45
    Junior Member
    Join Date
    Feb 2012
    Posts
    5

    thanks

    Hey guys

    with this whole thread, installation of LMS on freenas 9.10 works perfectly as far as I can tell. Thank you!

    Just one more question: pufnstuf (on the first page) said he installed FAAD port manually. Can anyone explain me how to do that? I tried to contact him per PM but it seems my messages get lost somehow or at least they're not registred in my account.

    anyway, thanks again and best regards

  6. #46
    Junior Member
    Join Date
    Aug 2009
    Posts
    16
    Quote Originally Posted by Fenix4k View Post
    Just one more question: pufnstuf (on the first page) said he installed FAAD port manually. Can anyone explain me how to do that?
    I don't use FreeNAS but if you can install packages then
    Code:
    pkg install faad2
    on the command line should work.

  7. #47
    Junior Member
    Join Date
    Feb 2012
    Posts
    5
    oh ok, that's it and it works with LMS? that does also work for other decoders?

    thx and cheers

  8. #48
    Senior Member
    Join Date
    Dec 2009
    Location
    Hilden, Germany
    Posts
    144
    Quote Originally Posted by cooppw02 View Post
    I'd just like to chime in and say thanks to those that made and contributed to this thread. The instructions worked pretty much flawlessly; the only thing I had to do differently was to change the perl 5.20.2 references to 5.20.3.
    I tried it, changed the reference and profed it is set right, but i still get the
    Code:
    /usr/bin/ld: final link failed: Bad value
    *** [blib/arch/auto/Media/Scan/Scan.so] Error code 1
    
    Stop in /tmp/LMS/slimserver-vendor/CPAN/libmediascan-0.1/bindings/perl.
    make failed, aborting
    -Error!

    What can i do?

    EDIT: btw: i had to use "pkg install gcc" to get the buildprocess starting.

    EDIT2: Tried it in a new Jail: Now it worked. Sorry for asking help!
    Last edited by mrMuppet; 2016-09-18 at 11:59. Reason: [solved]

  9. #49
    Junior Member
    Join Date
    Feb 2012
    Posts
    5

    update of LMS

    hey again

    So I've been using LMS on FreeNAS for about half a year now and it works perfectly with the exception of Spotify integration (it has some problems on emulated Squeeze Players). I saw that this problem has been addressed in a newer version of the LMS 7.9 nightly and I wanted to ask if someone knows how to upgrade my current version to the newest version in the FreeNAS jail so i do not lose all my settings and libraries?

    Thank you so much for the help and best regards!

    edit: just to clarify: i read the posts before, I just wanna make sure that if I re-do all the steps and overwrite the files I'll still have my settings!

    thx
    Last edited by Fenix4k; 2016-11-16 at 05:09.

  10. #50
    Junior Member
    Join Date
    Feb 2017
    Posts
    2
    Right. For everyone who struggles with this, I got it working under freenas 9.10.2 tonight after fiddling a bit. To sort of summarize i'll be stealing a lot from get.amped. All credits go to him & all others in this tread for helping me figure out what was happening. Turns out slimserver-vendor is updated for perl 5.24.1 right now.

    Create two jails: one to build LMS and one to run it. Use Advanced mode, enter the IPv4 default gateway and check VIMAGE.
    btw, you can enter freenas jails through ssh as follows:
    Code:
    jls  ## to check jail number
    jexec "jailnumber"
    In build_LMS jail:
    Code:
    pkg update
    pkg upgrade
    pkg install bash
    pkg install gmake
    pkg install rsync
    pkg install nasm
    pkg install wget
    pkg install libgd
    pkg install gcc
    mkdir /tmp/LMS
    cd /tmp/LMS
    wget h t t p : //downloads. slimdevices. com/nightly/7.9/sc/481dece/logitechmediaserver-7.9.0-1485931015-FreeBSD.tgz
    tar xf logitechmediaserver-7.9.0-1485931015-FreeBSD
    git clone https://github.com/Logitech/slimserver-vendor -b public/7.9
    ln -s -f /usr/local/bin/perl5.24.1 /usr/bin/perl
    ln -s -f /usr/local/bin/perl5.24.1 /usr/bin/perl5
    cd /tmp/LMS/slimserver-vendor/CPAN
    ./buildme.sh | tee /tmp/LMS/buildme.sh.log
    cd /tmp/LMS/logitechmediaserver-7.9.0-1485931015-FreeBSD/CPAN/arch/5.24
    cp -Rp /tmp/LMS/slimserver-vendor/CPAN/build/arch/5.24/amd64-freebsd-thread-multi .
    cd ..
    rm -rf 5.8
    rm -rf 5.10
    rm -rf 5.12
    rm -rf 5.14
    rm -rf 5.16
    rm -rf 5.18
    rm -rf 5.20
    rm -rf 5.22
    cd /tmp/LMS
    tar cf logitechmediaserver-7.9.0-1485931015-FreeBSD logitechmediaserver-7.9.0-1485931015-FreeBSD
    Then, in freenas shell (move the tar between jails):
    Code:
    cp /mnt/SSD/jails/build_jail/tmp/LMS/logitechmediaserver-7.9.0-1485931015-FreeBSD.tar /mnt/SSD/jails/LMS/tmp
    In LMS jail:
    Code:
    pkg update
    pkg upgrade
    pw groupadd -n lms -g 30001
    pw useradd -n lms -u 30001 -g lms -s /usr/sbin/nologin -c "Logitech Media Server" -d /nonexistent
    mkdir /usr/local/lms
    tar xf /tmp/logitechmediaserver-7.9.0-1485931015-FreeBSD.tar -C /usr/local/lms
    mv /usr/local/lms/logitechmediaserver-7.9.0-1485931015-FreeBSD/* /usr/local/lms
    rmdir /usr/local/lms/logitechmediaserver-7.9.0-1485931015-FreeBSD
    chown -R lms:lms /usr/local/lms
    rm /usr/bin/perl
    rm /usr/bin/perl5
    ln -s -f /usr/local/bin/perl5.24.1 /usr/bin/perl
    ln -s -f /usr/local/bin/perl5.24.1 /usr/bin/perl5
    I created an additional storage source /mnt/SSD/lms_data with destination /mnt/lmsdata and set permissions:
    Code:
    chown -R lms:lms /mnt/lms_data/cache
    chown -R lms:lms /mnt/lms_data/prefs
    Create startup file: lms

    This is trickier than it looks because it can't have any extra white space. I suggest getting it here:

    pastebin.com(icantpostlinks)/download.php?i=jtuvqvEJ

    Follow the instructions in the file.
    Finally, while still in LMS jail, within the folder the lms startup file is located:

    Code:
    mv lms /usr/local/etc/rc.d/
    chown root:wheel /usr/local/etc/rc.d/lms
    chmod 555 /usr/local/etc/rc.d/lms
    echo 'lms_enable="YES"' >> /etc/rc.conf
    echo 'lms_cachedir="/mnt/lms_data/cache"' >> /etc/rc.conf
    echo 'lms_prefsdir="/mnt/lms_data/prefs"' >> /etc/rc.conf
    echo 'lms_playlistdir="/mnt/Playlists"' >> /etc/rc.conf
    restart your jail, or:[code]service lms start/code]

    and try to connect to your jail : 9000

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •