/[gentoo]/xml/htdocs/doc/en/gentoo-x86-quickinstall-system.xml
Gentoo

Contents of /xml/htdocs/doc/en/gentoo-x86-quickinstall-system.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Thu Mar 6 05:59:25 2008 UTC (6 years, 4 months ago) by nightmorph
Branch: MAIN
Changes since 1.1: +4 -4 lines
File MIME type: application/xml
fixed grub codelistings for KDM's broken stupidity. note that the handbook files were fixed in draft, since release is just around the corner. bug 211634.

1 neysx 1.1 <?xml version='1.0' encoding="UTF-8"?>
2 nightmorph 1.2 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-system.xml,v 1.1 2008/01/01 21:32:30 neysx Exp $ -->
3 neysx 1.1 <!DOCTYPE included SYSTEM "/dtd/guide.dtd">
4    
5     <included>
6    
7 nightmorph 1.2 <version>2</version>
8     <date>2008-03-05</date>
9 neysx 1.1
10     <section>
11     <title>Configure the system</title>
12    
13     <body test="func:keyval('raid+lvm')='no'">
14    
15     <p>
16     Edit your <path>/etc/fstab</path> and replace <c>BOOT</c>, <c>ROOT</c> and
17     <c>SWAP</c> with the actual partition names. Don't forget to check that the
18     file systems match your installation.
19     </p>
20    
21     <pre caption="Example fstab">
22     livecd linux # <i>cd /etc</i>
23     livecd etc # <i>nano -w fstab</i>
24     /dev/<i>sda1</i> /boot ext2 noauto,noatime 1 2
25     /dev/<i>sda3</i> / ext3 noatime 0 1
26     /dev/<i>sda2</i> none swap sw 0 0
27     </pre>
28    
29     </body>
30     <body test="func:keyval('raid+lvm')='yes'">
31    
32     <p>
33     Edit your <path>/etc/fstab</path> and replace <c>BOOT</c>, <c>ROOT</c> and
34     <c>SWAP</c> with the actual partition names and add your logical volumes. Don't
35     forget to check that the file systems match your installation.
36     </p>
37    
38     <pre caption="Example fstab">
39     livecd linux # <i>cd /etc</i>
40     livecd etc # <i>nano -w fstab</i>
41     /dev/<i>md1</i> /boot ext2 noauto,noatime 1 2
42     /dev/<i>md3</i> / ext3 noatime 0 1
43     /dev/<i>sda2</i> none swap sw,pri=1 0 0
44     /dev/<i>sdb2</i> none swap sw,pri=1 0 0
45     /dev/vg/usr /usr ext3 noatime 1 2
46     /dev/vg/portage /usr/portage ext2 noatime 1 2
47     /dev/vg/distfiles /usr/portage/distfiles ext2 noatime 1 2
48     /dev/vg/home /home ext3 noatime 1 2
49     /dev/vg/opt /opt ext3 noatime 1 2
50     /dev/vg/tmp /tmp ext2 noatime 1 2
51     /dev/vg/var /var ext3 noatime 1 2
52     /dev/vg/vartmp /var/tmp ext2 noatime 1 2
53     </pre>
54    
55     </body>
56     <body>
57    
58     <p>
59     Configure your network in <path>/etc/conf.d/net</path>. Add the <c>net.eth0</c>
60     init script to the default run level. If you have multiple NICs, symlink them
61     to the <c>net.eth0</c> init script and add them to the default run level as
62     well. Either edit <path>/etc/conf.d/net</path> with <c>nano</c> or use the
63     following commands:
64     </p>
65    
66     <pre caption="Configure networking">
67     livecd etc # <i>cd conf.d</i>
68     livecd conf.d # <i>echo 'config_eth0=( "192.168.1.10/24" )' >> net</i>
69     livecd conf.d # <i>echo 'routes_eth0=( "default via 192.168.1.1" )' >> net</i>
70     livecd conf.d # <i>rc-update add net.eth0 default</i>
71     <comment>(If you compiled your network card driver as a module,
72     add it to /etc/modules.autoload.d/kernel-2.6)</comment>
73     livecd conf.d # <i>echo r8169 >> /etc/modules.autoload.d/kernel-2.6</i>
74     <comment>(If you want to reconnect via ssh after you have rebooted your new box)</comment>
75     livecd conf.d # <i>rc-update add sshd default</i>
76     </pre>
77    
78     <note>
79     Emerge <c>pcmciautils</c> if you need support for PCMCIA cards.
80     </note>
81    
82     <p>
83     Set the root password using <c>passwd</c>.
84     </p>
85    
86     <pre caption="Set the root password">
87     livecd conf.d # <i>passwd</i>
88     New UNIX password: <comment>type_the_password</comment>
89     Retype new UNIX password: <comment>type_the_password_again</comment>
90     passwd: password updated successfully
91     </pre>
92    
93     <p>
94     Edit <path>/etc/conf.d/clock</path> to define the time zone you used
95     previously.
96     </p>
97    
98     <pre caption="Edit /etc/conf.d/clock">
99     livecd conf.d # <i>nano -w /etc/conf.d/clock</i>
100     TIMEZONE="Europe/Brussels"
101     </pre>
102    
103     <p>
104     Check the system configuration in <path>/etc/rc.conf</path>,
105     <path>/etc/conf.d/rc</path>, <path>/etc/conf.d/keymaps</path> and edit any of
106     those files if required.
107     </p>
108    
109     <pre caption="Optional: edit some config files">
110     livecd conf.d # <i>nano -w /etc/rc.conf</i>
111     livecd conf.d # <i>nano -w /etc/conf.d/rc</i>
112     livecd conf.d # <i>nano -w /etc/conf.d/keymaps</i>
113     </pre>
114    
115     </body>
116     </section>
117     <section>
118     <title>Installing System Tools</title>
119    
120     <body test="func:keyval('raid+lvm')='yes'">
121    
122     <p>
123     Install RAID and LVM2 utilities.
124     </p>
125    
126     <pre caption="Install RAID &amp; LVM2 tools">
127     livecd conf.d # <i>emerge mdadm lvm2</i>
128     </pre>
129    
130     </body>
131     <body>
132    
133     <p>
134     Install a system logger like <c>syslog-ng</c> and a cron daemon like
135     <c>vixie-cron</c>, and add them to the default run level.
136     </p>
137    
138     <note>
139     Cron daemons depend on an MTA. <c>mail-mta/ssmtp</c> will be pulled in as a
140     dependency. If you want to use a more advanced MTA, you might want to install
141     it now. If you are in a hurry, let ssmtp be installed and remove it later when
142     you install the MTA of your choice.
143     </note>
144    
145     <pre caption="Install a syslogger and a cron daemon">
146     livecd conf.d # <i>time emerge syslog-ng vixie-cron</i>
147    
148     real 1m54.099s
149     user 1m2.630s
150     sys 0m34.620s
151     livecd conf.d # <i>rc-update add syslog-ng default</i>
152     livecd conf.d # <i>rc-update add vixie-cron default</i>
153     </pre>
154    
155     <p>
156     Install the necessary file system tools (<c>xfsprogs</c>, <c>reiserfsprogs</c>
157     or <c>jfsutils</c>) and networking tools (<c>dhcpcd</c> or <c>ppp</c>) if you
158     need any.
159     </p>
160    
161     <pre caption="Install extra tools if required">
162     livecd conf.d # <i>emerge xfsprogs</i> <comment>(If you use the XFS file system)</comment>
163     livecd conf.d # <i>emerge jfsutils</i> <comment>(If you use the JFS file system)</comment>
164     livecd conf.d # <i>emerge reiserfsprogs</i> <comment>(If you use the Reiser file system)</comment>
165     livecd conf.d # <i>emerge dhcpcd</i> <comment>(If you need a DHCP client)</comment>
166     livecd conf.d # <i>emerge ppp</i> <comment>(If you need PPPoE ADSL connectivity)</comment>
167     </pre>
168    
169     </body>
170     </section>
171    
172     <section id="grub">
173     <title>Configuring the Bootloader</title>
174    
175     <body>
176     <p>
177     Emerge <c>grub</c> and configure it.
178     </p>
179    
180     <pre caption="Emerge grub and edit its configuration file">
181     livecd conf.d # <i>time emerge grub</i>
182    
183     real 1m4.634s
184     user 0m39.460s
185     sys 0m15.280s
186     livecd conf.d # <i>nano -w /boot/grub/grub.conf</i>
187     </pre>
188    
189     <pre caption="Example grub.conf">
190     default 0
191     timeout 10
192    
193 nightmorph 1.2 title Gentoo
194 neysx 1.1 root (hd0,0)
195     kernel /boot/kernel root=<keyval id="root"/>
196     </pre>
197    
198     <pre caption="Install grub" test="not(contains(func:keyval('root'),'md'))">
199     livecd conf.d # <i>grub</i>
200     Probing devices to guess BIOS drives. This may take a long time.
201    
202     grub> <i>root (hd0,0)</i>
203     Filesystem type is ext2fs, partition type 0xfd
204    
205     grub> <i>setup (hd0)</i>
206     Checking if "/boot/grub/stage1" exists... yes
207     Checking if "/boot/grub/stage2" exists... yes
208     Checking if "/boot/grub/e2fs_stage1_5" exists... yes
209     Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
210     succeeded
211     Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/
212     grub/menu.lst"... succeeded
213     Done.
214    
215     grub> <i>quit</i>
216     </pre>
217    
218     <pre caption="Install grub on both disks" test="contains(func:keyval('root'),'md')">
219     livecd conf.d # <i>grub</i>
220     Probing devices to guess BIOS drives. This may take a long time.
221    
222     grub> <i>root (hd0,0)</i>
223     Filesystem type is ext2fs, partition type 0xfd
224    
225     grub> <i>setup (hd0)</i>
226     Checking if "/boot/grub/stage1" exists... yes
227     Checking if "/boot/grub/stage2" exists... yes
228     Checking if "/boot/grub/e2fs_stage1_5" exists... yes
229     Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
230     succeeded
231     Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/
232     grub/menu.lst"... succeeded
233     Done.
234    
235     grub> <i>root (hd1,0)</i>
236     Filesystem type is ext2fs, partition type 0xfd
237    
238     grub> <i>setup (hd1)</i>
239    
240     grub> <i>quit</i>
241     </pre>
242    
243     </body>
244     </section>
245     </included>

  ViewVC Help
Powered by ViewVC 1.1.20