kleptonite Posted May 26, 2011 Share Posted May 26, 2011 I would like to be able to schedule a regular AV scan of a sub-set of my files. I imagine that ClamAV is the obvious choice for a scanner, but having found these two pages: http://wiki.clamav.net/bin/view/Main/SlackwareInstall http://www.linuxpackages.net/pkg_details.php?id=1784 , it is clear that I will need advice from someone more experienced with unRAID in order to get this software installed and running. Is there anyone in the community who can advise me which package to choose and how to install it? Link to comment
MTA99 Posted May 26, 2011 Share Posted May 26, 2011 Had a really quick look at this while in work. Used the code below to download and install ClamAV wget --directory-prefix=/boot/packages/ http://www.software-mirror.com/linuxpackages/Slackware/Slackware-12.2/martijn/clamav-0.96.1-i486-1McD.tgz installpkg /boot/packages/clamav-0.96.1-i486-1McD.tgz Update your database with /usr/bin/freshclam Then run a scan with /usr/bin/clamscan -r -v /mnt/user -r for recursive sub directories -v verbose /mnt/user directory to scan (if you don't define a dir it will just scan /usr/bin/) And that's as far as I got. Guess we'll have to rtfm to get it auto scanning new files Link to comment
BRiT Posted May 27, 2011 Share Posted May 27, 2011 Here's some more options for getting the latest versions of ClamAV [0.97] for Slackware -- http://connie.slackware.com/~alien/slackbuilds/clamav/pkg/ . I think the Slackware 13.37 package will work with the unRAID 5.0beta6 or newer series. Link to comment
kleptonite Posted May 27, 2011 Author Share Posted May 27, 2011 Thank you for both your replies. I should have said that I am using 4.7 - Does that make any difference? Link to comment
MTA99 Posted May 27, 2011 Share Posted May 27, 2011 Thanks for the link BRiT. I uninstalled version 0.96 and used a Slackware 13.0 build to get 0.97 This works on my 4.7 build wget --directory-prefix=/boot/packages/http://connie.slackware.com/~alien/slackbuilds/clamav/pkg/13.0/clamav-0.97-i486-1alien.tgz installpkg /boot/packages/clamav-0.97-i486-1alien.tgz All other commands work as my post above. Seems a touch faster than 0.96, just running a scan now to see. EDIT: Scan finished in ~14m30s for 2.8gig of mixed files on 0.96, same files on 0.97 took 14m2s Its possible to run freshclam as a daemon so it auto updates the virus database /usr/bin/freshclam -daemon -c4 Where -c4 will search for an update 4 times in a 24hr period. Set to anything from 1 - 24. From what I've read realtime scanning of new files is not possible with vanilla ClamAV. That feature is offered by third party programs. A reasonable solution would be to set a Cron task to run on your backup folder every evening or every hour.............depends how much data you have to scan. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.