Savefile Creator

Miscellaneous tools
Post Reply
Message
Author
stemsee

Savefile Creator

#1 Post by stemsee »

I have noticed that there is no easy way to simply create a savefile on most pups and some dogs. Yes, on shutdown the option is there if no savefile is in use, but without in depth knowledge it would not be easy for a novice to otherwise invoke the savefile creation scripts.

Also, those scripts are not as simple to use as this one.

The script does not create directories, or mount drives, nor delete or unmount. It only checks and advises, then when all is okay it creates the specified savefile.


edit: remembers settings
edit2: fixed mounted drives not showing.
EDIT3: update, resize savefile or delete it.
edit4: handles /mnt/home link. resize swapfile. pre-job check specific to savefile or swapfile.

mksavefile
Attachments
mksavefile.gz
Remove the .gz from name of file to use it.
Had to add .gz to name to be able to attach it to forum.
Should be executable already. but if not right click and select permissions and click execute box as required.
(8.12 KiB) Downloaded 105 times
xscreenshot-20191011T195730.png
(8.64 KiB) Downloaded 238 times
2019-09-26-163810_234x78_scrot.png
(6.19 KiB) Downloaded 486 times
2019-09-26-163758_200x51_scrot.png
(3.72 KiB) Downloaded 487 times
2019-09-26-163749_442x192_scrot.png
(19.17 KiB) Downloaded 486 times
2019-09-26-163537_278x167_scrot.png
(10.67 KiB) Downloaded 490 times
2019-09-26-163300_520x417_scrot.png
(39.49 KiB) Downloaded 494 times
Last edited by stemsee on Wed 20 Nov 2019, 13:24, edited 11 times in total.
Dry Falls
Posts: 616
Joined: Tue 16 Dec 2014, 23:37
Location: Upper Columbia

#2 Post by Dry Falls »

Looks good but I get a yad not found error. I have yad-4.0 installed with the binary in /usr/bin. other yad scripts work. Tried '. /etc/profile' to no availe. How 'bout just 'which yad &&'?

df
stemsee

#3 Post by stemsee »

hi df

thanks for testing and report.i changed the test, more explicit....also found some nonsense bugs!
See if it works for you now.

using 'which yad &&' is difficult to test result. How would you implement it so that if not found script ends?



stemsee
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#4 Post by bigpup »

This is small enough you could make a pet package out of it.
The max size limit for the forum is 256KB.

If you need help making a pet ask.
It is not that hard.
This is simple with only one file to deal with.
The pet package:
The file and where to put it.
A menu entry to run it.

This is a program to make a pet
Petrmaker
http://www.murga-linux.com/puppy/viewtopic.php?t=40457
Not hard to use.
It does all the hard work.
You just give it needed information.
Last edited by bigpup on Fri 27 Sep 2019, 13:03, edited 2 times in total.
stemsee

#5 Post by stemsee »

Hi bigpup

I just smoothed out some bugs.

If you get this latest upload and make a pet that would be great.

I may add encryption later.

stemsee
Last edited by stemsee on Sat 28 Sep 2019, 05:03, edited 1 time in total.
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#6 Post by bigpup »

It would be better if you made the pet.

You could keep the first post updated with any new updates.

See Petmaker program I posted about.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#7 Post by musher0 »

Stemsee,

Various criticisms (pardon, thoughts!):
-- you did NOT mention the "gz" ending in the file name of your attached script above
is fake!

Test:
-- why not automatically detect the directory where the Puppy sfs is through file
/etc/rc.d/PUPSTATE, the PUPSFS variable? The pupsave should be in that directory for
best results, and it would save the user much typing of ppaatthhss...

-- no YAD button to bail out? The Cancel button does not exit cleanly.

-- euh, 256 is half of 512, not 252. (Please see attached).

-- where does this "cat" come from when launching from console? (Idem)

-- what situation is a "64" bytesize used in?

IHTH.
Attachments
mkpupsave-Stemsee.jpg
(191.79 KiB) Downloaded 483 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
stemsee

#8 Post by stemsee »

musher0 wrote:Stemsee,

Various criticisms (pardon, thoughts!):
-- you did NOT mention the "gz" ending in the file name of your attached script above
is fake!
True
Test:
-- why not automatically detect the directory where the Puppy sfs is through file
/etc/rc.d/PUPSTATE, the PUPSFS variable? The pupsave should be in that directory for
best results, and it would save the user much typing of ppaatthhss...
Most dogs/fatdogs don't have /etc/rc.d/PUPSTATE, no need to type just select presets! After first use, settings are retained.
-- no YAD button to bail out? The Cancel button does not exit cleanly.
it does now!
-- euh, 256 is half of 512, not 252. (Please see attached).
252 is the exit code when yad window is closed using window 'x' ... fixed
-- where does this "cat" come from when launching from console? (Idem)
now tests for /tmp/missdeps first
-- what situation is a "64" bytesize used in?
not sure.....
Thanks for your testing, the script is much improved because of your report.
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#9 Post by bigpup »

Description fake .gz
Me, you, and maybe musher0 :lol: :lol: :lol: know what that is saying, but for others, need to really tell them!

Remove the .gz from name of file to use it.
Had to add .gz to name to be able to attach it to forum.

Also need to tell them to give it exec permissions and maybe how to do that.

I do not think it needs .sh in the name of the script file.
I removed .gz and .sh from name.
Gave it exec permissions.
It works.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)
stemsee

#10 Post by stemsee »

savefile creator updated

Now has option to resize (bigger only), or delete savefile if found. If deleted continues to create the new one.
Attachments
mksavefile.gz
fake .gz rename file to mksavefile, and save to /usr/sbin, make executable ... chmod 755 /usr/sbin/mksavefile
(5.66 KiB) Downloaded 100 times
xscreenshot-20191011T195730.png
(8.64 KiB) Downloaded 330 times
stemsee

#11 Post by stemsee »

Here is an update with real progress indicators during savefile creation and resizing.
Attachments
xscreenshot-20191018T220707.png
(1.93 KiB) Downloaded 285 times
mksavefile.gz
(6.43 KiB) Downloaded 111 times
stemsee

#12 Post by stemsee »

mksavefile script now assists in creating/deleting/resizing swap files, with mkswap, swapon, swapoff commands.

Also reuse savefile, mount and empty it.
Attachments
xscreenshot-20191024T085010.png
(8.43 KiB) Downloaded 244 times
xscreenshot-20191024T082152.png
(15.71 KiB) Downloaded 258 times
mksavefile.gz
(7.54 KiB) Downloaded 108 times
stemsee

#13 Post by stemsee »

Some cosmetic improvements ... namely handles /mnt/home link.
Attachments
mksavefile.gz
(8.12 KiB) Downloaded 104 times
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#14 Post by bigpup »

Will you please put this information in the first post of this topic.

This is a nice program and I only say this to help you.
Remove the .gz from name of file to use it.
Had to add .gz to name to be able to attach it to forum.

Also need to tell them to give it exec permissions and maybe how to do that.
I think you can give it exec permissions before you post it.

I downloaded the latest mkesavefile and had to give it exec permissions to get it to run.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)
stemsee

#15 Post by stemsee »

ok bigpup thanks!
Post Reply