monolith-2.6.1 for Port4.0 i586

If you are looking for a specific 32-bit package and you can't find it in any of the 32-bit repos, please post a request for it here.
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

monolith-2.6.1 for Port4.0 i586

Post#1 by Rava » 13 Nov 2021, 03:59

https://github.com/Y2Z/monolith#readme
Unlike the conventional “Save page as”, monolith not only saves the target document, it embeds CSS, image, and JavaScript assets all at once, producing a single HTML5 document that is a joy to store and share.

If compared to saving websites with wget -mpk, this tool embeds all assets as data URLs and therefore lets browsers render the saved page exactly the way it was on the Internet, even when no network connection is available.
Image
donald wrote:
12 Nov 2021, 22:50
Maybe you can get this one to work:
https://github.com/Y2Z/monolith
for now I am not. :(

monolith claims when compiling its only dependency being libssl-dev

from monolith-2.6.1/README.md

Code: Select all

Dependency: `libssl-dev`

    $ git clone https://github.com/Y2Z/monolith.git
    $ cd monolith
    $ make install 

Code: Select all

root@porteus:/3/Porteus_modules/guest/4.0i586/monolith# git clone https://github.com/Y2Z/monolith.git
Cloning into 'monolith'...
remote: Enumerating objects: 2406, done.
remote: Counting objects: 100% (456/456), done.
remote: Compressing objects: 100% (306/306), done.
remote: Total 2406 (delta 279), reused 274 (delta 142), pack-reused 1950
Receiving objects: 100% (2406/2406), 3.93 MiB | 1.02 MiB/s, done.
Resolving deltas: 100% (1508/1508), done.
root@porteus:/3/Porteus_modules/guest/4.0i586/monolith# cd monolith
root@porteus:/3/Porteus_modules/guest/4.0i586/monolith/monolith# make 
make: cargo: Command not found
make: *** [Makefile:7: build] Error 127
arggg too busy right now to fix that.

My system being Port4.0 i586 with activated 05-devel-i586-Porteus4.0.xzm

tried https://packages.slackware.com/
searched for "cargo" in "Slackware 14.2"
Nothing found.
https://pkgs.org/download/cargo
only finds cargo-0.20.0-x86_64-1_slonly.txz

Other distros seem to only have x86_64 or aarch64 .
No cargo for i586 it seems.
:shock:

Added in 9 minutes 1 second:
donald…
donald wrote:
12 Nov 2021, 22:50
Maybe you can get this one to work:
seems me unable to get it to work.
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

monolith-2.6.1 for Port4.0 i586

Post#2 by beny » 13 Nov 2021, 12:46

hi Rava take a look at this link:https://ftp.pieskovisko.sk/linux/slackw ... e/d/cargo/
or you have to install rust for your arch.

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

monolith-2.6.1 for Port4.0 i586

Post#3 by donald » 13 Nov 2021, 14:49

Note: I'm on 3.2.2-32bit but that is also slackware 14.2.

get rust:
https://mirrors.slackware.com/slackware ... /packages/
make module > activate > + devel.xzm

download > extract monolith-2.6.1.zip
https://github.com/Y2Z/monolith/archive ... v2.6.1.zip

Code: Select all

guest@porteus:~/Downloads/monolith-2.6.1$ make install
  Installing monolith v2.6.1 (/home/guest/Downloads/monolith-2.6.1)
    Updating crates.io index
    ......................
    a lot of compiling
    ......................
Compiling monolith v2.6.1 (/home/guest/Downloads/monolith-2.6.1)
    Finished release [optimized] target(s) in 16m 45s
  Installing /home/guest/.cargo/bin/monolith
   Installed package `monolith v2.6.1 (/home/guest/Downloads/monolith-2.6.1)` (executable `monolith`)
warning: be sure to add `/home/guest/.cargo/bin` to your PATH to be able to run the installed binaries
guest@porteus:~/Downloads/monolith-2.6.1$ 
tested:

Code: Select all

guest@porteus:~$ PATH=$PATH:~/.cargo/bin
guest@porteus:~$ monolith https://www.dedoimedo.com/ -o /home/guest/dedo.html
https://www.dedoimedo.com/
 https://www.dedoimedo.com/css/new.css
  https://www.dedoimedo.com/images/home-banner.png
 https://www.dedoimedo.com/css/legacy.css
 https://www.dedoimedo.com/images/site_icon.ico?v=2
 https://www.dedoimedo.com/images/icons/devuan-icon.png
 https://www.dedoimedo.com/images/icons/kde-icon.png
 https://www.dedoimedo.com/images/icons/kde-icon.png (from cache)
 https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
 https://www.dedoimedo.com/images/icons/firefox-icon.png
 https://www.dedoimedo.com/images/icons/arma3-icon.jpg
 https://www.dedoimedo.com/images/icons/windows-11-icon.png
 https://www.dedoimedo.com/images/icons/software-testing-icon.jpg
 https://www.dedoimedo.com/images/icons/arma3-icon.jpg (from cache)
 https://www.dedoimedo.com/images/icons/best-icon.png
 https://www.dedoimedo.com/images/icons/kde-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (from cache)
 https://www.dedoimedo.com/images/icons/fedora-icon.png
 https://www.dedoimedo.com/images/icons/kde-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/tux-icon.png
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/grub2-icon.png
 https://www.dedoimedo.com/images/icons/kde-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/arma3-icon.jpg (from cache)
 https://www.dedoimedo.com/images/icons/almalinux-icon.png
 https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (from cache)
 https://www.dedoimedo.com/images/icons/kde-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/kde-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/libreoffice-icon.png
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/space-icon.jpg
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/asus-vivobook-icon.png
 https://www.dedoimedo.com/images/icons/winscp-icon.png
 https://www.dedoimedo.com/images/icons/beamng-icon.jpg
 https://www.dedoimedo.com/images/icons/firefox-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/gnome-icon.png
 https://www.dedoimedo.com/images/icons/julius-icon.jpg
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/almalinux-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/tux-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/rocky-linux-icon.png
 https://www.dedoimedo.com/images/icons/fedora-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/windows-11-icon.png (from cache)
 https://www.dedoimedo.com/images/icons/kde-icon.png (from cache)
 https://cc.cdn.civiccomputing.com/9/cookieControl-9.2.min.js
guest@porteus:~$ 
works
Image

.... now grab the pieces and build a porteus module if you like. :)

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

monolith-2.6.1 for Port4.0 i586

Post#4 by Rava » 13 Nov 2021, 21:16

donald wrote:
13 Nov 2021, 14:49
get rust:
https://mirrors.slackware.com/slackware ... /packages/
make module > activate > + devel.xzm
How should one know if you need cargo you get it via rust?

You are indeed full of knowledge. Image

currently working on your solution…
Cheers!
Yours Rava

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

monolith-2.6.1 for Port4.0 i586

Post#5 by Rava » 13 Nov 2021, 22:20

donald wrote:
13 Nov 2021, 14:49
Note: I'm on 3.2.2-32bit but that is also slackware 14.2.

get rust:
https://mirrors.slackware.com/slackware ... /packages/
make module > activate > + devel.xzm
done.
download > extract monolith-2.6.1.zip
https://github.com/Y2Z/monolith/archive ... v2.6.1.zip

Code: Select all

guest@porteus:~/Downloads/monolith-2.6.1$ make install
  Installing monolith v2.6.1 (/home/guest/Downloads/monolith-2.6.1)
    Updating crates.io index
    ......................
    a lot of compiling
not for me.

It stops during download. Starting anew and it freezes even earlier:

Code: Select all

root@porteus:/3/Porteus_modules/guest/4.0i586/monolith/monolith-2.6.1# make install
  Installing monolith v2.6.1 (/mnt/sda3/Porteus_modules/guest/4.0i586/monolith/monolith-2.6.1)
    Updating crates.io index
^Cmake: *** [Makefile:20: install] Interrupt                         ]  28.02%

root@porteus:/3/Porteus_modules/guest/4.0i586/monolith/monolith-2.6.1# make install
  Installing monolith v2.6.1 (/mnt/sda3/Porteus_modules/guest/4.0i586/monolith/monolith-2.6.1)
    Updating crates.io index
       Fetch [=================>                                     ]  15.34%
I hope it manages the download.

Added in 5 minutes 31 seconds:

Code: Select all

    Building [>                                                        ] 5/216
download finished compile is very slow.

Added in 54 minutes 36 seconds:

Code: Select all

    Building [===========================================>           ] 173/216: syn 

yawn… :(
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

monolith-2.6.1 for Port4.0 i586

Post#6 by donald » 14 Nov 2021, 01:55

--> 54 minutes <-- WTF .. are you using a "game-boy" for compiling?

I had all files (rust.xzm , devel and extracted monolith.zip) in ~/Downloads - read in RAM.
3.5 GB of Ram (32bit system) was more than enough to do so.
It took 16m 45s to compile (2nd run), the 1st run was even faster, on a PC from 2007.
AMD Athlon 64 X2 Cpu -- no anti spectre/meltdown/microcode update Bullsh. B)

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

monolith-2.6.1 for Port4.0 i586

Post#7 by Rava » 14 Nov 2021, 15:47

donald wrote:
14 Nov 2021, 01:55
--> 54 minutes <-- WTF .. are you using a "game-boy" for compiling?
No a Samsung Q40 monocore where the GPU uses RAM cause it has no own.

Code: Select all

Genuine Intel(R) CPU           U1400  @ 1.20GHz

guest@porteus:~$ fx;sx
14.11.2021 16:49:34 ____________________________________________________________
              total        used        free      shared  buff/cache   available
Mem:           1253         612         126         128         514         380
Swap:          2997         779        2217
14.11.2021 16:49:34 ____________________________________________________________
Filename				Type		Size	Used	Priority
/dev/sda2                               partition       949     779     100     
/mnt/sda5/linuxswap                     file            2047    0       -1      
guest@porteus:~$ type fx
fx is aliased to `echo $(date +%d.%m.%Y\ %H:%M:%S) ____________________________________________________________;/bin/free -m'
guest@porteus:~$ type sx
sx is a function
sx () 
{ 
    echo $(date +%d.%m.%Y\ %H:%M:%S) ____________________________________________________________;
    { 
        read firstLine;
        echo "$firstLine";
        while read f t s u p; do
            let "s2 = $s / 1024";
            let "u2 = $u / 1024";
            printf '%-40s%-16s%-8s%-8s%-8s\n' $f $t $s2 $u2 $p;
        done
    } < /proc/swaps
}
The end time:

Code: Select all

   Compiling monolith v2.6.1 (/mnt/sda3/Porteus_modules/guest/4.0i586/monolith/monolith-2.6.1)
    Finished release [optimized] target(s) in 133m 26s
  Installing /root/.cargo/bin/monolith
   Installed package `monolith v2.6.1 (/mnt/sda3/Porteus_modules/guest/4.0i586/monolith/monolith-2.6.1)` (executable `monolith`)
warning: be sure to add `/root/.cargo/bin` to your PATH to be able to run the installed binaries
no thanks I plan running it as guest so /usr/bin/monolith it is.

Made monolith-2.6.1_i586.xzm 2191360 bytes (2.09 MB), md5sum e8f826effee1d463c24b16b1bb48fc0c

activated and runs as guest:

Code: Select all

guest@porteus:~$ monolith --help
monolith 2.6.1

Sunshine <sunshine@uberspace.net>
Mahdi Robatipoor <mahdi.robatipoor@gmail.com>
Emmanuel Delaborde <th3rac25@gmail.com>
Emi Simpson <emi@alchemi.dev>
rhysd <lin90162@yahoo.co.jp>
 _____     ______________    __________      ___________________    ___
|     \   /              \  |          |    |                   |  |   |
|      \_/       __       \_|    __    |    |    ___     ___    |__|   |
|               |  |            |  |   |    |   |   |   |   |          |
|   |\     /|   |__|    _       |__|   |____|   |   |   |   |    __    |
|   | \___/ |          | \                      |   |   |   |   |  |   |
|___|       |__________|  \_____________________|   |___|   |___|  |___|

CLI tool for saving web pages as a single HTML file

USAGE:
    monolith [FLAGS] [OPTIONS] <target>

FLAGS:
    -h, --help               Prints help information
    -e, --ignore-errors      Ignore network errors
    -k, --insecure           Allows invalid X.509 (TLS) certificates
    -I, --isolate            Cuts off document from the Internet
    -a, --no-audio           Removes audio sources
    -c, --no-css             Removes CSS
    -F, --no-fonts           Removes fonts
    -f, --no-frames          Removes frames and iframes
    -i, --no-images          Removes images
    -j, --no-js              Removes JavaScript
    -M, --no-metadata        Excludes timestamp and source information
    -v, --no-video           Removes video sources
    -s, --silent             Suppresses verbosity
    -n, --unwrap-noscript    Replaces NOSCRIPT elements with their contents
    -V, --version            Prints version information

OPTIONS:
    -b, --base-url <http://localhost/>    Sets custom base URL
    -C, --charset <UTF-8>                 Enforces custom encoding
    -o, --output <document.html>          Writes output to <file>, use - for STDOUT
    -t, --timeout <60>                    Adjusts network request timeout
    -u, --user-agent <Firefox>            Sets custom User-Agent string

ARGS:
    <target>    URL or file path, use - for STDIN
Cheers!
Yours Rava

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

monolith-2.6.1 for Port4.0 i586

Post#8 by Rava » 20 Nov 2021, 23:42

Just a warning:
Saving a webpage with all contents makes it easily a huge file because of the inline way of storing data, e.g. fonts or images. That is a huge downside of the way monolith handles binary data.

Unlike the way chrome does it. Chrome just stores binaries as binary - so the size of an image in the resulting saved web page is the very same size than the original binary web image.

I saved some pages and saving everything made the .html file 25 MB in size, and that takes quite a while for the browser to load even on a multi-core machine with 4 GB or RAM…
The same page saved without images, without fonts and without JavaScript was only 2.5 MB in size.


So, consider leaving away e.g. JavaScript, Fonts and Images.

Then again, if you only keep the text itself you could simply mark the text and copy it into mousepad or whatever small text editor your DE offers and save it as .txt including the source URL and then you have the same basic info. Only in a much smaller filesize.
Cheers!
Yours Rava

Post Reply