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 22 Dec 2014, 18:10
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Dynamic loading of SFS
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
TheBlackSheep


Joined: 23 Nov 2008
Posts: 20
Location: Lancashire, UK

PostPosted: Mon 08 Dec 2008, 17:46    Post subject:  Dynamic loading of SFS
Subject description: For low memory machines
 

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?
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4427

PostPosted: Mon 08 Dec 2008, 23:26    Post subject:  

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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4427

PostPosted: Wed 10 Dec 2008, 21:27    Post subject:  

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.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
TheBlackSheep


Joined: 23 Nov 2008
Posts: 20
Location: Lancashire, UK

PostPosted: Thu 11 Dec 2008, 11:26    Post subject:  

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
Back to top
View user's profile Send private message 
BPsoftware

Joined: 03 Apr 2008
Posts: 2

PostPosted: Mon 15 Dec 2008, 05:43    Post subject:  

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.php?name=PNphpBB2&file=viewtopic&t=6016
Back to top
View user's profile Send private message 
TheBlackSheep


Joined: 23 Nov 2008
Posts: 20
Location: Lancashire, UK

PostPosted: Sat 20 Dec 2008, 17:49    Post subject:  

HI BPSoftware

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

http://forum.lazarus.freepascal.org/index.php/topic,6016.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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
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.0506s ][ Queries: 11 (0.0037s) ][ GZIP on ]