Handbook:Parts/Installation/Media/it

Requisiti Hardware
Prima di cominciare, elenchiamo quali sono i requisiti hardware necessari per installare correttamente Gentoo sulla piattaforma.

CD d'installazione minimale
Il CD di installazione minimale è un CD avviabile che contiene un ambiente Gentoo auto sostenuto. Permette agli utenti di avviare Linux dal CD. Durante questo processo viene rilevato l'hardware e i driver necessari vengono caricati. Il CD è mantenuto dagli sviluppatori di Gentoo e consente a chiunque di installare Gentoo se è presente una connessione a Internet è disponibile.

Il CD di installazione minimale è chiamato.

LiveDVD Gentoo
A volte, è creato un DVD speciale dal team Gentoo Ten Project che può essere utilizzato per installare Gentoo. Le istruzioni qui sotto riguardano il CD di installazione minimale quindi potrebbero differire un po'. Comunque, il LiveDVD (o qualsiasi altro ambiente Linux) supporta l'elevazione dei privilegi invocando o  in un terminale.

Allora cosa sono gli stages?
A stage3 tarball is an archive containing a minimal Gentoo environment, suitable to continue the Gentoo installation using the instructions in this manual. Previously, the Gentoo Handbook described the installation using one of three stage tarballs. While Gentoo still offers stage1 and stage2 tarballs, the official installation method uses the stage3 tarball. If you are interested in performing a Gentoo installation using a stage1 or stage2 tarball, please read the Gentoo FAQ on How do I install Gentoo using a stage1 or stage2 tarball?

I tarball stage3 possono esserre scaricati da da qualunque dei mirror ufficiali Gentoo. I file stage vengono aggiornati frequentemente e non sono inclusi nei CD di installazione.

Scaricare il CD
Il mezzo di installazione predefinito che viene usato per installare Gentoo Linux è il CD minimale, il quale ospita un ambiente Gentoo leggero con gli strumenti necessari alla corretta installazione di Gentoo Linux. Le immagini stesse dei CD possono essere scaricate dalle pagine di download (raccomandato) o manualmente sfogliando la cartella delle ISO di uno dei tanti mirror disponibili.

Se si ha scelto di scaricarlo da un mirror, il CD d'installazione minimale può essere trovato come segue:


 * 1) Andare nella directory.
 * 2) Selezionare la cartella in base all'architettura (per esempio ).
 * 3) Selezionare la directory.
 * 4) Per le architetture  e  selezionare rispettivamente o la directory  o la directory . Per tutte le altre architetture fare riferimento alla directory.

Qui dentro, il file del CD d'installazione è quello con il suffisso. Per esempio, dare un'occhiata alla seguente lista:

In the above example, the file is the minimal installation CD itself. But as can be seen, other related files exist as well:


 * A file which is a text file listing all files available on the installation CD. This file can be useful to verify if particular firmware or drivers are available on the installation CD before downloading it.
 * A file which contains the hash of the ISO file itself, in various hashing formats/algorithms. This file can be used to verify if the downloaded ISO file is corrupt or not.
 * A file which not only contains the hash of the ISO file (like the  file), but also a cryptographic signature of that file. This can be used to both verify if the downloaded ISO file is corrupt or not, as well as verify that the download is indeed provided by the Gentoo Release Engineering team and has not been tampered with.

Ignore the other files available at this location for now - those will come back when the installation has proceeded further. Download the file and, if verification of the download is wanted, download the   file for the  file as well. The file does not need to be downloaded as the installation instructions will not refer to this file anymore, and the  file should contain the same information as the  file, except that the latter also contains a signature on top of it.

Verifying the downloaded files
Through the and  files, the validity of the ISO file can be confirmed using the right set of tools. This verification is usually done in two steps:


 * 1) First, the cryptographic signature is validated to make sure that the installation file is provided by the Gentoo Release Engineering team
 * 2) If the cryptographic signature validates, then the checksum is verified to make sure that the downloaded file itself is not corrupted

Microsoft Windows based verification
On a Microsoft Windows system, chances are low that the right set of tools to verify checksums and cryptographic signatures are in place.

To first verify the cryptographic signature, tools such as GPG4Win can be used. After installation, the public keys of the Gentoo Release Engineering team need to be imported. The list of keys is available on the signatures page. Once imported, the user can then verify the signature of the file.

The checksum itself can be verified using the Hashcalc application, although many others exist as well. Most of the time, these tools will show the user the calculated checksum, and the user is requested to verify this checksum with the value that is inside the file.

Linux based verification
On a Linux system, the most common method for verifying the cryptographic signature is to use the software. With this package installed, the following commands can be used to verify the cryptographic signature of the file.

First, download the right set of keys as made available on the signatures page:

Next verify the cryptographic signature of the file:

To be absolutely certain that everything is valid, verify the fingerprint shown with the fingerprint on the Gentoo signatures page.

With the cryptographic signature validated, next verify the checksum to make sure the downloaded ISO file is not corrupted. The file contains multiple hashing algorithms, so one of the methods to validate the right one is to first look at the checksum registered in the  file. For instance, to get the SHA512 checksum:

In the above output, two SHA512 checksums are shown - one for the file and one for its accompanying  file. Only the first checksum is of interest, as it needs to be compared with the calculated SHA512 checksum which can be generated as follows:

As both checksums match, the file is not corrupted and the installation can continue.

Burning
Of course, with just an ISO file downloaded, the Gentoo Linux installation cannot be started. The ISO file needs to be burned on a CD to boot from, and in such a way that its content is burned on the CD, not just the file itself. Below a few common methods are described - a more elaborate set of instructions can be found in Our FAQ on burning an ISO file.

Burning with Microsoft Windows
On Microsoft Windows, a number of tools exist that support burning ISOs on CDs.


 * With EasyCD Creator, select, . Then change the to ISO image file. Then locate the ISO file and click . After clicking on  the ISO image will be burned correctly onto the CD-R.
 * With Nero Burning ROM, cancel the wizard which automatically pops up and select from the  menu. Select the image to burn and click . Now hit the  button and watch the brand new CD being burnt.

Burning with Linux
On Linux, the ISO file can be burned on a CD using the command, part of the  package.

For instance, to burn the ISO file on the CD in the device (this is the first CD device on the system - substitute with the right device file if necessary):

Users that prefer a graphical user interface can use K3B, part of the package. In K3B, go to and use. Then follow the instructions provided by K3B.

Extra hardware configuration
When the Installation CD boots, it tries to detect all the hardware devices and loads the appropriate kernel modules to support the hardware. In the vast majority of cases, it does a very good job. However, in some cases it may not auto-load the kernel modules needed by the system. If the PCI auto-detection missed some of the system's hardware, the appropriate kernel modules have to be loaded manually.

In the next example the 8139too module (which supports certain kinds of network interfaces) is loaded:

Opzionale: Account utenti
If other people need access to the installation environment, or there is need to run commands as a non-root user on the installation CD (such as to chat using without root privileges for security reasons), then an additional user account needs to be created and the root password set to a strong password.

Per cambiare la pssword di root, usa il comando :

Per creare un account utente, inserire le sue credenziali, seguite dalla password dell'account. Sono usati i comandi e  per queste operazioni.

Nel prossimo esempio, un utente chiamato "luca" è creato:

Per cambiare utente da quello attuale (root) a quello appena creato, usa il comando :

TTYs
To view the Gentoo handbook during the installation, first create a user account as described above. Then press + to go to a new terminal.

During the installation, the command can be used to browse the Gentoo handbook - of course only from the moment that the Internet connection is working.

Per tornare al terminale di origine, premere +.

GNU Screen
The GNU Screen utility is installed by default on official Gentoo installation media. It may be more efficient for the seasoned Linux enthusiast to use to view installation instructions via split panes rather than the multiple TTY method mentioned above.

Opzionale: Avviare il demone SSH
Per consentire ad altri utenti di accedere al sistema durante l'installazione (magari per aiutare durante l'installazione, o addirittura farla a distanza), deve essere creato un utente (come prima descritto nella documentazione) e il demone SSH avviato.

Per avviare il demone SSH, eseguire questo comando:

Per poter usare sshd, la rete deve funzionare correttamente. Continua con Configurazione di rete.