Page 41 of 65

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Sun Jan 13, 2013 9:42 pm
by offbeatdave
Have you tried rebooting?

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Sun Jan 13, 2013 11:16 pm
by JogglingAlong
Yes, a reboot does not seem to start the LMS. It is strange a the rest of PNP III works fine!

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Sun Jan 13, 2013 11:23 pm
by JogglingAlong
Heres the result of running the top command via SSH. Perhaps theis will help someone with more linux skills than me !

PID PPID USER STAT VSZ %MEM %CPU COMMAND
1417 1393 root S 325m 65% 1% ./tango /openpeak/gui/opphone.swf
1118 2 root SW 0 0% 0% [RtmpMlmeTask]
1377 1376 root S < 546m 110% 0% X :0 -br
1352 1 root S 92160 18% 0% /media/launcher/mongoose -r /media/launcher -p 8080 -a /media/log
1337 1 root S 43856 9% 0% ./mongoose -root /media/gforums/webserver -ports 80,11111 -cgi_en
1475 1417 root S 30232 6% 0% audsrv -port 16000
1480 1417 root S 30232 6% 0% audsrv -port 16001
1485 1417 root S 30232 6% 0% audsrv -port 16002
3111 1241 root S 8056 2% 0% sshd: letmeinssh@notty
3070 1241 root S 7912 2% 0% sshd: letmeinssh@pts/0
1241 1 root S 5328 1% 0% /usr/sbin/sshd
3119 3118 root S 4580 1% 0% /usr/lib/openssh/sftp-server
1208 1 root S 4228 1% 0% ntpd -c /tmp/ntp.conf
1376 1331 root S 2784 1% 0% xinit /openpeak/tango/xinit.sh -- -br
1336 1335 root S 2240 0% 0% /bin/sh /openpeak/tango/adshelper
31975 3129 root R 2240 0% 0% top
1211 1 root S 2240 0% 0% udhcpc --now -i eth0 -p/tmp/udhcpc.pid -x 0050C2 -y 00:0E:8E:24:C
1348 1 root S 2240 0% 0% /bin/sh /etc/init.d/rcS
1393 1376 root S 2240 0% 0% /bin/sh /openpeak/tango/xinit.sh
3129 3070 root S 2240 0% 0% -sh
1 0 root S 2236 0% 0% init
1233 1 root S 2236 0% 0% telnetd
1331 1 root S 2236 0% 0% /bin/sh ./run
1335 1331 root S 2236 0% 0% /bin/sh ./run
3118 3111 root S 2236 0% 0% sh -c /usr/lib/openssh/sftp-server
28039 1348 root S 2104 0% 0% sleep 2000
32185 1336 root S 2104 0% 0% sleep 2
1117 2 root SW 0 0% 0% [RtmpTimerTask]
948 2 root SW< 0 0% 0% [mmcqd]
3 2 root SW< 0 0% 0% [migration/0]
9 2 root SW< 0 0% 0% [events/0]

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 12:01 am
by offbeatdave
JogglingAlong wrote:Is there a command I can issue via SSH to either force start the server or confirm that is or is not running? Or is my install corrupted.. :(
Try

Code: Select all

killall perl
/media/gforums/apps/logitechmediaserver/slimserver.pl --daemon
It is possible I messed something up with PnP III, but I'm sure one of mine is running the current build OK and there hasn't been a flood of complaints. Yet. :?

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 12:04 am
by jkn
Fishy wrote:offbeatdave, roobarb!, Leonardo

Hey, you're confusing me with a guy who knows something about linux !!!
Don't forget everything I know about it I learnt from this forum.

Obviously keen to learn but would be grateful for more pointers or any other suggestions about how to keep my PnPIII Joggler alive.

Thanks

Fishy :)
Hi there

As a crude option, I think you would 'just' need to put a file like the following on the Joggler:

Code: Select all

#!/bin/sh

# run some command every minute to keep things alive
# this needs to be invoked (as root) in the background somehow...
# eg:
#  # /mydir/keepalive &

while [ 1 ] ; do
    sleep 60
    touch /mnt/media/.stayalive
    cp /mnt/media/.stayalive /mnt/media/.stayinalive
done
You then need to (a) make this executable, (b) find some way of causing this to be started up during startup. I haven't looked into how this can be done on the Joggler. FWIW I also haven't checked if this will run under busybox...

Regardless, HTH
Jon N

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 12:22 pm
by JogglingAlong
offbeatdave,

Below is the result of executing the commands you suggested..

killall: perl: no process killed
# /media/gforums/apps/logitechmediaserver/slimserver.pl --daemon
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-01-14 11:10:41.0529] main::init (354) Starting Logitech Media Server (v7.7.2, r33893, Wed Mar 14 06:37:22 MDT 2012) perl 5.008008

Still no joy accessing the LMS page or from the jogglers squeezeplay app..

Thanks for your help with this..

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 12:38 pm
by charlesr
Hi all
Please would someone explain how I prevent Logitech Media Server from running? I don't use it (I have a LMS on my PC 24/7) and never will and don't use the BBC iPlayer either.
I only use internet browser and squeezeplay (to control one of my squeezeboxes).

Is it just a case of removing the entire package? If so, what is the command please?

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 1:30 pm
by offbeatdave
JogglingAlong wrote:offbeatdave,

Below is the result of executing the commands you suggested..

killall: perl: no process killed
# /media/gforums/apps/logitechmediaserver/slimserver.pl --daemon
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-01-14 11:10:41.0529] main::init (354) Starting Logitech Media Server (v7.7.2, r33893, Wed Mar 14 06:37:22 MDT 2012) perl 5.008008

Still no joy accessing the LMS page or from the jogglers squeezeplay app..

Thanks for your help with this..
It looks like it hasn't started as the killall perl should report something is killed.
What are you typing into the web browser to access the LMS page?

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 1:34 pm
by offbeatdave
charlesr wrote:Hi all
Please would someone explain how I prevent Logitech Media Server from running? I don't use it (I have a LMS on my PC 24/7) and never will and don't use the BBC iPlayer either.
I only use internet browser and squeezeplay (to control one of my squeezeboxes).

Is it just a case of removing the entire package? If so, what is the command please?
If you don't want LMS running, on later versions of PnP there is an option in SWF Manager->Shell to stop LMS.

To remove the iPlayer icon either just move it to the back page of icons or edit the media->applications.xml file (it may be in a further directory deep actually - not at Joggler at moment) and remove the line referring to it. It doesn't use any resources when it's not running.

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 2:15 pm
by charlesr
Thanks. Downloading now :)

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 3:08 pm
by JogglingAlong
offbeatdave,

I have tried to access the LMS by JOGGLER_IP:9000 (in my case 192.168.1.120:9000) and via the link on the Jogglers own webserver page.
As you said the killall perl command does not stop anything so thats a red flag straight away. I am wondering if it is just easier to try a reflash of PNP III rather than drive you mad.
If LMS is running fine for others on thier Jogglers it cannot be a problem with the code,just my Joggler acting up!

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 8:22 pm
by offbeatdave
Yeah, I'd give reflashing and reinstalling a go if that's not going to cause too much inconvenience.

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 8:42 pm
by ttherapo
Sorry to ask again, i already asked a few posts before, but i got no reply.Maybe because it was a stupid question...so again what is LMS and how do i configure it? I have two Jogglers with PNPIII installed..thanks...

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 9:23 pm
by offbeatdave
ttherapo wrote:Sorry to ask again, i already asked a few posts before, but i got no reply.Maybe because it was a stupid question...so again what is LMS and how do i configure it? I have two Jogglers with PNPIII installed..thanks...
http://en.wikipedia.org/wiki/Logitech_Media_Server

To get to in, use a computer on your network and enter <JogglerIP>:9000 in the webbrowser.
(e.g. 192.168.2.96:9000)

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 9:59 pm
by ttherapo
thanks fro the reply, i have read the link provided and entered my server settings.How do i configure LMS to play songs from my NAS server and not the pc, if this is possible?

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Mon Jan 14, 2013 10:22 pm
by offbeatdave
I'm afraid I've not done this with my set-up. You'll have to have a trawl through this thread/squeezeplay thread. Sorry!

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Tue Jan 15, 2013 12:15 pm
by kappa__2
Hi. I'm new to the PnP III so i need a little help.

Is there a way to associate a button (home screen) to a video stream? (ie: http:192.168.1.200:8089/234.ts)

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Tue Jan 15, 2013 11:16 pm
by Leonardo
Fishy wrote:
Leonardo wrote:Fishy don't worry, if you need info in Linux I think I can help you! (I'm newbie with Joggler but at the end it's alway Linux :D)
Tell me what you need and I can try to create a script!
Thanks for very kind offer.
please forgive me, I totally forgot this topic I'm reading it right now to see whai I lost and I try to help you asap.. sorry :(

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Wed Jan 16, 2013 12:10 am
by Leonardo
I'm trying to run cron on Joggler but it seems to be not simple.. I'm tracing the execution of the daemon and it needs the PAM libs, that are libraries for authentication.. I'm afraid it could be very tricky.
I think it's a better way to simulate cron with a shell script and sleep, like suggested by Jkn, maybe something like this can help you to check if it works:

Code: Select all

#!/bin/sh

IP="a.b.c.d"    # IP Address to test, for example router IP
STS="3600"      # Seconds to sleep, 3600=1hour
                 
while true       
do        
          
ping -c1 $IP 2>&1 > /dev/null
ERR=`echo $?`                
                             
if [ "$ERR" = "1" ]; then
  echo error             
  # do something, like a reboot or whatever you want!
fi           
         
sleep $STS
          
done  
just copy this code wherever you prefer (I always create a directory /opt/bin on my devices), make it executable with:

chmod +x /path/to/file.sh

add the line:

/path/to/file.sh &

DON'T FORGET THE & (it needs to run in background!!!)
on the file /etc/init.d/rcS before the "cd /openpeak/tango" line.
please be sure what you write if you are not familiar with linux OS!

If you need further info about this, just ask (I'll pay more attention to this post!!)

Re: PnP III: Enhance the standard OS - Download v3.101 here!

Posted: Wed Jan 16, 2013 12:13 am
by Leonardo
I forgot: this simple script helps you to do something in the case you lost connection, infact, loosing it the IP is no longer reacheable.
You can use this script for other controls, for example changing the ping test to "ps w|grep $PROCESS|grep -v grep" you can easely check if $PROCESS is still alive or it needs to be restarted!

Another info: the /etc/init.d/rcS script is the "startup" sequence, like the old autoexec.bat in dos, or if you pass the example, similar to the "startup" in windows.
The & I put at the end of the command line is needed to run the process in the background.
Obviously this is just an example, you'll need to do some tests to make it work as you need!