Gentoo Archives: gentoo-commits

From: "Le Zhang (r0bertz)" <r0bertz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in xml/htdocs/doc/zh_cn/handbook: hb-install-bootconfig.xml
Date: Sat, 03 May 2008 06:36:57
Message-Id: E1JsBMc-0003Hs-41@stork.gentoo.org
1 r0bertz 08/05/03 06:36:54
2
3 Added: hb-install-bootconfig.xml
4 Log:
5 [zh_cn] added hb-install-bootconfig.xml
6
7 Revision Changes Path
8 1.1 xml/htdocs/doc/zh_cn/handbook/hb-install-bootconfig.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-bootconfig.xml?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-bootconfig.xml?rev=1.1&content-type=text/plain
12
13 Index: hb-install-bootconfig.xml
14 ===================================================================
15 <?xml version='1.0' encoding="UTF-8"?>
16 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-bootconfig.xml,v 1.1 2008/05/03 06:36:53 r0bertz Exp $ -->
17 <!-- English CVS version: 1.1 -->
18 <!DOCTYPE included SYSTEM "/dtd/guide.dtd">
19
20 <included>
21
22 <version>1</version>
23 <date>2008-05-02</date>
24
25 <section id="hardware">
26 <title>额外硬件配置</title>
27 <body>
28
29 <p>
30 当安装光盘启动时,它会尝试检测所有的硬件设备和加载准确的内核模块来支持这些硬件。绝大多数情况下,它会做的很好。但是,有些情况下,它可能没有自动加载你需要的内核模块。如果PCI自动检测错过了你系统里的一些硬件,你需要手动为它们加载相应的内核模块。
31 </p>
32
33 <p>
34 在下一个例子中,我们尝试加载<c>8139too</c>模块(支持某种网卡):
35 </p>
36
37 <pre caption="加载内核模块">
38 # <i>modprobe 8139too</i>
39 </pre>
40
41 </body>
42 </section>
43 <section>
44 <title>可选:调整硬盘性能</title>
45 <body>
46
47 <p>
48 如果你是高级用户,你可能想使用hdparm调整IDE硬盘的性能。你可以使用<c>-tT</c>选项来测试你的硬盘的性能(多执行几次以得到更精确的结果):
49 </p>
50
51 <pre caption="测试硬盘性能">
52 # <i>hdparm -tT /dev/hda</i>
53 </pre>
54
55 <p>
56 为了调整性能,你可以使用下面任何一个范例(或者自己试验),它们都是以<c>/dev/hda</c>作为例子(替换成你使用的硬盘):
57 </p>
58
59 <pre caption="调整硬盘性能">
60 <comment>(激活DMA:)</comment>
61 # <i>hdparm -d 1 /dev/hda</i>
62
63 <comment>(激活DMA,并附加安全选项:)</comment>
64 # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
65 </pre>
66
67 </body>
68 </section>
69 <section id="useraccounts">
70 <title>可选:用户帐号</title>
71 <body>
72
73 <p>
74 如果你打算为其他人提供你安装环境的访问权限,或者你不想以root帐号的身份(因为安全原因)使用<c>irssi</c>聊天的话,你需要创建必要的用户帐号,并改变root用户的密码。
75 </p>
76
77 <p>
78 使用<c>passwd</c>命令来修改root用户密码:
79 </p>
80
81 <pre caption="修改root用户密码">
82 # <i>passwd</i>
83 New password: <comment>(输入新密码)</comment>
84 Re-enter password: <comment>(再次输入密码)</comment>
85 </pre>
86
87 <p>
88 要创建用户帐号,首先输入他们的信息,再输入他的密码。我们可以使用<c>useradd</c>和<c>passwd</c>来完成。在下个的例子中,我们创建一个名为“john”的用户。
89 </p>
90
91 <pre caption="创建一个新用户">
92 # <i>useradd -m -G users john</i>
93 # <i>passwd john</i>
94 New password: <comment>(输入john的密码)</comment>
95 Re-enter password: <comment>(再次输入john的密码)</comment>
96 </pre>
97
98 <p>
99 你可以使用su从root用户切换到新建的用户:
100 </p>
101
102 <pre caption="切换用户">
103 # <i>su - john</i>
104 </pre>
105
106 </body>
107 </section>
108 <section>
109 <title>可选:在安装时查看文档</title>
110 <body>
111
112 <p>
113 如果你想在安装的时候查看Gentoo手册(不管是光盘中的还是在线的),请确认你已经创建好了一个用户帐号(请查看<uri link="#useraccounts">可选:用户帐号</uri>)。然后按<c>Alt-F2</c>打开一个新的终端并登录进入。
114 </p>
115
116 <p>
117 如果你想查看光盘里的文档,你可以立即运行<c>links</c>来阅读:
118 </p>
119
120 <pre caption="查看光盘里的文档">
121 # <i>links /mnt/cdrom/docs/html/index.html</i>
122 </pre>
123
124 <p>
125 不过,首选的还是在线查看Gentoo手册,因为它比光盘里提供的要新。你也可以使用<c>links</c>阅读它,但是必须在完成<e>配置网络</e>这一章后才行(否则你不能到因特网上查看文档):
126 </p>
127
128 <pre caption="查看在线文档">
129 # <i>links http://www.gentoo.org/doc/zh_cn/handbook/<keyval id="online-book"/></i>
130 </pre>
131
132 <p>
133 你可以按<c>Alt-F1</c>来回到原来的终端。
134 </p>
135
136 </body>
137 </section>
138 <section>
139 <title>可选:启动SSH服务</title>
140 <body>
141
142 <p>
143 如果你想在安装Gentoo的过程中允许别的用户登录你的电脑(可能是因为别的用户愿意帮助你安装Gentoo,甚至是代你安装),你需要为他们创建用户帐号,甚至提供root用户密码(<e>只有</e>在你<b>完全信任</b>这位用户的情况下才行)。
144 </p>
145
146 <p>
147 执行下面的命令来启动SSH服务:
148 </p>
149
150 <pre caption="启动SSH服务">
151 # <i>/etc/init.d/sshd start</i>
152 </pre>
153
154 <p>
155 在使用sshd之前,你必须设置好你的网络。请从<uri link="?part=1&amp;chap=3">配置网络</uri>一章继续。
156 </p>
157
158 </body>
159 </section>
160 </included>
161
162
163
164 --
165 gentoo-commits@l.g.o mailing list