How to setup clamav

i cant setup clamav for active detection and system checkup once a week or so if anyone can help?’

nano /etc/clamd.d/scan.conf

Sample: day, use crontab

every 5 days / crontab-generator.org sample
* * */5 * * /usr/bin/php /home/username/public_html/cron.php >/dev/null 2>&1

1x per day default clam-tk settings / use terminal and

  1. sudo clamtk add scheduling
  2. crontab -l
  3. crontab -e

white list settings: proc, sys, run, mnt, var/lib, flatpak, .steam map …

Sample clamtk
0 1 * * * /usr/bin/clamscan --exclude-dir=/root/.clamtk/viruses --exclude-dir=0\/proc --exclude-dir=\/sys --exclude-dir=\/run --exclude-dir=\/dev --exclude-dir=\/mnt --exclude-dir=\/var\/lib\/flatpak --exclude-dir=\/home\/dankahazi\/\.steam --exclude-dir=smb4k --exclude-dir=/run/user/root/gvfs --exclude-dir=/root/.gvfs --exclude-dir=.thunderbird --exclude-dir=.mozilla-thunderbird --exclude-dir=.evolution --exclude-dir=Mail --exclude-dir=kmail -i -r /root --log="$HOME/.clamtk/history/$(date +\%b-\%d-\%Y).log" 2>/dev/null # clamtk-scan

1 Like