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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download) (as text)
Mon Jun 7 08:59:39 2010 UTC (4 years, 1 month ago) by nightmorph
Branch: MAIN
Changes since 1.2: +5 -5 lines
File MIME type: application/xml
remove qt3 USE flag now that nothing uses it

1 neysx 1.1 <?xml version='1.0' encoding="UTF-8"?>
2 nightmorph 1.3 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-after-reboot.xml,v 1.2 2008/03/30 22:08:04 nightmorph Exp $ -->
3 neysx 1.1 <!DOCTYPE included SYSTEM "/dtd/guide.dtd">
4    
5     <included>
6    
7 nightmorph 1.3 <version>3</version>
8     <date>2010-06-07</date>
9 neysx 1.1
10     <section id="after-reboot">
11     <title>Finalizing the Installation</title>
12     <body>
13    
14     <note>
15     The <b>total</b> elapsed time between the display of the boot prompt on the
16     minimal CD and the display of the login prompt after the reboot was
17     <b>00:42:31</b> on our test box. Yes, less than one hour! Note that this time
18     also includes the stage3, Portage snapshot and several packages download time
19     and the time spent configuring the kernel.
20     </note>
21    
22     <p>
23     Log in as <c>root</c>, then add one or more users for daily use with
24     <c>useradd</c>.
25     </p>
26    
27     <pre caption="Connect to your new box from another PC">
28     <comment>(Clean up your known_hosts file because your new box
29     has generated a new definitive hostkey)</comment>
30     $ <i>nano -w ~/.ssh/known_hosts</i>
31     <comment>(Look for the IP of your new PC and delete the line,
32     then save the file and exit nano)</comment>
33    
34     <comment>(Use the IP address of your new box)</comment>
35     $ <i>ssh root@192.168.1.10</i>
36     The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established.
37     RSA key fingerprint is 96:e7:2d:12:ac:9c:b0:94:90:9f:40:89:b0:45:26:8f.
38     Are you sure you want to continue connecting (yes/no)? <i>yes</i>
39     Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts.
40     Password: <comment>type_the_password</comment>
41     </pre>
42    
43     <pre caption="Add a new user">
44     mybox ~ # <i>adduser -g users -G lp,wheel,audio,cdrom,portage,cron -m john</i>
45     mybox ~ # <i>passwd john</i>
46     New UNIX password: <comment>Set John's password</comment>
47     Retype new UNIX password: <comment>Type John's password again</comment>
48     passwd: password updated successfully
49     </pre>
50    
51     </body>
52     </section>
53     <section>
54     <title>Last configuration touches</title>
55     <body>
56    
57     <p>
58     Start by selecting nearby mirrors either by defining the <c>SYNC</c> and
59     <c>GENTOO_MIRRORS</c> variables in <path>/etc/make.conf</path> or by using
60     <c>mirrorselect</c>. You can also define the number of concurrent compilation
61     processes at this point.
62     </p>
63    
64     <pre caption="Use mirrorselect and set MAKEOPTS">
65     mybox ~ # <i>emerge mirrorselect</i>
66     mybox ~ # <i>mirrorselect -i -o >> /etc/make.conf</i>
67     mybox ~ # <i>mirrorselect -i -r -o >> /etc/make.conf</i>
68     <comment>(Usually, (the number of processors + 1) is a good value)</comment>
69     mybox ~ # <i>echo 'MAKEOPTS="-j2"' >> /etc/make.conf</i>
70     </pre>
71    
72     <p>
73     Now is a good time to enable or disable some USE flags. Run <c>emerge -vpe
74     world</c> to list all currently installed packages and their enabled and
75     disabled USE flags. Either edit <path>/etc/make.conf</path> or use the
76     following command to define the USE variable:
77     </p>
78    
79     <pre caption="View USE flags in use and enable or disable some">
80     mybox ~ # <i>emerge -vpe world</i>
81     <comment>(Portage displays the packages and their USE flags, as an example, let's
82     disable ipv6 and fortran, and enable unicode)</comment>
83     mybox ~ # <i>echo 'USE="nptl nptlonly -ipv6 -fortran unicode"' >> /etc/make.conf</i>
84     </pre>
85    
86     <p>
87     Recent versions of glibc use <path>/etc/locale.gen</path> to define locale
88     settings.
89     </p>
90    
91     <pre caption="Define locales">
92     mybox ~ # <i>cd /etc</i>
93     mybox etc # <i>nano -w locale.gen</i>
94 nightmorph 1.2 mybox etc # <i>locale-gen</i>
95 neysx 1.1 </pre>
96    
97     <p>
98     Last but not least, you may want to alter the <c>CFLAGS</c> variable in your
99     <path>/etc/make.conf</path> to optimise the code to your specific needs. Please
100     note that using a long list of flags is rarely needed and can even lead to a
101     broken system. It is recommended to specify the processor type in the
102     <c>march</c> option and stick to <c>-O2 -pipe</c>.
103     </p>
104    
105     <p>
106     You may also want to switch to <b>~x86</b>. You should only do this if you can
107     deal with the odd broken ebuild or package. If you'd rather keep your system
108 nightmorph 1.2 stable, <e>don't</e> add the <c>ACCEPT_KEYWORDS</c> variable. Adding
109     <c>FEATURES="ccache"</c> is also a good idea.
110 neysx 1.1 </p>
111    
112     <pre caption="Last edit of make.conf">
113     mybox etc # <i>nano -w make.conf</i>
114     <comment>(Set -march to your CPU type in CFLAGS)</comment>
115     CFLAGS="-O2 -march=<i>athlon-xp</i> -pipe"
116     <comment>(Add the following line)</comment>
117 nightmorph 1.2 FEATURES="ccache"
118 neysx 1.1 <comment>(Only add the following if you know what you're doing)</comment>
119     ACCEPT_KEYWORDS="~x86"
120     </pre>
121    
122     <p>
123     You might want to recompile your whole system twice to make full use of your
124     latest configuration changes. It would take quite a long time to complete and
125     yield minimal speed benefits. You can let your system optimise itself gradually
126     over time when new versions of packages are released. However, recompiling is
127     a still good idea from the standpoint of maintaining system consistency. Please
128     see the <uri link="/doc/en/gcc-upgrading.xml">Gentoo GCC Upgrading Guide</uri>
129     for a discussion on the benefits of ensuring a consistently built system and
130     world.
131     </p>
132    
133     <p>
134     Recompiling only the packages that have already been updated since the release
135     or that are affected by your new USE flags will take enough time. You might
136     also have to remove packages that block your upgrade. Look for "[blocks
137     <brite>B</brite> ]" in the output of <c>emerge -vpuD --newuse world</c> and
138     use <c>emerge -C</c> to remove them.
139     </p>
140    
141     <pre caption="Update your packages">
142     <comment>(Install ccache)</comment>
143     mybox etc # <i>emerge ccache</i>
144    
145     <comment>(Please note that the switch to ~x86 causes many packages to be upgraded)</comment>
146     mybox etc # <i>emerge -vpuD --newuse world</i>
147     <comment>(Take a good look at the package list and their USE flags,
148     remove blocking packages if any, and start the lengthy process)</comment>
149     mybox etc # <i>time emerge -vuD --newuse world</i>
150     <comment>(79 packages have been (re)compiled)</comment>
151    
152     real 180m13.276s
153     user 121m22.905s
154     sys 36m31.472s
155    
156     <comment>(Remerge libtool to avoid further potential problems)</comment>
157 nightmorph 1.2 mybox etc # <i>emerge --oneshot libtool</i>
158 neysx 1.1
159 nightmorph 1.2 <comment>(Update config files, make sure you <b>do not</b> let dispatch-conf
160 neysx 1.1 update config files you have edited)</comment>
161 nightmorph 1.2 mybox etc # <i>dispatch-conf</i>
162 neysx 1.1
163     <comment>(If perl has been updated, you should run the perl-cleaner script)</comment>
164     mybox etc # <i>time perl-cleaner all</i>
165     real 1m6.495s
166     user 0m42.699s
167     sys 0m10.641s
168    
169     <comment>(In case of a major upgrade of python, you should run the python-updater script)</comment>
170     mybox etc # <i>python-updater</i>
171     </pre>
172    
173     </body>
174     </section>
175     <section>
176     <title>What to do next</title>
177     <body>
178    
179     <p>
180     Depending on what your new Gentoo machine is supposed to do, you will probably
181     want to install server applications or a desktop system. Just as an example,
182     <c>emerge gnome</c> and <c>emerge kde</c> have been timed on the ~x86 system
183     installed as describe above. Both have been installed from the same starting
184     point.
185     </p>
186    
187     <p>
188     You should check our <uri link="/doc/en/">documentation index</uri> to find out
189     how to install and configure the applications of your choice.
190     </p>
191    
192     <impo>
193     The following is only an example. It is in no way meant as a recommended setup.
194     </impo>
195    
196     <pre caption="Emerge GNOME">
197     mybox etc # <i>emerge -vp gnome</i>
198     <comment>(Look at the list of packages and their USE flags,
199     then edit make.conf if required.</comment>
200     mybox etc # <i>nano -w /etc/make.conf</i>
201     <comment>(The following USE flags have been defined)</comment>
202     USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \
203 nightmorph 1.3 -kde -qt4 -arts -eds -esd gnome gstreamer gtk firefox"
204 neysx 1.1
205     mybox etc # <i>time emerge gnome</i>
206     <comment>(326 packages have been emerged)</comment>
207    
208     real 520m44.532s
209     user 339m21.144s
210     sys 146m22.337s
211     </pre>
212    
213     <pre caption="Emerge KDE">
214     mybox etc # <i>emerge -vp kde-meta</i>
215     <comment>(Look at the list of packages and their USE flags,
216     then edit make.conf if required.</comment>
217     mybox etc # <i>nano -w /etc/make.conf</i>
218     <comment>The following USE flags have been defined)</comment>
219     USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \
220 nightmorph 1.3 kde qt4 -arts -eds -esd -gnome -gstreamer -gtk -firefox"
221 neysx 1.1
222     mybox etc # <i>time emerge kde-meta</i>
223     <comment>(391 packages have been emerged)</comment>
224    
225     real 1171m25.318s
226     user 851m26.393s
227     sys 281m45.629s
228     </pre>
229    
230     </body>
231     </section>
232    
233     </included>

  ViewVC Help
Powered by ViewVC 1.1.20