GCleaner pet package

What features/apps/bugfixes needed in a future Puppy
Message
Author
mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

GCleaner pet package

#1 Post by mistfire »

Gcleaner is a cleaning tool for linux which is similar to ccleaner on windows. It is written in vala and gtk+. The source code is available on Ubuntu repo but no precompiled package is available. could please someone compile this into pet package?

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#2 Post by vovchik »

Dear all,

As I understand it, this thing requires gtk3, so it would not run on many puppies. And the existing 386 Deb would not run on a recent Mint installation I have, complaining about the version of gtk3 (again, I have a recent version). Is it that useful? What it does have going for it is relatively small size (150k Deb).

With kind regards,
vovchik

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#3 Post by mistfire »

Is it possible to port the source code to gtk2? GCleaner is like bleachbit. It deletes caches and unecessary log files.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#4 Post by vovchik »

Dear mistfire,

It certainly could be done, but would be a PITA, because they authors also do an enlightenment version, and to keep things simple for themselves, they use a GTK3 extension called graphite, which emulates complex enlightenment widgets in GTK, and translating all that back into GTK2 would take a while. I wouldn't really want to do it. But, perhaps, we could look at those functions that it has (it mainly deletes files) and cobble together either a gtkdialog or yad front end to do much the same - and the result would be a smaller app.

With kind regards,
vovchik

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#5 Post by mistfire »

@vovchik great idea. Just get the functions of GCleaner, rewrite in shell script with gtkdialog and improve it. Someday PCleaner or PeasyCleaner for puppy will exists.

User avatar
Colonel Panic
Posts: 2171
Joined: Sat 16 Sep 2006, 11:09

#6 Post by Colonel Panic »

Good idea! It should be a lot easier in Puppy (or any other Linux distro too, for that matter), because we don't have a registry to worry about.
Gigabyte M68MT-52P motherboard, AMD Athlon II X4 630, 5.8 GB of DDR3 RAM and a 250 GB Hitachi hard drive running Ubuntu 16.04.6, MX-19.2, Peppermint 10, PCLinuxOS 20.02, LXLE 18.04.3, Pardus 19.2, exGENT 200119, Bionic Pup 8.0 and Xenial CE 7.5 XL.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#7 Post by vovchik »

Dear guys,

I have been thinking about the stuff that could be purged and have this list so far:

Code: Select all

# thumbnail caches
rm -rf ~/.thumbnails || rm -rf ~/.thumbnail || true
rm -rf ~/.cache/thumbnails || rm -rf ~/.cache/thumbnail || true
# browsers
rm ~/.mozilla/firefox/*.default/*.sqlite ~/.mozilla/firefox/*default/sessionstore.js
rm -r ~/.cache/mozilla/firefox/*.default/*
rm ~/.mozilla/firefox/*.default/cookies.sqlite
rm ~/.seamonkey/default/Cache/*
rm -R ~/.mozilla/seamonkey/*.default/minidumps/*
rm -R ~/.mozilla/seamonkey/*.default/Cache/*
rm ~/.mozilla/seamonkey/"Crash Reports"/pending/*
rm -rf ~/.cache/google-chrome/*
# adobe flash
rm -R ~/.adobe/Flash_Player/AssetCache/*
rm -R ~/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/*
rm -R ~/.macromedia/Flash_Player/\#SharedObjects/*
# files system buffer using "sync" and clear caches
sync && echo 3 > /proc/sys/vm/drop_caches
# trash
rm -rf ~/.local/share/Trash/*
# apt packages
apt-get clean 2>&1
# pets
It is far from complete, so please feel free to add to it. Once we have something pretty final, we can script that, with some testing, and slap on a yad or gtkdialog GUI, and "Bob's your uncle". :)

With kind regards,
vovchik

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#8 Post by corvus »

A suggestion aimed at those who use the browser as spot:

Code: Select all

# browsers as spot
rm ~/spot/.mozilla/firefox/*.default/*.sqlite ~/spot/.mozilla/firefox/*default/sessionstore.js
rm -r ~/spot/.cache/mozilla/firefox/*.default/*
rm ~/spot/.mozilla/firefox/*.default/cookies.sqlite
rm ~/spot/.seamonkey/default/Cache/*
rm -R ~/spot/.mozilla/seamonkey/*.default/minidumps/*
rm -R ~/spot/.mozilla/seamonkey/*.default/Cache/*
rm ~/spot/.mozilla/seamonkey/"Crash Reports"/pending/*
rm -rf ~/spot/.cache/google-chrome/*
Thanks for your effort and time vovchik. :)
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#9 Post by mistfire »

@vovchik

Dont forget to purge history and caches of the following:
opera
midori
qtweb
chromium
chrome
slimjet
libreoffice
openoffice
goffice
wps office
java
mediaplayer history
geany
beaver
notepad++
virtualbox
cd burn caches

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#10 Post by vovchik »

@mistfire and corvus,

Thanks guys, and keep thinking. The list is getting longer. And some PDF readers also keep some xml schemes or other files lying about. If that stuff is in /tmp great; if not, it has to be found and trashed.

With kind regards,
vovchik

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#11 Post by mistfire »

vovchik wrote: The list is getting longer. And some PDF readers also keep some xml schemes or other files lying about. If that stuff is in /tmp great; if not, it has to be found and trashed.
I suggest that the target files to delete was put in a separate list file rather than to hard code in a script.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#12 Post by vovchik »

@mistfire,

You are right ... but these are early days. We first have to identify the locations and extensions of the stuff that typically deserves to die, and then, perhaps, dump that to a list for review (with checkboxes?), and then only kill them, individually or in bulk.

With kind regards,
vochik

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#13 Post by trapster »

Are we looking for something smaller than bleachbit?
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#14 Post by trapster »

Here is a list from my /root/.config/bleachbit/bleachbit.ini

elinks = True
elinks.history = True
gftp = True
gftp.cache = True
gftp.logs = True
system.trash = True
system = True
system.tmp = True
system.recent_documents = True
system.clipboard = True
system.cache = True
x11.debug_logs = True
x11 = True
flash.cache = True
flash = True
flash.cookies = True
system.rotated_logs = True
adobe_reader = True
adobe_reader.cache = True
adobe_reader.mru = True
adobe_reader.tmp = True
seamonkey = True
seamonkey.cache = True
seamonkey.chat_logs = True
seamonkey.cookies = True
seamonkey.download_history = True
seamonkey.history = True
libreoffice.cache = True
libreoffice = True
libreoffice.history = True
firefox = True
firefox.cache = True
firefox.cookies = True
firefox.crash_reports = True
firefox.dom = True
firefox.download_history = True
firefox.forms = True
firefox.passwords = True
firefox.session_restore = True
firefox.site_preferences = True
firefox.url_history = True
firefox.vacuum = True
apt.autoremove = True
apt = True
apt.clean = True
apt.autoclean = True
pidgin = True
pidgin.cache = True
pidgin.logs = True
transmission = True
transmission.cache = True
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#15 Post by vovchik »

@trapster,

Thanks for that list. We are getting somewhere. And I just thought of those pesky Mac OSX files created when you stick a USB stick into a Mac. Since Bleachbit needs phython, pygtk and cairo, I think we could actually do something much leaner in bash, using gtkdialog or yad for the GUI. :)

And there is the command-line utility shred that can be used to fill some filespace with endless 0101010...

With kind regards,
vovchik

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#16 Post by trapster »

Leaner is better
I like the idea.

There are specific file locations listed in the bleachbit cleaner files if you can or want to check them out.

Bleachbit is distributed under the terms of the GNU General Public License
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#17 Post by vovchik »

@ trapster,

I don't have bleachbit intalled at the moment, although I had had it before. If it's not too much trouble, could you post that file with the locations? Otherwise I have to search through some old disks and find that installation.

Thanks.

With kind regards,
vovchik

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#18 Post by trapster »

Bleachbit cleaners.tar.gz
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#19 Post by vovchik »

Thanks. :)

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#20 Post by trapster »

You're welcome. Let me know if it's useful.
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

Post Reply