Scan with ClamAV (extended)

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

6
Score 79.2%
Description:

A short script to scan files or directories with ClamAV.
It provides the ability to scan multiple files, a progress-dialog and a result window.

Installation:
1. Start Dollphin
2. Press "Configure and control Dolphin" > "Configure Dolphin..."
3. Go to "Services"
4. "Download New Services..."
5. Search for my scripts name
6. Press "Install"

You need to have ClamAV installed.
If you encounter any issues when using the graphical way extract the file and run "sh install.sh".

All files are installed in the users home directory (/home/[user]/.kde[4]/share/kde4/services/ServiceMenus/ClamScan/), there is no need to use su or sudo to install

Note:
The script is currently translated in English, Finnish, French, German, Indonesian, Italian, Russian, Spanish, Swedish, Turkish and Ukrainian.
If you wish another language, translate the following and leave me a message or write it in a comment:
Name[en]=Scan with ClamAV
wait="ClamAV is scanning, please wait."
not_found="ClamAV is not installed!"
scan_sentence="Scanning files: "

Translations:
[li]English [/li][li]Finnish (Thanks to nikore90)[/li][li]French (Thanks to pbuard)[/li][li]German[/li][li]Indonesian (Thanks to JamurBulet)[/li][li]Italian (Thanks to Andrea Sciucca)[/li][li]Russian (Thanks to Omega9)[/li][li]Spanish[/li][li]Swedish (Thanks to Jonas Norlander)[/li][li]Turkish (Thanks to tanzer)[/li][li]Ukrainian (Thanks to Localizator (localizator@ukr.net))[/li]
Last changelog:

6 years ago

2013-6-18 (2.5.7)
- fixed permissions

2012-9-16 (2.5.6)
- fix: install-script: create path2 if it doesn't exist

2012-4-21 (2.5.5)
- support for linked directories
- support for empty directories
- unnecessary logfile gets deleted after scan, only result file remains
- fixed some if-conditions
- counts directories

2012-4-19 (2.5.4)
- fixed a wrong directory test (minor bug); now [ -d ] instead of [ -f ]
- did some testing on the mountable devices .desktop file, seems to work fine now

2012-4-19 (2.5.3)
- fixed a wrong set directory (~/.kde4/...) (that was for testing, I forgot to remove it)
- added spanish
- fixed this bug: gentooforum.de/artikel/17867/2/update-script.html when running ClamScan.sh without syntax

2012-2-23 (2.5.2)
- fixed recognition of empty directories which I broke in 2.3

2012-2-23 (2.5.1)
- Indonesian translation

2012-2-4 (2.5)
- using mkdir -p instead of if-conditions

(See Changelog file)

Don't forget to vote!

C

Incarus

7 years ago

Thanks! I will add it in the next release.

Report

yurix

7 years ago

Hi :) in "install.sh" script, add (in the third last line):

mkdir -p "$path2"


because some users may not have that folder (i was one of them).

BTW, thanks for your program. Bye :)

Report

C

Incarus

7 years ago

I hope I fixed it now (2.5.6) and didn't break something with the file permissions (I had to do it in Windows)

Report

C

Incarus

7 years ago

Hello and thank you the patch. I currently have no access to a linux-machine to test it but I'm gonna add it as soon as possible

Report

hilly53

7 years ago

Just thought I would let you know that the install went fine with one issue. I had to alter permissions for the script ClamScan.sh and everything works spot on. Prior to that all I got was the error that it could not locate the file ~/.kde/share/kde4/services/ServiceMenu/ClamScan/ClamScan.sh. Nicely done though thanks - very handy script.

..Phil

Report

HardinComp

6 years ago

This problem bugged the hell out of me because I couldn't figure out why it wouldn't run when I had it working without a problem on my old laptop. Today I finally thought to check the permissions and made it executable and it finally worked. Not sure why I needed to do that, especially since yesterday I manually removed it and reinstalled it and the permission issue was still there this am.

I love having this service available. I actually found a problem in a file I got from a friend (who runs Windows) and I was able to let them know their antivirus missed something.

Report

C

Incarus

6 years ago

Hello and thanks for the Feedback, I currently have no Linux machine available to test and fix this, but I think I will fix it the next days.

Report

HardinComp

6 years ago

You're welcome. I'd be happy to help test any future versions. I'm running SolydK with KDE 4.9.5.

Report

C

Incarus

6 years ago

I tried updating the permissions, hope it will be fixed now.

Report

HardinComp

6 years ago

That did the trick. Thanks for getting on it so quickly.

Report

C

Incarus

7 years ago

Thanks for the feedback.
Yeah, it didn't work for me either and I was really surprised, cause it did before.

Hope everything is fixed after that release ;)

Report

C

Incarus

7 years ago

Found several errors in the script, hope to fix it tomorrow

Report

FraMari

7 years ago

Hi, i get this message every time i try to scan a file/folder:
ERROR: Can't open file or directory
What can i do?

Report

C

Incarus

7 years ago

Hello, and thank you for your feedback.
First you can find out more about that issue by looking in the log file. I would advise you to look in those files (you can find them under /home/USERNAME/.kde/share/kde4/services/ServiceMenus/ClamScan/logs/).
If you can't find something conspicuous try to manually run clamav on the selected file/directory with "clamscan -r /PATH/TO/FILE". If clamscan will output an error here it would be a clamscan issue. I guess it is a permission error.

Report

FraMari

7 years ago

Log shows the same message.
Running clamscan from terminal gives back this:
"LibClamAV Error: cli_loaddb(): No supported database files found in /var/lib/clamav
ERROR: Can't open file or directory"

Report

FraMari

7 years ago

Log shows the same message.
Running clamscan from terminal gives back this:
"LibClamAV Error: cli_loaddb(): No supported database files found in /var/lib/clamav
ERROR: Can't open file or directory"

Report

C

Incarus

7 years ago

That is a ClamAV issue and could have several causes. Try updating the virus signatures with freshclam, if that doesn't help you will find a lot suggestions on the internet.

Report

FraMari

7 years ago

I added this tool to the Chakra Community Repository (CCR).
It can be found here: http://chakra-linux.org/ccr/packages.php?ID=1089

Report

C

Incarus

7 years ago

Nice, thank you! :)

Report

FraMari

7 years ago

Ok, it was my fault: i didn't set the right permissions to the database folder.
Sorry and thanks for your help! :3

Report

JamurBulet

7 years ago

Name[en]=Scan with ClamAV
wait="ClamAV is scanning, please wait."
not_found="ClamAV is not installed!"

translated to

Nama[id]=Cek dengan ClamAV
tunggu="ClamAV sedang mengecek,silakan tunggu."
tidak_ditemukan="ClamAV tidak terpasang"

Report

C

Incarus

7 years ago

Thanks!

Report

inpro98

7 years ago

otherwise subdirs will not created if not already existing :-)

mkdir -p "$spath"ServiceMenus/ClamScan
mkdir -p "$spath"ServiceMenus/ClamScan/logs

Nice app anyway.

Report

C

Incarus

7 years ago

I updated that, thank you!

Report

C

Incarus

7 years ago

There was a problem with kde-apps.org.
The downloadable version of the script should now be v2.4

Report

6 years ago

2013-6-18 (2.5.7)
- fixed permissions

2012-9-16 (2.5.6)
- fix: install-script: create path2 if it doesn't exist

2012-4-21 (2.5.5)
- support for linked directories
- support for empty directories
- unnecessary logfile gets deleted after scan, only result file remains
- fixed some if-conditions
- counts directories

2012-4-19 (2.5.4)
- fixed a wrong directory test (minor bug); now [ -d ] instead of [ -f ]
- did some testing on the mountable devices .desktop file, seems to work fine now

2012-4-19 (2.5.3)
- fixed a wrong set directory (~/.kde4/...) (that was for testing, I forgot to remove it)
- added spanish
- fixed this bug: gentooforum.de/artikel/17867/2/update-script.html when running ClamScan.sh without syntax

2012-2-23 (2.5.2)
- fixed recognition of empty directories which I broke in 2.3

2012-2-23 (2.5.1)
- Indonesian translation

2012-2-4 (2.5)
- using mkdir -p instead of if-conditions

(See Changelog file)

Don't forget to vote!

12345678910
220
product-maker janet Nov 17 2015 9 excellent
product-maker brabus84 Mar 28 2014 9 excellent
product-maker msx Jul 26 2013 9 excellent
product-maker gustawho Jul 07 2013 9 excellent
product-maker Seniazi Jun 19 2013 9 excellent
product-maker electron222 Jun 10 2013 9 excellent
product-maker Omega9 Apr 10 2013 9 excellent
product-maker mixalns Sep 16 2012 9 excellent
product-maker som123xxx Sep 16 2012 3 bad
product-maker RAIDENSUB Aug 15 2012 9 excellent
product-maker narya Apr 22 2012 9 excellent
product-maker roctheme Jan 27 2012 9 excellent
product-maker pru Jan 15 2012 9 excellent
product-maker pbuard Dec 19 2011 9 excellent
product-maker nikore90 Nov 11 2011 9 excellent
product-maker FraMari Jun 26 2011 9 excellent
product-maker gohanz Jun 26 2011 9 excellent
product-maker jorssoftware Feb 09 2011 9 excellent
product-maker svah4cky0 Jan 09 2011 9 excellent
product-maker deabru Jan 08 2011 9 excellent
product-maker sylgil88 Jan 08 2011 9 excellent
product-maker vitoubien Jan 08 2011 3 bad
product-maker Base: 4 x 5.0 Ratings
msx
Jul 26 2013
narya
Jul 01 2013
electron222
Jun 10 2013
nekoprog
Oct 01 2012
hilly53
Apr 19 2012
egatop
Nov 07 2011
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
2.5.7
updated Jun 18 2013
added Jan 08 2011
downloads 24h
5
page views 24h 10
System Tags addon