Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > all things UNIX
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old July 19th, 2012, 07:00 PM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,107
Default cleaning junk for Linux

easy steps to clean junk off your Linux machine:


* Synaptic: in the Status tab if there is stuff to be removed it's gonna be in the section "Not installed (residual configuration)"
that section only appears if there is stuff to be removed

* gtkorphan: everything in the "Orphaned packages" tab should be safe to remove.

* Bleachbit: i use Bleachbit (as root) first, then Bleachbit.

* finally, "sudo apt-get autoremove" from the Terminal.
there will be rarely any stuff there after all the steps above.

it's always good to have a recent image in case you FUBAR your machine.
__________________
| Sphinx Firewall || NoScript || Image for Linux + BootIt Bare Metal |
  #2  
Old July 19th, 2012, 07:12 PM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: cleaning junk for Linux

I've removed quite a few packages I don't need. Probably saved me a few hundred megabytes and a bit of RAM (some were running processes) + reduced attack surface.

If you're looking for a really clean Ubuntu I'd suggest the minimal install.
__________________
  #3  
Old July 19th, 2012, 07:20 PM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,107
Default Re: cleaning junk for Linux

Ubuntu runs like a slug on my machine.

anyway, i removed a lot of stuff; Libre Office, Mono, Java, Samba.
that's at least 500 MB right there.
__________________
| Sphinx Firewall || NoScript || Image for Linux + BootIt Bare Metal |
  #4  
Old July 20th, 2012, 03:42 AM
firefox2008's Avatar
firefox2008 firefox2008 is offline
Regular Poster
 
Join Date: May 2007
Posts: 111
Default Re: cleaning junk for Linux

http://ubuntuforums.org/showthread.p...ht=clean+files
  #5  
Old July 20th, 2012, 04:21 AM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,107
Default Re: cleaning junk for Linux

Quote:
Originally Posted by firefox2008

very nice tips there m8!

tnx for the heads-up!
__________________
| Sphinx Firewall || NoScript || Image for Linux + BootIt Bare Metal |
  #6  
Old July 20th, 2012, 04:48 AM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,417
Default Re: cleaning junk for Linux

Unnecessary and even dangerous.
And will yield no performance improvement.
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #7  
Old July 20th, 2012, 05:10 AM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,107
Default Re: cleaning junk for Linux

Quote:
Originally Posted by Mrkvonic
Unnecessary and even dangerous.
And will yield no performance improvement.
Mrk

the performance i get is that my image is very small.
it takes me 3 minutes, give or take 3 seconds, to restore an image.

i restore images at least 10 times a week.
a lot more when i go nuts.lol
time is everything for me.

if i screw up, the fix is only 3 minutes away...
__________________
| Sphinx Firewall || NoScript || Image for Linux + BootIt Bare Metal |
  #8  
Old July 20th, 2012, 07:46 AM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,417
Default Re: cleaning junk for Linux

10 times a week? O_o
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #9  
Old July 20th, 2012, 09:09 AM
chrisretusn's Avatar
chrisretusn chrisretusn is offline
Very Frequent Poster
 
Join Date: Jun 2004
Location: Philippines
Posts: 1,023
Default Re: cleaning junk for Linux

Quote:
Originally Posted by moontan
i restore images at least 10 times a week.
Not all that surprised, based on first post.
__________________
FreeDOS, Haiku, PCLinuxOS, Slackware, Snow Leopard, Ubuntu, Ultimate Edition, Windows 7, Windows XP. (Primary OS, KDE)

Living in Paradise!!
  #10  
Old July 20th, 2012, 02:26 PM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,107
Default Re: cleaning junk for Linux

i use image restore as a souped-up 'uninstaller'.

if i install a program and it does not work out or i don't like it, i just restore to 'uninstall' a program.
this way, i'm sure everything's gone.

keeps the machine lean and mean.lol
__________________
| Sphinx Firewall || NoScript || Image for Linux + BootIt Bare Metal |
  #11  
Old July 20th, 2012, 02:42 PM
chronomatic chronomatic is offline
Very Frequent Poster
 
Join Date: Apr 2009
Posts: 1,324
Default Re: cleaning junk for Linux

Quote:
Originally Posted by moontan
i use image restore as a souped-up 'uninstaller'.

if i install a program and it does not work out or i don't like it, i just restore to 'uninstall' a program.
this way, i'm sure everything's gone.

keeps the machine lean and mean.lol

You won't see a performance increase by restoring an image. Linux is not Windows, it has no "Windows rot."
  #12  
Old July 20th, 2012, 05:17 PM
Gullible Jones
 
Posts: n/a
Default Re: cleaning junk for Linux

To be fair... If you install Linux on a 100+ GB hard drive using one gigantic partition a la the Windows default, you will probably see "rot" sooner or later, as files will eventually get distributed all over the disk. But most distros give you a separate home partition by default, so this doesn't crop up much (I think).

But yes, Windows accumulates temporary files in the same fashion as a PC accumulates dust. Whereas Linux barely uses temp files for anything. KDE makes fairly heavy use of /tmp and /var/tmp, and usually has < 10 MB total stored in those directories
  #13  
Old July 21st, 2012, 01:46 AM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,417
Default Re: cleaning junk for Linux

Quote:
Originally Posted by Gullible Jones
To be fair... If you install Linux on a 100+ GB hard drive using one gigantic partition a la the Windows default, you will probably see "rot" sooner or later, as files will eventually get distributed all over the disk. But most distros give you a separate home partition by default, so this doesn't crop up much (I think).

But yes, Windows accumulates temporary files in the same fashion as a PC accumulates dust. Whereas Linux barely uses temp files for anything. KDE makes fairly heavy use of /tmp and /var/tmp, and usually has < 10 MB total stored in those directories

Ext filesystem already spreads files all over the disk, by design, the way it works. So you won't see any difference.
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #14  
Old July 21st, 2012, 02:57 AM
vasa1's Avatar
vasa1 vasa1 is offline
Massive Poster
 
Join Date: May 2010
Posts: 3,988
Default Re: cleaning junk for Linux

Quote:
Originally Posted by Gullible Jones
... But most distros give you a separate home partition by default ...
Is that correct?
__________________
One can't be too rich, too thin, or too secure
  #15  
Old July 21st, 2012, 03:07 AM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: cleaning junk for Linux

Many do. It surprised me that Ubuntu did not. I meant to do that this time and separate boot as well. Oh well.
__________________
  #16  
Old July 21st, 2012, 04:41 AM
Beavenburt Beavenburt is offline
Frequent Poster
 
Join Date: Dec 2006
Posts: 566
Default Re: cleaning junk for Linux

As others have stated is is overkill but if it makes you happy then meh. I do have to say though I don't like bleachbit. It is downright dangerous and most the things it cleans you could do yourself in the application preferences. For example I set firefox to clear browser cache, history and cookies on exit.
  #17  
Old July 21st, 2012, 11:50 AM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,107
Default Re: cleaning junk for Linux

never had a problem using Bleachbit, either in Windows or Linux.

i understand you can do most of this stuff from a terminal but i just like using a mouse driven GUI.

Bleachbit cleans a lot more than just Firefox.
__________________
| Sphinx Firewall || NoScript || Image for Linux + BootIt Bare Metal |
  #18  
Old July 21st, 2012, 12:19 PM
Beavenburt Beavenburt is offline
Frequent Poster
 
Join Date: Dec 2006
Posts: 566
Default Re: cleaning junk for Linux

Quote:
Originally Posted by moontan

Bleachbit cleans a lot more than just Firefox.

I'm aware of that. It was just one example amongst many I could have provided.
  #19  
Old July 21st, 2012, 12:31 PM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,107
Default Re: cleaning junk for Linux

on Windows, i have always used tools like CCleaner, Bleachbit etc...
so i took this way of doing things to Linux.

if only i could keep my appartement as clean as my machine. lol
__________________
| Sphinx Firewall || NoScript || Image for Linux + BootIt Bare Metal |
  #20  
Old July 21st, 2012, 01:32 PM
Gullible Jones
 
Posts: n/a
Default Re: cleaning junk for Linux

Quote:
Originally Posted by Mrkvonic
Ext filesystem already spreads files all over the disk, by design, the way it works. So you won't see any difference.
Mrk

Wouldn't "spread all over a 10 GB partition" be a bit different than "spread all over a 160 GB partition"?
  #21  
Old July 21st, 2012, 01:33 PM
mack_guy911's Avatar
mack_guy911 mack_guy911 is offline
Very Frequent Poster
 
Join Date: Mar 2007
Posts: 2,483
Default Re: cleaning junk for Linux

i used bleachbit too but no root and with precaution not as deadly like you moontan


also which image restore you using i wonder
__________________
Scientific Linux 6.2, xubuntu 11.10 *2x, Linux mint 10, Linux mint 12, opensuse 11.4, windows vista, ubuntu 10.04 and windows xp
  #22  
Old July 21st, 2012, 03:01 PM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,107
Default Re: cleaning junk for Linux

Quote:
Originally Posted by mack_guy911
i used bleachbit too but no root and with precaution not as deadly like you moontan


also which image restore you using i wonder

it's all in my sig!

i use Image for DOS cause the disk loads faster on my machine than either IFW or IFL.

in Bleachbit, i have the Free disk space, Localization and Memory boxes unchecked.
as BB was warning of potential problems.
__________________
| Sphinx Firewall || NoScript || Image for Linux + BootIt Bare Metal |
 

Wilders Security Forums > Software, Hardware and General Services > all things UNIX « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:41 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums