WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Netsurf 3.10 browser for x86_64  (Read 1042 times)

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 905
Netsurf 3.10 browser for x86_64
« on: October 28, 2021, 11:36:06 PM »
I'd like to request an upgrade from the existing Netsurf 3.9 to 3.10 to fix a crash issue known to the Netsurf devs.

Architecture:  X86_64.  On TinyCorePure64 12.0

Code: [Select]
tc@box:~$ uname -a
Linux box 5.10.3-tinycore64 #2021 SMP Mon Dec 28 16:17:51 UTC 2020 x86_64 GNU/Linux

The code for Netsurf can be found here:
http://www.netsurf-browser.org/downloads/gtk/

The issue of Netsurf 3.9 crashing after a file download has been completed has been acknowledged and fixed by the team in v 3.10.  Details if interested can be seen in the MantisBT bugtracker issue 2676

https://bugs.netsurf-browser.org/mantis/print_bug_page.php?bug_id=2676

A workaround of one simply doing their own wget of a file url is always possible, and is the one I am using with 3.9 so it is not a total showstopper.

Thank you for your consideration..
« Last Edit: October 28, 2021, 11:44:13 PM by PDP-8 »
That's a UNIX book! - cool  -- Garth

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13794
Re: Netsurf 3.10 browser for x86_64
« Reply #1 on: October 29, 2021, 12:11:42 AM »
You might want to pm neonix?

Offline patrikg

  • Sr. Member
  • ****
  • Posts: 408
Re: Netsurf 3.10 browser for x86_64
« Reply #2 on: October 29, 2021, 01:22:43 AM »
Or you can try to compile the extension your self.

http://tinycorelinux.net/12.x/x86/tcz/src/netsurf-gtk3/

Offline nick65go

  • Hero Member
  • *****
  • Posts: 595
Re: Netsurf 3.10 browser for x86_64
« Reply #3 on: October 29, 2021, 02:32:19 AM »
or you can run it in a chroot (if linked against other libs / musl) or grab it from another distro (debian, archlinux).

PS: from yesterday 28/10/2021, the website www.tinycorelinux.net is not working for me (in Vienna/Austria).
I tried from both TC12_64 and win10_64, for each OS with both Firefox 93.0 ((64-bit) and Google Version 95.0.4638.54 (Official Build) (64-bit).

http://tinycorelinux.net/12.x/x86/tcz/src/netsurf-gtk3/
Gateway Timeout
Server error - server 89.22.99.37 is unreachable at this moment.
Please retry the request or contact your administrator.
EDIT: on 29/10/2021 at 11:44 is back online again. But it runs very slow in chrome and not at all in firefox. Thanks.
« Last Edit: October 29, 2021, 02:47:39 AM by nick65go »

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 905
Re: Netsurf 3.10 browser for x86_64
« Reply #4 on: October 29, 2021, 01:22:58 PM »
Great ideas guys.  I've reached out to neonix to see if he's available for an update.

In the meantime, I'll look at the source, but honestly, I'd rather leave that up to an expert and how certain things options might be better for TC.  But I'll give it a go, so thanks for the tips.

I too also noticed that from time to time the major TC facing page isn't reachable, yet the forum pages are.  Seems to have cleared, but if it's really bad, I'll hit up ibiblio.
That's a UNIX book! - cool  -- Garth

Offline nick65go

  • Hero Member
  • *****
  • Posts: 595
Re: Netsurf 3.10 browser for x86_64
« Reply #5 on: October 29, 2021, 04:40:42 PM »
FYI: I garbed a small (2.7 MB) and free mini-root from Alpine-Linux. It is basically just busy-box and empty Linux standard tree.
https://dl-cdn.alpinelinux.org/alpine/v3.14/releases/x86_64/alpine-minirootfs-3.14.2-x86_64.tar.gz

in TC12_64 extracted it (in few seconds) to /home/tc/demo. Then chroot inside it.
Code: [Select]
sudo chroot /home/tc/demo /bin/shNow being in the pseudo root, I just add/download netsurf
Code: [Select]
apk add netsurfand so APK (the equivalent of "tce-load -iw netsurf.tcz") "installs" netsurf and all its dependencies. (in few seconds).And that's all guys. I navigated here.

The goal of this exercise was to prove (to myself) that netsurf + its all (15) dependencies is 131.8 MB, not so small.
For an appliance just add a boot-loader and a kernel. This means today, we need at leas 150 MB RAM just to run a web-browser with just limited java-script (it is named ducktape in netsurf).

If you run firefox, then delete 6 MB (for netsurf) and add 191 MB (firefox). Because firefox has 31 dependencies; (near) the same as for netsurf, if counted recurrence dependence (gtk3+) which are common as for netsurf.
« Last Edit: October 29, 2021, 04:52:51 PM by nick65go »

Offline nick65go

  • Hero Member
  • *****
  • Posts: 595
Re: Netsurf 3.10 browser for x86_64
« Reply #6 on: October 30, 2021, 02:08:47 AM »
FYI: Regarding netsurf size versus its "improvement" in time.
in https://mirrors.dotsrc.org/tinycorelinux/4.x/x86/tcz/ we have version 2.8, like netsurf-fb.tcz (568 KB) or netsurf-gtk.tcz (1008 KB), versus
https://mirrors.dotsrc.org/tinycorelinux/12.x/x86/tcz/ we have version 3.9 kike netsurf-gtk3.tcz (2,1 MB)

For god sake, look how simple (few menu/strings) in its GUI. Why not use FLWM or GTK1?
This is the what bloated GTK3/GTK4 will bring to us, spreading like cancer, same as pulsaudio, or same as systemd.
So bigger software needs better hardware (aka more money out of pocket) for developer comfort (easy/rapid to develop/sell). yep, brain is more expensive today, use it wisely to not damage it too soon.
« Last Edit: October 30, 2021, 02:14:40 AM by nick65go »

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 905
Re: Netsurf 3.10 browser for x86_64
« Reply #7 on: October 30, 2021, 04:21:06 AM »
I believe that v 3.10 defaults to GTK-3 in the build, but one still has the option to use GTK-2 (or fb) if they prefer.  I prefer GTK2 visually, but I'm good with either for this tool.

In regards to resources vs size, I only look at ram usage.  Ie, I can download over 4GB of Knoppix, yet in the task manager, see only 200m or so being actually used by ram.

Kind of like in TC itself.  Sudo cache-clear ; free -m is my friend.

Then again, part of TC is to be able to manage and customize ram usage by utilizing different strategies for on-demand, on-boot and so forth to control resources depending on our needs at the time.  Perhaps make many different custom boot usb sticks each tailored to a specific need...  But I'm preaching to the choir right?

But thanks again for the tip.  I'll keep that in mind.




That's a UNIX book! - cool  -- Garth

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10145
Re: Netsurf 3.10 browser for x86_64
« Reply #8 on: October 30, 2021, 05:38:20 AM »
PDP-8
If you look at:
http://tinycorelinux.net/12.x/x86/tcz/src/netsurf-gtk3/netsurf.tcz.build-dep
you will see the instructions are for version 3.10.

I believe that v 3.10 defaults to GTK-3 in the build, ...
The instructions show how to build for framebuffer, GTK2, or GTK3.

See the lines that begin with:
Code: [Select]
CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti"
You only run the one for the target of interest.

Attached is a file that shows what the line should look like for a 64 bit compile for framebuffer.
For a GTK2 version, install  gtk2-dev.tcz  and change  TARGET=  to  gtk2
For a GTK3 version, install  gtk3-dev.tcz  and change  TARGET=  to  gtk3