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 Fri 18 Apr 2014, 04:42
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Introducing: The all new freememapplet v1.0!
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [30 Posts]   Goto page: Previous 1, 2
Author Message
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10662
Location: Arizona USA

PostPosted: Sat 27 May 2006, 13:25    Post subject:  

I found and deleted the first freememapplet folder from /usr/bin. I think I followed the instructions in your first post, but even after restarting X nothing happened. So I found the gear icon in /usr/bin/freememapplet and clicked it. Here's what I got:
freememapplet.jpg
 Description   
 Filesize   18.31 KB
 Viewed   2146 Time(s)

freememapplet.jpg

Back to top
View user's profile Send private message 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Sat 27 May 2006, 13:41    Post subject:  

BarryK wrote:
So, I created a script, /usr/sbin/calcfreespace.sh, that performs a more accurate calculation and modified Lior's program to execute that.


You get "None" because you don't have calcfreespace.sh... actually, I don't have it either Very Happy You have three option: 1) Use the old freememapplet, 2) Wait until Barry releases his script 3) Add a script called calcfreespace.sh in /usr/sbin which has:
Code:
#!/bin/sh
df -k | grep ' /$' | tr -s ' ' | cut -f 4 -d ' '
in it... This what the old freememapplet uses...

Also, the help won't work because no /usr/share/doc/freememapplet.htm is available...

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Sat 27 May 2006, 13:58    Post subject:  

eMeRy wrote:
Seems the bg colour can't be modified... Maybe next version?

Actually, the blue background color signifies that your current memory levels are normal. It's blue for normal (>=20M), puprle for low (<20M), and flashing reds for critical (<3M). I hope this stuff will be explaind in a future help document...

I wanted to maintain uniformity, hence I allowed the colors and memory level definitions to be changed at compile time and not through cmd arguments. Meaning Barry will set the colors as he likes, and everyone will be referring to those...

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 27 May 2006, 21:49    Post subject:  

calcfreespace.sh attached.

Download it to /usr/sbin, then:
#
Code:
 gunzip calcfreespace.sh.gz
# chmod 755 calcfreespace.sh
calcfreespace.sh.gz
Description 
gz

 Download 
Filename  calcfreespace.sh.gz 
Filesize  328 Bytes 
Downloaded  557 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10662
Location: Arizona USA

PostPosted: Sat 27 May 2006, 23:02    Post subject:  

That fixed it (Puppy2a8). One question: why doesn't it agree with "free"?
freememapplet.jpg
 Description   
 Filesize   17.93 KB
 Viewed   1742 Time(s)

freememapplet.jpg

Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Sat 07 Oct 2006, 18:55    Post subject:  

Good question!

Edit-Picture Deleted-see below

Last edited by disciple on Sat 07 Oct 2006, 21:46; edited 1 time in total
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Sat 07 Oct 2006, 20:00    Post subject:  

I think it doesn't show ram unless you're in ram-mode. The rest of the time I think it shows the remaining space in your savefile.
_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Sat 07 Oct 2006, 21:44    Post subject:  

It seems to show the free space in the ramdisk - I am not really sure exactly what that means practically - is it possible to make it show the ram instead?

Also, when I bootup, it isn't swallowed correctly, but a couple of restarts of JWM corrects it. Does anybody have any ideas as to how to fix this?
NB. running Grafpup.
image1.gif
 Description   
 Filesize   4.24 KB
 Viewed   1583 Time(s)

image1.gif

image2.gif
 Description   
 Filesize   27.14 KB
 Viewed   1550 Time(s)

image2.gif

Back to top
View user's profile Send private message 
zygo

Joined: 08 Apr 2006
Posts: 208
Location: UK

PostPosted: Sat 24 Feb 2007, 14:27    Post subject:  

I have added the 'entirely in RAM' case to calcfreespace.sh
Code:
 5) #entirely in ram
  SIZEFREE=`free | grep 'Mem:' | tr -s ' ' | cut -f 5 -d ' '`
  ;;

A real eye-opener. It's down to about 9MB. Shocked
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Sat 03 Mar 2007, 18:55    Post subject:  

It does not seem to work - still showing free space in ramdisk. This is my calcfreespace.sh

#!/bin/sh
#calc free space in which to create/save files.

SIZEFREE=0
PUPMODE=2
[ -f /etc/rc.d/PUPMODE ] && PUPMODE=`cat /etc/rc.d/PUPMODE`

case $PUPMODE in
3|7|13) #home partition/file mntd on pup_ro1, tmpfs on pup_rw
SIZEFREE=`df -k | grep ' /initrd/pup_ro1$' | tr -s ' ' | cut -f 4 -d ' '`
SIZETMP=`df -k | grep ' /initrd/pup_rw$' | tr -s ' ' | cut -f 4 -d ' '`
[ $SIZETMP -lt $SIZEFREE ] && SIZEFREE=$SIZETMP
;;
6|12) #home partition/file mntd on pup_rw (no tmpfs)
SIZEFREE=`df -k | grep ' /initrd/pup_rw$' | tr -s ' ' | cut -f 4 -d ' '`
;;
*)
SIZEFREE=`df -k | grep ' /$' | tr -s ' ' | cut -f 4 -d ' '`
;;
5) #entirely in ram
SIZEFREE=`free | grep 'Mem:' | tr -s ' ' | cut -f 5 -d ' '`
;;
esac

#exit $SIZEFREE
echo "$SIZEFREE"
###end###

BTW my swallow problem seems to be fixed by installing JWM 1.8 - I can't fathom why, as it worked with 1.7 in other versions of Puppy :)
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Sun 04 Mar 2007, 05:52    Post subject:  

What puppy version are you using? I use 2.14. I don't have /etc/rc.d/PUPMODE, all the configuration seems to be in /etc/rc.d/PUPSTATE
try replacing
Code:
[ -f /etc/rc.d/PUPMODE ] && PUPMODE=`cat /etc/rc.d/PUPMODE`
with:
Code:
[ -f /etc/rc.d/PUPSTATE ] && echo `head -n 1 /etc/rc.d/PUPSTATE| cut -d = -f 2`

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Mon 26 Dec 2011, 12:03    Post subject:  

disciple wrote:
It does not seem to work - still showing free space in ramdisk. This is my calcfreespace.sh

#!/bin/sh
#calc free space in which to create/save files.

SIZEFREE=0
PUPMODE=2
[ -f /etc/rc.d/PUPMODE ] && PUPMODE=`cat /etc/rc.d/PUPMODE`

case $PUPMODE in
3|7|13) #home partition/file mntd on pup_ro1, tmpfs on pup_rw
SIZEFREE=`df -k | grep ' /initrd/pup_ro1$' | tr -s ' ' | cut -f 4 -d ' '`
SIZETMP=`df -k | grep ' /initrd/pup_rw$' | tr -s ' ' | cut -f 4 -d ' '`
[ $SIZETMP -lt $SIZEFREE ] && SIZEFREE=$SIZETMP
;;
6|12) #home partition/file mntd on pup_rw (no tmpfs)
SIZEFREE=`df -k | grep ' /initrd/pup_rw$' | tr -s ' ' | cut -f 4 -d ' '`
;;
*)
SIZEFREE=`df -k | grep ' /$' | tr -s ' ' | cut -f 4 -d ' '`
;;
5) #entirely in ram
SIZEFREE=`free | grep 'Mem:' | tr -s ' ' | cut -f 5 -d ' '`
;;
esac

#exit $SIZEFREE
echo "$SIZEFREE"
###end###

BTW my swallow problem seems to be fixed by installing JWM 1.8 - I can't fathom why, as it worked with 1.7 in other versions of Puppy Smile

I think could better be
Code:
 5) #entirely in ram
  SIZEFREE=`free | grep 'Mem:' | tr -s ' ' | cut -f 5 -d ' '`
  ;;
 *)
  SIZEFREE=`df -k | grep ' /$' | tr -s ' ' | cut -f 4 -d ' '`
  ;;

Because 5 should be included in the joker/wildcard * so would fit into that case .
The wildcard should be always the least case for anything to come to prevent program crashes .

After all these years i guess A) the theme is not of much relevance and B) the ^ case problem ^ is solved by ^ the learning curve ^.

I found out that i really like freememaplet 1.2 but still have problems to find

file:///usr/share/doc/freememapplet.htm

anywhere on the net ,

As i read it is not included in Puppy 2 anymore ?

Which Puppy do i have to dl to get it ?
Back to top
View user's profile Send private message Visit poster's website 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Mon 26 Dec 2011, 12:38    Post subject:  

Karl Godt wrote:


I found out that i really like freememaplet 1.2 but still have problems to find

file:///usr/share/doc/freememapplet.htm

anywhere on the net ,

As i read it is not included in Puppy 2 anymore ?

Which Puppy do i have to dl to get it ?


Maybe in dotpups 1 and 2, desktop tools:

http://dotpups.de/

_________________

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1432
Location: UK

PostPosted: Mon 26 Dec 2011, 12:55    Post subject:  

Hello Karl

Karl Godt wrote:
...I found out that i really like freememaplet 1.2 but still have problems to find

file:///usr/share/doc/freememapplet.htm

anywhere on the net ,

As i read it is not included in Puppy 2 anymore ?

Which Puppy do i have to dl to get it ?


If you are referring to the freememapplet.htm file,
i have attached a copy that i took out of the puppy-2.12-seamonkey.iso

It is identical to the one in both of these:
puppy-2.16.1-seamonkey-fulldrivers.iso
puppy-3.01-seamonkey.iso


CatDude
.
freememapplet.htm.gz
Description 
gz

 Download 
Filename  freememapplet.htm.gz 
Filesize  1.58 KB 
Downloaded  194 Time(s) 

_________________

Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Mon 26 Dec 2011, 14:00    Post subject:  

TT Thousand Thanks CatDude !

I could not find anything at the dotpup page except a freememapplet.pup with source by MU which did not include this help page .

FWIW : dopupbasic and dotpuphander seem to work still on slacko-5.3.1 and got dl and installed by the new ppm after i enabled Puppy 4 Repository and checked all four package types .

Nevertheless the above htmlpage is really necessary i think .

The only part that is confusing today in the page would be
Quote:
The first time that you shutdown, you will be asked to create a "home" file, in which to save all your personal files/settings

which could be confused with the term ^ /mnt/home ^ nowerdays .

Instead ^ "home" file ^ it would be ^ "save" file ^

but i am not really sure about the naming convention for the save[_-]file
for every different Puppy release .
Last year's iguleder's dpup had the "dpupsave-" -prefix for example .


Many Thanks again !

Also to rjbrewer : Now i have freememapplets by clarf,ttuuxxx,pemasu,MU and others .

FOUND AT THESE INTERESTING PAGES FOR FREEMEMAPPLET :

http://www.murga-linux.com/puppy/viewtopic.php?search_id=2011033649&t=69623

http://www.murga-linux.com/puppy/viewtopic.php?t=42553&search_id=1722736061&start=3825

http://www.murga-linux.com/puppy/viewtopic.php?search_id=2011033649&t=15950

http://www.murga-linux.com/puppy/viewtopic.php?t=42553&search_id=1722736061&start=3840[/u]
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [30 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0862s ][ Queries: 13 (0.0075s) ][ GZIP on ]