Click to See Complete Forum and Search --> : Which processes need to be running???
Jeepsta
11-28-2000, 10:22 PM
I have Mandrake 7.2 with absolutely everything installed. The problem is that there seems to be alot of processes running that I dont think I really need to. For example, I have apache running and I dont need that for anything.
I need to know what needs to be running and how to stop all the others from not starting. An NHF would be helpful but I havent found any that fit.
Can anyone lend some advice here.
Thanks,
Zach
------------------
Its a jeep thing... You wouldn't understand.
Unruly
11-28-2000, 10:27 PM
SHUT THAT PUPPY DOWN! It's a security risk if you're not running a webserver. Check out the security nhf's on how to shut down the unimportant security risky services linux is consistantly installed with.
Also, if you wanna kill a process, simply type 'ps aux' in a terminal window and that will list all the processes running... find the one you want to kill, and type 'kill <processid>' and viola http://www.linuxnewbie.org/ubb/smile.gif
Jeepsta
11-28-2000, 10:31 PM
The problem is that I dont know what processes do what and I figure that they will just start back up again when I reboot. Isnt there a file(s) that control all this.
Keep in mind that I am a newbie here.
Zach
------------------
Its a jeep thing... You wouldn't understand.
demetrius
11-28-2000, 11:14 PM
In a console or from the command line as root(or su) type ntsysv. Shutdown anything you dont think you'll need ... anything you are not sure of just post here and someone will be able to tell you what it does and you can determine from that if you need it or not. Some essential ones you dont want to shut down are crond, network, random and syslog ... others you may want/need, but most for a desktop workstation you dont need and are nothing but a potential security risk and a waste of memory.
Jeepsta
11-29-2000, 09:39 AM
Will that keep them from being started or just shut them down?
Zach
------------------
Its a jeep thing... You wouldn't understand.
MkIII_Supra
11-29-2000, 11:04 AM
Which of these can I safely kill?
PID TTY STAT TIME COMMAND
1 ? S 0:06 init [3]
2 ? SW 0:00 [kflushd]
3 ? SW 0:00 [kupdate]
4 ? SW 0:06 [kswapd]
5 ? SW< 0:00 [mdrecoveryd]
32 ? SW 0:00 [open]
37 tty12 SW 0:06 [wsMonitorBin]
398 ? S 0:00 syslogd -m 0
408 ? S 0:00 klogd -k /boot/System.map-2.2.17-21mdk
421 ? S 0:00 crond
436 ? S 0:01 cupsd
483 ? S 0:39 xfs -port -1 -daemon
501 ? S 0:00 /usr/local/bin/fakebo -b
502 ? S 0:01 /usr/local/psionic/portsentry/portsentry -stcp
504 ? S 0:00 /usr/local/psionic/portsentry/portsentry -sudp
619 ? S 0:00 /usr/sbin/iplog -l /var/log/ip.log
624 tty1 SW 0:00 [login]
625 tty2 SW 0:00 [mingetty]
626 ? S 0:00 /usr/sbin/iplog -l /var/log/ip.log
627 ? S 0:04 /usr/sbin/iplog -l /var/log/ip.log
628 ? S 0:00 /usr/sbin/iplog -l /var/log/ip.log
629 ? S 0:06 /usr/sbin/iplog -l /var/log/ip.log
729 tty1 S 0:00 -bash
4840 tty1 S 0:00 xinit /etc/X11/xinit/xinitrc -- :0 -auth /home/mac/.Xauthority
4845 ? SL 61:03 /etc/X11/X :0 -auth /home/mac/.Xauthority
4849 tty1 S 0:00 sh /usr/bin/startkde
4949 ? S 0:03 kdeinit: dcopserver WHAT THE HELL IS THIS???
4951 ? S 0:00 kdeinit: klauncher
4953 ? S 3:10 kdeinit: kdesktop
4955 ? S 0:00 kdeinit: kded WHAT THE HELL IS THIS???
4959 ? R 4:19 /usr/bin/artsd -F 7 -S 1024
4962 ? S 0:00 kdeinit: kxmlrpcd WHAT THE HELL IS THIS???
4964 ? S 0:00 kdeinit: kio_file
4972 ? S 0:34 kdeinit: kicker
4976 ? S 0:00 kdeinit: khotkeys WHAT THE HELL IS THIS???
4978 ? S 0:00 kdeinit: Running... WHAT THE HELL IS THIS???
4979 ? S 0:00 kdeinit: kwrited WHAT THE HELL IS THIS???
4981 pts/0 S 0:00 /bin/cat
4982 tty1 S 0:01 knotify WHAT THE HELL IS THIS???
4987 tty1 S 0:01 ksmserver --restore
4989 ? S 0:13 kdeinit: kwin
4991 ? S 0:00 kdeinit: kcookiejar WHAT THE HELL IS THIS???
4992 ? S 0:02 kdeinit: konsole
4994 ? S 0:21 kdeinit: kio_uiserver
4995 pts/1 S 0:00 /bin/bash
5009 pts/2 S 0:00 /bin/bash
5023 pts/1 S 0:00 su
5027 pts/1 S 0:00 bash
5041 ? S 0:01 gkrellm
5056 pts/1 S 0:01 firestarter
5062 ? S 0:00 gnome-name-service
6018 ? S 0:00 kdeinit: dcopserver WHAT THE HELL IS THIS???
6020 ? S 0:00 kdeinit: klauncher
6022 ? S 0:00 kdeinit: kded
6023 ? S 0:00 kdeinit: Running...
8464 ? S 0:00 /sbin/dhcpcd eth0
8924 pts/1 S 0:01 guarddog
8989 ? S 0:00 kdeinit: kio_file
8991 ? S 0:02 kdeinit: konqueror
8992 pts/1 R 0:00 ps ax
Of the above items what can I kill? And not lose functionality of the KDE2 desk top?
------------------
The Dragon is swift and powerful. Beware his wrath...
Not much to say? Then shut the hell up!
http://www.angelfire.com/wa2/MkIIISupra/ (http://www.angelfire.com/wa2/MkIIISupra)
Strike
11-29-2000, 11:17 AM
Perhaps a better way to look at processes is with pstree, that way you can see which one is parent to what and what killing each will take down with it.
Jeepsta
11-29-2000, 12:25 PM
I agree with MkIII_Supra in that I dont know what all these things stand for. Is there an NHF on this subject or another webpage that could lend some advise as to which processes need to be running and which ones are just for ****s and giggles.
Thanx
------------------
Its a jeep thing... You wouldn't understand.
DrDrake
11-29-2000, 01:26 PM
I run a lean and mean mandrake box. Before posting your PS shots, please shutdown X.. numerous tasks that are not needed will be shown. Also, using Drakeconf there is a button that will let you select which services at boot to use.. I usually turn all off except:
xinetd
anacrond
cups
usually I turn off all the file sharing things, but they are good if you are sharing with a windows comp.
Also, edit inetd.conf and place a # before each service you dont need to use.. none are vital. If you have more questions post a revised PS without X running.
[This message has been edited by DrDrake (edited 29 November 2000).]
The Startup Services{/i] in [i]DrakeConf are really usefull in Mandrake. Also a mouseover will give a bit info so you might make an intelligent guess on what you need. I personally shut off all server stuff but network.
Here (http://www.mandrakeuser.org/admin/adaemon2.html) is a list of services in Mandrake.
Here (http://www.mandrakeuser.org/admin/adaemon1.html) is a bit more info on your daemons.
www.mandrakeuser.org (http://www.mandrakeuser.org) has a lot of helpfulstuff for, you guessed it, Mandrake Users. Other distros can benefit from it as well, but it definately is Mandrake centric.
------------------
Just a Tuna in the Sea of Life
Jeepsta
11-29-2000, 04:45 PM
Thanx for the help guys. I will look around and read up on those services.
Zach
------------------
Its a jeep thing... You wouldn't understand.
Harry
11-30-2000, 02:36 AM
Here is some more info on disabling unnecessary daemons:
http://www.userlocal.com/secdisablingdaemons.shtml