Ubuntu的启动与优化

 
(Intro)介绍
This will describe and explain the start-up process of
Ubuntu Linux .
这里将描述和解释Ubuntu Linux的启动过程

(rc2.d)
Like Debian, Ubuntu boots up in runlevel 2. Because of that, we'll find the details we want in /etc/rc2.d. Inside that directory, we find:
就像Debian,Ubuntu默认开机运行等级为2。因此,我们将在/etc/rc2.d发现我们想要的详细资料。在那个目录,我们发现:
>> sysklogd
>> klogd
>> ppp
>> portmap
>> acpid
>> alsa
>> apmd
>> autofs
>> cupsys
>> dbus-1
>> fam
>> inetd
>> makedev
>> postfix
>> powernowd
>> rsync
>> mdadm
>> atd
>> cron
>> acpi-support
>> fetchmail
>> gdm
>> rmnologin
>> stop-bootlogd

(start-stop-daemon)
An important utility to understand first is the Debian utility, start-stop-daemon. It's a simple program that manages starting and stopping running daemons. Each program under /etc/rc2.d utilizes this program to manage their process.
一个首先推定为Debian工具的重要工具,start-stop-daemon。这是一个管理程序的开始和暂停的简单程序。任何在/etc/rc2.d底下的程序利用此程序来管理他们的进程。

(init-functions)
All services run /lib/lsb/init-functions. This file contains helper functions for the start-stop-daemon program. It helps manage the pid files under /var/run and provides the text-output and logging when the status of a service changes.
所有服务运行 /lib/lsb/init-functions。此文件包含start-stop-daemon程序的助手函数。它帮助管理在/var/run下的pid文件并且在服务状态发生改变的时候提供文本输出和生成日志。

(sysklogd)
Sysklogd is the system log daemon. As the description implies, it allows the system to log messages. Options may be specified in the SYSKLOGD variable. The daemon then starts and reads its configuration from /etc/syslog.conf. More information can be found
here
Sysklogd是系统日志程序。作为必需的描述:它允许系统记录讯息。各种选项在变量SYSKLOGD里被指定。接着后台程序开始运行并且从/etc/syslog.conf读入配置文件。 此处 可获得更多信息。

(klogd)
Klogd provides kernel logging. Klogd will obtain kernel messages from /proc/kmsg, but if /proc doesn't exist, it will use the system call interface. All kernel messages are routed through syslog which then places them in the /var/log/kern.log file.
Klogd提供核心日志。Klogd将从/proc/kmsg获得核心讯息,但是如果/proc不存在,它将系统调用呼叫接口,所有核心讯息通过接着代替他们的syslog发送到/var/log/kern.log文件。

(ppp)
This file checks if /etc/ppp/ppp_on_boot exists and if it does, connect to the users ISP.
此文件检查/etc/ppp/ppp_on_boot文件是否存在,如果存在连接到用户ISP.

(portmap)
Portmap converts RPC calls into standard DARPA (tcp/ip) port numbers. This file reads /etc/default/portmap which tells portmap to only run on the local loopback interface.
Portmap 将RPC调用转换成标准DARPA(tcp/ip)端口号。此文件读入/etc/default/portmap告诉portmap仅仅在本地回送接口运行。

(acpid)
acpid is a power management daemon. It will sit and read /proc/acpi/event until it receives a whole line. Once then, it checks /etc/acpi/events for a qualifying action for that event. By default, Ubuntu loads the following acpi related modules: battery, ac, processor, button, fan, and thermal. More info can be found
here
acpid 作为电力管理程序。它将占用并读入/proc/acpi/event文件直到它收到一整行。一旦(发生事件)然后,它作为有资格的动作为那事件检查 /etc/acpi/events。默认的,Ubuntu导入以下和acpi有关的模块:battery, ac, processor, button, fan, 和thermal,
此处 可获得更多信息。
 
(alsa)
Alsa is the Advanced Linux Sound Architecture. It reads in some basic settings from /etc/default/alsa then loads up the stored alsa settings. More info can be found
here
Alsa 是高级Linux声音架构的意思。它从/etc/default/alsa读入一些基本设置然后装载被存储的alsa设置。 此处 可获得更多信息。

(apmd)
apmd is another power management daemon. This one really just cares about battery power, system standby, system suspend, and system resume. More info can be found
here
apmd是另外一个电力管理程序。这个守护程序真正关心电池电力、系统待机、系统挂起、和系统恢复。 此处 可获得更多信息。

(autofs)
autofs controls the automount daemon. autofs reads /etc/auto.master for various mount points of mounting drives.
autofs控制自动挂载程序。autofs在/etc/auto.master读入各种挂载设备的挂载点。

(cups)
cups is the Common Unix Printing System. It provides and extremely easy system for configuring a printer under linux. More info can be found
here
cups是通用Unix打印系统。它为在linux下配置打印机提供非常简单的系统。 此处 可获得更多信息。

(dbus-1)
dbus is a system for providing Inter Process Communications between two applications. As
freedesktop explains, examples of this include a camera being plugged in or file monitoring. More info can be found here
dbus是一个提供双应用程序间的处理通信的系统。作为 freedesktop 解释,此例子包含一个插上电源的照相机或者文件监视器。 此处 可获得更多信息。

(famd)
famd is the File Alteration Monitor daemon. It provides a system that applications can use to detect when a file changes.
famd是文件更改监视器程序。它提供一个当文件被改变的时候能够监测的系统。
(inetd)
inetd provides a list of services and ports they run on under /etc/inetd.conf. It then listens for requests for those ports, and once received, runs that service.
inetd提供在/etc/inetd.conf下的服务列表以及相关端口。然后它监听请求端口,一旦收到,运行相关服务。

(makedev)
makedev simply re-creates a symlink from /sbin/MAKEDEV to /dev/MAKEDEV
makedev 简单的从/sbin/MAKEDEV到/dev/MAKEDEV重建一个符号连接

(postfix)
Postfix is a Mail Transport Agent or MTA. This provides local system mail transportation, and if configured correctly, internet-wide mail transportation. More info can be found
here
Postfix是邮件传送代理或者简称MTA。它提供本地系统邮件传递,如果配置正确,能提供Internet范围的邮件传递。 此处 可获得更多信息。

(powernowd)
powernowd is a client for cpufreq which, as the name implies, controls the CPU frequency. By using this, you may raise the frequency of your cpu when your computer may need the extra power and lower it during idle time. This is especially useful for laptops when heat is concerned.
powernowd 是一个cpufreq的客户端程序,cpufreq~顾名思义-能控制CPU频率。通过是用它,你可以提高你电脑的频率同时或许会需要额外电力,在停机的时候降低它。当与热有关时,这特别对便携电脑有用。
 
(rsync)
This would start the rsync daemon on your system but, by default, it is disabled.
这将在你的系统上开始rsync程序,但是默认他是不起作用的。

(mdadm)
mdadm manages software RAID under linux. More info can be found
here
mdadm在linux下管理软件RAID。 此处 可获得更多信息。

(atd)
atd is the at daemon and manages processes scheduled to run at later times.
atd是在后台并且管理过程计划为了在晚些时候运行。

(crond)
crond is the cron daemon and manages processes that may be on a repetitive schedule.
crond 是cron守护进程并且在重复的计划中管理过程。

(acpi-support)
This is just a helper script for the acpi daemon. Depending on what mode a laptop is in (battery or AC), it will set the systems power accordingly.
这仅仅是acpi程序的助手脚本。依靠便携机运行在什么方式(电池或者交流电),从而调整系统电力。

(fetchmail)
fetchmail manages retrieving email. This script checks for /etc/fetcmailrc and if it doesnt exist (it doesnt by default), then it does not start. More info can be found
here
fetchmail管理找回的email。此脚本检验/etc/fetcmailrc文件并且当此文件不存在的时候(默认不存在此文件),它将不运行。 此处 可获得更多信息。
(gdm)
gdm is the GNOME Display Manager. It starts X Windows and provides a graphical login screen. More info can be found
here
gdm是GNOME显示管理器。它开始X Window并且提供一个图形化的登录屏幕。 此处 可获得更多信息。

(rmnologin)
This script removes the /etc/rmnologin file. rmnologin prevents non-root users from logging in.
此脚本移除/etc/rmnologin文件。rmnologin防止非root用户登录系统。

(stop-bootlogd)
Just like the name implies, this stops the bootlogd daemon. bootlogd logs all strings sent to the console.
顾名思义,它结束bootlogd后台程序。bootlogd记录所有发送到控制台的字串。

原文地址:http://blog.chinaunix.net/u/3514/showart_723250.html
Linux的各大发行版,都有些不必要的服务被默认开启了,针对ubuntu,我们可以采用选择性关闭的方法加速起动,提高系统性能。
在源里面搜索安装bum

然后这样起动:sudo bum

在这个软件里,可以用键盘的方向键移动,用空格选取,也可以直接用鼠标选取,最后用q保存退出,一下列出服务的名称和基本的解释。

代码:

acpi-support 这个是关于电源支持的默认是1,2,3,4,5下启动,我认为你可以把它调整到s级别。

acpid acpi的守护程序,默认是2-5开启,我认为可以不用管。

alsa alsa声音子系统,应该不用开启它。

alsa-utils 这个服务似乎取代了alsa,所以开启这个就可以了,我在S级别开启它。

anacron 这是一个用于执行到时间没有执行的程序的服务,我认为它无所谓,所以关了它,这个可以随便。

apmd 也是一种电源管理,我认为电脑如果不是很老,它就没有开启的必要了。

atd 和anacron类似,我把它关了。

bluez-utiles 传说中的蓝牙服务,然后遗憾我没有,所以关了。

bootlogd 似乎使用来写log的,安全期间开着他也许比较好。

cron 指定时间运行程序的服务,所以开着比较好的。

cupsys 打印机服务,所以如果你有,就开启吧。

dbus 消息总线系统,非常重要,一定要开。

dns-clean 拨号连接用的,如果不用,就关了它。

evms 企业卷管理系统,由于我并不明白什么叫做企业卷,所以我关了它。

fetchmail 用于邮件守护,我关了它。

gdm gnome桌面管理器,我关了它,然后用startx启动gnome。

halt 关机用的,不要更改

hdparm 这个我刚才有讲,如果没有ide硬盘也就不用开启它了。

hotkey-setup 这个是给某些品牌笔记本设计的热键映射,台式机用户请关了它

hotplug 这个是用于热插拔的,我已经测试过了,在某些电脑上关闭它会使声卡无效,请在S级别开启它。

hplip hp打印机专用的,应该可以关了它。

ifrename 网络接口重命名,好像没用,关了。

ifupdown 这个使用来打开网络的,开着它。

ifupdown-clean 同上。

klogd linux守护程序,接受来自内核和发送信息到syslogd的记录,并记录为一个文件,所以请开着它。

linux-restricted-modules-common 这个使用来使用受限制的模块的,你可以从/lib/linux-restricted-modules下查看,如果没有什么,你可以关掉它。

lvm 逻辑卷管理器,如果你没有请关了它。

makedev 用来创建设备到/dev/请不要动他。

mdamd 管理raid用,如果你没有请关闭它。

module-init-tools 从/etc/modules 加在扩展模块的,这个一般开着。

networking 增加网络接口和配置dns用,将它开启。

ntp-server 与ubuntu时间服务器进行同步的,关了。

pcmcia 激活pcmica设备,遗憾我有生以来都没有见过这样的设备,关了它。

powernowd 用于管理cpu的客户端程序,如果有变频功能,比如amd的quite'' cool 那么就开启它吧。

ppp 拨号用的,我关了它。

ppp-dns 一样,也关了。

readahead 预加载服务,让我想起了win的预读,当然他们不同,它会使启动变慢3-4妙,所以我关了它。

reboot 重启用的,不要动。

rmnologin 如果发现nologin,就去除它,在笔记本上不用开启。

rsync rsync协议守护,请视情况而定。

screen-cleanup 一个清除开机屏幕的脚本,随便。

sendsigs 重启和关机时向所有进程发送消息。所以不要管它。

single 激活但用户模式,不用管它。

stop-bootlogd 从2,3,4,5级别停止bootlogd,不用管它。

sudo 这个不用说吧,不用管它。

sysklogd 用于记录系统日志信息,不用管它。

udev 用户空间dev文件系统,不用管它。

udev-mab 同上。

umountfs 用来卸载文件卷的,不用管它。

urandom 生成随即数的,不知道怎么用,不用管它。

usplash 那个漂亮的启动画面,但是我关了它,它也存在,所以想关他需要把内核起动参数中的splash一句删掉。

vbesave 显卡bios配置工具,不用管它。

xorg-common 设置x服务ice socket。不用管它。


 原文地址:http://hi.baidu.com/zkheartboy/blog/item/3988c088995b4c97a5c27251.html

另外这个也值的一看http://forum.ubuntu.org.cn/viewtopic.php?t=115743
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ubuntu是一种流行的开源操作系统,有许多启动优化的方法可以提高其启动速度和性能。以下是一些常见的Ubuntu启动优化技巧: 1. 禁用不必要的服务和程序:Ubuntu默认启用了许多不常用的服务和程序,可以通过编辑/etc/rc.local或使用命令行工具如systemctl来禁用它们。 2. 清理自动启动项:Ubuntu通过~/.config/autostart目录中的应用程序来管理自动启动项。检查这个目录并删除不需要的应用程序的快捷方式。 3. 优化硬件驱动程序:更新和安装最新的硬件驱动程序可以提高系统的兼容性和性能。使用命令行工具如apt-get或通过Ubuntu软件中心来安装和更新驱动程序。 4. 禁用不必要的提示和动画效果:禁用一些视觉效果和提示可以节省系统资源,提高启动速度。在“外观”或“外观与行为”选项中,可以找到相关设置。 5. 清理无用文件和软件:通过删除不需要的文件和卸载不使用的软件,可以释放磁盘空间并提高启动速度。可以使用命令行工具如apt-get或通过Ubuntu软件中心来删除软件。 6. 安装SSD硬盘:如果你的计算机支持SSD硬盘,将系统安装在SSD上可以显著提高启动速度和响应能力。 7. 创建启动器预热缓存:使用预热缓存可以加快系统的启动速度。使用命令行工具如preload进行安装和配置。 8. 使用更轻量级的桌面环境:某些桌面环境比其他桌面环境更轻量级,启动速度更快。考虑使用像Xfce或LXDE这样的桌面环境。 通过上述启动优化技巧,可以显著提高Ubuntu系统的启动速度和性能,让用户获得更好的使用体验。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值