LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2004, 03:55 PM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Rep: Reputation: 31
now I got one remote access taken care, now...


I was wondering how could I got about killing processes for my one Linux file server. I need it to run as lean as possible, with basically ONLY the necassary system processes and of course Samba. Here is a list of my processes, could anyone point out to some obvious ones I don't really need:
--------------------------------------------------------
15:51:06 up 1 day, 19:32, 1 user, load average: 0.00, 0.01, 0.00
34 processes: 32 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: 0.3% user 0.5% system 0.0% nice 0.0% iowait 99.0% idle
Mem: 190692k av, 181760k used, 8932k free, 0k shrd, 60104k buff
135928k actv, 0k in_d, 2164k in_c
Swap: 385552k av, 3708k used, 381844k free 99588k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
10764 root 15 0 1064 1064 848 R 0.7 0.5 0:02 0 top
6 root 15 0 0 0 0 SW 0.1 0.0 1:01 0 kscand/Normal
1 root 15 0 108 76 56 S 0.0 0.0 0:03 0 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
3 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd_CPU0
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
4 root 15 0 0 0 0 SW 0.0 0.0 0:19 0 kswapd
5 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/DMA
7 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/HighMem
9 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kupdated
10 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
14 root 15 0 0 0 0 SW 0.0 0.0 0:20 0 kjournald
72 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
1181 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
1486 root 15 0 188 156 112 S 0.0 0.0 0:00 0 syslogd
1490 root 15 0 56 8 4 S 0.0 0.0 0:00 0 klogd
1508 rpc 15 0 76 0 0 SW 0.0 0.0 0:00 0 portmap
1527 rpcuser 25 0 80 0 0 SW 0.0 0.0 0:00 0 rpc.statd
1605 root 15 0 436 276 192 S 0.0 0.1 0:02 0 sshd
1619 root 15 0 152 28 24 S 0.0 0.0 0:00 0 xinetd
1628 root 15 0 116 88 68 S 0.0 0.0 0:00 0 gpm
1649 root 15 0 156 136 88 S 0.0 0.0 0:00 0 crond
1688 root 15 0 812 308 200 S 0.0 0.1 0:00 0 smbd
1692 root 15 0 924 468 360 S 0.0 0.2 0:02 0 nmbd
1716 daemon 15 0 176 160 120 S 0.0 0.0 0:00 0 atd
1724 root 22 0 44 4 0 S 0.0 0.0 0:00 0 mingetty
1725 root 22 0 44 4 0 S 0.0 0.0 0:00 0 mingetty
1726 root 22 0 44 4 0 S 0.0 0.0 0:00 0 mingetty
1727 root 22 0 48 4 0 S 0.0 0.0 0:00 0 mingetty
1728 root 22 0 48 4 0 S 0.0 0.0 0:00 0 mingetty
1729 root 22 0 48 4 0 S 0.0 0.0 0:00 0 mingetty
1736 root 15 0 2832 1860 976 S 0.0 0.9 19:41 0 smbd
10706 root 16 0 1340 1340 1064 S 0.0 0.7 0:00 0 bash
------------------------------------------------------------------------------

Would really appreciate it. Thanks.
 
Old 07-28-2004, 04:01 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
in fedora.. i think you can disable startup items by making a few files non-executable, this can be done from the commandline... if you have X there should be a services option in gnome or kde... if so disable everything you dont need in there...

if not..

cd /etc/xinit.d/
ls
these are all the apps that autostart at boot... chmod -x filename will disable the script from starting the service on startup.

If I am wrong anyone can feel free to correct this.
 
Old 07-28-2004, 08:34 PM   #3
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
yeah, maybe I should've put this in the Fedora forum...but here's a bump just in case.
 
Old 07-28-2004, 09:16 PM   #4
mhiggins
Member
 
Registered: Feb 2004
Posts: 140

Rep: Reputation: 15
In red hat you can run /usr/sbin/setup and that will give you a menu where you can disable serivces. The above post may work but I think the official way to do it is either use the setup prog I just listed or use
chkconfig.
http://www.redhat.com/docs/manuals/l...chkconfig.html

-Matt


some serives that sick out in that list are;

rpc.statd
portmap
xinetd

But it also looks like thats out put from top an not all running prog are listed.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote access balajee Linux - Security 2 05-25-2005 12:30 AM
Remote Access JRago Linux - Networking 0 03-16-2004 01:17 PM
Remote Access Kenster Red Hat 7 12-14-2003 05:01 AM
Remote Access ziegler Linux - General 6 05-02-2003 12:26 PM
Remote Access Breezwell Linux - Networking 3 05-17-2001 09:08 AM


All times are GMT -5. The time now is 06:35 AM.

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