LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lite Tweaks - Suggestions welcomed
#1
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

[Image: GTLdzXx.png]

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 Smile
Reply
#2
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:
apt-get autoremove

Code:
deborphan | xargs apt-get -y remove

Code:
  COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
Reply
#3
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.

Smile

Reply
#4
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 clean
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.
Reply
#5
Thanks folks, keep'm coming, some good ones there already Smile
Reply
#6
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
Reply
#7
So far ...

[Image: vETSVdT.png]
Reply
#8
(09-05-2014, 10:16 AM)Valtam link Wrote: So far ...

[Image: vETSVdT.png]
I like it.
May I see the code? I have a few ideas.
Reply
#9
This will be great for those of us like me who dread the Terminal.  :-[
[Image: EtYqOrS.png%5D]

Left Mac OS X for Linux in Jan 2014
Reply
#10
(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"  Wink
For those little tweaks to make things run smoother & quicker  Big Grin

Dave
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks Smile

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
Reply


Forum Jump:


Users browsing this thread: 21 Guest(s)