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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lite Tweaks - Suggestions welcomed
#51
(09-16-2014, 06:16 PM)misko_2083 link Wrote: [quote author=bobw link=topic=829.msg5039#msg5039 date=1410886535]
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:
sudo apt-get autoremove
Did you get something like
Code:
Do you want to continue? (Y/n)
[/quote]

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.
Reply
#52
I added a -y to the executable, hopefully that should resolve this issue for bobw and others.
Reply
#53
If google chrome isn't installed, the output will be:
Code:
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:
#! /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.freecinema2022.gq
#--------------------------------------------------------------------------------------------------------

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...
Reply
#54
Nice touch there misko, I'll add these to the next version Smile
Reply
#55
Nice icon! How about the silver or white cleaner on a clear background for  a Xfce dock? Thanks.
[Image: EtYqOrS.png%5D]

Left Mac OS X for Linux in Jan 2014
Reply
#56
(09-17-2014, 02:33 PM)Coastie link Wrote: 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?
[Image: vKzGey8.png][Image: aHQMz69.png]
the first is silver, the second one is white
Reply
#57
Exactly! Thanks.  8)
[Image: EtYqOrS.png%5D]

Left Mac OS X for Linux in Jan 2014
Reply
#58
(09-17-2014, 12:04 PM)misko_2083 link Wrote: If google chrome isn't installed, the output will be:
Code:
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:
#! /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.freecinema2022.gq
#--------------------------------------------------------------------------------------------------------

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
Reply
#59
(09-17-2014, 10:11 PM)rbdflyboy link Wrote: [quote author=misko_2083 link=topic=829.msg5078#msg5078 date=1410955468]
If google chrome isn't installed, the output will be:
Code:
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:
#! /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.freecinema2022.gq
#--------------------------------------------------------------------------------------------------------

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
[/quote]


Just found chromium-browser in the etc directory and google in the opt directory....should be able to sort this out now.
Reply
#60
(09-17-2014, 10:41 PM)rbdflyboy link Wrote: [quote author=rbdflyboy link=topic=829.msg5098#msg5098 date=1410991904]
[quote author=misko_2083 link=topic=829.msg5078#msg5078 date=1410955468]
If google chrome isn't installed, the output will be:
Code:
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:
#! /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.freecinema2022.gq
#--------------------------------------------------------------------------------------------------------

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
[/quote]


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

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.
Reply


Forum Jump:


Users browsing this thread: 27 Guest(s)