PnP III v3.50: Enhance the standard OS - DOWNLOAD HERE!

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
User avatar
offbeatdave
Posts: 1045
Joined: Wed Mar 09, 2011 10:43 pm

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

Post by offbeatdave »

Have you tried rebooting?
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
JogglingAlong
Posts: 5
Joined: Sun Jan 13, 2013 8:25 pm

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

Post by JogglingAlong »

Yes, a reboot does not seem to start the LMS. It is strange a the rest of PNP III works fine!
JogglingAlong
Posts: 5
Joined: Sun Jan 13, 2013 8:25 pm

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

Post 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]
User avatar
offbeatdave
Posts: 1045
Joined: Wed Mar 09, 2011 10:43 pm

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

Post 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. :?
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
jkn
Posts: 126
Joined: Sat Jul 16, 2011 11:18 am

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

Post 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
JogglingAlong
Posts: 5
Joined: Sun Jan 13, 2013 8:25 pm

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

Post 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..
charlesr
Posts: 18
Joined: Mon Feb 27, 2012 11:40 am
Contact:

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

Post 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?
User avatar
offbeatdave
Posts: 1045
Joined: Wed Mar 09, 2011 10:43 pm

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

Post 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?
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
offbeatdave
Posts: 1045
Joined: Wed Mar 09, 2011 10:43 pm

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

Post 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.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
charlesr
Posts: 18
Joined: Mon Feb 27, 2012 11:40 am
Contact:

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

Post by charlesr »

Thanks. Downloading now :)
JogglingAlong
Posts: 5
Joined: Sun Jan 13, 2013 8:25 pm

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

Post 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!
User avatar
offbeatdave
Posts: 1045
Joined: Wed Mar 09, 2011 10:43 pm

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

Post by offbeatdave »

Yeah, I'd give reflashing and reinstalling a go if that's not going to cause too much inconvenience.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
ttherapo
Posts: 64
Joined: Sat Jul 07, 2012 12:07 pm

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

Post 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...
User avatar
offbeatdave
Posts: 1045
Joined: Wed Mar 09, 2011 10:43 pm

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

Post 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)
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
ttherapo
Posts: 64
Joined: Sat Jul 07, 2012 12:07 pm

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

Post 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?
User avatar
offbeatdave
Posts: 1045
Joined: Wed Mar 09, 2011 10:43 pm

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

Post 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!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
kappa__2
Posts: 23
Joined: Fri Feb 03, 2012 10:22 pm

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

Post 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)
User avatar
Leonardo
Posts: 146
Joined: Tue Dec 25, 2012 10:51 pm

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

Post 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 :(
User avatar
Leonardo
Posts: 146
Joined: Tue Dec 25, 2012 10:51 pm

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

Post 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!!)
User avatar
Leonardo
Posts: 146
Joined: Tue Dec 25, 2012 10:51 pm

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

Post 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!
Post Reply