Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: How do you clean up Linux and why?

  1. #1
    Join Date
    May 2011
    Beans
    35

    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?

  2. #2
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXQt14o4
    Beans
    Hidden!

    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.

  3. #3
    Join Date
    Apr 2007
    Location
    Hamden, CT
    Beans
    649
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do you clean up Linux and why?

    Quote Originally Posted by gregoryshock View Post
    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

  4. #4
    Join Date
    Feb 2010
    Location
    WI USA
    Beans
    9,785
    Distro
    Ubuntu 14.04 Trusty Tahr

    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/
    Infinite diversity in infinite combination.

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  5. #5
    Join Date
    Oct 2005
    Beans
    131

    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.

  6. #6
    Join Date
    Mar 2012
    Location
    Near one of my computers
    Beans
    307
    Distro
    Ubuntu 12.04 Precise Pangolin

    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

  7. #7
    Join Date
    Jan 2012
    Beans
    135
    Distro
    Ubuntu 13.04 Raring Ringtail

    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

  8. #8
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    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
    Please mark your thread as solved if you get a satisfactory response.
    Linux user #556334 | Ubuntu user #35168

  9. #9
    Join Date
    Feb 2013
    Beans
    Hidden!

    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.
    Last edited by schragge; March 11th, 2013 at 11:27 AM.

  10. #10
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •