Tuesday, January 21, 2020

Did my browser file download complete?

I was downloading an ubuntu server image. So I opened google chrome browsed to https://releases.ubuntu.com and found the version I wanted. And I clicked the correct link and the browser download began...

The next thing you know, I am wondering when this would finish, and, how would I be notified once it has finished...?

And when my eyes laid on the MD5SUM file that sparked an idea. Its not a novel idea. But its kind of cool as long as the flame of self-pride has not yet extinguished at the apparent serendipity. Hence my reason for this quick and hasty write-up.

So if the file has an md5 hash, and you have a program that can verify a file against this hash, you are good.

Now all you need is a program that repeatedly checks for the file integrity.

You probably have known about md5sums from the old internet era (1990s) where internet connections where not so reliable or fast. These sums (or hashes) were a means to check for file integrity. Now you can use the same concept to ascertain if the file has completely downloaded.

Hopefully you understand where to use this properly as I am not going to go there. There are problems of the same pattern in various kinds environments that have equally scintillating solutions. If you choose to share your 2 cents on that ... please feel free to comment.

Good Day!!