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.

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

Postby craig_1234 » Wed Apr 12, 2017 12:32 pm

I have 4 Jogglers running PNP III. They have been working fine for just under 2 years with the occasional restart required.

I noticed a problem last week when the Squeezebox app disappeared off all 4 jogglers. It was strange as all of the other apps remained. So I re-flashed the device and all was fine until 10-4-2017. All 4 jogglers then rebooted overnight and reverted back to the default apps.

keynet is correct. The joggler does indeed “phone home” to look for updates every day.

I did some research and the reason we are getting these problems now is because on 27-9-2016 OpenPeak inc. filed for chapter 7 bankruptcy in New Jersey. https://businessbankruptcies.com/cases/openpeak-inc

They got rid of most of their staff in December 2016. However, over the past few weeks during bankruptcy proceedings all online services have been removed (or expired) and they are in the process of selling the patents they currently hold. The websites http://www.openpeak.net and http://www.openpeak.com have also disappeared.

Ideally, all references to these OpenPeak URL’s need to be removed or we need to find some way to spoof the server.

The app store is linked to: http://op01.openpeak.net/openpeak/ from where it used to pull the xml app list, apps and icons from.

As BuZz mentioned a while ago the update mechanism links to:

https://services.openpeak.net/dms/device/heartbeat?mac=MACADDRESS

So based on this information we’re going to start seeing a lot of problems with the Joggler and other OpenPeak devices over the next few weeks :cry:
craig_1234
 
Posts: 10
Joined: Mon Sep 10, 2012 1:33 am

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

Postby hawsey » Wed Apr 12, 2017 4:01 pm

Ahh so do we not just need to stop them phoning home ?
Squeezeplay OS also should be fine or Xubuntu booting straight to Squeezeplay ?

Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
hawsey
 
Posts: 1756
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

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

Postby mb1 » Thu Apr 13, 2017 8:22 pm

hawsey wrote:Very :-)
@keynet thanks for sharing your fixes / work on this .

Any chance of persuading you to do a new build Dave ,Including this stuff ?


I would agree with this... and donate as well. I did a full reflash/PnP install and it's been fine for about a week. However, tonight it must have "phoned home" and left me with a lack of functionality again.

Thank you if you can do a new version. I love my trusty old kitchen Joggler!
mb1
 
Posts: 12
Joined: Sat Apr 14, 2012 11:28 am

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

Postby jkn » Sat Apr 15, 2017 2:34 pm

mb1 wrote:
hawsey wrote:Very :-)
@keynet thanks for sharing your fixes / work on this .

Any chance of persuading you to do a new build Dave ,Including this stuff ?


I would agree with this... and donate as well. I did a full reflash/PnP install and it's been fine for about a week. However, tonight it must have "phoned home" and left me with a lack of functionality again.

Thank you if you can do a new version. I love my trusty old kitchen Joggler!


It's pretty trivial to change a script file on the current PNP III to delete/rename the appropriate file after it has installed PNP III, and before the final reboot. This is how I made the change to mine. I can post the file and 'non-techy' instructions if that would be of use. It's a pretty crude measure but seems to be working for me...

I'd still like to work out what process is using the XML file though, and how often...

Cheers
jkn
 
Posts: 78
Joined: Sat Jul 16, 2011 11:18 am

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

Postby mb1 » Mon Apr 17, 2017 2:30 pm

I've blocked the Openpeak URL on my router. Simply deleting the relevant XML file did not work for me. This method seems to have stopped the icons from disappearing for now.
mb1
 
Posts: 12
Joined: Sat Apr 14, 2012 11:28 am

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

Postby jkn » Mon Apr 17, 2017 6:31 pm

mb1 wrote:I've blocked the Openpeak URL on my router. Simply deleting the relevant XML file did not work for me. This method seems to have stopped the icons from disappearing for now.


Hmm, that's interesting. So far just renaming the XML has worked for me (touch wood)

I guess there is mileage in changing the contents of the file, to an 'invalid' domain, for instance. I'd still like to know what process is using this and whether we can kill that instead.

It does seem strange that (presumably) the now-invalid response from the 'appshop' domain is causing these icons to be deleted. I would have thought that would have been risky behaviour in a fully-functioning system - leaves you open to the server being down causing customer problems...

Jon N
jkn
 
Posts: 78
Joined: Sat Jul 16, 2011 11:18 am

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

Postby keynet » Mon Apr 17, 2017 6:45 pm

FYI I initially tried just deleting the contents of the xml file (as the simplest fix) but that didn't work for me.
I needed to delete the whole file.
keynet
 
Posts: 5
Joined: Mon Apr 10, 2017 10:52 am

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

Postby Camay1066 » Tue Apr 18, 2017 2:04 pm

Hi, I too have a couple of wall mounted Jogglers running PNP III, both have lost the squeezeplayer app.

jnk could you post the non techie instructions please

Tar
Camay1066
 
Posts: 3
Joined: Wed Sep 19, 2012 2:07 pm

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

Postby jkn » Wed Apr 19, 2017 11:32 am

Camay1066 wrote:Hi, I too have a couple of wall mounted Jogglers running PNP III, both have lost the squeezeplayer app.

jnk could you post the non techie instructions please

Tar


OK, here goes.
  1. first, download the attached file. Save it somewhere on your PC, but RENAME it to "pnp3op.sh". Don't try to open it under windows. (*)
  2. Then you need to follow the original PnP III installation instructions (https://www.jogglerwiki.com/forum/viewtopic.php?f=2&t=555), as far as step 2 of "Stage 2 - Install PnP III". That is, you should have unzipped and copied the original PnP III download files onto a pendrive.
  3. put this pendrive into your PC and open it in your File Explorer. Reminder: ensure that there is no 'remove_for_new_install' file at the pendrive root
  4. navigate to the 'files' directory of the pendrive. You should see amongst many other files, one called "pnp3op.sh"
  5. replace this file with the one that you downloaded from this site. Make sure that you have renamed it!
  6. eject the pendrive and follow the rest of the PnP III installation instructions

That should be it. All this tweaked file does is add a command near the end to rename the troublesome file, before rebooting the Joggler after the installation is complete

Code: Select all
# (jkn) remove appshop.xml to prevent phone home
mv /openpeak/gui/appshop.xml /openpeak/gui/appshop.xml.orig


I hope this works for you - let me know how you get on.

Jon N

(*) I had to rename the attached file to allow it to be opened. I'm not sure what suffixes are allowed.
Attachments
pnp3op-sh.txt
RENAME ME to pnp3op.sh - tweaked to rename appshop.xml
(29.79 KiB) Downloaded 16 times
jkn
 
Posts: 78
Joined: Sat Jul 16, 2011 11:18 am

Re: CRON

Postby keynet » Thu Apr 20, 2017 9:01 pm

I noticed some discussion about cron (scheduled tasks) a while back, so I built Debian's cron and crontab for the Joggler OS as they appear to be MIA. I've not done anything meaningful with these yet, but attached them in case anyone else wants to do something with them.

I'm thinking about periodic restarts of Tango, apps and periodic checks that Squeezeplay / LMS are running.
Atm I'm auto-logging in by ssh from my server to reboot the Joggler weekly, but that's a good use for a cron job too...

Just testing - so for a manual install use WinSCP, you can put the attached 2 files in /usr/sbin, add execute permission to each for user, group, others, create /var/spool/cron directory, add /usr/sbin/cron to starthacks() in /etc/init.d/s99boot.hacks, and killall cron to stophacks().

Cron seems to run fine. You need an EDITOR environment variable to be able to edit schedules using crontab -e, you can add export EDITOR=vi to /etc/profile or just type that manually. When I get fed up with vi I might build nano for the Joggler!

As a point of interest, I see a much more capable busybox executable busybox.new built with a whole lot of useful utils (including cron) sitting unused in /bin. Does anyone know if the PNP will run with this as the default ? Would make life a little easier!
Attachments
joggler_cron.zip
Joggler cron files
(42.62 KiB) Downloaded 4 times
keynet
 
Posts: 5
Joined: Mon Apr 10, 2017 10:52 am

Re: CRON

Postby jkn » Thu Apr 20, 2017 10:38 pm

keynet wrote:I noticed some discussion about cron (scheduled tasks) a while back, so I built Debian's cron and crontab for the Joggler OS as they appear to be MIA. I've not done anything meaningful with these yet, but attached them in case anyone else wants to do something with them.

I'm thinking about periodic restarts of Tango, apps and periodic checks that Squeezeplay / LMS are running.
Atm I'm auto-logging in by ssh from my server to reboot the Joggler weekly, but that's a good use for a cron job too...

Just testing - so for a manual install use WinSCP, you can put the attached 2 files in /usr/sbin, add execute permission to each for user, group, others, create /var/spool/cron directory, add /usr/sbin/cron to starthacks() in /etc/init.d/s99boot.hacks, and killall cron to stophacks().

Cron seems to run fine. You need an EDITOR environment variable to be able to edit schedules using crontab -e, you can add export EDITOR=vi to /etc/profile or just type that manually. When I get fed up with vi I might build nano for the Joggler!


all good fun! I wondered about cron but like you could see no such instance - so I was then trying to work out how the periodic attempt to phone home was done. I think I saw one of the /etc/init.d scripts with a big sleep loop, but I am not sure that I was looking at the right thing.

I don't particularly have a use case to add cron but good work anyway...

As a point of interest, I see a much more capable busybox executable busybox.new built with a whole lot of useful utils (including cron) sitting unused in /bin. Does anyone know if the PNP will run with this as the default ? Would make life a little easier!


Oh, well spotted! yes, that looks much more capable, Would definitely be an experiment to try, I guess if you have a joggler with a (serial?) console connected...

Jon N
jkn
 
Posts: 78
Joined: Sat Jul 16, 2011 11:18 am

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

Postby keynet » Fri Apr 21, 2017 11:18 am

Sadly no serial console.
Switching to it involves a moderate risk of making the Joggler unbootable, so I'm not minded to try on a whim! So I'm asking about the history of it, as newer/more complete would make sense. I see elsewhere in the forum that the 1 or 2 utilities from it have been tried, mounting windows shares. Suggestions of issues, but could just be syntax.
viewtopic.php?f=2&t=1440&start=140
viewtopic.php?f=2&t=592

I'd be happy to build the latest against the joggler libs if that helped, but there are prebuilt binaries out there that may be OK. Still < 1M in size !
keynet
 
Posts: 5
Joined: Mon Apr 10, 2017 10:52 am

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

Postby Camay1066 » Thu Apr 27, 2017 8:31 pm

Hi all done, working now.


thanks for the info.


jkn wrote:
Camay1066 wrote:Hi, I too have a couple of wall mounted Jogglers running PNP III, both have lost the squeezeplayer app.

jnk could you post the non techie instructions please

Tar


OK, here goes.
  1. first, download the attached file. Save it somewhere on your PC, but RENAME it to "pnp3op.sh". Don't try to open it under windows. (*)
  2. Then you need to follow the original PnP III installation instructions (https://www.jogglerwiki.com/forum/viewtopic.php?f=2&t=555), as far as step 2 of "Stage 2 - Install PnP III". That is, you should have unzipped and copied the original PnP III download files onto a pendrive.
  3. put this pendrive into your PC and open it in your File Explorer. Reminder: ensure that there is no 'remove_for_new_install' file at the pendrive root
  4. navigate to the 'files' directory of the pendrive. You should see amongst many other files, one called "pnp3op.sh"
  5. replace this file with the one that you downloaded from this site. Make sure that you have renamed it!
  6. eject the pendrive and follow the rest of the PnP III installation instructions

That should be it. All this tweaked file does is add a command near the end to rename the troublesome file, before rebooting the Joggler after the installation is complete

Code: Select all
# (jkn) remove appshop.xml to prevent phone home
mv /openpeak/gui/appshop.xml /openpeak/gui/appshop.xml.orig


I hope this works for you - let me know how you get on.

Jon N

(*) I had to rename the attached file to allow it to be opened. I'm not sure what suffixes are allowed.
Camay1066
 
Posts: 3
Joined: Wed Sep 19, 2012 2:07 pm

Previous

Return to General / Software

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron