/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-system.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-system.xml

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

Revision 1.105 Revision 1.106
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-system.xml,v 1.105 2007/02/12 21:55:42 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-system.xml,v 1.106 2007/05/07 18:11:41 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12After installing and configuring a stage3, the eventual result is that you 12After installing and configuring a stage3, the eventual result is that you
13have a Gentoo base system at your disposal. This chapter describes how 13have a Gentoo base system at your disposal. This chapter describes how
14to progress to that state. 14to progress to that state.
15</abstract> 15</abstract>
16 16
17<version>7.6</version> 17<version>8.0</version>
18<date>2007-02-12</date> 18<date>2007-05-07</date>
19 19
20<section> 20<section>
21<title>Chrooting</title> 21<title>Chrooting</title>
22<subsection> 22<subsection>
23<title>Optional: Selecting Mirrors</title> 23<title>Optional: Selecting Mirrors</title>
197default values for CHOST, CFLAGS and other important variables, it also locks 197default values for CHOST, CFLAGS and other important variables, it also locks
198the system to a certain range of package versions. This is all maintained by the 198the system to a certain range of package versions. This is all maintained by the
199Gentoo developers. 199Gentoo developers.
200</p> 200</p>
201 201
202<p test="contains('Alpha x86', func:keyval('arch'))">
203Previously, such a profile was barely touched by the user. However, <keyval
204id="arch"/> users can choose between two profiles, one for a 2.4 kernel and one
205for a 2.6 kernel. This requirement has been imposed to improve the integration
206of the 2.6 kernels.
207</p> 202<p>
208
209<p test="contains('AMD64 arm HPPA IA64 MIPS PPC PPC64 SPARC', func:keyval('arch'))">
210Previously, such a profile was untouched by the users. However, there may be 203Previously, such a profile was untouched by the users. However, there may be
211certain situations in which you may decide a profile change is necessary. 204certain situations in which you may decide a profile change is necessary.
212</p> 205</p>
213 206
214<p> 207<p>
215You can see what profile you are currently using with the following command: 208You can see what profile you are currently using with the following command:
216</p> 209</p>
217 210
218<pre caption="Verifying system profile"> 211<pre caption="Verifying system profile">
219# <i>ls -FGg /etc/make.profile</i> 212# <i>ls -FGg /etc/make.profile</i>
220lrwxrwxrwx 1 48 Apr 8 18:51 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2006.1/ 213lrwxrwxrwx 1 48 Apr 8 18:51 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2007.0/
221</pre> 214</pre>
222 215
223<p> 216<p>
224The default profile will provide you with a Linux 2.6-based system. This is the 217The default profile will provide you with a Linux 2.6-based system. This is the
225recommended default, but you have the option of choosing another profile too. 218recommended default, but you have the option of choosing another profile too.
226</p> 219</p>
227 220
228<p> 221<p>
229There are also <c>desktop</c> and <c>server</c> subprofiles available for some 222There are also <c>desktop</c> and <c>server</c> subprofiles available for some
230architectures. Look inside the <path>2006.1/</path> profile to see if there is 223architectures. Look inside the <path>2007.0/</path> profile to see if there is
231one available for your architecture. You may wish to view the <c>desktop</c> 224one available for your architecture. You may wish to view the <c>desktop</c>
232profile's <path>make.defaults</path> to determine if it fits your needs. 225profile's <path>make.defaults</path> to determine if it fits your needs.
233</p> 226</p>
227
228<p>
229After viewing the available profiles for your architecture in
230<path>/usr/portage/profiles/</path>, you can use a different one if you wish:
231</p>
232
233<pre caption="Changing profiles">
234# <i>ln -snf /usr/portage/profiles/&lt;profile name&gt; /etc/make.profile</i>
235</pre>
234 236
235<p test="func:keyval('arch')='AMD64'"> 237<p test="func:keyval('arch')='AMD64'">
236If you want to have a pure 64-bit environment, with no 32-bit applications or 238If you want to have a pure 64-bit environment, with no 32-bit applications or
237libraries, you should use a non-multilib profile: 239libraries, you should use a non-multilib profile:
238</p> 240</p>
239 241
240<pre test="func:keyval('arch')='AMD64'" caption="Switching to a non-multilib profile"> 242<pre test="func:keyval('arch')='AMD64'" caption="Switching to a non-multilib profile">
241# <i>ln -snf /usr/portage/profiles/default-linux/amd64/2006.1/no-multilib /etc/make.profile</i> 243# <i>ln -snf /usr/portage/profiles/default-linux/amd64/2007.0/no-multilib /etc/make.profile</i>
242</pre>
243
244<p>
245Some users may wish to install a system based on the older Linux 2.4 profile.
246If you have good reason to do this, then you should first check that an
247additional profile exists. On x86, we can do this with the following command:
248</p>
249
250<pre caption="Finding out if an additional profile exists">
251# <i>ls -d /usr/portage/profiles/default-linux/x86/no-nptl/2.4</i>
252/usr/portage/profiles/default-linux/x86/no-nptl/2.4
253</pre>
254
255<p>
256The above example shows that the additional 2.4 profile exists (i.e. it didn't
257complain about missing file or directory). It is recommended that you stay with
258the default, but if you wish to switch, you can do so as follows:
259</p>
260
261<pre caption="Switching to a 2.4 profile">
262<comment>(Make sure you use the right architecture, the example below is for x86)</comment>
263# <i>ln -snf /usr/portage/profiles/default-linux/x86/no-nptl/2.4 /etc/make.profile</i>
264<comment>(List the files in the 2.4 profile)</comment>
265# <i>ls -FGg /etc/make.profile/</i>
266total 12
267-rw-r--r-- 1 939 Dec 10 14:06 packages
268-rw-r--r-- 1 347 Dec 3 2004 parent
269-rw-r--r-- 1 573 Dec 3 2004 virtuals
270</pre>
271
272<p test="func:keyval('arch')='PPC'">
273For ppc, there are a number of new profiles provided with 2006.1:
274</p>
275
276<pre test="func:keyval('arch')='PPC'" caption="PPC Profiles">
277<comment>(Generic PPC profile, for all PPC machines, minimal)</comment>
278# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1 /etc/make.profile</i>
279<comment>(G3 profile)</comment>
280# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G3 /etc/make.profile</i>
281<comment>(G3 Pegasos profile)</comment>
282# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G3/Pegasos/ /etc/make.profile</i>
283<comment>(G4 (Altivec) profile)</comment>
284# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G4 /etc/make.profile</i>
285<comment>(G4 (Altivec) Pegasos profile)</comment>
286# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G4/Pegasos/ /etc/make.profile</i>
287</pre>
288
289<p test="func:keyval('arch')='PPC64'">
290For ppc64, there are a number of new profiles provided with 2006.1:
291</p>
292
293<pre test="func:keyval('arch')='PPC64'" caption="PPC64 Profiles">
294<comment>(Generic 64bit userland PPC64 profile, for all PPC64 machines)</comment>
295# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/64bit-userland /etc/make.profile</i>
296<comment>(Generic 32bit userland PPC64 profile, for all PPC64 machines)</comment>
297# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/32bit-userland /etc/make.profile</i>
298<comment>(Each type of userland has sub profiles as follows, with (userland) replaced with the chosen userland from above)</comment>
299<comment>(970 profile for JS20)</comment>
300# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/970 /etc/make.profile</i>
301<comment>(G5 profile)</comment>
302# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/970/pmac /etc/make.profile</i>
303<comment>(POWER3 profile)</comment>
304# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/power3 /etc/make.profile</i>
305<comment>(POWER4 profile)</comment>
306# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/power4 /etc/make.profile</i>
307<comment>(POWER5 profile)</comment>
308# <i>ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/power5 /etc/make.profile</i>
309<comment>(The multilib profile is not stable as of this release.)</comment>
310</pre> 244</pre>
311 245
312</body> 246</body>
313</subsection> 247</subsection>
314<subsection id="configure_USE"> 248<subsection id="configure_USE">
380</pre> 314</pre>
381 315
382</body> 316</body>
383</subsection> 317</subsection>
384<subsection> 318<subsection>
385<title>Optional: GLIBC Locales</title> 319<title>Optional: glibc Locales</title>
386<body> 320<body>
387 321
388<p> 322<p>
389You will probably only use one or maybe two locales on your system. You can 323You will probably only use one or maybe two locales on your system. You can
390specify locales you will need in <path>/etc/locale.gen</path>. 324specify locales you will need in <path>/etc/locale.gen</path>.
409<p> 343<p>
410The next step is to run <c>locale-gen</c>. It will generate all the locales you 344The next step is to run <c>locale-gen</c>. It will generate all the locales you
411have specified in the <path>/etc/locale.gen</path> file. 345have specified in the <path>/etc/locale.gen</path> file.
412</p> 346</p>
413 347
414<note>
415<c>locale-gen</c> is available in <c>glibc-2.3.6-r4</c> and newer. If you have
416an older version of glibc, you should update it now.
417</note>
418
419<p> 348<p>
420Now continue with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>. 349Now continue with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>.
421</p> 350</p>
422 351
423</body> 352</body>

Legend:
Removed from v.1.105  
changed lines
  Added in v.1.106

  ViewVC Help
Powered by ViewVC 1.1.20