How do you clean up Linux and why?
In windows you have a program called Diskcleanup. You can also add on other utilities like Ccleaner. I have been wondering If or what programs in Linux does the samething for the Linux system. Also How often a person should do it? I've already discovered on my system two programs for cleaning up stuff. But as far as what they are cleaning and if it is good or not, I don't know. The One program is called Janitor. The other I found in the ubuntu software center. It is called: Bleachbit. My goal here is to get rid of Cache and other unneeded stored information. Also on Windows I use CCleaner to get rid of flash cookies. How do you do that on Linux?
Re: How do you clean up Linux and why?
I use BleachBit and it works well. Just be careful about what you clean.
If you wish to give it a spin I will help you with the setup.
Re: How do you clean up Linux and why?
Quote:
Originally Posted by
gregoryshock
In windows you have a program called Diskcleanup. You can also add on other utilities like Ccleaner. I have been wondering If or what programs in Linux does the samething for the Linux system. Also How often a person should do it? I've already discovered on my system two programs for cleaning up stuff. But as far as what they are cleaning and if it is good or not, I don't know. The One program is called Janitor. The other I found in the ubuntu software center. It is called: Bleachbit. My goal here is to get rid of Cache and other unneeded stored information. Also on Windows I use CCleaner to get rid of flash cookies. How do you do that on Linux?
Using both programs that you just mentioned will sufice for what you are looking for. If you want to learn about a few more things that you can clean up here is a guide that I think does a good job of getting you started. http://maketecheasier.com/8-ways-to-...ine/2008/10/07
Re: How do you clean up Linux and why?
Ubuntu/ linux doesn't use a registry so there are no keys to remove which is a function of Ccleaner. If using Firefox set this add-on to delete LSO/ flash cookies at browser close or open. https://addons.mozilla.org/en-US/fir...betterprivacy/
Re: How do you clean up Linux and why?
Ubuntu Tweak http://ubuntu-tweak.com/ has a "janitor" that will clean up a lot of cruft such as old kernels, apt-cache, and whatnot.
Re: How do you clean up Linux and why?
I have a very simple script for cleaning out apt whenever I feel the need.
I have it in /usr/local/bin/clean
So I just type clean into a terminal and it automatically clears out a few places that I want cleaned.
Code:
#!/bin/bash
#script to do a quick apt cleaning
sudo apt-get --purge autoremove #removes unneeded packages that were installed to satisfy dependencies along with their config files.
sudo apt-get autoclean #removes obselete files/packages that can no longer be downloaded
sudo apt-get clean #removes the downloaded packages to free disk space
exit
Of course this is not all of the things you should be cleaning out. The link to Make Tech Easier has some good suggestions.
Kopkins
Re: How do you clean up Linux and why?
I don`t
i thnik there is no need to cleanup your GNU/Linux like what you do in windows
i just clean apt cache , browser garbage and old kernels
of course i use clean install every 6 month
Re: How do you clean up Linux and why?
Ubucleaner script:
Code:
#!/bin/bash
OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)"
METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)
YELLOW="\033[1;33m"
RED="\033[0;31m"
ENDCOLOR="\033[0m"
if [ $USER != root ]; then
echo -e $RED"Error: must be root"
echo -e $YELLOW"Exiting..."$ENDCOLOR
exit 0
fi
echo -e $YELLOW"Cleaning apt cache..."$ENDCOLOR
aptitude clean
echo -e $YELLOW"Removing old config files..."$ENDCOLOR
sudo aptitude purge $OLDCONF
echo -e $YELLOW"Removing old kernels..."$ENDCOLOR
sudo aptitude purge $OLDKERNELS
echo -e $YELLOW"Emptying every trashes..."$ENDCOLOR
rm -rf /home/*/.local/share/Trash/*/** &> /dev/null
rm -rf /root/.local/share/Trash/*/** &> /dev/null
echo -e $YELLOW"Script Finished!"$ENDCOLOR
Re: How do you clean up Linux and why?
The only problem with Ubucleaner is that it's for older Ubuntu releases: e.g. from all currently supported releases packages linux-ubuntu-modules-* are present only in hardy (8.04LTS), on the other hand, beginning from oneiric (11.10) there are linux-image-extra-* that Ubucleaner doesn't know of. I tried to clean up Ubucleaner a bit, the result is here.
Re: How do you clean up Linux and why?
See this thread for dealing with flash cookies.