Can we create savefile as .pet ?

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

Can we create savefile as .pet ?

#1 Post by Master_wrong »

i mean it make sense because we can just find changes in the system during that day then copy them and make them pet ?
I havent tried to do that but i have tried to create pet using pfind and my script below
http://www.murga-linux.com/puppy/viewtopic.php?t=69556

i just cant make it automatic btw
if i just need saved password and web address for example... i dont need few mb of savefile when i can just create pet with very small size ?

so i believe saving few changes as pet will be possible

thank you
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#2 Post by nooby »

I am not sure what this leads us. I know too little.

when Seaside first presented SFS-exec he told us to not have a save file with it.

He himself did a z file out of his savefile and the z file get automatically loaded if placed in same directory as the puppy files.

But that does not allow one have several z files?

So your suggestions is interesting.

What is the difference between a 2fs or 3fs and a sfs file and how does .pet solve that?

Do you have a script then in Start that automatically load that savefile pet so it get included with the right keyboard and such?

when the scripts built into the initrd? see there is no pupsavefile there to load does it not then trust this is a prestine boot and it start to ask about what country and keyboard and local time and what drivers to use and so on.

How do you avoid this with no save file?
I use Google Search on Puppy Forum
not an ideal solution though

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

#3 Post by Master_wrong »

Do you have a script then in Start that automatically load that savefile pet so it get included with the right keyboard and such?
Hmmmm... never thought of that... i only interested in password and other personal files
btw i dont use savefile and i always boot with pfix=ram
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#4 Post by nooby »

Then you should be able to set it up like seaside did with his original SFS-exec thread
http://www.murga-linux.com/puppy/viewtopic.php?t=64587
that is very close to how you already have it there.
Him does not make use of a regular savefile either.

Hopefully somebody that knows exactly what a .pet can do
and not can do can advice if it is possible to use the way you want here.

My take on it is this.

What does a .pet do?

It starts a program that install the pet. That program has built in
scripts that check for things and look for lib and dependencies.

That is not what you really want is it? So what seaside suggested
seems more in line with your wants. The z thing just loads and
that is what you want to do. A .pet install and that is soemthing else!
I use Google Search on Puppy Forum
not an ideal solution though

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#5 Post by seaside »

Master_wrong,

A fast answer is "yes, you can make a .pet out of a savefile". Simply setup your pup and then shutdown with a small save file as usual for a frugal install. Boot with "pfix=ram" and then click on the pupsavefile to mount it. Once mounted, you can go to the / directory and in a terminal type "dir2pet Nameofpupsavedir". Rename the newly generated pet file to whatever is meaningful, move it to a permanent location and delete the pupsave.2fs file.

As Nooby mentioned, you might be more interested in making a zdrive.sfs instead of a .pet, because it will be combined and automatically loaded at boot, whereas, with a pet file you have to click on the "pet" file to install it (which takes up ram space) and adds another step.

Also, you might want to know that any files that exist in the mainpup.sfs will not be overwritten by a zdrive sfs file. The effect of this might be minimal if you don't change things on the desktop.

Cheers,
s

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#6 Post by nooby »

Thanks seaside.
I hope the OP have more luck than what I have. I am very dense today.
I did my best to follow your instruction but failed here>
Once mounted, you can go to the / directory and in a terminal type "dir2pet Nameofpupsavedir".
terminal answer that it has to be a directory. So what am I suppose to do now?

old text follows

You do know more than me about puppy. So the following
is a kind of "fuzzy thinging on my part" :)

If him do as you fist say there and create a .pet file.
I agree that works. What I wonder is when he click on it
and teh PPM? program ask if him want to install it. and he
say ok then it automatically get into pupsave.

okay he has no pupsave file so it will ask at reboot or shutdown.
Do you want to create a save file and hims say no.

So he need to place that pet so he can install it again next time he boot :)

I guess the z drive is a better thing but most likely his approach would work okay if one don't have a pupsave file, it is an interesting thing him come up with.

I have to test doing a new pfix=ram isntall and see what happens. Cool
I use Google Search on Puppy Forum
not an ideal solution though

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#7 Post by seaside »

nooby wrote: ...... and in a terminal type "dir2pet Nameofpupsavedir".
terminal answer that it has to be a directory. So what am I suppose to do now?
Nooby, try this -

After mounting the pupsave.2fs, go to the /mnt directory.
Open a terminal there and type "dir2pet /mnt/+mnt+home+lupu_525+lupusave-setup.3fs" (that's an example and your filesystem name would be somewhat different)

To avoid typing that long file name, I usually do a rox-right-click on the filesystem name, then "copy", ctrl-a to highlight the entire filename and put it on the clipboard so I can middle mouse click it into the terminal.

You should now have a pet file.

Regards,
s

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#8 Post by nooby »

Thanks I try it withing some 30 to 60 minutes. Will read some more threads here first :)
I use Google Search on Puppy Forum
not an ideal solution though

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

#9 Post by Master_wrong »

@nooby
So he need to place that pet so he can install it again next time he boot Smile

I guess the z drive is a better thing but most likely his approach would work okay if one don't have a pupsave file, it is an interesting thing him come up with.

I have to test doing a new pfix=ram isntall and see what happens. Cool
Thanks, I just like Puppy for being so fleksible and small, and more option would be great.

@seaside
After mounting the pupsave.2fs, go to the /mnt directory.
Open a terminal there and type "dir2pet /mnt/+mnt+home+lupu_525+lupusave-setup.3fs" (that's an example and your filesystem name would be somewhat different)

To avoid typing that long file name, I usually do a rox-right-click on the filesystem name, then "copy", ctrl-a to highlight the entire filename and put it on the clipboard so I can middle mouse click it into the terminal.

You should now have a pet file.
thanks for the tutorial.
so we have to

1. create save file with some password, web page, etc first, then after reboot i
2. Open a terminal there and type "dir2pet /mnt/+mnt+home+lupu_525+lupusave-setup.3fs"
3. delete the save file, and reboot to test the pet files

thanks again
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#10 Post by nooby »

We have to either test by ourselves or ask seaside.

I asked him and that cleared up a few things but not all of it.

So I doubt it works for you but if it does I would very much appreciate
you describe exactly how you did get it to work.

I don\t trust it is as easy as you summarized it now

I failed doing it like you describe. I am in that lupu now and it does not do any change after me installed the pet.

One have to run it in some way. To just install it does not seems to make any changes.

so if I where you I would go for the z file drive thing that seaside describe on that link I gave to sfsexec
I use Google Search on Puppy Forum
not an ideal solution though

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#11 Post by seaside »

Master_wrong wrote: @seaside
After mounting the pupsave.2fs, go to the /mnt directory.
Open a terminal there and type "dir2pet /mnt/+mnt+home+lupu_525+lupusave-setup.3fs" (that's an example and your filesystem name would be somewhat different)

To avoid typing that long file name, I usually do a rox-right-click on the filesystem name, then "copy", ctrl-a to highlight the entire filename and put it on the clipboard so I can middle mouse click it into the terminal.

You should now have a pet file.

thanks for the tutorial.
so we have to

1. create save file with some password, web page, etc first, then after reboot i
2. Open a terminal there and type "dir2pet /mnt/+mnt+home+lupu_525+lupusave-setup.3fs"
3. delete the save file, and reboot to test the pet files

thanks again
Master_wrong & Nooby,

Here are the steps again (Sorry, its been a while since I last did this and the directory mount point has to be changed because unlike an sfs file, the pet file strips the first directory on installation)

Create a pupsave with whatever changes.
Reboot "pfix=ram"
Mount the pupsave.2fs file
Move the "/mnt/+mnt+home+lupu_525+lupusave-setup.3fs" (or whatever it's called) to the top (/) directory
Open a terminal in the / directory and type "dir2pet +mnt+home+lupu_525+lupusave-setup.3fs"
Move the pet file to a permanent location.
Unmount "+mnt+home+lupu_525+lupusave-setup.3fs"
Delete the pupsave.2fs file.

You should now be in business.

Regards,
s

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#12 Post by nooby »

Haha maybe success but not sure. It both worked and did not work.

I lost the internet connection and had to do that one again.
But it changed from 800 x 600 to 1024 x 768 so that was a success.
I could do åäö so that was a success too.

But it did not work to follow your instruction or me simply failed to get your text.

so I tried instead to move the pet to the sub dir of lupu and that worked.


Then it installed and switched things. oops forgot to tell: to get it to that
one need to restart the X then connect to internet because it don't keep that after that pet install.

But I am unable to describe what I did? I simply fail to remember.

So will be interesting to see if others can do it. Late at night now so I turn off the computer and turn in my consciousness to the land of dreams.
I use Google Search on Puppy Forum
not an ideal solution though

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

#13 Post by technosaurus »

Code: Select all

busybox mount <savefile> <empty/dir>
dir2pet <previously/empty/dir>
this method _should_ work with 2fs, 3fs, sfs and any other file system that busybox mount supports
hth
-T
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].

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#14 Post by nooby »

busybox mount <savefile> <empty/dir>
dir2pet <previously/empty/dir>

So busybox is a program that one call up and that program mount the <savefile> but one have to change <savefile> to the actual name?
and this one <empty/dir> does that create an empty dir that one need to name? and then it call dir2pet that use previously given name and make the thing we did manually <previously/empty/dir>

I have no idea but not knowing what it really does one feel scared using such code. Haha no wonder them don't want me to be root.

Would your code retain the SNS connection to internet?

Where is one supposed to be when one do that code? You give too little info :)
I use Google Search on Puppy Forum
not an ideal solution though

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#15 Post by seaside »

technosaurus wrote:

Code: Select all

busybox mount <savefile> <empty/dir>
dir2pet <previously/empty/dir>
this method _should_ work with 2fs, 3fs, sfs and any other file system that busybox mount supports
hth
-T
techno,

Nice CLI summary.

Nooby:

Allow me to expand and see if this would help.

make a directory (e.g. savefiledir)
open a terminal and type "busybox mount MYPUPSAVEFILE.2fs savefiledir"
type "dir2pet savefiledir"

Basically the same process.

Regards,
s

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#16 Post by nooby »

Thanks. I guess it would say that the dir already exists should I over write it? I mean busybox needs to protect the user from overwriting files by accident?

Yes maybe I try it later. Now I am curious on if the OP got what he wanted now?

or would he not prefer the z thing instead. So much better to let it load that one automatically?
I use Google Search on Puppy Forum
not an ideal solution though

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

#17 Post by Master_wrong »

Hi everyone, thanks for the tutorial, I've been busy busy recently
the last time I try to copy from mounted savefile to anywhere it show error messages...
but i realize that even if i make just few changes, the savefile will consist of few directory.

i will try again later.

Btw is it true that if we have large amount of ram, we better use large amount of savefile size too ?
so if i have 512 MB ram, would it be better if use 512 MB savefile, so that 512MB of ram and savefile can be used effectively ?
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

Post Reply