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

What features/apps/bugfixes needed in a future Puppy
Message
Author
Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

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

#1 Post 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
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#2 Post 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).

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#3 Post by Master_wrong »

thank for the info...


i 'll check on it
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#4 Post 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.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#5 Post by noryb009 »

Sorry, I meant "puppy uses the same amount of RAM with SFSs as it does without"

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#6 Post 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
Attachments
prog-remover.sh.zip
(820 Bytes) Downloaded 1062 times
Last edited by Master_wrong on Mon 13 Dec 2010, 10:52, edited 2 times in total.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#7 Post 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.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

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

#8 Post 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)
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].

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#9 Post 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.
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

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

#10 Post 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
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].

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#11 Post 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 ?
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

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

#12 Post 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
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].

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#13 Post 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.
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#14 Post 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.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/

mhanifpriatama
Posts: 60
Joined: Sat 22 Jan 2011, 07:50

#15 Post 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.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#16 Post 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
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

#17 Post 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.

mhanifpriatama
Posts: 60
Joined: Sat 22 Jan 2011, 07:50

#18 Post 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.

Pelo

"save" "no save" at shutdown

#19 Post 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.

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#20 Post 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
True freedom is a live Puppy on a multisession CD/DVD.

Post Reply