WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Netsurf  (Read 11547 times)

Offline nick65go

  • Hero Member
  • *****
  • Posts: 838
Re: Netsurf
« Reply #15 on: May 05, 2021, 04:31:01 PM »
incited by netsurf small size (because statically linked), i found https://github.com/oasislinux/oasis
"All software in the base system is linked statically, including the display server (velox) and web browser (netsurf). Any POSIX system with git, lua, curl, a sha256 utility, standard compression utilities, and an x86_64-linux-musl cross compiler can be used to bootstrap oasis".
Oh, stop dreaming, back to tinycore...

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Netsurf
« Reply #16 on: May 06, 2021, 01:28:23 AM »
Hi, nick65go!

If netsurf-gtk is statically linked, then what the use is of netsurf.tcz.dep? ;)
And size of the binary file is very close to the size of the extension...
We live in the cruel world - netsurf-gtk is compressed self-extracting binary.

Sorry for destroying the sweet dreams....

Offline nick65go

  • Hero Member
  • *****
  • Posts: 838
Re: Netsurf
« Reply #17 on: May 06, 2021, 03:48:56 AM »
We live in the cruel world - netsurf-gtk is compressed self-extracting binary.
nice catch jazzbiker, you are rigth! from win10, I uncompressed netsurf.tcz with 7zip, then using notepad++ I saw in the file header the "UPX" string at offset 153.
BTW: still focused on FLTK as GUI all-over :) ; if not, then toybox + muslc + statically compiled for small appliances.
« Last Edit: May 06, 2021, 03:55:34 AM by nick65go »

Offline nick65go

  • Hero Member
  • *****
  • Posts: 838
Re: Netsurf
« Reply #18 on: May 06, 2021, 03:54:52 PM »
From TC12_x64, I run qemu 3.1.0 with kvm-amd kernel module. The virtual machine is "oasis", a qcow file from https://github.com/oasislinux/oasis
The kernel is 5.9.11 x64 (in hex-editor I saw string Alpine 3.9 in it), the server is velox (something Wayland based, but ask for DRM acceleration) of 1.9 MB, and netsurf 3.10 is 3.5 MB statically linked. (No musl library! in this system, is basic for now). All devices are virtual (vga, network card, file system etc).
The amazing thing is the speed of this variant of netsurf x64 is the same (0.6 - 0.8 seconds for bbc.co.uk), even in qemu, versus the real TC12-x64 5.10.3 kernel with netsurf-gtk 3.9.

The main point (to take home) is that a common linux user can have a web-browser (with java script), as small as 3.6 MB.
EDIT: Sorry! Javascript is not enabled; or I do not know how to enable it in this new X environment (I see not menu/buttons).
« Last Edit: May 06, 2021, 04:27:13 PM by nick65go »

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Netsurf
« Reply #19 on: May 06, 2021, 04:43:51 PM »
Hi, nick65go!

When I was building netsurf I tried netsurf-fbdev too. It has somewhat reduced interface - not tabs, fonts linked statically. Was not those netsurf, which You run in the VM, such a version? I expected, that fbdev version will run without X over native fbdev, but I didn't succeed, I was able to run it only under X.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 838
Re: Netsurf
« Reply #20 on: May 06, 2021, 06:15:36 PM »
understanding "lua" programming is over my pay grade ;)
but from https://github.com/oasislinux/oasis/blob/master/pkg/netsurf/gen.lua
it seams to have true type fonts, wayland (so is not frame-buffer), but without JavaScript, because the only string "javascript" is
Code: [Select]
exe('netsurf', [[
  content/(
    handlers/(
      javascript/(fetcher.c none/none.c)


Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Netsurf
« Reply #21 on: May 06, 2021, 07:10:19 PM »
Hi, nick65go!

It appears, that I saved netsurf for fb as tcz, and now write this post with its help. It isn't fully static, at least it needs curl. Font is dejavu only ttf. Screen size is fixed!!! Extension is 1.2M in size. How can I determine,  that js is on? Integration with the mouse is poor: I can use it for positioning cursor only. So strange enough, but small.




 

Offline nick65go

  • Hero Member
  • *****
  • Posts: 838
Re: Netsurf
« Reply #22 on: May 07, 2021, 06:25:44 AM »
Some clarification (these are notes to myself here):
Code: [Select]
https://en.wikipedia.org/wiki/NetSurf
but as of December 2012 there are some NetSurf preview-builds available which contain early-stage JavaScript support (later much improved).[14]
"NetSurf's JavaScript engine (Duktape)"
and
Code: [Select]
http://mirrors.dotsrc.org/tinycorelinux/4.x/x86/tcz/netsurf-fb.tcz.info
Title:        netsurf-fb.tcz
Size:        568K; Total size = 8.52 MB
Tags:        NetSurf fb framebuffer lightweight fast web browser
Current:    2012/03/09 First release. Version 2.8
and
Code: [Select]
http://mirrors.dotsrc.org/tinycorelinux/4.x/x86/tcz/netsurf-gtk.tcz.info
Title:        netsurf-gtk.tcz
Size:        1008K; Total size = 18.23 MB
Tags:        NetSurf Gtk2 lightweight fast web browser
Current:    2012/03/06 First release. Version 2.8
So, these mean that netsurf 2.8 (2012/03/09) did not have javascript (wikipedia shows it was after 2012/12/01)
And the netsurf-gtk 2.8 size + dependencies were 18+ MB already, in compressed tcz.
So uncompressed will double size and then staically liked maybe will shrink to half, and final result maybe still have around 18 MB, with GTK2 and X.org.
Then
Code: [Select]
https://en.wikipedia.org/wiki/NetSurf
In July 2019 NetSurf 3.9 was released, with support for CSS Media Queries (level 4) and improvements to JavaScript handling.
For PC, the RAM is important, because it can hardly be upgraded; but storage size matters less, because USB sticks are cheap and have big storage size.
Summary: maybe (not yet released in the internet) netsurf 3.10 (May 2020) with FLTK can reduce the total RAM size. The JavaScript engine (incomplet but maybe sufficient) is "Duktape", as wikipedia says it.
 
« Last Edit: May 07, 2021, 06:37:10 AM by nick65go »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Netsurf
« Reply #23 on: May 09, 2021, 10:34:19 AM »
TC has netsurf 3.9 with gtk2, and netsurf 3.10 with gtk3, but recently I found that netsurf could have other interfaces:
https://git.netsurf-browser.org/netsurf.git/log/?h=vince/fltk

I built netsurf-fltk, but it was unusable - perhaps I built it wrongly (it's a mess to build from git).

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: Netsurf
« Reply #24 on: May 09, 2021, 10:37:19 AM »
Hello,

Netsurf, is a Lovely browser   (somehow) .

Free of course.

........yes.

Thx

C

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 391
Re: Netsurf
« Reply #25 on: May 02, 2024, 08:51:11 AM »
Netsurf 3.11 was released  on 29 December 2023.

When I tested Netsurf gtk 2.9 on i586 cpu Tc14x86 I get segmentation fault.
Is it possible to compile framebuffer version? Code was buggy since TC5 times.
It looks like Amiga users are biggest fans of this browser. How the modern websites could work on Amiga?
I am dreaming about web browser that will render everythin on HDD not in RAM.
Is it possible to download yt video from genyt.net? Dillo 3.1-dev doesn't work with genyt.net anymore.





Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Netsurf
« Reply #26 on: May 02, 2024, 09:00:38 AM »
The netsurf extension in the tc-15.x x86 repo was updated to 3.11 a couple of months back, does that segfault on an i586?

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 391
Re: Netsurf
« Reply #27 on: May 05, 2024, 06:21:04 AM »
I don't tested t in i586 yet, but on i686 tc15x86 netsurf gtk2 3.11 works fine (but I don't see menu icons of the web browser). Maybe becouse I use Xfbdev.

On i686 tc15x86 netsurf gtk3 3.10 I get segmentation fail when I start to surf the internet (in the same way like I said in my previous post on i586. There are also missing dependency libssl.so.1.1 from openssl-1.1.1 in netsurf-gtk3.tcz.

BTW. genyt.net doesn't work with Netsurf 3.11 but yt front-end invidious works fine.
https://docs.invidious.io/instances/
« Last Edit: May 05, 2024, 06:25:06 AM by neonix »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Netsurf
« Reply #28 on: May 05, 2024, 08:14:53 AM »
.. (but I don't see menu icons of the web browser). Maybe becouse I use Xfbdev.

Is adwaita-icon-themes loaded?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Netsurf
« Reply #29 on: May 06, 2024, 03:51:57 AM »
netsurf-gtk3 updated in x86 repo