LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2008, 11:01 AM   #1
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Rep: Reputation: 30
Which Of These Services Can I Safely Turn Off?


I got ubuntu 8.04 and after disabling 8 services, bootup improved, but not much. Under my prior ubuntu 7.04, bootup was 1 minute. I have to improve bootup time further under 8.04.

The following services are enabled on my ubuntu 8.04. Can you guys please look over and decide which ones I can safely disable and which ones I shouldn't? I'd greatly apprecite this, guys!

- apache2
- avahi-daemon
- apparmor
- apport
- courier-s$
- courier-a$
- courier-m$
- cryptdisks
- cryptdisks$
- dhcdbd
- hal
- hsf
- keyboard-$
- libpam-fo$
- linux-res$
- loopback
- mountover$
- policykit
- procps
- pulseaudio
- rc.local
- screen-cl$
- sl-modem-daemon
- stop-read$
- ufw
- umountroot
- vboxdrv
- vboxnet
- wpa-ifupd$
- x11-common



.

Last edited by taurusx5; 09-24-2008 at 11:04 AM.
 
Old 09-24-2008, 12:16 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by taurusx5 View Post
I got ubuntu 8.04 and after disabling 8 services, bootup improved, but not much. Under my prior ubuntu 7.04, bootup was 1 minute. I have to improve bootup time further under 8.04.

The following services are enabled on my ubuntu 8.04. Can you guys please look over and decide which ones I can safely disable and which ones I shouldn't? I'd greatly apprecite this, guys!

- apache2
- avahi-daemon
- apparmor
- apport
- courier-s$
- courier-a$
- courier-m$
- cryptdisks
- cryptdisks$
- dhcdbd
- hal
- hsf
- keyboard-$
- libpam-fo$
- linux-res$
- loopback
- mountover$
- policykit
- procps
- pulseaudio
- rc.local
- screen-cl$
- sl-modem-daemon
- stop-read$
- ufw
- umountroot
- vboxdrv
- vboxnet
- wpa-ifupd$
- x11-common



.
Well, how can we tell? You don't say what you need and don't need, so it's hard to say what's 'excess.
 
Old 09-24-2008, 01:04 PM   #3
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by TB0ne View Post
Well, how can we tell? You don't say what you need and don't need, so it's hard to say what's 'excess.

Hi, T0ne. Just look at the list and tell me which services you think are not necessary and tell me why. That's all. Thanks.

.
 
Old 09-24-2008, 02:04 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by taurusx5 View Post
Hi, T0ne. Just look at the list and tell me which services you think are not necessary and tell me why. That's all. Thanks.

.
I think that the point that you have missed is that the necessary ones are the ones that you are using and we don't know what you are using.

If you are not running a web server, for example, apache is unnecessary, and a good candidate to get rid of, because it is quite big. But, I don't know whether you run a webserver (and don't overlook the possibility that something runs a webserver to give you a web configuration interface).

I wouldn't want to touch the following
- avahi-daemon
- apparmor
- cryptdisks
- cryptdisks$
- dhcdbd
- hal
- keyboard-$
- libpam-fo$
- loopback
- mountover$
- policykit
- pulseaudio
- rc.local
- screen-cl$
- stop-read$
- ufw
- umountroot
- wpa-ifupd$
- x11-common

because they sound too dangerous. (Although, as I say, you only need keyboard if you are running a keyboard. It will probably be obvious to you whether you need that, but you could be running a headless server.)
And the wpa one is wireless, so that would go if you aren't running wireless.

And some of the rest I'm just a bit unclear on what exactly they do, so although I haven't included them, they may still be dangerous.

Have you thought of 'man process_name' to see what they do? And what about the bootchart approach of looking at which proc takes how much time and trying to overlay them?
 
Old 09-24-2008, 02:21 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
If the services could be catalogued in useful and non-useful ones then the "non-useful" ones wouldn't exist on first place.

Each service will be useful or not for you depending on what do you use, what do you do, and what functionalities of your os do you use.

About config interfaces and apache, most of them do not use apache for anything. The first two examples I can think of are mldonkey (port 4080) and cups (631), neither of them need apache nor any other web server to run. And if you run a web server in your home, probably lighttpd is more suited, unless you use some esoteric feature of apache.
 
Old 09-24-2008, 04:39 PM   #6
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by salasi View Post
I think that the point that you have missed is that the necessary ones are the ones that you are using and we don't know what you are using.

If you are not running a web server, for example, apache is unnecessary, and a good candidate to get rid of, because it is quite big. But, I don't know whether you run a webserver (and don't overlook the possibility that something runs a webserver to give you a web configuration interface).

I wouldn't want to touch the following
- avahi-daemon
- apparmor
- cryptdisks
- cryptdisks$
- dhcdbd
- hal
- keyboard-$
- libpam-fo$
- loopback
- mountover$
- policykit
- pulseaudio
- rc.local
- screen-cl$
- stop-read$
- ufw
- umountroot
- wpa-ifupd$
- x11-common

because they sound too dangerous. (Although, as I say, you only need keyboard if you are running a keyboard. It will probably be obvious to you whether you need that, but you could be running a headless server.)
And the wpa one is wireless, so that would go if you aren't running wireless.

And some of the rest I'm just a bit unclear on what exactly they do, so although I haven't included them, they may still be dangerous.

Have you thought of 'man process_name' to see what they do? And what about the bootchart approach of looking at which proc takes how much time and trying to overlay them?
Salasi, you made a good point. My answer is, I use my computer for wireless and dialup, faxing through eFax, printing, word processing, listening to mp3s rand adio listening over the net using banshee, video playing with VLC and Totem, I got Virtualbox which I use alot, I use Kmobiletools and Moto4lin to access my cellphone by connecting my cell thru USB, I use XScan for scanning images, I use KB3 for burning CDs and DVDs. And, I don't use my computer as a webserver.

And I think that's it!

.

.
 
Old 09-24-2008, 06:09 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Did you profile after disabling those services?
 
Old 09-24-2008, 08:35 PM   #8
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jay73 View Post
Did you profile after disabling those services?
Hi, Jay73, how are you? What do you mean by "profile after disabling those services"?

.
 
Old 09-24-2008, 09:00 PM   #9
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
You have just made a lot of changes to your system. Re-profiling your boot will reorganize it and make it faster on boots afterwards. For doing so, reboot your PC. When you come to your grub list, hit escape to see your grub menu and edit the topmost line and add the word below to the end of it:
profile
 
Old 09-24-2008, 09:21 PM   #10
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by craigevil View Post
You have just made a lot of changes to your system. Re-profiling your boot will reorganize it and make it faster on boots afterwards. For doing so, reboot your PC. When you come to your grub list, hit escape to see your grub menu and edit the topmost line and add the word below to the end of it:
profile
Hi, craigevil, thanks for replying. I did disable certain services. But, when I tried to edit GRUB through your instructions, I found 4 lines, starting with the first:

- root
- kernel
- initrd
- quiet


I did, however, type in 'profile' in the 'kernel' line even though it wasn't the first line, because I thought that line was the most relevant. I know it wasn't part of your instruction. Please, let me know if I did it worng or I should instead go back and type it in 'root'. Thanks.

.

Last edited by taurusx5; 09-24-2008 at 09:23 PM.
 
Old 10-02-2008, 11:00 PM   #11
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by salasi View Post
I think that the point that you have missed is that the necessary ones are the ones that you are using and we don't know what you are using.

I wouldn't want to touch the following
- avahi-daemon
- apparmor
- cryptdisks
- cryptdisks$
- dhcdbd
- hal
- keyboard-$
- libpam-fo$
- loopback
- mountover$
- policykit
- pulseaudio
- rc.local
- screen-cl$
- stop-read$
- ufw
- umountroot
- wpa-ifupd$
- x11-common
Hi, Salasi.... Just to remind you, I use my computer for wireless and dialup, faxing, printing, word processing, mp3, radio listening over the net, DVDs through VLC, Virtualbox, and pop/smtp mail.

Here's an updated list of services I want to disable. I did stop some services that you recommended. But, which ones can I safely disable now, considering that it's an updated list and can you please tell me why for each? This is very important for me... hope you understand.

- apparmor
- dhcdbd
- hal
- killprocs
- libpam-foreground
- makedev
- module-init-tools
- mountoverflowtmp
- policykit
- powernowd
- powernord.early
- procps
- rc.local
- sendsigs
- single
- sysklogd
- udev
- udev-finish
- ufw
- umountfs
- umountroot
- urandom
- wpa--ifupdown
- x11-common


.

Last edited by taurusx5; 10-02-2008 at 11:03 PM.
 
Old 10-03-2008, 06:17 AM   #12
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by taurusx5 View Post

Here's an updated list of services I want to disable... This is very important for me... hope you understand.
can't say that i do, but:

- apparmor no, security
- dhcdbd no, dhcp interface to dbus, only kill if you know that you won't use dhcp
- hal no, hardware abs layer fundamental to gui convenience features
- killprocs no, needed to kill processes
- libpam-foreground library for plugabble auth module, don't kill
- makedev no
- module-init-tools no
- mountoverflowtmp no
- policykit no
- powernowd powersaving (amd only, can possibly disable on intel cpus without effect?)
- powernord.early as above
- procps don't know
- rc.local start local processes
- sendsigs don't know, but its sounds dangerous
- single don't know
- sysklogd system logger, don't disable
- udev to do with hardware, don't
- udev-finish as above
- ufw no, ubuntu firewall
- umountfs do you want to mount filesystems?
- umountroot as above
- urandom random number service, used by misc apps
- wpa--ifupdown part of wireless protected access, not needed if not using wireless
- x11-common not needed if not using a gui

So the only thing that I can see is safe is the powernow stuff. Whether its a disadvantage or not depends on whether you use an AMD cpu and your usage profile (would power saving ever kick in if you had it available?).

But I doubt powernow uses up much memory or many cycles in the start up, so I'm not sure its worth it, given that there is other stuff that would have been better to look at (see earlier comment about bootchart; filesystems; and system tuning and more fundamentally, use a lighter gui)
 
Old 10-03-2008, 08:47 AM   #13
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
(Slaps taurusx5's wrist sharply) "Are you trying to put your nice, running system into the emergency-room on purpose?"

Instead of just poking at things to see if you can turn them off, go find where they are defined (e.g.) /etc/init.d, /etc/rc.d, and find out what each one does.

Also, fiddle with the output of the top command to see just how active these processes are and how many resources they consume. Many of these services are either built-in to the kernel (they are "kernel processes"), or they really are essential in most cases. (apache2 being an obvious exception.) If the process isn't running much, or isn't using much resources....
Quote:
"das computenmachine is nicht fer gerfingerpoken ur mittengrabben! Ist easy to schnappen der springerwerk und causen smokenflames! Sit back and watchen der blinkenlights!"
Honestly, I'm making a bit of light of the whole thing, but... proceed cautiously in unfamiliar waters.
 
Old 10-03-2008, 12:56 PM   #14
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by salasi View Post
can't say that i do, but:

- powernowd powersaving (amd only, can possibly disable on intel cpus without effect?)
- powernord.early as above

- procps don't know

- rc.local start local processes

- umountfs do you want to mount filesystems?
- umountroot as above


So the only thing that I can see is safe is the powernow stuff. Whether its a disadvantage or not depends on whether you use an AMD cpu and your usage profile (would power saving ever kick in if you had it available?).

But I doubt powernow uses up much memory or many cycles in the start up, so I'm not sure its worth it, given that there is other stuff that would have been better to look at (see earlier comment about bootchart; filesystems; and system tuning and more fundamentally, use a lighter gui)
Hi, salasi. Thanks for the awesome reply.

1) You mentioned that powernowd can be turned off. I don't have an AMD, I got an Intel processor. Given this, is there a real danger in turning off powernowd and powernord.early?

2) You also mentioned procps and rc.local. I gather you're not sure about these.

3) To answer your question about umountfs, I don't know what you mean by "do you want to mount filesystems?" Can you further clarify this question.

4) You didn't mention cryptdisks. Can I safely disable it?

.
 
Old 10-04-2008, 02:20 PM   #15
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by taurusx5 View Post
Hi, salasi. Thanks for the awesome reply.

1) You mentioned that powernowd can be turned off. I don't have an AMD, I got an Intel processor. Given this, is there a real danger in turning off powernowd and powernord.early?

2) You also mentioned procps and rc.local. I gather you're not sure about these.

3) To answer your question about umountfs, I don't know what you mean by "do you want to mount filesystems?" Can you further clarify this question.

4) You didn't mention cryptdisks. Can I safely disable it?
1) there is no real danger (AFAIK) turning off powernowd. With an Intel cpu I believe it won't make a difference, with an AMD cpu it will mean that you lose the power saving features. If I had an AMD cpu, I'd want to keep it, for the power saving, but that's not what this thread is about.

3) OK, this was a slightly sardonic comment. To use disk space in a unixy system, the disks have to be mounted. You could potentially disable disk mounting in an embedded system that doesn't have disks, but for everyone else this is necessity.

You really don't want to be messing about tools for mounting and unmounting disks unless you know lots more about it than I do.

4) Cryptdisks is part of disk encryption; if you don't use disk encryption, you should be able to disable this. OTOH if you do use disk encryption, disabling this will lead to you being unable to access your data. Most people would regard this as a disadvantage.
 
  


Reply



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
How Do I Turn Services Off? taurusx5 Linux - Software 15 09-06-2008 12:35 AM
How Do I Turn Off Services In sysv-rc-conf ? taurusx5 Linux - Software 1 09-02-2008 11:50 AM
how to turn off unwanted services in FC5 mystic_durle12 Linux - Newbie 3 08-13-2007 01:32 AM
how to turn off services SpiderIRE Linux - Newbie 2 04-30-2006 05:35 PM
Services to safely disable? Icarus315 SUSE / openSUSE 2 01-29-2005 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration