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

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

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

Revision 1.4 Revision 1.12
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/Attic/hb-install-mips-system.xml,v 1.4 2007/05/07 18:11:41 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/Attic/hb-install-mips-system.xml,v 1.12 2013/01/02 19:28:52 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>8.0</version> 11<version>13</version>
12<date>2007-05-07</date> 12<date>2013-01-03</date>
13 13
14<section> 14<section>
15<title>Chrooting</title> 15<title>Chrooting</title>
16<subsection> 16<subsection>
17<title>Copy DNS Info</title> 17<title>Copy DNS Info</title>
25network. 25network.
26</p> 26</p>
27 27
28<pre caption="Copy over DNS information"> 28<pre caption="Copy over DNS information">
29<comment>(The "-L" option is needed to make sure we don't copy a symbolic link)</comment> 29<comment>(The "-L" option is needed to make sure we don't copy a symbolic link)</comment>
30# <i>cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</i> 30# <i>cp -L /etc/resolv.conf /mnt/gentoo/etc/</i>
31</pre> 31</pre>
32 32
33</body> 33</body>
34</subsection>
35<subsection> 34</subsection>
35<subsection>
36<title>Mounting the /proc and /dev Filesystems</title> 36<title>Mounting the necessary Filesystems</title>
37<body> 37<body>
38 38
39<p> 39<p>
40Mount the <path>/proc</path> filesystem on <path>/mnt/gentoo/proc</path> to 40Mount the <path>/proc</path> filesystem on <path>/mnt/gentoo/proc</path> to
41allow the installation to use the kernel-provided information within the 41allow the installation to use the kernel-provided information within the
42chrooted environment, and then mount-bind the <path>/dev</path> filesystem. 42chrooted environment, and then mount-bind the <path>/dev</path> and
43<path>/sys</path> filesystems.
43</p> 44</p>
44 45
45<pre caption="Mounting /proc and /dev"> 46<pre caption="Mounting /proc and /dev">
46# <i>mount -t proc none /mnt/gentoo/proc</i> 47# <i>mount -t proc none /mnt/gentoo/proc</i>
48# <i>mount --rbind /sys /mnt/gentoo/sys</i>
47# <i>mount -o bind /dev /mnt/gentoo/dev</i> 49# <i>mount --rbind /dev /mnt/gentoo/dev</i>
48</pre> 50</pre>
49 51
50</body> 52</body>
51</subsection> 53</subsection>
52<subsection> 54<subsection>
62</p> 64</p>
63 65
64<p> 66<p>
65This chrooting is done in three steps. First we will change the root 67This chrooting is done in three steps. First we will change the root
66from <path>/</path> (on the installation medium) to <path>/mnt/gentoo</path> 68from <path>/</path> (on the installation medium) to <path>/mnt/gentoo</path>
67(on your partitions) using <c>chroot</c>. Then we will create a new environment 69(on your partitions) using <c>chroot</c>. Then we will reload some settings, as
68using <c>env-update</c>, which essentially creates environment variables. 70provided by <path>/etc/profile</path>, in memory using <c>source</c>.
69Finally, we load those variables into memory using <c>source</c>.
70</p> 71</p>
71 72
72<pre caption = "Chrooting into the new environment"> 73<pre caption = "Chrooting into the new environment">
73# <i>chroot /mnt/gentoo /bin/bash</i> 74# <i>chroot /mnt/gentoo /bin/bash</i>
74# <i>env-update</i>
75>> Regenerating /etc/ld.so.cache...
76# <i>source /etc/profile</i> 75# <i>source /etc/profile</i>
77# <i>export PS1="(chroot) $PS1"</i> 76# <i>export PS1="(chroot) $PS1"</i>
78</pre> 77</pre>
79 78
80<p> 79<p>
111you. 110you.
112</p> 111</p>
113 112
114<p> 113<p>
115If you are warned that a new Portage version is available and that you should 114If you are warned that a new Portage version is available and that you should
116update Portage, you should do it now using <c>emerge portage</c> command. 115update Portage, you should do it now using <c>emerge --oneshot portage</c>.
117</p> 116</p>
118 117
119</body> 118</body>
120</subsection> 119</subsection>
121<subsection> 120<subsection>
332You can see what profile you are currently using with the following command: 331You can see what profile you are currently using with the following command:
333</p> 332</p>
334 333
335<pre caption="Verifying system profile"> 334<pre caption="Verifying system profile">
336# <i>ls -FGg /etc/make.profile</i> 335# <i>ls -FGg /etc/make.profile</i>
337lrwxrwxrwx 1 48 Apr 8 18:51 /etc/make.profile -> ../usr/portage/profiles/default-linux/mips/2007.0/generic-be/o32/ 336lrwxrwxrwx 1 48 Apr 8 18:51 /etc/make.profile -> ../usr/portage/profiles/<keyval id="profile"/>
338</pre> 337</pre>
339 338
340<p> 339<p>
341Having looked through the profiles above, and decided which one is the most 340Having looked through the profiles above, and decided which one is the most
342appropriate, you need to adjust your <path>make.profile</path> symlink to 341appropriate, you need to adjust your <path>make.profile</path> symlink to
389 388
390<p> 389<p>
391In the <c>USE</c> variable you define keywords which are mapped onto 390In the <c>USE</c> variable you define keywords which are mapped onto
392compile-options. For instance, <e>ssl</e> will compile ssl-support in the 391compile-options. For instance, <e>ssl</e> will compile ssl-support in the
393programs that support it. <e>-X</e> will remove X-server support (note the 392programs that support it. <e>-X</e> will remove X-server support (note the
394minus sign in front). <e>gnome gtk -kde -qt3 -qt4</e> will compile your 393minus sign in front). <e>gnome gtk -kde -qt4</e> will compile your
395programs with gnome (and gtk) support, and not with kde (and qt) support, 394programs with gnome (and gtk) support, and not with kde (and qt) support,
396making your system fully tweaked for GNOME. 395making your system fully tweaked for GNOME.
397</p> 396</p>
398 397
399<p> 398<p>
430<pre caption="Opening /etc/make.conf"> 429<pre caption="Opening /etc/make.conf">
431# <i>nano -w /etc/make.conf</i> 430# <i>nano -w /etc/make.conf</i>
432</pre> 431</pre>
433 432
434<pre caption="USE setting"> 433<pre caption="USE setting">
435USE="-gtk -gnome qt3 qt4 kde dvd alsa cdr" 434USE="-gtk -gnome qt4 kde dvd alsa cdr"
436</pre> 435</pre>
437 436
438</body> 437</body>
439</subsection> 438</subsection>
440<subsection> 439<subsection>
465<p> 464<p>
466The next step is to run <c>locale-gen</c>. It will generate all the locales you 465The next step is to run <c>locale-gen</c>. It will generate all the locales you
467have specified in the <path>/etc/locale.gen</path> file. 466have specified in the <path>/etc/locale.gen</path> file.
468</p> 467</p>
469 468
469<pre caption="Running locale-gen">
470# <i>locale-gen</i>
471</pre>
472
470<p> 473<p>
471Now continue with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>. 474Now continue with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>.
472</p> 475</p>
473 476
474</body> 477</body>

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20