Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to restore a function that I had on my last box. It added a tab in the properties menu of any file called "Digests". From there I could choose any/all of the hash formats, click hash and it would generate said checksums right there.

What I am trying to find out is either the name of the package or acquire the location of it's installation.

I have started a thread on UbuntuForums pertaining to this already

share|improve this question
1  
My problem is not making or checking md5 hashes. The issue I want to resolve is, what is the package that provides this function as in the posted image. (won't let me post pics here, so I gave link to post on ubuntuforums with image.) –  Chuck Nov 26 '10 at 14:52
1  
I don't know how gtkhash-nautilus looks like but it's supposed to add a Digests tab to file properties. –  Takkat Nov 26 '10 at 15:38
    
Right on. Thanks. I guess I should have looked into it further. It only seems to add the digests tab AFTER I chose multiple checksums in the preferences. –  Chuck Nov 26 '10 at 17:16
    
Under Ubuntu 10.04 LTS, I just installed package "gtkhash" and restarted Nautilus with "nautilus -q" and the "Digests" tab appeared on the properties page. Thanks. –  SabreWolfy Jul 30 '11 at 10:18

3 Answers 3

First, create a script to create a message with the md5 checksum. This will also handle paths with spaces. I saved this as /usr/local/bin/md5info. Make it executable.

#!/bin/bash
IFS=$'\n'
zenity --info --text "$(md5sum $1 | sed 's/ /\n/')"

Install nautilus-actions Install nautilus-actions, with which you can add bits to the context menu.

Open System>Preferences>Nautilus Actions Configuration.

Add a new action. On the Action tab, specify
Context label: Digest
You can add a tooltip and icon if you like.

On the Command tab, under Command:
Path: md5info
Parameters: %d%f

Save the changes. You might need to kill existing nautilus windows with nautilus -q the first time.

share|improve this answer
1  
I had to set the parameters as %f as the working directory is already %d and nautilus-actions seems to combine both. –  That Brazilian Guy Jan 7 at 15:05

I found a better Nautilus Integrated Checksum generator. To install:

  1. Download HashTab Python Script and extract the ".py" file to ~/.nautilus/python-extensions (if the folder doesn't exist just make it)

  2. Now you need to install python-nautilus

    sudo apt-get install python-nautilus
    
  3. Last but not least we need to restart Nautilus

    nautilus -q && nautilus
    

Now you just select any file and go to Properties-->Digests and you should get this: HashTab Nautilus Python Extension

Tested On:

  • Ubuntu 11.04
  • Ubuntu 12.04
share|improve this answer

There is nautilus-gtkhash Install nautilus-gtkhash to add a context menu to nautilus.

The standalone application is gtkhash Install gtkhash.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.