Dynamic loading of SFS

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
TheBlackSheep
Posts: 20
Joined: Sun 23 Nov 2008, 09:24
Location: Lancashire, UK

Dynamic loading of SFS

#1 Post by TheBlackSheep »

I've managed to get Lazarus (Linux Delphi equivalent) working on Puppy 4.1 through installing the sources and adding the various missing libraries and symbolic links. It was a bit messy to do but it worked well (I've since screwed my save file up and had to revert back to a saved backup 2fs file).

I am going to install it again but before I did I thought I'd explore a different angle.

I have several Dingo's on a variety of devices, some of which are memory challenged. Ideally, I'd like to make an SFS of the installation so I could load it and unload it as necessary (write and compile an application and then drop the compiler again to release the memory) much like the SLAX modules can do via the SLAX Module manager.

A couple of questions spring to mind;

is there an easy way to create the SFS? - like take a snapshot, install what's required and then generate the SFS from the differences, then revert back to the snapshot (or previously saved "save" file). In theory I suppose this could be done by comparing the current state to the saved file and generate an SFS from the differences?

Dynamically loading the SFS file into the right place. When you click on the SFS it mounts it but not in the root and then unmounts it when you click it again. This is the behaviour I'm looking for but if it were mapped to the root is it safe and are there any consequences of mounting dynamically on the root system? Is it easy to change it to mount over root rather than wherever ROX decides to mount the SFS?

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#2 Post by technosaurus »

diff and diff3 can compare directories (kdiff3 has a gui but more dependencies)

there is also dir2sfs which will turn a whole directory structure to a sfs

(if you open as text the /sbin/dir2sfs or /usr/sbin/remasterpup2 or createpuppy script from unleashed there are some more advanced techniques)

and if you do a search there are a few pets for editing sfs files
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#3 Post by technosaurus »

I am now recalling that Puppy 2.15 community edition had this capability. There is a script that ROX calls to mount the sfs - I think it is in a hidden directory in /root if you want to take a look for it.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
TheBlackSheep
Posts: 20
Joined: Sun 23 Nov 2008, 09:24
Location: Lancashire, UK

#4 Post by TheBlackSheep »

Thanks Technosaurus

I had a quick look at the diff functions but not had time yet to explore more fully. I'll certainly look at the scripts in 215 (no point in re-inventing the wheel if it's already been done).

Thanks again

Chris

BPsoftware
Posts: 2
Joined: Thu 03 Apr 2008, 18:19

#5 Post by BPsoftware »

Can you please post the ISO with Lazarus into Puppy, or at least a step by step explanation on how to do that?
Thanks

http://www.lazarus.freepascal.org/index ... pic&t=6016

User avatar
TheBlackSheep
Posts: 20
Joined: Sun 23 Nov 2008, 09:24
Location: Lancashire, UK

#6 Post by TheBlackSheep »

HI BPSoftware

I've posted a reply on how I managed to install it here...

http://forum.lazarus.freepascal.org/ind ... 016.0.html

main problem is it's a gtk1 application so you need to install the old gtk1 library (from Puppy3) and create some symbolic links to various libraries. It's also pretty big so you ideally need to keep the installation outside the puppy "in-memory" user file-sytem - else increase the size of your 2fs file to cope (I struggled with a 512Mb 2fs file but it might be ok with 1Gb).

Best of luck

Chris

Post Reply