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 Sat 25 Oct 2014, 23:12
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 25 of 58 Posts_count   Goto page: Previous 1, 2, 3, ..., 23, 24, 25, 26, 27, ..., 56, 57, 58 Next
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Thu 28 Apr 2011, 16:22    Post_subject:  

I have been working on easy kernel change in pupngo with one of the targets being the use of older kernels. Until now I have the newer kernels from P431 and Lupo525 working using the same main sfs-file but the jump to kernel from P108 seems more complicated...

I have xwoaf running on top of a pupngo with kernel 2.6.33.2.. Smile

The USB hotplug I haven't tested - will do so. My USB wifi is recognized and firmware now automatic installed but that is not working in the released pupngo´s.
Update 290411: Test in pUPnGO_V412_060211 - USB drive is autodetected but desktop drive-icons will not reflect this as it requires a restart of jwm (and automount enabled)
fdisk -l shows the plugged in USB drives on my hardware...
Back to top
View user's profile Send_private_message Visit_website 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Sun 01 May 2011, 11:13    Post_subject: revised otf_fsf_loader  

During my experiments with easy kernel change in pUPnGO a revision of otf_sfs_loader.sh was needed as it only worked with aufs1. So I have revised the script to handle aufs1 & 2, mount point now in /mnt/sfs, automatic (and silent) conversion between squashfs3 & 4 when needed and now keeping its own record of loaded files in /etc/otfsfs without interference with Puppys normal sfs-boot-loading stuff.
Still consider the script as a draft - not much advanced error checking code implemented. Tested in P412, P431 and (not very intensive) Lupo525.

I know others have made much more advanced scripts (ex. shinobars sfs_load on-the-fly) but as far as I know they do not work in CLI witch is needed for pUPnGO.

Static builds of mksquashfs3 & 4 and unsquashfs3 & 4 included in attached archive. Note: patched to only use one processor in order to build the static bins.
otf_sfs_loader.tar.gz
Description  otfs-sfs_loader010511
gz

 Download 
Filename  otf_sfs_loader.tar.gz 
Filesize  474.02 KB 
Downloaded  204 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Mon 02 May 2011, 12:52    Post_subject:  

More "issues" with lupo525 kernel 2.6.33.2: pmmon5.sh wont run...
Turns out that it refuse to run code like:
Code:
TMPFL=/tmp/new.xpm
Z1 () { sed 's/Z1/s /g'; }
Z2 () { sed 's/Z2/s /g'; }
Z3 () { sed 's/Z3/s /g'; }
{ cat $TMPFL|Z1|Z2|Z3 > $TMPFL;}
This code runs without problems in P412/P431 - but with Lupo525 kernel $TMPFL is empty.
The code that will run with kernel 2.6.33.2 is:
Code:
{ cat $TMPFL|Z1|Z2|Z3 > $TMPFL.tmp; mv $TMPFL.tmp $TMPFL;}
How can this script execution be depending on the kernel Question
Attached a modified version of pmmon5.sh
pmmon5.sh_020511rev.tar.gz
Description  revised script for pmmon5.sh
gz

 Download 
Filename  pmmon5.sh_020511rev.tar.gz 
Filesize  4.98 KB 
Downloaded  191 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Mon 02 May 2011, 12:56    Post_subject:  

goingnuts wrote:
More "issues" with lupo525 kernel 2.6.33.2: pmmon5.sh wont run...
Turns out that it refuse to run code like:
Code:
TMPFL=/tmp/new.xpm
Z1 () { sed 's/Z1/s /g'; }
Z2 () { sed 's/Z2/s /g'; }
Z3 () { sed 's/Z3/s /g'; }
{ cat $TMPFL|Z1|Z2|Z3 > $TMPFL;}
This code runs without problems in P412/P431 - but with Lupo525 kernel $TMPFL is empty.
The code that will run with kernel 2.6.33.2 is:
Code:
{ cat $TMPFL|Z1|Z2|Z3 > $TMPFL.tmp; mv $TMPFL.tmp $TMPFL;}
How can this script execution be depending on the kernel Question
Attached a modified version of pmmon5.sh

Not entirely sure its related, but I remember that when I made the advert blocker thing, that piping something ($TMPFL) to itself causes problems ... It did not for me, all worked fine, but I was using pup4... But others said my code didnt work, that seemed to fix it.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Mon 02 May 2011, 14:13    Post_subject:  

sc0ttman: Thanks - just did not know that it could be kernel dependent...Annoying in this case as the number of file read/write increases a lot...
Back to top
View user's profile Send_private_message Visit_website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Mon 02 May 2011, 15:46    Post_subject:  

Goingnuts, as you know I know almost nothing but maybe the following still can be of help?

Member Seaside has made a super simple SFS-Exec that does very little failchecking. one can load many programs again and again and run out of memory or have three FF loaded. So it is up to the user to keep track of what have been loaded already. Which is supereasy even I learned it in seconds. And the SFS-Exec is very fast and easy to use.

Sure it is a GUI now but why would it not be able to do the same using the CLI it has to be cli deep down so one only need to keep that basic structure and skip the GUI part I hope.

link to the thread. dl the pet and look inside it and you see how he does it. Super simple as I get it.
http://www.murga-linux.com/puppy/viewtopic.php?t=64587

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Tue 03 May 2011, 10:54    Post_subject:  

I previously posted an xcb based window manager called mcwm that used only 200kb of ram, but lacked a lot of the functionality of jwm, fvwm etc...

while googling for ... include xcb/xcb.h ... to find some minimal imaging examples I found uwm.
uwm is a rewrite of jwm using xcb

uwm.git.sourceforge.net/git/gitweb.cgi?p=uwm/uwm;a=blob;f=README.txt

I also found this little dock app template
darkshed.net/files/c_cpp/bits/space_dapp_xcb.c

Unfortunately the basic imaging examples were broken with recent versions of xcb{-utils}

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Sat 07 May 2011, 10:38    Post_subject:  

For what ever reason (!) I have made a static build of iptables1.4.0 as a single multicall-binary for pUPnGO (works in org. P412 as well/seems to work in P431 and 525 also...).
Compiled with:
make NO_SHARED_LIBS=1 DO_MULTI=1 LDFLAGS="-static" CC="gcc -Wl,-Os -mtune=i386"
Size: 240K (upx-ed).

Also made a simple firewall-script to install/uninstall, start/stop, panic-function and view status. Runs in CLI/dialog/Xdialog. Please assume that I have no knowledge about setting firewall rules and inspect the rules in the script/modify for you own needs. Rules are taken from here and here. Main intention is to provide the static binary of iptables and a firewall script running in CLI/dialog/Xdialog.
simplefirewall.png
 Description   
 Filesize   13.76 KB
 Viewed   1059 Time(s)

simplefirewall.png

firewall_412_pupngo.pet
Description  static build iptables1.4.0 multicall binary + simple firewall script
pet

 Download 
Filename  firewall_412_pupngo.pet 
Filesize  242.14 KB 
Downloaded  202 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sun 08 May 2011, 08:05    Post_subject:  

oops seems micromuppy is based on picopuppy 1.08 something. Not comparable to pupngo at all.

Now that we have woof would it still be difficult to make a pupngo based on 511?

_________________
I use Google Search on Puppy Forum
not an ideal solution though

Edited_time_total
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Sun 08 May 2011, 09:20    Post_subject:  

nooby: Your hint about Seaside´s SFS-Exec was good - thanks - that is really a compact aufs-loader!
Concerning micromuppy I have only worked slightly with it: Created a sfs-dress (8Mb) that runs on top of pUPnGO. micromuppy has a GUI filemanager (XFE) and Adie as text editor. You can make a screen shut but there are no image viewer (as far as I recall....). A very nice basic puppy that one could build on. It even has some cool effects like shadows and transparent windows. It does not have gtk-libs but uses the FOX-lib where you can find further GUI-add ons...
I do not think it holds a web browser...

technosaurus: I haven't had success with compiling uwm - any hints from you on how to do it?
Back to top
View user's profile Send_private_message Visit_website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sun 08 May 2011, 09:54    Post_subject:  

Oh but seaside does warn that it was not set up to do the needed check on that one don't load the same sfs again and again. And it is not so good using it together with a pupsavefile. it can set things wrong there eventually.

Sure one can use the sfs-exec-unloader to see what one currently has loaded and then unload duplicates easily.

But if you can help him put it such checks easily that would be a cool thing to make sfs-exec into the fastest sfs loader puppy have.

I am too impatient to use the sfs loaders we have now. Seasides was the one I liked best.

one thing is though that in wary 511 Barry using Seamonkey seems to make it impossible to load any Firefox browser even as sfs. Nothing happens. while Opera and Chromium just loads instantly.

Could it have to do with kernel conflict or whatever?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Sun 08 May 2011, 13:37    Post_subject:  

nooby wrote:


Sure one can use the sfs-exec-unloader to see what one currently has loaded and then unload duplicates easily.



Nooby,

Ok, here's a check to see if an SFS was loaded before.
Code:
[[ `losetup | grep $1` ]] &&  yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "ATTENTION! $1 seems to be already mounted.
Perhaps you closed the program and want to restart it.
If the program is not in the menu list, in a terminal
run 'fixmenus' and then restart the window manager." && exit


Place this in the file "/usr/bin/SFS-Exec" immediately following the first code line
Code:
[ $1 ] && ADDSFS=$1 || exit


Let me know of any problems in the "SFS-Exec" thread.

Goingnuts: Thanks for your code that was used in SFS-Exec

Cheers,
s
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Sun 08 May 2011, 14:39    Post_subject:  

Quote:
seaside
Goingnuts: Thanks for your code that was used in SFS-Exec
You are very welcome - I intend to adapt some of you code as well Smile
nooby:Editing your post/questions after one has answered makes the answer close to nonsense or at least out of any context...
A pUPnGO with kernel from Lupo525 is very, very similar to the present pUPnGO as essentially only kernel and modules will differ - do you see any point in doing that?
Back to top
View user's profile Send_private_message Visit_website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sun 08 May 2011, 14:41    Post_subject:  

Ooops, thanks much appreciated. I did do it now but but will test it later tomorrow most likely.

just now I am totally absorbed in why I failed to edit the menu.lst on AntiX and archiso in frugal install sespite me following their instructions to be root and it told me I was root too.
root@antiX11 #

Rcrsn51 says it most likely can not be done and Bernie by the sea says sure it can be done if one are real root and not a pretend root that some OS give the user.

Edit oops again.

nooby:Editing your post/questions after one has answered makes the answer close to nonsense or at least out of any context...

Yes you are right but I did edit it out not knowing you where to answer it I tried to do it as fast as possible to none would ahve known about the txt.

I know too little to answer your next q

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sun 08 May 2011, 17:03    Post_subject:  

goingnuts wrote:
technosaurus: I haven't had success with compiling uwm - any hints from you on how to do it?
v.25 needs xcb-1.6 and xcbutils-.37 ... git needs xcb-1.7 and xcbutils-0.38 I am in contact the developer, so let me know if you find anything to report. Johns (the uwm dev) also has some good tray app examples.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 25 of 58 Posts_count   Goto page: Previous 1, 2, 3, ..., 23, 24, 25, 26, 27, ..., 56, 57, 58 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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