Ubuntu 18.04
Sponsored Link

Install Clam AntiVirus2018/04/27

 
Install Clam AntiVirus to protect server from virus.
[1] Install Clamav AntiVirus.
root@dlp:~#
apt -y install clamav
root@dlp:~#
sed -i -e "s/^NotifyClamd/#NotifyClamd/g" /etc/clamav/freshclam.conf

root@dlp:~#
systemctl stop clamav-freshclam
# update pattern files manually

root@dlp:~#
freshclam

ClamAV update process started at Fri Apr 27 16:31:48 2018
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd is up to date (version: 24517, sigs: 1923514, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)

root@dlp:~#
systemctl start clamav-freshclam
[2] Try to scan.
root@dlp:~#
clamscan --infected --remove --recursive /home


----------- SCAN SUMMARY -----------
Known viruses: 6483695
Engine version: 0.99.4
Scanned directories: 5
Scanned files: 4
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 12.233 sec (0 m 12 s)

# download test virus

root@dlp:~#
wget http://www.eicar.org/download/eicar.com
root@dlp:~#
clamscan --infected --remove --recursive ./

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.    
# just detected
----------- SCAN SUMMARY -----------
Known viruses: 6483695
Engine version: 0.99.4
Scanned directories: 4
Scanned files: 5
Infected files: 1
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 2.00:1)
Time: 11.747 sec (0 m 11 s)
Matched Content