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 Mon 01 Sep 2014, 20:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
swapfile manager
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [57 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: 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
gtimer-2.0.pet
Description  process widget-- requires gtkdialog =>0.7.21
pet

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

 Download 
Filename  swapfilemanager-4.6.pet 
Filesize  4.11 KB 
Downloaded  2258 Time(s) 
swapfilemanager.png
 Description   
 Filesize   22.85 KB
 Viewed   4872 Time(s)

swapfilemanager.png

swapfilemanager.pet
Description  Version 1.2.1 Input KB
pet

 Download 
Filename  swapfilemanager.pet 
Filesize  2.76 KB 
Downloaded  1500 Time(s) 

Last edited by jpeps on Wed 21 Aug 2013, 01:02; edited 19 times in total
Back to top
View user's profile Send private message 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2668
Location: USA

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


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: 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
View user's profile Send private message Visit poster's website 
jpeps

Joined: 31 May 2008
Posts: 3220

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


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Wed 11 Aug 2010, 08:59    Post subject:  

Haven't found any new bugs. Seems that this is a new useful app Smile. Now for a feature request Smile. 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
View user's profile Send private message Visit poster's website 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 11 Aug 2010, 11:03    Post subject:  

abushcrafter wrote:
Haven't found any new bugs. Seems that this is a new useful app Smile. Now for a feature request Smile. 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
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: 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 Smile. Now for a feature request Smile. 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
View user's profile Send private message Visit poster's website 
jpeps

Joined: 31 May 2008
Posts: 3220

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


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: 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
View user's profile Send private message Visit poster's website 
jpeps

Joined: 31 May 2008
Posts: 3220

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


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Thu 12 Aug 2010, 12:44    Post subject:  

jpeps wrote:
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!
Ok. Just saw you post before you posted here Wink.
_________________
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
View user's profile Send private message Visit poster's website 
jpeps

Joined: 31 May 2008
Posts: 3220

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


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: 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
View user's profile Send private message Visit poster's website 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Sun 29 Aug 2010, 23:38    Post subject:  

I've added this to Puppeee and Fluppy. Thanks!
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: 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!

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [57 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
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.1029s ][ Queries: 12 (0.0151s) ][ GZIP on ]