Page 1 of 2

Remaster vs sfs vs savefile; how best to reduce Puppy?

Posted: Sun 05 Dec 2010, 04:37
by Master_wrong
Hi,

I try remastering puppy last night, run pristine luci 240 then install virtualbox...
get into remaster, delete all files within tmp-root & tmp-etc then i copy root and etc into them (because i cannot choose which i should copy).
then i realize my iso files is now around 200M which mean my customized -puppy will eat more ram...

so this makes me thinking, is it worthy to install all program and remaster them ?
or is it more efficient if we just run barebone then install sfs or pet program after booting (preferably automatically) ? as we know installing pet usually takes just few second.

yes i understand some program are needed and cannot go.. but surely abiword, calc, calculator. etc can go perhaps as bussiness.sfs ?
so it will reduce both boot time and ram usage ?

I just visit this
http://www.murga-linux.com/puppy/viewto ... 74&t=51478
the idea was good, but too many small program in puppy that i use i not there (network, ftp etc)

btw :
1.
how to remove program that already installed in puppy ?
example ---> remove abiword, calc so i can remaster without them ?

2.
how to disable save-file creation during shutdown ?
info : i use flashdisk and put everything into ram.


thank you

Posted: Sun 05 Dec 2010, 12:55
by noryb009
It depends - I'm pretty sure if you remaster, it would use more RAM, but the programs will open faster. (use this if you have enough RAM, or use if for programs you always use)

An sfs would also work, use the same RAM, but have programs open a little slower. (use this for keeping the savefile size down, or if you want to use it in multiple puppys)

In your case, I would say to create your own puplet - you don't have to share it, but it's the only way to get a rid of abiword and other pre-installed apps. Just get woof, install all the programs you need, and change the rc.shutdown (I think it's in /ect/) to the first line and the last line (that aren't commented).

Posted: Mon 06 Dec 2010, 09:32
by Master_wrong
thank for the info...


i 'll check on it

Posted: Mon 06 Dec 2010, 20:54
by disciple
An sfs would also work, use the same RAM
No, I don't think an extra .sfs is usually loaded into RAM like the main one.

Posted: Mon 06 Dec 2010, 21:00
by noryb009
Sorry, I meant "puppy uses the same amount of RAM with SFSs as it does without"

Posted: Fri 10 Dec 2010, 16:15
by Master_wrong
@nory
but it's the only way to get a rid of abiword and other pre-installed apps.
i dont think so...


I have been thinking about removing preinstalled program, and i think getting woof or pupngo is too hard to do and too time consuming.



so here is the program to remove preinstalled apps.

edit :
program not working in puppy 4.3
only tested lupu and luci

edit:
now work in woof, tested in pup 431 :P

Posted: Fri 10 Dec 2010, 23:02
by disciple
Yes, there used to be petbegone, which worked like petget but for "removing" built-in packages. There are a couple of more current alternatives; I don't know how they'd compare with Master_wrong's script, but they all work by hiding the package so you can remaster without it.

Posted: Sat 11 Dec 2010, 15:40
by technosaurus
even without petbgone, you've always been (and still are) able to reinstall the package and then uninstall it before a remaster.

btw the list of installed packages are now in /root/.packages/woof-installed-packages (the ibiblio repository directory is listed in the 7th field)

Posted: Sun 12 Dec 2010, 07:33
by Master_wrong
even without petbgone, you've always been (and still are) able to reinstall the package and then uninstall it before a remaster.
sure it is, how come i forgot the fun of installing installed program so i can uninstall it ?
not to mention if i have more than 10 program to remove
:lol:

the script are tested on luci240 and lupu511, so which puppy use /root/.packages/woof-installed-packages ?


btw im downloading quirky nop120 and pup431 now ..

----------
scrip now useable in woof for removing builtin program, just remember to remaster from pristine and pfix=ram to reduce error.

Posted: Tue 14 Dec 2010, 00:36
by technosaurus
Gui + reverse dependency checking in <400bytes

Code: Select all

#!/bin/sh
D=$HOME/.packages/builtin_files
PKGS=`ls -1 $D`
PKG=`Xdialog --stdout --combobox "select package to remove" 0 0 $PKGS`
[ $PKG ] && Xdialog --yesno "Reverse dependencies: 
`cat $HOME/.packages/woof-installed-packages |grep +$PKG |cut -d "|" -f2`

Continue?" 0 0 && [ $? ] && for x in `cat $D/$PKG`; do [ -d $x ] && cd $x || rm $x; done && rm $D/$PKG && $0

Posted: Tue 14 Dec 2010, 03:19
by Master_wrong
:shock: :oops:

@technosaurus

WAW that was awesome, thank for the upgrade , but it did not work on woof hehehe

so how to really show all installed program in woof ? and make gui similiar to your script ?

Posted: Tue 14 Dec 2010, 04:26
by technosaurus
in woof? - not sure what you mean (woof is what is used to build puppy, so you start with nothing unless you use a predefined build)

???user installed packages are removable in ppm (formerly petget)
it removes them using the files listed in <pkg-name>.files

Posted: Tue 14 Dec 2010, 10:10
by Master_wrong
i mean pup431,

which have no /.packages/builtin_files folder,

in my latest script i use

cd /
find -iname "$file*" > file

then delete all listed in the file.


rough, but it work so far.

Posted: Tue 22 Feb 2011, 21:30
by abushcrafter
I have most of my apps in a "MustHave" SFS, "Bouns" SFS and "RegularlyUpdatedExtras" SFS. All pre-configured. So I have the "pup-***.sfs" with some stuff removed and a few things added which are most useful if they are in that SFS so if I am on a system where I can only load the main SFS. I have those bits. E.G SFS Linker.

I have a SFS ("RegularlyUpdatedExtras") which the few apps which are regularly updated go in. This is because I found it a pain to edit and build a large SFS each 2 weeks.

"MustHave" SFS is so I have important apps which don't go in the "pup-***.sfs" but the option have having them loaded into ram some how or to easily combine into the "pup-***.sfs" if I want too.

"Bouns" SFS is for every thing else.

With packages that have loads of libs and files in them. What I do is keep them separate from the SFS I plan to put them in. When I build a new version of the SFS I plan to put those separate packages in. I build that SFS and then use "SFS Combiner" to add those separate packages.

This means I don't have a hell of working out which libs need to be left behind because they are needed by some other app or which files I need need to leave or remove when I upgrade or remove that package.

Posted: Tue 05 Apr 2011, 08:27
by mhanifpriatama
Puppy can run on different pc (machine). So, must have a lot of driver? How big are that?
If its big enough, can we remaster without unnecessary driver? So, for single machine (or same type machines), can has a little library after remastering?
Just an idea.

Posted: Wed 06 Apr 2011, 10:33
by sc0ttman
mhanifpriatama wrote:Puppy can run on different pc (machine). So, must have a lot of driver? How big are that?
If its big enough, can we remaster without unnecessary driver? So, for single machine (or same type machines), can has a little library after remastering?
Just an idea.
Puppy can use a 'zdrv' SFS file. This file contains only the drivers.
You can then use the 'zdrv_cutr' tool to remove drivers which are not loaded.

Then zdrv_cutr is here: http://murga-linux.com/puppy/viewtopic.php?t=51552

Also, here is another remaster tool you can use, called Woofy, it is simpler than RemasterPup: http://www.murga-linux.com/puppy/viewtopic.php?t=57037

Posted: Wed 06 Apr 2011, 14:44
by Moose On The Loose
mhanifpriatama wrote:Puppy can run on different pc (machine). So, must have a lot of driver? How big are that?
If its big enough, can we remaster without unnecessary driver? So, for single machine (or same type machines), can has a little library after remastering?
Just an idea.
Here's a crazy idea:

Do the remaster and include everything you think you may or may not want in a BIG.sfs

Once the remaster is done create a directory tree that looks just like the BIG.sfs except that all the actual things are symbolic links to:

/mnt/home/BIGSFS/whereitis/whatitis

You can quite do this with everything because the mount command is needed to get the BIG.sfs mounted.

This will result in a puppy that runs very slowly but now comes the part that I thought of first.

Use "find" to discover what files you really accessed in the last few days and replace the symbolic links with the actual files. This could be a script that does this automatically.

With a few more steps, you could have a puppy with only the files you actually use. All the rest could still be included in the BIG.sfs if you want to be able to change your mind.

Posted: Sat 09 Apr 2011, 04:56
by mhanifpriatama
With a few more steps, you could have a puppy with only the files you actually use. All the rest could still be included in the BIG.sfs if you want to be able to change your mind.
I like this crazy think. I'll try. It will reduce more file that not use. But, can we sure that all file has accessed flag? About stability, I think it will crash.
But, that just good crazy idea.

"save" "no save" at shutdown

Posted: Fri 18 Jan 2013, 16:01
by Pelo
"save" "no save" at shutdown Ignore full session
Pet pupsaveconfig 2.2. available somewhere
That permits you to make a lot of tries and not to register them.
Reboot and run again only the success things
This time, save the session.
You earn an incredible amount of space on your personal storage.

Posted: Sat 19 Jan 2013, 06:16
by tallboy
You could take a look at Lazy Puppy, it is based on the idea of just loading an sfs when you need it.

LazY Puppy 2.0.2 Final - a Paradise Puppy

tallboy