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 Sun 15 Dec 2019, 15:26
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO - 6Mb ISO - Basic Building Block Puplet
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 59 [878 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, ..., 57, 58, 59 Next
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 922

PostPosted: Sun 23 May 2010, 14:23    Post subject: P412 zdrv hack
Subject description: ...to get zdrv mount at every boot...
 

Earlier in this post I claimed that P412 would not mount a zdrv if main P412.sfs was present on HD-drive. Different approaches have been made to maintain the access to zdrv-content after a save:
    Copy into personal save file at power off
    Create a normal SFS-file with zdrv-content at power off/mount at next boot

But both methods have drawbacks.
Finally think I found a way to hack init in initrd - just took code from P430 init and replaced in P412 init (view attached file).
Not that I understand why the org. code doesn't work and the new code does Confused

A new ISO-build available with modified kernel (ipv6 & fb support), hacked initrd/init so zdrv-412.sfs will mount at every boot, ALSA, various custumscripts (DISPLAY;SFS-MANAGER; GRUB HD INSTALL; TIME AND DATE MANAGER - type CONTROLPANEL at prompt or via menu in GUI) and X with JWM.

Full P412 drivers in zdrv_412.sfs - reduce at power off by using zdrvctr - potential reduction from 21MB to approx. 2MB giving a total size of installed pUPnGO of approx. 10MB on disk...
zdrvhackP412.gz
Description 
gz

 Download 
Filename  zdrvhackP412.gz 
Filesize  788 Bytes 
Downloaded  400 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
AndrewG

Joined: 02 Feb 2010
Posts: 36

PostPosted: Tue 01 Jun 2010, 12:54    Post subject:  

@technosaurus
I'd like to say thank you for your help in my issues with Classic Pup 2.14. I think 2.14 kernel is not supporting my internal ATA flahs disk. I tried pUPnGO and wow, it is super fast and sees my disk. I need to turn on my small WYSE terminal into download center. So I need only: network support, xwin autostart, dhcp config, keyboard layout selection, disk auto mount, file browser(rox??) to install samba, transmission and java by myself. Can you help me out with pUPnGO to adapt it to my needs? thanks' Andrew
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 922

PostPosted: Thu 10 Jun 2010, 12:30    Post subject:  

Hi AndrewG
pUPnGO 412 already supply network support, xwin autostart, dhcp config and keyboard layout selection. Auto mount - home-partition is always auto-mounted - maybe you can use that? For file browser technosaurus offers emelfm-0.9.2-i486.pet earlier in this thread...
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 922

PostPosted: Sun 13 Jun 2010, 14:25    Post subject:  

New build with full glibc-2.6.1-1. This seems a must as mounted additional SFS-files do not update /lib/-content.
Attached create_pkg_gtkdialog130610.sh.gz - a script to build directory with most gtk-stuff. Convert to pet, sfs or build directly into pUPnGO.
Also attached 3 sfs packages containing patched versions of net-setup, pet-get and other of the original wizards to run in pUPnGO with BusyBox only. You can unpack, merge, convert to pet or build into pUPnGO.

Only useful together with above gtk-package. ISO is now close to 30Mb - but again you can cut away approx. 20Mb of drivers when saving to disk using zdrvctr.

Update 170610: Save to cd/dvd not working - working on a fix for this...
petget_411_BB_412.sfs.gz
Description  patched petget for pUPnGO
gz

 Download 
Filename  petget_411_BB_412.sfs.gz 
Filesize  110.12 KB 
Downloaded  389 Time(s) 
create_pkg_gtkdialog130610.sh.gz
Description  Script to fetch org. p412 packages and create directory with most gtk-stuff
gz

 Download 
Filename  create_pkg_gtkdialog130610.sh.gz 
Filesize  833 Bytes 
Downloaded  399 Time(s) 

Last edited by goingnuts on Thu 17 Jun 2010, 15:56; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4872
Location: Blue Springs, MO

PostPosted: Sun 13 Jun 2010, 22:55    Post subject:  

here's a really small mp3 player to test out petget

to play all files in a directory:
for x in `ls *.mp3`; do mp3 $x; done
minimp3-0.1.pet
Description  usage
mp3 /path/to/file.mp3
pet

 Download 
Filename  minimp3-0.1.pet 
Filesize  17.79 KB 
Downloaded  403 Time(s) 

_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
emil

Joined: 10 Nov 2009
Posts: 631
Location: Austria

PostPosted: Tue 15 Jun 2010, 06:45    Post subject: Sage virtual machine
Subject description: project idea
 

Hello goingnuts and all,

thank you for this interesting project. I instantly had the idea to use it to build a virtual machine of the sage mathematic software to run under windows.

short project outline:
1) use pUPnGO as base (without X is fine)
2) add a sage.sfs package at boot and autorun sager server (even at first boot )
3) add a virtual machine (qemu?) with open port 8000 to comunicate with webbrowser interface (from windows)
4) smooth startup and shutdown (maybe no safefile required)
5) Goal would be a reasonable fast running sage with a 1-click installation / 1-click start up from windows.

since sage.sfs is about 400 MB I am confident that this package can be much smaller than the current Ubuntu/VMware package (zipped around 990 MB, without virtual player)

Any help would be warmly apprechiated to realise this project.
Some specific questions:
How can I modify it that sage*.sfs is loaded during boot (somewhere in initrd.gz?)?
How can I make it that it communicates with windows browser over port 8000 (configuration of qemu?)?

some links
Homepage www.sagemath.org
sage431.sfs http://boxen.math.washington.edu/home/emil - this was made for puppy 431, so maybe wrong sfs version
current vmimage for windows http://www.sagemath.org/download-windows.html

kind regards
emil
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 922

PostPosted: Tue 15 Jun 2010, 14:22    Post subject: Re: Sage virtual machine
Subject description: project idea
 

Hi emil
I have no clue about the application you plan to use but maybe some generel ideas:
emil wrote:

How can I modify it that sage*.sfs is loaded during boot (somewhere in initrd.gz?)?


Why not merge the content of the sfs with pUPnGO? Unpack the sage*.sfs and pup_412pUPnGO.sfs, merge the content and rebuild pup_412pUPnGO.sfs and afterwards the iso...
Another way is to create a personal savefile and use SFSMANAGER (inside pUPnGO) to auto mount sage*.sfs at boot...
Third way is to convert your sage*.sfs to a pet-package, include it in the ISO and install it after boot of pUPnGO (use INSTALPACKAGE - also inside pUPnGO) ...

emil wrote:

How can I make it that it communicates with windows browser over port 8000 (configuration of qemu?)?


I do not know about qemu in windows but in Linux it would be starting qemu with the command like (if your application runs as a server...):
qemu -m 128 -boot d -hda qemu/test.img -cdrom output/output.iso -std-vga -usb -no-kqemu -net nic -net user -redir tcp:5556:10.0.2.15:8000 -soundhw sb16,es1370,adlib

and connect via windows browser: http://localhost:8000/

Good luck with you project.
Back to top
View user's profile Send private message Visit poster's website 
emil

Joined: 10 Nov 2009
Posts: 631
Location: Austria

PostPosted: Tue 15 Jun 2010, 15:28    Post subject: sage virtual machine  

hi,
thanks for your quick answer Very Happy . I will try to make it work.
cheers
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 922

PostPosted: Mon 21 Jun 2010, 14:42    Post subject: Embedded web server 3,3MB ISO
Subject description: Using ash as cgi-scripting language for dynamic content...
 

This is not really related to pUPnGO but shows other possibilities using building stones from Puppy...

This file contain build-script for a small embedded server using P412 modified kernel. Included in compressed file: Kernel, static BusyBox, isolinux.bin and thttpd. Only tested in a running P412. Extract the content - readme included - but most code should explain itself. Result is a webserver booting in a few seconds in qemu with examples of creating dynamic content using ash-scripting language as cgi-scripts. Iso-image approx. 3,3MB.
Back to top
View user's profile Send private message Visit poster's website 
emil

Joined: 10 Nov 2009
Posts: 631
Location: Austria

PostPosted: Wed 23 Jun 2010, 12:05    Post subject: using other puppies  

Hi goingnuts,

I played with pUPnGO and it is very interesting. For my project I have the problem that the Sage Software is not compiling on 412. I had a look on your build script. I guess *in principle Wink * it could be reworked so that other puppies could be used as base. In that case I could just take my existing sfs for puppy 431 and use it.
What would be the procedure to generalize your script (i.e. taking variables for directories and sfs names). What obvious pitfalls are to be avoided?
In any case thanks in advance for any helpfull comments or suggestion.
Has anything like that beeing tried?

regards
emil
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 922

PostPosted: Wed 23 Jun 2010, 16:26    Post subject:  

emil:
I do not think you have to compile your application. If it runs in P431 it probably also runs in P412 - try to unpack your sfs-file and copy all the content on top of an unpacked pUPnGO.sfs. Repack and try to boot and run your application. You might need some libs or other services though...

I have made pUPnGO build scripts based on P431 - and you are right: it is only a few modifications to the build script for the P412 based pUPnGo that is needed.

Also pUPnGO´s with major content from TinyCore, Slitaz or GEEXBOX can be done more or less with the same method.
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 922

PostPosted: Tue 29 Jun 2010, 14:51    Post subject:  Xorg - setting resolution from command line  

I am trying to build pUPnGO with Xorg only but I am unable to control Xorg resolution from command line...
Xvesa and rxvt (rxvt just to run killall Xvesa to exit) can be started from command line by:
Code:
Xvesa -screen 1024x768x24 & rxvt &

or
Code:
Xvesa -mode 0x0144 & rxvt &

Xorg and rxvt can be started as well by command:
Code:
Xorg -depth 24 & rxvt &

but how to control resolution to ex. 800x600x24?
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4872
Location: Blue Springs, MO

PostPosted: Mon 02 Aug 2010, 22:02    Post subject:  

here is something kinda neat

Xorg & rxvt +sb -e jwm

but if you leave it like that, then closing rxvt closes jwm

I added this to the .jwmrc:

<Group>
<Name>rxvt</Name>
<Option>notitle</Option>
<Option>nolist</Option>
<Option>noborder</Option>
<Option>maximized</Option>
<Option>desktop:2</Option>
</Group>

which makes the background of the second desktop act as sort of an error log (changing it to minimized will just make rxvt disappear) ...perhaps the rxvt started like this should be a symlink so that the group name is different (in case someone wants to do a killall rxvt for their own terminals)

Edit: I made a symlink called backlog and modified above - pretty cool, but the restart, prompt, shutdown scripts will need a minor rewrite to use killall Xorg

I think (not 100% sure) you can just echo the resolution section of the xorg.conf to /etc/X11/xorg.conf ... but it seems to detect mine fine with xorg.conf deleted and no parameters passed

_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 922

PostPosted: Wed 04 Aug 2010, 03:38    Post subject:  

technosaurus: Nice coding and workaround!
I have been stuck in the assumption that there was a command for setting resolution but I guess there is not.

The purpose was to let Xorg create xorg.conf (to skip the Xorgwizard and all the external probing stuff) - by starting Xorg without having any xorg.conf. After Xorg had created his xorg.conf, extract the resolutions found and create a very small setup-script.

Using "Xorg -configure" leaves me in a black screen (in qemu) and do not return to prompt. Using the code "Xorg -depth 24 & rxvt &" seems to always start up in max resolution found which is not always ok for jwm started via rxvt...

Maybe a script running "Xorg -configure" on a different terminal (I dont know how to do this?), kill it and if xorg.conf was created, generate the small resolution-setup-wizard ?

Or script could use your approach above: "Xorg & rxvt -e killall Xorg" or something, if returned to prompt and xorg.conf is created, the resolution-setup wizard can be generated.

I will test the last approach to see if it is a way out.

Moving Xorg to zdrv opens up for additional size-reduction using same approach as your zdrvctr removing unused Xorg drivers...
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4872
Location: Blue Springs, MO

PostPosted: Wed 04 Aug 2010, 17:32    Post subject:  

My script used the xorg.conf to remove most of the larger unneeded drivers. Do you know a way to tell what xorg driver is loading without using the xorg.conf file?

Also I kind of wonder how GL, GLU and dri work - they must be called using dlopen or something because I couldn't find anything that had them as a dependency. If you are on a low spec machine that can utilize hardware acceleration, they may be worth including, if they can be used. Perhaps (my best guess) Xorg -configure tests this and maybe we can grep xorg.conf for those also for inclusion in the zdrv.

_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 8 of 59 [878 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, ..., 57, 58, 59 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.0929s ][ Queries: 12 (0.0392s) ][ GZIP on ]