Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
  1. #21
    Junior Member
    Join Date
    Nov 2013
    Posts
    12

    Its going somewhere!

    Thanks for your swift reply, I've tried again: and got it working. Maybe it was only the typo that made me break my head over this?

    logitechmediaserver.conf file:
    Code:
    #
    # Logitech Media Server Configuration File
    #
    
    # === Edit this to suit your setup ===
    
    # use system locale and timezone
    
    if [ -f /opt/etc/LANG ] ; then
            export LANG=$(cat /opt/etc/LANG)
    fi
    if [ -f /opt/etc/TZ ] ; then
            export TZ=$(cat /opt/etc/TZ)
    fi
    
    # user the server will run as
    
    LOGITECHMEDIASERVER_USER="logitechmediaserver"
    LOGITECHMEDIASERVER_UID_DEFAULT=
    LOGITECHMEDIASERVER_GROUP="daemon"
    LOGITECHMEDIASERVER_GID_DEFAULT=
    
    # select database driver, "SQLite" or "MySQL" 
    # (NOTE: MySQL is no longer maintained and buggy in this server version,
    # so you should use the default "SQLite")
     
    LOGITECHMEDIASERVER_DBTYPE="SQLite"
    
    # set "home" directory, the database will reside there 
    
    LOGITECHMEDIASERVER_HOME=~logitechmediaserver
    
    # preferences and cache will be here:
     
    LOGITECHMEDIASERVER_PREFSDIR="${LOGITECHMEDIASERVER_HOME}/prefs"
    LOGITECHMEDIASERVER_CACHEDIR="${LOGITECHMEDIASERVER_HOME}/cache"
    
    # set additional args:
    #
    #    --diag            Use diagnostics, shows more verbose errors.
    #                        Also slows down library processing considerably
    #    --httpport        Activate the web interface on the specified port.
    #                        Set to 0 in order disable the web server.
    #    --httpaddr        Activate the web interface on the specified IP address.
    #    --cliport         Activate the command line interface TCP/IP interface
    #                        on the specified port. Set to 0 in order disable the
    #                        command line interface server.
    #    --cliaddr         Activate the command line interface TCP/IP
    #                        interface on the specified IP address.
    #    --playeraddr      Specify the _server's_ IP address to use to connect
    #                        to Slim players
    #    --priority        set process priority from -20 (high) to 20 (low)
    #    --streamaddr      Specify the _server's_ IP address to use to connect
    #                        to streaming audio sources
    #    --nodebuglog      Disable all debug-level logging (compiled out).
    #    --noinfolog       Disable all debug-level & info-level logging (compiled out).
    #    --nosetup         Disable setup via http.
    #    --noserver        Disable web access server settings, but leave player settings accessible.
    #                        Settings changes are not preserved.
    #    --noweb           Disable web interface. JSON-RPC, Comet, and artwork web APIs are still enabled.
    #    --nosb1slimp3sync Disable support for SliMP3s, SB1s and associated synchronization
    #    --nostatistics    Disable the TracksPersistent table used to keep to statistics across rescans (compiled out).
    #    --notranscoding   Disable transcoding support.
    #    --noimage         Disable scanning for images.
    #    --novideo         Disable scanning for videos.
    #    --noupnp          Disable UPnP subsystem
    #    --perfmon         Enable internal server performance monitoring
    #    --perfwarn        Generate log messages if internal tasks take longer than specified threshold
    #    --failsafe        Don't load plugins
    #    --checkstrings    Enable reloading of changed string files for plugin development
    #    --charset         Force a character set to be used, eg. utf8 on Linux devices
    #                        which don't have full utf8 locale installed
    #    --logging         Enable logging for the specified comma separated categories
    
    LOGITECHMEDIASERVER_ARGS=" --charset=utf8 "
    
    # place of logfile and pid
    
    LOGITECHMEDIASERVER_LOGDIR="/opt/var/log/logitechmediaserver"
    LOGITECHMEDIASERVER_PIDFILE="/var/run/logitechmediaserver.pid"
    
    # place of actual binaries
    
    LOGITECHMEDIASERVER_BIN="/opt/share/logitechmediaserver/slimserver.pl"
    LOGITECHMEDIASERVER_SAFE="/opt/share/logitechmediaserver/logitechmediaserver_safe"
    I'm now testing to see how stable it is (scanning a large amound of music files in the database). I found some things:
    1. the CPU of the RT-N16 is running 100% all the time (3.68, 3.45, 3.04), On average there is 5% RAM free (can I disbale services that were installed with OTRW2 to free up some space?)
    2. the server is accesible from my external IP adress, can I disable this?
    3. is rescanning on adding new music files is possbible? (or how to create a cron job that would rescan every 30 min or so)?
    4. During scannning, playback was not possible, maybe to much resources?
    5. I've made a startup script, but it doesn't work for some reason:
    Code:
    mount -o noatime -t ext3 /dev/scsi/host0/bus0/target0/lun0/part3 /mnt
    sleep 20
    adduser -h /opt/home/logitechmediaserver -G daemon logitechmediaserver
    sleep 10
    /opt/etc/init.d/S99logitechmediaserver start
    if, after I rebooted with this script, want to add the user manual via putty, I get:
    Code:
    root@DD-WRT:~# adduser -h /opt/home/logitechmediaserver -G daemon logitechmediaserver
    adduser: unknown group name: daemon
    Its important to me that the software starts itself after a powerfailure or other cause. Maybe another way?

    Some statistics:
    Discovering files/directories: /tmp/mnt/disc0-part3/Music (1633 of 1633) Complete 00:00:49
    Scanning new music files: /tmp/mnt/disc0-part3/Music (1479 of 1479) Complete 00:11:40

    Btw, everything runs pretty smooth, its responsive (I use the squeeze controller app for android) and the music gets load correctly. Thank you for the good work!

  2. #22
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60
    Quote Originally Posted by Madfox View Post
    Thanks for your swift reply, I've tried again: and got it working. Maybe it was only the typo that made me break my head over this?

    logitechmediaserver.conf file:
    Code:
    ....
    LOGITECHMEDIASERVER_USER="logitechmediaserver"
    LOGITECHMEDIASERVER_UID_DEFAULT=
    LOGITECHMEDIASERVER_GROUP="daemon"
    LOGITECHMEDIASERVER_GID_DEFAULT=
    ....
    LOGITECHMEDIASERVER_HOME=~logitechmediaserver
    ....
    Hi,
    this explains some things!!!
    The config file is buggy, obviously because of some initial install failure. I will further look into this problem on my machine.

    Please edit the config lines LOGITECHMEDIASERVER_UID_DEFAULT and LOGITECHMEDIASERVER_GID_DEFAULT to the actual UID/GID pair that your system now uses.
    If this is not set correctly in the config file, LMS's startup script is not able to re-create the user!!

    Please also edit the LOGITECHMEDIASERVER_HOME entry to
    Code:
    LOGITECHMEDIASERVER_HOME=/opt/home/logitechmediaserver
    or whatever is appropriate for your system.

    Having this done, auto-restart after reboot should work when the service is once activated by
    Code:
    service logitechmediaserver on
    (which should already be the case. you can check that by simple typing
    Code:
    service
    which will list all active services)

    Regarding your other questions:

    1. this is normal for at least 1 minute after LMS startup (perl is compiling the code during this period of time), also normal meanwhile scanning
    2. the server should bind to all interfaces (also the WAN side), but your Router should have an active SPI firewall, ie. no service should be accessible from the internet, unless you explicitly specified it. so check your firewall configuration!
    3. afaik no, but there is some scheduled re-scan possible
    4. hmmm. worked for me, but the GUI is usually very laggy meanwhile scanning
    5. use auto-mount option of dd-wrt instead and service auto-start as written above (the S99logitechmediaserver start script is auto-started by optware startup)

    Regards
    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))

  3. #23
    Junior Member
    Join Date
    Nov 2013
    Posts
    12
    Thank you! we're getting there

    At first, this didn't seem to work but now I get the following:
    Code:
    root@DD-WRT:~# service logitechmediaserver on
    logitechmediaserver: No such user
    logitechmediaserver: No such user
    Usage: /opt/etc/init.d/S99logitechmediaserver {start|stop|restart|force-reload}
    then I used
    Code:
     root@DD-WRT:~# service logitechmediaserver start
    Start service "logitechmediaserver" (/opt/etc/init.d/S99logitechmediaserver)
    service: Start service: "logitechmediaserver" (/opt/etc/init.d/S99logitechmediaserver)
    logitechmediaserver: No such user
    logitechmediaserver: No such user
    S99logitechmediaserver: Starting Logitech Media Server
    after this, vi /ect/passed gives me this line
    Code:
     logitechmediaserver:x:1000:1:Logitech Media Server,,,:/opt/home/logitechmediaserver:/dev/null
    I edited the config file, now looks like:
    Code:
    #
    # Logitech Media Server Configuration File
    #
    
    # === Edit this to suit your setup ===
    
    # use system locale and timezone
    
    if [ -f /opt/etc/LANG ] ; then
            export LANG=$(cat /opt/etc/LANG)
    fi
    if [ -f /opt/etc/TZ ] ; then
            export TZ=$(cat /opt/etc/TZ)
    fi
    
    # user the server will run as
    
    LOGITECHMEDIASERVER_USER="logitechmediaserver"
    LOGITECHMEDIASERVER_UID_DEFAULT=1000
    LOGITECHMEDIASERVER_GROUP="daemon"
    LOGITECHMEDIASERVER_GID_DEFAULT=1
    
    # select database driver, "SQLite" or "MySQL" 
    # (NOTE: MySQL is no longer maintained and buggy in this server version,
    # so you should use the default "SQLite")
     
    LOGITECHMEDIASERVER_DBTYPE="SQLite"
    
    # set "home" directory, the database will reside there 
    
    LOGITECHMEDIASERVER_HOME=/opt/home/logitechmediaserver
    
    # preferences and cache will be here:
     
    LOGITECHMEDIASERVER_PREFSDIR="${LOGITECHMEDIASERVER_HOME}/prefs"
    LOGITECHMEDIASERVER_CACHEDIR="${LOGITECHMEDIASERVER_HOME}/cache"
    
    # set additional args:
    #
    #    --diag            Use diagnostics, shows more verbose errors.
    #                        Also slows down library processing considerably
    #    --httpport        Activate the web interface on the specified port.
    #                        Set to 0 in order disable the web server.
    #    --httpaddr        Activate the web interface on the specified IP address.
    #    --cliport         Activate the command line interface TCP/IP interface
    #                        on the specified port. Set to 0 in order disable the
    #                        command line interface server.
    #    --cliaddr         Activate the command line interface TCP/IP
    #                        interface on the specified IP address.
    #    --playeraddr      Specify the _server's_ IP address to use to connect
    #                        to Slim players
    #    --priority        set process priority from -20 (high) to 20 (low)
    #    --streamaddr      Specify the _server's_ IP address to use to connect
    #                        to streaming audio sources
    #    --nodebuglog      Disable all debug-level logging (compiled out).
    #    --noinfolog       Disable all debug-level & info-level logging (compiled out).
    #    --nosetup         Disable setup via http.
    #    --noserver        Disable web access server settings, but leave player settings accessible.
    #                        Settings changes are not preserved.
    #    --noweb           Disable web interface. JSON-RPC, Comet, and artwork web APIs are still enabled.
    #    --nosb1slimp3sync Disable support for SliMP3s, SB1s and associated synchronization
    #    --nostatistics    Disable the TracksPersistent table used to keep to statistics across rescans (compiled out).
    #    --notranscoding   Disable transcoding support.
    #    --noimage         Disable scanning for images.
    #    --novideo         Disable scanning for videos.
    #    --noupnp          Disable UPnP subsystem
    #    --perfmon         Enable internal server performance monitoring
    #    --perfwarn        Generate log messages if internal tasks take longer than specified threshold
    #    --failsafe        Don't load plugins
    #    --checkstrings    Enable reloading of changed string files for plugin development
    #    --charset         Force a character set to be used, eg. utf8 on Linux devices
    #                        which don't have full utf8 locale installed
    #    --logging         Enable logging for the specified comma separated categories
    
    LOGITECHMEDIASERVER_ARGS=" --charset=utf8 "
    
    # place of logfile and pid
    
    LOGITECHMEDIASERVER_LOGDIR="/opt/var/log/logitechmediaserver"
    LOGITECHMEDIASERVER_PIDFILE="/var/run/logitechmediaserver.pid"
    
    # place of actual binaries
    
    LOGITECHMEDIASERVER_BIN="/opt/share/logitechmediaserver/slimserver.pl"
    LOGITECHMEDIASERVER_SAFE="/opt/share/logitechmediaserver/logitechmediaserver_safe"
    The restarting doesn't work however, I have to manually do it via
    Code:
     service logitechmediaserver start
    It seems that I do not have to manually add the user anymore, which is a notable improvement!

  4. #24
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60
    Quote Originally Posted by Madfox View Post
    The restarting doesn't work however, I have to manually do it
    'service logitechmediaserver on' should do the same as
    Code:
    chmod 755 /opt/etc/init.d/S99logitechmediaserver
    ie. setting the start script into executable state means activating the service for optware.

    So, if it still doesn't start automatically after reboot, you should review your startup sequence. I think about the order of mounting your data disk, optware partition and starting up optware services.
    If you've auto-mount switched on and it mounts everything to correct locations, the startup should work, because this dd-wrt build auto-starts all executable startup-scripts in /opt/etc/init.d after successful mount
    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))

  5. #25
    Junior Member
    Join Date
    Nov 2013
    Posts
    12

    Up and running!

    Thank you for the support. The system is up and running, i've been testing last week. Its not always as snappy, but fast enough! The only thing that doesn't seem to be going as it should is the autostarting of the service, but I guess its a minor problem. I've used your advice, but no joy. Also a shame that I cant seem to make a nice startup script that works.. Thank you so much for the help! I really appreciate it.

  6. #26
    Junior Member
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    16

    Entware support

    Hi there,

    I was wondering, any chance this package would also work under entware? Or does anybody know of any existing LMS version for entware?

    Thanks in advance!

  7. #27
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60
    Quote Originally Posted by osunax View Post
    Hi there,

    I was wondering, any chance this package would also work under entware? Or does anybody know of any existing LMS version for entware?

    Thanks in advance!
    I don't know much about entware, but I strongly believe that this can't work without bigger adaption.

    First of all, LMS needs a multi-threaded perl to work properly. Okay, if entware contains this, you would have a good starting point.
    Second, you will have to re-compile all necessary perl-modules. This is definitely required.

    Regards
    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. #28
    Junior Member
    Join Date
    Oct 2006
    Posts
    15
    I'm curious to try a build with entware. I've setup the toolchain and build environment. Do you have modified makefiles or build scripts that could be used as a starting point (alternatively I can start from scratch)? If you could provide your entire LMS build directory, that would be most helpful.

  9. #29
    Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    60

    Build scripts for 7.7.3

    Hi anonymous247,

    here is the link to a copy of my build scripts:
    https://dl.dropboxusercontent.com/u/...ipts-7.7.3.tgz

    I originally built on the mipsel platform itself, so I had to modify the build scripts from cross-build to normal build. But my latest attempt was to switch back to a cross-build toolchain. I unfortunately stopped my work due to lack of time, thus maybe the build scripts now need some little more tuning here and there.

    Note that the build script for building multithreaded perl is also included, which will be required for getting proper music library scanning. I also included "dummy" build scripts for certain packages, which only copy dependend libs, shared objects and headers from the system directory into the staging directory. So if you switch completely over to cross-building, you will definitely need to replace those scripts by real ones.

    Ah, I'm sure you will also need this modified ipkg build script:
    https://dl.dropboxusercontent.com/u/...ild-script.tgz

    Good luck and best regards,
    Stefan
    Last edited by Steevee28; 2014-04-15 at 23:31. Reason: fixed link
    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. #30
    Junior Member
    Join Date
    Oct 2006
    Posts
    15
    Thanks Stefan. I'll give it a go and report back if I have any success.

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
  •