MD5sum check from clipboard selection(doesn't work)

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
don570
Contributor
Contributor
Posts: 99
Joined: 01 Jun 2012, 00:37
Location: Ontario

MD5sum check from clipboard selection(doesn't work)

Post#1 by don570 » 14 Jun 2012, 00:19

MD5sum calulation and check with xclip

EDIT: WARNING !! This method doesn't work correctly.
because Thunar keeps an icon focused and selected

Therefore clipboard info can't be tranferred to program



Available here as two modules in one archive. Uncompress please
and install both modules. A re-login is sometimes necessary
to get the text to show in the SendTo menu.
http://www.datafilehost.com/download-ee584edd.html

The following is a method of MD5sum calculation as well as
checking. It is meant to replace bigger software that does the same thing.
It has been internationalized with locals.

Instructions for MD5sum calulation : Right click on a file

Image

Instructions for checking MD5sum of downloaded file:
Download sites often have the MD5sum listed. Just highlite this
sum or copy it to the clipboard.

Image

Then rightclick on a downloaded file and choose the 'Clipboard MD5sum check'
A message will say either 'Success' or 'Failure'. Failure means you
will have to download the file again. :cry:

Image


___________________________________________________________________________
Last edited by don570 on 16 Jun 2012, 16:31, edited 1 time in total.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: MD5sum check from clipboard selection

Post#2 by Hamza » 14 Jun 2012, 13:04

Very Useful to check the integrity of an ISO file !
NjVFQzY2Rg==

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: MD5sum check from clipboard selection

Post#3 by brokenman » 15 Jun 2012, 22:18

More useful if we could port to dolphin, konqueror and pcmanfm aswell.

Any reason there is spaces in the filenames for .desktop files?
How do i become super user?
Wear your underpants on the outside and put on a cape.

don570
Contributor
Contributor
Posts: 99
Joined: 01 Jun 2012, 00:37
Location: Ontario

Re: MD5sum check from clipboard selection

Post#4 by don570 » 16 Jun 2012, 16:28

WARNING!
I discovered that this method doesn't work properly with
Porteus. I believe the problem is based on how focusing
of icons is done by Thunar in Porteus. In Jemimah's Saluki
(which also uses Thunar) the focusing of icons is done in such
a way that the clipboard isn't affected. This means that the clipboard
will still contain the MD5sum when the script is executed.

The script was actually developed for Rox filer which keeps it's
icons unfocused and therefore unselected. The method works
very well with Rox :Yahoo!:

The reason why I put spaces in the desktop filename is because
those words appear in the Thunar SendTo folder (apparently??)
I think this is a feature of Thunar.

My big problem is how do I install in a users home folder.
I need a pinstall.sh script like Puppy linux supports.
That way I could find the location of user's home folder
and install to SendTo folder of user.

______________________________________________________

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: MD5sum check from clipboard selection(doesn't work)

Post#5 by brokenman » 17 Jun 2012, 01:07

Here is a version i wrote for Trinity (konqueror) service menu. It supports md5, sha1, sha224, sha256, sha384 & sha512 checksums. It was written and tested on latest v1.2rc2. It will ship in i486 v1.2 final.

Just copy the checksum link from the website or file. Right click on the file you want to check and choose the checksum option. It will auto sniff the checksum type and compare to clipboard. Let me know of any bugs. I'll whip something up for dolphin and thunar & pcmanfm shortly.

Download here

BTW: If writing something for a servicemenu operation, it is sometimes best to write the scripIt was written and tested on latest v1.2rc2.t and drop it into /opt/porteus/scripts/whatever and then let the .desktop file point to the script. In this way the different window managers just need to create a .desktop file and you have a universal script for all desktops.

Thanks for the inspiration don ... a nice idea. Keep em coming!!
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply