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 24 Apr 2014, 12:58
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 4 of 5 [74 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
MU


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

PostPosted: Thu 24 Apr 2008, 22:42    Post subject:  

great, my congratulations Smile

Many thanks for not giving up quickly.
Now with your help, we have found an easy to use solution Cool

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 4987
Location: Arizona, U.S.A.

PostPosted: Thu 15 May 2008, 20:12    Post subject:  

MU; The GUI I made used directories, partitions, or SFS & image files for sources.
It would be easy to add this to your GUI... I'll post a pix of my GUI.

Also, mksquashfs can handle multiple sources, so there's no need to copy
temp. files to a Linux partition or an image file, this is how mine worked.

Let me know what you think.
PS; It's good to hear from you too, I've had personal stuff to do for awhile.
mksfs_gui.png
 Description   Simple, the [Add source to list] button opened a file browser.
It would check if image or SFS files were mounted & mount them if not.
 Filesize   16.5 KB
 Viewed   1563 Time(s)

mksfs_gui.png

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


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

PostPosted: Thu 15 May 2008, 23:26    Post subject:  

looks good, was it working already?
We had to find the code again buried in the forum...

It would be an advantage to use no temp-folders, so even people without Linux-partitions could use it.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 4987
Location: Arizona, U.S.A.

PostPosted: Fri 16 May 2008, 01:35    Post subject:  

I can't remember just what it's condition was, it's been a year or so.
I'll take a look at it tomorrow, I seem to recall there was a top dir. problem.

This apps. an important part of a no union & small main SFS file Puppy setup.
Instead of a normal package install, it's installed into a new main SFS file.
So there's no Save file needed unless Linux files are handled on a FAT fs.
As always... Puppy needs more loop devices, 16 would be good, 32 maybe?
Back to top
View user's profile Send private message 
MU


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

PostPosted: Fri 16 May 2008, 11:10    Post subject:  

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

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 4987
Location: Arizona, U.S.A.

PostPosted: Fri 16 May 2008, 13:02    Post subject:  

MU; This is the usage from help, just use the sources in a line.

mksquashfs source1 source2 ... dest [options] [-e list of exclude dirs/files]

The sources can be: directories, partitions, & image or SFS files.
The new SFS file should contain the contense of the directories or mounts.

Having the app. check if an item is mounted & use it is good way to go,
as someone may want to put part of the save file in an SFS file.
I started writing Bash libraries to do stuff like this as I'm sick of rewriting.

Or better... Just mount the SFS file or partition again at your mount point,
it won't hurt anything, it's accessible from both mount points.
I commonly forget this little trick, doing double mounting.
You can also mount over another mount point, it just covers it up.
Dougal suggested this (I think) for doing a full install to an image file.

Could you integrate the .pet to SFS into the app.?
Maybe add .deb, .tar.gz & .tgz to it also?
.deb may need small changes to the dir. structure to be compatable.
If the packages can be extracted directly to mksquashfs it'd be fantastic!
Though I don't know if that'd be possable... I'm sure you would know.
This'd over come the same problem, the need for a temp. ext2.

Your app. could use most of the common package types for sources!
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 4987
Location: Arizona, U.S.A.

PostPosted: Sun 18 May 2008, 04:24    Post subject:  

Mark; A few Qs about your SFS app. if I may...
1) Does it make a manifest file of all the /paths/files contained in the new SFS file?
2) Does it have a GUI for creation of menu files for the apps. in the new SFS file?
I ask because I've been using Puppy-400-NOP, & I noticed the goffice-400.sfs
addon file for it didn't have them. But they're made to be a pair so it's handled somehow.

I'm working on a no union setup & I'm trying to resolve issues, the SFS files are one.
Another is the PATH thing we talked about, to add to the paths makes them too long.
I'd like to be able to addon lots of SFS files (10 or 20), so adding to the paths is out.
Sadly there's over a dozen places to look for files... ( There's gotta be a better way )
My current idea is for 2 dirs., 1 in PATH & 1 in LD_LIBRARY_PATH with links in them
to all the files inside the SFS files. This is a really sucky way to do it.
The only other way I see is to make the SFS files differently by combining dirs. & paths.
Needless to say I'm open to better ideas for doing this, please add your thoughts...
Back to top
View user's profile Send private message 
MU


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

PostPosted: Sun 18 May 2008, 12:35    Post subject:  

Quote:
1) Does it make a manifest file of all the /paths/files contained in the new SFS file?
2) Does it have a GUI for creation of menu files for the apps. in the new SFS file?


1) no

2) no, but if applications include .desktop files, they are added to the menu automatically.
You just had to run "fixmenus" in Puppy.
In Muppy, the new .desktop files are detected automatically.

To create .desktop-files for an installed pup/pet without one, you can use:
http://dotpups.de/dotpups/System_Utilities/XDG-menus-for-alien-packages/

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 4987
Location: Arizona, U.S.A.

PostPosted: Sun 18 May 2008, 16:49    Post subject:  

Thanks Mark, I'll write the code line to create a manifest file, "find ....".
I'll have a look at the app.: XDG-menus-for-alien-packages to see if it'll do the job.
I've got the code written to scan drives for SFS addon dirs., just XDG & paths are left.

Any thoughts on a better solution for paths into the SFS files?
If there's a better solution I'd like to work on it rather than wasting time on a dead end.
Back to top
View user's profile Send private message 
dinky


Joined: 19 Jan 2008
Posts: 699

PostPosted: Sun 18 May 2008, 19:26    Post subject:  

Hi MU, great program! Thanks so much for creating it. Couple questions:

1. Does the pup_save file load into ram? I.e., if I have 512 Mb of ram, and a pupsave_file of 1Gb, will this effect my speed? So if I merge .sfs files with the pup_save, will I run into problems in a frugal install?
2. Do .sfs files effect speed at all? If they don't get copied to the ram on bootup, do massive sizes of them effect the speed at which puppy runs, assuming it's being booted into ram?
3. I love .sfs Is it possible to create a database, much like ttuuxxx's lib's page where they are all in the one place? This would make it much easier for newcomers to puppy.

Thanks mate.
Back to top
View user's profile Send private message 
MU


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

PostPosted: Mon 19 May 2008, 00:26    Post subject:  

Quote:
1. Does the pup_save file load into ram?

no.
Quote:
2. Do .sfs files effect speed at all? If they don't get copied to the ram on bootup, do massive sizes of them effect the speed at which puppy runs, assuming it's being booted into ram?


In general no.
In practice:
yes.
SFS files are managed by a Kernelmodule, the unionfs-driver.
It must check, if files changed.
This has some effect.
Rebuilding menus can take longer, if you use KDE.sfs, that has dozends of menu-entries.

If you use a sfs without menus (like devx.sfs), you of course will not notice a delay.
Quote:

3. I love .sfs Is it possible to create a database, much like ttuuxxx's lib's page where they are all in the one place? This would make it much easier for newcomers to puppy.


Until now, they are "cluttered around".
For Muppy, we list tested sfs-files on the Muppy-website.
A collection of various contributions is here:
http://puppyisos.org/files/sfs/
Password see:
http://www.murga-linux.com/puppy/viewtopic.php?t=28930

The Wiki should list several, too.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
dinky


Joined: 19 Jan 2008
Posts: 699

PostPosted: Tue 20 May 2008, 20:44    Post subject:  

Thanks for that. Have been fun with your pet2sfs converter, and the sfs combiner. There seems alot less need for an sfs file database now. Incidentally, when setting sfs files at bootup, can there be a problem with file clashes? I.e., if one sfs file has the same file as another, and they are not combined but mounted as one of the three you can boot up from, can there be issues? Also, if two sfs files with the same file on them are combined, does this duplicate the file? I'm guessing not, but thought it a good idea to check.

Anyway, thanks again matey.

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


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

PostPosted: Tue 20 May 2008, 21:48    Post subject:  

dinky wrote:
Thanks for that. Have been fun with your pet2sfs converter, and the sfs combiner. There seems alot less need for an sfs file database now. Incidentally, when setting sfs files at bootup, can there be a problem with file clashes? I.e., if one sfs file has the same file as another, and they are not combined but mounted as one of the three you can boot up from, can there be issues?


yes, if they are different...
Puppy mounts them in the priority as they are listed in the bootmanager.
If you add:
a.sfs
b.sfs
c.sfs
and all have /usr/bin/playme.sh
then only playbe.sh from c.sfs is used.

dinky wrote:
Also, if two sfs files with the same file on them are combined, does this duplicate the file? I'm guessing not, but thought it a good idea to check.


As above.
Here, files are overwritten with the ones from the last sfs added to the combiner.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 4987
Location: Arizona, U.S.A.

PostPosted: Sun 01 Jun 2008, 02:27    Post subject:  

Hi; I found the post again finally... Disregard the PM. I'll send what I write.
If you have code to feed .tar.gz or .pet files directly to mksquashfs, tell me.

Yep, each source in the mksquashfs command is over written by the next.

NOTE: I've read on the web it's a bad idea to use ext3 for flash devices.
The journal gets written to lots, so it tends to wear out the flash drive.
BUT... For this purpose it won't hurt, because the SFS build is a short use.

So instead of: mkfs.ext3 /dev/sda1

For most uses: mkfs.ext2 /dev/sda1
Back to top
View user's profile Send private message 
dinky


Joined: 19 Jan 2008
Posts: 699

PostPosted: Sun 01 Jun 2008, 04:30    Post subject:  

Hi sunburnt, how close are you to having a test version of your project with making sfs files without a linux partition? Think it's a great idea, and would love to try it. Cheers!
~dinky
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 5 [74 Posts]   Goto page: Previous 1, 2, 3, 4, 5 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.0736s ][ Queries: 13 (0.0048s) ][ GZIP on ]