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

Diff of /xml/htdocs/doc/en/gentoo-x86-install.xml

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

Revision 1.120 Revision 1.121
1337 <warn> 1337 <warn>
1338 If you are configuring your own kernel, be careful with the <i>grsecurity</i> option. Being too aggressive with your 1338 If you are configuring your own kernel, be careful with the <i>grsecurity</i> option. Being too aggressive with your
1339 security settings can cause certain programs (such as X) to not run properly. If in doubt, leave it out. 1339 security settings can cause certain programs (such as X) to not run properly. If in doubt, leave it out.
1340 </warn> 1340 </warn>
1341 <p>Choose a kernel and then merge as follows:</p> 1341 <p>Choose a kernel and then merge as follows:</p>
1342<pre caption="Emerging Kernel Sources"> 1342<pre caption="Emerging Kernel Sources">
1343# <c>emerge sys-kernel/gentoo-sources</c> 1343# <c>emerge sys-kernel/gentoo-sources</c>
1344</pre> 1344</pre>
1345 <p>Once you have a Linux kernel source tree available, it is time to compile your own custom kernel. 1345 <p>Once you have a Linux kernel source tree available, it is time to compile your own custom kernel.
1346 </p> 1346 </p>
1347 <p>Please note that <path>/usr/src/linux</path> is a symlink to your current emerged kernel source package, 1347 <p>Please note that <path>/usr/src/linux</path> is a symlink to your current emerged kernel source package,
1348 and is set automatically by Portage at emerge time. 1348 and is set automatically by Portage at emerge time.
1349 If you have multiple kernel source packages, it is necessary to set the <path>/usr/src/linux</path> symlink 1349 If you have multiple kernel source packages, it is necessary to set the <path>/usr/src/linux</path> symlink
1350 to the correct one before proceeding. 1350 to the correct one before proceeding.
1351 </p> 1351 </p>
1352<pre caption="Compiling the Linux Kernel"> 1352<pre caption="Configuring the Linux Kernel">
1353# <c>cd /usr/src/linux</c> 1353# <c>cd /usr/src/linux</c>
1354# <c>make menuconfig</c> 1354# <c>make menuconfig</c>
1355# <c>make dep &amp;&amp; make clean bzImage modules modules_install</c>
1356# <c>cp /usr/src/linux/arch/i386/boot/bzImage /boot</c>
1357</pre> 1355</pre>
1358 <warn>For your kernel to function properly, there are several options that you will 1356 <warn>For your kernel to function properly, there are several options that you will
1359 need to ensure are in the kernel proper -- that is, they should <i>be enabled and not 1357 need to ensure are in the kernel proper -- that is, they should <i>be enabled and not
1360 compiled as modules</i>. Be sure to enable &quot;ReiserFS&quot; if you have 1358 compiled as modules</i>. Be sure to enable &quot;ReiserFS&quot; if you have
1361 any ReiserFS partitions; the same goes for &quot;Ext3&quot;. If you're using XFS, enable the 1359 any ReiserFS partitions; the same goes for &quot;Ext3&quot;. If you're using XFS, enable the
1362 &quot;SGI XFS filesystem support&quot; option. It's always a good idea to leave ext2 1360 &quot;SGI XFS filesystem support&quot; option. It's always a good idea to leave ext2
1363 enabled whether you are using it or not. Below are some common options that you will need:</warn> 1361 enabled whether you are using it or not. Below are some common options that you will need:</warn>
1364<pre caption="make menuconfig options"> 1362<pre caption="make menuconfig options">
1365Code maturity level options ---&gt; 1363Code maturity level options ---&gt;
1366 [*] Prompt for development and/or incomplete code/drivers&quot; 1364 [*] Prompt for development and/or incomplete code/drivers&quot;
1367<comment>(You need this to enable some of the options below.)</comment> 1365<comment>(You need this to enable some of the options below.)</comment>
1368 ... 1366 ...
1369 1367
1370File systems ---&gt; 1368File systems ---&gt;
1371 &lt;*&gt; Reiserfs support 1369 &lt;*&gt; Reiserfs support
1418 <note> 1416 <note>
1419 For those who prefer it, 1417 For those who prefer it,
1420 it is now possible to install Gentoo Linux with a 2.2 kernel. 1418 it is now possible to install Gentoo Linux with a 2.2 kernel.
1421 However, doing this comes at a price: 1419 However, doing this comes at a price:
1422 you will lose many of the nifty features that 1420 you will lose many of the nifty features that
1423 are new to the 2.4 series kernels (such as XFS and tmpfs 1421 are new to the 2.4 series kernels (such as XFS and tmpfs
1424 filesystems, iptables, and more), although the 2.2 kernel sources can be 1422 filesystems, iptables, and more), although the 2.2 kernel sources can be
1425 patched with ReiserFS and devfs support. 1423 patched with ReiserFS and devfs support.
1426 Gentoo linux boot scripts require either tmpfs or ramdisk support in the kernel, so 1424 Gentoo linux boot scripts require either tmpfs or ramdisk support in the kernel, so
1427 2.2 kernel users need to make sure that ramdisk support is compiled in (ie, not a module). 1425 2.2 kernel users need to make sure that ramdisk support is compiled in (ie, not a module).
1428 It is <comment>vital</comment> that a <e>gentoo=notmpfs</e> flag be added to the kernel 1426 It is <comment>vital</comment> that a <e>gentoo=notmpfs</e> flag be added to the kernel
1429 line in <path>/boot/grub/grub.conf</path> or to the append line in <path>/etc/lilo.conf</path> for the 2.2 kernel so 1427 line in <path>/boot/grub/grub.conf</path> or to the append line in <path>/etc/lilo.conf</path> for the 2.2 kernel so
1430 that a ramdisk is mounted for the boot scripts instead of tmpfs. If you choose not to use devfs, then 1428 that a ramdisk is mounted for the boot scripts instead of tmpfs. If you choose not to use devfs, then
1431 <e>gentoo=notmpfs,nodevfs</e> should be used instead. 1429 <e>gentoo=notmpfs,nodevfs</e> should be used instead.
1432 </note> 1430 </note>
1431
1432<pre caption = "Compiling and Installing the kernel">
1433# <c>make dep &amp;&amp; make clean bzImage modules modules_install</c>
1434# <c>cp /usr/src/linux/arch/i386/boot/bzImage /boot</c>
1435</pre>
1436
1433 <p>Your new custom kernel (and modules) are now installed. Now you need to choose a system 1437 <p>Your new custom kernel (and modules) are now installed. Now you need to choose a system
1434 logger that you would like to install. We offer sysklogd, which is the traditional set 1438 logger that you would like to install. We offer sysklogd, which is the traditional set
1435 of system logging daemons. We also have msyslog and syslog-ng as well as metalog. Power users seem 1439 of system logging daemons. We also have msyslog and syslog-ng as well as metalog. Power users seem
1436 to gravitate away from sysklogd (not very good performance) and towards the 1440 to gravitate away from sysklogd (not very good performance) and towards the
1437 newer alternatives. 1441 newer alternatives.
1438 If in doubt, you may want to try metalog, since it seems to be quite popular. 1442 If in doubt, you may want to try metalog, since it seems to be quite popular.
1439 To merge your logger of choice, type <e>one</e> of the next four lines: 1443 To merge your logger of choice, type <e>one</e> of the next four lines:
1440 </p> 1444 </p>
1441<pre caption="Emerging System Logger of Choice"> 1445<pre caption="Emerging System Logger of Choice">
1442# <c>emerge app-admin/sysklogd</c> 1446# <c>emerge app-admin/sysklogd</c>
1443# <c>rc-update add sysklogd default</c> 1447# <c>rc-update add sysklogd default</c>
1444<comment>or</comment> 1448<comment>or</comment>
1445# <c>emerge app-admin/syslog-ng</c> 1449# <c>emerge app-admin/syslog-ng</c>
1446# <c>rc-update add syslog-ng default</c> 1450# <c>rc-update add syslog-ng default</c>
1447<comment>or</comment> 1451<comment>or</comment>
1579 <p>Before you forget, set the root password by typing: </p> 1583 <p>Before you forget, set the root password by typing: </p>
1580<pre caption="Setting the root Password"> 1584<pre caption="Setting the root Password">
1581# <c>passwd</c> 1585# <c>passwd</c>
1582</pre> 1586</pre>
1583 1587
1584 <p>You will also want to add a non-root user for everyday use. Please consult 1588 <p>You will also want to add a non-root user for everyday use. Please consult
1585 the <uri link="http://www.gentoo.org/doc/en/faq.xml">Gentoo FAQ</uri>. 1589 the <uri link="http://www.gentoo.org/doc/en/faq.xml">Gentoo FAQ</uri>.
1586 </p> 1590 </p>
1587 </body> 1591 </body>
1588 </section> 1592 </section>
1589 </chapter> 1593 </chapter>
1590 <chapter> 1594 <chapter>
1591 <title>Setting your Hostname</title> 1595 <title>Setting your Hostname</title>
1592 <section> 1596 <section>
1593 <body> 1597 <body>
1594 <p>Edit this file so that it contains your fully-qualified domain name on a single line, 1598 <p>
1595 i.e. <c>mymachine.mydomain.com</c>. 1599 Edit <path>/etc/hostname</path> so that it contains your hostname
1596 </p> 1600 on a single line, i.e. <c>mymachine</c>.
1601 </p>
1597<pre caption="Configuring Hostname"> 1602<pre caption="Configuring Hostname">
1598# <c>echo mymachine.mydomain.com &gt; /etc/hostname</c> 1603# <i>echo mymachine &gt; /etc/hostname</i>
1604</pre>
1605 <p>
1606 Then edit <path>/etc/dnsdomainname</path> so that it contains your DNS
1607 domainname, i.e. <c>mydomain.com</c>.
1608 </p>
1609<pre caption="Configuring Domainname">
1610# <i>echo mydomain.com &gt; /etc/dnsdomainname</i>
1611</pre>
1612 <p>
1613 If you have a NIS domain, you should set it in
1614 <path>/etc/nisdomainname</path>.
1615 </p>
1616<pre caption="Configuring NIS Domainname">
1617# <i>echo nis.mydomain.com &gt; /etc/nisdomainname</i>
1599</pre> 1618</pre>
1600 </body> 1619 </body>
1601 </section> 1620 </section>
1602 </chapter> 1621 </chapter>
1603 <chapter> 1622 <chapter>
1604 <title>Modifying /etc/hosts</title> 1623 <title>Modifying /etc/hosts</title>
1605 <section> 1624 <section>
1606 <body> 1625 <body>
1607 <p>This file contains a list of IP addresses and their associated hostnames. 1626 <p>This file contains a list of IP addresses and their associated hostnames.
1608 It is used by the system to resolve the IP addresses 1627 It is used by the system to resolve the IP addresses
1609 of any hostnames that may not be in your nameservers. Here is a template for this file: 1628 of any hostnames that may not be in your nameservers. Here is a template for this file:
1610 </p> 1629 </p>
1611<pre caption="Hosts Template"> 1630<pre caption="Hosts Template">
1612127.0.0.1 localhost 1631127.0.0.1 localhost
1613<comment># the next line contains your IP for your local LAN, and your associated machine name</comment> 1632<comment># the next line contains your IP for your local LAN, and your associated machine name</comment>

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.121

  ViewVC Help
Powered by ViewVC 1.1.20