userguide:checking_iso_file_integrity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userguide:checking_iso_file_integrity [2016/04/24 11:46]
Marc
userguide:checking_iso_file_integrity [2020/11/26 19:49]
Marc
Line 9: Line 9:
 In simple terms, a //[[https://en.wikipedia.org/wiki/Checksum|checksum]]// or //hash sum// is like a signature or fingerprint that identifies digital data. A copy of a file getting the same computed checksum as the original indicates there is a very high probability the data has not been accidentally altered or corrupted((Security flaws where identified in MD5 and SHA-1 algorithms; they are still useful for error checking, where data tampering is not a primary concern, but the use of stronger hash functions would be desirable.)). In simple terms, a //[[https://en.wikipedia.org/wiki/Checksum|checksum]]// or //hash sum// is like a signature or fingerprint that identifies digital data. A copy of a file getting the same computed checksum as the original indicates there is a very high probability the data has not been accidentally altered or corrupted((Security flaws where identified in MD5 and SHA-1 algorithms; they are still useful for error checking, where data tampering is not a primary concern, but the use of stronger hash functions would be desirable.)).
  
-Checking NethServer's ISO image file takes almost no time and prevents further installation problems.+Checking NethServer's ISO image file takes almost no time and prevents further installation problems. Checksums for the ISOs can be found at the [[https://www.nethserver.org/getting-started-with-nethserver/|download page]]. 
 + 
 +The following examples show different ways to check the integrity of a file.  
 +Bear in mind the checksums and ISO names mentioned in the examples may differ from the current NethServer release.
  
-The following examples show different ways to check the integrity of a file. 
  
 ===== File Integrity Check from an On-Line Service ===== ===== File Integrity Check from an On-Line Service =====
Line 34: Line 36:
 The next examples show how to use some file integrity checkers on different Operating Systems. The next examples show how to use some file integrity checkers on different Operating Systems.
  
-**DownThemAll! Firefox web browser add-on** (works on GNU/Linux, OS X, Windows)\\ //[[https://addons.mozilla.org/firefox/addon/downthemall/|DownThemAll!]]// Firefox add-on is an Open Source download manager that integrates into [[https://www.mozilla.org/firefox/new/|Mozilla Firefox]] web browser. Its built-in checksum (hash verification) support allow you to download a file and verify its integrity in the same step, without leaving the web browser.+**DownThemAll! Firefox web browser add-on** (works on GNU/Linux, OS X, Windows)\\ //[[https://addons.mozilla.org/firefox/addon/downthemall/|DownThemAll!]]// Firefox add-on is an Open Source download manager that integrates into [[https://www.mozilla.org/firefox/new/|Mozilla Firefox]] web browser. Its built-in checksum (hash verification) support allows you to download a file and verify its integrity in the same step, without leaving the web browser.
  
 In short, the operation process has these steps: In short, the operation process has these steps:
  
-  Get the file checksum/hash from the original source\\  +  Get the file checksum/hash from the original source\\  
-  Choose the file to be downloaded (NethServer's ISO image)\\  +  Choose the file to be downloaded (NethServer's ISO image)\\  
-  Choose //DownThemAll!// as the download manager\\  +  Choose //DownThemAll!// as the download manager\\  
-  Paste the checksum in the appropriate //DownThemAll!// text field\\  +  Paste the checksum in the appropriate //DownThemAll!// text field\\  
-  Start the download+  Start the download 
 + 
 +{{ youtube>ochWBOdayK8?medium }}\\
  
 Once the file has been downloaded, //DownThemAll!// will verify it against the hash provided previously. In case of a hash mismatch, a dialog will appear informing you of the failure and will give you the option to retry the download, keep the file, or delete the file. Once the file has been downloaded, //DownThemAll!// will verify it against the hash provided previously. In case of a hash mismatch, a dialog will appear informing you of the failure and will give you the option to retry the download, keep the file, or delete the file.
  
-{{ youtube>ochWBOdayK8?medium }}\\+{{ :howto:downthemall-hash-mismatch.png |DownThemAll! hash mismatch notification}}\\ 
  
 ---- ----
Line 72: Line 77:
  
 {{ youtube>6aCu9GKI298?medium }}\\ {{ youtube>6aCu9GKI298?medium }}\\
 +
 +----
 +
 +**7-Zip** (works on Windows)\\ Althought //[[http://www.7-zip.org/|7-Zip]]// is a file archiver, it adds a //CRC, SHA...// context menu entry to ISO image files. This menu allows you to compute the hashes and visually compare them against the original ones. //7-Zip// is //Open Source// software.
 +
 +{{ :howto:iso-image-file-integrity-check-using-7zip-checksuming-hashing.jpg?direct&420 |7-Zip context menu and hashing}}
  
 ---- ----
Line 95: Line 106:
 Example: Example:
  
-<code>openssl md5 nethserver-6.7-x86_64.iso</code>+<code>openssl md5 nethserver-7.9.2009-x86_64.iso</code>
 This command will output a computed file hash that can be manually compared against the original one: This command will output a computed file hash that can be manually compared against the original one:
  
-<code>MD5(nethserver-6.7-x86_64.iso) = 695ac8fe87b21501cc438abc411d8f02</code>+<code>MD5(nethserver-7.9.2009-x86_64.iso) = 6a32d2738aafdcf4e124c2822e5c668d</code>
 On **Mac OS X**, you can also use the ''%%md5%%'' command to get the same result: On **Mac OS X**, you can also use the ''%%md5%%'' command to get the same result:
  
-<code>md5 nethserver-6.7-x86_64.iso</code>+<code>md5 nethserver-7.9.2009-x86_64.iso</code>
 On **GNU/Linux**, you can also get the MD5 file hash using the ''%%md5sum%%'' command, On **GNU/Linux**, you can also get the MD5 file hash using the ''%%md5sum%%'' command,
  
-<code>md5sum nethserver-6.7-x86_64.iso +<code>md5sum nethserver-7.9.2009-x86_64.iso 
-695ac8fe87b21501cc438abc411d8f02  nethserver-6.7-x86_64.iso</code>+6a32d2738aafdcf4e124c2822e5c668d  nethserver-7.9.2009-x86_64.iso</code>
 and if you have downloaded the original MD5 file hash to the same folder as NethServer's ISO image, you can use ''%%md5sum%%'' command to check its integrity: and if you have downloaded the original MD5 file hash to the same folder as NethServer's ISO image, you can use ''%%md5sum%%'' command to check its integrity:
  
Line 115: Line 126:
  
 Example: Example:
-<code>md5sum --check nethserver-6.7-x86_64.iso.md5 +<code>md5sum --check nethserver-7.9.2009-x86_64.iso.md5 
-nethserver-6.7-x86_64.iso: OK</code>+nethserver-7.9.2009-x86_64.iso: OK</code>
 **Getting and comparing SHA1 checksums**\\ In both, GNU/Linux and Mac OS X Operating Systems, you can use ''%%openssl%%'' or ''%%shasum%%'' command to get the SHA1 hash of a file: **Getting and comparing SHA1 checksums**\\ In both, GNU/Linux and Mac OS X Operating Systems, you can use ''%%openssl%%'' or ''%%shasum%%'' command to get the SHA1 hash of a file:
  
Line 125: Line 136:
 ''%%openssl%%'' example: ''%%openssl%%'' example:
  
-<code>openssl sha1 nethserver-6.7-x86_64.iso +<code>openssl sha1 nethserver-7.9.2009-x86_64.iso 
-SHA1(nethserver-6.7-x86_64.iso)= 1e4d822b92d391c2f5d93f33af8a034cdcf2cf7e</code>+SHA1(nethserver-7.9.2009-x86_64.iso)= 9e3e67f13328163cfd383d1e0fcb7288eed282b8</code>
 ''%%shasum%%'' example: ''%%shasum%%'' example:
  
-<code>shasum nethserver-6.7-x86_64.iso +<code>shasum nethserver-7.9.2009-x86_64.iso 
-1e4d822b92d391c2f5d93f33af8a034cdcf2cf7e  nethserver-6.7-x86_64.iso</code>+9e3e67f13328163cfd383d1e0fcb7288eed282b8  nethserver-7.9.2009-x86_64.iso</code>
 If you have downloaded the original SHA1 file hash to the same folder as NethServer's ISO image, you can check its integrity with the ''%%shasum%%'' command: If you have downloaded the original SHA1 file hash to the same folder as NethServer's ISO image, you can check its integrity with the ''%%shasum%%'' command:
  
Line 139: Line 150:
 Example: Example:
  
-<code>shasum --check nethserver-6.7-x86_64.iso.sha1 +<code>shasum --check nethserver-7.9.2009-x86_64.iso.sha1 
-nethserver-6.7-x86_64.iso: OK</code>+nethserver-7.9.2009-x86_64.iso: OK</code>
 On **GNU/Linux**, you can also use the ''%%sha1sum%%'' command in place of ''%%shasum%%''. On **GNU/Linux**, you can also use the ''%%sha1sum%%'' command in place of ''%%shasum%%''.
  
Line 151: Line 162:
 Alternative programs might exist on each Operating System. Alternative programs might exist on each Operating System.
  
-{{tag>ht_installation}}+{{tag>ht_installation userguide before_installation}}
  • userguide/checking_iso_file_integrity.txt
  • Last modified: 2020/11/26 19:49
  • by Marc