SBS auf raspberry

Holger_B76
Beiträge: 12
Registriert: 2. November 2020 16:41
SqueezeBox: Radio
SqueezeBox: UE Smart Radio

Re: SBS auf raspberry

Beitrag von Holger_B76 »

da steht sooooo viel drin was meinst du?



#!/bin/sh
#
# $Id$
#
# logitechmediaserver initscript for slimserver.pl
# This file should be placed in /etc/init.d.
#
# Original Author: Mattias Holmlund
#
# Updated By: Dan Sully, Michael Herger

#
### BEGIN INIT INFO
# Provides: logitechmediaserver
# Required-Start: $all
# Required-Stop: $all
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Startup script for the Logitech Media Server
# Description: Logitech Media Server powers the Squeezebox, Transporter and SLIMP3 network music \
# players and is the best software to stream your music to any software MP3 \
# player. It supports MP3, AAC, WMA, FLAC, Ogg Vorbis, WAV and more! \
# As of version 7.7 it also supports UPnP clients, serving pictures and movies too!"
### END INIT INFO
#

set -e
. /lib/lsb/init-functions

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Logitech Media Server"
NAME=squeezeboxserver
NEWNAME=logitechmediaserver
DAEMON=/usr/sbin/$NAME
DAEMON_SAFE=/usr/sbin/${NAME}_safe
PIDFILE=/var/run/$NEWNAME.pid
SCRIPTNAME=/etc/init.d/$NEWNAME
SLIMUSER=$NAME
PREFSDIR=/var/lib/$NAME/prefs
LOGDIR=/var/log/$NAME/
CACHEDIR=/var/lib/$NAME/cache
CHARSET=utf8

## if you want to add additional options
## use /usr/sbin/squeezeboxserver --help
## for the supported options and place them
## into the configfile /etc/default/logitechmediaserver


# Read config file if it is present.
if [ -r /etc/default/$NEWNAME ]; then
. /etc/default/$NEWNAME
elif [ -r /etc/default/$NAME ]; then
. /etc/default/$NAME
fi

#
# Function that starts the daemon/service.
#
d_start() {
# Use squeezeboxserver_safe to restart the daemon when
# it dies. This must be done to handle mysql restarts.
start-stop-daemon --start --quiet \
--chuid $SLIMUSER \
--pidfile $PIDFILE \
--exec $DAEMON_SAFE \
--background \
--make-pidfile \
-- \
$DAEMON \
--prefsdir $PREFSDIR \
--logdir $LOGDIR \
--cachedir $CACHEDIR \
--charset=$CHARSET \
$SLIMOPTIONS
}

d_start_direct() {
start-stop-daemon --start --quiet \
--chuid $SLIMUSER \
--pidfile $PIDFILE \
--exec $DAEMON \
-- \
--pidfile $PIDFILE \
--daemon \
--prefsdir $PREFSDIR \
--logdir $LOGDIR \
--cachedir $CACHEDIR \
--charset=$CHARSET \
$SLIMOPTIONS
}

# Function that stops the daemon/service.
#
d_stop() {

## This is a bug in the start-stop-daemon that checks the PID name from the /proc/PID/stat filesystem...
## Unfortunately this cuts-off the name of the daemon because its longer now, and then it doesnt get
## caught by the start-stop-daemon. The daemon actually reports it as squeezeboxserve instead of
## squeezeboxserver_safe.
start-stop-daemon --oknodo --stop --pidfile $PIDFILE --retry=TERM/30/KILL/5
}

#
# Function that sends a SIGHUP to the daemon/service.
#
d_reload() {
start-stop-daemon --stop --quiet --pidfile $PIDFILE --signal 1
}

case "$1" in
start)
echo -n "Making sure that $DESC is not running first: "
d_stop
echo -n "Starting $DESC"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC"
d_stop
echo "."
;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $NAME"
d_stop
d_start
echo "."
;;
status)
status_of_proc /usr/bin/$NEWNAME $NEWNAME
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
exit 1
;;
esac

exit 0
karlek
Moderator
Beiträge: 2098
Registriert: 2. November 2011 12:35
SqueezeBox: Touch
SqueezeBox: Radio
SqueezeBox: Boom
SqueezeBox: Classic
SqueezeBox: Transporter
SqueezeBox Server läuft auf: Raspberry Pi 3 (Jessie) mit LMS 7.9
(O2 Joggler mit LMS 7.9)
(QNAP-212 (Turbo) mit LMS 7.9)

SBS auf raspberry

Beitrag von karlek »

/etc/init.d/logitechmediaserver start
Holger_B76
Beiträge: 12
Registriert: 2. November 2020 16:41
SqueezeBox: Radio
SqueezeBox: UE Smart Radio

Re: SBS auf raspberry

Beitrag von Holger_B76 »

pi@ioBroker:~ $ /etc/init.d/logitechmediaserver start
[ ok ] Starting logitechmediaserver (via systemctl): logitechmediaserver.servic.
pi@ioBroker:~ $


Dennoch kein Webinterface
karlek
Moderator
Beiträge: 2098
Registriert: 2. November 2011 12:35
SqueezeBox: Touch
SqueezeBox: Radio
SqueezeBox: Boom
SqueezeBox: Classic
SqueezeBox: Transporter
SqueezeBox Server läuft auf: Raspberry Pi 3 (Jessie) mit LMS 7.9
(O2 Joggler mit LMS 7.9)
(QNAP-212 (Turbo) mit LMS 7.9)

Re: SBS auf raspberry

Beitrag von karlek »

Mist!
Dann so:

/usr/sbin/squeezeboxserver
Holger_B76
Beiträge: 12
Registriert: 2. November 2020 16:41
SqueezeBox: Radio
SqueezeBox: UE Smart Radio

Re: SBS auf raspberry

Beitrag von Holger_B76 »

pi@ioBroker:~ $ /usr/sbin/squeezeboxserver
The following modules failed to load: DBI EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::XS Sub::Name


This is perl 5, version 28, subversion 1 (v5.28.1) built for arm-linux-gnueabihf-thread-multi-64int
(with 61 registered patches, see perl -V for more detail)

Copyright 1987-2018, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


*******

NOTE:

If you're running some unsupported Linux/Unix platform, please use the buildme.sh
script located here:

https://github.com/Logitech/slimserver- ... c/7.9/CPAN

If 7.9 is outdated by the time you read this, Replace "7.9" with the major version
You should never need to do this if you're on Windows or Mac OSX. If the installers
don't work for you, ask for help and/or report a bug.

*******


Exiting..
pi@ioBroker:~ $


So da fehlt nun also ein bissl was.... Warum?
karlek
Moderator
Beiträge: 2098
Registriert: 2. November 2011 12:35
SqueezeBox: Touch
SqueezeBox: Radio
SqueezeBox: Boom
SqueezeBox: Classic
SqueezeBox: Transporter
SqueezeBox Server läuft auf: Raspberry Pi 3 (Jessie) mit LMS 7.9
(O2 Joggler mit LMS 7.9)
(QNAP-212 (Turbo) mit LMS 7.9)

Re: SBS auf raspberry

Beitrag von karlek »

RasPi auf dem aktuellsten Stand?
sudo apt full-upgrade
Holger_B76
Beiträge: 12
Registriert: 2. November 2020 16:41
SqueezeBox: Radio
SqueezeBox: UE Smart Radio

Re: SBS auf raspberry

Beitrag von Holger_B76 »

natürtlich

pi@ioBroker:~ $ sudo apt full-upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
pi@ioBroker:~ $
Holger_B76
Beiträge: 12
Registriert: 2. November 2020 16:41
SqueezeBox: Radio
SqueezeBox: UE Smart Radio

Re: SBS auf raspberry

Beitrag von Holger_B76 »

So bringen wir es zum Abschluss.
In einigen Foren habe ich gelesen das es zu Probleme kam wenn mit APT-GET Installaiert wurde und mit dpkg ein uninstall durchgeführt wurde oder umgedreht.

Also habe ich heute alles zig mal so installiert udn deinstallier und dann anders....

Irgendwann hab ich dann Perl nochmals anders installiert...

zu guter letzt habe ich von http://downloads.slimdevices.com/nightly/?ver=7.9 die 7.9.4 Beta installiert und jetzt.... #trommelwirbel

läuft die LMS endlich also habe ich die Version auf dem Windowsserver stillgelegt und alles zur neuen umgezogen.

Jetzt läuft es. Vielen Dank für die Ansätze. Was es nun wirklich war werde ich wohl nie rausfinden.
karlek
Moderator
Beiträge: 2098
Registriert: 2. November 2011 12:35
SqueezeBox: Touch
SqueezeBox: Radio
SqueezeBox: Boom
SqueezeBox: Classic
SqueezeBox: Transporter
SqueezeBox Server läuft auf: Raspberry Pi 3 (Jessie) mit LMS 7.9
(O2 Joggler mit LMS 7.9)
(QNAP-212 (Turbo) mit LMS 7.9)

Re: SBS auf raspberry

Beitrag von karlek »

Danke fürs Feedback. Das dürfte aber eher die Ausnahme sein. apt nutzt ja dpkg.

Vermutlich hätte apt-get dist-upgrade den Karren auch aus dem Dreck gezogen.
Benutzeravatar
kusselinski
Beiträge: 108
Registriert: 12. Juni 2017 15:16

Re: SBS auf raspberry

Beitrag von kusselinski »

Holger_B76 hat geschrieben: 6. November 2020 09:58
Irgendwann hab ich dann Perl nochmals anders installiert...
Hi, wie hast du denn perl nochmal anders installiert ???
Ich habe das gleiche Problem...habe Pi und iobroker und LMS 8.01 installiert...komme nicht aufs Web Interface :-(

Gruss
Antworten