Hp Deskjet 1512 Printer failed-"The cups daemon isn't running." Quote from answers.launchpad.net/hplip/+question/690174

jjconstr

Silver Member
Silver Supporter
Credits
611
ok i think i saw you asking about how to verify a download. I will give you a simple working example . Go to https://slackbuilds.org/repository/14.2/academic/latex2html/?search=latex2html

you will see source for latex2html-2019.2.tar.gz and next to it a number .left click on
latex2html-2019.2.tar.gz where it says soruce and that will download it. Then :

bash-5.0$ cd ~
bash-5.0$ cd Downloads
bash-5.0$ ls --color

latex2html-2019.2.tar.gz

bash-5.0$ md5sum latex2html-2019.2.tar.gz
e9ca34903ac23a6f51385f05fa63c6eb latex2html-2019.2.tar.gz
bash-5.0$
The number generated by md5sum should match that quoted on slackbuilds. Now they say slackware is complicated but thats before you read ubuntu which has a similar but more comlicated way of going about it but principle is same
Captain, thanks for your reply. I downloaded Linux Mint Mate 19.3 64bit from a download link on Linuxmint.com. They had directions there to compare checksums. And that succeeded perfectly. Also they had Authenticity Check which stalled when their windows terminal commands included gpg, such as;
gpg --verify sha256sum.txt.gpg sha256sum.txt

Do we need the authenticity check?

jj
 
Last edited:


captain-sensible

Well-Known Member
Credits
2,391
Captain, thanks for your reply.I downloaded Linux Mint Mate 19.3 64bit from a download link on Linuxmint.com. They had directions there to compare checksums. And that succeeded perfectly. Also they had Authenticity Check which stalled when their windows terminal commands included gpg, such as;
gpg --verify sha256sum.txt.gpg sha256sum.txt

Do we need the authenticity check?

jj
please give us the links and we will read and decipher
 

jjconstr

Silver Member
Silver Supporter
Credits
611
please give us the links and we will read and decipher
Captain, I think this is all. I tried to put them in chronological order.

https://mirrors.evowise.com/linuxmint/stable/19.3/sha256sum.txt

Here's the out put of the first failed Authenticity Check command;

C:\Users\Jerry\Linux\ISO>gpg --keyserver hkps://keyserver.ubuntu.com:443 --recv-
key 27DEB15644C6B3CF3BD7D291300F846BA25BAE09
'gpg' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jerry\Linux\ISO>
 
Last edited:

captain-sensible

Well-Known Member
Credits
2,391
from what i can see it looks like if you download an iso , you "cd" to where that iso is and can get the checksum output using using command line :
sha256sum -b *.iso
you then compare the output of above to those quoted on web at: https://mirrors.evowise.com/linuxmint/stable/19.3/sha256sum.txt

that should be enough . if both long numbers match then the chance that something is wrong is probably the same chance of me meeting a green martian today?



But they are also saying that you can also download the textfile showing what the output should be but because you don't trust the website; because you have paranoia
you don't trust the textfile either showing what output should be so you check that as well .

It simply confirms my choice to keep my sanity run from ubuntu to slackware !

of course that using command from linux. i see there is a "war and peace" docs on using windows. if you have Linux even a live OS use that to verify

i'm sure Mint lovers will clarify !
 
Last edited:

jjconstr

Silver Member
Silver Supporter
Credits
611
from what i can see it looks like if you download an iso , you "cd" to where that iso is and can get the checksum output using using command line :
sha256sum -b *.iso
you then compare the output of above to those quoted on web at: https://mirrors.evowise.com/linuxmint/stable/19.3/sha256sum.txt

that should be enough . if both long numbers match then the chance that something is wrong is probably the same chance of me meeting a green martian today?



But they are also saying that you can also download the textfile showing what the output should be but because you don't trust the website; because you have paranoia
you don't trust the textfile either showing what output should be so you check that as well .

It simply confirms my choice to keep my sanity run from ubuntu to slackware !

i'm sure Mint lovers will clarify !
Captain, Are you sayiing the matching checksum numbers that resulted from this process could be possibly manipulated? And using your method would be a better confirmation?
 

jjconstr

Silver Member
Silver Supporter
Credits
611
Running that command in Win 7 command window, I get this:

C:\Users\Jerry\Linux\ISO>sha256sum -b linuxmint-19.3-mate-64bit.iso
'sha256sum' is not recognized as an internal or external command,
operable program or batch file.
 

jjconstr

Silver Member
Silver Supporter
Credits
611
from what i can see it looks like if you download an iso , you "cd" to where that iso is and can get the checksum output using using command line :
sha256sum -b *.iso
you then compare the output of above to those quoted on web at: https://mirrors.evowise.com/linuxmint/stable/19.3/sha256sum.txt

that should be enough . if both long numbers match then the chance that something is wrong is probably the same chance of me meeting a green martian today?



But they are also saying that you can also download the textfile showing what the output should be but because you don't trust the website; because you have paranoia
you don't trust the textfile either showing what output should be so you check that as well .

It simply confirms my choice to keep my sanity run from ubuntu to slackware !

of course that using command from linux. i see there is a "war and peace" docs on using windows. if you have Linux even a live OS use that to verify

i'm sure Mint lovers will clarify !
Ok yes using that command from linux makes sence. Thanks. Enjoy your day.
 

captain-sensible

Well-Known Member
Credits
2,391
i downloaded linuxmint-19.3-mate-64bit.iso

and checked it as follows :

bash-5.0$ clear
bash-5.0$ pwd
/home/andrew/Downloads
bash-5.0$ ls --color
bootstrap-4.1.3.zip linuxmint-19.3-mate-64bit.iso
bash-5.0$ sha256sum -b *.iso

610385bd480d4f906774d865761c429bccc522cf9dd62a5928045fac8fa24bf6 *linuxmint-19.3-mate-64bit.iso
bash-5.0$

if you check that number starting 6103 and ending 4bf6 you will see it matches the entry at :



thats all you have to do to check integrity. But do it this way with Linux , not Windows
 

Vrai

Well-Known Member
Credits
1,115
Running that command in Win 7 command window, I get this:

C:\Users\Jerry\Linux\ISO>sha256sum -b linuxmint-19.3-mate-64bit.iso
'sha256sum' is not recognized as an internal or external command,
operable program or batch file.
Windows is a pain for generating check sums from the command prompt. Although PowerShell may work O.K.
For generating check sums or hashes in Windows I have used 'HashCalc' for years. Small, fast, and quite capable. Can generate a variety of hashes.
Then I just do a comparison by hand to what is published on the download site.

In Linux it is very easy to generate a hash or checksum from the command line.
Just type in
~ $ sha256sum name_of_downloaded_file.iso (linuxmint-19.3-cinnamon-64bit.iso)
or
~ $ sha1sum name_of_downloaded_file.iso
or
~ $ md5sum name_of_downloaded_file.iso
and compare the result with the published hash. If the numbers match that is very good assurance that the file downloaded is an exact copy of the file uploaded to the site.
Linux Mint has a pretty good tutorial on how to do this.
linuxmint_checksum.png
 

Vrai

Well-Known Member
Credits
1,115
Vrai, For the sake of interest, how would I checksum the previous distros I downloaded? I have Linux Lite and Ubuntu 18.04. Am still wondering where my corruption came from.

My internet is received though a Verizon Wireless MIFI Jetpak. We get 2 signal bars max and alternate between 3G and 4G.

Computer specs are; Pentium P6100, 4GB DDR3 memory, 500GB HDD, 64 bit.

My download speed may be my choke point regarding size of Linux distro choice. But, ease and stability are primary.

Best regards,
jjconstr
Sorry, just saw this post. Please see my post #69 and let us know if you have any questions.
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
2,015
On hash checking from a Linux environment - easy solution is GTKHash.

See my Tutes here

https://www.linux.org/threads/gtkhash-–-hashing-out-the-basics.4430/#post-45629

and here

https://linux.org/threads/hash-checking-rare-tips.13544/#post-45991

... although Terminal commands are good value.

On hash checking from a Windozey environment -

https://www.raymond.cc/blog/7-tools-verify-file-integrity-using-md5-sha1-hashes/2/

and there is the PowerShell option also in the above article.

Cheers

Wiz

Avagudweegend

BTW be aware that the industry standard is SHA256, but MD5 and SHA1 are better than nothing. The only time we are aware of a compromise was with some Linux Mint .iso's in June 2016, that was remedied with the introduction by them of SHA256. However if a download is interrupted, the file could be damaged.
 

jjconstr

Silver Member
Silver Supporter
Credits
611
i downloaded linuxmint-19.3-mate-64bit.iso

and checked it as follows :

bash-5.0$ clear
bash-5.0$ pwd
/home/andrew/Downloads
bash-5.0$ ls --color
bootstrap-4.1.3.zip linuxmint-19.3-mate-64bit.iso
bash-5.0$ sha256sum -b *.iso

610385bd480d4f906774d865761c429bccc522cf9dd62a5928045fac8fa24bf6 *linuxmint-19.3-mate-64bit.iso
bash-5.0$

if you check that number starting 6103 and ending 4bf6 you will see it matches the entry at :



thats all you have to do to check integrity. But do it this way with Linux , not Windows
Captain, I'll do that to make sure positive it is good. thanks for laying it out! You've been a great help.
 

jjconstr

Silver Member
Silver Supporter
Credits
611
On hash checking from a Linux environment - easy solution is GTKHash.

See my Tutes here

https://www.linux.org/threads/gtkhash-–-hashing-out-the-basics.4430/#post-45629

and here

https://linux.org/threads/hash-checking-rare-tips.13544/#post-45991

... although Terminal commands are good value.

On hash checking from a Windozey environment -

https://www.raymond.cc/blog/7-tools-verify-file-integrity-using-md5-sha1-hashes/2/

and there is the PowerShell option also in the above article.

Cheers

Wiz

Avagudweegend

BTW be aware that the industry standard is SHA256, but MD5 and SHA1 are better than nothing. The only time we are aware of a compromise was with some Linux Mint .iso's in June 2016, that was remedied with the introduction by them of SHA256. However if a download is interrupted, the file could be damaged.
Good post, Wiz. You confirmed my suspicions. I was unsure because of having downloads in Windows years ago that would resume fine when interrupted. You avagudweegend yoursef.
Cheerio
 

jjconstr

Silver Member
Silver Supporter
Credits
611
Windows is a pain for generating check sums from the command prompt. Although PowerShell may work O.K.
For generating check sums or hashes in Windows I have used 'HashCalc' for years. Small, fast, and quite capable. Can generate a variety of hashes.
Then I just do a comparison by hand to what is published on the download site.

In Linux it is very easy to generate a hash or checksum from the command line.
Just type in
~ $ sha256sum name_of_downloaded_file.iso (linuxmint-19.3-cinnamon-64bit.iso)
or
~ $ sha1sum name_of_downloaded_file.iso
or
~ $ md5sum name_of_downloaded_file.iso
and compare the result with the published hash. If the numbers match that is very good assurance that the file downloaded is an exact copy of the file uploaded to the site.
Linux Mint has a pretty good tutorial on how to do this.
View attachment 6289
Trying to generate a hash or a checksum from a Linux command line, I type this;
~$ sha256sum linuxmint-19.3-mate-64bit.iso, and get the error; No such file or directory. What is wrong?
jj
 

Vrai

Well-Known Member
Credits
1,115
Trying to generate a hash or a checksum from a Linux command line, I type this;
~$ sha256sum linuxmint-19.3-mate-64bit.iso, and get the error; No such file or directory. What is wrong?
jj
Make sure you have the 'path' correct and also the file name.
I usually save .iso downloads to my "Downloads" folder. Then I will open a Terminal and "cd" change directory to my Downloads folder. Then I will run the sha256sum from there - usually using "tab completion" to fill out the file name.
Check to be sure you are running the command from within the same folder that the file is in.
And - the Terminal is very fussy about spelling and upper case/lower case etc :)
 

jjconstr

Silver Member
Silver Supporter
Credits
611
Make sure you have the 'path' correct and also the file name.
I usually save .iso downloads to my "Downloads" folder. Then I will open a Terminal and "cd" change directory to my Downloads folder. Then I will run the sha256sum from there - usually using "tab completion" to fill out the file name.
Check to be sure you are running the command from within the same folder that the file is in.
And - the Terminal is very fussy about spelling and upper case/lower case etc :)
Thanks! I think being in the same folder is where I slipped up! And to confirm, the little squiggley in front of the $ sign is supposed to be typed?
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
2,015
No Jerry, just

Code:
cd Downloads
sha256sum linuxmint-19.3-mate-64bit.iso

#or

sha256sum /home/jerry/Downloads/linuxmint-19.3-mate-64bit.iso

# for jerry use your username

#or

sha256sum ~/Downloads/linuxmint-19.3-mate-64bit.iso
The little squiggly thing is called a Tilde (till-dee) and means the same as /home/your-user-name

Cheers

Wiz
 

jjconstr

Silver Member
Silver Supporter
Credits
611
Enter your commands after the "$" (or whatever your shell prompt is).
I finally got it. the checksum matches. Guess I'll have to review instructions on how to install mint mate on the proper partition. Still want to keep windows for apps that don't run on Linux. Some sites don't either.
Thank you for your perseverance!
jjconstr
 

jjconstr

Silver Member
Silver Supporter
Credits
611
Make sure you have the 'path' correct and also the file name.
I usually save .iso downloads to my "Downloads" folder. Then I will open a Terminal and "cd" change directory to my Downloads folder. Then I will run the sha256sum from there - usually using "tab completion" to fill out the file name.
Check to be sure you are running the command from within the same folder that the file is in.
And - the Terminal is very fussy about spelling and upper case/lower case etc :)
Good advice, it worked, the checksums agreed.

Now I upgraded Etcher, installed Mint Mate in usb stick. But funny thing. The usb stick is 16 GB, printed right on the side of it, but the properties (in Win 7) said 6 GB. Now that Etcher has installed to the usb stick, properties says 2.5 MB capacity, 14 kilobytes free! Etcher installed a folder named Efi. subfolder boot, with two files inside; bootx64.efi and grubx64.efi. Does that sound right?

Sounds strange to me, but I only have experienced loading Ubuntu once.

jjconstr
 


Members online


Top