Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37
  1. #1
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60

    Announce: LMS 7.7.2 for Broadcom/MIPSEL

    Hi all!

    I finally managed to package LMS 7.7.2 for my (Broadcom based) Asus RT-N16, running DD-WRT / Optware. Anyone else interested in this?

    See here: https://www.dropbox.com/s/wdxqjnvsry...rver-7.7.2.zip

    Memory footprint is approx 90MB, everything works well as far as I can see.
    Known issues:
    Do NOT use MySQL, instead stay at the default SQLite.
    I couldn't manage to built ICU support into DBD::SQLite module, so the database lacks globalization support.

    I hope you have fun with it!
    Regards

    EDIT: I just updated the package (08/16/13). Changes:
    - perl module structure cleanup
    - removed dependency to libdb-5.2 => fixed crash in Media::Scan(!)
    - rebuilt ffmeg without docs (and without asm optimizations)
    - fixed rc startup script not working on reboot of DD-WRT because of wrong LD_LIBRARY_PATH
    - minor fixes

    EDIT: I now also added LMS 7.7.3 (08/28/13):
    https://www.dropbox.com/s/g3qea7zzre...rver-7.7.3.zip

    EDIT: LMS 7.8.0 is here: (01/19/15):
    https://www.dropbox.com/s/3zn09n4vku...rver-7.8.0.zip
    Last edited by Steevee28; 2018-02-01 at 06:07. Reason: updated all links
    Squeezebox Classic,
    Squeezebox Radio,
    Squeezebox Server 7.7.2 running on Asus RT-N16, DD-WRTv24
    (Kernel 2.6.24.111, Perl-Version: 5.8.8 - mipsel-linux-thread-multi, DBD::SQLite 1.34_01 (sqlite 3.7.7.1))

  2. #2
    Junior Member
    Join Date
    Nov 2013
    Posts
    12

    Will this run on an e3200 with tomatoUSB?

    I'm not that familiar with Linux at all but I have been trying to get this package to work on my linksys e3200 running tomato 1.14 from shibbly. I was as successful as to get everything installed but I cant seem to get around the creating of users/groups part.

    I tried the (modified) script that you proposed (for the older version, 7.4.2) in another thread:

    Code:
    grep -q logitechmediaserver /etc/passwd || echo "logitechmediaserver:x:5:5:Linux User,,,:/opt/home/logitechmediaserver:/dev/null" >> /etc/passwd
    grep -q logitechmediaserver /etc/group  || echo "logitechmediaserver:x:5:" >> /etc/group
    No joy

    Can you point me to what I can do to get around this and run the 7.7.3 LMS package?

  3. #3
    Junior Member
    Join Date
    Nov 2013
    Posts
    12

    The code

    I wasn't able to paste the code in the other reply so here it is, this is my log after a fresh installation of optware:

    Code:
    root@Linksys:/tmp/home/root# ipkg install /opt/LogitechMediaServer-7.7.3/logitechmediaserver_7.7.3-1_mipsel.ipk
    Installing logitechmediaserver (7.7.3-1) to /opt/...
    package logitechmediaserver suggests installing lame
    package logitechmediaserver suggests installing flac
    Installing adduser (1.10.3-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/adduser                                 _1.10.3-1_mipsel.ipk
    Installing bash (3.2.49-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/bash_3.                                 2.49-1_mipsel.ipk
    Installing readline (6.1-2) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/readlin                                 e_6.1-2_mipsel.ipk
    Installing ncurses (5.7-3) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ncurses                                 _5.7-3_mipsel.ipk
    Installing sqlite (3.8.1-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/sqlite_                                 3.8.1-1_mipsel.ipk
    Installing expat (2.0.1-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/expat_2                                 .0.1-1_mipsel.ipk
    Installing freetype (2.3.6-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/freetyp                                 e_2.3.6-1_mipsel.ipk
    Configuring adduser
    update-alternatives: Linking //opt/bin/su to /opt/bin/adduser-su
    Configuring bash
    Configuring expat
    Configuring freetype
    Configuring logitechmediaserver
    Enter LOGITECHMEDIASERVER_HOME location [/opt/home/logitechmediaserver]:
    //opt/lib/ipkg/info/logitechmediaserver.postinst: line 31: id: not found
    //opt/lib/ipkg/info/logitechmediaserver.postinst: line 33: id: not found
    chown: unknown user/group logitechmediaserver:daemon
    chown: unknown user/group logitechmediaserver:daemon
    chown: unknown user/group logitechmediaserver:daemon
    chown: unknown user/group logitechmediaserver:daemon
    Configuring ncurses
    update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
    Configuring readline
    Configuring sqlite
    Successfully terminated.
    root@Linksys:/tmp/home/root# /opt/etc/init.d/K00logitechmediaserver start
    /opt/etc/init.d/K00logitechmediaserver: line 41: id: not found
    /opt/etc/init.d/K00logitechmediaserver: line 46: id: not found
    /opt/etc/init.d/K00logitechmediaserver: line 143: optlog: not found
    mkdir: can't create directory '/': File exists
    chown: unknown user/group logitechmediaserver:daemon
    chown: unknown user/group logitechmediaserver:daemon
    /opt/etc/init.d/K00logitechmediaserver: line 143: start-stop-daemon: not found
    root@Linksys:/tmp/home/root# /opt/etc/init.d/S99logitechmediaserver start
    /opt/etc/init.d/S99logitechmediaserver: line 41: id: not found
    /opt/etc/init.d/S99logitechmediaserver: line 46: id: not found
    /opt/etc/init.d/S99logitechmediaserver: line 143: optlog: not found
    mkdir: can't create directory '/': File exists
    chown: unknown user/group logitechmediaserver:daemon
    chown: unknown user/group logitechmediaserver:daemon
    /opt/etc/init.d/S99logitechmediaserver: line 143: start-stop-daemon: not found
    root@Linksys:/tmp/home/root#

  4. #4
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60
    Quote Originally Posted by Madfox View Post
    I wasn't able to paste the code in the other reply so here it is, this is my log after a fresh installation of optware:
    Code:
    //opt/lib/ipkg/info/logitechmediaserver.postinst: line 33: id: not found
    /opt/etc/init.d/K00logitechmediaserver: line 143: optlog: not found
    Hi,
    I don't know much about Tomato, but it seems that you're missing some pre-requisites that are normally present in some DD-WRT Optware installes (which I tested this package on).
    Please install the 'coreutils' and 'util-linux-ng' optware packages.
    Code:
    ipkg install coreutils util-linux-ng
    In addition, download the optlog script http://ddwrt.basmaf.com/optlog and save it to /opt/usr/sbin/optlog. Be sure to chmod 755 on it.
    Code:
    mkdir -p /opt/usr/sbin
    wget -O /opt/usr/sbin/optlog http://ddwrt.basmaf.com/optlog
    chmod 755 /opt/usr/sbin/optlog
    After that, please reinstall logitechmediaserver.
    Code:
    ipkg install -force-reinstall /opt/LogitechMediaServer-7.7.3/logitechmediaserver_7.7.3-1_mipsel.ipk
    Btw. this grep user/passwd stuff shouldn't be required any longer, since I tried to automate this in LMS's start script.

    Regards
    Last edited by Steevee28; 2013-11-12 at 14:52.

  5. #5
    Junior Member
    Join Date
    Nov 2013
    Posts
    12
    I tried the suggestions, it didn't work, so I formatted and reinstalled everything fresh again: still not working. Here's what happens:

    Code:
    root@Linksys:/tmp/home/root# ipkg install /opt/LogitechMediaServer-7.7.3/logitechmediaserver_7.
    7.3-1_mipsel.ipk
    Installing logitechmediaserver (7.7.3-1) to /opt/...
    package logitechmediaserver suggests installing lame
    package logitechmediaserver suggests installing flac
    Installing adduser (1.10.3-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/adduser_1.10.3-1_mipsel.ipk
    Installing bash (3.2.49-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/bash_3.2.49-1_mipsel.ipk
    Installing readline (6.1-2) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/readline_6.1-2_mipsel.ipk
    Installing sqlite (3.8.1-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/sqlite_3.8.1-1_mipsel.ipk
    Installing expat (2.0.1-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/expat_2.0.1-1_mipsel.ipk
    Installing freetype (2.3.6-1) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/freetype_2.3.6-1_mipsel.ipk
    Configuring adduser
    update-alternatives: Linking //opt/bin/su to coreutils-su
    Configuring bash
    Configuring expat
    Configuring freetype
    Configuring logitechmediaserver
    logitechmediaserver: No such user
    logitechmediaserver: No such user
    invalid user: `logitechmediaserver:daemon'
    invalid user: `logitechmediaserver:daemon'
    invalid user: `logitechmediaserver:daemon'
    invalid user: `logitechmediaserver:daemon'
    Configuring readline
    Configuring sqlite
    Successfully terminated.
    root@Linksys:/tmp/home/root#
    root@Linksys:/tmp/home/root# mkdir -p /opt/usr/sbin
    root@Linksys:/tmp/home/root# wget -O /opt/usr/sbin/optlog http://ddwrt.basmaf.com/optlog
    Connecting to ddwrt.basmaf.com (94.211.46.95:80)
    optlog               100% |**********************************************|   418   0:00:00 ETA
    root@Linksys:/tmp/home/root# chmod 755 /opt/usr/sbin/optlog
    root@Linksys:/tmp/home/root# ipkg install -force-reinstall /opt/LogitechMediaServer-7.7.3/logit
    echmediaserver_7.7.3-1_mipsel.ipk
    Installing logitechmediaserver (7.7.3-1) to /opt/...
    package logitechmediaserver suggests installing lame
    package logitechmediaserver suggests installing flac
        Configuration file '/opt/etc/logitechmediaserver.conf'
        ==> File on system created by you or by a script.
        ==> File also in package provided by package maintainer.
           What would you like to do about it ?  Your options are:
            Y or I  : install the package maintainer's version
            N or O  : keep your currently-installed version
              D     : show the differences between the versions (if diff is installed)
         The default action is to keep your current version.
        *** logitechmediaserver.conf (Y/I/N/O/D) [default=N] ?Y
    Configuring logitechmediaserver
    logitechmediaserver: No such user
    logitechmediaserver: No such user
    invalid user: `logitechmediaserver:daemon'
    invalid user: `logitechmediaserver:daemon'
    invalid user: `logitechmediaserver:daemon'
    invalid user: `logitechmediaserver:daemon'
    Successfully terminated.
    root@Linksys:/tmp/home/root# /opt/etc/init.d/S99logitechmediaserver start
    logitechmediaserver: No such user
    logitechmediaserver: No such user
    S99logitechmediaserver: Starting Logitech Media Server
    invalid user: `logitechmediaserver:daemon'
    invalid user: `logitechmediaserver:daemon'
    /opt/etc/init.d/S99logitechmediaserver: line 143: start-stop-daemon: not found
    root@Linksys:/tmp/home/root# /opt/etc/init.d/K00logitechmediaserver start
    logitechmediaserver: No such user
    logitechmediaserver: No such user
    K00logitechmediaserver: Starting Logitech Media Server
    invalid user: `logitechmediaserver:daemon'
    invalid user: `logitechmediaserver:daemon'
    /opt/etc/init.d/K00logitechmediaserver: line 143: start-stop-daemon: not found
    root@Linksys:
    Reboot gives me the same . Error is still about the user, its a little different however. I hope you have idea's!

  6. #6
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60
    Quote Originally Posted by Madfox View Post
    Reboot gives me the same . Error is still about the user, its a little different however. I hope you have idea's!
    Ok, it seems that the poistinstall script is not able to adduser logitechmediaserver:daemon.
    That's strange...

    Does your 'adduser' command work at all?

    Anyway, we should be able to walk around this problem following these steps:

    1. edit lms' config file at /opt/etc/logitechmediaserver.conf and change the user and group to root:root.
    change the corresponding lines to this:
    Code:
    LOGITECHMEDIASERVER_USER="root"
    LOGITECHMEDIASERVER_UID_DEFAULT=0
    LOGITECHMEDIASERVER_GROUP="root"
    LOGITECHMEDIASERVER_GID_DEFAULT=0
    2. reinstall LMS again by
    Code:
    ipkg install -force-reinstall /opt/LogitechMediaServer-7.7.3/logitechmediaserver_7.7.3-1_mipsel.ipk
    but this time *KEEP* the current config file, ie. answer 'N' to the installer's question.

    This should instruct the installer to correctly set file permissions using root as user for LMS.
    I hope this helps.
    Btw, I will be on holidays from Friday for 21 days, so I won't be abtle to help you any further then.
    Squeezebox Classic,
    Squeezebox Radio,
    Squeezebox Server 7.7.2 running on Asus RT-N16, DD-WRTv24
    (Kernel 2.6.24.111, Perl-Version: 5.8.8 - mipsel-linux-thread-multi, DBD::SQLite 1.34_01 (sqlite 3.7.7.1))

  7. #7
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60
    Quote Originally Posted by Madfox View Post
    Code:
    /opt/etc/init.d/K00logitechmediaserver: line 143: start-stop-daemon: not found
    I see you will also need start-stop-daemon. Hmmm, I couldn't find out what package it is provided by, so I attached it to this post.
    Please unzip by:
    Code:
    cd /
    unzip <path_to_downloaded_file>/start-stop-daemon.zip
    Attached Files Attached Files
    Squeezebox Classic,
    Squeezebox Radio,
    Squeezebox Server 7.7.2 running on Asus RT-N16, DD-WRTv24
    (Kernel 2.6.24.111, Perl-Version: 5.8.8 - mipsel-linux-thread-multi, DBD::SQLite 1.34_01 (sqlite 3.7.7.1))

  8. #8
    Junior Member
    Join Date
    Nov 2013
    Posts
    12
    I think it's kind of working: now the start-stop daemon does not have the right permissions:

    Code:
    root@Linksys:/opt# /opt/etc/init.d/S99logitechmediaserver start
    S99logitechmediaserver: Starting Logitech Media Server
    /opt/etc/init.d/S99logitechmediaserver: line 143: start-stop-daemon: Permission denied
    root@Linksys:/opt#

  9. #9
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60
    Quote Originally Posted by Madfox View Post
    I think it's kind of working: now the start-stop daemon does not have the right permissions:

    Code:
    root@Linksys:/opt# /opt/etc/init.d/S99logitechmediaserver start
    S99logitechmediaserver: Starting Logitech Media Server
    /opt/etc/init.d/S99logitechmediaserver: line 143: start-stop-daemon: Permission denied
    root@Linksys:/opt#
    do a chmod on it
    Code:
    chmod 755 /opt/sbin/start-stop-daemon
    Squeezebox Classic,
    Squeezebox Radio,
    Squeezebox Server 7.7.2 running on Asus RT-N16, DD-WRTv24
    (Kernel 2.6.24.111, Perl-Version: 5.8.8 - mipsel-linux-thread-multi, DBD::SQLite 1.34_01 (sqlite 3.7.7.1))

  10. #10
    Junior Member
    Join Date
    Nov 2013
    Posts
    12
    It looked like it worked (no errors when started), but I see no changes "netstat -l" command. I looked at the log files and this is the result:

    server.log
    Code:
    2013-11-14 08:50:28 logitechmediaserver_safe started.
    [13-11-14 08:51:19.5123] main::init (354) Starting Logitech Media Server (v7.7.3, 1375965195, Mon Aug 19 11:42:55 PDT 2013) perl 5.008008
    [13-11-14 08:51:20.9040] main::changeEffectiveUserAndGroup (966) Warning: Logitech Media Server must not be run as root!  Trying user squeezeboxserver instead.
    [13-11-14 08:51:20.9532] main::changeEffectiveUserAndGroup (974) Warning: User squeezeboxserver not found.
    2013-11-14 08:51:29 logitechmediaserver_safe started.
    2013-11-14 08:51:42 Logitech Media Server died, see "/opt/var/log/logitechmediaserver/safe.log" for more info. Restarting.
    '

    safe.log
    Code:
    Your locale was detected as C, you may have problems with non-Latin filenames.  Consider changing your LANG variable to the correct locale, i.e. en_US.utf8
    [13-11-14 08:51:19.5078] main::init (354) Starting Logitech Media Server (v7.7.3, 1375965195, Mon Aug 19 11:42:55 PDT 2013) perl 5.008008
    [13-11-14 08:51:20.9005] main::changeEffectiveUserAndGroup (966) Warning: Logitech Media Server must not be run as root!  Trying user squeezeboxserver instead.
    [13-11-14 08:51:20.9498] main::changeEffectiveUserAndGroup (974) Warning: User squeezeboxserver not found.
    Your locale was detected as C, you may have problems with non-Latin filenames.  Consider changing your LANG variable to the correct locale, i.e. en_US.utf8
    Your locale was detected as C, you may have problems with non-Latin filenames.  Consider changing your LANG variable to the correct locale, i.e. en_US.utf8
    I have no idea how to change the language variable, looks like it dislikes being run as root as well, but that might be just a warning?

Tags for this Thread

Posting Permissions

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