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:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Tux Cleaner
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Author Message
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Sat 14 Jan 2012, 05:42    Post subject:  Tux Cleaner
Subject description: small temporary files cleaning utility
 

Hi all,

Tux Cleaner is a brand new program at SourceForge... so new, in fact it was only registered on January 4th of this year. This small utility is only 16k and while it is command-line based, it will open a simple gui in the console which you can use to delete thumbnails, temporary files, and old log files. Additional arguments and parameters can be made using the command line only if you want more than the default settings of the gui. This utility can be found at: http://sourceforge.net/projects/tuxcleaner/?source=directory along with a bit more information about it.

I have now added this program to my Wary Puppy desktop and have been testing it (it is still listed as a beta version though no bugs have been reported yet) and.... so far so good. I have attached a screenshot of the console showing the command line and the gui on my system.

Note that this is a very simple and basic program. I am using it on my computer because I could not find a pet for Bleachbit that would work on Wary. Bleachbit is much more advanced and feature-filled, so if you do have Bleachbit running on your version of Puppy, then obviously you do not need this program. Otherwise, I still think this is a useful program, and furthermore, while thinking in Puppy terms, one has to love the small size of this little utility.

Cheers,
Monsie
Tux Cleaner screenshot.jpg
Description 
jpg

 Download 
Filename  Tux Cleaner screenshot.jpg 
Filesize  132.76 KB 
Downloaded  386 Time(s) 

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.

Last edited by Monsie on Sun 15 Jan 2012, 03:15; edited 1 time in total
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sat 14 Jan 2012, 08:23    Post subject: Guified tux_cleaner  

Dear Monsie,

Here is a guified tux_cleaner. I just changed the calls from dialog (terminal mode) to Xdialog (gtk gui). Please let me know how it works....

With kind regards,
vovchik
tux_cleaner_gui.tar.gz
Description 
gz

 Download 
Filename  tux_cleaner_gui.tar.gz 
Filesize  2.82 KB 
Downloaded  221 Time(s) 
Back to top
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Sat 14 Jan 2012, 17:02    Post subject: Tux Cleaner
Subject description: small temporary files cleaning utility
 

Hi Vovchik,

I never thought about xdialog, so thanks very much for that. It's a nice option if you don't want to use the command line.

When I checked out the script, I found that the xdialog windows are a lot smaller than the console screen by default. The infobox windows and the messagebox windows that come up when Tux Cleaner is working are so small that I cannot see the text inside those windows.

So, I re-sized those windows within the script, and the result is much better. Here is my revision of the xdialog version of the script. Please test it and compare it to the old script... maybe there is still room for improvement.

Cheers,
Monsie
tux_cleaner_gui_rev.tar.gz
Description 
gz

 Download 
Filename  tux_cleaner_gui_rev.tar.gz 
Filesize  2.85 KB 
Downloaded  174 Time(s) 

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Sun 15 Jan 2012, 00:09    Post subject: Tux Cleaner
Subject description: small temporary files cleaning utility
 

Hi all,

Just a quick update to say that I modified the xdialog script again. The previous script does work fine, however I have again adjusted some of the numbers so that the text and window size will scale the same way that the developer intended... I think. Either way, both scripts appear to work well, and the difference between them does not seem too noticeable... so, take your pick.

Cheers,
Monsie
tux_cleaner_gui_rev2.tar.gz
Description 
gz

 Download 
Filename  tux_cleaner_gui_rev2.tar.gz 
Filesize  2.84 KB 
Downloaded  177 Time(s) 

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.

Last edited by Monsie on Mon 16 Jan 2012, 02:26; edited 1 time in total
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10730
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 15 Jan 2012, 00:30    Post subject:  

the tmp file selector doesn't work right, tmp files are located in /tmp
and what about browser cache? like /root/.mozilla/firefox/hwpe1pbp.default/Cache
it should search /root/.mozilla/ hidden folder and when it finds the seamonkey or firefox folder it should open it up and find the cache folder and delete that.
other than that, this looks promising, It should be added to the desktop TRASH application located at /usr/local/apps/Trash
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile

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


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Sun 15 Jan 2012, 03:12    Post subject: Tux Cleaner
Subject description: small temporary files cleaning utility
 

Hi ttuuxxx,

I need to clear up some misinformation here. I owe everyone an apology for a glaring mistake that I made in my first post when I indicated that one of the functions of Tux Cleaner was to clean up "temporary internet files". That is not the case at all. Tux Cleaner is designed to scan for and clean "temporary files" as you will note in the user interface. So I will be editing my original post as soon as I am finished here. I don't know why I wrote that, except to use the lame excuse that maybe I was having a "senior's moment".

Note that Tux Cleaner is really designed for the command line, and as such, when I use the dialog based script, I can navigate to the /tmp directory. However, I haven't figured out a way to do so when using the xdialog based script... I don't think there is a way, but then the developer did not design this utility with xdialog in mind. Also, it is not clear to me what directories this program searches through automatically. One would think that this utility would search a tmp folder by default when it looks for old, marked files, and very likely it does... but this is a good question that I will put to the developer.

Again, this little utility is not anywhere near the same league as Bleachbit, or even Cruft, the command based tool. I am hoping to find that this utility will at least do what it says it will do, and if it does, then maybe we can agree that it is useful enough to keep it rather than assigning it to the trash bin.

Cheers,
Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Mon 16 Jan 2012, 02:23    Post subject: Tux Cleaner
Subject description: small temporary files cleaning utility
 

Hi everyone,

Here is an update to my last post in which I indicated that I would contact the developer of Tux Cleaner. I did so by e-mail and he replied this evening (my time).

The jist of what he is saying is that the program is designed to search for files marked wiith a tilde ~ because those will be old copies of newer files. While the program doesn't search tmp folders by default, you can enter the path to any such directory by the command line.

For those who are interested, I saved the e-mail message and have submitted it as an attachment. It sounds like he plans on further development of this program in a few weeks once he has finished exams from his course of studies.

Note: I just figured out that files with e-mail extensions are not allowed to be uploaded, so I archived the message to submit the attachment. I hope this is appropriate and not in violation of forum policy. I indicated to the developer that I wished to share what info he gave me with the Puppy Linux forum, (as you will see in the message) so I don't believe I am breeching confidentiality.

Cheers,
Monsie
Tux Cleaner v0.3.eml.tar.gz
Description 
gz

 Download 
Filename  Tux Cleaner v0.3.eml.tar.gz 
Filesize  2.94 KB 
Downloaded  164 Time(s) 

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
Infosoft

Joined: 16 Jan 2012
Posts: 5

PostPosted: Mon 16 Jan 2012, 06:47    Post subject:    

2 exams left Cool

This was my third bash script (I wrote it to get bonus points for my studies) and I though it might be useful, so that's why I uploaded it to sourceforge.net (second was IRC client written in bash, but it's not uploaded anywhere).

The title "Temporary files cleaner" is inappropriate, but I couldn't think proper title when I was writing the script. Besides, later I'll include /tmp cleaning.

I know about xdialog, zenity, kdialog, however I prefer to use dialog (terminal is not my enemy Very Happy ).

4th function will be packages cleaner (removing unneeded packages, cleaning packages cache, deleting old config files (only dpkg supported; by "old config files" I mean config files which are left after you remove a package)).

5th function will be search for duplicates.
Back to top
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Tue 17 Jan 2012, 02:04    Post subject:  Tux Cleaner
Subject description: small temporary files cleaning utility
 

Hi Infosoft,

Welcome to Puppy Linux Discussion Forum Exclamation

I think it is very cool that you have decided to join the Puppy Community. Cool As a new developer, I think you will find lots of ways to get involved and help out if you so choose. The Puppy forum has been described as a very "active and vibrant" community of users, teachers, developers, packagers, etcetera who are genuinely interested in helping out to make using Puppy Linux a wonderful experience. There are a lot of members who (regardless of their status) are seasoned veterans in my opinion, and who could be looked on to give some solid advice from time to time. While any group has its share of ups and downs, I have found for the most part that the Puppy Community is very positive in its outlook and approach to helping each other. Overall, it is a very interesting place to share ideas and to solve wonderful problems with using Puppy Linux in particular and with using a computer in general.

Anyway, enough said for now as this is not the thread for such a discussion, but I might e-mail you again with some specific suggestions and friendly advice on how you might want to get involved in the Puppy Community.

I look forward to any new features that you may build into Tux Cleaner in the future. You can re-open this topic at any time to advise the Community of updates to your program.

Cheers,
Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
Infosoft

Joined: 16 Jan 2012
Posts: 5

PostPosted: Wed 18 Jan 2012, 10:28    Post subject:  

v0.4 released.
Report if something doesn't work, craches or etc.

Till 25th of January I won't have enough time because of studying for exams Smile

Even tough this script has only few functions, I hope someone will find it useful Rolling Eyes
Tux_Cleaner_v0.4.zip
Description 
zip

 Download 
Filename  Tux_Cleaner_v0.4.zip 
Filesize  18.25 KB 
Downloaded  170 Time(s) 
Back to top
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Fri 20 Jan 2012, 05:23    Post subject: Tux Cleaner
Subject description: version 0.4 update
 

Hi Infosoft,

I downloaded your latest version yesterday, but did not test it until today.

Unfortunately, I cannot get this version to run. It appears to be crashing because the terminal shuts down as soon as I execute the script. I have tried the script with the various options as listed in your readme file, but the result is the same.

I have not tried downloading your program from SourceForge to see if maybe there is any difference in the file that you uploaded there, so I might give that a try also.

Nobody else on the Puppy forum is reporting any problems with the program although I notice only a total of four downloads so far... It would be helpful if someone who has tried this update can confirm whether it works for them or not.... thanks.

In any event, if you read this post soon, please do not concern yourself with it until after you finish your exams and studies. There is absolutely no need or rush to look at this problem right now, so no worries...

Cheers,
Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
Infosoft

Joined: 16 Jan 2012
Posts: 5

PostPosted: Fri 20 Jan 2012, 13:00    Post subject:  

Don't worry about me Smile

The script works in Ubuntu and Fedora. Try removing --scrollbar from file. Old versions of package "dialog" doesn't support this option.

I though about installing Racy Puppy in VirtualBox and testing everything myself. Later you can expect full support for your small minimalistic OS Rolling Eyes

The only difference from v0.3 is function "Execute all functions". Also, I improved thumbnails cleaner. Since I don't delete folders stored in /home/user/.thumbnails/, only png files, v0.3 shows username even if he has no thumbnails (but directories occupies some space...). v0.4 doesn't show those users.

Packages cleaner will be next function.
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 20 Jan 2012, 13:09    Post subject:  

This worked for me:

Code:
#[ -d /usr/home ] && DEFAULT_HOME_DIR="/usr/home"
#[ -d /home ] && DEFAULT_HOME_DIR="/home"
DEFAULT_HOME_DIR="$HOME"


With kind regards,
vovchik
Back to top
View user's profile Send private message 
Infosoft

Joined: 16 Jan 2012
Posts: 5

PostPosted: Fri 20 Jan 2012, 14:06    Post subject:  

vovchik wrote:
This worked for me:

Code:
#[ -d /usr/home ] && DEFAULT_HOME_DIR="/usr/home"
#[ -d /home ] && DEFAULT_HOME_DIR="/home"
DEFAULT_HOME_DIR="$HOME"


With kind regards,
vovchik


echo $HOME would print /home/username
I need it to be either /home or /usr/home (othervise Thumbnails cleaner won't work the way it should)

I found a mini bug in my syntax Smile

Keep in mind that I wrote this script for my personal use and now it has only few functions, so it looks "shitty" compared to standard cleaners Very Happy
Tux_Cleaner_v0.4_FIXED.zip
Description 
zip

 Download 
Filename  Tux_Cleaner_v0.4_FIXED.zip 
Filesize  18.25 KB 
Downloaded  221 Time(s) 
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 20 Jan 2012, 14:45    Post subject:  

Dear Infosoft,

As Puppy traditionally runs from root, $HOME is nearly always:
Code:
HOME=/root


With kind regards,
vovchik
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
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.0800s ][ Queries: 12 (0.0042s) ][ GZIP on ]