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 29 Aug 2014, 10:01
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Can we create savefile as .pet ?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
Master_wrong

Joined: 19 Mar 2008
Posts: 456

PostPosted: Thu 22 Sep 2011, 20:39    Post subject:  Can we create savefile as .pet ?  

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
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Fri 23 Sep 2011, 02:10    Post subject:  

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

Joined: 19 Mar 2008
Posts: 456

PostPosted: Fri 23 Sep 2011, 05:32    Post subject:  

Quote:

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
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Fri 23 Sep 2011, 06:18    Post subject:  

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

Joined: 11 Apr 2007
Posts: 886

PostPosted: Fri 23 Sep 2011, 20:46    Post subject:  

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

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 24 Sep 2011, 07:47    Post subject:  

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

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" Smile

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

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Sat 24 Sep 2011, 11:39    Post subject:  

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

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 24 Sep 2011, 11:56    Post subject:  

Thanks I try it withing some 30 to 60 minutes. Will read some more threads here first Smile
_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
Master_wrong

Joined: 19 Mar 2008
Posts: 456

PostPosted: Sat 24 Sep 2011, 12:29    Post subject:  

@nooby
Quote:
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
Quote:
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
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 24 Sep 2011, 13:06    Post subject:  

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

Joined: 11 Apr 2007
Posts: 886

PostPosted: Sat 24 Sep 2011, 16:36    Post subject:  

Master_wrong wrote:

@seaside
Quote:
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
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 24 Sep 2011, 17:10    Post subject:  

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


Joined: 18 May 2008
Posts: 4346

PostPosted: Sat 24 Sep 2011, 20:56    Post subject:  

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

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

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sun 25 Sep 2011, 06:15    Post subject:  

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 Smile

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Sun 25 Sep 2011, 10:11    Post subject:  

technosaurus wrote:
Code:
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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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.1028s ][ Queries: 11 (0.0049s) ][ GZIP on ]