Right-click For ClamTK


 Im sure there a lot of linux user that installing the ClamTK in their Linux ,whether its Ubuntu,Mint,RedHat or so on.
However,as a new user of Ubuntu,im sure you ever asking this question in your mind,'where is the right-click menu within Nautilus that will cause ClamTK to scan that file or folder
After few hours searching in the internet,i found the solution.( im using Ubuntu Marverick 10.10 )

How to add right-click for ClamTK ?



Follow these steps :
1. Open Gedit (Applications → Accessories → Text Editor) and save a
     new file called virus_scan to your /home directory.
2. Type the following into the Gedit window:
    #!/bin/bash
    # Scan the selected file in clamtk
    clamtk $@

Then save the file and close Gedit.

3. You must now mark the new file as executable and copy it to the
    nautilus-scripts directory so that it integrates with Nautilus’ right-
    click menu. To do this, type the following (both these commands 
    should be typed into a terminal window; ensure you’re in your
    /home directory before typing these commands):

    $ chmod +x virus_scan
    $ mv virus_scan .gnome2/nautilus-scripts/

Following this, you can scan any file by right-clicking it, and selecting
Script → virus_scan.

Comments