Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "Md5Sum"
Differenze tra le versioni 2 e 26 (in 24 versioni)
Versione 2 del 23/04/2009 20.30.20
Dimensione: 7651
Commento:
Versione 26 del 31/07/2011 11.07.44
Dimensione: 11402
Autore: NaldiniPaolo
Commento: stile
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 3: Linea 3:
[[BR]]
[[Indice]]
<<BR>>
<<WikiBanner(ArticoloInTraduzione)>>
<<BR>>
<<Indice>>

||<tablestyle="text-align: justify; width:100%;" style="border:none;" 5%><<Immagine(Icone/Piccole/note.png,,center)>> ||<style="padding:0.5em; border:none;">''Per verificare la '''Md5Sum''' della `iso` di '''Ubuntu''' fare riferimento a [[Installazione/MD5Sum|questa pagina]]''. ||
Linea 8: Linea 13:
The program '''''md5sum''''' is designed to verify data integrity using the MD5 (Message-Digest algorithm 5) 128-bit cryptographic hash. MD5 hashes used properly can confirm both file integrity and authenticity. ##The program '''''md5sum''''' is designed to verify data integrity using the MD5 (Message-Digest algorithm 5) 128-bit cryptographic hash. MD5 hashes used properly can confirm both file integrity and authenticity.
Linea 10: Linea 15:
In terms of integrity, an MD5 hash comparison detects changes in files that would cause errors. The possibility of changes (errors) is proportional to the size of the file; the possibility of errors increase as the file becomes larger. It is a very good idea to run an MD5 hash comparison check when you have a file like an operating system install CD that has to be 100% correct. Il programma '''''md5sum''''' è progettato per verificare l'integrità dei dati usando l'hash crittografico a 128 bit MD5 (Message-Digest algorithm 5). Utilizzando in modo appropriato gli hash MD5 è possibile confermare sia l'integrità dei dati che l'autenticità.
Linea 12: Linea 17:
In terms of security, cryptographic hashes such as MD5 allow for authentication of data obtained from insecure mirrors. The MD5 hash must be signed or come from a secure source (an HTTPS page) of an organization you trust.
See the MD5SUMS file for the release you're using under http://releases.ubuntu.com (and optionally the [[GnuPrivacyGuardHowto|PGP]] signatures in the MD5SUMS.gpg file), or refer to the secure UbuntuHashes page for the official list of Ubuntu MD5 hashes.
##In terms of integrity, an MD5 hash comparison detects changes in files that would cause errors. The possibility of changes (errors) is proportional to the size of the file; the possibility of errors increase as the file becomes larger. It is a very good idea to run an MD5 hash comparison check when you have a file like an operating system install CD that has to be 100% correct.
Linea 15: Linea 19:
While security flaws in the MD5 algorithm have been uncovered, MD5 hashes are still useful when you trust the organization that produces them. Moving to more secure hashes like SHA-256 and Whirlpool is under [[https://bugs.launchpad.net/ubuntu-website/+bug/245953|discussion]]. ##tolto quel (errori) tra parantesi, IMHO era fuorviante
In termini di integrità, un confronto di hash MD5 rileva nei file quelle differenze che potrebbero essere causa di errori. La possibilità che ci siano differenze aumenta in base alla dimensione del file. Confrontare l'hash MD5 è consigliabile, per esempio, per verificare l'integrità di un CD d'installazione garantendo così un'installazione sicura.
Linea 17: Linea 22:
= md5sum =
The official '''md5sum page''' for Ubuntu, Kubuntu, Edubuntu and Xubuntu is UbuntuHashes.
##In terms of security, cryptographic hashes such as MD5 allow for authentication of data obtained from insecure mirrors. The MD5 hash must be signed or come from a secure source (an HTTPS page) of an organization you trust.
##See the MD5SUMS file for the release you're using under http://releases.ubuntu.com (and optionally the [[Sicurezza/GnuPg|PGP]] signatures in the MD5SUMS.gpg file), or refer to the secure UbuntuHashes page for the official list of Ubuntu MD5 hashes.

In termini di sicurezza, gli hash crittografici come MD5 consentono l'autenticazione di dati ottenuti da mirror non sicuri. L'hash MD5 deve essere firmato o provenire da una sorgente sicura (una pagina HTTP) di un'organizzazione in cui si ripone fiducia.
Consultare il file MD5SUMS per il rilascio che si sta usando presso il [[http://releases.ubuntu.com|seguente indirizzo]] e opzionalmente le firme [[Sicurezza/GnuPg|PGP]] nel file `MD5SUMS.gpg`.

##While security flaws in the MD5 algorithm have been uncovered, MD5 hashes are still useful when you trust the organization that produces them. Moving to more secure hashes like SHA-256 and Whirlpool is under [[https://bugs.launchpad.net/ubuntu-website/+bug/245953|discussion]].

Sebbene siano state scoperte delle falle di sicurezza nell'algoritmo MD5, gli hash MD5 risultano ancora utili qualora si abbia fiducia nell'organizzazione che li produce. È in [[https://bugs.launchpad.net/ubuntu-website/+bug/245953|discussione]] il passaggio ad hash più sicuri come SHA-256 e Whirlpool.

##The official '''md5sum page''' for Ubuntu, Kubuntu, Edubuntu and Xubuntu is UbuntuHashes.

||<tablestyle="text-align: justify; width:100%;" style="border:none;" 5%><<Immagine(Icone/Piccole/note.png,,center)>> ||<style="padding:0.5em; border:none;">''Per verificare la '''Md5Sum''' della `iso` di '''Ubuntu''' fare riferimento a [[Installazione/MD5Sum|questa pagina]]''. ||
Linea 21: Linea 37:
= MD5SUM on Linux =
Most Linux distributions come with the {{{md5sum}}} utility so installation is usually unnecessary. We are going to use the Ubuntu 8.10 LiveCD for the following example:
= MD5SUM su Linux =
##Most Linux distributions come with the {{{md5sum}}} utility so installation is usually unnecessary. We are going to use the Ubuntu 8.10 LiveCD for the following example:
Linea 24: Linea 40:
First go to the correct directory to check a downloaded ''iso'' file: La maggior parte delle distribuzioni Linux includono il programma di utilità '''md5sum''' perciò di solito non è necessario installarlo. Qui di seguito è mostrato un esempio relativo al LiveCD di Ubuntu 11.04.

##First go to the correct directory to check a downloaded `.iso` file:
## {{{
##cd download_directory}}}
##Then run the following command from within the download directory.
## {{{
##md5sum ubuntu-8.10-desktop-i386.iso}}}
##The md5sum should print out a single line after calculating the hash:
## {{{
##24ea1163ea6c9f5dae77de8c49ee7c03 ubuntu-8.10-desktop-i386.iso}}}

 * Per prima cosa spostarsi nella directory corretta per verificare un file `.iso` scaricato:
Linea 26: Linea 54:
cd download_directory}}}
Then run the following command from within the download directory.
cd directory_di_scaricamento}}}
 * Quindi, una volta nella directory, digitare il seguente comando:
Linea 29: Linea 57:
md5sum ubuntu-8.10-desktop-i386.iso}}}
The md5sum should print out a single line after calculating the hash:
md5sum ubuntu-11.04-desktop-i386.iso}}}
 * Il programma '''md5sum''' dovrebbe stampare una singola riga dopo il calcolo dell'hash:
Linea 32: Linea 60:
24ea1163ea6c9f5dae77de8c49ee7c03 ubuntu-8.10-desktop-i386.iso}}} 8b1085bed498b82ef1485ef19074c281 ubuntu-11.04-desktop-i386.iso}}}
Linea 34: Linea 62:
Compare the hash (the alphanumeric string on left) that your machine calculated with the corresponding hash on the UbuntuHashes page. When both hashes match exactly then the downloaded file is almost certainly intact. If the hashes do not match, then there was a problem with either the download or a problem with the server. You should download the file again from either the same mirror, or from a different mirror if you suspect a server error. If you continuously receive an erroneous file from a server, please be kind and notify the webmaster of that mirror so they can investigate the issue. ##Compare the hash (the alphanumeric string on left) that your machine calculated with the corresponding hash on the UbuntuHashes page. When both hashes match exactly then the downloaded file is almost certainly intact. If the hashes do not match, then there was a problem with either the download or a problem with the server. You should download the file again from either the same mirror, or from a different mirror if you suspect a server error. If you continuously receive an erroneous file from a server, please be kind and notify the webmaster of that mirror so they can investigate the issue.
Linea 36: Linea 64:
If you have the correct md5sum in a file in the same directory as the iso, you can then check the md5sum semi-automatically with md5sum. You will typically find the md5sum file on the download page where you obtained your iso. Ubuntu distributes the md5sums in a file "MD5SUMS" on this file is on the download page. Comparare l'hash (la stringa alfanumerica a sinistra) calcolato dal proprio computer con il corrispondente hash presente in [[https://help.ubuntu.com/community/UbuntuHashes|questa pagina]]. Se gli hash corrispondono in modo esatto, allora il file scaricato è quasi certamente integro. Se gli hash non corrispondono significa che si è verificato un problema nello scaricare il file o un problema con il server. In questo caso è necessario scaricare nuovamente il file, dallo stesso mirror oppure da un mirror differente se si sospetta un errore nel server. Qualora si riceva continuamente un file errato da un server è opportuno e gradito segnalare tale problema al webmaster del mirror, in modo che si possa investigare.

##If you have the correct md5sum in a file in the same directory as the iso, you can then check the md5sum semi-automatically with md5sum. You will typically find the md5sum file on the download page where you obtained your iso. Ubuntu distributes the md5sums in a file "MD5SUMS" on this file is on the download page.

Se l'hash MD5 corretto è contenuto in un file all'interno della stessa directory del file .`iso`, con '''md5sum''' è possibile verificare l'hash in modo semi-automatico. Di solito è possibile trovare il file md5sum nella stessa pagina da cui si è scaricato il file. Ubuntu distribuisce gli hash MD5 all'interno di un file dal nome `MD5SUMS`.

= MD5SUM su Mac OS X =
##Follow the instructions for [[#linux|MD5SUM on Linux]], except use the command "md5" instead of "md5sum".

Seguire le istruzioni per ]]#linux||MD5SUM|su Linux]], fatta eccezione l'uso del comando {{{md5}}} invece di {{{md5sum}}}.


È possibile inoltre trovare l'hash MD5 usando come sistema operativo OSX attraverso il programma Utility Disco. Esso è raggiungibile dalla cartella Applicazioni oppure dal menù Go del Finder, sotto la voce Utility. Aprire Utility Disco e aspettare che vengano visualizzate le informazioni dei vostri dischi. Spostarsi nella cartella dove è stata scaricata l'immagine di Ubuntu e trascinare essa nella dock del programma Utility Disco. Per questo esempio si prenderà in considerazione l'immagine di Ubuntu 11.04 versione Desktop. L'immagine disco dovrebbe comparire nella colonna sinistra del programma. Andare nel menù Immagini->Checksum->MD5. Utility Disco riporterà il seguente risultato:
{{{
Checksum of "ubuntu-11.04-desktop-i386.iso" completed. MD5 8b1085bed498b82ef1485ef19074c281
}}}

Verificare il risultato ottenuto con i corrispondenti hash presenti in [[https://help.ubuntu.com/community/UbuntuHashes|questa pagina]].

Se l'hash non corrisponde significa che c'è stato un problema con il download o son il server. È consigliato scaricare di nuovo l'immagine disco, scegliendo magari un mirror differente.

= Solaris =

Utilizzare il comando digest(1), specificando l'algoritmo md5 con il flag -a. Digitare in un terminale il seguente comando:
Linea 39: Linea 90:
md5sum -c MD5SUMS
}}}

= MD5SUM on Mac OS X =
Follow the instructions for [[#linux|MD5SUM on Linux]], except use the command "md5" instead of "md5sum".

You can also find the MD5 hash using OS X's built in Disk Utility program. You can find it in the Utilities folder in Applications, or by choosing "Utilities" from the Finder's "Go" menu. Open Disk Utility and wait for it to gather information about your disks. Go to the directory where you downloaded the Ubuntu disk image, and drag it to Disk Utility's dock icon. For this example we'll be checking the Ubuntu 8.10 Desktop install CD. The disk image should show up on the left-hand side of Disk Utility, underneath your physical drives. Go to the "Images" menu and select Checksum > MD5. Be sure to choose "MD5" and NOT "MD5 image checksum", as they are not the same and will give you different results. Disk Utility will return, in this case, {{{"Checksum of "ubuntu-8.10-desktop-i386.iso" completed. MD5 24ea1163ea6c9f5dae77de8c49ee7c03"}}} Compare the MD5 Disk Utility gives you with the corresponding hash on the UbuntuHashes page. When both hashes match exactly then the downloaded file is almost certainly intact.

If the hashes do not match, then there was a problem with either the download or a problem with the server. You should download the file again from either the same mirror, or from a different mirror if you suspect a server error. If you continuously receive an erroneous file from a server, please be kind and notify the webmaster of that mirror so they can investigate the issue.

= digest(1) on Solaris =
Use the Solaris digest(1) command, specifying the md5 algorithm with the -a flag. For instance:
 {{{
Linea 55: Linea 93:
= MD5SUM on Windows = = MD5SUM su Windows =
Linea 66: Linea 104:
  {{attachment:winMD5Sum.png}}   {{{{attachment:winMD5Sum.png}}}}
Linea 68: Linea 106:
= MD5SUM on CD =
To see if your Ubuntu CD was corrupted when burned to the disk, see the [[CDIntegrityCheck]] page, or follow the instructions below.
Linea 71: Linea 107:
First mount the CD, if not already mounted: = MD5SUM su CD =

Per verificare che il CD di Ubuntu non è danneggiato una volta masterizzato, seguire le istruzioni qui riportate:

 * Per prima cosa montare il CD, se non è già montato:
Linea 75: Linea 115:
Then use the supplied md5sum file on the CD:  * Utilizzare il file md5sum fornito dal CD, digitando il seguente comando:
Linea 80: Linea 120:
Be patient, it takes some time. If the command outputs any errors, you'll know that either the burn was bad or the .iso is corrupt. Please note that this method does not verify authenticity unless the hash of the iso file is compared to the hash at the secure UbuntuHashes page. L'operazione richiederà alcuni minuti. Se verranno visualizzati degli errori, l'immagine .iso è danneggiata. Questa procedura serve solamente per verificare l'autenticità dell'hash.
Linea 82: Linea 122:
Finally, you can unmount the CD after leaving the folder:
 {{{
cd /
sudo umount /dev/hda}}}
= MD5SUM di un dispositivo masterizzato =
Linea 87: Linea 124:
= MD5SUM of burnt media = A seconda di come si masterizza un'immagine ISO, è possibile controllare direttamente il dispositivo masterizzato. Digitare il seguente comando per verificare se l'immagine ISO è corretta:
Linea 89: Linea 126:
Depending on how you burn you ISOs you can check the burnt media directly. Start by checking that the ISO file is correct: {{{
$ grep ubuntu-8.10-desktop-i386.iso MD5SUMS | tee /proc/self/fd/2 | md5sum --check -
}}}
Linea 91: Linea 130:
 {{{
$ grep ubuntu-8.10-desktop-i386.iso MD5SUMS | tee /proc/self/fd/2 | md5sum --check -
Si dovrebbe ricevere un messaggio simile al seguente:
{{{
Linea 95: Linea 134:
 }}} }}}
Linea 97: Linea 136:
Now burn it from Nautilus (right-click, "Write to Disc ..."). To check the media directly: A questo punto masterizzare l'immagine da Nautilus. Per controllare direttamente il dispositivo digitare il seguente comando:
Linea 99: Linea 138:
 {{{ {{{
Linea 101: Linea 140:
}}}

Il messaggio di output sarà simile al seguente:

{{{
Linea 102: Linea 146:
 }}} }}}
Linea 104: Linea 148:
where "/dev/cdrom" is typically a soft-link to your CD/DVD reader/burner. Note that the checksum matches. Il percorso "/dev/cdrom/" è solitamente la posizione del proprio lettore CD/DVD.
Linea 106: Linea 150:
= External Links =
 * [[http://en.wikipedia.org/wiki/Cryptographic_hash_function|Wikipedia's Cryptographic Hash Entry]]
Linea 109: Linea 151:
VerifyIsoHowto = Collegamenti esterni =

 * [[http://en.wikipedia.org/wiki/Cryptographic_hash_function|Wikipedia in inglese]]
 * [[https://help.ubuntu.com/community/HowToMD5SUM|Documento originale]]


Articolo in traduzione: Questo articolo è in fase di traduzione, le informazioni contenute protrebbero essere incomplete o errate.

Per verificare la Md5Sum della iso di Ubuntu fare riferimento a questa pagina.

Introduzione

Il programma md5sum è progettato per verificare l'integrità dei dati usando l'hash crittografico a 128 bit MD5 (Message-Digest algorithm 5). Utilizzando in modo appropriato gli hash MD5 è possibile confermare sia l'integrità dei dati che l'autenticità.

In termini di integrità, un confronto di hash MD5 rileva nei file quelle differenze che potrebbero essere causa di errori. La possibilità che ci siano differenze aumenta in base alla dimensione del file. Confrontare l'hash MD5 è consigliabile, per esempio, per verificare l'integrità di un CD d'installazione garantendo così un'installazione sicura.

In termini di sicurezza, gli hash crittografici come MD5 consentono l'autenticazione di dati ottenuti da mirror non sicuri. L'hash MD5 deve essere firmato o provenire da una sorgente sicura (una pagina HTTP) di un'organizzazione in cui si ripone fiducia. Consultare il file MD5SUMS per il rilascio che si sta usando presso il seguente indirizzo e opzionalmente le firme PGP nel file MD5SUMS.gpg.

Sebbene siano state scoperte delle falle di sicurezza nell'algoritmo MD5, gli hash MD5 risultano ancora utili qualora si abbia fiducia nell'organizzazione che li produce. È in discussione il passaggio ad hash più sicuri come SHA-256 e Whirlpool.

Per verificare la Md5Sum della iso di Ubuntu fare riferimento a questa pagina.

MD5SUM su Linux

La maggior parte delle distribuzioni Linux includono il programma di utilità md5sum perciò di solito non è necessario installarlo. Qui di seguito è mostrato un esempio relativo al LiveCD di Ubuntu 11.04.

  • Per prima cosa spostarsi nella directory corretta per verificare un file .iso scaricato:

    cd directory_di_scaricamento
  • Quindi, una volta nella directory, digitare il seguente comando:
    md5sum ubuntu-11.04-desktop-i386.iso
  • Il programma md5sum dovrebbe stampare una singola riga dopo il calcolo dell'hash:

    8b1085bed498b82ef1485ef19074c281 ubuntu-11.04-desktop-i386.iso

Comparare l'hash (la stringa alfanumerica a sinistra) calcolato dal proprio computer con il corrispondente hash presente in questa pagina. Se gli hash corrispondono in modo esatto, allora il file scaricato è quasi certamente integro. Se gli hash non corrispondono significa che si è verificato un problema nello scaricare il file o un problema con il server. In questo caso è necessario scaricare nuovamente il file, dallo stesso mirror oppure da un mirror differente se si sospetta un errore nel server. Qualora si riceva continuamente un file errato da un server è opportuno e gradito segnalare tale problema al webmaster del mirror, in modo che si possa investigare.

Se l'hash MD5 corretto è contenuto in un file all'interno della stessa directory del file .iso, con md5sum è possibile verificare l'hash in modo semi-automatico. Di solito è possibile trovare il file md5sum nella stessa pagina da cui si è scaricato il file. Ubuntu distribuisce gli hash MD5 all'interno di un file dal nome MD5SUMS.

MD5SUM su Mac OS X

Seguire le istruzioni per ]]#linux||MD5SUM|su Linux]], fatta eccezione l'uso del comando md5 invece di md5sum.

È possibile inoltre trovare l'hash MD5 usando come sistema operativo OSX attraverso il programma Utility Disco. Esso è raggiungibile dalla cartella Applicazioni oppure dal menù Go del Finder, sotto la voce Utility. Aprire Utility Disco e aspettare che vengano visualizzate le informazioni dei vostri dischi. Spostarsi nella cartella dove è stata scaricata l'immagine di Ubuntu e trascinare essa nella dock del programma Utility Disco. Per questo esempio si prenderà in considerazione l'immagine di Ubuntu 11.04 versione Desktop. L'immagine disco dovrebbe comparire nella colonna sinistra del programma. Andare nel menù Immagini->Checksum->MD5. Utility Disco riporterà il seguente risultato:

Checksum of "ubuntu-11.04-desktop-i386.iso" completed. MD5 8b1085bed498b82ef1485ef19074c281

Verificare il risultato ottenuto con i corrispondenti hash presenti in questa pagina.

Se l'hash non corrisponde significa che c'è stato un problema con il download o son il server. È consigliato scaricare di nuovo l'immagine disco, scegliendo magari un mirror differente.

Solaris

Utilizzare il comando digest(1), specificando l'algoritmo md5 con il flag -a. Digitare in un terminale il seguente comando:

$ digest -a md5 ubuntu-8.10-desktop-i386.iso
24ea1163ea6c9f5dae77de8c49ee7c03

MD5SUM su Windows

Windows does not come with md5sum. You must download one from another location, preferably one that you trust. There are command line utilities (md5sum.exe) that work similarly to the Unix utility; one public domain version with source is available from Fourmilab, but the version available from Cygwin is probably easier to install and update, and Cygwin is also recommended and trusted as the source for many more Unixy utilities. Once installed, Cygwin's md5sum behaves exactly as described in MD5SUM on Linux above.

There are also graphical tools such as the one used in the walk-through provided below.

  1. Download and install winMD5Sum, a free and open source hash verification program.

  2. Right-click the ISO file.
  3. Click Send To, then winMD5Sum.

  4. Wait for winMD5Sum to load and finish the checksum (this may take a significant amount of time depending on your computer's performance).

  5. Copy the corresponding hash from UbuntuHashes into the bottom text box.

  6. Click "Compare"
    • {attachment:winMD5Sum.png}

  7. A message box will say "MD5 Check Sums are the same" if the hashes are equal.

MD5SUM su CD

Per verificare che il CD di Ubuntu non è danneggiato una volta masterizzato, seguire le istruzioni qui riportate:

  • Per prima cosa montare il CD, se non è già montato:
    sudo mount /dev/hda /cdrom
  • Utilizzare il file md5sum fornito dal CD, digitando il seguente comando:
    cd /cdrom
    md5sum -c md5sum.txt | grep -v 'OK$'

L'operazione richiederà alcuni minuti. Se verranno visualizzati degli errori, l'immagine .iso è danneggiata. Questa procedura serve solamente per verificare l'autenticità dell'hash.

MD5SUM di un dispositivo masterizzato

A seconda di come si masterizza un'immagine ISO, è possibile controllare direttamente il dispositivo masterizzato. Digitare il seguente comando per verificare se l'immagine ISO è corretta:

$ grep ubuntu-8.10-desktop-i386.iso MD5SUMS | tee /proc/self/fd/2 | md5sum --check -

Si dovrebbe ricevere un messaggio simile al seguente:

24ea1163ea6c9f5dae77de8c49ee7c03 *ubuntu-8.10-desktop-i386.iso
ubuntu-8.10-desktop-i386.iso: OK

A questo punto masterizzare l'immagine da Nautilus. Per controllare direttamente il dispositivo digitare il seguente comando:

$ md5sum /dev/cdrom

Il messaggio di output sarà simile al seguente:

24ea1163ea6c9f5dae77de8c49ee7c03  /dev/cdrom

Il percorso "/dev/cdrom/" è solitamente la posizione del proprio lettore CD/DVD.

Collegamenti esterni


CategoryInTraduzione