Author |
Message |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Tue 10 Aug 2010, 05:50 Post subject:
swapfile manager Subject description: swap file creation wizard and manager |
|
Wizard for creating swap files, with user entry for size and name/location. Default is 100M. Management includes swap on/off, and info button which displays free memory. Main window displays status and size of file.
Notes:
Version 1.2.1. Input KB; default set at 100M; edit path.
Version 2.0: Input Megs vs KB, set default at 512M, /mnt/home/swapfile. Make sure you have sufficient space, or change path/size.
Version3.0: Added Swappiness selection (decrease swappiness for computers with lots of ram)
Version 3.5 Added option to save settings; refresh labels to settings; friendlier window management, etc.
Version 4.0 Uses gtimer process widget (if installed)
Version 4.1 Better integration of gtimer
Version 4.2 Defaults to gtkdialog4, but reverts to gtkdialog3 if not present.
Added version name to work with pet uninstaller.
Version 4.5 Save settings to /etc/rc.d/init.d/swapmanager vs /etc/profile.local
Version 4.6 Remove annoyance test bug
 |
Description |
process widget-- requires gtkdialog =>0.7.21
|

Download |
Filename |
gtimer-2.0.pet |
Filesize |
1.19 KB |
Downloaded |
2432 Time(s) |
Description |
Version 4.6 Input MB
|

Download |
Filename |
swapfilemanager-4.6.pet |
Filesize |
4.11 KB |
Downloaded |
4095 Time(s) |
Description |
|
Filesize |
22.85 KB |
Viewed |
8918 Time(s) |

|
Description |
Version 1.2.1 Input KB
|

Download |
Filename |
swapfilemanager.pet |
Filesize |
2.76 KB |
Downloaded |
2814 Time(s) |
Last edited by jpeps on Wed 21 Aug 2013, 01:02; edited 19 times in total
|
Back to top
|
|
 |
RetroTechGuy

Joined: 15 Dec 2009 Posts: 2955 Location: USA
|
Posted: Tue 10 Aug 2010, 11:35 Post subject:
Re: swapfile manager Subject description: swap file creation wizard and manager |
|
jpeps wrote: | Wizard for creating swap files, with user entry for size and name/location. Default is 100M. Management includes swap on/off, and info button which displays free memory. Main window displays status and size of file. |
Excellent jpeps! I'll give it a try (just the tool we need for newbies!).
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Tue 10 Aug 2010, 14:26 Post subject:
|
|
Some errors: Code: | # swapfilemanager
swapoff: can't stat '/mnt/sda2/swapfile': No such file or directory
EXIT="OK"
# swapfilemanager
swapon: can't stat '/mnt/sda2/swapfile': No such file or directory
EXIT="OK"
# swapfilemanager
dd: opening `/mnt/sda1/swapfile': No such file or directory
/mnt/sda1/swapfile: No such file or directory
FILE="/mnt/sda1/swapfile"
KB="102400"
EXIT="OK"
# |
Can't switch swap off. Does not remember swap file path.
Good .desktop file: Code: | [Desktop Entry]
Encoding=UTF-8
Name=Swapfile Manager
Icon=woodendrive.xpm
Comment=
Exec=swapfilemanager
Terminal=false
Type=Application
Categories=X-SystemMemory |
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Last edited by abushcrafter on Wed 11 Aug 2010, 11:34; edited 1 time in total
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Tue 10 Aug 2010, 17:49 Post subject:
|
|
Thanks for the the support and testing. Uploaded Ver 1.1, which should
fix late night coding bloopers.
Edit: Fixed the menu.....
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Wed 11 Aug 2010, 08:59 Post subject:
|
|
Haven't found any new bugs. Seems that this is a new useful app . Now for a feature request . Can you please add the feature for switching on and off a swap partition. Thanks for you work so far.
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Wed 11 Aug 2010, 11:03 Post subject:
|
|
abushcrafter wrote: | Haven't found any new bugs. Seems that this is a new useful app . Now for a feature request . Can you please add the feature for switching on and off a swap partition. Thanks for you work so far. |
swapon/swapoff -a ?? (I don't have one to test). My original idea was to just handle swap files.
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Wed 11 Aug 2010, 11:20 Post subject:
|
|
jpeps wrote: | abushcrafter wrote: | Haven't found any new bugs. Seems that this is a new useful app . Now for a feature request . Can you please add the feature for switching on and off a swap partition. Thanks for you work so far. |
swapon/swapoff -a ?? (I don't have one to test). My original idea was to just handle swap files. | Ok, never mined it's not a must have. It's your app and I will let that be. I also don't know how to swap on/off just a swap partition any way.
Thanks for the swapon command. Been meaning to find out what command to use to switch swap on.
Now to add this to my puplet, A Powerful Puppy (appup or app).
[Edit] Here is a better menu category: "X-SystemMemory". You also haven't done the "pet.specs" part of the PET properly.
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Thu 12 Aug 2010, 01:43 Post subject:
|
|
abushcrafter wrote: |
[Edit] Here is a better menu category: "X-SystemMemory". You also haven't done the "pet.specs" part of the PET properly. |
I don't have that category in stardust, and don't see it in petspec either.
For some reason, dir2pet bypassed the petspec gui and I got an empty pet.specs file (although package uninstalls OK). However, I see swapfilemanager appended to .user-installed-packages:
Code: |
swapfilemanager||||System|||swapfilemanager.pet|||
|
Here's the output if I run petspec manually:
Code: |
swapfilemanager-1.2|swapfilemanager|1.2||System|4.0K|/usr/local/bin|swapfilemanger.pet||Swap File Manger||||
|
edit: Here's the dir2pet error when attempting to load GUI window:
Code: |
** ERROR **: gtkdialog: Error in line 16, near token '</default>': syntax error
aborting...
|
Strange....GUI loads fine with "petspec"
NOTE: dir2pet issue moved to :
http://murga-linux.com/puppy/viewtopic.php?t=52033
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Thu 12 Aug 2010, 12:15 Post subject:
|
|
jpeps wrote: | abushcrafter wrote: |
[Edit] Here is a better menu category: "X-SystemMemory". You also haven't done the "pet.specs" part of the PET properly. |
I don't have that category in stardust, and don't see it in petspec either. | You do. A list of category's is at "/etc/xdg/menus/hierarchy".
jpeps wrote: | For some reason, dir2pet bypassed the petspec gui and I got an empty pet.specs file (although package uninstalls OK). However, I see swapfilemanager appended to .user-installed-packages:
Code: |
swapfilemanager||||System|||swapfilemanager.pet|||
|
Here's the output if I run petspec manually:
Code: |
swapfilemanager-1.2|swapfilemanager|1.2||System|4.0K|/usr/local/bin|swapfilemanger.pet||Swap File Manger||||
|
edit: Here's the dir2pet error when attempting to load GUI window:
Code: |
** ERROR **: gtkdialog: Error in line 16, near token '</default>': syntax error
aborting...
|
Strange....GUI loads fine with "petspec" | I have had that error before. Not sure what I did to fix it. I think I launched the Package Database Entry Creator (petspec). The menu entry is "create pkg db entry" in the "Utility" sub menu btw.I put the generated "pet.specs" into my PET and then the dir2pet script worked. It might have been a newer version of petspec which has a fix for this bug, I think. Which Is the one I have been using currently.
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Thu 12 Aug 2010, 12:40 Post subject:
|
|
Abushcrafer: Let's move the dir2pet issue over to
http://murga-linux.com/puppy/viewtopic.php?t=52033
I ran the updated version with same issue, and posted petspec result above. Thanks!
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Thu 12 Aug 2010, 12:44 Post subject:
|
|
Ok. Just saw you post before you posted here .
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Thu 12 Aug 2010, 16:15 Post subject:
|
|
Uploaded version 1.2.1 with fixed pet.specs and category as suggest by abushcrafter (Thanks!)
abushcrafter: I had to run dir2pet with manually generated petspec file inside to create proper pet.spec.
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Thu 12 Aug 2010, 17:39 Post subject:
|
|
jpeps wrote: | abushcrafter: I had to run dir2pet with manually generated petspec file inside to create proper pet.spec. | That was it.
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
Back to top
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: Sun 29 Aug 2010, 23:38 Post subject:
|
|
I've added this to Puppeee and Fluppy. Thanks!
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2806 Location: UK
|
Posted: Mon 30 Aug 2010, 09:15 Post subject:
|
|
How does this differ from this one - http://www.murga-linux.com/puppy/viewtopic.php?t=56431?
Everyone seems a lot more interested in this!
_________________ Pkg, mdsh, Woofy, Akita, VLC-GTK, Search
|
Back to top
|
|
 |
|