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.

MD5sum check from clipboard selection(doesn't work)

Postby 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.
don570
Contributor
Contributor
 
Posts: 70
Joined: 01 Jun 2012, 00:37
Location: Ontario

Re: MD5sum check from clipboard selection

Postby Hamza » 14 Jun 2012, 13:04

Very Useful to check the integrity of an ISO file !
NjVFQzY2Rg==
User avatar
Hamza
Laziest of the community
Laziest of the community
 
Posts: 1617
Joined: 28 Dec 2010, 07:41
Location: France
Distribution: Porteus v2.1 Build 1

Re: MD5sum check from clipboard selection

Postby 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 ... or boot to root
User avatar
brokenman
Site Admin
Site Admin
 
Posts: 1626
Joined: 27 Dec 2010, 03:50
Location: Brazil
Distribution: Porteus v2.0 32bit gnome

Re: MD5sum check from clipboard selection

Postby 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.

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

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

Postby 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 ... or boot to root
User avatar
brokenman
Site Admin
Site Admin
 
Posts: 1626
Joined: 27 Dec 2010, 03:50
Location: Brazil
Distribution: Porteus v2.0 32bit gnome


Return to Development



Who is online

Users browsing this forum: Bing [Bot] and 2 guests