Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 15 Sep 2014, 20:56
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO 2012
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 22 of 27 [398 Posts]   Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23, 24, 25, 26, 27 Next
Author Message
starhawk

Joined: 22 Nov 2010
Posts: 2864
Location: Everybody knows this is nowhere...

PostPosted: Sun 07 Apr 2013, 23:39    Post subject:  

technosaurus wrote:
btw I don't think there was a gtk1 opera, only qt3

From a few pages back... Wink
technosaurus wrote:
Re: Opera
If anyone wants a nice light-ish browser/ftp/email/torrent client the Opera that I had post[url]ed was 9.27, but other static qt versions should be fine too, here are links to the latest bugfix releases of some major versions (ranging from 2 to 8.5Mb as versions increase - resource usage and usability are roughly proportional):
http://arc.opera.com/pub/opera/linux/505/opera-5.05_tp1-static_qt-libnpp-0.1.1.x86.tar.gz[/url]
http://arc.opera.com/pub/opera/linux/612/final/en/i386/static/opera-6.12-20030305.1-static-qt.i386.tar.bz2
http://arc.opera.com/pub/opera/linux/754u2/final/en/i386/static/opera-7.54-20050131.1-static-qt.i386-en.tar.bz2
http://arc.opera.com/pub/opera/linux/854/final/en/i386/static/opera-8.54-20060330.1-static-qt.i386-en.tar.bz2
http://arc.opera.com/pub/opera/linux/927/final/en/i386/static/opera-9.27-20080331.1-static-qt.i386-en.tar.bz2
http://arc.opera.com/pub/opera/linux/964/final/en/i386/static/opera-9.64.gcc4-static-qt3.i386.tar.bz2


Last link tested in pUPnGO2012, IIRC it needs GTK+ but whatever. It also needs libpng and libjpg and probably other junk...

_________________
Loving X-Slacko 2.1!
Custom Build: HP MOCA-AR + Core2Duo T7200 + 4gb RAM + 256gb SSD
...just needs a pretty case Wink
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Wed 10 Apr 2013, 02:22    Post subject:  

I just built the latest netsurf-git with musl. Though the javascript support is still very minimal, the framebuffer version looks pretty good on the xcb backend

notes on the netsurf framebuffer version:
my build works with xcb in X or linux framebuffer and chooses the correct mode according to whether X is running (I didn't build the sdl, vnc or wayland backends and didn't actually test the linux framebuffer side)
rendering is extremely fast and light (<10mb ram)
I only builtin png, gif and jpeg support - not webp, jng, bmp or mng
It can support video via gstreamer, but it doesn't lend itself to a static build.
window size cannot be changed - I patched it to default to maximized rather than their default 800x600 (so it will work on 640x480 screens too)
I built it with javascript support but it doesn't seem to do any javascript (maybe my errror - will need to test further)
it has https and css support (unlike dillo)
the framebuffer doesn't support svg yet (though there is an example for rendering svg in the framebuffer sources, so it may be patchable)

The binary size is 2.6Mb with (apparently non-functional:() javascript support builtin or ~2Mb without it.... but most of the size is libcurl and libssl(for https) so it should be really small on a shared library build

any preferences on which build to test???
I am thinking the non-js version would be preferable for now... at least until I figure out how to get the js working.
nsfb.png
 Description   this is the default page
 Filesize   38.43 KB
 Viewed   673 Time(s)

nsfb.png


_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Wed 10 Apr 2013, 08:22; edited 1 time in total
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2247

PostPosted: Wed 10 Apr 2013, 03:48    Post subject:  

Actually, opera *did* use gtk1 -but that was a very long time ago opera 4 or 5 IIRC. It was still very buggy and low-featured in those days. Still, it would be nice if they open-sourced it.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 10 Apr 2013, 09:58    Post subject:  

Quote:
any preferences on which build to test???
I am thinking the non-js version would be preferable for now... at least until I figure out how to get the js working.

Sounds right - its looking good! Is it impossible to do a static build or was that just the gstreamer part?
Might also be a new back-port target (gtk2->gtk1...)?
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Wed 10 Apr 2013, 10:06    Post subject:  

it looks to me (I ran ldd and strings on the binaries all the way back to 4.0) like opera for linux possibly began as motif and shifted to qt2 then qt3 and qt4 and now use an in house toolkit ... I also figured out that for versions <9.0, motif is required for plugins to work.

On a side note I now have a light svg viewer based on the netsurf framebuffer and libtinysvg (my build uses the xcb backend, but could be modified to use the linux framebuffer as well)

The static netsurf framebuffer tarball is too big to post

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Thu 11 Apr 2013, 18:04; edited 1 time in total
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 628
Location: Staffordshire

PostPosted: Wed 10 Apr 2013, 11:52    Post subject:  

I did a framebuffer build of Netsurf some time back. If you actually ran it in the framebuffer, it was impossible to exit, and also I think that links would not work, as in you had to type in URLs in the address bar.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Thu 11 Apr 2013, 11:18    Post subject:  

technosaurus: I cant run your binary - probably libc version problem. pUPnGO2012 support the framebuffer.
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Thu 11 Apr 2013, 17:25    Post subject:  

goingnuts wrote:
technosaurus: I cant run your binary - probably libc version problem. pUPnGO2012 support the framebuffer.

Wary's glibc somehow got linked in. Here is a static musl only rebuild of svgtiny, uploading pets of nsfb to my uis.edu page now too ... one with builtin (ugly but light/fast) fonts and the other with freetype support. The uncompressed binary is pushing 3Mb, but should be able to remove some unused font support and curl protocols (smtp, etc...) to reduce it closer to 2. It would be a lot smaller, but I added support for freetype fonts and javascript as well as bmp/ico, webp and svg images - the freetype version looks better than seamonkey

Notes: There is the option to build in support for pdf export and printing via libharu, but I don't see a way to actually do it in the framebuffer so I left it out for now. It also needs some form of download dialog - probably using the nsfbtk with curl since it is already included.

http://uisacad5.uis.edu/~bconroy/netsurf-framebuffer-freetype-static-3.0-a1-i486.pet
http://uisacad5.uis.edu/~bconroy/netsurf-framebuffer-static-3.0-a1-i486.pet

TODO - fix the x framebuffer backend (based on argv[0]?) to output a title for swallowing in jwm - could be useful for tray applets.
svgtiny.tar.gz
Description 
gz

 Download 
Filename  svgtiny.tar.gz 
Filesize  138.88 KB 
Downloaded  173 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1615

PostPosted: Fri 12 Apr 2013, 00:57    Post subject:  

technosaurus wrote:
uploading pets of nsfb to my uis.edu page now too ... one with builtin (ugly but light/fast) fonts and the other with freetype support.


I tried your "heavy" freetype-version in my low-spec XOs running Precise-5.5 and the speed is jaw-dropping Shocked , while it handles A LOT of difficult sites, just fine Exclamation

I was wondering if there is any way to save user changes, ie, default font size, bookmarks, etc.
It supposes to save user data in ~/.netsurf but this folder is not generated and if you make it remains empty.
`about:config' also does not allow you to change anything.
Is it something that I miss/know how to do?

Thx

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Fri 12 Apr 2013, 03:31    Post subject:  

mavrothal wrote:
Is it something that I miss/know how to do?
If so, I missed it too even after looking through ~50% of the source. What would you like to see changed? I already rebuilt it to change the window size where you can see the on screen keyboard button... I'd like to see someone make an arm build for android tablets (the java/dalvik ones are pretty slow on low end tablets) Right now I am looking through the source to see where urls with unhandled mime types go so I can set up a handler to pass the url to (something like a download manager / xdg-open) ... right now it is basically a kiosk mode browser (the gtk version is much more robust)
nsfb-hist-nav.png
 Description   ever want to find a web page you went to from google,
but lost because you later went to a different page....
 Filesize   42.31 KB
 Viewed   433 Time(s)

nsfb-hist-nav.png

nsfb-oskb.png
 Description   
 Filesize   54.75 KB
 Viewed   434 Time(s)

nsfb-oskb.png


_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1615

PostPosted: Fri 12 Apr 2013, 04:52    Post subject:  

technosaurus wrote:
mavrothal wrote:
Is it something that I miss/know how to do?
If so, I missed it too even after looking through ~50% of the source. What would you like to see changed?


Able to bookmark pages is major I believe, though this means that should not be in kiosk mode.
Also changing font size is important to compensate for different screen dpi densities (or eye sight Smile ).

Another thing I noticed is the you can not have the rubber-band function in mouse either on the page body or the address field. Would be handy to have

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2537
Location: New Zealand

PostPosted: Fri 12 Apr 2013, 06:03    Post subject:  

technosaurus wrote:
http://uisacad5.uis.edu/~bconroy/netsurf-framebuffer-freetype-static-3.0-a1-i486.pet.

Tried this one on Slacko53 and it seems to be pretty functional. I had a couple of minor issues - lots of image tearing when scrolling (fixed by clicking refresh) and the keyboard seemed to confuse some of the keystrokes. Couldn't sign in to my email till I figured out I had to use the " key when I wanted the @ sign. Good potential as a fast simple browser.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Fri 12 Apr 2013, 10:19    Post subject:  

Tested the freetype version in pupngo2012: Needs xserver with shm so installed the "pupngo_xorg_pack_412_static.pet". It works!
I thought the Xvesa was with shm support - will check up on that.
Could not run the nsfb from cli though.
Looking very promising Very Happy Exclamation
Btw works in P412 as well...
Back to top
View user's profile Send private message Visit poster's website 
Keef


Joined: 20 Dec 2007
Posts: 628
Location: Staffordshire

PostPosted: Fri 12 Apr 2013, 15:49    Post subject:  

If you want a different window size, or start page, you can launch it with:
Code:
nsfb -w 800 -h 600  murga-linux.com/puppy

You aren't able to save bookmarks as the framebuffer frontend is a bit crippled and basic. If you want that sort of thing, you will need the gtk stuff I believe.
I haven't had much luck with Techno's builds yet (tried both), keep getting segmentation faults (on Pupngo 2012, 412, and ThinSlacko).
For those who have had success, does the cursor show? It was invisible when I did it about a year ago (not static though, dont know how...)
And if anyone tries it on the framebuffer, can you quit without using the powerbutton?
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Fri 12 Apr 2013, 16:40    Post subject:  

did anyone else notice you can also drag the screen like you would on a tablet (also pg up/down forces a redraw that fixes tearing) The history navigation window would make a good template for bookmarking, but the fbtk needs to add a popup window (for right click menu to include bookmark/download/view source/copy/paste etc..., javascript alerts, and others - it may be already be possible using some css tricks and existing fbtk widgets.

the paths in the pet are required, don't move them from /usr/local/share/netsurf or you will get segfaults... and truetype fonts must be in /usr/share/fonts/default/TTF as:

NETSURF_FB_FONTPATH := /usr/share/fonts/default/TTF
NETSURF_FB_FONT_SANS_SERIF := DejaVuSans.ttf
NETSURF_FB_FONT_SANS_SERIF_BOLD := DejaVuSans-Bold.ttf
NETSURF_FB_FONT_SANS_SERIF_ITALIC := DejaVuSans-Oblique.ttf
NETSURF_FB_FONT_SANS_SERIF_ITALIC_BOLD := DejaVuSans-BoldOblique.ttf
NETSURF_FB_FONT_SERIF := DejaVuSerif.ttf
NETSURF_FB_FONT_SERIF_BOLD := DejaVuSerif-Bold.ttf
NETSURF_FB_FONT_MONOSPACE := DejaVuSansMono.ttf
NETSURF_FB_FONT_MONOSPACE_BOLD := DejaVuSansMono-Bold.ttf
NETSURF_FB_FONT_CURSIVE := Comic_Sans_MS.ttf
NETSURF_FB_FONT_FANTASY := Impact.ttf

to change default settings try the css files in /usr/local/share/netsurf (one of them controls ad blocking too)

here is the code I modified in gui.c (process_cmdline) for x and linux backend to go full screen ... (it was defaulting to sdl and 800x600x32) if anyone cared to comment - I was just shotgunning it and probably need to close the (temporary) xcb connection

Code:
   if (getenv("DISPLAY")){
#include <xcb/xcb.h>
      fename = "x";
      xcb_connection_t *c;
      int32_t screen_number;
      xcb_screen_t     *screen;
      c = xcb_connect (NULL, &screen_number );
      screen = xcb_setup_roots_iterator(xcb_get_setup (c)).data;
      if (screen){
         fewidth = screen->width_in_pixels;
         feheight = screen->height_in_pixels - 48 ; //handle tray
         febpp = screen->root_depth;
      }
   }else{
#include <sys/ioctl.h>
#include <linux/fb.h>
      fename = "linux";
      struct fb_var_screeninfo variable_info;
      //ioctl (open ("/dev/fb0", O_RDWR), FBIOGET_VSCREENINFO, &variable_info);
      ioctl(STDOUT_FILENO, FBIOGET_VSCREENINFO, &variable_info);
      fewidth = variable_info.xres;
      feheight = variable_info.yres;
      febpp = variable_info.bits_per_pixel;
   }


   if ((nsoption_charp(homepage_url) != NULL) &&
       (nsoption_charp(homepage_url)[0] != '\0')) {
      feurl = nsoption_charp(homepage_url);
   } else {
      feurl = NETSURF_HOMEPAGE;
   }
any preferences for homepage_url / NETSURF_HOMEPAGE?

Edit: framebuffer/fbtk/event.c should have this keymap instead:

static int sh_keymap[] = {
/* 0 1 2 3 4 5 6 7 8 9 */
-1, -1, -1, -1, -1, -1, -1, -1, 8, 9, /* 0 - 9 */
-1, -1, -1, 13, -1, -1, -1, -1, -1, -1, /* 10 - 19 */
-1, -1, -1, -1, -1, -1, -1, 27, -1, -1, /* 20 - 29 */
-1, -1, ' ', '!', '"', '~', '$', -1, '&', '"', /* 30 - 39 */
'(', ')', '*', '+', '<', '_', '>', '?', ')', '!', /* 40 - 49 */
'@', '#', '$', '%', '^', '&', '*', '(', ';', ':', /* 50 - 59 */
'<', '+', '>', '?', '@', -1, -1, -1, -1, -1, /* 60 - 69 */
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 70 - 79 */
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 80 - 89 */
-1, '{', '|', '}', '~', '_', '~', 'A', 'B', 'C', /* 90 - 99 */
'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', /* 100 - 109 */
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', /* 110 - 119 */
'X', 'Y', 'Z', -1, -1, -1, -1, -1, -1, -1, /* 120 - 129 */
};

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 22 of 27 [398 Posts]   Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23, 24, 25, 26, 27 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1197s ][ Queries: 13 (0.0167s) ][ GZIP on ]