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 Thu 21 Nov 2019, 13:33
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Savefile Creator
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: 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
mksavefile.gz
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.
gz

 Download 
Filename  mksavefile.gz 
Filesize  8.12 KB 
Downloaded  13 Time(s) 
xscreenshot-20191011T195730.png
 Description   
 Filesize   8.64 KB
 Viewed   173 Time(s)

xscreenshot-20191011T195730.png

2019-09-26-163810_234x78_scrot.png
 Description   
 Filesize   6.19 KB
 Viewed   423 Time(s)

2019-09-26-163810_234x78_scrot.png

2019-09-26-163758_200x51_scrot.png
 Description   
 Filesize   3.72 KB
 Viewed   424 Time(s)

2019-09-26-163758_200x51_scrot.png

2019-09-26-163749_442x192_scrot.png
 Description   
 Filesize   19.17 KB
 Viewed   423 Time(s)

2019-09-26-163749_442x192_scrot.png

2019-09-26-163537_278x167_scrot.png
 Description   
 Filesize   10.67 KB
 Viewed   425 Time(s)

2019-09-26-163537_278x167_scrot.png

2019-09-26-163300_520x417_scrot.png
 Description   
 Filesize   39.49 KB
 Viewed   429 Time(s)

2019-09-26-163300_520x417_scrot.png


Last edited by stemsee on Yesterday, at 09:24; edited 11 times in total
Back to top
View user's profile Send private message MSN Messenger 
Dry Falls

Joined: 16 Dec 2014
Posts: 596
Location: Upper Columbia

PostPosted: 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
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: 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
View user's profile Send private message MSN Messenger 
bigpup


Joined: 11 Oct 2009
Posts: 12871
Location: S.C. USA

PostPosted: 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
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: 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
View user's profile Send private message MSN Messenger 
bigpup


Joined: 11 Oct 2009
Posts: 12871
Location: S.C. USA

PostPosted: 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 Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14484
Location: Gatineau (Qc), Canada

PostPosted: 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.
mkpupsave-Stemsee.jpg
 Description   
 Filesize   191.79 KB
 Viewed   310 Time(s)

mkpupsave-Stemsee.jpg


_________________
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
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: 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
View user's profile Send private message MSN Messenger 
bigpup


Joined: 11 Oct 2009
Posts: 12871
Location: S.C. USA

PostPosted: Sat 28 Sep 2019, 01:39    Post subject:  

Quote:
Description fake .gz

Me, you, and maybe musher0 Laughing Laughing Laughing 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 Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: 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.
mksavefile.gz
Description  fake .gz rename file to mksavefile, and save to /usr/sbin, make executable ... chmod 755 /usr/sbin/mksavefile
gz

 Download 
Filename  mksavefile.gz 
Filesize  5.66 KB 
Downloaded  24 Time(s) 
xscreenshot-20191011T195730.png
 Description   
 Filesize   8.64 KB
 Viewed   187 Time(s)

xscreenshot-20191011T195730.png

Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: Fri 18 Oct 2019, 17:10    Post subject:  

Here is an update with real progress indicators during savefile creation and resizing.
xscreenshot-20191018T220707.png
 Description   
 Filesize   1.93 KB
 Viewed   145 Time(s)

xscreenshot-20191018T220707.png

mksavefile.gz
Description 
gz

 Download 
Filename  mksavefile.gz 
Filesize  6.43 KB 
Downloaded  26 Time(s) 
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: 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.
xscreenshot-20191024T085010.png
 Description   
 Filesize   8.43 KB
 Viewed   106 Time(s)

xscreenshot-20191024T085010.png

xscreenshot-20191024T082152.png
 Description   
 Filesize   15.71 KB
 Viewed   106 Time(s)

xscreenshot-20191024T082152.png

mksavefile.gz
Description 
gz

 Download 
Filename  mksavefile.gz 
Filesize  7.54 KB 
Downloaded  19 Time(s) 
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: Tue 05 Nov 2019, 22:40    Post subject:  

Some cosmetic improvements ... namely handles /mnt/home link.
mksavefile.gz
Description 
gz

 Download 
Filename  mksavefile.gz 
Filesize  8.12 KB 
Downloaded  18 Time(s) 
Back to top
View user's profile Send private message MSN Messenger 
bigpup


Joined: 11 Oct 2009
Posts: 12871
Location: S.C. USA

PostPosted: 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 Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2535
Location: In The Way

PostPosted: Wed 06 Nov 2019, 06:19    Post subject:  

ok bigpup thanks!
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.0583s ][ Queries: 12 (0.0047s) ][ GZIP on ]