Difference between revisions of "ClamAV"

464 bytes removed ,  4 years ago
Update instructions in-line with current version
imported>FadeMind
m (update clamtk homepage url)
imported>Dalto
(Update instructions in-line with current version)
Line 22: Line 22:
= Setup ClamAV =
= Setup ClamAV =


Prepare configuration files:
Edit the contents of the configuration files to suit your preferences:


sudo cp /etc/clamav/clamd.conf.sample /etc/clamav/clamd.conf
* ''/etc/clamav/clamd.conf''
 
* ''/etc/clamav/freshclam.conf''
sudo cp /etc/clamav/freshclam.conf.sample /etc/clamav/freshclam.conf
 
Edit configuration files:
 
sudo gedit /etc/clamav/clamd.conf
 
sudo gedit /etc/clamav/freshclam.conf
 
Replace the contents of the configuration files as follows:
 
* [https://pastebin.com/raw.php?i=PUS1RLFb Customized '''/etc/clamav/clamd.conf''' file for proper working.]<br/>
* [https://pastebin.com/raw.php?i=xuWSWm3P Customized '''/etc/clamav/freshclam.conf''' file for proper working.]
 
Fix ''clamd.sock'' error:
 
sudo touch /var/lib/clamav/clamd.sock
 
sudo chown clamav:clamav /var/lib/clamav/clamd.sock


First update database:
First update database:


  sudo freshclam -v
  sudo freshclam


Setup daemons:
You may get a notification that clamd was not notified. This is normal because we haven't started the service yet.
   
sudo freshclam -d


  sudo systemctl enable clamd && sudo systemctl enable freshclamd
Start and enable service:
  sudo systemctl enable --now clamav-daemon


  sudo systemctl start clamd && sudo systemctl start freshclamd
  sudo systemctl enable --now clamav-freshclam


Check status daemons:
Check status daemons:


  sudo systemctl status clamd && sudo systemctl status freshclamd
  sudo systemctl status clamav-daemon && sudo systemctl status clamav-freshclam


Check database version:
Check database version:
Anonymous user