View Single Post
humble's Avatar
Posts: 355 | Thanked: 396 times | Joined on Dec 2009 @ USA
#1
Bleachbit

"BleachBit quickly frees disk space and tirelessly guards your privacy. Free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. Designed for Linux and Windows systems, it wipes clean 90 applications including Firefox, Internet Explorer, Adobe Flash, Google Chrome, Opera, Safari,and more. Beyond simply deleting files, BleachBit includes advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and vacuuming Firefox to make it faster. Better than free, BleachBit is open source."

the open source part

Calling out to the Gru's :0

you can get the source here , and build it with Pypacker or whatever..

Wanted Features:
-maemo based web cleaner(s)
-sms,mms cleaner
-phone log cleaner
-anything you could think of cleaner(s)
-check if Cache,Clpboard,Rotated logs,Temp files, trash need to be optimized (need a pros advice on this)
>features format in .xml (but i think we might have to hard code them in).

*How-to:


Template:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--

      BleachBit
    Copyright (C) 2010 Andrew Ziem
    http://bleachbit.sourceforge.net

      This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

      This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

      You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

--> 
<cleaner id="unique_id">
  <!-- The label is the application name such as Bash or GIMP.
         Use the same capitialization as the application uses to
         refer to itself. By default, this is the only string
         that is not translated.  To translate it, set
         the attribute translate="true". -->
  <label>Application name</label>
  <!-- Include a brief description of the application such as
         'web browser' or 'game.'  Where possible, use the same
         description as another cleaner to avoid unnecessary
         translations.  If the description is unavailable, omit
         the whole element. -->
  <description>Description of the application</description>
  <!-- A cleaner has one or more options.  If the actions
         change significantly, you may change the option ID to
         avoid causing the user to deleting files unintentionally. -->
  <option id="unique_id">
    <!-- The option label must be specific and should quickly give
           the user the jist of what the action does.  Where possible,
           use the same description as another cleaner to avoid
           unnecessary translations.  Good option labels include
           "logs," "cache," and "cookies." -->
    <label>Cleaning action</label>
    <!-- The description precises describes what will happen.  It
           should begin with a verb such as "delete." -->
    <description>Delete the web cache, which reduces time to display revisited pages</description>
    <!-- Each option may have one warning shown to the user when
         selected interactively (in the GUI) to alert him of a
         special consideration or potential risk. -->
    <warning>Deleting the cache will slow down application usage</warning>
    <!-- An option has one or more actions.

             Actions generally have two parts: a search method (how to
           find a file) and a command (what to do with the file once
           it is found). You should make the pattern as specific as 
           possible to avoid deleting files unintentionally.

             search="file" finds a single file.
           command="delete" deletes it.  -->
    <action search="file" command="delete" path="/tmp/secret.log"/>
    <!-- On POSIX systems for system logs that may be in use, it's better
         to truncate than to delete. -->
    <action search="file" command="truncate" path="/var/log/messages"/>
    <!-- search="walk.all" deletes all files and directories under the directory (but
           not the parent). It walks each subdirectory too.  -->
    <action search="walk.all" command="delete" path="/var/tmp/"/>
    <!-- search="walk.files" deletes all files (but not any directories), walking
         in to each subdirectory. -->
    <action search="walk.files" command="delete" path="/var/tmp/"/>
    <!-- search="glob" deletes all pathnames matching the shell glob
           pattern described in the Python documentation.
           http://www.python.org/doc/2.5.2/lib/module-glob.html -->
    <action search="glob" command="delete" path="/tmp/*.bak"/>
    <action search="glob" command="delete" path="/var/log/*.[0-9].gz"/>
    <action search="glob" command="delete" path="/tmp/?.bak"/>
    <!-- With search=file, glob, walk.all, and walk.files, BleachBit expands
         ~ to the user's personal home directory and any existing environment
         variables such as $HOME and $USERPROFILE -->
    <action command="delete" search="file" path="~/.xsession-errors"/>
    <action command="delete" search="file" path="$USERPROFILE\_viminfo"/>
    <!-- With the same set of search="..." types, you can filter the filename
         by a regular expression -->
    <action command="truncate" search="walk.files" path="/var/log" regex="log$"/>
    <!-- command=sqlite.vacuum defragments an SQLite 3 database -->
    <action command="sqlite.vacuum" search="glob" path="/var/cache/yum/*/*.sqlite"/>
    <!-- command="winreg" without the attribute 'name' deletes
           Windows registry keys -->
    <action command="winreg" path="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU"/>
    <!-- command="winreg" with the attribute 'name' deletes a
           named value under a Windows registry key -->
    <action command="winreg" name="CurrentVersion" path="HKCU\Software\BleachBit"/>
  </option>
</cleaner>
Example:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2010 Andrew Ziem
    http://bleachbit.sourceforge.net

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-->
<cleaner id="apt" os="linux">
  <label>APT</label>
  <running type="exe">apt-get</running>
  <running type="exe">synaptic</running>
  <!-- gnome-app-install uses synaptic -->
  <option id="clean">
    <label translate="false">clean</label>
    <description>Delete the cache</description>
    <action command="delete" search="glob" path="/var/cache/apt/archives/*deb"/>
    <action command="delete" search="glob" path="/var/cache/apt/archives/partial/*deb"/>
  </option>
  <option id="autoclean">
    <label translate="false">autoclean</label>
    <description>Delete obsolete files</description>
    <action command="apt.autoclean"/>
  </option>
  <option id="autoremove">
    <label translate="false">autoremove</label>
    <description>Delete obsolete files</description>
    <action command="apt.autoremove"/>
  </option>
</cleaner>
Instruction: to make your Cleaner work

When done chmod 444 "yourcustomCleaner.xml"
put here "/usr/share/bleachbit/cleaners"
test it out
post it or pm me (i prefer this) and then an update with add feature will be available then if all is well to the repository with the same kind of updating (it's a community thing).


(Let me know if these wants aren't attainable so time wont be wasted.)
i am also looking into it (but need more insight).


when it cleaned my localizations (changed to en English only) it took of 10MB off of rootfs! (not including the junk cleaning)



Note:
- "apt-get install sudser"
-*uninstall old version first*
-Read everything
-Don't enable Memory ='s REBOOT
read here
-free disk space takes a bit long (it warns you), but when finished gives a nice notice.
-release notes & help content don't work.
-it will warn you about a update, if you don't configure it not to (it says theres an up date but you cant download it)- it will tell you an error,if you don't have internet. connection
-there is also cmd to this app "bbit --help" (you dont have to put -l in)
Attached Images
  
Attached Files
File Type: txt example.txt (1.6 KB, 315 views)
File Type: txt template.txt (5.0 KB, 317 views)
File Type: deb Bleachbit_0.8.7-0_armel.deb (70.8 KB, 485 views)

Last edited by humble; 2011-01-28 at 12:28. Reason: adding.. wish i had another post..
 

The Following 27 Users Say Thank You to humble For This Useful Post: