Preparazione all’installazione
Questo capitolo descrive i passaggi che devi seguire prima di iniziare l’installazione. Non è necessario seguire ogni passaggio alla lettera – ad esempio, se prevedi di utilizzare le impostazioni di installazione predefinite, non è necessario raccogliere informazioni di sistema come le etichette/UUID dei dispositivi disco o informazioni di rete come l’indirizzo IP del sistema. Tuttavia, è comunque consigliabile leggere questo capitolo, in quanto descrive anche i tipi disponibili di supporti di installazione e come preparare i supporti di avvio e le fonti di installazione.
Aggiornare o installare?
Se hai già Fedora installato e vuoi aggiornare la tua installazione alla versione attuale, ci sono due modi principali per farlo:
- Aggiornamento automatico usando dnf system upgrade
-
Il modo preferito per aggiornare il sistema è un aggiornamento automatico utilizzando l’utilità dnf system upgrade. Per informazioni su come eseguire un aggiornamento automatico, consulta il Fedora Wiki dnf system upgrade.
- Reinstallazione Manuale
-
You can upgrade to the latest version of Fedora manually instead of relying on dnf system upgrade. This involves booting the installer as if you were performing a clean installation, letting it detect your existing Fedora system, and overwriting the root partition while preserving data on other partitions and volumes. The same process can also be used to reinstall the system, if you need to. For detailed information, see Manual System Upgrade or Reinstallation.
Esegui sempre il backup dei tuoi dati prima di eseguire un aggiornamento o reinstallare il sistema, indipendentemente dal metodo scelto. |
Preparazione del supporto di avvio
Le immagini di Fedora sono ISO ibride
e possono essere usate per creare supporti di installazione sia con dischi ottici che USB, per l’avvio su sistemi sia BIOS che UEFI.
Fedora Media Writer
Fedora Media Writer has been significantly improved and is now the official, tested and supported way to make bootable media. Fedora Media Writer supports Linux, Mac, and Windows. It is an easy way to make bootable USB media to install Fedora (or other operating systems). Using Fedora Media Writer is strongly encouraged, although other USB media creation software can work as well.
Some of the new additions to Fedora Media Writer are that Fedora Workstation and Server are easily and quickly accessible from the selection on the main screen. Further choices are available if you select the button below Custom OS. This offers a selection of various Fedora Spins, such as XFCE or Mate.
Historically, universal USB creation tools, such as Unetbootin, are a popular way to create USB installers from ISOs intended for optical media. They typically create a filesystem on the USB drive by extracting files from the image, and writing syslinux bootloader to the device.
These methods circumvent the boot-loader configuration built into Fedora images, which are pre-partitioned and designed to boot on UEFI systems with SecureBoot enabled as well as BIOS systems, and thus they do not produce consistent results with Fedora images, especially on UEFI systems.
I migliori risultati sono ottenuti da utility che utilizzano un metodo di scrittura diretta e non modificano l’immagine di Fedora.
Always think twice before writing an image to the device. The media creation methods described in this article are destructive. All data on the USB stick are deleted during the process, so make sure you have a back up of the data on the USB stick. Double check that you have selected correct device to write the image to! |
Installing and running Fedora Media Writer
On Fedora
On Fedora 25 or later, Fedora Media Writer is available in the default repository. You can use dnf
to install the package.
-
To install the Fedora Media Writer using:
$ sudo dnf install mediawriter
-
Run the Fedora Media Writer:
$ mediawriter
or in Gnome 3 select Activities, then select Utilities, and then click on Fedora Media Writer.
On other Linux distributions
The best way to install Fedora Media Writer on various Linux distributions is to use the pre-built Flatpak package. The package can be obtained from the official Flatpak repository Flathub.org.
-
To setup Flatpak on your Linux system, follow the guidelines on the Flatpak documentation page.
-
Run the application:
$ sudo mediawriter
On Windows
-
Download the latest Windows Installer file from GetFedora.org. The server automatically detects the running system and offers you the correct installation file for your Windows version.
-
Run the installation by double clicking the installer, and then continue through the set-up wizard. The Wizard lets you customize the software’s installation if you choose to.
-
Run the application by clicking on a launcher.
In Windows 8 and 10, the Fedora Media Writer launcher will be placed in the All apps menu under F. In Windows 10, you can just type Fedora Media Writer in the search box on the task bar.
On MacOS
-
Download the latest Macintosh Disk Image (the package will have a .dmg extension) from GetFedora.org. The server automatically detects the running system and offers a correct package for your MacOS.
-
Open the
.dmg
file and copy themediawriter
file into your applications folder. -
Navigate to your applications directory, and then launch the Fedora Media Writer application.
-
Select "Open" to run the program, when MacOS will ask you to confirm the action.
Writing the ISO image to the USB Media.
-
Seleziona l’Edizione di Fedora per la quale desideri creare un’unità USB avviabile.
Figure 1. Schermata principale di Fedora Media Writer: Scegli la tua Edizione di FedoraThe main selection lets you choose one of the default Fedora editions, Fedora Workstation or Server. Fedora Media Writer displays more details about the edition before you can proceed with downloading the image and the USB creation. You can choose a different architecture, if you select Other variants.
-
Select "Create Live USB" to proceed.
Figure 2. Informazioni sulla distro di Fedora Media WriterFedora Media Writer will automatically download the ISO for you. If you have downloaded the ISO before and placed it in the Downloads directory, it will be immediately available to use.
Figure 3. Download automatico di Fedora Media Writer -
Plug in a USB drive on which you want to create the bootable media.
-
To write the image onto the media, click the red Write to disk button.
Figure 4. Fedora Media Writer: Scrittura su dispositivo USB
Other methods to create a live USB
Using the Fedora Media Writer is highly recommended for everybody, because it offers a reliable way to create a live USB stick for Fedora installation.
However, some experienced users may prefer to go through the creation process manually. If you decide to do so, you have to download the installation images and use an application to write them onto the USB stick.
If you have downloaded and verified the installation images manually, you still can write them onto the USB stick using Fedora Media Writer. |
Download delle immagini di avvio e di installazione
The Fedora Project offers different Editions tailored for some specific use cases. Choose the Fedora Edition best for you, or you can build your own by customizing after the installation, or by using a kickstart file as described in Creating a Kickstart File. Kickstart installation requires the netinstall
media type, or a direct installation booting method such as PXE; kickstarts are not supported with live images.
Read more about Fedora Workstation, Fedora Cloud, Fedora Server and the available media types in Downloading Fedora.
You can also choose a Fedora Spin featuring favorite alternative desktops or tools for specialized tasks at https://spins.fedoraproject.org.
Verifica dell’immagine scaricata
Poiché errori di trasmissione o altri problemi possono corrompere l’immagine di Fedora che hai scaricato, è importante verificare l’integrità del file. Dopo la creazione delle immagini, viene eseguita un’operazione sul file che produce un valore chiamato checksum
utilizzando un complesso algoritmo matematico. L’operazione è sufficientemente complessa da far sì che qualsiasi modifica al file originale produca un checksum diverso.
Calcolando il checksum
dell’immagine sul tuo computer e confrontandolo con il checksum
originale, puoi verificare che l’immagine non sia stata manomessa o corrotta. I valori originali del checksum sono forniti su https://getfedora.org/security/ e sono firmati con gpg per dimostrarne l’integrità.
Verifica dei checksum su sistemi Windows
-
Download the Fedora image of your choice from https://fedoraproject.org/get-fedora and the corresponding checksum file from https://getfedora.org/security/
-
Apri una sessione powershell.
-
Spostati nella directory contenente i file scaricati.
> cd $HOME\Downloads\ > ls Directory: C:\Utenti\Pete\Download Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 11/25/2014 12:39 PM 272 Fedora-Server-21-x86_64-CHECKSUM -a--- 11/25/2014 12:39 PM 2047868928 Fedora-Server-DVD-x86_64-21.iso
-
Carica le risorse necessarie per calcolare il checksum.
> $image = "Fedora-Server-DVD-x86_64-21.iso" > $checksum_file = "Fedora-Server-21-x86_64-CHECKSUM" > $sha256 = New-Object -TypeName System.Security.Cryptography.sha256CryptoServiceProvider > $expected_checksum = ((Get-Content $checksum_file | Select-String -Pattern $image) -split " ")[0].ToLower()
-
Calcola il checksum dell’immagine scaricata. Potrebbe volerci un po' di tempo!
> $download_checksum = [System.BitConverter]::ToString($sha256.ComputeHash([System.IO.File]::ReadAllBytes("$PWD\$image"))).ToLower() -replace '-', ''
-
Confronta il checksum calcolato con quello previsto.
> echo "Download Checksum: $download_checksum" > echo "Expected Checksum: $expected_checksum" > if ( $download_checksum -eq "$expected_checksum" ) { echo "Checksum test passed!" } else { echo "Checksum test failed." }
Verifica dei checksum su sistemi Linux e OSX
-
Download the Fedora image of your choice from https://fedoraproject.org/get-fedora and the corresponding checksum file from https://getfedora.org/security/
-
Apri una finestra di terminale e naviga nella directory con i file scaricati.
$ cd ~/Downloads
-
Usa l’utilità appropriata per verificare il checksum dell’immagine.
-
Per Linux:
$ sha256sum -c *CHECKSUM
-
Per OSX:
$ grep '^SHA256' *-CHECKSUM | awk -F '[()=]' '{ print $4 " " $2 }' | shasum -a 256 -c
-
Writing the images to USB media
Creazione di supporti USB con Dischi di GNOME
-
Su un sistema con GNOME, o con il pacchetto gnome-disk-utility installato, apri
Dischi
usando il menu di sistema. -
Fai clic sul tuo dispositivo USB nella colonna di sinistra.
-
Fai clic sull’icona del menu nell’angolo in alto a destra della finestra e scegli l’opzione
Ripristina immagine disco
. -
Naviga fino al tuo file immagine e fai clic su
Avvia ripristino
. Dopo qualche minuto, segnalerà che il processo è completato e il tuo supporto di installazione sarà pronto per l’uso.
Creazione di supporti USB da riga di comando Linux
-
Apri una finestra di terminale e inserisci l’unità USB.
-
Trova il
nodo dispositivo
assegnato all’unità. Nell’esempio seguente, all’unità viene assegnatosdd
.$ dmesg|tail [288954.686557] usb 2-1.8: New USB device strings: Mfr=0, Product=1, SerialNumber=2 [288954.686559] usb 2-1.8: Product: USB Storage [288954.686562] usb 2-1.8: SerialNumber: 000000009225 [288954.712590] usb-storage 2-1.8:1.0: USB Mass Storage device detected [288954.712687] scsi host6: usb-storage 2-1.8:1.0 [288954.712809] usbcore: registered new interface driver usb-storage [288954.716682] usbcore: registered new interface driver uas [288955.717140] scsi 6:0:0:0: Direct-Access Generic STORAGE DEVICE 9228 PQ: 0 ANSI: 0 [288955.717745] sd 6:0:0:0: Attached scsi generic sg4 type 0 [288961.876382] sd 6:0:0:0: sdd Attached SCSI removable disk
-
Use the dd utility to write the image.
# dd if=/path/to/Fedora-Live-Security-x86_64-21.iso of=/dev/sdd
Pay extreme attention to the source (
if=
) and target (of=
) device. Thedd
command destroys all data on the target device. If you made a mistake, you could lose important data.
Creazione di un CD o DVD di avvio
Oltre a creare un’unità flash USB avviabile, puoi anche utilizzare le immagini ISO fornite per creare supporti ottici avviabili (un CD o DVD). Questo approccio potrebbe essere necessario quando si installa Fedora su un sistema più vecchio che non può avviarsi da USB.
I passaggi esatti da compiere per masterizzare un CD o DVD avviabile da un’immagine ISO variano a seconda del software di masterizzazione utilizzato. Questa procedura offre solo una panoramica generale. |
-
Inserisci un CD o DVD vuoto nel masterizzatore CD o DVD del tuo sistema.
-
Apri il software di masterizzazione del tuo sistema - ad esempio, Brasero su sistemi Fedora con ambiente desktop GNOME, o Nero su sistemi Windows. Nel menu principale del software, trova un’opzione che ti permetta di masterizzare un’immagine ISO su un disco. Ad esempio, in Brasero, questa opzione è
Masterizza immagine
nel menu principale sul lato sinistro della finestra. -
Quando richiesto, seleziona l’immagine ISO di Fedora da masterizzare e il masterizzatore CD o DVD con un disco vuoto all’interno (se hai più di un’unità).
-
Conferma la tua selezione e attendi che il disco venga masterizzato.
Want to help? Learn how to contribute to Fedora Docs ›