[Solved] Porteus 5.0 Updater

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
donald
Full of knowledge
Full of knowledge
Posts: 2069
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

[Solved] Porteus 5.0 Updater

Post#16 by donald » 18 Dec 2022, 01:55

No need for the full gtk+2 2.24.33 package - at least on my system (XFCE) I only need:

Code: Select all

└── usr
    └── lib64
        ├── gtk-2.0
        │   └── 2.10.0
        │       └── engines
        │           └── libpixmap.so
        ├── libgdk-x11-2.0.so.0 -> libgdk-x11-2.0.so.0.2400.33
        ├── libgdk-x11-2.0.so.0.2400.33
        ├── libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.2400.33
        └── libgtk-x11-2.0.so.0.2400.33

btw - the same deps you need to run the standalone-flashplayer
If you make a (dependencies) module it can be used for both.

EDIT
Here you go -- ( a zip file with both modules + md5sum):
https://filehorst.de/d/ecftjEJc

As usual (german file hoster)
wait 15 seconds "Dein Download wird jetzt vorbereitet." (Your download is being prepared)
click "Jetzt zur Download-Seite" (now to the download page)
click "Dein Download steht nun bereit. Klicke hier, um ihn zu starten."
(Your download is ready. Click here to start downloading it)

Note
I only care for XFCE so YMMV.
But you can (of course) always compile your own.
http://slackbuilds.org/result/?search=isomaster&sv=

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[Solved] Porteus 5.0 Updater

Post#17 by Rava » 18 Dec 2022, 09:41

donald wrote:
18 Dec 2022, 01:55
No need for the full gtk+2 2.24.33 package - at least on my system (XFCE) I only need:

Code: Select all

└── usr
    └── lib64
        ├── gtk-2.0
        │   └── 2.10.0
        │       └── engines
        │           └── libpixmap.so
        ├── libgdk-x11-2.0.so.0 -> libgdk-x11-2.0.so.0.2400.33
        ├── libgdk-x11-2.0.so.0.2400.33
        ├── libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.2400.33
        └── libgtk-x11-2.0.so.0.2400.33
As seen by the size of the complete GTK package i already presumed that getmod most probably only has small parts of it incoorported into its isomaster+gtk2 module.

I downloaded you zip and will cross check that with what's in the gtk2 package, what's in the isomaster+gtk2 module made by getmod and what's in your gtk2 module.

Added in 1 minute 7 seconds:
And since I also made the flashplayer module as described even with screenshots in the other thread …
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

[Solved] Porteus 5.0 Updater

Post#18 by francois » 27 Feb 2023, 11:55

I am an iso fan of porteus. Thanks to tome from which I took the habit.

And from /tmp where do you move those updates.

Question: Is it simply in the /porteus/modules folder? Thus implicating that:

Code: Select all

 1+) 001-core.xzm
  2+) 002-xorg.xzm
  3+) 002-xtra.xzm 
Will overwrite the former same files.

Thus the If this is the case how can we explain that to the simple porteus forum mortal?

Maybe a note should be added to the changelog Porteus-v5.0 updates

Thanks.
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[Solved] Porteus 5.0 Updater

Post#19 by Ed_P » 27 Feb 2023, 17:26

On my harddrive I have an \ISO folder, a \Porteus5.0 folder, a \Porteus5.0\Modules folder and a \Porteus5.0\Optional folder (plus many, many more).

When I boot a Porteus ISO I use the extramod= cheatcode to point to the \Porteus5.0\Modules folder. New .xzm modules that I download get copied/moved to the \Porteus5.0\Modules folder and are picked up the next time I boot. If the .xzm module is not a system module I can activate it before I reboot. Modules in the \Porteus5.0\Modules folder override modules with the same name in the Porteus ISO.
francois wrote:
27 Feb 2023, 11:55
how can we explain that to the simple porteus forum mortal?
If a forum mortal knows how to boot an ISO they know how to add modules to their ISO system: system, app, bundle. And they usually know how to rebuild the ISO. :)
Ed

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

[Solved] Porteus 5.0 Updater

Post#20 by francois » 27 Feb 2023, 21:50

Mortals have often to be refreshed concerning the Godess of linux and the demi-god Porteus.

With grub2 I also use the extramod cheatcode to get additional modules to load with my system. I do not activate nothing, what is designated the folder pointed with the extramod cheatcode does the job. Will it do it for:

Code: Select all

  1+) 001-core.xzm
  2+) 002-xorg.xzm
  3+) 002-xtra.xzm 

?????

I though that to override a module it was better to have a superior entry schema like:

Code: Select all

  1+) 001-core-update-date.xzm
  2+) 002-xorg-update-date.xzm
  3+) 002-xtra-update-date.xzm 


Isn't it?
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[Solved] Porteus 5.0 Updater

Post#21 by Ed_P » 27 Feb 2023, 22:35

francois wrote:
27 Feb 2023, 21:50
Will it do it for:

Code: Select all

  1+) 001-core.xzm
  2+) 002-xorg.xzm
  3+) 002-xtra.xzm
Ed_P wrote:
27 Feb 2023, 17:26
Modules in the \Porteus5.0\Modules folder override modules with the same name in the Porteus ISO.
francois wrote:
27 Feb 2023, 21:50
I though that to override a module it was better to have a superior entry schema like:

Code: Select all

  1+) 001-core-update-date.xzm
  2+) 002-xorg-update-date.xzm
  3+) 002-xtra-update-date.xzm

Isn't it?
No.
Ed

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

[Solved] Porteus 5.0 Updater

Post#22 by francois » 28 Feb 2023, 00:07

Hey, thanks pal! ;)
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[Solved] Porteus 5.0 Updater

Post#23 by Ed_P » 28 Feb 2023, 02:35

francois wrote:
27 Feb 2023, 21:50
I though that to override a module it was better to have a superior entry schema like:

Code: Select all

  1+) 001-core-update-date.xzm
  2+) 002-xorg-update-date.xzm
  3+) 002-xtra-update-date.xzm
In the development phase having modules with dates in their names can be useful to keep them straight especially when they are all in the same folder but they don't automatically replace prior versions of the module, you have to use the noload= cheatcode to stop the ISO's prior version module's name from loading.

The Porteus base module updates do not use dates in their names. 001- thru 003-.

Added in 1 day 3 hours 14 minutes 10 seconds:
Ed_P wrote:
27 Feb 2023, 17:26
Modules in the \Porteus5.0\Modules folder override modules with the same name in the Porteus ISO.
That may not be the case with 5.0. :hmmm:
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[Solved] Porteus 5.0 Updater

Post#24 by Rava » 30 Aug 2023, 05:25

Ed_P wrote:
15 Dec 2022, 20:50
donald wrote:
15 Dec 2022, 20:33
IMO the md5sum should be better checked against the file
from the porteus server.
An interesting point donald. :happy62:
Not just interesting, but essential.

when a rogue player wants to give Port users malign code inserts, then tweaking e.g. 001-core.xzm on a less that secure mirror server and also tweak the md5sum on the same mirror server - our update script would not realize it incorporated malign code.

Added in 5 minutes 10 seconds:

Code: Select all

 Starting checks ... 
[OK] Server: http://dl.porteus.org
[OK] Architecture: x86_64
[OK] User is root
[OK] Distro is Porteus
[OK] Base folder is writable
[ERROR] An internet connection is required.
It is obvious that I have internet:

Code: Select all

Checking fastest mirror ...
Testing http://ftp.vim.org/ftp/os/Linux/distr/porteus/ 0.260650
Testing http://ftp.nluug.nl/os/Linux/distr/porteus/ 0.063415
Testing http://mirrors.dotsrc.org/porteus/ 0.287085
Testing https://mirrors.dotsrc.org/porteus/ 0.161571
Testing http://ftp.cc.uoc.gr/pub/linux/porteus/ 2.034334
Testing http://www6.frugalware.org/mirrors/linux/porteus/ 0.365479
Testing http://ftp.riken.jp/Linux/porteus/ 1.611825
Testing http://www.mirrorservice.org/sites/dl.porteus.org/ 0.166505
Testing http://linux.rz.rub.de/porteus/ 1.106170
Testing http://ftpmirror1.infania.net/mirror/porteus/ 0.191484
Testing https://mirror.yandex.ru/mirrors/porteus/ 0.308317

Results:

0.063415	http://ftp.nluug.nl/os/Linux/distr/porteus/
0.161571	https://mirrors.dotsrc.org/porteus/
0.166505	http://www.mirrorservice.org/sites/dl.porteus.org/
0.191484	http://ftpmirror1.infania.net/mirror/porteus/
0.260650	http://ftp.vim.org/ftp/os/Linux/distr/porteus/
0.287085	http://mirrors.dotsrc.org/porteus/
0.308317	https://mirror.yandex.ru/mirrors/porteus/
0.365479	http://www6.frugalware.org/mirrors/linux/porteus/
1.106170	http://linux.rz.rub.de/porteus/
1.611825	http://ftp.riken.jp/Linux/porteus/
2.034334	http://ftp.cc.uoc.gr/pub/linux/porteus/

 Would you like to add http://ftp.nluug.nl/os/Linux/distr/porteus/ as your main Porteus server? [y/n]
root@porteus:~# 
and I not use my usual wonky network, now it's a different WLAN one.

I know there is a different thread that solved the issue (it was about how porteus determines if it is online) but I do not recall where that was.
And tips to that solution appreciated.
(One would think when I already upgraded some base modules then the fix would be incorporated, but seemingly no. Or maybe my system has the old fix but my current internet demand even more of fix)

Added in 2 minutes 31 seconds:
The above was via Port Settings Manager. When I run the script directly I get the same result:

Code: Select all

root@porteus:~# /opt/porteus-scripts/update-porteus 

 Starting checks ... 
[OK] Server: http://dl.porteus.org
[OK] Architecture: x86_64
[OK] User is root
[OK] Distro is Porteus
[OK] Base folder is writable
[ERROR] An internet connection is required.
root@porteus:~# echo $?
0
Added in 10 minutes 15 seconds:
I searched the forum via https://duckduckgo.com/?t=palemoon&q=is ... orteus.org and found this thread
Porteus Updater - ERROR An internet connection is required

For me
Blaze wrote:
03 May 2019, 10:25

Code: Select all

wget -q --spider --force-html --inet4-only http://dl.porteus.org || { echo "Fatal error. Could not contact server."; exit 1; }
Blaze's trick seems to work:

Code: Select all

root@porteus:~# wget -q --spider --force-html --inet4-only http://dl.porteus.org || { echo "Fatal error. Could not contact server."; exit 1; }
root@porteus:~# echo $?
0
root@porteus:~# 

(Though as test I suggest it being more verbose like so:)
wget -q --spider --force-html --inet4-only http://dl.porteus.org || { echo "Fatal error. Could not contact server."; exit 1; } && echo "All went well, server available."

Code: Select all

root@porteus:~# wget -q --spider --force-html --inet4-only http://dl.porteus.org || { echo "Fatal error. Could not contact server."; exit 1; } && echo "All went well, server available."
All went well, server available.
root@porteus:~# echo $?
0
root@porteus:~# 
The original code is_online_url works for me:

Code: Select all

root@porteus:~# su -
(So that I can exit the extra layer of bash that will have /usr/share/porteus/porteus-functions permanently loaded.)

Code: Select all

root@porteus:~# . /usr/share/porteus/porteus-functions
root@porteus:~# is_online_url http://porteus.org/porteus-mirrors.txt
root@porteus:~# echo $?
0
root@porteus:~# 
Cheers!
Yours Rava

Post Reply