You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Lite Tweaks - Suggestions welcomed

Author (Read 148811 times)

0 Members and 9 Guests are viewing this topic.

Re: Lite Cleaner - Suggestions welcomed
« Reply #86 on: September 26, 2014, 03:48:17 AM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1149
    Posts
  • Reputation: 155
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • View Profile
    • Orphans for Christ, Self Advocates of Mecklenburg

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

The utilities that you and misko_2083 have created are a welcome addition to Linux Lite. To MY knowledge, no other distro has these features...

73 DE N4RPS
Rob


A gun in your hand is worth more than a whole police force on the phone.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #85 on: September 24, 2014, 06:00:33 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
litecleaner_1.0-0110 released. Run Install Updates to get it.

Changes:
  • Added Remove Kernels cleaner (thank you misko) Tested on 32 & 64bit.

 

Re: Lite Cleaner - Suggestions welcomed
« Reply #84 on: September 24, 2014, 01:33:44 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Thank you misko, I will put this through some tests and make an announcement hopefully today about it's inclusion in the next Lite Cleaner version :)
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #83 on: September 24, 2014, 01:23:45 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
I haven't tested it on 64bit but I'm sure it will work.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #82 on: September 24, 2014, 01:09:17 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Forgot to add, does this feature work in both 32 and 64bit?
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #81 on: September 24, 2014, 12:45:38 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Thats fine, I can always tweak it at this end misko :)
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #80 on: September 24, 2014, 12:38:14 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Is this OK?
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #79 on: September 24, 2014, 12:29:02 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
This will remove kernels you no longer wish to use.

Be sure to select both the header and the image for each version of
the kernel that you wish to remove.

When you click on Yes....
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #78 on: September 24, 2014, 12:24:50 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
I've finished the Old Kernel Cleaner. :)
What text should I use for the dialog?
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #77 on: September 22, 2014, 04:17:09 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Very nice contribution there misko, github and Install Updates have been updated :)
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #76 on: September 22, 2014, 03:26:36 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Before you update, I wanted to add these two things. :)
If the trash is empty and if there are no thumbnails they will not show up in the cleaner.

Code: [Select]
#! /bin/bash
#--------------------------------------------------------------------------------------------------------
# Name: Linux Lite Cleaner
# Description: A GUI tool to easily clean your Linux Lite system.
# Authors: Misko_2083, Jerry Bezencon
# Date: September 16th, 2014
# Website: https://www.linuxliteos.com
#--------------------------------------------------------------------------------------------------------

APTCACHESIZE=$(du -sh /var/cache/apt/archives/ | awk '{print $1}')

#icon
ic="/usr/share/pixmaps/litecleaner.png"

# Check if firefox cache exists
if [  -d  "$HOME/.cache/mozilla/" ];then
FFCACHESIZE=$(du -sh "$HOME/.cache/mozilla/"| awk '{print $1}')
firefox=("FALSE"  "Clean Firefox" "Internet" "Safe" "You can currently remove $FFCACHESIZE from your Firefox cache" )
else
        firefox=( )
fi

# Check if google-chrome cache exists
if [ -d  "$HOME/.cache/google-chrome/" ]; then
GCCACHESIZE=$(du -sh $HOME/.cache/google-chrome/ | awk '{print $1}' )
chrome=("FALSE" "Clean Chrome" "Internet" "Safe" "You can currently remove $GCCACHESIZE from your Chrome cache" )
else
        chrome=( )
fi

# Check if chromium cache exists
if [  -d  "$HOME/.cache/chromium/" ]; then
CHRCACHESIZE=$(du -sh $HOME/.cache/chromium/ | awk '{print $1}')
chromium=("FALSE" "Clean Chromium" "Internet" "Safe" "You can currently remove $CHRCACHESIZE from your Chromium cache" )
else
         chromium=( )
fi

# Check if thumbnails exist
if [  "$(ls -A $HOME/.thumbnails/)" ]; then
        THUMBCACHESIZE=$(du -sh $HOME/.thumbnails/ | awk '{print $1}')
thumbn=("FALSE" "Clear thumbnail cache" "Images" "Safe" "You can currently remove $THUMBCACHESIZE from your thumbnail cache" )
else
        thumbn=( )
fi

# Check if trash is empty
if [  "$(ls -A $HOME/.local/share/Trash/files/)" ]; then
        TRASHCACHESIZE=$(du -sh $HOME/.local/share/Trash/ | awk '{print $1}')
trash=("FALSE" "Empty your Trash Bin" "Home" "Safe" "You can currently remove $TRASHCACHESIZE from your Trash bin" )
else
        trash=( )
fi

selection=$(zenity --window-icon="$ic" --list --checklist --width=780 --height=420 --column="Select" --column="Name" --column="Category" --column="Status" \
 --column="Description" --text='Select the task you wish to perform, then click the Begin button. Sort Categories by clicking on the column.\n\nThere are 2 levels of <b>Status</b>:\n<span foreground="green">Safe</span> - Safe to perform, no harm can be done.\n<span foreground="red">Caution</span> - Proceed with caution, read the warning on the proceeding step.\n\nYou can select multiple tasks to perform (password required for some tasks).' --title="Lite Cleaner" --ok-label="Begin" --cancel-label="Quit" \
TRUE "Clean package cache" "Packages" "Safe" "You can currently remove $APTCACHESIZE worth of files from your apt cache" \
FALSE "Autoremove packages" "Packages" "Safe" "Remove packages installed for programs that are no longer present" \
"${firefox[@]}" \
"${chrome[@]}" \
"${chromium[@]}" \
"${thumbn[@]}" \
"${trash[@]}" \
FALSE "Locate large files" "System" "Caution" "Find files on your system larger than 50MB" )
# [Future feature, DO NOT enable] FALSE "Remove old kernels" "System" "Caution" "Remove kernels you no longer wish to boot from" )

# Exec scripts

echo $selection | grep "Clean package cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/aptgetclean 2>/dev/null
fi

echo $selection | grep "Autoremove packages" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/autoremovepkg 2>/dev/null
fi

echo $selection | grep "Clean Firefox" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/firefox 2>/dev/null
fi

echo $selection | grep "Clean Chrome" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/chrome 2>/dev/null
fi

echo $selection | grep "Clean Chromium" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/chromium 2>/dev/null
fi

echo $selection | grep "Clear thumbnail cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/thumbnails 2>/dev/null
fi

echo $selection | grep "Empty your Trash Bin" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/emptytrash 2>/dev/null
fi

echo $selection | grep "Locate large files" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/files50 2>/dev/null
fi

# [Future feature, DO NOT enable]
# echo $selection | grep "Remove old kernels" > /dev/null
# if [ $? = 0 ];then
# /usr/scripts/clean/remkernels 2>/dev/null
# fi
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #75 on: September 22, 2014, 02:18:34 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
I've got to update github sometime today :)
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #74 on: September 22, 2014, 02:16:56 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
You're right. I've checked it on github. :) I must have tried something, and forgot to change it back. Should really get more sleep. :D

I've spoted this on github:
https://github.com/linuxlite/litecleaner/blob/master/usr/scripts/clean/chrome
13     This will process will purge Chrome of <b>$FFCACHESIZE</b> worth of files.
https://github.com/linuxlite/litecleaner/blob/master/usr/scripts/clean/chromium
13     This will process will purge Chromium of <b>$FFCACHESIZE</b> worth of files.
https://github.com/linuxlite/litecleaner/blob/master/usr/scripts/clean/emptytrash
13     This will process will empty your Trash bin.
https://github.com/linuxlite/litecleaner/blob/master/usr/scripts/clean/firefox
13     This will process will purge Firefox of <b>$FFCACHESIZE</b> worth of files.


 

Re: Lite Cleaner - Suggestions welcomed
« Reply #73 on: September 22, 2014, 12:32:38 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
P.S. In the chromium script command doesn't remove "$HOME/.cache/chromium/" directory
Code: [Select]
rm -rf $HOME/.cache/chromium/* | zenity --progress --title="$APPNAME" --window-icon="${INSTALL_ICON}" --text="Please wait whilst Chromium is being cleaned..." --pulsate --width=400 --auto-close --auto-killso I guess it should be changed to this:
Code: [Select]
rm -rf $HOME/.cache/chromium/ | zenity --progress --title="$APPNAME" --window-icon="${INSTALL_ICON}" --text="Please wait whilst Chromium is being cleaned..." --pulsate --width=400 --auto-close --auto-kill

What line was that on? I don't see that here.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #72 on: September 21, 2014, 06:50:49 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
I've made progress with this.
I had to put list items with spaces and other chars into a "variable".
I've solved that with bash arrays.
The script now shows firefox, google-chrome and chromium on the list only if their cache directories exist.
Code: [Select]
#! /bin/bash
#--------------------------------------------------------------------------------------------------------
# Name: Linux Lite Cleaner
# Description: A GUI tool to easily clean your Linux Lite system.
# Authors: Misko_2083, Jerry Bezencon
# Date: September 16th, 2014
# Website: https://www.linuxliteos.com
#--------------------------------------------------------------------------------------------------------

APTCACHESIZE=$(du -sh /var/cache/apt/archives/ | awk '{print $1}')
TRASHCACHESIZE=$(du -sh $HOME/.local/share/Trash/ | awk '{print $1}')
THUMBCACHESIZE=$(du -sh $HOME/.thumbnails/ | awk '{print $1}')


#icon
ic="/usr/share/pixmaps/litecleaner.png"

# Check if firefox cache exists
if [  -d  "$HOME/.cache/mozilla/" ];then
FFCACHESIZE=$(du -sh "$HOME/.cache/mozilla/"| awk '{print $1}')
firefox=("FALSE"  "Clean Firefox" "Internet" "Safe" "You can currently remove $FFCACHESIZE from your Firefox cache" )
else
        firefox=( ) # If no "$HOME/.cache/mozilla/" exists don't show Firefox on the list
fi

# Check if google-chrome cache exists
if [ -d  "$HOME/.cache/google-chrome/" ]; then
GCCACHESIZE=$(du -sh $HOME/.cache/google-chrome/ | awk '{print $1}' )
chrome=("FALSE" "Clean Chrome" "Internet" "Safe" "You can currently remove $GCCACHESIZE from your Chrome cache" )
else
        chrome=( )
fi

# Check if chromium cache exists
if [  -d  "$HOME/.cache/chromium/" ]; then
CHRCACHESIZE=$(du -sh $HOME/.cache/chromium/ | awk '{print $1}')
chromium=("FALSE" "Clean Chromium" "Internet" "Safe" "You can currently remove $CHRCACHESIZE from your Chromium cache" )
else
         chromium=( )
fi

selection=$(zenity --window-icon="$ic" --list --checklist --width=780 --height=420 --column="Select" --column="Name" --column="Category" --column="Status" \
 --column="Description" --text='Select the task you wish to perform, then click the Begin button. Sort Categories by clicking on the column.\n\nThere are 2 levels of <b>Status</b>:\n<span foreground="green">Safe</span> - Safe to perform, no harm can be done.\n<span foreground="red">Caution</span> - Proceed with caution, read the warning on the proceeding step.\n\nYou can select multiple tasks to perform (password required for some tasks).' --title="Lite Cleaner" --ok-label="Begin" --cancel-label="Quit" \
TRUE "Clean package cache" "Packages" "Safe" "You can currently remove $APTCACHESIZE worth of files from your apt cache" \
FALSE "Autoremove packages" "Packages" "Safe" "Remove packages installed for programs that are no longer present" \
"${firefox[@]}" \
"${chrome[@]}" \
"${chromium[@]}" \
FALSE "Clear thumbnail cache" "Images" "Safe" "You can currently remove $THUMBCACHESIZE from your thumbnail cache" \
FALSE "Empty your Trash Bin" "Home" "Safe" "You can currently remove $TRASHCACHESIZE from your Trash bin" \
FALSE "Locate large files" "System" "Caution" "Find files on your system larger than 50MB" )
# [Future feature, DO NOT enable] FALSE "Remove old kernels" "System" "Caution" "Remove kernels you no longer wish to boot from" )

# Exec scripts

echo $selection | grep "Clean package cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/aptgetclean 2>/dev/null
fi

echo $selection | grep "Autoremove packages" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/autoremovepkg 2>/dev/null
fi

echo $selection | grep "Clean Firefox" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/firefox 2>/dev/null
fi

echo $selection | grep "Clean Chrome" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/chrome 2>/dev/null
fi

echo $selection | grep "Clean Chromium" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/chromium 2>/dev/null
fi

echo $selection | grep "Clear thumbnail cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/thumbnails 2>/dev/null
fi

echo $selection | grep "Empty your Trash Bin" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/emptytrash 2>/dev/null
fi

echo $selection | grep "Locate large files" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/files50 2>/dev/null
fi

# [Future feature, DO NOT enable]
# echo $selection | grep "Remove old kernels" > /dev/null
# if [ $? = 0 ];then
# /usr/scripts/clean/remkernels 2>/dev/null
# fi
P.S. In the chromium script command doesn't remove "$HOME/.cache/chromium/" directory
Code: [Select]
rm -rf $HOME/.cache/chromium/* | zenity --progress --title="$APPNAME" --window-icon="${INSTALL_ICON}" --text="Please wait whilst Chromium is being cleaned..." --pulsate --width=400 --auto-close --auto-killso I guess it should be changed to this:
Code: [Select]
rm -rf $HOME/.cache/chromium/ | zenity --progress --title="$APPNAME" --window-icon="${INSTALL_ICON}" --text="Please wait whilst Chromium is being cleaned..." --pulsate --width=400 --auto-close --auto-kill
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section