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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide annotations) (download) (as text)
Wed Feb 22 21:27:45 2012 UTC (2 years, 7 months ago) by swift
Branch: MAIN
Changes since 1.13: +4 -3 lines
File MIME type: application/xml
Fix bug #405271 (thanks to Ogelpre) to update /etc/timezone wherever we say to update /etc/localtime as it is /etc/timezone that is the master, read by timezone-data to update localtime

1 neysx 1.1 <?xml version='1.0' encoding="UTF-8"?>
2     <!DOCTYPE included SYSTEM "/dtd/guide.dtd">
3 swift 1.14 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-stage.xml,v 1.13 2011/08/02 02:28:17 nightmorph Exp $ -->
4 neysx 1.1
5     <included>
6    
7 swift 1.14 <version>13</version>
8     <date>2012-02-22</date>
9 neysx 1.1
10     <section>
11     <title>Setting Up The Stage</title>
12     <body>
13    
14     <p>
15     First make sure your date and time is set correctly using <c>date
16     MMDDhhmmYYYY</c>. Use UTC time.
17     </p>
18    
19     <pre caption="Set the date and UTC time">
20     <comment>(Check the clock)</comment>
21     livecd gentoo # <i>date</i>
22     Mon Mar 6 00:14:13 UTC 2006
23    
24     <comment>(Set the current date and time if required)</comment>
25     livecd gentoo # <i>date 030600162006</i> <comment>(Format is MMDDhhmmYYYY)</comment>
26     Mon Mar 6 00:16:00 UTC 2006
27     </pre>
28    
29     <p>
30     Next, download a stage from one of our <uri
31 nightmorph 1.9 link="/main/en/mirrors.xml">mirrors</uri>:
32 neysx 1.1 </p>
33    
34     <pre caption="Download a stage3 archive">
35     livecd gentoo # <i>links http://www.gentoo.org/main/en/mirrors.xml</i>
36 nightmorph 1.13 <comment>(Pick a mirror, move to the releases/x86/current-stage3/ directory,
37     highlight the stage3 of your choice, probably the i686 stage3, and press D to
38     download it)</comment>
39 neysx 1.1
40     <comment>(<b>Or</b> download it directly with wget without choosing a nearby mirror)</comment>
41 nightmorph 1.11 livecd gentoo # <i>wget ftp://distfiles.gentoo.org/pub/gentoo/releases/x86/current-stage3/stage3-i686-*.tar.bz2</i>
42 neysx 1.1 </pre>
43    
44 nightmorph 1.9 <p>
45     Go to <path>/mnt/gentoo</path> and unpack the stage using <c>tar xjpf &lt;stage3
46     tarball&gt;</c>.
47     </p>
48    
49 neysx 1.1 <pre caption="Unpack the stage3 archive">
50     livecd gentoo # <i>time tar xjpf stage3*</i>
51    
52     real 1m14.157s
53     user 1m2.920s
54     sys 0m7.530s
55     </pre>
56    
57     <p>
58     Install the latest Portage snapshot. Proceed as for the stage3 archive: choose
59     a nearby mirror from our <uri link="/main/en/mirrors.xml">list</uri>, download
60     the latest snapshot and unpack it.
61     </p>
62    
63     <pre caption="Download the latest Portage snapshot">
64     livecd gentoo # <i>cd /mnt/gentoo/usr</i>
65     livecd usr # <i>links http://www.gentoo.org/main/en/mirrors.xml</i>
66     <comment>(Pick a mirror, move to the snapshots/ directory,
67     highlight <b>portage-latest.tar.bz2</b> and press D to download it)</comment>
68    
69     <comment>(<b>Or</b> download it directly with wget without choosing a nearby mirror)</comment>
70     livecd gentoo # <i>cd /mnt/gentoo/usr</i>
71 neysx 1.6 livecd usr # <i>wget http://distfiles.gentoo.org/snapshots/portage-latest.tar.bz2</i>
72 neysx 1.1 </pre>
73    
74     <pre caption="Unpack the Portage snapshot">
75     livecd usr # <i>time tar xjf portage-lat*</i>
76    
77     real 0m40.523s
78     user 0m28.280s
79     sys 0m8.240s
80     </pre>
81    
82     </body>
83     </section>
84     <section>
85     <title>Chrooting</title>
86     <body>
87    
88     <p>
89 neysx 1.7 Mount the <path>/proc</path> &amp; <path>/dev</path> file systems, copy over
90     the <path>/etc/resolv.conf</path> file, then chroot into your Gentoo
91     environment.
92 neysx 1.1 </p>
93    
94     <pre caption="Chroot">
95     livecd usr # <i>cd /</i>
96     livecd / # <i>mount -t proc proc /mnt/gentoo/proc</i>
97 nightmorph 1.12 livecd / # <i>mount --rbind /dev /mnt/gentoo/dev</i>
98 neysx 1.1 livecd / # <i>cp -L /etc/resolv.conf /mnt/gentoo/etc/</i>
99     livecd / # <i>chroot /mnt/gentoo /bin/bash</i>
100     livecd / # <i>env-update &amp;&amp; source /etc/profile</i>
101     >>> Regenerating /etc/ld.so.cache...
102     </pre>
103    
104     </body>
105     </section>
106     <section>
107     <title>Set your time zone</title>
108     <body>
109    
110     <p>
111     Set your time zone information by using the correct listing in
112     <path>/usr/share/zoneinfo</path>.
113     </p>
114    
115     <pre caption="Setting your timezone">
116     livecd / # <i>ls /usr/share/zoneinfo</i>
117     <comment>(Using Brussels as an example)</comment>
118     livecd / # <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i>
119 swift 1.14 livecd / # <i>echo "Europe/Brussels" &gt; /etc/timezone</i>
120 neysx 1.1
121     livecd / # <i>date</i>
122     Wed Mar 8 00:46:05 CET 2006
123     </pre>
124    
125     </body>
126     </section>
127     <section>
128     <title>Set your host name and domain name</title>
129     <body>
130    
131     <p>
132     Set your host name in <path>/etc/conf.d/hostname</path> and
133     <path>/etc/hosts</path>. In the following example, we use
134     <c>mybox</c> as host name and <c>at.myplace</c> as domain name. You can either
135     edit the config files with <c>nano</c> or use the following commands:
136     </p>
137    
138     <pre caption="Set host and domain name">
139     livecd / # <i>cd /etc</i>
140     livecd etc # <i>echo "127.0.0.1 mybox.at.myplace mybox localhost" > hosts</i>
141     livecd etc # <i>sed -i -e 's/HOSTNAME.*/HOSTNAME="mybox"/' conf.d/hostname</i>
142     <comment>(Use defined host name and check)</comment>
143     livecd etc # <i>hostname mybox</i>
144     livecd etc # <i>hostname -f</i>
145     mybox.at.myplace
146     </pre>
147    
148     </body>
149     </section>
150    
151     </included>

  ViewVC Help
Powered by ViewVC 1.1.20