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 Fri 24 Oct 2014, 16:56
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 Posts_count  
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
Sub_title: 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: 4353

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: 4353

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0564s ][ Queries: 11 (0.0109s) ][ GZIP on ]