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



Lite Tweaks - Suggestions welcomed

Author (Read 146053 times)

0 Members and 3 Guests are viewing this topic.

Re: Lite Cleaner - Suggestions welcomed
« Reply #71 on: September 18, 2014, 04:49:55 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    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
Valtam, is there a way to trick zenity to use space instead of "_"?

I'd have to look into that, try either backticks or single quotes for now.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #70 on: September 18, 2014, 04:48:35 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    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
Wirezfree, thanks for that. Looks like a mixture of logs, man (how to) files and locales. We'll certainly keep extending this app to do more :)
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #69 on: September 18, 2014, 11:36:04 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
Valtam, is there a way to trick zenity to use space instead of "_"?
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"

# workaround for zenity trying to execute FALSE as a command
false=$(printf "FALSE")

# Testing if firefox is installed
if [ `builtin type -p firefox` ];then
FFCACHESIZE=$(du -sh "$HOME/.cache/mozilla/"| awk '{print $1}')
firefox=$(echo -e $false  "Clean_Firefox" Internet Safe You_can_currently_remove-$FFCACHESIZE-from_your_Firefox_cache )
else
firefox=$(echo ) # Hide Firefox from the list
fi

# Testing if google-chrome is installed
if [ `builtin type -p google-chrome` ]; then
GCCACHESIZE=$(du -sh $HOME/.cache/google-chrome/ | awk '{print $1}' )
chrome=$(echo $false "Clean_Chrome" "Internet" "Safe" "You_can_currently_remove-$GCCACHESIZE-from_your_Chrome_cache" )
else
chrome=$(echo ) # Hide Google Chrome from the list
fi

# Testing if chromium is installed
if [ `builtin type -p chromium-browser` ]; then
CHRCACHESIZE=$(du -sh $HOME/.cache/chromium/ | awk '{print $1}')
chromium=$(echo $false "Clean_Chromium" "Internet" "Safe" "You_can_currently_remove-$CHRCACHESIZE-from_your_Chromium_cache" )
else
chromium=$(echo ) # Hide chromium-browser from the list
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
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #68 on: September 18, 2014, 06:48:41 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi Misko & Valtam,

This is really good, why, because it being devolved by people who really know LL, rather than just a Generic Cleaner/Tool.
This leads me to a little comaparative testing. I have used Bleach Bit, and personally never had any issues, but I may have been lucky.
On one of my Laptops with LL2 I use it to test & do things I'm not so sure about, if things work, I then do it on my main LL2 install.

I have been comparing Bleachbit to Lite Cleaner, Lite Cleaner always indicates "more" to be cleaned than Bleachbit.
When you Run Lite cleaner, then run Bleachbit, Bleachbit always finds more to clean, not much, on 3 recent runs, 12MB, 17MB & 5MB.

Below is a "Long List ~ 420 small files/5MB" of what Bleachbit finds extra, maybe this can be added to Lite Cleaners options..
It appears to be a mixture of mostly small language extensions/man files, I only use English, Old Log Files .old, some archive log files I'm not sure about.?

Great work.. Thanks for this... Dave

Code: [Select]
Delete 24.6kB /usr/share/locale/el/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/el/LC_MESSAGES/libapt-inst1.5.mo
Delete 36.9kB /usr/share/locale/el/LC_MESSAGES/exo-1.mo
Delete 36.9kB /usr/share/locale/el/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/el/LC_MESSAGES
Delete 4.1kB /usr/share/locale/el
Delete 36.9kB /usr/share/locale/uk/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/uk/LC_MESSAGES/libapt-inst1.5.mo
Delete 36.9kB /usr/share/locale/uk/LC_MESSAGES/exo-1.mo
Delete 49.2kB /usr/share/locale/uk/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/uk/LC_MESSAGES
Delete 4.1kB /usr/share/locale/uk
Delete 32.8kB /usr/share/locale/kk/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/kk/LC_MESSAGES
Delete 4.1kB /usr/share/locale/kk
Delete 24.6kB /usr/share/locale/nb/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/nb/LC_MESSAGES/libapt-inst1.5.mo
Delete 24.6kB /usr/share/locale/nb/LC_MESSAGES/exo-1.mo
Delete 28.7kB /usr/share/locale/nb/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/nb/LC_MESSAGES
Delete 4.1kB /usr/share/locale/nb
Delete 20.5kB /usr/share/locale/hr/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/hr/LC_MESSAGES
Delete 4.1kB /usr/share/locale/hr
Delete 32.8kB /usr/share/locale/ug/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/ug/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ug
Delete 16.4kB /usr/share/locale/pt_BR/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/pt_BR/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/pt_BR/LC_MESSAGES/exo-1.mo
Delete 24.6kB /usr/share/locale/pt_BR/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/pt_BR/LC_MESSAGES
Delete 4.1kB /usr/share/locale/pt_BR
Delete 12.3kB /usr/share/locale/nn/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/nn/LC_MESSAGES/libapt-inst1.5.mo
Delete 24.6kB /usr/share/locale/nn/LC_MESSAGES/exo-1.mo
Delete 20.5kB /usr/share/locale/nn/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/nn/LC_MESSAGES
Delete 4.1kB /usr/share/locale/nn
Delete 28.7kB /usr/share/locale/lv/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/lv/LC_MESSAGES
Delete 4.1kB /usr/share/locale/lv
Delete 28.7kB /usr/share/locale/pt/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/pt/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/pt/LC_MESSAGES/exo-1.mo
Delete 36.9kB /usr/share/locale/pt/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/pt/LC_MESSAGES
Delete 4.1kB /usr/share/locale/pt
Delete 28.7kB /usr/share/locale/de/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/de/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/de/LC_MESSAGES/exo-1.mo
Delete 41kB /usr/share/locale/de/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/de/LC_MESSAGES
Delete 4.1kB /usr/share/locale/de
Delete 24.6kB /usr/share/locale/ne/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/ne/LC_MESSAGES/libapt-inst1.5.mo
Delete 32.8kB /usr/share/locale/ne/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ne/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ne
Delete 24.6kB /usr/share/locale/nl/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/nl/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/nl/LC_MESSAGES/exo-1.mo
Delete 28.7kB /usr/share/locale/nl/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/nl/LC_MESSAGES
Delete 4.1kB /usr/share/locale/nl
Delete 28.7kB /usr/share/locale/mr/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/mr/LC_MESSAGES/libapt-inst1.5.mo
Delete 36.9kB /usr/share/locale/mr/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/mr/LC_MESSAGES
Delete 4.1kB /usr/share/locale/mr
Delete 16.4kB /usr/share/locale/eu/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/eu/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/eu/LC_MESSAGES/exo-1.mo
Delete 24.6kB /usr/share/locale/eu/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/eu/LC_MESSAGES
Delete 4.1kB /usr/share/locale/eu
Delete 36.9kB /usr/share/locale/bg/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/bg/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/bg/LC_MESSAGES/exo-1.mo
Delete 49.2kB /usr/share/locale/bg/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/bg/LC_MESSAGES
Delete 4.1kB /usr/share/locale/bg
Delete 28.7kB /usr/share/locale/ko/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/ko/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/ko/LC_MESSAGES/exo-1.mo
Delete 28.7kB /usr/share/locale/ko/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ko/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ko
Delete 28.7kB /usr/share/locale/da/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/da/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/da/LC_MESSAGES/exo-1.mo
Delete 36.9kB /usr/share/locale/da/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/da/LC_MESSAGES
Delete 4.1kB /usr/share/locale/da
Delete 24.6kB /usr/share/locale/sv/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/sv/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/sv/LC_MESSAGES/exo-1.mo
Delete 28.7kB /usr/share/locale/sv/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/sv/LC_MESSAGES
Delete 4.1kB /usr/share/locale/sv
Delete 28.7kB /usr/share/locale/sl/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/sl/LC_MESSAGES/libapt-inst1.5.mo
Delete 36.9kB /usr/share/locale/sl/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/sl/LC_MESSAGES
Delete 4.1kB /usr/share/locale/sl
Delete 28.7kB /usr/share/locale/sk/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/sk/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/sk/LC_MESSAGES/exo-1.mo
Delete 36.9kB /usr/share/locale/sk/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/sk/LC_MESSAGES
Delete 4.1kB /usr/share/locale/sk
Delete 28.7kB /usr/share/locale/dz/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/dz/LC_MESSAGES/libapt-inst1.5.mo
Delete 45.1kB /usr/share/locale/dz/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/dz/LC_MESSAGES
Delete 4.1kB /usr/share/locale/dz
Delete 8.2kB /usr/share/locale/ar/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/ar/LC_MESSAGES/libapt-inst1.5.mo
Delete 32.8kB /usr/share/locale/ar/LC_MESSAGES/exo-1.mo
Delete 20.5kB /usr/share/locale/ar/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ar/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ar
Delete 28.7kB /usr/share/locale/et/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/et/LC_MESSAGES
Delete 4.1kB /usr/share/locale/et
Delete 24.6kB /usr/share/locale/km/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/km/LC_MESSAGES/libapt-inst1.5.mo
Delete 41kB /usr/share/locale/km/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/km/LC_MESSAGES
Delete 4.1kB /usr/share/locale/km
Delete 28.7kB /usr/share/locale/fr/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/fr/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/fr/LC_MESSAGES/exo-1.mo
Delete 41kB /usr/share/locale/fr/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/fr/LC_MESSAGES
Delete 4.1kB /usr/share/locale/fr
Delete 28.7kB /usr/share/locale/es/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/es/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/es/LC_MESSAGES/exo-1.mo
Delete 32.8kB /usr/share/locale/es/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/es/LC_MESSAGES
Delete 4.1kB /usr/share/locale/es
Delete 28.7kB /usr/share/locale/ur/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/ur/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ur
Delete 24.6kB /usr/share/locale/sq/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/sq/LC_MESSAGES
Delete 4.1kB /usr/share/locale/sq
Delete 16.4kB /usr/share/locale/tl/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/tl/LC_MESSAGES/libapt-inst1.5.mo
Delete 24.6kB /usr/share/locale/tl/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/tl/LC_MESSAGES
Delete 4.1kB /usr/share/locale/tl
Delete 41kB /usr/share/locale/th/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/th/LC_MESSAGES/libapt-inst1.5.mo
Delete 57.3kB /usr/share/locale/th/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/th/LC_MESSAGES
Delete 4.1kB /usr/share/locale/th
Delete 28.7kB /usr/share/locale/id/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/id/LC_MESSAGES
Delete 4.1kB /usr/share/locale/id
Delete 28.7kB /usr/share/locale/gl/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/gl/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/gl/LC_MESSAGES/exo-1.mo
Delete 28.7kB /usr/share/locale/gl/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/gl/LC_MESSAGES
Delete 4.1kB /usr/share/locale/gl
Delete 28.7kB /usr/share/locale/ur_PK/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/ur_PK/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ur_PK
Delete 16.4kB /usr/share/locale/ro/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/ro/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/ro/LC_MESSAGES/exo-1.mo
Delete 24.6kB /usr/share/locale/ro/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ro/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ro
Delete 12.3kB /usr/share/locale/cy/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/cy/LC_MESSAGES/libapt-inst1.5.mo
Delete 16.4kB /usr/share/locale/cy/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/cy/LC_MESSAGES
Delete 4.1kB /usr/share/locale/cy
Delete 28.7kB /usr/share/locale/cs/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/cs/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/cs/LC_MESSAGES/exo-1.mo
Delete 36.9kB /usr/share/locale/cs/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/cs/LC_MESSAGES
Delete 4.1kB /usr/share/locale/cs
Delete 8.2kB /usr/share/locale/lt/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/lt/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/lt/LC_MESSAGES/exo-1.mo
Delete 16.4kB /usr/share/locale/lt/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/lt/LC_MESSAGES
Delete 4.1kB /usr/share/locale/lt
Delete 28.7kB /usr/share/locale/be/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/be/LC_MESSAGES
Delete 4.1kB /usr/share/locale/be
Delete 28.7kB /usr/share/locale/he/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/he/LC_MESSAGES
Delete 4.1kB /usr/share/locale/he
Delete 4.1kB /usr/share/locale/si/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/si/LC_MESSAGES
Delete 4.1kB /usr/share/locale/si
Delete 32.8kB /usr/share/locale/ja/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/ja/LC_MESSAGES/libapt-inst1.5.mo
Delete 32.8kB /usr/share/locale/ja/LC_MESSAGES/exo-1.mo
Delete 49.2kB /usr/share/locale/ja/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ja/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ja
Delete 36.9kB /usr/share/locale/sr/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/sr/LC_MESSAGES
Delete 4.1kB /usr/share/locale/sr
Delete 4.1kB /usr/share/locale/ku/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/ku/LC_MESSAGES/libapt-inst1.5.mo
Delete 8.2kB /usr/share/locale/ku/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ku/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ku
Delete 28.7kB /usr/share/locale/tr/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/tr/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/tr/LC_MESSAGES/exo-1.mo
Delete 36.9kB /usr/share/locale/tr/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/tr/LC_MESSAGES
Delete 4.1kB /usr/share/locale/tr
Delete 24.6kB /usr/share/locale/zh_CN/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/zh_CN/LC_MESSAGES/libapt-inst1.5.mo
Delete 24.6kB /usr/share/locale/zh_CN/LC_MESSAGES/exo-1.mo
Delete 28.7kB /usr/share/locale/zh_CN/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/zh_CN/LC_MESSAGES
Delete 4.1kB /usr/share/locale/zh_CN
Delete 32.8kB /usr/share/locale/vi/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/vi/LC_MESSAGES/libapt-inst1.5.mo
Delete 49.2kB /usr/share/locale/vi/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/vi/LC_MESSAGES
Delete 4.1kB /usr/share/locale/vi
Delete 16.4kB /usr/share/locale/zh_TW/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/zh_TW/LC_MESSAGES/libapt-inst1.5.mo
Delete 24.6kB /usr/share/locale/zh_TW/LC_MESSAGES/exo-1.mo
Delete 24.6kB /usr/share/locale/zh_TW/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/zh_TW/LC_MESSAGES
Delete 4.1kB /usr/share/locale/zh_TW
Delete 16.4kB /usr/share/locale/fi/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/fi/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/fi/LC_MESSAGES/exo-1.mo
Delete 24.6kB /usr/share/locale/fi/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/fi/LC_MESSAGES
Delete 4.1kB /usr/share/locale/fi
Delete 24.6kB /usr/share/locale/ast/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/ast/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/ast/LC_MESSAGES/exo-1.mo
Delete 28.7kB /usr/share/locale/ast/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ast/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ast
Delete 4.1kB /usr/share/locale/bs/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/bs/LC_MESSAGES/libapt-inst1.5.mo
Delete 8.2kB /usr/share/locale/bs/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/bs/LC_MESSAGES
Delete 4.1kB /usr/share/locale/bs
Delete 28.7kB /usr/share/locale/hu/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/hu/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/hu/LC_MESSAGES/exo-1.mo
Delete 41kB /usr/share/locale/hu/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/hu/LC_MESSAGES
Delete 4.1kB /usr/share/locale/hu
Delete 4.1kB /usr/share/locale/is/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/is/LC_MESSAGES
Delete 4.1kB /usr/share/locale/is
Delete 41kB /usr/share/locale/bn/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/bn/LC_MESSAGES
Delete 4.1kB /usr/share/locale/bn
Delete 36.9kB /usr/share/locale/ru/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/ru/LC_MESSAGES/libapt-inst1.5.mo
Delete 36.9kB /usr/share/locale/ru/LC_MESSAGES/exo-1.mo
Delete 49.2kB /usr/share/locale/ru/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ru/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ru
Delete 32.8kB /usr/share/locale/pa/LC_MESSAGES/exo-1.mo
Delete 4.1kB /usr/share/locale/pa/LC_MESSAGES
Delete 4.1kB /usr/share/locale/pa
Delete 28.7kB /usr/share/locale/ca/LC_MESSAGES/libapt-pkg4.12.mo
Delete 4.1kB /usr/share/locale/ca/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/ca/LC_MESSAGES/exo-1.mo
Delete 32.8kB /usr/share/locale/ca/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/ca/LC_MESSAGES
Delete 4.1kB /usr/share/locale/ca
Delete 28.7kB /usr/share/locale/it/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/it/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/it/LC_MESSAGES/exo-1.mo
Delete 41kB /usr/share/locale/it/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/it/LC_MESSAGES
Delete 4.1kB /usr/share/locale/it
Delete 28.7kB /usr/share/locale/pl/LC_MESSAGES/libapt-pkg4.12.mo
Delete 8.2kB /usr/share/locale/pl/LC_MESSAGES/libapt-inst1.5.mo
Delete 28.7kB /usr/share/locale/pl/LC_MESSAGES/exo-1.mo
Delete 41kB /usr/share/locale/pl/LC_MESSAGES/apt.mo
Delete 4.1kB /usr/share/locale/pl/LC_MESSAGES
Delete 4.1kB /usr/share/locale/pl
Delete 4.1kB /usr/share/man/pt/man8/apt-cdrom.8.gz
Delete 12.3kB /usr/share/man/pt/man8/apt-get.8.gz
Delete 4.1kB /usr/share/man/pt/man8/apt-secure.8.gz
Delete 4.1kB /usr/share/man/pt/man8/apt-key.8.gz
Delete 8.2kB /usr/share/man/pt/man8/apt-cache.8.gz
Delete 4.1kB /usr/share/man/pt/man8/apt-mark.8.gz
Delete 4.1kB /usr/share/man/pt/man8/apt-config.8.gz
Delete 4.1kB /usr/share/man/pt/man1/apt-extracttemplates.1.gz
Delete 8.2kB /usr/share/man/pt/man1/apt-ftparchive.1.gz
Delete 4.1kB /usr/share/man/pt/man1/apt-sortpkgs.1.gz
Delete 20.5kB /usr/share/man/pt/man5/apt.conf.5.gz
Delete 8.2kB /usr/share/man/pt/man5/sources.list.5.gz
Delete 8.2kB /usr/share/man/pt/man5/apt_preferences.5.gz
Delete 4.1kB /usr/share/man/pt/man8
Delete 4.1kB /usr/share/man/pt/man1
Delete 4.1kB /usr/share/man/pt/man5
Delete 4.1kB /usr/share/man/pt
Delete 4.1kB /usr/share/man/de/man8/apt-cdrom.8.gz
Delete 12.3kB /usr/share/man/de/man8/apt-get.8.gz
Delete 4.1kB /usr/share/man/de/man8/apt-secure.8.gz
Delete 4.1kB /usr/share/man/de/man8/apt-key.8.gz
Delete 8.2kB /usr/share/man/de/man8/apt-cache.8.gz
Delete 4.1kB /usr/share/man/de/man8/apt-mark.8.gz
Delete 4.1kB /usr/share/man/de/man8/apt-config.8.gz
Delete 4.1kB /usr/share/man/de/man1/apt-extracttemplates.1.gz
Delete 8.2kB /usr/share/man/de/man1/apt-ftparchive.1.gz
Delete 4.1kB /usr/share/man/de/man1/apt-sortpkgs.1.gz
Delete 20.5kB /usr/share/man/de/man5/apt.conf.5.gz
Delete 8.2kB /usr/share/man/de/man5/sources.list.5.gz
Delete 8.2kB /usr/share/man/de/man5/apt_preferences.5.gz
Delete 4.1kB /usr/share/man/de/man8
Delete 4.1kB /usr/share/man/de/man1
Delete 4.1kB /usr/share/man/de/man5
Delete 4.1kB /usr/share/man/de
Delete 4.1kB /usr/share/man/fr/man8/apt-cdrom.8.gz
Delete 12.3kB /usr/share/man/fr/man8/apt-get.8.gz
Delete 4.1kB /usr/share/man/fr/man8/apt-secure.8.gz
Delete 4.1kB /usr/share/man/fr/man8/apt-key.8.gz
Delete 8.2kB /usr/share/man/fr/man8/apt-cache.8.gz
Delete 4.1kB /usr/share/man/fr/man8/apt-mark.8.gz
Delete 4.1kB /usr/share/man/fr/man8/apt-config.8.gz
Delete 4.1kB /usr/share/man/fr/man1/apt-extracttemplates.1.gz
Delete 8.2kB /usr/share/man/fr/man1/apt-ftparchive.1.gz
Delete 4.1kB /usr/share/man/fr/man1/apt-sortpkgs.1.gz
Delete 20.5kB /usr/share/man/fr/man5/apt.conf.5.gz
Delete 8.2kB /usr/share/man/fr/man5/sources.list.5.gz
Delete 8.2kB /usr/share/man/fr/man5/apt_preferences.5.gz
Delete 4.1kB /usr/share/man/fr/man8
Delete 4.1kB /usr/share/man/fr/man1
Delete 4.1kB /usr/share/man/fr/man5
Delete 4.1kB /usr/share/man/fr
Delete 4.1kB /usr/share/man/es/man8/apt-cdrom.8.gz
Delete 12.3kB /usr/share/man/es/man8/apt-get.8.gz
Delete 4.1kB /usr/share/man/es/man8/apt-secure.8.gz
Delete 4.1kB /usr/share/man/es/man8/apt-key.8.gz
Delete 8.2kB /usr/share/man/es/man8/apt-cache.8.gz
Delete 4.1kB /usr/share/man/es/man8/apt-mark.8.gz
Delete 4.1kB /usr/share/man/es/man8/apt-config.8.gz
Delete 4.1kB /usr/share/man/es/man1/apt-extracttemplates.1.gz
Delete 8.2kB /usr/share/man/es/man1/apt-ftparchive.1.gz
Delete 4.1kB /usr/share/man/es/man1/apt-sortpkgs.1.gz
Delete 16.4kB /usr/share/man/es/man5/apt.conf.5.gz
Delete 8.2kB /usr/share/man/es/man5/sources.list.5.gz
Delete 8.2kB /usr/share/man/es/man5/apt_preferences.5.gz
Delete 4.1kB /usr/share/man/es/man8
Delete 4.1kB /usr/share/man/es/man1
Delete 4.1kB /usr/share/man/es/man5
Delete 4.1kB /usr/share/man/es
Delete 4.1kB /usr/share/man/ja/man8/apt-cdrom.8.gz
Delete 12.3kB /usr/share/man/ja/man8/apt-get.8.gz
Delete 4.1kB /usr/share/man/ja/man8/apt-secure.8.gz
Delete 4.1kB /usr/share/man/ja/man8/apt-key.8.gz
Delete 8.2kB /usr/share/man/ja/man8/apt-cache.8.gz
Delete 4.1kB /usr/share/man/ja/man8/apt-mark.8.gz
Delete 4.1kB /usr/share/man/ja/man8/apt-config.8.gz
Delete 4.1kB /usr/share/man/ja/man1/apt-extracttemplates.1.gz
Delete 8.2kB /usr/share/man/ja/man1/apt-ftparchive.1.gz
Delete 4.1kB /usr/share/man/ja/man1/apt-sortpkgs.1.gz
Delete 20.5kB /usr/share/man/ja/man5/apt.conf.5.gz
Delete 8.2kB /usr/share/man/ja/man5/sources.list.5.gz
Delete 8.2kB /usr/share/man/ja/man5/apt_preferences.5.gz
Delete 4.1kB /usr/share/man/ja/man8
Delete 4.1kB /usr/share/man/ja/man1
Delete 4.1kB /usr/share/man/ja/man5
Delete 4.1kB /usr/share/man/ja
Delete 4.1kB /usr/share/man/it/man8/apt-cdrom.8.gz
Delete 12.3kB /usr/share/man/it/man8/apt-get.8.gz
Delete 4.1kB /usr/share/man/it/man8/apt-secure.8.gz
Delete 4.1kB /usr/share/man/it/man8/apt-key.8.gz
Delete 8.2kB /usr/share/man/it/man8/apt-cache.8.gz
Delete 4.1kB /usr/share/man/it/man8/apt-mark.8.gz
Delete 4.1kB /usr/share/man/it/man8/apt-config.8.gz
Delete 4.1kB /usr/share/man/it/man1/apt-extracttemplates.1.gz
Delete 8.2kB /usr/share/man/it/man1/apt-ftparchive.1.gz
Delete 4.1kB /usr/share/man/it/man1/apt-sortpkgs.1.gz
Delete 16.4kB /usr/share/man/it/man5/apt.conf.5.gz
Delete 8.2kB /usr/share/man/it/man5/sources.list.5.gz
Delete 8.2kB /usr/share/man/it/man5/apt_preferences.5.gz
Delete 4.1kB /usr/share/man/it/man8
Delete 4.1kB /usr/share/man/it/man1
Delete 4.1kB /usr/share/man/it/man5
Delete 4.1kB /usr/share/man/it
Delete 4.1kB /usr/share/man/pl/man8/apt-cdrom.8.gz
Delete 12.3kB /usr/share/man/pl/man8/apt-get.8.gz
Delete 4.1kB /usr/share/man/pl/man8/apt-secure.8.gz
Delete 4.1kB /usr/share/man/pl/man8/apt-key.8.gz
Delete 8.2kB /usr/share/man/pl/man8/apt-cache.8.gz
Delete 4.1kB /usr/share/man/pl/man8/apt-mark.8.gz
Delete 4.1kB /usr/share/man/pl/man8/apt-config.8.gz
Delete 4.1kB /usr/share/man/pl/man1/apt-extracttemplates.1.gz
Delete 4.1kB /usr/share/man/pl/man1/apt-sortpkgs.1.gz
Delete 8.2kB /usr/share/man/pl/man5/sources.list.5.gz
Delete 8.2kB /usr/share/man/pl/man5/apt_preferences.5.gz
Delete 4.1kB /usr/share/man/pl/man8
Delete 4.1kB /usr/share/man/pl/man1
Delete 4.1kB /usr/share/man/pl/man5
Delete 4.1kB /usr/share/man/pl
Delete 57.3kB /var/log/dmesg.0
Delete 16.4kB /var/log/dmesg.2.gz
Delete 16.4kB /var/log/dmesg.3.gz
Delete 16.4kB /var/log/dmesg.1.gz
Delete 8.2kB /var/log/lightdm/lightdm.log.old
Delete 4.1kB /var/log/lightdm/x-0.log.old
Delete 28.7kB /var/log/Xorg.0.log.old
Delete 32.8kB /tmp/hsperfdata_root/3088
apt-get autoclean ?B
apt-get autoremove ?B

Disk space to be recovered: 5.5MB
Files to be deleted: 420
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 :)

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)
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #67 on: September 18, 2014, 05:46:55 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    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
If you don't have a program installed, don't tick the box for it.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #66 on: September 18, 2014, 05:41:15 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
Alex, glad to hear that. :)
rbdflyboy, this is how I solved it. If you have a better solution let me know. :)
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}')

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

if [  -d  "$HOME/.cache/mozilla/"  ]; then
FFCACHESIZE=$(du -sh $HOME/.cache/mozilla/ | awk '{print $1}')
else
FFCACHESIZE=$(echo nothing)
fi

if [  -d  "$HOME/.cache/google-chrome/" ]; then
GCCACHESIZE=$(du -sh $HOME/.cache/google-chrome/ | awk '{print $1}' )
else
GCCACHESIZE=$(echo nothing)
fi

if [  -d  "$HOME/.cache/chromium/" ]; then
CHRCACHESIZE=$(du -sh $HOME/.cache/chromium/ | awk '{print $1}')
else
CHRCACHESIZE=$(echo nothing)
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" \
FALSE "Clean Firefox" "Internet" "Safe" "You can currently remove $FFCACHESIZE from your Firefox cache" \
FALSE "Clean Chrome" "Internet" "Safe" "You can currently remove $GCCACHESIZE from your Chrome cache" \
FALSE "Clean Chromium" "Internet" "Safe" "You can currently remove $CHRCACHESIZE from your Chromium cache" \
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
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #65 on: September 18, 2014, 04:20:26 AM »
 

Alex

  • Forum Regular
  • ***
  • 143
    Posts
  • Reputation: 9
  • Linux Lite Member
    • View Profile
I have updated and my original error message did not re-appear and it did deem to spend a some time actually doing stuff. So all's good now. Thank you all :)
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #64 on: September 17, 2014, 10:05:54 PM »
 

rbdflyboy

  • Occasional Poster
  • **
  • 84
    Posts
  • Reputation: 11
  • Linux Lite Member
    • View Profile
rbdflyboy, $HOME actually asks the shell to insert (substitute) the environmental variable HOME here
Code: [Select]
echo $HOMECreating those directories will make the error go away, but if the browsers don't use them to store the cache, it's pointless to use the cleaner on them.

only using Chromium for my browser. So you're saying the errors need to exist in order for the cleaner to work? Had tried Chrome only it didn't work very well so deleted that one also. The cleaner removed the left over cache files from Chrome. Can always delete the new files and live with the errors?

 
Quote

Tried the terminal again...the errors are back...checked my /.cache file and my newly created files are gone? Just guessing here...going to live with the errors and leave well enough alone.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #63 on: September 17, 2014, 09:40:35 PM »
 

rbdflyboy

  • Occasional Poster
  • **
  • 84
    Posts
  • Reputation: 11
  • Linux Lite Member
    • View Profile
rbdflyboy, $HOME actually asks the shell to insert (substitute) the environmental variable HOME here
Code: [Select]
echo $HOMECreating those directories will make the error go away, but if the browsers don't use them to store the cache, it's pointless to use the cleaner on them.

only using Chromium for my browser. So you're saying the errors need to exist in order for the cleaner to work? Had tried Chrome only it didn't work very well so deleted that one also. The cleaner removed the left over cache files from Chrome. Can always delete the new files and live with the errors?
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #62 on: September 17, 2014, 07:46:33 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
rbdflyboy, $HOME actually asks the shell to insert (substitute) the environmental variable HOME here
Code: [Select]
echo $HOMECreating those directories will make the error go away, but if the browsers don't use them to store the cache, it's pointless to use the cleaner on them.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #61 on: September 17, 2014, 07:19:44 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    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
rbdflyboy, do you have all of those web browsers installed?
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #60 on: September 17, 2014, 07:17:19 PM »
 

rbdflyboy

  • Occasional Poster
  • **
  • 84
    Posts
  • Reputation: 11
  • Linux Lite Member
    • View Profile
If google chrome isn't installed, the output will be:
Code: [Select]
du: cannot access ‘/home/linuxlite/.cache/google-chrome/’: No such file or directory"so the script should check if $HOME/.cache/firefox, $HOME/.cache/google-chrome and $HOME/.cache/chromium folders 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}')

if [  -d  "$HOME/.cache/mozilla/"  ]; then
FFCACHESIZE=$(du -sh $HOME/.cache/mozilla/ | awk '{print $1}')
else
FFCACHESIZE=$(echo 0)
fi

if [  -d  "$HOME/.cache/google-chrome/" ]; then
GCCACHESIZE=$(du -sh $HOME/.cache/google-chrome/ | awk '{print $1}' )
else
GCCACHESIZE=$(echo nothing)
fi

if [  -d  "$HOME/.cache/chromium/" ]; then
CHRCACHESIZE=$(du -sh $HOME/.cache/chromium/ | awk '{print $1}')
else
CHRCACHESIZE=$(echo nothing)
fi

# I've noticed that the dialog window icon doesn't match the menu icon, next line will fix this
ic="/usr/share/pixmaps/litecleaner.png"

# the other part is the same...


Think the fog is starting to lift somewhat...$Home/.cache/ doesn't exist in my OS. $ /home/rick/.cache/ does exist, only does not contain Firefox, Chromium, or Google-Chrome. These three are not housed in my /home/rick/.cache directory, they're housed somewhere else.
There is a  separate  /.mozilla  directory which houses two files...extensions and firefox. Copied both files to /home/rick/.cache, then created a new folder named "mozilla" and inserted the two files into the "mozilla" folder. This solved the terminal error for mozilla.
The problem now is there are Chromium and Chrome errors that still exist and they are not listed anywhere in the /. directory. If someone would be so kind as to lead me where to find where them...one might be able to solve the other two errors as well. Thanks in advance


Just found chromium-browser in the etc directory and google in the opt directory....should be able to sort this out now.

Have cleared all the terminal errors and Lite Cleaner starts up much quicker from the terminal. Created a new Chromium folder in /.cache and inserted the contents of "chromium-browser" from the etc directory into it. Created google-chrome folder and inserted contents of "google" from opt directory into it. Had to create the new folder names to match otherwise the errors would not clear. Also, didn't move the folders from their respective directories just copied them to /.cache and dragged them into the new folders.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #59 on: September 17, 2014, 06:41:10 PM »
 

rbdflyboy

  • Occasional Poster
  • **
  • 84
    Posts
  • Reputation: 11
  • Linux Lite Member
    • View Profile
If google chrome isn't installed, the output will be:
Code: [Select]
du: cannot access ‘/home/linuxlite/.cache/google-chrome/’: No such file or directory"so the script should check if $HOME/.cache/firefox, $HOME/.cache/google-chrome and $HOME/.cache/chromium folders 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}')

if [  -d  "$HOME/.cache/mozilla/"  ]; then
FFCACHESIZE=$(du -sh $HOME/.cache/mozilla/ | awk '{print $1}')
else
FFCACHESIZE=$(echo 0)
fi

if [  -d  "$HOME/.cache/google-chrome/" ]; then
GCCACHESIZE=$(du -sh $HOME/.cache/google-chrome/ | awk '{print $1}' )
else
GCCACHESIZE=$(echo nothing)
fi

if [  -d  "$HOME/.cache/chromium/" ]; then
CHRCACHESIZE=$(du -sh $HOME/.cache/chromium/ | awk '{print $1}')
else
CHRCACHESIZE=$(echo nothing)
fi

# I've noticed that the dialog window icon doesn't match the menu icon, next line will fix this
ic="/usr/share/pixmaps/litecleaner.png"

# the other part is the same...


Think the fog is starting to lift somewhat...$Home/.cache/ doesn't exist in my OS. $ /home/rick/.cache/ does exist, only does not contain Firefox, Chromium, or Google-Chrome. These three are not housed in my /home/rick/.cache directory, they're housed somewhere else.
There is a  separate  /.mozilla  directory which houses two files...extensions and firefox. Copied both files to /home/rick/.cache, then created a new folder named "mozilla" and inserted the two files into the "mozilla" folder. This solved the terminal error for mozilla.
The problem now is there are Chromium and Chrome errors that still exist and they are not listed anywhere in the /. directory. If someone would be so kind as to lead me where to find where them...one might be able to solve the other two errors as well. Thanks in advance


Just found chromium-browser in the etc directory and google in the opt directory....should be able to sort this out now.
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #58 on: September 17, 2014, 06:11:44 PM »
 

rbdflyboy

  • Occasional Poster
  • **
  • 84
    Posts
  • Reputation: 11
  • Linux Lite Member
    • View Profile
If google chrome isn't installed, the output will be:
Code: [Select]
du: cannot access ‘/home/linuxlite/.cache/google-chrome/’: No such file or directory"so the script should check if $HOME/.cache/firefox, $HOME/.cache/google-chrome and $HOME/.cache/chromium folders 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}')

if [  -d  "$HOME/.cache/mozilla/"  ]; then
FFCACHESIZE=$(du -sh $HOME/.cache/mozilla/ | awk '{print $1}')
else
FFCACHESIZE=$(echo 0)
fi

if [  -d  "$HOME/.cache/google-chrome/" ]; then
GCCACHESIZE=$(du -sh $HOME/.cache/google-chrome/ | awk '{print $1}' )
else
GCCACHESIZE=$(echo nothing)
fi

if [  -d  "$HOME/.cache/chromium/" ]; then
CHRCACHESIZE=$(du -sh $HOME/.cache/chromium/ | awk '{print $1}')
else
CHRCACHESIZE=$(echo nothing)
fi

# I've noticed that the dialog window icon doesn't match the menu icon, next line will fix this
ic="/usr/share/pixmaps/litecleaner.png"

# the other part is the same...


Think the fog is starting to lift somewhat...$Home/.cache/ doesn't exist in my OS. $ /home/rick/.cache/ does exist, only does not contain Firefox, Chromium, or Google-Chrome. These three are not housed in my /home/rick/.cache directory, they're housed somewhere else.
There is a  separate  /.mozilla  directory which houses two files...extensions and firefox. Copied both files to /home/rick/.cache, then created a new folder named "mozilla" and inserted the two files into the "mozilla" folder. This solved the terminal error for mozilla.
The problem now is there are Chromium and Chrome errors that still exist and they are not listed anywhere in the /. directory. If someone would be so kind as to lead me where to find where them...one might be able to solve the other two errors as well. Thanks in advance
 

Re: Lite Cleaner - Suggestions welcomed
« Reply #57 on: September 17, 2014, 01:13:19 PM »
 

Coastie

  • PayPal Supporter
  • Gold Level Poster
  • *****
  • 656
    Posts
  • Reputation: 53
  • Linux Lite User
    • View Profile

  • CPU: AMD A10-6700 (ASUS M32)

  • MEMORY: 12Gb

  • VIDEO CARD: ADM Radeon HD (integrated)
Exactly! Thanks.  8)


Left Mac OS X for Linux in Jan 2014
 

 

-->
X Close Ad

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