Disclaimer
This information HAS errors and is made available WITHOUT ANY WARRANTY OF ANY KIND and without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It is not permissible to be read by anyone who has ever met a lawyer or attorney. Use is confined to Engineers with more than 370 course hours of engineering.
If you see an error contact:
+1(785) 841 3089
inform@xtronics.com
Clamav
Install Clamav
# wajig install clamav
# wajig reconfigure clamav-freshclam
- Most likely you want daemon.
- Pick a mirror site
- Some number of updates per day - that messes with your crontab config below.
- Don't notify clamd (unless you installed the bit not recommended).
- Google safe Browsing - probably no
- Do you want to download the bytecode database --> yes - this gets you a db to start with.
- Rotate logs - yes.
Scan a Directory
Where /root/viruses is where to dump viruses
# clamscan -r -i --move=/root/viruses /home/
Example crontab line
- 12 3 * * * nice -2 clamscan -r -i --move=/root/viruses /home >> /var/log/clamav/clamav.log
Notes
- Using the scan daemon makes things more complicated than need be.
- the Google bit isn't worth the hassle (as of 2015)