个人工具

“UbuntuHelp:BootServices”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/BootServices}} {{Languages|php5}} #format wiki #language en === Stopping of unnecessary services during startup === For convenience, a lot of serv...)
 
 
(未显示2个用户的11个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/BootServices}}
 
{{From|https://help.ubuntu.com/community/BootServices}}
{{Languages|php5}}
+
{{Languages|UbuntuHelp:BootServices}}
#format wiki
+
#language en
+
 
+
 
=== Stopping of unnecessary services during startup ===
 
=== Stopping of unnecessary services during startup ===
 
For convenience, a lot of services are started when Ubuntu starts up. This can include services which you'll probably never need or want, either because you just don't want them (e. g. ntpdate, setting your system time from a time server) or you simply don't have the device (e. g. the HP printing and scanning system which is of no use for you if you don't own a HP device). Other services are mandatory for Ubuntu to work properly on your computer.
 
For convenience, a lot of services are started when Ubuntu starts up. This can include services which you'll probably never need or want, either because you just don't want them (e. g. ntpdate, setting your system time from a time server) or you simply don't have the device (e. g. the HP printing and scanning system which is of no use for you if you don't own a HP device). Other services are mandatory for Ubuntu to work properly on your computer.
 
 
While it generally does not harm to have these services started, they increase the time it takes to start your computer, by deactivating some of these services you should get a slightly faster start up time.  
 
While it generally does not harm to have these services started, they increase the time it takes to start your computer, by deactivating some of these services you should get a slightly faster start up time.  
 
 
A simple tool to manage the start of services is BUM, the boot-up manager. There are other tools available which allow a fine grained editing of services,  such as sysv-rc-conf, a ncurses based tool, which gives you control over all services.  
 
A simple tool to manage the start of services is BUM, the boot-up manager. There are other tools available which allow a fine grained editing of services,  such as sysv-rc-conf, a ncurses based tool, which gives you control over all services.  
 
However for this tutorial we will be focusing on BUM.  
 
However for this tutorial we will be focusing on BUM.  
 
 
=== Installing BUM ===
 
=== Installing BUM ===
BUM is available in the 'universe' repository, you can install it either via synaptic or by using the following command.
+
BUM is available in the '''Universe''' repository
<pre><nowiki>
+
sudo apt-get install bum
+
</nowiki></code>
+
 
+
 
=== Running BUM ===
 
=== Running BUM ===
 
 
BUM needs super user privileges to run, so to start it use
 
BUM needs super user privileges to run, so to start it use
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo bum
 
sudo bum
</nowiki></code>
+
</nowiki></pre>
 
and enter your password when required.
 
and enter your password when required.
 
 
BUM can take a while to start up so be prepared to wait for it a couple of minutes.
 
BUM can take a while to start up so be prepared to wait for it a couple of minutes.
 
+
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconDialog-Warning1.png '''Warning''': Disabling some services will stop your system from booting or running properly.
attachment:IconsPage/IconDialog-Warning1.png '''Warning''': Disabling some services will stop your system from booting or running properly.
+
 
+
 
Within bum you can activate/deactivate the start of a service by simply clicking on the checkbox at the beginning of the line for each of the listed services.
 
Within bum you can activate/deactivate the start of a service by simply clicking on the checkbox at the beginning of the line for each of the listed services.
 
 
It may be sufficient to work on the first tab in BUM. However if you switch to the 'Services' tab, you will see a short explanation for each service, which might help to identify services you don't need. If you uncheck a service which is already running, you are asked whether it should be stopped.
 
It may be sufficient to work on the first tab in BUM. However if you switch to the 'Services' tab, you will see a short explanation for each service, which might help to identify services you don't need. If you uncheck a service which is already running, you are asked whether it should be stopped.
 
 
Remember, make sure you know what the service does before preventing it from running. e.g. it is most likely not a good idea to prevent the cupsys service from being started, if you want to print via cups. If in doubt, leave the service enabled until you've been able to find out more about it
 
Remember, make sure you know what the service does before preventing it from running. e.g. it is most likely not a good idea to prevent the cupsys service from being started, if you want to print via cups. If in doubt, leave the service enabled until you've been able to find out more about it
 
+
=== Command Line ===
CategoryDocumentation CategoryCleanup
+
Rcconf is an ncurses based GUI for services, much like Bum but it can be used via the command line (server install).
 +
<pre><nowiki>
 +
sudo apt-get install rcconf
 +
</nowiki></pre>
 +
<pre><nowiki>
 +
sudo rcconf
 +
</nowiki></pre>
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 21:46的最新版本


Stopping of unnecessary services during startup

For convenience, a lot of services are started when Ubuntu starts up. This can include services which you'll probably never need or want, either because you just don't want them (e. g. ntpdate, setting your system time from a time server) or you simply don't have the device (e. g. the HP printing and scanning system which is of no use for you if you don't own a HP device). Other services are mandatory for Ubuntu to work properly on your computer. While it generally does not harm to have these services started, they increase the time it takes to start your computer, by deactivating some of these services you should get a slightly faster start up time. A simple tool to manage the start of services is BUM, the boot-up manager. There are other tools available which allow a fine grained editing of services, such as sysv-rc-conf, a ncurses based tool, which gives you control over all services. However for this tutorial we will be focusing on BUM.

Installing BUM

BUM is available in the Universe repository

Running BUM

BUM needs super user privileges to run, so to start it use

sudo bum

and enter your password when required. BUM can take a while to start up so be prepared to wait for it a couple of minutes. IconsPage?action=AttachFile&do=get&target=IconDialog-Warning1.png Warning: Disabling some services will stop your system from booting or running properly. Within bum you can activate/deactivate the start of a service by simply clicking on the checkbox at the beginning of the line for each of the listed services. It may be sufficient to work on the first tab in BUM. However if you switch to the 'Services' tab, you will see a short explanation for each service, which might help to identify services you don't need. If you uncheck a service which is already running, you are asked whether it should be stopped. Remember, make sure you know what the service does before preventing it from running. e.g. it is most likely not a good idea to prevent the cupsys service from being started, if you want to print via cups. If in doubt, leave the service enabled until you've been able to find out more about it

Command Line

Rcconf is an ncurses based GUI for services, much like Bum but it can be used via the command line (server install).

sudo apt-get install rcconf
sudo rcconf