<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE sections SYSTEM "/dtd/book.dtd">

<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->

<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-sparc-medium.xml,v 1.10 2004/05/09 12:30:05 swift Exp $ -->

<sections>
<section>
<title>Hardware Requirements</title>
<subsection>
<title>Introduction</title>
<body>

<p>
Before we start, we first list what hardware requirements you need to
successfully install Gentoo on your box. This of course depends on your
architecture.
</p>

</body>
</subsection>
<subsection>
<title>The SPARC Architecture</title>
<body>

<p>
Check the following requirements before you
continue with the Gentoo installation:
</p>

<ul>
<li>
  You need at least 1 Gb of free disk space
</li>
<li>
  If you do not use prebuilt packages, you need at least 300 Mb of memory (RAM +
  swap)
</li>
<li>
  For the <e>SPARC architecture</e>, you should check with the <uri
  link="http://www.ultralinux.org/faq.html#s_2">UltraLinux FAQ</uri>
</li>
</ul>

</body>
</subsection>
</section>
<section>
<title>Make your Choice</title>
<subsection>
<title>Introduction</title>
<body>

<p>
Still interested in trying out Gentoo? Well, then it is now time to
choose the installation medium you want to use. Yes, you have the
choice, no, they are not all equal, and yes, the result is always the same: a
Gentoo base system.
</p>

<p>
The installation media we will describe are:
</p>

<ul>
<li>Gentoo's Minimal LiveCD</li>
<li>Gentoo's Universal LiveCD</li>
</ul>

<p>
Every single media has its advantages and disadvantages. We will list
the pros and cons of every medium so you have all the information to
make a justified decision. But before we continue, let's explain our
three-stage installation.
</p>

</body>
</subsection>
<subsection>
<title>The Three Stages</title>
<body>

<p>
Gentoo Linux can be installed using one of three <e>stage</e> tarball files.
The one you choose depends on how much of the system you want to compile
yourself. The <e>stage1</e> tarball is used when you want to bootstrap and
build the entire system from scratch. The <e>stage2</e> tarball is used for
building the entire system from a bootstrapped &quot;semi-compiled&quot; state.
The <e>stage3</e> tarball already contains a basic Gentoo Linux system that has
been built for you. As we will explain later, you can also install
Gentoo without compiling anything (except your kernel and some optional 
packages). If you want this, you have to use a <e>stage3</e> tarball.
</p>

<p>
Now what stage do you have to choose?
</p>

<p>
Starting from a <e>stage1</e> allows you to have total control over the
optimization settings and optional build-time functionality that is
initially enabled on your system. This makes <e>stage1</e> installs good for
power users who know what they are doing. It is also a great
installation method for those who would like to know more about the
inner workings of Gentoo Linux.
</p>

<p>
A <e>stage1</e> installation can only be performed when you have a working
Internet connection.
</p>

<table>
<tr>
  <th>Stage1</th>
  <th>Pros and Cons</th>
</tr>
<tr>
  <th>+</th>
  <ti>
    Allows you to have total control over the optimization settings and optional
    build-time functionality that is initially enabled on your system
  </ti>
</tr>
<tr>
  <th>+</th>
  <ti>Suitable for powerusers that know what they are doing</ti>
</tr>
<tr>
  <th>+</th>
  <ti>Allows you to learn more about the inner workings of Gentoo</ti>
</tr>
<tr>
  <th>-</th>
  <ti>Takes a long time to finish the installation</ti>
</tr>
<tr>
  <th>-</th>
  <ti>
    If you don't intend to tweak the settings, it is probably a waste of time
  </ti>
</tr>
<tr>
  <th>-</th>
  <ti>
    Not suitable for networkless installations
  </ti>
</tr>
</table>

<p>
<e>Stage2</e> installs allow you to skip the bootstrap process and doing this
is fine if you are happy with the optimization settings that we chose
for your particular <e>stage2</e> tarball.
</p>

<p>
A <e>stage2</e> installation can only be performed when you have a working
Internet connection.
</p>

<table>
<tr>
  <th>Stage2</th>
  <th>Pros and Cons</th>
</tr>
<tr>
  <th>+</th>
  <ti>You don't need to bootstrap</ti>
</tr>
<tr>
  <th>+</th>
  <ti>Faster than starting with stage1</ti>
</tr>
<tr>
  <th>+</th>
  <ti>You can still tweak your settings</ti>
</tr>
<tr>
  <th>-</th>
  <ti>You cannot tweak as much as with a stage1</ti>
</tr>
<tr>
  <th>-</th>
  <ti>It's not the fastest way to install Gentoo</ti>
</tr>
<tr>
  <th>-</th>
  <ti>You have to accept the optimizations we chose for the bootstrap</ti>
</tr>
<tr>
  <th>-</th>
  <ti>
    Not suitable for networkless installations
  </ti>
</tr>
</table>

<p>
Choosing to go with a <e>stage3</e> allows for the fastest install of Gentoo
Linux, but also means that your base system will have the optimization
settings that we chose for you (which to be honest, are good settings
and were carefully chosen to enhance performance while maintaining
stability). <e>stage3</e> is also required if you want to install Gentoo using
prebuilt packages or without a network connection.
</p>

<table>
<tr>
  <th>Stage3</th>
  <th>Pros and Cons</th>
</tr>
<tr>
  <th>+</th>
  <ti>Fastest way to get a Gentoo base system</ti>
</tr>
<tr>
  <th>+</th>
  <ti>Suitable for networkless installations</ti>
</tr>
<tr>
  <th>-</th>
  <ti>You cannot tweak the base system - it's built already</ti>
</tr>
<tr>
  <th>-</th>
  <ti>You cannot brag about having used stage1 or stage2</ti>
</tr>
</table>

<p>
Write down (or remember) what stage you want to use. You need this later when
you decide what LiveCD (or other installation medium) you want to use. You might
be interested to know that, if you decide to use different optimization settings
after having installed Gentoo, you will be able to recompile your entire system
with the new optimization settings.
</p>

<p>
Now take a look at the available installation media.
</p>

</body>
</subsection>
<subsection>
<title>Gentoo LiveCDs</title>
<body>

<p>
The <e>Gentoo LiveCDs</e> are bootable CDs which contain a
self-sustained Gentoo environment. They allow you to boot Linux from the CD.
During the boot process your hardware is detected and the appropriate drivers
are loaded. They are maintained by Gentoo developers.
</p>

<p>
All LiveCDs allow you to boot, setup networking, initialize your
partitions and start installing Gentoo from the Internet. However, some
LiveCDs also contain all necessary source code so you are able to install 
Gentoo without a working network configuration.
</p>

<p>
Now what do these LiveCDs contain?
</p>

</body>
</subsection>
<subsection>
<title>Gentoo's Minimal LiveCD</title>
<body>

<p>
This is a small, no-nonsense, bootable CD which sole purpose is to boot the 
system, prepare the networking and continue with the Gentoo installation. It 
does not contain any stages (or, in some cases, a single stage1 file), 
source code or precompiled packages. For example the sparc64 variant of this 
LiveCD can be found in the <path>sparc64/</path> subdirectory and is called
<c>install-sparc64-minimal-2004.1.iso</c>.
</p>

<table>
<tr>
  <th>Minimal LiveCD</th>
  <th>Pros and Cons</th>
</tr>
<tr>
  <th>+</th>
  <ti>Smallest download</ti>
</tr>
<tr>
  <th>+</th>
  <ti>Suitable for a complete architecture</ti>
</tr>
<tr>
  <th>+</th>
  <ti>
    You can do a stage1, stage2 or stage3 by getting the stage tarball off the
    net
  </ti>
</tr>
<tr>
  <th>-</th>
  <ti>
    Contains no stages, no portage snapshot, no GRP packages and therefore not 
    suitable for networkless installation
  </ti>
</tr>
</table>

</body>
</subsection>
<subsection>
<title>Gentoo's Universal LiveCD</title>
<body>

<p>
Gentoo's Universal LiveCD is a bootable CD suitable to install Gentoo without
networking. It contains a stage1 and stage3 tarballs (optimized for the
sparc architecture). For example the sparc64 variant of this CD is called
<c>install-sparc64-universal-2004.1.iso</c> and can be found in the
<path>sparc64/</path> subdirectory.
</p>

<p>
If you take a closer look into the directories you will see
that we provide a <e>Gentoo Package CD</e>. This CD (which isn't
bootable) only contains precompiled packages and can be used to install software
after a succesfull Gentoo Installation. To install Gentoo, you only 
need the Universal LiveCD, but if you want OpenOffice.org, Mozilla, KDE, GNOME 
etc. without having to compile every single one of them, you need the Packages 
CD too. Such a Packages CD for sparc64 is called
<c>packages-sparc64-2004.1.iso</c>.
</p>

<p>
You only need the Packages CD if you want to perform a stage3 with GRP
installation.
</p>

<table>
<tr>
  <th>Universal LiveCD with Packages CD</th>
  <th>Pros and Cons</th>
</tr>
<tr>
  <th>+</th>
  <ti>Packages CD is optimized to your architecture and subarchitecture</ti>
</tr>
<tr>
  <th>+</th>
  <ti>
    Packages CD provides precompiled packages for fast Gentoo installations
  </ti>
</tr>
<tr>
  <th>+</th>
  <ti>
    Contains everything you need. You can even install without a network
    connection.
  </ti>
</tr>
<tr>
  <th>-</th>
  <ti>Huge download</ti>
</tr>
</table>

</body>
</subsection>
</section>
<section>
<title>Download, Burn and Boot a Gentoo LiveCD</title>
<subsection>
<title>Downloading and Burning the LiveCDs</title>
<body>

<p>
You have chosen to use a Gentoo LiveCD (if not, then you are reading the
wrong section). We'll first start by downloading and burning the chosen
LiveCD. We previously discussed the several available LiveCDs, but where can you
find them? 
</p>

<p>
Visit one of our <uri
link="/main/en/mirrors.xml">mirrors</uri> and go to
<path>releases/sparc/2004.1/livecd</path> where the LiveCD(s) of 
your choice are located. Inside the subdirectories <path>sparc32/</path> and
<path>sparc64/</path> you'll find so-called ISO-files. 
Those are full CD images which you can write on a CD-R.
</p>

<p>
In case you wonder if your downloaded file is corrupted or not, you can
check its MD5 checksum and compare it with the MD5 checksum we provide (such as
<path>install-sparc64-minimal-2004.1.iso.md5</path>). You can check the MD5 
checksum with the <c>md5sum</c> tool under Linux/Unix or <uri
link="http://www.md5summer.org">md5summer</uri> for Windows.
</p>

<p>
Another way to check the validity of the downloaded file is to use GnuPG to
verify the cryptographic signature that we provide (the file ending with
<path>.asc</path>). Download the signature file and obtain the public key:
</p>

<pre caption="Obtaining the public key">
$ <i>gpg --keyserver pgp.mit.edu --recv-keys 19462D47</i>
</pre>

<p>
Now verify the signature:
</p>

<pre caption="Verify the cryptographic signature">
$ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
<comment>(If everything goes well, you should see something like this:)</comment>
gpg: Signature made Mon Apr 19 18:54:40 2004 EDT using DSA key ID 19462D47
gpg: Good signature from "John Davis (Gentoo Linux Developer) &lt;zhen@gentoo.org&gt;"
gpg:                 aka "Gentoo Linux Release Engineering &lt;releng@gentoo.org&gt;"
</pre>

<p>
To burn the downloaded ISO(s), you have to select raw-burning. How you
do this is highly program-dependent. We will discuss a couple of popular
tools on how to do this.
</p>

<ul>
  <li>
    With EasyCD Creator you select <c>File</c>, <c>Record CD
    from CD image</c>. Then you change the <c>Files of type</c> to <c>ISO image
    file</c>. Then locate the ISO file and click <c>Open</c>. When you click on
    <c>Start recording</c> the ISO image will be burned correctly onto the CD-R.
  </li>
  <li>
    With Nero Burning ROM, select <c>File</c>, <c>Burn CD image</c>. Set the
    type of file to <c>*.*</c> and select the ISO file. Older versions of Nero
    will tell you they don't recognize the format -- confirm here, it does
    recognize it but doesn't know it yet :) In the next dialog, set the
    following parameters:
    <ul>
      <li>Type of image: <c>Data Mode 1</c></li>
      <li>Block size: <c>2048 bytes</c></li>
      <li>File precursor and length of the image trailer: <c>0 bytes</c></li>
      <li>Scrambled: <c>no</c></li>
      <li>Swapped: <c>no</c></li>
    </ul>
    Now click on <c>OK</c> and then <c>Burn</c> (the CD-R)
  </li>
  <li>
    With cdrecord, you simply type <c>cdrecord dev=/dev/hdc</c> (replace
    <path>/dev/hdc</path> with your CD-RW drive's device path) followed
    by the path to the ISO file :)
  </li>
  <li>
    With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
    you can locate your ISO file within the 'Image to Burn' area. Finally click
    <c>Start</c>.
  </li>
</ul>

</body>
</subsection>
<subsection>
<title>Booting the SPARC LiveCD</title>
<body>

<p>
Insert the Gentoo LiveCD in the CD-ROM and boot your system. During startup,
press Stop-A to enter OpenBootPROM (OBP). Once you are in the OBP, boot from the
CD-ROM:
</p>

<pre caption="Booting the LiveCD">
ok <i>boot cdrom</i>
</pre>

<p>
You will be greeted by the SILO boot manager (on the LiveCD). Type in
<c>gentoo-2.4</c> (single-CPU kernel) or <c>gentoo-2.4-smp</c> 
(multi-CPU kernel) and press enter to continue booting the system. In the 
following example we'll boot the <c>gentoo-2.4</c> kernel.
</p>

<pre caption="Continue booting from the LiveCD">
boot: <i>gentoo-2.4</i>
</pre>

<p>
Once the LiveCD is booted, you will be greeted by a login prompt. Log on as
<c>root</c>. There is no password, so when you are asked for one, press Enter.
</p>

<pre caption="Logging on onto the LiveCD">
login: <i>root</i>
password: <comment>(Press Enter here)</comment>
</pre>

<p>
You should have a root ("#") prompt on the current console and can also switch
to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you
started on by pressing Alt-F1.
</p>

<p>
Continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
</p>

</body>
</subsection>
<subsection id="hardware">
<title>Extra Hardware Configuration</title>
<body>

<p>
If not all hardware is supported out-of-the-box, you will need to load the
appropriate kernel modules.
</p>

<p>
In the next example we try to load the <c>8139too</c> module (support for 
certain kinds of network interfaces):
</p>

<pre caption="Loading kernel modules">
# <i>modprobe 8139too</i>
</pre>

</body>
</subsection>
<subsection>
<title>Optional: Tweaking Hard Disk Performance</title>
<body>

<p>
If you are an advanced user, you might want to tweak the IDE hard disk
performance using <c>hdparm</c>. With the <c>-tT</c> options you can
test the performance of your disk (execute it several times to get a
more precise impression):
</p>

<pre caption="Testing disk performance">
# <i>hdparm -tT /dev/hda</i>
</pre>

<p>
To tweak, you can use any of the following examples (or experiment
yourself) which use <path>/dev/hda</path> as disk (substitute with your
disk):
</p>

<pre caption="Tweaking hard disk performance">
<comment>Activate DMA:</comment>                                       # <i>hdparm -d 1 /dev/hda</i>
<comment>Activate DMA + Safe Performance-enhancing Options:</comment>  # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
</pre>

</body>
</subsection>
<subsection>
<title>Optional: User Accounts</title>
<body>

<p>
If you plan on giving other people access to your installation
environment or you want to chat using <c>irssi</c> without root privileges (for
security reasons), you need to create the necessary user accounts and change 
the root password.
</p>

<p>
To change the root password, use the <c>passwd</c> utility:
</p>

<pre caption="Changing the root password">
# <i>passwd</i>
New password: <comment>(Enter your new password)</comment>
Re-enter password: <comment>(Re-enter your password)</comment>
</pre>

<p>
To create a user account, we first enter their credentials, followed by
its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
In the next example, we create a user called &quot;john&quot;.
</p>

<pre caption="Creating a user account">
# <i>useradd john</i>
# <i>passwd john</i>
New password: <comment>(Enter john's password)</comment>
Re-enter password: <comment>(Re-enter john's password)</comment>
</pre>

<p>
You can change your user id from root to the newly created user by using
<c>su</c>:
</p>

<pre caption="Changing user id">
# <i>su john -</i>
</pre>

</body>
</subsection>
<subsection>
<title>Optional: Starting the SSH Daemon</title>
<body>

<p>
If you want to allow other users to access your computer during the
Gentoo installation (perhaps because those users are going to help you
install Gentoo, or even do it for you), you need to create a user
account for them and perhaps even provide them with your root password 
(<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
</p>

<p>
To fire up the SSH daemon, execute the following command:
</p>

<pre caption="Starting the SSH daemon">
# <i>/etc/init.d/sshd start</i>
</pre>

<p>
To be able to use sshd, you first need to setup your networking. Continue with
the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
</p>

</body>
</subsection>
</section>
</sections>
