LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2003, 04:28 PM   #1
l0f33t
Member
 
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145

Rep: Reputation: 15
Lightbulb Linux house cleaning tips?


Hello,

Does anyone have any good tips or a doc/link that describes maintenance tips. I.E.. Best practices...which log files are safe to clean up. Cookies, tmp files ect.. ect... or scripts that can be run.

Just wana keep my babie tuned/oiled and running at optimum speed. I'm running MDK 9.0. I wana upgrade but only have a dialup connection and don't have 2 yrs to wait for a 1.8gig download..

I really don't know what the differenece is between KDE desktop and Galeon but KDE seems to be very resource intensive/hog. If I had 5 or 6 browser windows up, things would slow to a crawl. I don't have that problem with Galeon. Anyways. Cheers

Back to the books.....

Any input is appreaciated, as always.

Thanks,
 
Old 08-11-2003, 06:23 PM   #2
joeface
LQ Newbie
 
Registered: Aug 2003
Location: NJ
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
You may want to read about logrotate. I'm running MDK 8.1. In my system, logrotate settings are located in /etc/logrotate.d. Each file in that directory is the log rotation sheme for an application or daemon.

If you didn't create a separate partition for /var, you should keep an eye on your logs because filling up /var/log will also fill up your root directory (bad idea).

What logrotate will do is compress old logs, and delete even older previously compressed logs in your /var/log (or any) directory, as long as the daemon has a config file sitting in /etc/logrotate.d. Take a look at some of the other config files in this directory, and read the man page, and you should get the gist of what it would take to change them or make your own.

Keep in mind that it's a good idea to keep older versions of compressed logs around for a while -- text compresses really well so they won't take up too much space -- and you'll be able to refer back to the old logs if you need to.

Other than that, in terms of housecleaning, there are a lot of things you can do. Make sure that you turn off any services that you don't need. If you don't use the FTP daemon, for example, you should turn it off. It's a good idea to find out what ports you have open, too. I regularly do a self-scan using nmap:

Code:
nmap `ifconfig eth0 | fgrep "inet addr" | cut -d: -f2 | cut -d ' ' -f1`
If you don't have it already, install "lsof". Running "lsof -i" will give you more info about the network daemons you have running.

There's a hell of a lot more that you can configure and keep an eye on to keep your box safe and efficient. The rule is "if you don't use it, turn it off". Too many people get cracked because of things like this.
 
Old 08-11-2003, 06:47 PM   #3
l0f33t
Member
 
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145

Original Poster
Rep: Reputation: 15
Thanks Joe,

That was very helpful and informative. Appreaciate it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any Linux Guru's In The House? p4yb4ck Linux - Newbie 4 02-13-2004 09:15 PM
Cleaning house in KDE jinksys Linux - Software 4 10-04-2003 10:40 PM
Linux house cleaning tips? l0f33t Linux - General 1 08-11-2003 05:01 PM
Carpet Cleaning and Linux? bobh080850 LinuxQuestions.org Member Intro 1 05-16-2003 07:42 AM
house cleaning adam_boz Linux - General 3 08-10-2002 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration