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

#301 Post by Ibidem »

OSS (Open Sound System) is the old audio system for Linux, and what every UNIX other than OS X and Linux uses. It uses open, write, and ioctls to play audio.
/dev/dsp or /dev/*/dsp is OSS.
ALSA (Advanced Linux Sound Architecture) is the new audio system for Linux, which uses its oun API. /dev/audio is ALSA.
On Linux, there are 3 implementations of OSS:
1) OSS3, the old kernel drivers
2) OSS4, the new out-of-tree drivers
with all sorts of features like virtual mixers...
3) the snd-pcm-oss module, a shim that uses an ALSA driver.
Make sure to load this, some programs like minimp3 need OSS!

Sound volume is not natively persistent; an initscript saves volume at shutdown, then restores on boot. I don't know how to do this off the top of my head.

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#302 Post by starhawk »

Didn't try /dev/dsp. I'll do that later.

Ordered a 20gb mechanical hard drive from eBay. Better than a 4gb compactflash card, but noisier. Whatever. I can deal with the racket.

I have an ASUS 1000HEB. It's got a 10.4" screen and that thing is CRAMPED. Not going smaller if I can help it -- unless it fits in my pocket somehow.

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#303 Post by starhawk »

Didn't try /dev/dsp. I'll do that later.

Ordered a 20gb mechanical hard drive from eBay. Better than a 4gb compactflash card, but noisier. Whatever. I can deal with the racket.

I have an ASUS 1000HEB. It's got a 10.4" screen and that thing is CRAMPED. Not going smaller if I can help it -- unless it fits in my pocket somehow.

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

#304 Post by PANZERKOPF »

Ibidem wrote: Sound volume is not natively persistent; an initscript saves volume at shutdown, then restores on boot. I don't know how to do this off the top of my head.
alsactl store # Store audiomixer settings
alsactl restore # Load audiomixer settings
SUUM CUIQUE.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#305 Post by greengeek »

darkcity has posted a thread regarding a malware that uses a bash script to wipe important info on a Linux system. Which is another good reason for running a cutdown system like pupngo, 'cos it doesn't have the ability to run bash does it?

http://www.symantec.com/connect/blogs/r ... ber-attack

Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

#306 Post by Ibidem »

technosaurus wrote: I also wanted to point this out:
http://www.newegg.com/Product/Product.a ... 6834760001
($40 netbook)

I ordered one myself and it seems like the perfect little testbox for an arm'ngo experiment. Craig has a zip file with the "firmware" inside as raw files with shell scripts, so it is straight forward to figure out what modules are needed and how to install it to disk ... though the uboot configuration may need further study as it is significantly different from grub, lilo, syslinux and isolinux
Is it working well?
Also, I'm curious about a few technical details- /proc/cpuinfo (especially flags), /proc/config.gz, lsmod, video, and the wireless chip.

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#307 Post by starhawk »

Just wanted to drop a quick line to you folks, having gratuitous internet problems right now. Should be back up tomorrow afternoon or evening. (I'm in the US Eastern timezone, if that means anything to anyone.)

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

#308 Post by technosaurus »

Ibidem wrote:Is it working well?
Also, I'm curious about a few technical details- /proc/cpuinfo (especially flags), /proc/config.gz, lsmod, video, and the wireless chip.
So far I've been using the included android while I study the scripts in the firmware installer and a custom mod someone made... from the looks of it the installer works a lot like a live cd except that it only copies the firmware to the builtin nand flash. It basically has raspberry pi specs (i'll post some specifics soon as I get a shell). I'm going to try modifying one of Rob's aboriginal images to see if I can get it to boot to a shell, but my kids really like the android games so I'll probably run from the sd care
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].

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#309 Post by starhawk »

Net probs have been resolved for now, so I'm back up.

goingnuts, when you have a minute, I responded to your PM... ;)

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

#310 Post by Ted Dog »

Ibidem wrote:
technosaurus wrote: I also wanted to point this out:
http://www.newegg.com/Product/Product.a ... 6834760001
($40 netbook)

I ordered one myself and it seems like the perfect little testbox for an arm'ngo experiment. Craig has a zip file with the "firmware" inside as raw files with shell scripts, so it is straight forward to figure out what modules are needed and how to install it to disk ... though the uboot configuration may need further study as it is significantly different from grub, lilo, syslinux and isolinux
Is it working well?
Also, I'm curious about a few technical details- /proc/cpuinfo (especially flags), /proc/config.gz, lsmod, video, and the wireless chip.

Cool you are always months ahead of what I thinking about, as going to ask you to port over to ARM (for mele1000) but I really just wanted a ARM with a keyboard for websurfing. This is cheaper than a wireless keyboard. Does the little Craig play video well? also I've wondered if a puppylinux desktop as a Android app would/could work

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

#311 Post by Ted Dog »

here is a link to an little linux distro running as an app on android.

http://j05hyyy.blogspot.com/2012_09_01_archive.html

have one craig netbook on order ....

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

#312 Post by Ted Dog »


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

#313 Post by Ted Dog »

And its already shipped, hope you figure out aboriganal linux the distrbuted compile idea really should be included with all puppies devx_sfs used it many years ago for a jobsite but for the life of me can't reduplicate the environment. :oops:

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#314 Post by starhawk »

HAY GAIZ.

No, seriously.

I think I found a better-than-Flash method of playing video.

http://linterna-magica.nongnu.org/

One problem -- it needs Epiphany (what's that?), Firefox (slow and creaky), or Midori (only works if the 'jemimah' dep is met ;) ) to run, since it sits on top of something called Greasemonkey that lets you do funny-but-cool things with some browsers.

techno & goingnuts, do you think youse two can bonk heads and put together something that is functionally similar (if not identical) but would work with nearly any browser? (Particularly with QtWeb, GTK1-Opera, or GTK1-Seamonkey...)

EDIT: url clickable now :oops:

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

#315 Post by technosaurus »

you should check out mozplugger. If you can get it working with vlc-nogui or one of the lightweight builds of mplayer or xine, it should work for any browser that supports mozilla's npapi (firefox, seamonkey, opera, chrome, webkitgtk,...) ... barry did something like this with one of the early quirky's based on some notes that I gave him around the time he was experimenting with swfdec (ttuuxxx also had posted patches for swfdec to build with more recent versions of ffmpeg). ... still I think the lightest solution would be vlc-nogui + mozplugger as it supports a wide range of codecs. Though if I ever start messing with llvm/clang (+musl libc and ustl or libc++ for c++), I will give lightspark+gnash a try

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

the last gtk1 version of gecko is in the seamonkey 1.19 source but it only works with flash7 ... but if you want it a gtk1 build with its mozconfig is here:
http://www.lamarelle.org/seamonkey/1.1. ... atic/gtk1/
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].

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#316 Post by starhawk »

technosaurus wrote:btw I don't think there was a gtk1 opera, only qt3
From a few pages back... ;)
Last link tested in pUPnGO2012, IIRC it needs GTK+ but whatever. It also needs libpng and libjpg and probably other junk...

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

#317 Post by technosaurus »

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.
Attachments
nsfb.png
this is the default page
(38.43 KiB) Downloaded 926 times
Last edited by technosaurus on Wed 10 Apr 2013, 12:22, edited 1 time in total.
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].

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#318 Post by amigo »

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.

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

#319 Post by goingnuts »

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...)?

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

#320 Post by technosaurus »

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
Last edited by technosaurus on Thu 11 Apr 2013, 22:04, edited 1 time in total.
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].

Post Reply