Linux Lite Forums

Development => Linux Lite Software Development => Topic started by: Jerry on September 04, 2014, 04:51:45 PM

Title: Lite Tweaks - Suggestions welcomed
Post by: Jerry on September 04, 2014, 04:51:45 PM
Our next addition to the Lite application family will be Lite Tweaks.

Install:

Code: [Select]
sudo apt-get update && sudo apt-get install lite-cleaner
Source here: https://github.com/linuxlite/litetweaks (https://github.com/linuxlite/litetweaks)

(http://i.imgur.com/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:

Let the ideas flow. Remember, no idea is a bad idea :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rokytnji on September 04, 2014, 05:53:47 PM
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: [Select]
apt-get autoremove

Code: [Select]
deborphan | xargs apt-get -y remove
Code: [Select]
  COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Alex on September 04, 2014, 06:17:50 PM
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.

:)

Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 04, 2014, 06:32:03 PM
There should be an option to remove old kernels.
I guess these are already in the script.
Code: [Select]
sudo apt-get autoclean
Code: [Select]
sudo apt-get clean
Code: [Select]
sudo apt-get autoremove
Maybe clearing thumbnail cache
Code: [Select]
rm -f ~/.cache/thumbnails/normal/*Purging unused configuration files
Code: [Select]
sudo dpkg --purge $(COLUMNS=200 dpkg -l | grep "^rc" | tr -s ' ' | cut -d ' ' -f 2)Trash cleanup
Code: [Select]
rm -r -f ~/.local/share/Trash/files/*Browser cache cleanup, would also be usefull.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 04, 2014, 06:34:26 PM
Thanks folks, keep'm coming, some good ones there already :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 04, 2014, 08:24:14 PM
I've found this 7 year old, yet very interesting script called "Ubucleaner" License: GPL
It might help you.
Code: [Select]
#!/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
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 05, 2014, 06:16:17 AM
So far ...

(http://i.imgur.com/vETSVdT.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 05, 2014, 10:03:56 AM
So far ...

(http://i.imgur.com/vETSVdT.png)
I like it.
May I see the code? I have a few ideas.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Coastie on September 05, 2014, 02:19:53 PM
This will be great for those of us like me who dread the Terminal.   :-[
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on September 05, 2014, 02:52:18 PM
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  :D

Dave
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 05, 2014, 05:28:46 PM
May I see the code? I have a few ideas.

Sure, keep in mind I haven't written any of the scripts yet, just this:

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 9th, 2014
# Website: https://www.linuxliteos.com
#--------------------------------------------------------------------------------------------------------
ic="/usr/share/icons/zenity-llcc.png"

selection=$(zenity --window-icon="$ic" --list --checklist --width=890 --height=400 --column="Select" --column="Name" --column="Category" --column="Status" \
 --column="Description" --text="Select the task you wish to perform, then click the Clean button. Sort Categories by clicking on the column.\n\nThere are 3 levels of Status:\n<b>Safe</b> - Safe to perform, no harm can be done.\n<b>Caution</b> - Proceed with caution, read the warning on the proceeding step.\n<b>Title</b> - Text go here.\n\nYou can select multiple tasks to perform." --title="Lite Cleaner" --ok-label="Clean" --cancel-label="Quit" \
"1" "Clean package cache" "Packages" "Safe" "Clean downloaded .deb files from your apt cache" \
"2" "Autoremove packages" "Packages" "Safe" "Remove packages automatically installed for programs and that are no longer present" \
"3" "Clear thumbnail cache" "Images" "Safe" "Delete thumbnail files created when viewing images" \
"4" "Empty all Trash Bins" "Home" "Safe" "Empty the Trash Bins for all users" \
"5" "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 "Clear thumbnail cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/thumbnails 2>/dev/null
fi

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

echo $selection | grep "Remove old kernels" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/remkernels 2>/dev/null
fi

Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 05, 2014, 06:17:43 PM
May I see the code? I have a few ideas.

Sure, keep in mind I haven't written any of the scripts yet, just this:

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 9th, 2014
# Website: https://www.linuxliteos.com
#--------------------------------------------------------------------------------------------------------
ic="/usr/share/icons/zenity-llcc.png"

selection=$(zenity --window-icon="$ic" --list --checklist --width=890 --height=400 --column="Select" --column="Name" --column="Category" --column="Status" \
 --column="Description" --text="Select the task you wish to perform, then click the Clean button. Sort Categories by clicking on the column.\n\nThere are 3 levels of Status:\n<b>Safe</b> - Safe to perform, no harm can be done.\n<b>Caution</b> - Proceed with caution, read the warning on the proceeding step.\n<b>Title</b> - Text go here.\n\nYou can select multiple tasks to perform." --title="Lite Cleaner" --ok-label="Clean" --cancel-label="Quit" \
"1" "Clean package cache" "Packages" "Safe" "Clean downloaded .deb files from your apt cache" \
"2" "Autoremove packages" "Packages" "Safe" "Remove packages automatically installed for programs and that are no longer present" \
"3" "Clear thumbnail cache" "Images" "Safe" "Delete thumbnail files created when viewing images" \
"4" "Empty all Trash Bins" "Home" "Safe" "Empty the Trash Bins for all users" \
"5" "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 "Clear thumbnail cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/thumbnails 2>/dev/null
fi

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

echo $selection | grep "Remove old kernels" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/remkernels 2>/dev/null
fi


Thank you. I made some modifications. Some options are preselected now and I figured out how to change the formating of the text.
More text options are here: https://developer.gnome.org/pygtk/stable/pango-markup-language.html (https://developer.gnome.org/pygtk/stable/pango-markup-language.html)
It looks like it only works if you set text like this
--text='<span foreground="blue"> content </span>'
with '  '  not with " "
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 9th, 2014
# Website: https://www.linuxliteos.com
#--------------------------------------------------------------------------------------------------------
ic="/usr/share/icons/zenity-llcc.png"

selection=$(zenity --window-icon="$ic" --list --checklist --width=890 --height=400 --column="Select" --column="Name" --column="Category" --column="Status" \
 --column="Description" --text='Select the task you wish to perform, then click the Clean button. Sort Categories by clicking on the column.\n\nThere are 3 levels of Status:\n <span foreground="green">Safe</span>-Safe to perform, no harm can be done.\n<span foreground="#ec691d">Caution</span> - Proceed with caution, read the warning on the proceeding step.\n<b>Title</b> - Text go here.\n\nYou can select multiple tasks to perform.' --title="Lite Cleaner" --ok-label="Clean" --cancel-label="Quit" \
TRUE "Clean package cache" "Packages" "Safe" "Clean downloaded .deb files from your apt cache" \
TRUE "Autoremove packages" "Packages" "Safe" "Remove packages automatically installed for programs and that are no longer present" \
TRUE "Clear thumbnail cache" "Images" "Safe" "Delete thumbnail files created when viewing images" \
FALSE "Empty all Trash Bins" "Home" "Safe" "Empty the Trash Bins for all users" \
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 "Clear thumbnail cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/thumbnails 2>/dev/null
fi

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

echo $selection | grep "Remove old kernels" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/remkernels 2>/dev/null
fi
More suggestions...
flash cookies
rm -rf $HOME/.macromedia/Flash_Player/#SharedObjects/*
rm -rf $HOME/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/*
flash cache
rm -rf $HOME/.adobe/Flash_Player/AssetCache/*
firefox cache
rm -rf $HOME/.cache/mozilla/firefox/*.default/cache*/entries/*
firefox thumbnails
rm -rf $HOME/.cache/mozilla/firefox/*.default/thumbnails/*
firefox cookies
rm -f $HOME/.mozilla/firefox/*.default/cookies.sqlite
firefox Autocomplete history
rm -f $HOME/.mozilla/firefox/*.default/formhistory.sqlite
firefox passwords
rm -f $HOME/.mozilla/firefox/*.default/signons.sqlite
firefox site preferences
rm -f $HOME/.mozilla/firefox/*.default/content-prefs.sqlite
firefox DOM storage
rm -f $HOME.mozilla/firefox/*.default/webappsstore.sqlite
firefox session restore
rm -f $HOME/.mozilla/firefox/*.default/sessionstore.js
rm -f $HOME/.mozilla/firefox/*.default/sessionstore.bak
firefox URL history, bookmarks, downloads
rm -f $HOME/.mozilla/firefox/*.default/places.sqlite
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 05, 2014, 06:21:06 PM
Nice misko, we can certainly use that, keep at it. Awesome stuff :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Alex on September 06, 2014, 07:17:29 PM
This maybe a stupid question, but I was just wondering if it is at all possible, to help brand new users like me, to have a drop down on right click on any program/app and have an UnInstall choice which will 'take-out' the whole program and its dependencies.

:)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 07, 2014, 07:12:19 AM
Have started on some of the scripts. Here's what the apt cache cleaner looks like, printing the directory size.

(http://i.imgur.com/VvgXh0Z.png)

Source here: https://github.com/linuxlite/litecleaner
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 07, 2014, 03:13:08 PM
Have started on some of the scripts. Here's what the apt cache cleaner looks like, printing the directory size.
Nice.
I've had some experiments on removing individual old kernels instead of all old kernels.
Code: [Select]
#! /bin/bash

ic="/usr/share/icons/zenity-llcc.png"

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)

# sed command adds all FALSE entries in the column 'Select'
# separator sets the output of the checklist, "\n" can also be used
selection=$(echo "$OLDKERNELS" | sed -e 's/^/FALSE\n/' | zenity --window-icon="$ic" --list --checklist --separator=" " --width=890 --height=400   --column='Select' --column='Kernel' \
--text=' ' --title="Lite Cleaner" --ok-label="Clean" --cancel-label="Quit" )

# Next line just tests the output of a checklist
echo "$selection"
# Next line deletes all of the selected kernels
# gksudo "$(echo "$selection" | sed -e 's/^/sudo apt-get purge -y /')"
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 08, 2014, 02:26:10 PM
Awesome stuff misko, I really like that and can't wait to test. What sort of results have you had so far?
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 08, 2014, 08:44:59 PM
So far it's working with an old  3.15.0 kernel.
(http://i.imgur.com/HKYMQh1.png)
So I've used this to uninstall it.
Code: [Select]
#! /bin/bash
#--------------------------------------------------------------------------------------------------------
# Name: Old Kernel Remover GUI
# Description: Prints out old kernels and removes them.
# Authors: Misko_2083, Jerry Bezencon
# Date: September 9th, 2014
# Website: https://www.linuxliteos.com
#--------------------------------------------------------------------------------------------------------
ic="/usr/share/icons/zenity-llcc.png"

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)

# sed command adds all FALSE entries in the column 'Select'
# separator sets the separator in the output of the checklist, could be a new line \n or anything else
selection=$(echo "$OLDKERNELS" | sed -e 's/^/FALSE\n/' | zenity --window-icon="$ic" --list --checklist --separator="" --width=890 --height=400   --column='Select' --column='Kernel' \
--text=' ' --title="Lite Cleaner" --ok-label="Clean" --cancel-label="Quit" )


echo $selection | grep linux-headers-linuxlite-3.15.0
if [ $? = 0 ];then
gksudo -g --message '.' "sudo apt-get purge linux-headers-linuxlite-3.15.0 --force-yes -y" | zenity --progress --title="removing kernel"  --text="Uninstalling headers 3.15.0..." --pulsate --width=400 --auto-close --auto-kill
fi

echo $selection | grep linux-image-linuxlite-3.15.0
if [ $? = 0 ];then
gksudo -g --message '.' "sudo apt-get purge linux-image-linuxlite-3.15.0 --force-yes -y" | zenity --progress --title="removing kernel"  --text="Uninstalling image 3.15.0..." --pulsate --width=400 --auto-close --auto-kill
fi
And it worked. When I start the script again I get this:
(http://i.imgur.com/zPjko1m.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 08, 2014, 11:14:14 PM
OK so I made a lot of changes.
First the script checks if there are any old kernels/headers...
If there are no old kernels it will just display a message.
This version will purge any output it gets from $checklist.
If no item was selected it will display a message 'Nothing was selected.'.
Cancel button in the progress bar is hidden.
The only thing I can't fix is that message when I click on Quit: 'Nothing was selected.'.
I guess I can always change the message to 'Nothing was selected or you pressed Quit.' :)
Code: [Select]
#! /bin/bash

ic="/usr/share/icons/zenity-llcc.png"

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)

# check if there are old kernels
echo "$OLDKERNELS" | grep linux*
if [  $? = 1 ]; then
zenity --error \
--title="Error" --text="No old Kernels found."
exit 0
fi

# sed command adds all FALSE entries in the column 'Select'
# separator sets the separator in the output of the checklist, could be a new line \n or anything else
selection=$(echo "$OLDKERNELS" | sed -e 's/^/FALSE\n/' | zenity --window-icon="$ic" --list --checklist --separator=" " --width=890 --height=400   --column='Select' --column='Kernel' \
--text=' ' --title="Lite Cleaner" --ok-label="Clean" --cancel-label="Quit" )

#check if any item was selected
echo "$selection" | grep linux*
if [ $? = 1 ]; then
zenity --error \
--title="Error" --text="Nothing was selected."
exit 0
fi

zenity --question --title="Question"  --text="Do you want to proceed?"
 if [ "$?" -eq "0" ]; then
gksudo -g --message 'To run this cleaner your password is required. Enter your password, or press Cancel.' "sudo apt-get purge -y $selection" | zenity --progress --title='removing kernel/header'  --text='Uninstalling...' --no-cancel --pulsate --width=400 --auto-close --auto-kill

    if [ "${PIPESTATUS[0]}" -ne "0" ]; then
    zenity --error \
--title="Error" --text="Uninstall has failed."
exit 0
    fi
else
exit 0
fi
   PROCEED=$(zenity --info --title="Cleaner" --text="The cleaner has finished."; echo $?)
   if [ ${PROCEED} -eq 1 ]; then
   zenity --info --title='Cleaner' --text='Clean Complete.'
exit 0
   fi
exit 0
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 09, 2014, 04:21:28 AM
Absolutely fantastic :)

Sent from my GT-N7000 using Tapatalk

Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rijnsma on September 10, 2014, 04:05:45 PM
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.

:)
Is it still around... ??? Good program and together with other tools great in cleaning the Windows 'register'. Lot of work, but it cαn pay off...
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on September 10, 2014, 04:58:56 PM

The only thing I can't fix is that message when I click on Quit: 'Nothing was selected.'.
I guess I can always change the message to 'Nothing was selected or you pressed Quit.' :)

If I understand this scenario, which may not be the case...?
It when there is nothing showing to select?
So how about
"No Old Kernels Available To Remove"
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 10, 2014, 05:43:21 PM
No,when Quit is clicked it will open a message. It should just quit.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on September 10, 2014, 05:52:53 PM
No,when Quit is clicked it will open a message. It should just quit.

Argh O.K... Understould, "Quit" is just not quitting O.K
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 15, 2014, 11:21:53 AM
Lite Cleaner is now available for download:

Code: [Select]
sudo apt-get update && sudo apt-get install lite-cleaner
Current version: litecleaner_1.0-0030

Installs to: Menu, System, Lite Cleaner or you can run lite-cleaner from the command line.

Once the kernel portion is perfected we will include that is a future for release but for now, there should be enough tools there to clean some peoples systems significantly. A HUGE thank you to those who contributed code and ideas, this couldn't be possible without your input, so I thank you all, and so do the people who use our software :)

(http://i.imgur.com/hamrK9T.png)

(http://i.imgur.com/FgmcM7C.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 15, 2014, 12:26:24 PM
It's not working well when you have multiple users.
When I start it from terminal:
Code: [Select]
du: cannot read directory ‘/home/misko2/.thumbnails/’: Permission deniedThat's because it will try to display cache size from all the users:
Code: [Select]
THUMBCACHESIZE=$(du -sh /home/*/.thumbnails/ | awk '{print $1}')
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 15, 2014, 12:35:51 PM
Thanks misko_2083, I will fix this :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 15, 2014, 12:59:13 PM
Ok, I have limited this to per-user function. I think it's a more sensible approach as people will probably not want others messing with their home folder on multiple user systems.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on September 15, 2014, 08:03:10 PM
Hello,
Thank you everyone for the ideas and work in making the Lite Cleaner.  8)


Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 15, 2014, 08:14:38 PM
Ok, I have limited this to per-user function. I think it's a more sensible approach as people will probably not want others messing with their home folder on multiple user systems.
Cool, tested and it's all ok now.
That approach is much better.

One more thing.
Maybe you could make a contest on the forum for the design of that lite-cleaner icon.
This one looks a like a toaster that's stuck in the golf hole. :D
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Alex on September 15, 2014, 09:05:43 PM
Worked very well and very fast; except for this message:

(http://thegomc.com/DPInew/image-664F_54178C54.jpg) (http://thegomc.com/DPInew/share-664F_54178C54.html)


I am not sure of its significance, but thought that it might be worth reporting.

Thanks

:)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rbdflyboy on September 15, 2014, 09:14:19 PM
Thank you all for this fine app.
Can one add Chromium to the list?
Have some questions regarding left over items that will not delete. Is this by design? For example there are 44k worth of files from my apt cache, 4.0K from my thumbnail cache, and 16.0K from my Trash bin. Have been re selecting these and am being told the removal has been completed...only they're still there? Not quite sure what this means? Thanks, in advance.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 15, 2014, 09:45:09 PM
Worked very well and very fast; except for this message:

(http://thegomc.com/DPInew/image-664F_54178C54.jpg) (http://thegomc.com/DPInew/share-664F_54178C54.html)


I am not sure of its significance, but thought that it might be worth reporting.

Thanks

:)


Can you run lite-cleaner from the command line and paste the output when you have finished running Autoremove packages.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 15, 2014, 10:15:24 PM
More than happy for someone to come up with a different icon :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Alex on September 16, 2014, 03:40:09 AM
Worked very well and very fast; except for this message:

(http://thegomc.com/DPInew/image-664F_54178C54.jpg) (http://thegomc.com/DPInew/share-664F_54178C54.html)


I am not sure of its significance, but thought that it might be worth reporting.

Thanks

:)


Can you run lite-cleaner from the command line and paste the output when you have finished running Autoremove packages.

I credit me with more knowledge than I possess...could you supply me with the right commands - I'm real good at copy&paste :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 16, 2014, 03:48:50 AM
Open a terminal, type: lite-cleaner, hit enter
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Alex on September 16, 2014, 06:45:27 AM
The result was exactly the same: the same error message...

Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 16, 2014, 09:07:34 AM
More than happy for someone to come up with a different icon :)
(https://raw.githubusercontent.com/linuxlite/litecleaner/master/usr/share/pixmaps/litecleaner.png)

(http://i.imgur.com/UmUsJGe.png)
(http://i.imgur.com/hYSTz53.png)
I have tried to send an .xcf file, but only .txt is alowed in the attachment
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bobw on September 16, 2014, 12:55:35 PM
I'm getting the same error message when I try to use Lite Cleaner to remove redundant packages, running 64-bit LL2.0.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rbdflyboy on September 16, 2014, 02:08:56 PM
Thank you all for this fine app.
Can one add Chromium to the list?
Have some questions regarding left over items that will not delete. Is this by design? For example there are 44k worth of files from my apt cache, 4.0K from my thumbnail cache, and 16.0K from my Trash bin. Have been re selecting these and am being told the removal has been completed...only they're still there? Not quite sure what this means? Thanks, in advance.

"rick@rick-Dimension-2400:~$ lite-cleaner
du: cannot access ‘/home/rick/.cache/mozilla/’: No such file or directory"

This a True and verified statement Have removed Firefox in favor of Chromium because got tired of the freezes and having to hard reboot. Chromium does the same only the frequency is much less. Looks like my option here is to go back to apt-get/aptitude and to continue using Clamtk.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 16, 2014, 02:16:09 PM
I'm getting the same error message when I try to use Lite Cleaner to remove redundant packages, running 64-bit LL2.0.
Post the output of
Code: [Select]
sudo apt-get autoremoveDid you get something like
Code: [Select]
Do you want to continue? (Y/n)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 16, 2014, 04:12:01 PM
More than happy for someone to come up with a different icon :)
(https://raw.githubusercontent.com/linuxlite/litecleaner/master/usr/share/pixmaps/litecleaner.png)

(http://i.imgur.com/UmUsJGe.png)
(http://i.imgur.com/hYSTz53.png)
I have tried to send an .xcf file, but only .txt is alowed in the attachment

Did you make these?
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 16, 2014, 06:53:37 PM
Yep, here is some more:
(http://i.imgur.com/drLg3nN.png)(http://i.imgur.com/eixa41m.png)(http://i.imgur.com/6lxqoi2.png)(http://i.imgur.com/vE29U02.png)(http://i.imgur.com/x9fWDHA.png)(http://i.imgur.com/g9vAN9m.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Scott on September 16, 2014, 07:13:48 PM
@Misko
The Lite Cleaner icons you made are very nice!
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 16, 2014, 07:31:55 PM
Awesome! Could you please do one where the guy and broom is silver on a black background? Thank you.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 16, 2014, 08:28:20 PM
@Misko
The Lite Cleaner icons you made are very nice!
Thanks Scott(0)!
Awesome! Could you please do one where the guy and broom is silver on a black background? Thank you.
Sure. Silver, that's "#c0c0c0".
(http://i.imgur.com/HWg76Uu.png)(http://i.imgur.com/F9UWTOx.png)(http://i.imgur.com/VYzX9oG.png)(http://i.imgur.com/zODgEPF.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 16, 2014, 08:32:26 PM
Me likes :) Thank you misko.

(http://i.imgur.com/nWqhy4l.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 16, 2014, 08:39:18 PM
Me likes :) Thank you misko.
You're welcome. Glad you like it. :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 17, 2014, 02:48:21 AM
litecleaner_1.0-0080 released. Run Install Updates to get it.

Changes:

To do: Add ask for password once from Menu launch.

(http://i.imgur.com/cr2sFbV.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: mpig on September 17, 2014, 03:16:03 AM
Just installed this app. It works great. I love it. And i like the new icon. :D
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bobw on September 17, 2014, 03:45:13 AM
I'm getting the same error message when I try to use Lite Cleaner to remove redundant packages, running 64-bit LL2.0.
Post the output of
Code: [Select]
sudo apt-get autoremoveDid you get something like
Code: [Select]
Do you want to continue? (Y/n)

Thanks for your help misko.  I haven't actually tried your suggestion yet, but I have just updated to the newly-released litecleaner_1.0-0080 and the problem has been cured.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 17, 2014, 03:51:37 AM
I added a -y to the executable, hopefully that should resolve this issue for bobw and others.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 17, 2014, 08:04:28 AM
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...
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 17, 2014, 08:44:08 AM
Nice touch there misko, I'll add these to the next version :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Coastie on September 17, 2014, 10:33:58 AM
Nice icon! How about the silver or white cleaner on a clear background for  a Xfce dock? Thanks.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 17, 2014, 12:48:19 PM
Nice icon! How about the silver or white cleaner on a clear background for  a Xfce dock? Thanks.
Clear? Do you mean with transparent background?
(http://i.imgur.com/vKzGey8.png)(http://i.imgur.com/aHQMz69.png)
the first is silver, the second one is white
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Coastie on September 17, 2014, 01:13:19 PM
Exactly! Thanks.  8)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rbdflyboy on September 17, 2014, 06:11:44 PM
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
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rbdflyboy on September 17, 2014, 06:41:10 PM
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.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rbdflyboy on September 17, 2014, 07:17:19 PM
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.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 17, 2014, 07:19:44 PM
rbdflyboy, do you have all of those web browsers installed?
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 17, 2014, 07:46:33 PM
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.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rbdflyboy on September 17, 2014, 09:40:35 PM
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?
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: rbdflyboy on September 17, 2014, 10:05:54 PM
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.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Alex on September 18, 2014, 04:20:26 AM
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 :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 18, 2014, 05:41:15 AM
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
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 18, 2014, 05:46:55 AM
If you don't have a program installed, don't tick the box for it.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on September 18, 2014, 06:48:41 AM
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
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 18, 2014, 11:36:04 AM
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
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 18, 2014, 04:48:35 PM
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 :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 18, 2014, 04:49:55 PM
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.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 21, 2014, 06:50:49 PM
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
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 22, 2014, 12:32:38 AM
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.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 22, 2014, 02:16:56 AM
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 (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 (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 (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 (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.


Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 22, 2014, 02:18:34 AM
I've got to update github sometime today :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 22, 2014, 03:26:36 AM
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
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 22, 2014, 04:17:09 AM
Very nice contribution there misko, github and Install Updates have been updated :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 24, 2014, 12:24:50 AM
I've finished the Old Kernel Cleaner. :)
What text should I use for the dialog?
(http://i.imgur.com/cRfNniU.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 24, 2014, 12:29:02 AM
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....
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 24, 2014, 12:38:14 AM
Is this OK?
(http://i.imgur.com/VWwx9pO.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 24, 2014, 12:45:38 AM
Thats fine, I can always tweak it at this end misko :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 24, 2014, 01:09:17 AM
Forgot to add, does this feature work in both 32 and 64bit?
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on September 24, 2014, 01:23:45 AM
I haven't tested it on 64bit but I'm sure it will work.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 24, 2014, 01:33:44 AM
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 :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 24, 2014, 06:00:33 AM
litecleaner_1.0-0110 released. Run Install Updates to get it.

Changes:

(http://i.imgur.com/Xcv2klI.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: N4RPS on September 26, 2014, 03:48:17 AM
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
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on September 27, 2014, 04:32:03 AM
Thanks Rob, you're welcome.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: eightbit on September 29, 2014, 01:11:53 AM
64-bit here, and kernel cleaning worked perfectly. Nice job on this. One thing I do not think is necessary is the checking of large files. I have thousands (hundreds of thousands) of files larger than 50MB. That script would have taken a very very long time :) The cleaning of other items is much welcome however.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on October 15, 2014, 04:20:38 AM
Lite Cleaner 1.0-0130 is now available. Run Install Updates to get it.

Changes:
Nice job misko :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on October 15, 2014, 05:41:56 AM
Lite Cleaner 1.0-0130 is now available. Run Install Updates to get it.

Changes:
  • "Clear thumbnail cache" changed to "Clean thumbnail cache" bug fixed.
     If thumbnails cache size is less than 100kB now it will display as 0k.
     If package cache size is less then 100kB are it will display as 0k.
     Added 'sort' to the kernel cleaner.
Nice job misko :)

Worked for me... not run it for a while... 315MB cleaned, nice :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on October 15, 2014, 05:52:52 AM
Lite Cleaner 1.0-0130 is now available. Run Install Updates to get it.

Changes:
  • "Clear thumbnail cache" changed to "Clean thumbnail cache" bug fixed.
     If thumbnails cache size is less than 100kB now it will display as 0k.
     If package cache size is less then 100kB are it will display as 0k.
     Added 'sort' to the kernel cleaner.
Nice job misko :)

Worked for me... not run it for a while... 315MB cleaned, nice :)

Out of curiosity... I just ran the "Preview" option in "Bleachbit"... it found this:
Code: [Select]
Delete 4.1kB /usr/share/man/sv/man1/dpkg-distaddfile.1.gz
Delete 4.1kB /usr/share/man/sv/man1/dpkg-scanpackages.1.gz
Delete 8.2kB /usr/share/man/sv/man1/dpkg-shlibdeps.1.gz
Delete 4.1kB /usr/share/man/sv/man1/dpkg-name.1.gz
Delete 4.1kB /usr/share/man/sv/man1/dpkg-genchanges.1.gz
Delete 4.1kB /usr/share/man/sv/man5
Delete 4.1kB /usr/share/man/sv/man1
Delete 4.1kB /usr/share/man/sv
Delete 12.3kB /usr/share/man/vi/man7/po-debconf.7.gz
Delete 4.1kB /usr/share/man/vi/man1/po2debconf.1.gz
Delete 4.1kB /usr/share/man/vi/man1/debconf-updatepo.1.gz
Delete 4.1kB /usr/share/man/vi/man1/podebconf-display-po.1.gz
Delete 4.1kB /usr/share/man/vi/man1/debconf-gettextize.1.gz
Delete 8.2kB /usr/share/man/vi/man1/podebconf-report-po.1.gz
Delete 4.1kB /usr/share/man/vi/man7
Delete 4.1kB /usr/share/man/vi/man1
Delete 4.1kB /usr/share/man/vi
Delete 57.3kB /var/log/dmesg.0
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
apt-get autoclean ?B
apt-get autoremove ?B
Clean ?B /root/.config/libreoffice/4/user/registrymodifications.xcu

Disk space to be recovered: 2.1MB
Files to be deleted: 417
Special operations: 4

I think .old and archived log files are valid items to remove,

CAUTION ~ DO NOT RUN "BLEACHBIT" unless you really understand the implications
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on October 15, 2014, 07:23:20 PM
Thank You for the update Valtam and Misko. :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on November 02, 2014, 01:29:09 AM
I have a suggestion for Lite Cleaner, an option to empty the "Recently Used" folder in the main menu.




Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on November 02, 2014, 02:15:28 AM

I have a suggestion for Lite Cleaner, an option to empty the "Recently Used" folder in the main menu.


You could make a feature request here - https://github.com/gottcode/xfce4-whiskermenu-plugin (https://github.com/gottcode/xfce4-whiskermenu-plugin) for the Whisker Menu.
Or if some code wizard could come along and suggest a sed command or something similar that replaces line 2 in /home/user/.config/xfce4/panel/whiskermenu-*.rc with just recent= A login in/log out would be required for it to take effect.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: shaggytwodope on November 02, 2014, 04:04:34 AM
Here ya go chaps.
Code: [Select]
sed -i 's/^recent=.*$/recent=/g' ~/.config/xfce4/panel/whiskermenu-1.rc
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on November 02, 2014, 04:15:23 AM
Awesome shaggytwodope thank you :)
We will also include:

Code: [Select]
dbus-send --print-reply --dest=org.xfce.Panel /org/xfce/Panel org.xfce.Panel.Terminate boolean:true
Which will reload the panel and clear Recently Used without the need to logout/in.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on November 02, 2014, 04:30:55 AM
Thank You shaggytwodope and Valtam.

Valtam I viewed the github link but didn't make any request, I did do their newbie course last week but cannot relate it very well to github. I learn differently and to me they seem like 2 different unrelated things at the moment. I may look in to github at a future time.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on November 02, 2014, 07:40:46 AM
Good job shaggytwodope and Valtam, and thank you for an idea bitsanpcs.

I would just add the check if there are Recent items in the whisker menu.
Something like this. :)

Code: [Select]
#!/bin/bash

# check if whisker menu has recent items
if [ -z "$(cat $HOME/.config/xfce4/panel/whiskermenu-1.rc | grep "^recent=" | cut -d '=' -f2)" ]; then
whisker_recent=(FALSE "Clean Whisker Recent" "Whisker" "Safe" "Whisker menu has no recent items" )
else
whisker_test=$(cat $HOME/.config/xfce4/panel/whiskermenu-1.rc | grep "^recent=" | cut -d '=' -f2 | sed 's/,/ /g'| wc -w)
whisker_recent=(FALSE "Clean Whisker Recent" "Whisker" "Safe" "You can currently remove $whisker_test recent items from your whisker menu" )
fi

zenity --list --width=800 --checklist --title="example" --column="select" --column=" " --column=" " --column=" " --column=" " "${whisker_recent[@]}"
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on November 02, 2014, 12:50:12 PM
Thank You misko_2083 for the check recent items  :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on November 03, 2014, 02:48:33 PM
New version available, thank you to bitsnpcs, misko and shaggy :)

(http://i.imgur.com/j2epJmi.png)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Coastie on November 03, 2014, 11:29:17 PM
Thanks bitsnpcs, misko and shaggy for adding cleaning Whisker Menu! I know I shouldn't but I still dread using the terminal.

My motto is if I wanted to use a terminal, I would have stayed with DOS in the dark ages.  ;D
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bobw on November 04, 2014, 04:32:12 AM
Would it be possible to include a selective cooky cleaner in Lite Cleaner, as in the Windows program CCleaner?  That enables you to maintain a list of cookies that will be excluded from the cleaning.  I use Google Chrome as my browser - I can, of course, clear browsing data in Chrome, but it's a blunt instrument that just wipes all cookies.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on November 04, 2014, 06:16:49 AM
Would it be possible to include a selective cooky cleaner in Lite Cleaner, as in the Windows program CCleaner?  That enables you to maintain a list of cookies that will be excluded from the cleaning.  I use Google Chrome as my browser - I can, of course, clear browsing data in Chrome, but it's a blunt instrument that just wipes all cookies.

Hi,
You could always add a Cookie Manager Extension directly in Chrome.??
https://chrome.google.com/webstore/search/cookie%20chrome%20addon?hl=en&_category=extensions (https://chrome.google.com/webstore/search/cookie%20chrome%20addon?hl=en&_category=extensions)

Dave
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bobw on November 04, 2014, 08:47:21 AM
Thanks Dave, I wasn't aware that cookie manager extensions existed.  I've installed the one that looked most promising, EditThisCookie, and I've read the descriptions of others, but they don't seem to provide the facility that CCleaner gives you.  With that, you can permanently protect cookies from selected domains then delete all others periodically.  EditThisCookie lets you "protect" individual cookies by making them read-only, but this only means means that the website that created the cookie will no longer be able to change it’s values.

I still think that a CCleaner type selective cookie cleaner would be a useful addition to Lite Cleaner, but I really don't know whether that is possible, or whether the amount of work involved would be justified.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on November 04, 2014, 09:29:11 AM
Thanks Dave, I wasn't aware that cookie manager extensions existed.  I've installed the one that looked most promising, EditThisCookie, and I've read the descriptions of others, but they don't seem to provide the facility that CCleaner gives you.  With that, you can permanently protect cookies from selected domains then delete all others periodically.  EditThisCookie lets you "protect" individual cookies by making them read-only, but this only means means that the website that created the cookie will no longer be able to change it’s values.

I still think that a CCleaner type selective cookie cleaner would be a useful addition to Lite Cleaner,
but I really don't know whether that is possible, or whether the amount of work involved would be justified.
Hi bobw,

I can only surmise it will not be a simple job.?
They would 1st have to identify all the cookies,
then have to develop a screen(gui) to show you them,
and then a method to select which to either keep or delete.
Not forgetting, what if you have 2 or more browsers.??

IMHO...
I think there are probably more beneficial core things to do.

Dave
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: ChrisL on November 04, 2014, 02:53:03 PM
Thanks Dave, I wasn't aware that cookie manager extensions existed.  I've installed the one that looked most promising, EditThisCookie, and I've read the descriptions of others, but they don't seem to provide the facility that CCleaner gives you.  With that, you can permanently protect cookies from selected domains then delete all others periodically.  EditThisCookie lets you "protect" individual cookies by making them read-only, but this only means means that the website that created the cookie will no longer be able to change it’s values.

I still think that a CCleaner type selective cookie cleaner would be a useful addition to Lite Cleaner, but I really don't know whether that is possible, or whether the amount of work involved would be justified.

I totally agree that this would be a great addition to a great program. If you have not used this feature on CCleaner, try it out.  It saves a lot of hassle and is very simple to use.  The cookies used are listed out and you just select them to keep (or let them be discarded normally in the clean).  CCleaner updates leave the selected "save" cookies in place when the update takes place as well.

Chris
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on November 04, 2014, 03:35:10 PM
Thanks Dave, I wasn't aware that cookie manager extensions existed.  I've installed the one that looked most promising, EditThisCookie, and I've read the descriptions of others, but they don't seem to provide the facility that CCleaner gives you.  With that, you can permanently protect cookies from selected domains then delete all others periodically.  EditThisCookie lets you "protect" individual cookies by making them read-only, but this only means means that the website that created the cookie will no longer be able to change it’s values.

I still think that a CCleaner type selective cookie cleaner would be a useful addition to Lite Cleaner, but I really don't know whether that is possible, or whether the amount of work involved would be justified.

I totally agree that this would be a great addition to a great program. If you have not used this feature on CCleaner, try it out.  It saves a lot of hassle and is very simple to use.  The cookies used are listed out and you just select them to keep (or let them be discarded normally in the clean).  CCleaner updates leave the selected "save" cookies in place when the update takes place as well.

Chris
Hi Chris,

Very familiar with CCleaner, used it since it came out 10+ years ago..
I think it would be useful addition, but I think the Dev's have bigger fish to fry...

Dave
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: ukbrian on January 04, 2015, 06:00:52 AM
Hi all

Anthony Nordquist http://en.wikipedia.org/wiki/SalineOS (http://en.wikipedia.org/wiki/SalineOS)
followed a similar path using Debian stable and creating utilities, this was his "Clean" he wrote with Yad.
https://www.youtube.com/watch?v=OBJw7fKLG6o (https://www.youtube.com/watch?v=OBJw7fKLG6o)

All his stuff is at https://github.com/SalineOS/SalineOS (https://github.com/SalineOS/SalineOS)
He's moved on to Manjaro
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on January 04, 2015, 06:36:22 AM
Hi all

Anthony Nordquist http://en.wikipedia.org/wiki/SalineOS (http://en.wikipedia.org/wiki/SalineOS)
followed a similar path using Debian stable and creating utilities, this was his "Clean" he wrote with Yad.
https://www.youtube.com/watch?v=OBJw7fKLG6o (https://www.youtube.com/watch?v=OBJw7fKLG6o)

All his stuff is at https://github.com/SalineOS/SalineOS (https://github.com/SalineOS/SalineOS)
He's moved on to Manjaro

Thank you for sharing that ukbrian. I think what we could do is add another column for 'Size' I agree with you somewhat that having the information in the middle of text is not as clear. Cheers :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on January 04, 2015, 09:50:16 AM
Hello ukbrian,

I enjoyed your video, found it informative.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: ukbrian on January 04, 2015, 11:46:51 AM
Hello ukbrian,
I enjoyed your video, found it informative.
Thank you friend :D

Do you think saline-backup might be handy, I use it a lot.

Create backup file  https://www.youtube.com/watch?v=27uXXnM1rVg (https://www.youtube.com/watch?v=27uXXnM1rVg)

Install backup file  https://www.youtube.com/watch?v=lcSA3xk7zxA (https://www.youtube.com/watch?v=lcSA3xk7zxA)

Clone partition  https://www.youtube.com/watch?v=8NffnT4UDJE (https://www.youtube.com/watch?v=8NffnT4UDJE)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: altman on January 04, 2015, 03:14:46 PM
Thanx for links ukbrian , just subd to your YT Channel today .
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Coastie on January 04, 2015, 04:23:38 PM
I have a suggestion for Lite Cleaner, an option to empty the "Recently Used" folder in the main menu.

A little late but after the work was done to add this to Lite Cleaner, I found that if you right click on an item in recently used in the Whisker Menu you have options which include "clear recently used." Clicking it clears all the items in recently used.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on January 04, 2015, 04:39:34 PM
Thank you friend :D

Do you think saline-backup might be handy, I use it a lot.

Create backup file  https://www.youtube.com/watch?v=27uXXnM1rVg (https://www.youtube.com/watch?v=27uXXnM1rVg)

Install backup file  https://www.youtube.com/watch?v=lcSA3xk7zxA (https://www.youtube.com/watch?v=lcSA3xk7zxA)

Clone partition  https://www.youtube.com/watch?v=8NffnT4UDJE (https://www.youtube.com/watch?v=8NffnT4UDJE)

Hello ukbrian,

I have LL as the only OS on its machine and am unfamiliar with managing partitions at this stage.
I think for those people using multiple partitions who are used to managing them saline-backup would be useful, it looks straight forward and efficient in use even to me.

I don't have Google account but I have bookmarked your channel in Firefox so I can watch some more tutorials, thank you for making them they are very useful. :)
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on January 04, 2015, 04:50:33 PM
A little late but after the work was done to add this to Lite Cleaner, I found that if you right click on an item in recently used in the Whisker Menu you have options which include "clear recently used." Clicking it clears all the items in recently used.

Hello Coastie,

Thank You for the information, I was not aware of this. It will be good for cleaning the Whisker Menu on its own and means users have more than one option.

I still think it was a good decision on behalf of the team to add the functionality I requested to the Lite Cleaner, it means cleaning of the Whisker Menu can be undertaken as part of a multiple selection of cleaning tasks in a single GUI, which makes cleaning an efficient process.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: altman on January 06, 2015, 07:22:55 PM
On Removing Old Kernels , maybe  have the kernels numbers together . It might be less confusing for the beginners , just saying here .
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Jerry on February 13, 2015, 07:08:25 AM
Lite Cleaner will soon be re-released as Lite Tweaks.

This will allow us to include a growing list of applications people can use to manage Linux Lite, for example misko's default browser selector.

So, what we need is a new icon. @misko_2083 would you be interested in producing a suitable icon?
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: altman on February 13, 2015, 07:15:32 AM
Oh , never stop Jerry ! Wonder what it will look like .
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Wirezfree on February 13, 2015, 07:26:12 AM
Quote
So, what we need is a new icon. @misko_2083 would you be interested in producing a suitable icon?

Just a thought,
because I'm not very good creating graphic things...
A Feather with a Stethoscope overlaid..??
Keeping your LL install healthy
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: Scott on February 13, 2015, 10:33:39 AM
Lite Tweaks. I like the sound of that! It's exciting to have new software and features on the horizon.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: altman on February 13, 2015, 10:59:33 AM
It s cool , since I thought it was already done right ! some tweaks here & there are great .
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: bitsnpcs on February 13, 2015, 11:07:54 AM
Similar theme - A mortar and pestle, with a feather logo on the mortar.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on February 13, 2015, 04:02:53 PM
Lite Cleaner will soon be re-released as Lite Tweaks.

This will allow us to include a growing list of applications people can use to manage Linux Lite, for example misko's default browser selector.

So, what we need is a new icon. @misko_2083 would you be interested in producing a suitable icon?
I'll see what I can do. Something that people will associate with tweaks.

It's hard making icons because if I add too much details it will not look nice in 24x24 pixels or even 16x16 pixels.
I like simple icons.
Title: Re: Lite Cleaner - Suggestions welcomed
Post by: misko_2083 on February 13, 2015, 05:06:08 PM
(http://i.imgur.com/Bkz1CdB.png)
I'm not a good artist as you can see. :)
If all the icons from LL would look like this it would be borring.

P.S. I've updated the script for the default browser switch.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 13, 2015, 06:19:01 PM
(http://i.imgur.com/Bkz1CdB.png)
I'm not a good artist as you can see. :)
If all the icons from LL would look like this it would be borring.

P.S. I've updated the script for the default browser switch.


Thank you for both misko, do you have the original master image file for the icon? Send to valtam at linuxliteos dot com Cheers :)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: bitsnpcs on February 13, 2015, 06:43:33 PM
Okay thank you for the responses, I get the idea now.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: misko_2083 on February 13, 2015, 07:04:53 PM
Jerry sent me his version of a screwdriver icon. It's much better than mine. I'm just an amateur when it comes to making icons. :)
Maybe some tools would do better bitsanpcs. Wrenches or maybe hammers... :)
Tweaking the soup is also good :) but most likely the users are going to think it's a cookbook. ;)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 13, 2015, 07:07:26 PM
(http://i.imgur.com/xpK6arc.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 13, 2015, 07:09:21 PM
Screw driver idea goes hand in hand with tweakings on my side .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 13, 2015, 08:05:07 PM
Ok, new package is now available, just run Install Updates. Menu entry is now called Lite Tweaks, misko's default browser chooser has been added.


(http://i.imgur.com/4OLsGMe.png)

(http://i.imgur.com/ZaM6kGq.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 13, 2015, 09:13:31 PM
lol , just saw that after update ! Thanx for the great work !

Get:1 http://repo.linuxliteos.com/linuxlite/ beryl/main lite-cleaner all 1.0-0170-linuxlite [8,688 B]
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Coastie on February 13, 2015, 11:57:43 PM
(http://i.imgur.com/xpK6arc.png)

Could I have a copy of this .png with a clear background again?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 14, 2015, 06:07:22 AM
Code: [Select]
wget https://www.linuxliteos.com/images/litetweaks-256px.png
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Coastie on February 14, 2015, 03:35:45 PM
Thanks, Jerry but I was look the screw driver on a clear background for my desktop like was made like the clearer.

No problem because I found a yellow handle screwdriver crossed with a wrench in icons.  8)

Similar to this:
(http://http://www.iconattitude.com/icons/open_icon_library/categories/png/256/system-settings-2.png)
 (http://www.iconattitude.com/icons/open_icon_library/categories/png/256/system-settings-2.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 14, 2015, 05:40:20 PM
Now that we have rebranded as 'Lite Tweaks' there is an opportunity here to add more features to this tool.
If there is something that you'd like to see in Lite Tweaks please feel free to suggest it. Keep in mind that it should be a suggestion that is for the system as it is out-of-the-box eg. you wouldn't suggest that we provide a tool that purges Inkscape of all it's temp files.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Wirezfree on February 14, 2015, 05:50:44 PM
Hi coastie,

How a about a Red handled screwdriver & Green handled wrench.?
To match the the Red & Green items in Lite Tweaks
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 14, 2015, 06:40:38 PM
Ideas:
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Coastie on February 14, 2015, 06:43:14 PM
Hi coastie,

How a about a Red handled screwdriver & Green handled wrench.?
To match the the Red & Green items in Lite Tweaks

 8)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Coastie on February 14, 2015, 06:46:14 PM
How about green text for Safe and red text for Caution?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 14, 2015, 06:48:12 PM
Like this idea .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 20, 2015, 01:30:43 AM
New version available via Updates. Misko has done some amazing work on this, he's removed the need to call separate scripts. The whole program now runs from just 2 files. This has significantly reduced the size of the package to a mere 8.3kb whilst also removing the need to enter your password multiple times.

Give the man a hand, some of his best code to date!
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: ukbrian on February 20, 2015, 02:54:47 AM
Quote
New version available via Updates
If I run "sudo apt-get upgrade" does that give me the update?

Synaptic gives me a size of 25.6 kB for Lite Cleaner which I assume is Lite Tweaks.

I selected 3 of the early options and ran them but then I had to go to the menu to run Tweaks again to run other options, I was expecting to return to the tweak screen after it had run it's tasks.

Definatelly not a complaint just some feedback.

Go Misko go, well done that man!
(http://i724.photobucket.com/albums/ww242/ukbrian/th_goldcup_zpsp4cgnr1v.gif) (http://s724.photobucket.com/user/ukbrian/media/goldcup_zpsp4cgnr1v.gif.html)

In synaptic I'm running lite-cleaner version 1.0-0190-linuxlite
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: misko_2083 on February 20, 2015, 03:22:40 AM
Thank you ukbrian and Jerry. :)
ukbrian, I'll see if it's possible to return to the main dialog after all tasks are complete.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: misko_2083 on February 20, 2015, 04:29:34 AM
It's possible I'll add this in the next update.First need to run some tests. Thank you ukbrian for a suggestion. Cheers
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: N4RPS on February 20, 2015, 07:40:37 AM
Hello!

IIRC, unless something changed, typing 'sudo apt-get upgrade' on an LL system is NOT a good idea. I believe it has to do with the modifications that make LL distinctly different from Xubuntu...

73 DE N4RPS
Rob
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 20, 2015, 01:05:39 PM
Best practice is to always follow the distros specific update method. In LL's case it's, Menu > Favorites > Install Updates.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 20, 2015, 02:18:47 PM
It's possible I'll add this in the next update.First need to run some tests. Thank you ukbrian for a suggestion. Cheers

Done, I'll release an updated package within the next few days.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 20, 2015, 02:24:16 PM
New version available via Updates. Misko has done some amazing work on this, he's removed the need to call separate scripts. The whole program now runs from just 2 files. This has significantly reduced the size of the package to a mere 8.3kb whilst also removing the need to enter your password multiple times.

Give the man a hand, some of his best code to date!

Thanx for that Jerry & the Team , I like the new feature that removes the need to constantly enter pwd . A nice surprise this morning ( here ) when I did it  .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: ukbrian on February 20, 2015, 08:08:09 PM
Quote
It's possible I'll add this in the next update.First need to run some tests. Thank you ukbrian for a suggestion. Cheers
I ran the new one in my LL install so I only saw the start and end screens so I tried to run it on the live DVD but no luck even if I su'ed so I've done a fresh install and when I've customized the install I'll do a video with some suggestions that I'll PM to you friend.

I had a bespoke office app written in front of me in Visual Basic, I learnt a lot so I'm used to working with devs but I'm into all the bells and whistles if they simplify or make it more intuative for the normal end user.

@N4RPS Thanks for the info, if you ever think I'm doing something wrong or ill advised please tell me so I'm not giving bad advice to users, I can correct the post then or anybody with permission.
(http://i724.photobucket.com/albums/ww242/ukbrian/th_bigkiss-sloppy_zpspseeek6s.gif) (http://s724.photobucket.com/user/ukbrian/media/bigkiss-sloppy_zpspseeek6s.gif.html)
Quote
IIRC, unless something changed, typing 'sudo apt-get upgrade' on an LL system is NOT a good idea. I believe it has to do with the modifications that make LL distinctly different from Xubuntu
What does IIRC mean?

That's really bad news, Linux owes Ubuntu a lot for introducing folk to Linux but it's not Debian copatable any more.

This is an LTS but when the next Debian Stable is released shortly it will be 12 months ahead of the Ubuntu LTS, crazy.

I seem to remember something about firefox having something to do with this, why firefox ESR isn't the default browser I don't know, latest and greatest = always equals more problems, you can have a portable version of FX unzipped in a folder and have the latest version install and using the same profiles.

@Jerry
Quote
Best practice is to always follow the distros specific update method. In LL's case it's, Menu > Favorites > Install Updates.
Pardon an old fool, I guess I was on automatic, I looked in "System and Accessories", there's no fool quite like an old Welsh fool! gotta go and see where you parked it.
Quote
Categories=Utility;X-XFCE;X-Xfce-Toplevel;
Well I should have found it in accessories, why Accessories not Utilities?

I think the problems is that the file name is still the same as the template you used "exo-file-manager.desktop", I renamed it and stuck it in ~/.local and it appeared in the menu.

I'm off to install vokoscreen and relax making a video of lite-updater.
(http://i724.photobucket.com/albums/ww242/ukbrian/th_chill-1_zps0935b03b.gif) (http://s724.photobucket.com/user/ukbrian/media/chill-1_zps0935b03b.gif.html)

I much prefer PhotoBucket to Imgur, more pleasant to use.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: ukbrian on February 21, 2015, 02:32:09 AM
Well here it is, if I can improve my videos for you Misko tell me how assuming they are of any use to you at all.  :P
https://www.dropbox.com/s/cxugvubw4iy7rct/lite-update-system-0.mkv?dl=0 (https://www.dropbox.com/s/cxugvubw4iy7rct/lite-update-system-0.mkv?dl=0)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: ukbrian on February 21, 2015, 02:37:13 AM
I couldn't get vokoscreen to work so I used simplescreenrecorder, I'd like to use vokoscreen if possible, I think you get smaller files.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: N4RPS on February 22, 2015, 06:48:30 PM
Quote
It's possible I'll add this in the next update.First need to run some tests. Thank you ukbrian for a suggestion. Cheers
I ran the new one in my LL install so I only saw the start and end screens so I tried to run it on the live DVD but no luck even if I su'ed so I've done a fresh install and when I've customized the install I'll do a video with some suggestions that I'll PM to you friend.

I had a bespoke office app written in front of me in Visual Basic, I learnt a lot so I'm used to working with devs but I'm into all the bells and whistles if they simplify or make it more intuative for the normal end user.

@N4RPS Thanks for the info, if you ever think I'm doing something wrong or ill advised please tell me so I'm not giving bad advice to users, I can correct the post then or anybody with permission.sloppy_zpspseeek6s.gif[/img][/URL]
Quote
What does IIRC mean?

Hello!

'apt-get upgrade' was mentioned on here a while back. Some people used that command, and it updated them with the current Ubuntu kernel. That's one of the reasons the 'Install Updates' script is recommended.

IIRC is "If I remember correctly" (A BIG problem for me these days)...

73 DE N4RPS
Rob

Title: Re: Lite Tweaks - Suggestions welcomed
Post by: ukbrian on February 22, 2015, 07:17:52 PM
Quote
IIRC is "If I remember correctly" (A BIG problem for me these days).
and me friend, it's remembering/sorting the the wheat from the chaff, If you look to the future where things are moving to it makes a lot of info irrevalent, kids learn from videos now days not the sacred written word, that's for geeks not normal users.

@misko
apologies for the crap video, I've been sleeping every other night for 3 weeks and that vid was rubbish and to long.
(http://i.imgur.com/Cppbyct.jpg)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Coastie on February 22, 2015, 11:38:59 PM
... I'll see if it's possible to return to the main dialog after all tasks are complete.


Since you can check as many boxes that you want there is no need to go back to the main dialog, I think it was better before when Linux Tweaks just closed itself after completing the tasks.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 23, 2015, 12:20:11 AM
In order for Lite Tweaks to evolve and take on more tools for people to use in the future, somewhat of a layout change is required to accommodate these future additions. There may be as many as 20 - 30 tools in the future so we need to be sensible about this and prepare now, so that people have enough time to get used to the layout.

Coming soon:

- Name column is alphabetical - with the list set to grow, people need to find tools easily. Names are listed concisely.
- New 'Task' column - If you just want to clean, you can sort to show all the Clean tools first.

(http://i.imgur.com/xb2WAWb.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 24, 2015, 06:16:54 PM
Added ability to remove archive logs which should run into the mb on most peoples machines. Should be released this week after some testing.

See what your archived log files have added up to with this command:

Code: [Select]
sudo find /var/log -type f \( -iname \*.gz -o -iname \*.0 -o -iname \*.1 \) -exec du -csh '{}' + | tail -1 | awk '{print $1}' | sed 's/$/B/'
(http://i.imgur.com/ukLcKRS.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 24, 2015, 07:14:39 PM
520KB

Will wait on it Jerry ! Keep it on .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: ukbrian on February 24, 2015, 09:05:42 PM
I'd like a column for sizes

(http://i724.photobucket.com/albums/ww242/ukbrian/sorry-box_zpsch4cucb1.gif) (http://s724.photobucket.com/user/ukbrian/media/sorry-box_zpsch4cucb1.gif.html)
if I'm a nag for keeping on about it.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 24, 2015, 11:46:15 PM
I'd like a column for sizes

if I'm a nag for keeping on about it.


We won't be doing that simply because some 'tweaks' aren't related to size. That's why we included size in the 'Description Column'. What we will do in the future is include a 'Total' of all the cleaning tasks combined.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 25, 2015, 08:11:16 AM
Added Remove Residual Configuration Files feature.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 26, 2015, 06:12:35 AM
Version 1.0-0210-linuxlite released with new layout (alphabetical, simplified Name column) 2 new features (Log Archives, Residual Config Files)  and new 'Task' column to group tasks.

(http://i.imgur.com/ZE3VRRr.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 26, 2015, 07:12:02 AM
Love the new features of LL-Tweaks , wonder what else could be done !

Thanx .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: TMG1961 on February 26, 2015, 07:20:07 AM
Great new features. Just one question, is it possible to have it autoclose after all the cleaning is done? Maybe with a box to tick when you want it to autoclose after finishing.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 26, 2015, 07:21:34 AM
Yep , it had this feature before , but it changed lately . Autoclose was a nice feature .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 26, 2015, 07:26:04 AM
The reason there is no 'autoclose' is that you'll have no way to check if your settings have taken.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 26, 2015, 07:30:09 AM
It was the reason why , that s cool with me . Thanx for explanations Jerry .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on February 26, 2015, 07:37:51 AM
If it is really bugging you (autoclose) you can edit lite-tweaks in /usr/bin/ and change line 276 from: while (true); do to # while (true); do
Of course you will have to do this everytime there is an update to the Lite Tweaks package :(
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: TMG1961 on February 26, 2015, 07:40:00 AM
If it is really bugging you (autoclose) you can edit lite-tweaks in /usr/bin/ and change line 276 from: while (true); do to # while (true); do
Of course you will have to do this everytime there is an update to the Lite Tweaks package :(

It doesnt bug me..just thought it would be an nice addition
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 26, 2015, 07:45:14 AM
I was wondering why , it will stay as is . As TMG , it doesn t bugging me .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Coastie on February 26, 2015, 08:45:03 AM
Could caution be red text and safe green each time under status also?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Coastie on February 26, 2015, 08:52:57 AM
If it is really bugging you (autoclose) you can edit lite-tweaks in /usr/bin/ and change line 276 from: while (true); do to # while (true); do
Of course you will have to do this everytime there is an update to the Lite Tweaks package :(

Liked auto close too but not enough to mess with these kind of files.  :-[

All the Linux Lite tool are great! These tools and this forum put it way above Xubuntu which to me is the most similar distro. :)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: ukbrian on February 26, 2015, 10:15:09 AM
A check box at the bottom
I would always leave it off and auto return to make sure the stupid machine had done what I told it.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Shady on February 26, 2015, 11:04:14 AM
Love Lite Cleaner / Lite Tweaks use it all the time, is there a way to make it so i don't have to type in a password for every time i use it? Like when it starts cleaning?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: misko_2083 on February 26, 2015, 02:32:46 PM
Love Lite Cleaner / Lite Tweaks use it all the time, is there a way to make it so i don't have to type in a password for every time i use it? Like when it starts cleaning?
Not likely. The password is needed because some tasks require elevated user privileges.
Could caution be red text and safe green each time under status also?
No. Unfortunately zenity has many limitations currently.
If it is really bugging you (autoclose) you can edit lite-tweaks in /usr/bin/ and change line 276 from: while (true); do to # while (true); do
Of course you will have to do this everytime there is an update to the Lite Tweaks package :(

Liked auto close too but not enough to mess with these kind of files.  :-[

All the Linux Lite tool are great! These tools and this forum put it way above Xubuntu which to me is the most similar distro. :)
Will have to see abou that with Jerry. I suppose I could add a question whether to continue using lite-tweak or exit. Currently there is an information dialog at the end.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on February 28, 2015, 08:56:02 PM
Does Lite Tweaks has something like localepurge ! It frees up some memories in the system .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on March 01, 2015, 06:24:30 AM
@altman, localepurge has been known to mess with the packaging system. Given the packaging system is a vital piece of your operating system, this tool is better left for those able to recover from disaster, should it occur. Keep the ideas coming, we have a few surprises up our sleeves :)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on March 01, 2015, 10:33:38 AM
I must be lucky for once then , use it for years , the times I guess I messed up my system was when I removed too many stuff I thought were useless , but at the end my install was useless ! lol Had to reinstall , some times it s quicker that way unless one knows what to do as you wrote above .

Someting new again for the Lite Tweaks ! Guessed it was already great as it is right now .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: AustinTexas on March 01, 2015, 04:20:04 PM
I would like to see
Code: [Select]
sudo inxi -U enabled in Linux Lite, as it is in Linux Mint.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on March 02, 2015, 05:37:57 AM
New version of Lite Tweaks is now available.

Changes:

- Rewording of Caution explanation.
- Name column simplified and alphabetical.
- New Task column - sort by task by clicking on the Column eg. group all cleaning tasks together.
- Added Bootup Fix - restores the Linux Lite splash screen if it gets overwritten by a system update (Ubuntu splash).
- Added Display Disk Usage - displays useful information about your partitions.
- Added Package System Repair - restores apt and all repos to system default.
- Residual Config Files bug fixed.
- Changed end dialogue to - Would you like to continue using Lite Tweaks?

Misko has been instrumental in getting these major changes implemented, thank you again my friend :)

(http://i.imgur.com/LcM46nC.png)

(http://i.imgur.com/QuApo8Q.png)

(http://i.imgur.com/IaOARJq.png)

Any bugs, please report them in this thread.

Cheers :)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Hans on March 02, 2015, 06:27:18 AM
Excellent!!! thank you very much guys... personally, I prefer to use the terminal for some of these, but I see the value in having this great GUI.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on March 02, 2015, 06:50:23 AM
I would like to see
Code: [Select]
sudo inxi -U enabled in Linux Lite, as it is in Linux Mint.

Can you elaborate on this please AustinTexas, how is this enabled?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on March 02, 2015, 07:33:28 AM
Found this Jerry ; http://smxi.org/site/install.htm , by ppa

& this one ; https://code.google.com/p/inxi/wiki/inxiFAQs


I use inxi but I use this command from time to time in order to have the latest release in Terminal :

 cd /usr/local/bin && wget -Nc smxi.org/inxi && chmod +x inxi && inxi

It s a little time consuming , but I don t really mind .


Thanx for the latest Tweak update , love this one .

Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on March 02, 2015, 07:38:25 AM
@altman inxi is already in Linux Lite. What does your post refer to?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on March 02, 2015, 07:47:04 AM
Ah , was refering to this post results from austintexas s Terminal results :

sudo inxi -U
Error 17: All inxi self updater features have been disabled by the distribution
package maintainer. This includes the option you used: -U


I also have the same results .

It can t be updated .

It s a nice LL feature I must say .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: misko_2083 on March 02, 2015, 08:59:33 AM
to enable inxi update feature run
Code: [Select]
sudo sed -i 's/^B_ALLOW_UPDATE=false/B_ALLOW_UPDATE=true/' /etc/inxi.conf
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on March 02, 2015, 09:09:06 AM
Thanx misko , will be handy for some users in the Forum .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: misko_2083 on March 02, 2015, 09:39:32 AM
Well, it will stick at least until Ubuntu updates the inxi package. :)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Shady on March 02, 2015, 11:07:21 AM
Liking the update, it just keeps getting better and better.

I have another question or suggestion tho, is there a way or can it be added that when i use Lite Tweaks, it remembers what i have checked each time i use it or open it up? Lets say if i want to do a quick clean, i don't want to have to keep checking things and looking at the list each time i use it.

I think it would be nice if it will remember the settings i previously had checked.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: AustinTexas on March 02, 2015, 11:42:32 AM
Thank you, misko_2083
Your command:
sudo sed -i 's/^B_ALLOW_UPDATE=false/B_ALLOW_UPDATE=true/' /etc/inxi.conf
worked to update inxi to Version 2.2.19 (which gives better results)

I like the improvements to Lite Tweaks. Keep up the great work!
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on March 02, 2015, 12:00:28 PM
to enable inxi update feature run
Code: [Select]
sudo sed -i 's/^B_ALLOW_UPDATE=false/B_ALLOW_UPDATE=true/' /etc/inxi.conf

Thanx mate , just did the command .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: misko_2083 on March 03, 2015, 04:58:34 PM
You are welcome AustinTexas, and altman.
Liking the update, it just keeps getting better and better.

I have another question or suggestion tho, is there a way or can it be added that when i use Lite Tweaks, it remembers what i have checked each time i use it or open it up? Lets say if i want to do a quick clean, i don't want to have to keep checking things and looking at the list each time i use it.

I think it would be nice if it will remember the settings i previously had checked.
Possible, but will have to think about that. That would be like 'tweaking the Lite-Tweaks'. :D
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on March 03, 2015, 06:12:05 PM
Tweak the tweak now ! It will never stop ! lol , I like this idea .
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Wirezfree on March 03, 2015, 06:59:48 PM
Hi,

Don't think it's a real error, maybe a wording issue.??
If you select "Residual Config Files",
and you haven't noticed there is "none" to be cleaned.. Duh  ???

You get this...
(http://i.imgur.com/hnQvoot.png)

I guess you can't clean something that's not there.!!

Dave
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on March 07, 2015, 11:59:44 AM
lol , when it happened to me the other day I was wondering what it was !
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on March 07, 2015, 12:21:52 PM
If there is no grass, would you still try to mow a piece of ground :)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: altman on March 07, 2015, 12:42:13 PM
lol , you bet , sounds like it , it looks like I clicked on that one without knowing it . Anyhow , it worked I guess .

Same as with whiter than white right !
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on June 01, 2016, 03:35:35 AM
Lite Tweaks for Linux Lite 3.0 updated:

- Ability to Enable/Disable Numlock at Login now supported.

(http://i.imgur.com/U1EFKe8.png)

(http://imgur.com/KmlxEfw.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on June 01, 2016, 09:47:32 AM
Bug found - https://www.linuxliteos.com/forums/on-topic/problem-with-'lite-tweaks'-after-this-morning's-updates/

Will pull this feature for now and re-write it. Will update when it's fixed.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: nomko on June 02, 2016, 03:09:44 AM
I would like to see
Code: [Select]
sudo inxi -U enabled in Linux Lite, as it is in Linux Mint.

Check here:
https://sites.google.com/site/easytipsforlinux/updating-inxi-terminal-command-tool
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: AustinTexas on June 02, 2016, 07:19:43 AM
Thank you.
 My comment that the update is enabled in Linux Mint is outdated, and no longer true.
I use this to enable updating inxi:
 
Code: [Select]
sudo sed -i 's/^B_ALLOW_UPDATE=false/B_ALLOW_UPDATE=true/' /etc/inxi.conf (which conforms to the link you posted)

My original suggestion that it should be enabled by default still applies.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: vieira.rr on October 11, 2016, 01:52:31 PM
Hi

I installed LL 3.0 64 on my netbook and have found on Help Guide for a step-by-step to how enable daily TRIM for SSD drives, but I'm not secure enough to do this myself.

If the "Lite Tweaks" could add this funcionality, would be great!
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on October 12, 2016, 01:24:44 AM
Hi

I installed LL 3.0 64 on my netbook and have found on Help Guide for a step-by-step to how enable daily TRIM for SSD drives, but I'm not secure enough to do this myself.

If the "Lite Tweaks" could add this functionality, would be great!

I did look at this once, but it's very complex and I'm somewhat reluctant to write any software that configures peoples storage devices. Data loss is somewhere I'd like to stay well away from.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: torreydale on October 12, 2016, 09:34:14 AM
Quote
I did look at this once, but it's very complex and I'm somewhat reluctant to write any software that configures peoples storage devices. Data loss is somewhere I'd like to stay well away from.

I think some of this is being done automatically.  Recently I installed an SSD into my mother's laptop.  When I went to follow the "Enabling TRIM for your SSD" part of the Help Manual, it seemed like some gremlins beat me to it.  The noatime part was already done.  And if I recall correctly, I only had to edit the /etc/rc.local file and move the cron.weekly job.  The edited rc.local file covered every partition I had set for the drive, so this seems like something that Lite Tweaks could do for a drive running only Linux Lite, but it could become dicey for drives with a multi-boot setup.  But then, what do I know?

For the record, I'm still learning.  It seems if one does nothing, fstrim will run on a weekly basis.  And the Help Manual appears to instruct us to have it run at startup instead, while creating a log file listing what was trimmed for each partition.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on October 12, 2016, 09:41:48 AM

It seems if one does nothing, fstrim will run on a weekly basis.  And the Help Manual appears to instruct us to have it run at startup instead, while creating a log file listing what was trimmed for each partition.

Correct :)

Sent from my Nexus 6 using Tapatalk
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on November 21, 2016, 11:42:53 PM
New feature, 'Clear memory' frees up system memory. Will prove useful for older machines.

(http://i.imgur.com/PfXE7fg.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Coastie on November 22, 2016, 08:52:08 AM
New feature, 'Clear memory' frees up system memory. Will prove useful for older machines.

 8)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: bayoubooger on November 22, 2016, 04:48:58 PM
Install Trim for SSD drives?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: torreydale on November 22, 2016, 05:09:57 PM
TRIM (or fstrim) is already installed.  To configure it to run on each boot, and to see a log file of its results, see the Help Manual. 

Menu > Favorites > Help Manual, and then select:
    * Install (or Install Guide)
       and then
    * Enabling TRIM on your SSD
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: bayoubooger on November 23, 2016, 08:42:05 AM
Thank you, torreydale. Does LL ship without root user activated?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: LL-user on March 02, 2017, 12:59:48 AM
New feature, 'Clear memory' frees up system memory. Will prove useful for older machines.


Hey Jerry,


Am a bit confused regarding this tweak.


Would you please be so kind and give some background information?


I've learned that the system is managing and utilizing the memory as efficiently as possible. And it's not a bad sign that the physical memory is utilized as much as possible to increase access speed (referring to the difference between used and active memory -> vmstat -s). The only way that makes sense to influence the memory usage as a user and avoid undesired swappping is basically to close applications and stop unnecessary services and use a lightweight (desktop) system itself, to reduce the load on the system by being mindful of how many applications are run in parallel.


Here two links reflecting what I knew so far:
http://serverfault.com/questions/597115/why-drop-caches-in-linux
http://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system


Open to learn something new though... :)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on October 08, 2019, 11:03:26 PM
I didn't realize until recently, just how big SystemD logs were, and how quickly they grow in Series 4.x

Lite Tweaks to the rescue!

Coming in 4.8

(https://i.imgur.com/9MQUOSN.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: MS on October 09, 2019, 12:36:51 AM
What about if to make it easier to set the swap size and the swappiness value?
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on October 09, 2019, 12:52:15 AM
What about if to make it easier to set the swap size and the swappiness value?

To risky for those who have no idea what those are, ok for advanced users.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: MS on October 09, 2019, 10:26:05 AM
What about if to make it easier to set the swap size and the swappiness value?

To risky for those who have no idea what those are, ok for advanced users.
With the swap file, perhaps it could be tempting to get rid of it, in order to retrieve back some hard drive space - which probably would end up being a faulty decision, unless infinite RAM - but with the swappiness, it is harder to handicap the system, if to keep the values around moderate.

EDIT:

Perhaps you could also allow there to choose whether the system by default should work in one-word-defined performance or powersaving mode.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on October 11, 2019, 09:27:42 PM

Perhaps you could also allow there to choose whether the system by default should work in one-word-defined performance or powersaving mode.


People already have that option with the new 4.6 feature, xfce4-cpufreq-plugin.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: MS on October 11, 2019, 10:53:48 PM

Perhaps you could also allow there to choose whether the system by default should work in one-word-defined performance or powersaving mode.


People already have that option with the new 4.6 feature, xfce4-cpufreq-plugin.
Fair enough, I guess that plugin is as good as an option in the LiteTweaks, at the end of the day.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on October 12, 2019, 04:49:19 AM
We have to be extremely selective of what we load at start up. 3mb here, 15mb there and before you know it, we've gone from Linux Lite to Linux Heavy. Only the absolute necessities get loaded into memory at boot, nothing more.

Sent from my Mobile phone using Tapatalk
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: MS on October 12, 2019, 06:46:00 AM
We have to be extremely selective of what we load at start up. 3mb here, 15mb there and before you know it, we've gone from Linux Lite to Linux Heavy. Only the absolute necessities get loaded into memory at boot, nothing more.
Understood. Speaking of panel utilities loaded at start, this could be further minimized. For example, the utility allowing to switch between different desktop views or different monitors. It could bring more confusion than benefit. If you know what it is and know how to use it, probably you can also just find it and enable it yourself in the system, if needed. If you do not know what it is and what did just happen in case all your desktop icons suddenly disappeared, it means that would be much better for you the utility was not there present altogether. One type of user is likely to help oneself out, the other one, is going to blame the OS for appearances of instability. That the other, likewise OS-es have similar utility loaded at start, does not mean it is the most reasonable way to go. Linux is a great community but unnecessarily an ecosystem in particular most welcoming to the laymen. Stereotype telling Linux is not for the laymen, is not an excuse. Linux wants to be for the laymen. Linux wants a fair share of the home user market. Linux wants to be considered a valid piece of the low level industry. My question is then, why does it not go the way allowing to become thus?

To summarize, there are two types of users. Those with enough of know-how and those without any sufficient know-how. Those with the know-how will help themselves out, perhaps with only little assistance, therefore, the system should be defaulted to the status of friendliness aimed at the layman, discarding any potentially misleading, tricky or quirky utilities, in particular those put in clear sight. This is also a strategy to minimize the amount of user interface related problems and support requests.
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on June 12, 2020, 02:29:07 AM
Taskbar Restore feature added...

(https://i.imgur.com/iFoJvcA.png)
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: TheDead on June 12, 2020, 08:13:54 AM
Real nice, Thanks Jerry!
This will come in handy when needed. ;)

Oh, is this for all Linux Lite active versions? o.O
Title: Re: Lite Tweaks - Suggestions welcomed
Post by: Jerry on June 12, 2020, 08:38:38 AM
Each Lite application is only developed for the latest Series. Previous Series get security and bug fixes only.

Sent from my IN2020 using Tapatalk