![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||||
|
Ubuntu Guru
![]() |
md5sum and sha1sum are utilities to check the integrity of a file, usually a downloaded iso
In this example I will use "Ubuntu.iso" and a file "groups", but this works with any file. Note: This how is performed entirely in a terminal (CLI). No GUI. GUI Tool ~ Windows/Mac/Linux versions : md5 file check (Penguin byte) EDIT: The section on multiple files was added at the suggestion of 655 (Thanks 655). md5sum Create a *.md5 file: Code:
md5sum Ubuntu.iso > Ubuntu.iso.md5 This is an example of how to create a *.md5 on a file you trust. Give this to others to verify the integrity of a file or iso you authored. See "How to use md5sum and sha1sum files to verify integrity of downloaded iso images or files" section below. Verify md5sum of a file or iso: Code:
md5sum -c Ubuntu.iso.md5 Create a *.sha1 file: Code:
sha1sum Ubuntu.iso > Ubuntu.iso.sha1 This is an example of how to create a *.sha1 on a file you trust. Give this to others to verify the integrity of a file or iso you authored. See "How to use md5sum and sha1sum files to verify integrity of downloaded iso images or files" section below. Verify sha1sum of a file or iso: Code:
sha1sum -c Ubuntu.iso.sha1 Format of a *.md5 or *.sha1: Quote:
Sample *.md5 and *.sha1 file contents: groups.md5 (file = groups) Quote:
Quote:
Note:
Code:
cd ~/Desktop md5sum -c iso.md5 Create an *.iso.md5 or *.iso.sha1 file (to check integrity):
Examples (CLI) Examples using a file groups: Quote:
This will check any ubuntu*.iso in the current directory. You will get an error message if the file does not exist, the 2>/dev/null redirects the error message. Code:
md5sum -c MD5SUMS 2>/dev/null Quote:
K3b will show the md5sum of the iso and check (show) the md5sum of the burned CD/DVD automatically (which is part of the reason I would advise K3b over other options). From the CLI: Note: Some consider this method to be unreliable.
Example Note: On my box my CD is /dev/hda Quote:
Automation This involves some fancy CLI footwork: md5sum: Code:
md5sum /dev/hda > ./test && diff ./test /home/bodhi/MyDownloads/fluxbuntu.iso.md5 && rm -f ./test Quote:
Code:
sha1sum /dev/hda > ./test && diff ./test /home/bodhi/MyDownloads/fluxbuntu.iso.sha1 && rm -f ./test Quote:
Note: You must supply the proper path to the iso.md5 and iso.sha1. Windows users Windows md5sum checker (Free, opensource): winMd5Sum Windows sha1sum checker (Free, opensource): sha1sum Note: This is run from the windows command line, no gui. See link for instructions. Download with confidence bodhi.zazen
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() Last edited by bodhi.zazen; October 29th, 2008 at 03:08 PM.. |
||||||||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|