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

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

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

Revision 1.6 Revision 1.7
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE included SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE included SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-after-reboot.xml,v 1.6 2011/02/16 15:37:12 jkt Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-after-reboot.xml,v 1.7 2012/07/24 12:12:51 swift Exp $ -->
4 4
5<included> 5<included>
6 6
7<version>6</version> 7<version>7</version>
8<date>2011-02-16</date> 8<date>2012-07-24</date>
9 9
10<section id="after-reboot"> 10<section id="after-reboot">
11<title>Finalizing the Installation</title> 11<title>Finalizing the Installation</title>
12<body> 12<body>
13 13
14<note> 14<note>
15The <b>total</b> elapsed time between the display of the boot prompt on the 15The <b>total</b> elapsed time between the display of the boot prompt on the
16minimal CD and the display of the login prompt after the reboot was 16minimal 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 17<b>00:42:31</b> on our test box. Yes, less than one hour! Note that this time
18also includes the stage3, Portage snapshot and several packages download time 18also includes the stage3, Portage snapshot and several packages download time
19and the time spent configuring the kernel. 19and the time spent configuring the kernel.
20</note> 20</note>
21 21
22<p> 22<p>
23Log in as <c>root</c>, then add one or more users for daily use with 23Log in as <c>root</c>, then add one or more users for daily use with
44mybox ~ # <i>useradd -g users -G lp,wheel,audio,cdrom,portage,cron -m john</i> 44mybox ~ # <i>useradd -g users -G lp,wheel,audio,cdrom,portage,cron -m john</i>
45mybox ~ # <i>passwd john</i> 45mybox ~ # <i>passwd john</i>
46New UNIX password: <comment>Set John's password</comment> 46New UNIX password: <comment>Set John's password</comment>
47Retype new UNIX password: <comment>Type John's password again</comment> 47Retype new UNIX password: <comment>Type John's password again</comment>
48passwd: password updated successfully 48passwd: password updated successfully
49</pre> 49</pre>
50 50
51</body> 51</body>
52</section> 52</section>
53<section> 53<section>
54<title>Last configuration touches</title> 54<title>Last configuration touches</title>
55<body> 55<body>
56 56
57<p> 57<p>
58Start by selecting nearby mirrors either by defining the <c>SYNC</c> and 58Start 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 59<c>GENTOO_MIRRORS</c> variables in <path>/etc/portage/make.conf</path> or by using
60<c>mirrorselect</c>. You can also define the number of concurrent compilation 60<c>mirrorselect</c>. You can also define the number of concurrent compilation
61processes at this point. 61processes at this point.
62</p> 62</p>
63 63
64<pre caption="Use mirrorselect and set MAKEOPTS"> 64<pre caption="Use mirrorselect and set MAKEOPTS">
65mybox ~ # <i>emerge mirrorselect</i> 65mybox ~ # <i>emerge mirrorselect</i>
66mybox ~ # <i>mirrorselect -i -o >> /etc/make.conf</i> 66mybox ~ # <i>mirrorselect -i -o >> /etc/portage/make.conf</i>
67mybox ~ # <i>mirrorselect -i -r -o >> /etc/make.conf</i> 67mybox ~ # <i>mirrorselect -i -r -o >> /etc/portage/make.conf</i>
68<comment>(Usually, (the number of processors + 1) is a good value)</comment> 68<comment>(Usually, (the number of processors + 1) is a good value)</comment>
69mybox ~ # <i>echo 'MAKEOPTS="-j2"' >> /etc/make.conf</i> 69mybox ~ # <i>echo 'MAKEOPTS="-j2"' >> /etc/portage/make.conf</i>
70</pre> 70</pre>
71 71
72<p> 72<p>
73Now is a good time to enable or disable some USE flags. Run <c>emerge -vpe 73Now is a good time to enable or disable some USE flags. Run <c>emerge -vpe
74world</c> to list all currently installed packages and their enabled and 74world</c> to list all currently installed packages and their enabled and
75disabled USE flags. Either edit <path>/etc/make.conf</path> or use the 75disabled USE flags. Either edit <path>/etc/portage/make.conf</path> or use the
76following command to define the USE variable: 76following command to define the USE variable:
77</p> 77</p>
78 78
79<pre caption="View USE flags in use and enable or disable some"> 79<pre caption="View USE flags in use and enable or disable some">
80mybox ~ # <i>emerge -vpe world</i> 80mybox ~ # <i>emerge -vpe world</i>
81<comment>(Portage displays the packages and their USE flags, as an example, let's 81<comment>(Portage displays the packages and their USE flags, as an example, let's
82disable fortran, and enable ipv6 and unicode)</comment> 82disable fortran, and enable ipv6 and unicode)</comment>
83mybox ~ # <i>echo 'USE="nptl nptlonly ipv6 -fortran unicode"' >> /etc/make.conf</i> 83mybox ~ # <i>echo 'USE="nptl nptlonly ipv6 -fortran unicode"' >> /etc/portage/make.conf</i>
84</pre> 84</pre>
85 85
86<p> 86<p>
87Recent versions of glibc use <path>/etc/locale.gen</path> to define locale 87Recent versions of glibc use <path>/etc/locale.gen</path> to define locale
88settings. 88settings.
89</p> 89</p>
90 90
91<pre caption="Define locales"> 91<pre caption="Define locales">
92mybox ~ # <i>cd /etc</i> 92mybox ~ # <i>cd /etc</i>
93mybox etc # <i>nano -w locale.gen</i> 93mybox etc # <i>nano -w locale.gen</i>
94mybox etc # <i>locale-gen</i> 94mybox etc # <i>locale-gen</i>
95</pre> 95</pre>
96 96
97<p> 97<p>
98Last but not least, you may want to alter the <c>CFLAGS</c> variable in your 98Last 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 99<path>/etc/portage/make.conf</path> to optimise the code to your specific needs. Please
100note that using a long list of flags is rarely needed and can even lead to a 100note that using a long list of flags is rarely needed and can even lead to a
101broken system. It is recommended to specify the processor type in the 101broken system. It is recommended to specify the processor type in the
102<c>march</c> option and stick to <c>-O2 -pipe</c>. 102<c>march</c> option and stick to <c>-O2 -pipe</c>.
103</p> 103</p>
104 104
105<p> 105<p>
106You may also want to switch to <b>~x86</b>. You should only do this if you can 106You may also want to switch to <b>~x86</b>. You should only do this if you can
107deal with the odd broken ebuild or package. If you'd rather keep your system 107deal with the odd broken ebuild or package. If you'd rather keep your system
108stable, <e>don't</e> add the <c>ACCEPT_KEYWORDS</c> variable. 108stable, <e>don't</e> add the <c>ACCEPT_KEYWORDS</c> variable.
109</p> 109</p>
110 110
111<pre caption="Last edit of make.conf"> 111<pre caption="Last edit of make.conf">
112mybox etc # <i>cd portage</i>
112mybox etc # <i>nano -w make.conf</i> 113mybox portage # <i>nano -w make.conf</i>
113<comment>(Set -march to your CPU type in CFLAGS)</comment> 114<comment>(Set -march to your CPU type in CFLAGS)</comment>
114CFLAGS="-O2 -march=<i>athlon-xp</i> -pipe" 115CFLAGS="-O2 -march=<i>athlon-xp</i> -pipe"
115<comment>(Only add the following if you know what you're doing)</comment> 116<comment>(Only add the following if you know what you're doing)</comment>
116ACCEPT_KEYWORDS="~x86" 117ACCEPT_KEYWORDS="~x86"
117</pre> 118</pre>
118 119
119<p> 120<p>
120You might want to recompile your whole system twice to make full use of your 121You might want to recompile your whole system twice to make full use of your
121latest configuration changes. It would take quite a long time to complete and 122latest configuration changes. It would take quite a long time to complete and
122yield minimal speed benefits. You can let your system optimise itself gradually 123yield minimal speed benefits. You can let your system optimise itself gradually
123over time when new versions of packages are released. However, recompiling is 124over time when new versions of packages are released. However, recompiling is
124a still good idea from the standpoint of maintaining system consistency. Please 125a still good idea from the standpoint of maintaining system consistency. Please
125see the <uri link="/doc/en/gcc-upgrading.xml">Gentoo GCC Upgrading Guide</uri> 126see the <uri link="/doc/en/gcc-upgrading.xml">Gentoo GCC Upgrading Guide</uri>
126for a discussion on the benefits of ensuring a consistently built system and 127for a discussion on the benefits of ensuring a consistently built system and
127world. 128world.
179</p> 180</p>
180 181
181<p> 182<p>
182You should check our <uri link="/doc/en/">documentation index</uri> to find out 183You should check our <uri link="/doc/en/">documentation index</uri> to find out
183how to install and configure the applications of your choice. 184how to install and configure the applications of your choice.
184</p> 185</p>
185 186
186<impo> 187<impo>
187The following is only an example. It is in no way meant as a recommended setup. 188The following is only an example. It is in no way meant as a recommended setup.
188</impo> 189</impo>
189 190
190<pre caption="Emerge GNOME"> 191<pre caption="Emerge GNOME">
191mybox etc # <i>emerge -vp gnome</i> 192mybox etc # <i>emerge -vp gnome</i>
192<comment>(Look at the list of packages and their USE flags, 193<comment>(Look at the list of packages and their USE flags,
193then edit make.conf if required.</comment> 194then edit make.conf if required.</comment>
194mybox etc # <i>nano -w /etc/make.conf</i> 195mybox etc # <i>nano -w /etc/portage/make.conf</i>
195<comment>(The following USE flags have been defined)</comment> 196<comment>(The following USE flags have been defined)</comment>
196USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \ 197USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \
197 -kde -qt4 -arts -eds -esd gnome gstreamer gtk firefox" 198 -kde -qt4 -arts -eds -esd gnome gstreamer gtk firefox"
198 199
199mybox etc # <i>time emerge gnome</i> 200mybox etc # <i>time emerge gnome</i>
200<comment>(326 packages have been emerged)</comment> 201<comment>(326 packages have been emerged)</comment>
201 202
202real 520m44.532s 203real 520m44.532s
203user 339m21.144s 204user 339m21.144s
204sys 146m22.337s 205sys 146m22.337s
205</pre> 206</pre>
206 207
207<pre caption="Emerge KDE"> 208<pre caption="Emerge KDE">
208mybox etc # <i>emerge -vp kde-meta</i> 209mybox etc # <i>emerge -vp kde-meta</i>
209<comment>(Look at the list of packages and their USE flags, 210<comment>(Look at the list of packages and their USE flags,
210then edit make.conf if required.</comment> 211then edit make.conf if required.</comment>
211mybox etc # <i>nano -w /etc/make.conf</i> 212mybox etc # <i>nano -w /etc/portage/make.conf</i>
212<comment>The following USE flags have been defined)</comment> 213<comment>The following USE flags have been defined)</comment>
213USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \ 214USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \
214 kde qt4 -arts -eds -esd -gnome -gstreamer -gtk -firefox" 215 kde qt4 -arts -eds -esd -gnome -gstreamer -gtk -firefox"
215 216
216mybox etc # <i>time emerge kde-meta</i> 217mybox etc # <i>time emerge kde-meta</i>
217<comment>(391 packages have been emerged)</comment> 218<comment>(391 packages have been emerged)</comment>
218 219
219real 1171m25.318s 220real 1171m25.318s
220user 851m26.393s 221user 851m26.393s
221sys 281m45.629s 222sys 281m45.629s
222</pre> 223</pre>
223 224
224</body> 225</body>
225</section> 226</section>
226 227

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20