1 |
keytoaster 08/05/12 21:55:24 |
2 |
|
3 |
Added: gentoo-x86-quickinstall-system.xml |
4 |
Log: |
5 |
Initial. |
6 |
|
7 |
Revision Changes Path |
8 |
1.1 xml/htdocs/doc/de/gentoo-x86-quickinstall-system.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/de/gentoo-x86-quickinstall-system.xml?rev=1.1&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/de/gentoo-x86-quickinstall-system.xml?rev=1.1&content-type=text/plain |
12 |
|
13 |
Index: gentoo-x86-quickinstall-system.xml |
14 |
=================================================================== |
15 |
<?xml version='1.0' encoding="UTF-8"?> |
16 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/de/gentoo-x86-quickinstall-system.xml,v 1.1 2008/05/12 21:55:23 keytoaster Exp $ --> |
17 |
<!DOCTYPE included SYSTEM "/dtd/guide.dtd"> |
18 |
|
19 |
<included> |
20 |
|
21 |
<version>2</version> |
22 |
<date>2008-03-05</date> |
23 |
|
24 |
<section> |
25 |
<title>Konfiguration des Systems</title> |
26 |
|
27 |
<body test="func:keyval('raid+lvm')='no'"> |
28 |
|
29 |
<p> |
30 |
Editieren Sie Ihre Datei <path>/etc/fstab</path> und ersetzen Sie <c>BOOT</c>, |
31 |
<c>ROOT</c> und <c>SWAP</c> mit den tatsächlichen Partitionsnamen. Vergessen Sie |
32 |
nicht zu überprüfen, ob die angegebenen Dateisysteme mit Ihrer Installation |
33 |
übereinstimmen. |
34 |
</p> |
35 |
|
36 |
<pre caption="fstab-Beispiel"> |
37 |
livecd linux # <i>cd /etc</i> |
38 |
livecd etc # <i>nano -w fstab</i> |
39 |
/dev/<i>sda1</i> /boot ext2 noauto,noatime 1 2 |
40 |
/dev/<i>sda3</i> / ext3 noatime 0 1 |
41 |
/dev/<i>sda2</i> none swap sw 0 0 |
42 |
</pre> |
43 |
|
44 |
</body> |
45 |
<body test="func:keyval('raid+lvm')='yes'"> |
46 |
|
47 |
<p> |
48 |
Editieren Sie Ihre Datei <path>/etc/fstab</path> und ersetzen Sie <c>BOOT</c>, |
49 |
<c>ROOT</c> und <c>SWAP</c> mit den tatsächlichen Partitionsnamen und fügen Sie |
50 |
Ihre logischen Volumes hinzu. Vergessen Sie nicht zu überprüfen, ob die |
51 |
angegebenen Dateisysteme mit Ihrer Installation übereinstimmen. |
52 |
</p> |
53 |
|
54 |
<pre caption="fstab-Beispiel"> |
55 |
livecd linux # <i>cd /etc</i> |
56 |
livecd etc # <i>nano -w fstab</i> |
57 |
/dev/<i>md1</i> /boot ext2 noauto,noatime 1 2 |
58 |
/dev/<i>md3</i> / ext3 noatime 0 1 |
59 |
/dev/<i>sda2</i> none swap sw,pri=1 0 0 |
60 |
/dev/<i>sdb2</i> none swap sw,pri=1 0 0 |
61 |
/dev/vg/usr /usr ext3 noatime 1 2 |
62 |
/dev/vg/portage /usr/portage ext2 noatime 1 2 |
63 |
/dev/vg/distfiles /usr/portage/distfiles ext2 noatime 1 2 |
64 |
/dev/vg/home /home ext3 noatime 1 2 |
65 |
/dev/vg/opt /opt ext3 noatime 1 2 |
66 |
/dev/vg/tmp /tmp ext2 noatime 1 2 |
67 |
/dev/vg/var /var ext3 noatime 1 2 |
68 |
/dev/vg/vartmp /var/tmp ext2 noatime 1 2 |
69 |
</pre> |
70 |
|
71 |
</body> |
72 |
<body> |
73 |
|
74 |
<p> |
75 |
Konfigurieren Sie Ihr Netzwerk in <path>/etc/conf.d/net</path>. Fügen Sie das |
76 |
init-Script <c>net.eth0</c> in den Runlevel default ein. Falls Sie mehrere NICs |
77 |
haben, erstellen Sie Symlinks für diese und fügen Sie sie ebenfalls zum Runlevel |
78 |
default hinzu. Entweder editieren Sie <path>/etc/conf.d/net</path> mit |
79 |
<c>nano</c> oder Sie verwenden folgende Kommandos: |
80 |
</p> |
81 |
|
82 |
<pre caption="Netzwerk-Konfiguration"> |
83 |
livecd etc # <i>cd conf.d</i> |
84 |
livecd conf.d # <i>echo 'config_eth0=( "192.168.1.10/24" )' >> net</i> |
85 |
livecd conf.d # <i>echo 'routes_eth0=( "default via 192.168.1.1" )' >> net</i> |
86 |
livecd conf.d # <i>rc-update add net.eth0 default</i> |
87 |
<comment>(Wenn Sie den Netzwerkkartentreiber als Modul konfiguriert haben, fügen |
88 |
Sie ihn zu /etc/modules.autoload.d/kernel-2.6 hinzu.)</comment> |
89 |
livecd conf.d # <i>echo r8169 >> /etc/modules.autoload.d/kernel-2.6</i> |
90 |
<comment>(Wenn Sie nach dem Neustart wieder mittels ssh eine Verbindung zum |
91 |
neuen Rechner aufnehmen wollen)</comment> |
92 |
livecd conf.d # <i>rc-update add sshd default</i> |
93 |
</pre> |
94 |
|
95 |
<note> |
96 |
Falls Sie Unterstützung für PCMCIA-Karten benötigen, emergen Sie |
97 |
<c>pcmciautils</c>. |
98 |
</note> |
99 |
|
100 |
<p> |
101 |
Setzen Sie das root-Passwort mit <c>passwd</c>. |
102 |
</p> |
103 |
|
104 |
<pre caption="Setzen des root-Passworts"> |
105 |
livecd conf.d # <i>passwd</i> |
106 |
New UNIX password: <comment>hier_ihr_passwort_eingeben</comment> |
107 |
Retype new UNIX password: <comment>hier_ihr_passwort_erneut_eingeben</comment> |
108 |
passwd: password updated successfully |
109 |
</pre> |
110 |
|
111 |
<p> |
112 |
Editieren Sie <path>/etc/conf.d/clock</path>, um die Zeitzone zu bestimmen, die |
113 |
Sie zuvor verwendet haben. |
114 |
</p> |
115 |
|
116 |
<pre caption="/etc/conf.d/clock editieren"> |
117 |
livecd conf.d # <i>nano -w /etc/conf.d/clock</i> |
118 |
TIMEZONE="Europe/Berlin" |
119 |
</pre> |
120 |
|
121 |
<p> |
122 |
Überprüfen Sie die Systemkonfiguration in <path>/etc/rc.conf</path>, |
123 |
<path>/etc/conf.d/rc</path> und <path>/etc/conf.d/keymaps</path> und passen Sie |
124 |
sie bei Bedarf an. |
125 |
</p> |
126 |
|
127 |
<pre caption="Optional: Einige Konfigurationsdateien anpassen"> |
128 |
livecd conf.d # <i>nano -w /etc/rc.conf</i> |
129 |
livecd conf.d # <i>nano -w /etc/conf.d/rc</i> |
130 |
livecd conf.d # <i>nano -w /etc/conf.d/keymaps</i> |
131 |
</pre> |
132 |
|
133 |
</body> |
134 |
</section> |
135 |
<section> |
136 |
<title>Installieren von Systemwerkzeugen</title> |
137 |
|
138 |
<body test="func:keyval('raid+lvm')='yes'"> |
139 |
|
140 |
<p> |
141 |
Installieren der RAID- und LVM2-Werkzeuge. |
142 |
</p> |
143 |
|
144 |
<pre caption="Installieren der RAID- & LVM2-Werkzeuge"> |
145 |
livecd conf.d # <i>emerge mdadm lvm2</i> |
146 |
</pre> |
147 |
|
148 |
</body> |
149 |
<body> |
150 |
|
151 |
<p> |
152 |
Installieren Sie einen Systemlogger wie <c>syslog-ng</c> und einen cron-Daemon |
153 |
wie <c>vixie-cron</c>, und fügen Sie sie zum Runlevel default hinzu. |
154 |
</p> |
155 |
|
156 |
<note> |
157 |
Cron-Daemons benötigen einen MTA. <c>mail-mta/ssmtp</c> wird als eine |
158 |
Abhängigkeit angezogen. Wenn Sie einen fortschrittlicheren MTA wünschen, können |
159 |
Sie ihn jetzt installieren. Wenn Sie es eilig haben, lassen Sie ssmtp |
160 |
installieren und entfernen Sie ihn später, wenn Sie den MTA Ihrer Wahl |
161 |
installieren. |
162 |
</note> |
163 |
|
164 |
<pre caption="Einen Syslogger und einen Cron-Daemon installieren"> |
165 |
livecd conf.d # <i>time emerge syslog-ng vixie-cron</i> |
166 |
|
167 |
real 1m54.099s |
168 |
user 1m2.630s |
169 |
sys 0m34.620s |
170 |
livecd conf.d # <i>rc-update add syslog-ng default</i> |
171 |
livecd conf.d # <i>rc-update add vixie-cron default</i> |
172 |
</pre> |
173 |
|
174 |
<p> |
175 |
Installieren Sie die notwendigen Systemwerkzeuge (<c>xfsprogs</c>, |
176 |
<c>reiserfsprogs</c> oder <c>jfsutils</c>) und Netzwerk-Werkzeuge (<c>dhcpcd</c> |
177 |
oder <c>ppp</c>), falls Sie sie benötigen. |
178 |
</p> |
179 |
|
180 |
<pre caption="Zusätzliche Werkzeuge nach Bedarf installieren"> |
181 |
livecd conf.d # <i>emerge xfsprogs</i> <comment>(Wenn Sie das Dateisystem |
182 |
XFS nutzen)</comment> |
183 |
livecd conf.d # <i>emerge jfsutils</i> <comment>(Wenn Sie das Dateisystem |
184 |
JFS nutzen)</comment> |
185 |
livecd conf.d # <i>emerge reiserfsprogs</i> <comment>(Wenn Sie das Dateisystem |
186 |
Reiser nutzen)</comment> |
187 |
livecd conf.d # <i>emerge dhcpcd</i> <comment>(Wenn Sie einen DHCP |
188 |
client nutzen)</comment> |
189 |
livecd conf.d # <i>emerge ppp</i> <comment>(Wenn Sie eine Verbindung |
190 |
über PPPoE ADSL benötigen)</comment> |
191 |
</pre> |
192 |
|
193 |
</body> |
194 |
</section> |
195 |
<section> |
196 |
<title>Konfiguration des Bootloaders</title> |
197 |
<body> |
198 |
|
199 |
<p> |
200 |
Emergen Sie <c>grub</c> und konfigurieren Sie es. |
201 |
</p> |
202 |
|
203 |
<pre caption="Grub emergen und seine Konfigurationsdatei editieren"> |
204 |
livecd conf.d # <i>time emerge grub</i> |
205 |
|
206 |
real 1m4.634s |
207 |
user 0m39.460s |
208 |
sys 0m15.280s |
209 |
livecd conf.d # <i>nano -w /boot/grub/grub.conf</i> |
210 |
</pre> |
211 |
|
212 |
<pre caption="grub.conf-Beispiel"> |
213 |
default 0 |
214 |
timeout 10 |
215 |
|
216 |
title Gentoo |
217 |
root (hd0,0) |
218 |
kernel /boot/kernel root=/dev/md3 |
219 |
</pre> |
220 |
|
221 |
<pre caption="Installation von grub" test="contains(func:keyval('root'),'md')"> |
222 |
livecd conf.d # <i>grub</i> |
223 |
Probing devices to guess BIOS drives. This may take a long time. |
224 |
|
225 |
grub> <i>root (hd0,0)</i> |
226 |
Filesystem type is ext2fs, partition type 0xfd |
227 |
|
228 |
grub> <i>setup (hd0)</i> |
229 |
Checking if "/boot/grub/stage1" exists... yes |
230 |
Checking if "/boot/grub/stage2" exists... yes |
231 |
Checking if "/boot/grub/e2fs_stage1_5" exists... yes |
232 |
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. |
233 |
succeeded |
234 |
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ |
235 |
grub/menu.lst"... succeeded |
236 |
Done. |
237 |
|
238 |
grub> <i>quit</i> |
239 |
</pre> |
240 |
|
241 |
<pre caption="Installation von grub auf beiden Festplatten" test="not(contains(func:keyval('root'),'md'))"> |
242 |
livecd conf.d # <i>grub</i> |
243 |
Probing devices to guess BIOS drives. This may take a long time. |
244 |
|
245 |
grub> <i>root (hd0,0)</i> |
246 |
Filesystem type is ext2fs, partition type 0xfd |
247 |
|
248 |
grub> <i>setup (hd0)</i> |
249 |
Checking if "/boot/grub/stage1" exists... yes |
250 |
Checking if "/boot/grub/stage2" exists... yes |
251 |
Checking if "/boot/grub/e2fs_stage1_5" exists... yes |
252 |
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. |
253 |
succeeded |
254 |
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ |
255 |
grub/menu.lst"... succeeded |
256 |
Done. |
257 |
|
258 |
grub> <i>root (hd1,0)</i> |
259 |
Filesystem type is ext2fs, partition type 0x83 |
260 |
|
261 |
grub> <i>setup (hd1)</i> |
262 |
|
263 |
grub> <i>quit</i> |
264 |
</pre> |
265 |
|
266 |
</body> |
267 |
</section> |
268 |
</included> |
269 |
|
270 |
|
271 |
-- |
272 |
gentoo-commits@l.g.o mailing list |