Difference between revisions of "ClamAV"

add url for customized config files, change layout
imported>FadeMind
(First release)
 
imported>FadeMind
(add url for customized config files, change layout)
Line 22: Line 22:
= Setup ClamAV =
= Setup ClamAV =


* Prepare configuration files:
Prepare configuration files:


  sudo cp /etc/clamav/clamd.conf.sample /etc/clamav/clamd.conf
  sudo cp /etc/clamav/clamd.conf.sample /etc/clamav/clamd.conf
Line 28: Line 28:
  sudo cp /etc/clamav/freshclam.conf.sample /etc/clamav/freshclam.conf
  sudo cp /etc/clamav/freshclam.conf.sample /etc/clamav/freshclam.conf


sudo sed -i 's/Example/#Example/' /etc/clamav/clamd.conf
Edit configuration files:


  sudo sed -i 's/Example/#Example/' /etc/clamav/freshclam.conf
  sudo gedit /etc/clamav/clamd.conf


* Fix ''clamd.sock'' error:
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 touch /var/lib/clamav/clamd.sock
Line 38: Line 45:
  sudo chown clamav:clamav /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 -v


* Setup daemons:
Setup daemons:
   
   
  sudo freshclam -d
  sudo freshclam -d
Line 50: Line 57:
  sudo systemctl start clamd && sudo systemctl start freshclamd
  sudo systemctl start clamd && sudo systemctl start freshclamd


* Check status daemons:
Check status daemons:


  sudo systemctl status clamd && sudo systemctl status freshclamd
  sudo systemctl status clamd && sudo systemctl status freshclamd


* Check database version:
Check database version:


  freshclam -V
  freshclam -V
Anonymous user