/[gentoo]/xml/htdocs/doc/en/altinstall.xml
Gentoo

Diff of /xml/htdocs/doc/en/altinstall.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.70 Revision 1.71
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/altinstall.xml,v 1.70 2006/11/29 15:48:57 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/altinstall.xml,v 1.71 2007/02/23 11:21:59 nightmorph Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/altinstall.xml"> 5<guide link="/doc/en/altinstall.xml">
6 6
7<title>The Gentoo Linux alternative installation method HOWTO</title> 7<title>The Gentoo Linux alternative installation method HOWTO</title>
54 54
55<!-- The content of this document is licensed under the CC-BY-SA license --> 55<!-- The content of this document is licensed under the CC-BY-SA license -->
56<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 56<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
57<license/> 57<license/>
58 58
59<version>0.70</version> 59<version>0.71</version>
60<date>2006-11-16</date> 60<date>2007-02-23</date>
61 61
62<chapter> 62<chapter>
63<title>About this document</title> 63<title>About this document</title>
64<section> 64<section>
65<body> 65<body>
239 239
240<pre caption="Bind-mounting the device tree"> 240<pre caption="Bind-mounting the device tree">
241# <i>mount -o bind /dev /mnt/gentoo/dev</i> 241# <i>mount -o bind /dev /mnt/gentoo/dev</i>
242</pre> 242</pre>
243--> 243-->
244
245</body>
246</section>
247</chapter>
248
249<chapter>
250<title>Installing from Stage 1 without network access</title>
251<section>
252<body>
253
254<p>
255Burn an Install CD ISO.
256</p>
257
258<p>
259Get the latest Portage snapshot from
260<uri>http://distro.ibiblio.org/pub/linux/distributions/gentoo/snapshots/</uri>
261(or your favorite <uri
262link="http://www.gentoo.org/main/en/mirrors.xml">mirror</uri>). Either place
263this tarball on an existing partition on the computer you are installing to,
264or burn it to a CD.
265</p>
266
267<p>
268Follow all instructions of the <uri link="/doc/en/handbook">Gentoo Installation Handbook</uri> up to <c>chroot
269/mnt/gentoo</c> in Chapter 6. If you only have one CD-ROM remember to use the
270<c>docache</c> option while booting so you can unmount the Install CD and mount
271your Portage snapshot CD.
272</p>
273
274<p>
275Open a new console (Alt-F2), we will continue with the Install Doc up to
276running the <c>bootstrap.sh</c> script.
277</p>
278
279<warn>
280Older releases of the Install CD required you to change the password using the
281<c>passwd</c> command, before logging in manually.
282</warn>
283
284<p>
285Go back to the first console (Alt-F1, without chroot) and mount a second CD on
286<path>/mnt/gentoo/mnt/cdrom2</path>. Copy the Portage tarball from cdrom2 and
287unpack it to <path>/mnt/gentoo/usr</path>.
288</p>
289
290<pre caption="Mount the snapshot cd">
291# <i>umount /mnt/cdrom</i>
292# <i>mkdir /mnt/gentoo/mnt/cdrom2</i>
293# <i>mount /dev/cdroms/cdrom0 /mnt/gentoo/mnt/cdrom2</i>
294# <i>cp /mnt/gentoo/mnt/cdrom2/portage-$date.tar.bz2 /mnt/gentoo/usr</i>
295# <i>cd /mnt/gentoo/usr</i>
296# <i>tar -xvjpf portage-$date.tar.bz2</i>
297</pre>
298
299<p>
300Switch back to the F2 console. Now if you try to run <c>bootstrap.sh</c> it will
301fail because it won't be able to download any files. We will fetch these files
302somewhere else and put them in <path>/usr/portage/distfiles</path> (on F2
303console).
304</p>
305
306<p>
307You need a list of Stage1 packages: glibc, baselayout, texinfo, gettext, zlib,
308binutils, gcc, ncurses plus their dependencies.
309</p>
310
311<note>
312Note that you need the versions of each package synced with your Portage tree.
313</note>
314
315<pre caption="Getting the download listing">
316<comment>(Don't forget the 2 in front of the &gt;)</comment>
317# <i>emerge -fp glibc baselayout texinfo gettext zlib binutils gcc ncurses 2&gt; stage1.list</i>
318# <i>mount -t vfat /dev/fd0 /mnt/floppy</i>
319# <i>cp /mnt/gentoo/stage1.list /mnt/floppy</i>
320# <i>umount /mnt/floppy</i>
321</pre>
322
323<p>
324Take the floppy to the computer that has fast access. If you take a look at the
325<path>stage1.list</path> file, you'll see that it provides you with several
326URLs to download. Sadly, it lists several possible URLs for each package as
327well, which isn't what you want. Strip all but one of the URLs first:
328</p>
329
330<pre caption="Stripping URLs">
331<comment>(This script is depending on the output format given by emerge which
332 might change in the future without further notice - use with caution!)</comment>
333# <i>cut -f 1 -d ' ' stage1.list > stage1.download</i>
334</pre>
335
336<p>
337Now use <c>wget</c> to fetch all the listed sources:
338</p>
339
340<pre caption="Use wget to grab your source packages">
341# <i>wget -N -i stage1.download</i>
342</pre>
343
344<p>
345Once you have obtained all the files, take them to the computer and copy them
346to <path>/mnt/gentoo/usr/portage/distfiles</path>. You will then be able to run
347<c>bootstrap.sh</c>. Repeat this same wget fetch and place procedure for stage2
348and 3.
349</p>
350 244
351</body> 245</body>
352</section> 246</section>
353</chapter> 247</chapter>
354 248

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

  ViewVC Help
Powered by ViewVC 1.1.20