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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.39 - (hide annotations) (download) (as text)
Sun Jul 10 20:27:33 2005 UTC (9 years ago) by swift
Branch: MAIN
Changes since 1.38: +4 -4 lines
File MIME type: application/xml
Add in reference to resolv.conf

1 swift 1.1 <?xml version='1.0' encoding="UTF-8"?>
2 swift 1.39 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v 1.38 2005/07/05 15:32:12 swift Exp $ -->
3 swift 1.8
4     <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5    
6 neysx 1.16 <guide link="/doc/en/gentoo-x86-quickinstall.xml">
7 neysx 1.31 <title>Gentoo Linux x86 Quick Install Guide</title>
8 swift 1.38
9     <author title="Author">
10 swift 1.1 <mail link="swift@gentoo.org">Sven Vermeulen</mail>
11     </author>
12 swift 1.38 <author title="Author">Steven Wagner</author>
13 swift 1.1
14     <abstract>
15 swift 1.38 The Quick install guide covers the Gentoo install process in a
16 swift 1.1 non-verbose manner. Users should already have prior experience with
17 aaby 1.7 installing Gentoo Linux if they want to follow this guide.
18 swift 1.2 </abstract>
19    
20 swift 1.1 <license/>
21 swift 1.2
22 swift 1.39 <version>2.1</version>
23     <date>2005-07-10</date>
24 swift 1.1
25     <chapter>
26 neysx 1.31 <title>Quick Install Guide</title>
27 aaby 1.7 <section>
28 swift 1.38 <title>Installation Media</title>
29     <body>
30    
31     <p>
32     Download a CD from one of our <uri link="/main/en/mirrors.xml">mirrors</uri>.
33     You can find the ISOs in
34     <path>releases/&lt;architecture&gt;/&lt;release&gt;/installcd</path>. The
35     <e>minimal</e> installation cd is only useful for internet-based installations;
36     with the <e>universal</e> installation cd you can perform a networkless
37     installation as well.
38     </p>
39    
40     <p>
41     <uri link="/doc/en/faq.xml#isoburning">Burn</uri> the CD and boot it. Press
42     <c>F2</c> at the boot screen to find out what boot options exist. Once booted,
43     you need to start the <c>pcmcia</c> init script if you need PCMCIA support.
44     </p>
45    
46     <p>
47     The installation cds allow you to start an <c>sshd</c> server, add additional
48     users, run <c>irssi</c> (a command-line chat client) and surf the web using
49     <c>lynx</c> or <c>links2</c>.
50     </p>
51    
52     </body>
53     </section>
54     <section>
55     <title>Network Configuration</title>
56 swift 1.1 <body>
57    
58     <p>
59 swift 1.38 If your network does not work already, you can use <c>net-setup</c> to configure
60     your network. You might need to load support for your network card using
61     <c>modprobe</c> prior to the configuration. If you have ADSL, use
62     <c>adsl-setup</c> and <c>adsl-start</c>. For PPTP support, first edit
63     <path>/etc/ppp/chap-secrets</path> and <path>/etc/ppp/options.pptp</path> and
64     then use <c>pptp &lt;server&nbsp;ip&gt;</c>.
65     </p>
66    
67     <p>
68     For wireless access, use <c>iwconfig</c> to set the wireless parameters and then
69     use eiter <c>net-setup</c> again or run <c>ifconfig</c>, <c>dhcpcd</c> and/or
70     <c>route</c> manually.
71 swift 1.1 </p>
72    
73     <p>
74 swift 1.38 If you are behind a proxy, do not forget to initialise your system using
75     <c>export http_proxy</c>, <c>ftp_proxy</c> and <c>RSYNC_PROXY</c>.
76     </p>
77    
78     </body>
79     </section>
80     <section>
81     <title>Preparing the Disks</title>
82     <body>
83    
84     <p>
85     Use <c>fdisk</c> or <c>cfdisk</c> to create your partition layout. You need at
86     least a swap partition (type 82) and one Linux partition (type 83).
87     </p>
88    
89     <p>
90     Use <c>mke2fs</c>, <c>mke2fs -j</c>, <c>mkreiserfs</c>, <c>mkfs.xfs</c> and
91     <c>mkfs.jfs</c> to create file systems on your Linux partitions. Initialise your
92     swap partition using <c>mkswap</c> and <c>swapon</c>.
93     </p>
94    
95     <p>
96     Mount the freshly created file systems on <path>/mnt/gentoo</path>. Create
97     directories for the other mount points (like <path>/mnt/gentoo/boot</path>) if
98     you need them.
99     </p>
100    
101     </body>
102     </section>
103     <section>
104     <title>Setting Up The Stage</title>
105     <body>
106    
107     <p>
108     First make sure your date is set correctly using <c>date MMDDhhmmYYYY</c>. Next,
109     download a stage from one of our <uri link="/main/en/mirrors.xml">mirrors</uri>
110     or use the one available on the installation CD
111     (<path>/mnt/cdrom/stages</path>). Go to <path>/mnt/gentoo</path> and unpack the
112     stage using <c>tar&nbsp;-xvjpf&nbsp;&lt;stage&nbsp;tarball&gt;</c>.
113     </p>
114    
115     <p>
116     Install a Portage snapshot if you are performing a networkless installation: go
117     to <path>/mnt/gentoo/usr</path> and run
118     <c>tar&nbsp;-xvjf&nbsp;/mnt/cdrom/snapshots/&lt;snapshot&gt;</c>. Other users
119     can download a portage snapshot and install it likewise.
120     </p>
121    
122     <p>
123     Edit <path>/mnt/gentoo/etc/make.conf</path> to suit your needs (USE flag, CFLAGS
124     and CXXFLAGS). You can use the <c>nano</c> editor for this.
125     </p>
126    
127     </body>
128     </section>
129     <section>
130     <title>Installing the Gentoo Base System</title>
131     <body>
132    
133     <p>
134     Mount the <path>/proc</path> file system first and then chroot into your Gentoo
135     environment.
136     </p>
137    
138     <pre caption="Preparing and chrooting">
139     # <i>mount -t proc none /mnt/gentoo/proc</i>
140     # <i>chroot /mnt/gentoo /bin/bash</i>
141     # <i>env-update</i> &amp;&amp; <i>source /etc/profile</i>
142 swift 1.1 </pre>
143    
144     <p>
145 swift 1.38 If you are not running a networkless installation, issue <c>emerge --sync</c> to
146     update your Portage tree.
147 swift 1.1 </p>
148    
149     <p>
150 swift 1.38 Next, make sure <path>/etc/make.profile</path> points to the right profile. The
151     default one should suffice for most users; subprofiles are available for
152     different kernels (like <path>2.4/</path> for 2.4-kernel based profiles). Change
153     the profile using <c>ln -sf</c>.
154 swift 1.1 </p>
155    
156 swift 1.38 <ul>
157     <li>
158     Bootstrapping (not available for networkless installations) happens using
159     <c>scripts/bootstrap.sh</c> in the <path>/usr/portage</path> directory.
160     </li>
161     <li>
162     System installation (not available for networkless installations) happens
163     using <c>emerge&nbsp;-e&nbsp;system</c> (or <c>-N</c> if you haven't
164     altered the default CFLAGS/CXXFLAGS).
165     </li>
166     </ul>
167    
168 swift 1.1 <p>
169 swift 1.38 Stage3 users (except those performing a networkless installation) need to
170     upgrade the baselayout package:
171     </p>
172    
173     <pre caption="Upgrading baselayout">
174     # <i>CONFIG_PROTECT="-*" emerge baselayout</i>
175 swift 1.1 </pre>
176    
177 swift 1.38 </body>
178     </section>
179     <section>
180     <title>Kernel Configuration</title>
181     <body>
182    
183 swift 1.1 <p>
184 swift 1.38 Set your time zone information by changing the <path>/etc/localtime</path>
185     symbolic link to the correct location in <path>/usr/share/zoneinfo</path> using
186     <c>ln -sf</c>.
187     </p>
188    
189     <p>
190     Install a kernel source (<c>gentoo-sources</c> and <c>vanilla-sources</c> are
191     available for networkless installations) and configure it using <c>make
192     menuconfig</c> followed by <c>make&nbsp;&amp;&amp;make&nbsp;modules_install</c>
193     inside <path>/usr/src/linux</path>. Copy the <path>arch/i386/bzImage</path> file
194     over to <path>/boot</path>. You can also <c>emerge&nbsp;genkernel</c>
195     and use <c>genkernel&nbsp;--udev&nbsp;all</c>.
196     </p>
197 swift 1.1
198     <p>
199 swift 1.38 Genkernel users will need to <c>emerge&nbsp;coldplug</c> and
200     <c>rc-update&nbsp;add&nbsp;coldplug&nbsp;default</c>.
201 swift 1.1 </p>
202    
203 swift 1.38 </body>
204     </section>
205     <section>
206     <title>Configuring the System</title>
207     <body>
208 swift 1.1
209     <p>
210 swift 1.38 Edit your <path>/etc/fstab</path>; an example follows:
211 swift 1.1 </p>
212    
213 swift 1.38 <pre caption="Example fstab">
214     /dev/hda1 /boot ext2 defaults,noatime 1 2
215     /dev/hda2 none swap sw 0 0
216     /dev/hda3 / ext3 noatime 0 1
217     none /proc proc defaults 0 0
218     none /dev/shm tmpfs nodev,nosuid,noexec 0 0
219     /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
220 swift 1.1 </pre>
221    
222     <p>
223 swift 1.38 Edit <path>/etc/conf.d/hostname</path> and <path>/etc/conf.d/domainname</path>,
224     run <c>rc-update&nbsp;add&nbsp;domainname&nbsp;default</c> and edit
225 swift 1.39 <path>/etc/conf.d/net</path> and <path>/etc/resolv.conf</path> to configure your network. Add the <c>net.eth0</c>
226 swift 1.38 initscript to the default runlevel. If you have multiple NICs, symlink them
227     to the <c>net.eth0</c> init script and add them to the default runlevel as well.
228     </p>
229    
230     <p>
231     Edit <path>/etc/hosts</path>; examples are given below:
232 swift 1.1 </p>
233    
234 swift 1.38 <pre caption="Example /etc/hosts">
235     <comment>(For static IPs)</comment>
236     127.0.0.1 localhost
237     192.168.0.5 jenny.homenetwork jenny
238     192.168.0.6 benny.homenetwork benny
239     192.168.0.7 tux.homenetwork tux
240    
241     <comment>(For a dynamic IP)</comment>
242     127.0.0.1 localhost.homenetwork tux localhost
243 swift 1.1 </pre>
244    
245     <p>
246 swift 1.38 Emerge <c>pcmcia-cs</c> and add it to the default runlevel if you need it.
247 swift 1.1 </p>
248    
249 swift 1.38 <p>
250     Set the root password using <c>passwd</c>.
251     </p>
252 swift 1.1
253     <p>
254 swift 1.38 Set the necessary system configuration in <path>/etc/rc.conf</path>,
255     <path>/etc/conf.d/rc</path>, <path>/etc/conf.d/keymaps</path>,
256     <path>/etc/conf.d/clock</path>.
257 swift 1.1 </p>
258    
259 swift 1.38 </body>
260     </section>
261     <section>
262     <title>Installing System Tools</title>
263     <body>
264    
265     <p>
266     2.4 kernel users need to <c>emerge&nbsp;--unmerge&nbsp;udev</c> and
267     <c>emerge&nbsp;devfsd</c>.
268     </p>
269 swift 1.1
270     <p>
271 swift 1.38 Install a system logger like <c>syslog-ng</c> and add it to the default
272     run level. Do the same for a cron daemon like <c>vixie-cron</c> (optional).
273 swift 1.1 </p>
274    
275 swift 1.38 <p>
276     Install the necessary file system tools (<c>xfsprogs</c>, <c>reiserfsprogs</c>
277     or <c>jfsutils</c>) and networking tools (<c>dhcpcd</c> or <c>rp-pppoe</c>).
278     </p>
279 swift 1.1
280 swift 1.38 </body>
281     </section>
282     <section>
283     <title>Configuring the Bootloader</title>
284     <body>
285 swift 1.1
286     <p>
287 swift 1.38 Emerge <c>grub</c> or <c>lilo</c>. Edit <path>/boot/grub/grub.conf</path> or
288     <path>/etc/lilo.conf</path> to your likings. Below you will find an example for
289     each.
290 swift 1.1 </p>
291    
292 swift 1.38 <pre caption="Example grub.conf">
293 swift 1.9 default 0
294 swift 1.38 timeout 30
295 swift 1.9 splashimage=(hd0,0)/grub/splash.xpm.gz
296    
297 swift 1.38 <comment># genkernel users</comment>
298     title=Gentoo Linux 2.6.11-r3
299     root (hd0,0)
300     kernel /kernel-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
301     initrd /initrd-2.6.11-gentoo-r3
302    
303     <comment># non-genkernel users (no initrd)</comment>
304     title=Gentoo Linux 2.6.11 r3
305     root (hd0,0)
306     kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda3
307    
308     <comment># Only in case you want to dual-boot</comment>
309     title=Windows XP
310     root (hd0,5)
311     makeactive
312     chainloader +1
313 swift 1.9 </pre>
314    
315 swift 1.38 <pre caption="Example lilo.conf">
316 swift 1.9 boot=/dev/hda
317     prompt
318 swift 1.11 timeout=50
319 swift 1.9 default=gentoo
320    
321 swift 1.38 <comment># For non-genkernel users</comment>
322     image=/boot/kernel-2.6.11-gentoo-r3
323     label=gentoo
324     read-only
325     root=/dev/hda3
326    
327     <comment># For genkernel users</comment>
328     image=/boot/kernel-2.6.11-gentoo-r3
329 swift 1.9 label=gentoo
330     read-only
331     root=/dev/ram0
332 swift 1.38 append="init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev"
333     initrd=/boot/initrd-2.6.11-gentoo-r3
334 swift 1.9
335 swift 1.38 <comment># For dual-booting</comment>
336     other=/dev/hda6
337     label=windows
338 swift 1.1 </pre>
339    
340     <p>
341 swift 1.38 GRUB users need to install GRUB in the MBR using
342     <c>grub-install&nbsp;/dev/hda</c> after copying <path>/proc/mounts</path> to
343     <path>/etc/mtab</path>. LILO users need to run <c>/sbin/lilo</c>.
344 swift 1.1 </p>
345    
346 swift 1.38 <p>
347     Exit the chrooted environment, unmount all file systems and reboot.
348     </p>
349    
350     </body>
351     </section>
352     <section>
353     <title>Finalizing the Installation</title>
354     <body>
355    
356     <p>
357     Log in as <c>root</c>, then add one or more users for day-to-day use using
358     <c>useradd&nbsp;-m&nbsp;-G&nbsp;&lt;groups&gt;&nbsp;&lt;username&gt;</c>.
359     </p>
360    
361     <p>
362     If you performed a networkless installation, mount the packages CD at
363     <path>/mnt/cdrom</path> and <c>export&nbsp;PKGDIR="/mnt/cdrom"</c> after which
364     you can <c>emerge&nbsp;-k&nbsp;&lt;package&gt;</c> to install additional
365     software like <c>kde</c>.
366     </p>
367 swift 1.1
368     <p>
369 swift 1.38 Thanks for installing Gentoo!
370 aaby 1.7 </p>
371 neysx 1.31
372 aaby 1.7 </body>
373     </section>
374     </chapter>
375 swift 1.1 </guide>

  ViewVC Help
Powered by ViewVC 1.1.20