PnP III: Enhance the standard OS - DOWNLOAD IT HERE!

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.

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

Postby offbeatdave » Sun Jan 13, 2013 9:42 pm

Have you tried rebooting?
"Every day I'm Joggle-ing!"
Joggle-ing since Dec 2009;
Tinkering away since Feb 2010 thanks to PMJ, Jogtools & PnP;
Finally giving something back from Feb 2012 with PnP Mk II & PnP III!
User avatar
offbeatdave
 
Posts: 957
Joined: Wed Mar 09, 2011 10:43 pm

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

Postby JogglingAlong » Sun Jan 13, 2013 11:16 pm

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!

Postby JogglingAlong » Sun Jan 13, 2013 11:23 pm

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

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

Postby offbeatdave » Mon Jan 14, 2013 12:01 am

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 Joggle-ing!"
Joggle-ing since Dec 2009;
Tinkering away since Feb 2010 thanks to PMJ, Jogtools & PnP;
Finally giving something back from Feb 2012 with PnP Mk II & PnP III!
User avatar
offbeatdave
 
Posts: 957
Joined: Wed Mar 09, 2011 10:43 pm

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

Postby jkn » Mon Jan 14, 2013 12:04 am

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
jkn
 
Posts: 64
Joined: Sat Jul 16, 2011 11:18 am

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

Postby JogglingAlong » Mon Jan 14, 2013 12:22 pm

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

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

Postby charlesr » Mon Jan 14, 2013 12:38 pm

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?
charlesr
 
Posts: 14
Joined: Mon Feb 27, 2012 11:40 am

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

Postby offbeatdave » Mon Jan 14, 2013 1:30 pm

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 Joggle-ing!"
Joggle-ing since Dec 2009;
Tinkering away since Feb 2010 thanks to PMJ, Jogtools & PnP;
Finally giving something back from Feb 2012 with PnP Mk II & PnP III!
User avatar
offbeatdave
 
Posts: 957
Joined: Wed Mar 09, 2011 10:43 pm

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

Postby offbeatdave » Mon Jan 14, 2013 1:34 pm

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 Joggle-ing!"
Joggle-ing since Dec 2009;
Tinkering away since Feb 2010 thanks to PMJ, Jogtools & PnP;
Finally giving something back from Feb 2012 with PnP Mk II & PnP III!
User avatar
offbeatdave
 
Posts: 957
Joined: Wed Mar 09, 2011 10:43 pm

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

Postby charlesr » Mon Jan 14, 2013 2:15 pm

Thanks. Downloading now :)
charlesr
 
Posts: 14
Joined: Mon Feb 27, 2012 11:40 am

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

Postby JogglingAlong » Mon Jan 14, 2013 3:08 pm

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

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

Postby offbeatdave » Mon Jan 14, 2013 8:22 pm

Yeah, I'd give reflashing and reinstalling a go if that's not going to cause too much inconvenience.
"Every day I'm Joggle-ing!"
Joggle-ing since Dec 2009;
Tinkering away since Feb 2010 thanks to PMJ, Jogtools & PnP;
Finally giving something back from Feb 2012 with PnP Mk II & PnP III!
User avatar
offbeatdave
 
Posts: 957
Joined: Wed Mar 09, 2011 10:43 pm

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

Postby ttherapo » Mon Jan 14, 2013 8:42 pm

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...
ttherapo
 
Posts: 65
Joined: Sat Jul 07, 2012 12:07 pm

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

Postby offbeatdave » Mon Jan 14, 2013 9:23 pm

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 Joggle-ing!"
Joggle-ing since Dec 2009;
Tinkering away since Feb 2010 thanks to PMJ, Jogtools & PnP;
Finally giving something back from Feb 2012 with PnP Mk II & PnP III!
User avatar
offbeatdave
 
Posts: 957
Joined: Wed Mar 09, 2011 10:43 pm

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

Postby ttherapo » Mon Jan 14, 2013 9:59 pm

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?
ttherapo
 
Posts: 65
Joined: Sat Jul 07, 2012 12:07 pm

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

Postby offbeatdave » Mon Jan 14, 2013 10:22 pm

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 Joggle-ing!"
Joggle-ing since Dec 2009;
Tinkering away since Feb 2010 thanks to PMJ, Jogtools & PnP;
Finally giving something back from Feb 2012 with PnP Mk II & PnP III!
User avatar
offbeatdave
 
Posts: 957
Joined: Wed Mar 09, 2011 10:43 pm

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

Postby kappa__2 » Tue Jan 15, 2013 12:15 pm

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)
kappa__2
 
Posts: 23
Joined: Fri Feb 03, 2012 10:22 pm

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

Postby Leonardo » Tue Jan 15, 2013 11:16 pm

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!

Postby Leonardo » Wed Jan 16, 2013 12:10 am

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!

Postby Leonardo » Wed Jan 16, 2013 12:13 am

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

PreviousNext

Return to General / Software

Who is online

Users browsing this forum: Bing [Bot], BuZz and 4 guests