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 Thu 02 Oct 2014, 02:27
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 14 of 58 Posts_count   Goto page: Previous 1, 2, 3, ..., 12, 13, 14, 15, 16, ..., 56, 57, 58 Next
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Mon 20 Dec 2010, 13:01    Post_subject:  

Created attached draft-script for dynamic load/unload sfs-files.
Load up to 28 sfs-files to main-root branch (number can be changed in script). Works by appending mounted sfs-files to aufs /. Also sfs-files loaded at boot can be unloaded at runtime if not used by any programs.
Tested in Puppy 412 and pUPnGO. Do not work in P431 but could be modified to do so (different squashfs/aufs-version I think). Works only with aufs (but same functionality could be made with unionfs using unionctl).
sfs-files must be outside current aufs branch. Unpack to a place in your $PATH (/usr/sbin or so)...
otf_sfs_loader.tar.gz
Description  otf_sfs_loader (On-The-Fly-sfs-loader) for P412 and pUPnGO
gz

 Download 
Filename  otf_sfs_loader.tar.gz 
Filesize  4.04 KB 
Downloaded  380 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Mon 20 Dec 2010, 20:06    Post_subject:  

I tested your OTF_SFS loader on pupppy 4.2

It loads up my goffice sfs (abiword, inkscape, sodipodi, gnumeric)

with no problems!! Very Happy

and its so fast... this is truly an excellent little tool..

a couple of questions:

1. can i use it at bootup to reload the sfs files which were still loaded at shutdown?

2. what cli commands (if any) can we use with 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: 780

PostPosted: Tue 21 Dec 2010, 04:04    Post_subject:  

sc0ttman: Thx for testing. For now the OFT is only a draft - it takes no arguments from CLI and do not remember settings at next boot. Should be "easy" to make a OTF-start-stop script in /etc/initrd using the commands needed to load/unload a list of sfs-files at boot/shutdown...
I am working on this as it will be a future part of pUPnGO to enable loading of sfs-files stored in boot CD at first boot and will replace the traditional sfs-manager.
My main goal is to make OTF-unionfs-manager to load/unload whatever you want: CD, networkdrives, other Linux, iso, sfs, tgz, etc. for pUPnGO as this expands the building block concept.
Back to top
View user's profile Send_private_message Visit_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Tue 21 Dec 2010, 10:57    Post_subject:  

goingnuts wrote:
sc0ttman: Thx for testing. For now the OFT is only a draft - it takes no arguments from CLI and do not remember settings at next boot. Should be "easy" to make a OTF-start-stop script in /etc/initrd using the commands needed to load/unload a list of sfs-files at boot/shutdown...
I am working on this as it will be a future part of pUPnGO to enable loading of sfs-files stored in boot CD at first boot and will replace the traditional sfs-manager.
My main goal is to make OTF-unionfs-manager to load/unload whatever you want: CD, networkdrives, other Linux, iso, sfs, tgz, etc. for pUPnGO as this expands the building block concept.

Thanks for the reply, it's a great tool as it is..
I might try hacking it (until I break it) Smile

I will try to echo the list of mounted files to an rcfile, then read it again at boot, to mount them again..

I looked at how your script works, it should be simple enough, right?
You already echo the list of loaded sfs files to a tmp file, I think...

One problem I see - I will first need to mount the place on which the sfs are stored...

I may use the first half of the 'mount_all3' bash script by big_bass, to simply mount *everything* at boot..
This is not ideal at all, but it is an easy hack for myself...
(unless you can think of a better way...)

(I am not making feature requests, just thought I'd share my thoughts Smile )

I like ur idea on where its going, sounds interesting...

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

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Tue 21 Dec 2010, 12:26    Post_subject:  

Hi all here,

l just wanted to thank goingnuts for the great stuff he creates. I think the OFT could be base for some interesting improvements.

e.g. gyro had some ideas about Bootconfig
I could use the possibility to load one (or maybe more) additional sfs at first boot.

this is definitly on my watchlist!
emil
Back to top
View user's profile Send_private_message Visit_website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Tue 21 Dec 2010, 15:41    Post_subject:  

sc0ttman: Thanks for your input and positive feedback! Attached the first working rc.otf_sfs. I successfully loaded 9 sfs-files - rebooted - and they were mounted and ready to go after startup. Still just a draft...
Just place it in /etc/init.d.

emil: Thanks! Very Happy Maybe you can make "fake" content of /etc/otfsfs and get those sfs loaded at first boot?
rc.otf_sfs.tar.gz
Description  rc.otf_sfs (script to save/load OTF-sfs-loaded files autom)
gz

 Download 
Filename  rc.otf_sfs.tar.gz 
Filesize  1.53 KB 
Downloaded  279 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Tue 21 Dec 2010, 19:57    Post_subject:  

goingnuts wrote:
sc0ttman: Thanks for your input and positive feedback! Attached the first working rc.otf_sfs. I successfully loaded 9 sfs-files - rebooted - and they were mounted and ready to go after startup. Still just a draft...
Just place it in /etc/init.d

Thanks I'll check it out soon as I can...

One more question, about something else you did that I am very interested in.. PMConky..

I am using a 4.2 system without a ROX pinboard and I am already using JWM to set the wallpaper in jwmrc..

However, I can only see PMConky when I have no wallpaper set, and no colour set for the desktop.
But I see in this thread you have a wallpaper, with PMConky on top..

How did you do this? I even downloaded your cli jwm wallpaper changer, and started using a jwmrc-desktop file, to see if that worked... But no!

I would love to get PMconky working on top of my wallpaper.....
Any ideas?

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


Joined: 18 May 2008
Posts: 4351

PostPosted: Tue 21 Dec 2010, 22:02    Post_subject:  

I'm not 100% sure what he did (if anything), but any time something like this happens you can add a group setting to change the layer (layer 1 or 2 should do it) for that program

http://joewing.net/programs/jwm/config.shtml#groups

it is also useful to have it force certain programs to always be on top so you don't miss a critical item (xmessage for instance)

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


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Wed 22 Dec 2010, 12:07    Post_subject:  

technosaurus wrote:
I'm not 100% sure what he did (if anything), but any time something like this happens you can add a group setting to change the layer (layer 1 or 2 should do it) for that program

http://joewing.net/programs/jwm/config.shtml#groups

it is also useful to have it force certain programs to always be on top so you don't miss a critical item (xmessage for instance)

Thanks for the info, I'll give it a go in a moment..

but won't that make it appear above the apps I load?

If you know, what layer are they set to by default?
( I guess I can go 1 lower...)

EDIT: OK, I guess it is '4', right click on a window title bar to see Embarassed

RE-EDIT:

Nope, won't work for me... Sad

_________________
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: 780

PostPosted: Wed 22 Dec 2010, 12:40    Post_subject:  

sc0ttman: Can you start (and view) pmconky.sh after jwm has started via rxvt? If so jwm has the <StartupCommand></StartupCommand> where you might put 'exec pmconky.sh'
Back to top
View user's profile Send_private_message Visit_website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 22 Dec 2010, 12:40    Post_subject:  

dbl post
Back to top
View user's profile Send_private_message Visit_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Thu 23 Dec 2010, 16:25    Post_subject:  

goingnuts wrote:
sc0ttman: Can you start (and view) pmconky.sh after jwm has started via rxvt? If so jwm has the <StartupCommand></StartupCommand> where you might put 'exec pmconky.sh'

I tried your suggestion, not sure I did it right, but what I did, didn't work! Sad

Also, I noticed your automount.sh script from the jwm_drives thing, is stopping me from being able to successfully create a save file..

the whole process goes through, but the writing part doesnt actually work.
(just in case you wanted to know.. )
im gonna try some changes either way.. so specifically not asking for support...

EDIT:

goingnuts, in case you care, i stopped automount from running in pupmode 5, now I can create save files...
then i modded create_jwmrc_drives.sh so that when you click on a drive, it runs 'drives_mounter.sh $1' which mounts the drives, if not mounted...
(my script 'drives_mounter.sh' is a near copy of cd_mounter.sh, but it takes $1)

But when automount doesnt run, I must hack 'create_jwm_drives', so that it successfully mounts the drive on which the pup_*.sfs file is kept..
(I check for pupmode then use either /initrd/mnt/dev_ro2 (no save file) or `readlink /mnt/home` (with save file)

(Not checked cd_mounter.sh yet, might have to do the same)

did you have the same problem with create_jwm_drives if you dont automount?
(is that why you use automount?)

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


Joined: 18 May 2008
Posts: 4351

PostPosted: Tue 28 Dec 2010, 03:36    Post_subject:  

simple console calculator
Code:
#!/bin/sh
A=`awk "BEGIN{print $1}"`
A=`dialog --stdout --inputbox . 0 0 $A`
[ $A ] && $0 $A


or change to dialog to Xdialog if you want

example:
calc '8+9*(8/2)+sqrt(144)-sin(1)'

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

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 29 Dec 2010, 05:39    Post_subject: jwm-drives - reviewed  

As a response to sc0ttman´s findings using jwmrc-drives I reviewed the code:
Icons now dependent on file-system and using 9menu a small pop-up-window shows relevant choices (mount, umount/explore or cancel). Not really pretty as jwm insist to manage the window...
But 9menu (12K installed) has potential of being used for other purposes.
jwm_drives_new.png
 Description   
 Filesize   7.02 KB
 Viewed   1635 Time(s)

jwm_drives_new.png

jwmdrives_new.tar.gz
Description  jwm_drives_new
gz

 Download 
Filename  jwmdrives_new.tar.gz 
Filesize  30.89 KB 
Downloaded  295 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Wed 29 Dec 2010, 20:50    Post_subject:  

if anyone wants to make it "pretty" you could add a notitle noborder group to jwm
http://joewing.net/programs/jwm/config.shtml#groups

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 14 of 58 Posts_count   Goto page: Previous 1, 2, 3, ..., 12, 13, 14, 15, 16, ..., 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.0934s ][ Queries: 12 (0.0107s) ][ GZIP on ]