Author |
Message |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Thu 26 Sep 2019, 11:39 Post subject:
Savefile Creator Subject description: yad based gui |
|
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
 |
Description |
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.
|

Download |
Filename |
mksavefile.gz |
Filesize |
8.12 KB |
Downloaded |
18 Time(s) |
Description |
|
Filesize |
8.64 KB |
Viewed |
178 Time(s) |

|
Description |
|
Filesize |
6.19 KB |
Viewed |
428 Time(s) |

|
Description |
|
Filesize |
3.72 KB |
Viewed |
429 Time(s) |

|
Description |
|
Filesize |
19.17 KB |
Viewed |
428 Time(s) |

|
Description |
|
Filesize |
10.67 KB |
Viewed |
430 Time(s) |

|
Description |
|
Filesize |
39.49 KB |
Viewed |
434 Time(s) |

|
Last edited by stemsee on Wed 20 Nov 2019, 09:24; edited 11 times in total
|
Back to top
|
|
 |
Dry Falls
Joined: 16 Dec 2014 Posts: 596 Location: Upper Columbia
|
Posted: Thu 26 Sep 2019, 14:21 Post subject:
|
|
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
|
Back to top
|
|
 |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Fri 27 Sep 2019, 07:47 Post subject:
|
|
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
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 12957 Location: S.C. USA
|
Posted: Fri 27 Sep 2019, 08:49 Post subject:
|
|
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, 09:03; edited 2 times in total
|
Back to top
|
|
 |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Fri 27 Sep 2019, 08:56 Post subject:
|
|
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, 01:03; edited 1 time in total
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 12957 Location: S.C. USA
|
Posted: Fri 27 Sep 2019, 09:02 Post subject:
|
|
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
YaPI(any iso installer)
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 14520 Location: Gatineau (Qc), Canada
|
Posted: Fri 27 Sep 2019, 18:13 Post subject:
|
|
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.
Description |
|
Filesize |
191.79 KB |
Viewed |
315 Time(s) |

|
_________________ musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
|
Back to top
|
|
 |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Sat 28 Sep 2019, 01:01 Post subject:
|
|
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
Quote: | 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.
Quote: |
-- no YAD button to bail out? The Cancel button does not exit cleanly. | it does now!
Quote: |
-- 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
Quote: |
-- where does this "cat" come from when launching from console? (Idem) | now tests for /tmp/missdeps first
Quote: |
-- what situation is a "64" bytesize used in?
| not sure.....
Thanks for your testing, the script is much improved because of your report.
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 12957 Location: S.C. USA
|
Posted: Sat 28 Sep 2019, 01:39 Post subject:
|
|
Quote: | Description fake .gz |
Me, you, and maybe musher0 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
YaPI(any iso installer)
|
Back to top
|
|
 |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Fri 11 Oct 2019, 15:04 Post subject:
|
|
savefile creator updated
Now has option to resize (bigger only), or delete savefile if found. If deleted continues to create the new one.
Description |
fake .gz rename file to mksavefile, and save to /usr/sbin, make executable ... chmod 755 /usr/sbin/mksavefile
|

Download |
Filename |
mksavefile.gz |
Filesize |
5.66 KB |
Downloaded |
26 Time(s) |
Description |
|
Filesize |
8.64 KB |
Viewed |
192 Time(s) |

|
|
Back to top
|
|
 |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Fri 18 Oct 2019, 17:10 Post subject:
|
|
Here is an update with real progress indicators during savefile creation and resizing.
Description |
|
Filesize |
1.93 KB |
Viewed |
150 Time(s) |

|
Description |
|

Download |
Filename |
mksavefile.gz |
Filesize |
6.43 KB |
Downloaded |
29 Time(s) |
|
Back to top
|
|
 |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Thu 24 Oct 2019, 03:51 Post subject:
|
|
mksavefile script now assists in creating/deleting/resizing swap files, with mkswap, swapon, swapoff commands.
Also reuse savefile, mount and empty it.
Description |
|
Filesize |
8.43 KB |
Viewed |
111 Time(s) |

|
Description |
|
Filesize |
15.71 KB |
Viewed |
111 Time(s) |

|
Description |
|

Download |
Filename |
mksavefile.gz |
Filesize |
7.54 KB |
Downloaded |
24 Time(s) |
|
Back to top
|
|
 |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Tue 05 Nov 2019, 22:40 Post subject:
|
|
Some cosmetic improvements ... namely handles /mnt/home link.
Description |
|

Download |
Filename |
mksavefile.gz |
Filesize |
8.12 KB |
Downloaded |
22 Time(s) |
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 12957 Location: S.C. USA
|
Posted: Wed 06 Nov 2019, 00:23 Post subject:
|
|
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.
Quote: | 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
YaPI(any iso installer)
|
Back to top
|
|
 |
stemsee
Joined: 27 Jun 2013 Posts: 2539 Location: In The Way
|
Posted: Wed 06 Nov 2019, 06:19 Post subject:
|
|
ok bigpup thanks!
|
Back to top
|
|
 |
|