Piratebox Hotfix release 1.0.4 is online

Posted by Matthias 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Piratebox Hotfix release 1.0.4 is online
August 13, 2015 10:02PM
Hello everyone,

I just finalized the hotfix release 1.0.4 .

Thanks to all people who participated on this topic. You find the latest Changelog on our website.

I'll update the instruction about the new board-configuration, later this evening. It is much easier now, thanks to one contribution in the beginning of the year.

If you want to update your box, the easiest way is to folloe the upgrade instructions.
For the advanced users:
a) Download the latest piratebox_ws_1.0_img.tar.gz from our download page
b) put it into your install folder of the USB stick (overwrite the existing)
c) Power your PirateBox online, and then login using ssh
d) run the following commands to initialize the opt/piratebox folder:
 /etc/init.d/piratebox stop
 /etc/init.d/piratebox updatePB
 /etc/init.d/piratebox start
Done.

In addition, I uploaded changes people on the Piratebox Camp prepared. Jess (active in this forum) worked out a new menu structure. Nargren (giving here support, too) created the new demo.piratebox.cc site to get a sneak preview into the UI.
(I'll create the missing "getting started" page asap)

I think BlueSky will create a new RaspberryPi image soon. In Germany, we have vacancies, which may cause delays. winking smiley

Have fun, please report any issues back into this topic.

best regards
Matthias

Known errors:

* Droopy doesn't start from piratebox-current.tar.gz file, see manual fix. Hotfix is being prepared.


This is only my signature.



Edited 1 time(s). Last edit at 08/22/2015 11:12PM by Matthias.
Re: Piratebox Hotfix release 1.0.4 is online
August 13, 2015 10:27PM
RaspberryPI
For the raspberry, you can do the following for updating you piratebox scripts.

* Download the latest release file here
* Connect to your piratebox
* Upload the file (you can use the normal upload box)
* Login via ssh (user is root)
* run the following commands (assuming that you uploaded the file via the upload box)
cp /opt/piratebox/www/Shared/piratebox-ws_current.tar.gz /tmp
tar xzf /tmp/piratebox-ws_current.tar.gz 
systemctl stop piratebox.service
mv /opt/piratebox /opt/piratebox_old
cp -rv piratebox/piratebox /opt/ 
rm /opt/piratebox/share
cp -rv /opt/piratebox_old/share /opt/piratebox/share
/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf part2
systemctl restart piratebox.service
Re: Piratebox Hotfix release 1.0.4 is online
August 22, 2015 11:13PM
Added known error part in opening thread
Hello looks like no "iframe frameborder=0" in /opt/piratebox/www/index.html in RPi version.
Solution:
Replace
<iframe width="100%" heighth="80" ...
to
<iframe width="100%" frameborder="0" ...
Hello again, another bugfix with time (date) on RPi:

Login to your box.

Setup date:

date 082305422015

this is equal to Sun Aug 23 05:42 2015

in /opt/piratebox/bin/timesave.sh
find get_datetime() and change
date +%C%g%m%d%H%M
to
date +%m%d%H%M%C%g

then script on RPi run perfectly!

but after reboot date didn't change because no one autorun service preinstalled
K
Go to /etc/systemd/system and create timesave.service

nano /etc/systemd/system/timesave.service

paste this:

[Unit]
Description=PirateBox timesave service

[Service]
Type=oneshot
ExecStart=/opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf recover
TimeoutSec=20

[Install]
WantedBy=multi-user.target

Press CTRL + O to save and CTRL + X to exit, then enable service:

systemctl enable timesave.service

Teh end.
Re: Piratebox Hotfix release 1.0.4 is online
August 23, 2015 10:21AM
Hi,
thank you for posting this. In general it would be cool, if you can add information how you come to the conclusions, because if you self-tailored the image, it is probably 1.0.4, if you use the prepared one, it is more like 1.0.2, because the new image is not ready.

About the frameboarder:
Neither OpenWrt nor RaspberryPi uses the frameborder. The frameborder attribute is obsolete in HTML5 so I prefer using
style="border:0px"
But thanks for the suggestions, I'll add it to the hotfix release, good finding.

The timesave script, mh... after reading your post, I remember stubling across it a year ago, but thenI lost it out of sight and forgot it.
The problem is, that the date syntax for a recent linux system (ArchLinux) is different from the OpenWrt based. As the script is used for both, I can not change it easily.
I quickly copied your snipped of the service.file to the hotfix, but about the date syntax.. I have to review that closer.
edit: I remembered the problem I had with that script. On normal notebooks, the date command can accept the default output of the date command as an input, while on OpenWrt you need the specific format. I put the format stuff to the piratebox.conf and adjust it in the OpenWrt customization during the image build.

Thank yo for the feedback,
Matthias



Edited 1 time(s). Last edit at 08/23/2015 11:04AM by Matthias.
Re: Piratebox Hotfix release 1.0.4 is online
August 23, 2015 11:10AM
First fixed are pushed to github.



Edited 1 time(s). Last edit at 08/23/2015 11:12AM by Matthias.
Hi again.
I use pre-instaled image on RPi (piratebox-ws_1.0.2) (ArchLinuxARMv6-2015-06_PirateBox1.0.2_rpi_1.0.5.img.zip) which was upgraded to a your 1.0.4 (http://downloads.piratebox.de/piratebox-ws_current.tar.gz) with Droopy bugfix.


So now all works good. Thx again for ur project.
Re: Piratebox Hotfix release 1.0.4 is online
September 13, 2015 11:28AM
Hotfix 1.0.5 is now released
follow up the discussion there, please.


This is only my signature.