Our next addition to the Lite application family will be
Lite Tweaks.
Install:
Code:
sudo apt-get update && sudo apt-get install lite-cleaner
Source here:
https://github.com/linuxlite/litetweaks
Before we embark on this, I'd like to ask the community for the type of tasks they'd like to see in a cleaner.
For example:
- Clean out package cache
- Perform autoremove of packages no longer needed
Let the ideas flow. Remember, no idea is a bad idea
What? Like Bleachbit? Personally. I am too much of a control freak to trust a autocleaner.
Hope you don't mind what I post. If so I will modify and delete
Remove unwanted junk.
Code:
deborphan | xargs apt-get -y remove
Code:
COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P
When I was in windows (last week) I used a free program called CCleaner it seemed to do the job quite well and had/has a number of functions from cleaning to registry checking to uninstalling unwanted progs and their components. I don't know how much of that sort of thing would apply to LL. but something similar might be good.
There should be an option to remove old kernels.
I guess these are already in the script.
Code:
sudo apt-get autoclean
Code:
sudo apt-get autoremove
Maybe clearing thumbnail cache
Code:
rm -f ~/.cache/thumbnails/normal/*
Purging unused configuration files
Code:
sudo dpkg --purge $(COLUMNS=200 dpkg -l | grep "^rc" | tr -s ' ' | cut -d ' ' -f 2)
Trash cleanup
Code:
rm -r -f ~/.local/share/Trash/files/*
Browser cache cleanup, would also be usefull.
Thanks folks, keep'm coming, some good ones there already

I've found this 7 year old, yet very interesting script called "Ubucleaner" License: GPL
It might help you.
Code:
#!/bin/bash
OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)"
METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)
YELLOW="\033[1;33m"
RED="\033[0;31m"
ENDCOLOR="\033[0m"
if [ $USER != root ]; then
echo -e $RED"Error: must be root"
echo -e $YELLOW"Exiting..."$ENDCOLOR
exit 0
fi
echo -e $YELLOW"Cleaning apt cache..."$ENDCOLOR
aptitude clean
echo -e $YELLOW"Removing old config files..."$ENDCOLOR
sudo aptitude purge $OLDCONF
echo -e $YELLOW"Removing old kernels..."$ENDCOLOR
sudo aptitude purge $OLDKERNELS
echo -e $YELLOW"Emptying every trashes..."$ENDCOLOR
rm -rf /home/*/.local/share/Trash/*/** &> /dev/null
rm -rf /root/.local/share/Trash/*/** &> /dev/null
echo -e $YELLOW"Script Finished!"$ENDCOLOR
(09-05-2014, 10:16 AM)Valtam link Wrote: [ -> ]So far ...
![[Image: vETSVdT.png]](http://i.imgur.com/vETSVdT.png)
I like it.
May I see the code? I have a few ideas.
This will be great for those of us like me who dread the Terminal. :-[
(09-05-2014, 06:19 PM)Coastie link Wrote: [ -> ]This will be great for those of us like me who dread the Terminal. :-[
Yes agreed...
I'm waiting for the next tool
"Lite Optimise" 
For those little tweaks to make things run smoother & quicker
Dave