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 Mon 01 Sep 2014, 17:08
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
SFS-Combiner - merge some squashfs addons
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 6 [77 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 05 Feb 2008, 06:28    Post subject:  SFS-Combiner - merge some squashfs addons  

Puppy allows to use huge programs like OpenOffice without "installation".
You just download openoffice_301.sfs to the "/" folder of your harddrive (that where your pup_save is located).
Then you choose this sfs in the bootmanager and reboot - now you can use OpenOffice.
Very simple.

You also add Acrobat_301.sfs.
And devx_301.sfs.
And KDE_301.sfs.

You do?
No.

Because Puppy supports to load only 3 of them.

The solution:
You build one new, big personal sfs from them.

Sounds complicated?
Well, this is what I wrote this utility for.

Lets start:
First, be shure the files you want to use, are not mounted yet.
If they are mounted, uncheck them first in the bootmanager, and reboot.

Now start SFS-Combiner, and your favourite filemanager, like Rox.
Drag the desired files on the file-list:

screenshot:


Then click on the button below.
Now it will check, if all files can be mounted, and if you have enough temporary diskspace.

If so, then it copies the files from your .sfs files to a temporary folder, and builds a new sfs.
Then the temporary files are deleted again.
Important: then remove or rename new_xxx.sfs, or it will be overwritten next time!
(Fixme: should add a warning).

Screenshot: SFS-Combiner copies files:



Screenshot: SFS-Combiner builds the new sfs::




IMPORTANT:
To store temporary files, you must have a drive with a LINUX filesystem.
Windows drives do not work.

If you do not want to create a Linux-partition, try to format a USB-Stick with a Linux filesystem.
Use gparted or the comandline to do that.

This will do it for sda1 (WARNING: all files on that drive are DELETED!)
mkfs.ext3 /dev/sda1


Download:
http://dotpups.de/puppy3/dotpups/System_Utilities/SFS-Combiner.pup
Mirror:
http://puppyfiles.ca/dotpupsde/puppy3/dotpups/System_Utilities/SFS-Combiner.pup

Requires Gtkbasic:
http://dotpups.de/puppy3/dotpups/Programming/GtkBasic003/Gtkbasic-003.pup
Mirror:
http://puppyfiles.ca/dotpupsde/puppy3/dotpups/Programming/GtkBasic003/Gtkbasic-003.pup

I just tested it in Muppy 008.2 (Puppy 301), but it should work in the "2" and "4" series, too.

UPDATE:
Here is a DotPET for Puppy 4 (Dingo).
It includes SFS-Combiner and GtkBasic003.
http://puppyfiles.ca/dotpupsde/puppy4/dotpups/System_Utilities/SFS-Combiner-plus-GtkBasic003.pet
mirror:
http://dotpups.de/puppy4/dotpups/System_Utilities/SFS-Combiner-plus-GtkBasic003.pet


Tip for advanced users:
To add files manually:
edit:
/usr/local/SFS-Combiner/resource/buildsfs

Add after "#!/bin/bash":
Code:
xmessage -center "You now could add some more files to $1/tempfiles/
click ok to build the sfs."


So now there will be a message before the final sfs is built.
Before you click on "ok", you could add some files.

And here is a small tool to add PETs to a SFS:
http://www.murga-linux.com/puppy/viewtopic.php?p=198076#198076


Mark

Last edited by MU on Fri 16 May 2008, 11:12; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website 
Matu

Joined: 08 Feb 2007
Posts: 48
Location: Europe, Hungary

PostPosted: Tue 05 Feb 2008, 07:13    Post subject:  

Thanks for this great tool. I will test it under 3.00 and give you a feedback here about its functionality.

Matu
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Tue 05 Feb 2008, 08:03    Post subject:  

cool, nice idea

because I always ask for more Smile
how does it handle collisions, might want to make it clear whether the first or the last gets priority

How about a mysquash builder that converts your pup_save into a sfs. Sometimes I just merge my pup_save into the pup_xx.sfs. I'm not sure that many people would use this I'm just trying to establish as many software patents as I can Smile . Maybe I'd better move out of the EU first.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 05 Feb 2008, 08:08    Post subject:  

Quote:
how does it handle collisions, might want to make it clear whether the first or the last gets priority


Files from the upper sfs will be overwritten by files from the lower ones in the filelist.

Quote:
How about a mysquash builder that converts your pup_save into a sfs

Sounds reasonable.
I'll add it this week.

We have Carniaval here in southern germany.
In northern germany (where I come from), it is not celebrated, so I will go to have a look, it is the first time I see it "live" Smile


Thanks for the good suggestion Smile
Mark
Back to top
View user's profile Send private message Visit poster's website 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Tue 05 Feb 2008, 08:20    Post subject:  

MU wrote:
We have Carniaval here in southern germany.
In northern germany (where I come from), it is not celebrated, so I will go to have a look, it is the first time I see it "live" Smile
I have friends in the swartzwald, though I've never been there during carnival myself. Will you be wearing a dress and make-up? Wink
_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Tue 05 Feb 2008, 08:42    Post subject:  

Maybe he is on this picture. Wink
karneval-1926218-carnival_parade-Karlsruhe.jpg
 Description   
 Filesize   48.28 KB
 Viewed   9605 Time(s)

karneval-1926218-carnival_parade-Karlsruhe.jpg


_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Tue 05 Feb 2008, 14:55    Post subject:  

Right on target MU keep up the good work Smile ... Take care at carnaval... at least in Brazil a lot of people get hurt/killed during carnaval....
_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
Leachim

Joined: 27 May 2007
Posts: 229

PostPosted: Tue 05 Feb 2008, 15:10    Post subject:  

Merging the base-file (squashfs) and the save-file (ext2) works really nice. I do this every few weeks and start again with the new (merged) base file and an empty save-file. To date my base-file has grown to 1.8 GB (compressed - without compression it would be 5GB) and my save-file is 2 GB.

I want to rewrite the save-script to create new sfs-files instead of updating a save file. This will lead to many sfs-files mounted one above the other. So the sfs-files will have to be merged occasionally.

The big advantage of this new approach will be the possibility to "backtrack" to any save-point if things went wrong.
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1290
Location: UK

PostPosted: Wed 06 Feb 2008, 09:40    Post subject:  

MU - Brilliant Idea!!

Now we don't need all these versions of Puppy around - some with Opera, some with SeaMonkey, some with Firefox, ...

Just a base version of Puppy and lots of SFS files:

Pick one or more from each group:

Browser: SeaMonkey; Opera; Firefox
Office: OpenOffice ; AbiWord+Gnumeric
Media Player: Gxine; MPlayer; VNC
Developer Environment: TCL; Puppy BASIC; ...
Game Pack: ??; ??
...

Use your SFS Combiner and, voila, your own preference of Puppy!

Great - Great - Great

ICPUG
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 06 Feb 2008, 09:54    Post subject:  

Yes, the flexibility of sfs files is one of the advantages of Puppy.

You also could add an option/info to show how to add own files.
So you could use it to create highly-compressed archives of your Photo-collections or such.
Different to normal packagers, these archives need not to be extracted with an external program like Xarchive or winzip.
You just select your archive in the bootmanager, and can use all files in it.
Or you click on it in Rox to mount it (what would be ok for Photos, as they don't need to be merged in the unionfs-filesystemstructure).

There just was the limit of 3 files, which now is no more issue.
At least if you have a Linux-partition for the temporary files.
SFS-Combiner just lists Linux-drives, so that permissions and symlinks are preserved.
I should add an option to select Windows-drives.

I could then create a .2fs file there with own ext filesystem to store the temporary files (similar to pup_save.2fs, but just temporary).
It would be deleted again after the squashfs was built.

I will have a look at that in some days, I first want to finish the KDE-3.5.8.sfs.
Mark

Ps: Carniaval was kind of boring. And no, I was not painted. Just the people on the trucks/waggons had costumes and such.
I'd really like to see the ones in Venice and Rio somewhen, they are much different Smile
Back to top
View user's profile Send private message Visit poster's website 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Wed 06 Feb 2008, 10:00    Post subject:  

Leachim wrote:
Merging the base-file (squashfs) and the save-file (ext2) works really nice. I do this every few weeks and start again with the new (merged) base file and an empty save-file.
It is important to note there is a cost to this, for the benefit of others (I am sure that you are aware of it already):
either your base squash will no longer load into RAM
or if you have enough RAM you have to wait on boot for the entire squash to load into RAM.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 06 Feb 2008, 10:04    Post subject:  

Yes HairyWill, that is important.
For Muppy, we have 2 versions.
One "standard", that has a 400 MB main.sfs and a Mini, where huge apps are put in an addon.sfs, so that main.sfs remains small (<200 MB).
The Mini is faster, as this solution is better concerning memory-management.
We just offer the "standard" version as "appetizer", because it can run directly from CD.
I encourage Muppy-users, to switch to the Mini, if they want a frugal installation.

So for personal files I would not merge with main.sfs, but use a personal.sfs.
This also should make it easier to upgrade later to newer versions of Puppy.

Mark
Back to top
View user's profile Send private message Visit poster's website 
NathanO

Joined: 22 Feb 2007
Posts: 198
Location: San Antonio, TX

PostPosted: Wed 06 Feb 2008, 10:42    Post subject:  

MU,

I like the idea of the 'personal.sfs'. Could you present this to Barry for future Puppy's?

NathanO
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 06 Feb 2008, 11:24    Post subject:  

Barry certainly will have a look, once he is back from holiday.
Until then I'd like to add some refinements.

E.g. a tool could be added, that scans your pup_save.2fs for large folders like /root/Mail (if you use the sylpheed EMail client, that can be huge).
Then it could offer in a dialog, to store these folders in a personal.sfs and delete them in pup_save.2fs.

I just have re-combined my devx.sfs, and copied by hand /root/Mail/ to the tempfolder, before the final sfs was built.
I then renamed /root/Mail and deleted it after a reboot (I think you must not delete immedeatly, because then unionfs would mark it with .wh -files, but I must test that in detail).
Now my old Mails are together with the devx in this new personal.sfs and I even could access them with a fresh Puppy-setup.
I have gained 120 MB of free space in my pup_save.2fs like this.
If you installed a lot of huge dotpups, this might bring you back even more space.
It has to be tested carefully though, before I will add this as a grafical option to the SFS-Combiner.
Unionfs can be somewhat tricky, and I also want to keep the grafical interface simple.
I might add a "neewbee" and "advanced" option for this.

Mark
Back to top
View user's profile Send private message Visit poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Wed 06 Feb 2008, 11:41    Post subject:  

ICPUG wrote:
MU - Brilliant Idea!!

Now we don't need all these versions of Puppy around - some with Opera, some with SeaMonkey, some with Firefox, ...

Just a base version of Puppy and lots of SFS files:

Pick one or more from each group:

Browser: SeaMonkey; Opera; Firefox
Office: OpenOffice ; AbiWord+Gnumeric
Media Player: Gxine; MPlayer; VNC
Developer Environment: TCL; Puppy BASIC; ...
Game Pack: ??; ??
...

Use your SFS Combiner and, voila, your own preference of Puppy!

Great - Great - Great

ICPUG


Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy

Thank you !

....and thank you for all the wonderful dot pups too
I use them frequently

big_bass
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 6 [77 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.1099s ][ Queries: 13 (0.0133s) ][ GZIP on ]