All distributions that have the Nautilus file manager, such as Ubuntu, among others, can follow this simple tutorial to be able to integrate the Avast Antivirus on Nautilus and thus be able to use it in a simpler way to analyze directories and files. That in GNU / Linux you do not need antivirus or protection is not true, even if it is a safe system, but all precautions are little and you should consider using protection methods if you still do not have them.
But the first thing obviously is install the latest version of Avast antivirus in your distro, for this you must access the Avast website and download the timely package. There are DEB packages, so installation will be easy. Once installed, from the console or graphically with the help of some tools such as Gdebi, we can open the antivirus and update its signature base from Tools, Preferences and in the Update tab, we select automatic update.
To add it to Nautilus and so with a click with the right button that the Avast Scanner option appears, we simply go to Nautilus-Actions that will allow us to add actions. Now "Define new Action" and it will give us a window with several tabs from which we can act. Be careful, if you don't have Nautilus-actions installed, you won't be able to do it, so first of all:
sudo apt-get install nautilus-actions
Here at the Action tab We can edit the text that will be displayed, such as "Scan this ..." in the "Context label", "Toolbar label" and "Tooltip" fields where you can put whatever you want. You can even choose an image for the icon to appear. Then in the Command tab, in Path you must put:
And in Parameters:
-hold -e avast -p3 %M
In the Folders tab we do not touch and in Conditions we will put * both in Filenames and in Mimetypes. You must also select Match Case and in APear if selection contains you will put Both, then select "multiple files or folders". If you want, in the Advanced tab you can select the type of extensions on which to perform the action, protocols, etc.