Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > How do I check for/disable unecessary programs/processes/services?

Forgot Password?
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-30-2006   #1 (permalink)
Just Joined!
 
Catsworth's Avatar
 
Join Date: Jul 2006
Location: UK
Posts: 45
How do I check for/disable unecessary programs/processes/services?

Hi Guys

I've noticed that when I shut down Ubuntu it lists a whole load of services (and possibly programs?) that it's stopping/closing. Amongst that list are things that look like Bluetooth support (I don't have anything using Bluetooth) and a BitTorrent tracker (I'm not using BitTorrent - yet!).

How do I:

1. Find out exactly what programs/services are running on my Ubuntu install? I've looked at the 'Services' list (System > Administration > Services) but there are only about half a dozen on there and none of the ones that I'm concerned with are running.

2. Shut down/stop (for good) anything that shouldn't be running? Is there a list of the essential services somewhere, or better still a list of things that are normally running that I can shut down without causing any problems?

Thanks.
Catsworth is offline  


Reply With Quote
Old 07-30-2006   #2 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,059
Quote:
Originally Posted by Catsworth
Hi Guys

I've noticed that when I shut down Ubuntu it lists a whole load of services (and possibly programs?) that it's stopping/closing. Amongst that list are things that look like Bluetooth support (I don't have anything using Bluetooth) and a BitTorrent tracker (I'm not using BitTorrent - yet!).

How do I:

1. Find out exactly what programs/services are running on my Ubuntu install? I've looked at the 'Services' list (System > Administration > Services) but there are only about half a dozen on there and none of the ones that I'm concerned with are running.

2. Shut down/stop (for good) anything that shouldn't be running? Is there a list of the essential services somewhere, or better still a list of things that are normally running that I can shut down without causing any problems?

Thanks.

Bluetooth is enabled into the kernel itself, as is a lot of other start-up programs and services. If you want to disable bluetooth and other things, you'll need to install the kernel sources and recompile your kernel.
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 07-30-2006   #3 (permalink)
Just Joined!
 
Catsworth's Avatar
 
Join Date: Jul 2006
Location: UK
Posts: 45
Ah right, ok - probably won't be fiddling with that for a while then - thanks Mike

I guess that the same will probably prove to be true with some of the other things that Ubuntu reports it is 'stopping' as it shuts down?
Catsworth is offline   Reply With Quote
Old 07-30-2006   #4 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,059
Quote:
Originally Posted by Catsworth
Ah right, ok - probably won't be fiddling with that for a while then - thanks Mike

I guess that the same will probably prove to be true with some of the other things that Ubuntu reports it is 'stopping' as it shuts down?
Yeah probably so.
You can go to System > Administration > Services, and use google to decide if you need the services that are listed and shut them down.
I think if you want to remove something like sendmail, un-installing the sendmail program would remove that service from start-up.
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 08-29-2006   #5 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 3
Quote:
Originally Posted by MikeTbob
Yeah probably so.
You can go to System > Administration > Services, and use google to decide if you need the services that are listed and shut them down.
I think if you want to remove something like sendmail, un-installing the sendmail program would remove that service from start-up.
Uninstalling the service is quite unnecessary. There are always ways to stop them and keep them from starting up on boot. I admit that in Ubuntu I haven't found an easy way to do this since the Services GUI is quite useless, it will not go into Admin mode (for me). In Fedora, there is chkconfig which is quite easy to use and does not require uninstalling the programs. In truth , uninstalling software manually under linux is not a good idea unless you are absolutely sure of what you are doing.

What chkconfig really does is get rid of the script in the corresponding folder (depending on the run level you are at) which is usually /etc/rc5.d. When you shut down, then the scripts in that folder will be shut down. The ones that will startup up begin with a capital S, the ones to shut down with a capital K.

Don't mess too much with this stuff if you don't know what you are doing.

I have to add though, that bluetooth, etc is NOT part of the kernel, they are daemons that you CAN prevent from starting up and indeed you should if you do not need them.

For bluetooth specifically, you can delete this script from /etc/rc5.d:

S25bluez-utils

it is only a softlink to another script in /etc/init.d/bluez-utils. Make sure you do not delete the ones in /etc/init.d, just the links in the /etc/rc5.d. That way you can always get them back by creating another soft link.

Now, I'm new to ubuntu (but I checked all this that I am saying before posting and indeed it is the same as in Fedora) and would like to know if there is a gui or command line tool to manage services. Having to delete the links manually is quite a chore.

Cheers
kakubei is offline   Reply With Quote
Old 08-29-2006   #6 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 3
Trolling google, I found this tool for services:

sudo apt-get install sysv-rc-conf

this is to get the software, then you run it with this: sudo sysv-rc-conf

It looks a lot like chkconfig. Will allow you to start and stop services at boot. You probably want to stay with the number 5 where it says services, this is the run level with a graphical interface, leave the rest as is.

Cheers
kakubei is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 07:29 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2