pUPnGO 2012

A home for all kinds of Puppy related projects
Message
Author
Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

#331 Post by Ibidem »

http://comments.gmane.org/gmane.comp.we ... devel/9194
That's the state netsurf js was originally in, but...though they might have improved it, it sounds like improvements ran into "Can't do that yet".

But anyhow: a good page would be something related to puppy, but with a way to search...or Google.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#332 Post by technosaurus »

I fixed the keys and changed the homepage to the puppy standard. Is anyone interested in the vnc or wayland backend or have a reason to want sdl (sdl should be covered by wayland, linux and x) before I rebase my build environment (may do a gtk2 build in between)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#333 Post by goingnuts »

When running from CLI the error I get is:
ioctl(1,FBIOGET_VSCREENINFO,0xbff64890) = -1 EINVAL (Invalid argument)
exit_group(1)
Any chance to get CLI going as well?
Tested in pUPnGO with Xvesa with shm - runs but without any content. Not sure but maybe xserver needs some fontserver capabilities as well?
When switch to Xorg it runs ok...

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#334 Post by technosaurus »

goingnuts wrote:When running from CLI the error I get is:
ioctl(1,FBIOGET_VSCREENINFO,0xbff64890) = -1 EINVAL (Invalid argument)
exit_group(1)
Any chance to get CLI going as well?
Tested in pUPnGO with Xvesa with shm - runs but without any content. Not sure but maybe xserver needs some fontserver capabilities as well?
When switch to Xorg it runs ok...
:oops:
I added this code, note the //comment ... I was just guessing from some other code
It can probably just be removed and replaced with the standard default 800x600x32 (which can be overridden)

Code: Select all

#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; 
   } 
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#335 Post by technosaurus »

I redid the xcb/framebuffer logic and rebuilt
http://uisacad5.uis.edu/~bconroy/nsfb-git-i486.pet
Note: this is a temporary location - please mirror.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#336 Post by Keef »

Just tried latest version on ThinSlacko.
Under X a window opens but it is blank.
Tried using the framebuffer (1024x768, vga=791). Started up and filled the screen, but then cursor is seen flashing. Netsurf is not running, and need to press control-c to get prompt back. Its looking very good though.
Been playing again with a nfsb I did last year. Found I can exit by switching TTYs (alt F1 or other, and back to alt-F2 again) - this shows the original console it was launched from so can use ctrl-c. Pressing alt-F4 gets back to NetSurf if still running.
Can be a little erratic though, sometimes have to try alt-F12 first. No idea why. I'd given up on it before as having to reboot was a little tiresome...
[update]
No joy on Akita, but works perfectly under X on Wary 5.5. Same problem as above on the framebuffer though. Shame, was dying to try that nice quit button too.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#337 Post by technosaurus »

try manually setting the width height and bpp with -w <width> -h <height> and -b <bpp> ... you can also make it skip the X checks by using -f linux

for x to work, you have to have the TTF fonts in

# freetype compiled in font serch path
NETSURF_FB_FONTPATH := /usr/share/fonts/default/TTF:/usr/share/fonts/truetype/ttf-dejavu:/usr/share/fonts/truetype/msttcorefonts

and

# Default freetype font files
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


For ~5min I had a pet uploaded that was built for /usr/share/netsurf, but had the files in /usr/local/.... - it is fixed now

these may be useful...

# Default binary install path
NETSURF_FRAMEBUFFER_BIN := $(PREFIX)/bin/

# Default resource install path
NETSURF_FRAMEBUFFER_RESOURCES := $(PREFIX)/share/netsurf/

# Default framebuffer search path
NETSURF_FB_RESPATH := $${HOME}/.netsurf/:$${NETSURFRES}:$(NETSURF_FRAMEBUFFER_RESOURCES):./framebuffer/res

It would be interesting to use this as a toolkit for making web apps, but I would like to fix the curl bindings to use curl directly vs. accessing openssl, so we could use axtls or polarssl for https
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#338 Post by Keef »

Aaaah. . looks like I got the one with /usr/local/share/netsurf/, but it is working ok on Wary anyway (under X).
Attachments
nsfb.jpg
(55.59 KiB) Downloaded 707 times

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#339 Post by technosaurus »

ahh, yes Wary (and other woof-built pups?) has /usr/share/doc/home.htm ... otherwise you would get a blank page ... perhaps I should just modify the default about:welcome page instead. I am trying to figure out how to get drop-down menus to work in netsurf but they only have partial css3 support - if anyone finds a page where dropdown menus work, please let me know and I will update the web desktop for integrated use with pupngo.

p.s. I have been working on a restful web applications backend that is built around busybox tools - right now I only have a video rental store using sqlite3 as a database (though you could use flat files), but the code is pretty easy to follow if anyone is interested in things like being able to run stuff on pupngo via their droid phone or using netsurf as an application toolkit. I have some extra code in bashbox for on-the-fly generation of html too, but I got side tracked with trying to implement on-the-fly content based on the user agent string (such as svg content for real browsers and vrml for old IE)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#340 Post by goingnuts »

Well cant get your last version to run in pupngo...it runs but with the blank page without navigation (fonts installed so not that...). Runs OK in P412 though...
I was wondering if a lighter font could be used - the DejaVuSans take 1816K of space?

I cant compile it for framebuffer myself so cant check below code to set application/windowname (and its for X-app and not framebuffer) - but for older jwm it would be nice to have the name set as hover mouse over taskbar makes jwm crash:

Code: Select all

#define APPNAME    "nsfb"
// Set classhint
  XClassHint classHint;
  classHint.res_name  = APPNAME;
  classHint.res_class = APPNAME;
  XSetClassHint(display, appWin, &classHint);

  // Set windowname
  XStoreName(display, appWin, APPNAME);
  XSetIconName(display, appWin, APPNAME);
Also looked again at links-2.7 for comparison: It might have more stuff already (almost same bin size static linked) but the graphics are more "coarse" than netsurf...might be worth looking into the links code? Some of the "odd" look is missing icons in toolbar (and a permanent visible toolbar) but simple javascript is handled...well - just a thought...
Attachments
snap0000.png
(178.79 KiB) Downloaded 657 times

PANZERKOPF
Posts: 282
Joined: Wed 16 Dec 2009, 21:38
Location: Earth

#341 Post by PANZERKOPF »

goingnuts wrote: Also looked again at links-2.7 for comparison: It might have more stuff already (almost same bin size static linked) but the graphics are more "coarse" than netsurf...
Links is great (IMHO) :)
Note Links uses internal non-TTF fonts (each font is PNG image) whereas Netsurf uses TTF fonts.
goingnuts wrote: might be worth looking into the links code? Some of the "odd" look is missing icons in toolbar (and a permanent visible toolbar) but simple javascript is handled...well - just a thought...
May be worth looking into another code named as "Hacked Links Project". Seems this project is dead, but something can be borrowed and implemented into Links 2.7.
That Hacked Links partially supports Freetype, Javascript and tabbed browsing.
http://xray.sai.msu.ru/~karpov/links-hacked/
SUUM CUIQUE.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#342 Post by technosaurus »

does (e)links support css, animated bmp/ico, gif, webp and svg though?
(size is -400kb smaller with the builtin fonts, but if you wanted, you could rename some other TTF font to the ones in the list)
- here is a nice small public domain font with ttf, otf and sfb variants
http://tulrich.com/fonts/tuffy-20120614.tar.gz
(from the guy who wrote gameswf - the backbone of gnash)
goingnuts wrote:

Code: Select all

#define APPNAME    "nsfb"
// Set classhint
  XClassHint classHint;
  classHint.res_name  = APPNAME;
  classHint.res_class = APPNAME;
  XSetClassHint(display, appWin, &classHint);

  // Set windowname
  XStoreName(display, appWin, APPNAME);
  XSetIconName(display, appWin, APPNAME);
I tried something similar already (xcb equivalent - the framebuffer doesn't require libX11 at all) ... I had gotten the name to appear in the title and pager, but it wasn't displayed in xwininfo or recognized by jwm's group settings (neither class or name) ... I was considering using a swallowed web page as a tray applet ... why not? its light and handles lots of image types
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#343 Post by goingnuts »

PANZERKOPF: The hacked version do have some very good improvements (tabs, right click menu and so). I will try to view how hard it is to port to 2.7. Thanks.
technosaurus: Netsurf seems more "equipped" - just wanted to compare. It would be nice though to have a xlib-version or a gtk1port...

I was looking for a replacement for gwget (ugly and not-intuitive...) and found aria - mentioned here and here. Did have some problems compiling it but found this recipe which more or less fixed the build. Its quite big when done static (approx 3Mb) but works very well. DOWNLOAD aria-1.0.0.pet HERE

PANZERKOPF
Posts: 282
Joined: Wed 16 Dec 2009, 21:38
Location: Earth

#344 Post by PANZERKOPF »

goingnuts wrote: I was looking for a replacement for gwget (ugly and not-intuitive...)
Pavuk Web grabber. It has many functions, can be compiled with GTK1 or GTK2, can run
in console (without GUI).
http://www.pavuk.org/
SUUM CUIQUE.

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#345 Post by goingnuts »

PANZERKOPF: Thanks! Nice one this Pavuk thing.

I was wondering if we should create a list of all those gtk1 apps (or other useful old-timers)...or maybe even a package collection somewhere with static builds.
Some time ago I started making a synaptic-like package manager in gtkdialog1 for pupngo - makes things much less complicated if all packages are static - but got distracted and never finalized it - might have a look at it again.

PANZERKOPF
Posts: 282
Joined: Wed 16 Dec 2009, 21:38
Location: Earth

#346 Post by PANZERKOPF »

goingnuts wrote: I was wondering if we should create a list of all those gtk1 apps (or other useful old-timers)...
This is a good idea.
There are many old, discontinued but still useful opensource apps scattered in world web.
I Will inform You about each finding.
SUUM CUIQUE.

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

sfm small file manager

#347 Post by Keef »

I found this gtk 1.2 file manager:
http://prigaux.chez.com/sfm.html

Dependencies:

Code: Select all

linux-gate.so.1 => 
	libgtk-1.2.so.0 => /root/my-applications/lib/libgtk-1.2.so.0
	libgdk-1.2.so.0 => /root/my-applications/lib/libgdk-1.2.so.0
	libgmodule-1.2.so.0 => /root/my-applications/lib/libgmodule-1.2.so.0
	libglib-1.2.so.0 => /root/my-applications/lib/libglib-1.2.so.0
	libdl.so.2 => /lib/libdl.so.2
	libXi.so.6 => /usr/X11R7/lib/libXi.so.6
	libXext.so.6 => /usr/X11R7/lib/libXext.so.6
	libX11.so.6 => /usr/X11R7/lib/libX11.so.6
	libm.so.6 => /lib/libm.so.6
	libc.so.6 => /lib/libc.so.6
	/lib/ld-linux.so.2
	libXau.so.6 => /usr/X11R7/lib/libXau.so.6
	libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6
From the README
This program is a simple file manager. It's meant to be small and fast and have a lot of shortcuts. You can associate actions with files (using its extension or its type given by file(1)). A popup menu gives you the available commands and shortcuts. You can have multiple views talking between each others. The filenames are colored using the LS_COLORS variable. You can also use it as a directory traveller. It uses the gtk+ library.

You have the ability to not use the mouse at all, using mnemonics and shortcuts. I really think something like kfm and xfm is too slow and not enough shortcut driven. This program is meant to minimize memory consumption and to be very fast.
This is running on 412. Got the gtk /glib stuff from rpms.
(I downloaded the binary. - It dates from 1999)
Attachments
sfm.jpg
(49.19 KiB) Downloaded 788 times

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#348 Post by goingnuts »

Keef: Thats a nice finding!
Xpdf versions below 2 can be build without motif. The last version of those seems to be 1.01.
Edit 20130430: pdf supports an annoying feature that prevents copy text+images out of the document if owner password set. I can see the text content and manually type the text to another document or screen capture images and paste them as well. Applied a simple patch to bypass the check for owner password. So new upload here 1.4Mb and included all the non-GUI programs (pdffonts pdfimages pdfinfo pdftopbm pdftops pdftotext) as well as man pages etc. Would have liked to turn all the bins into a multicall binary but sort of lost when it comes to doing that with c++ code.
Still pdf files protected with user passwords needs the password set via command line so if you try opening a pdf-file via GUI and nothing happens it might be pswd-protected (xpdf gives no indications of this in GUI-mode).

Although this old version is targeted pdf-1.4 it seems to load newer versions as well.
Attachments
snap0001.png
(48.32 KiB) Downloaded 753 times

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#349 Post by technosaurus »

I've been playing with coldplugging and hotplugging via shell scripts here:
http://www.murga-linux.com/puppy/viewtopic.php?t=86125
I know this is the "old-fashioned" way but after looking at the old hotplug scripts, the concept was fine, but the implementation was not designed for speed.

I'm designing it for use with busybox built with prefer applets, standalone shell and run NOFORK applets directly (this typically more than doubles the speed even compared to itself without those features)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#350 Post by Ted Dog »

Cloud you include an underdog method? with pupngo13.

Post Reply