'''NOTE:''' You will need to enable email on your HDA to use option "b". See [[Main_Page#Community_Tutorials|Community Tutorials]] for guidance.
==Configure Virus Definitions Update == touch /var/log/clamav/freshclam.log chmod 600 /var/log/clamav/freshclam.log chown clamupdate /var/log/clamav/freshclam.log* Set up cron job N * * * * /bin/freshclam --quiet '''NOTE:''' Change N to any value between 3 and 57 for minutes. This will help prevent conflicts with other cron jobs that typically run at 0. == Incremental Daily and Full Weekly Scans ====
You can expand on the above by making a daily cronjob script that only scans files changed in the last 24 hours, and a weekly cronjob script that does a full filesystem scan. You may choose to do this for reasons of efficiency, as scanning only the files changed in the last 24 hours is an order of magnitude faster. Your daily cron file would look something more like this:
<pre>#!/usr/bin/env bash
# -i prints only infected files, -f is the list of files to scan, and -l is the output log
clamscan -i -f "${LIST}" -l "${RESULTS}"</pre>
* Configure virus definitions update
touch /var/log/clamav/freshclam.log
chmod 600 /var/log/clamav/freshclam.log
chown clamupdate /var/log/clamav/freshclam.log
* Set up cron job
N * * * * /bin/freshclam --quiet
'''NOTE:''' Change N to any value between 3 and 57 for minutes. This will help prevent conflicts with other cron jobs that typically run at 0.
== Using Greyhole ==