Use Clam Antivirus to protect your Linux against viruses

Source: Internet
Author: User
Tags gmp

Official homepage: http://www.clamav.net/
The latest version is 0.88. You must use the latest version to upgrade the virus database.

 

System Requirements: refer to the original official document below

Quote:
Requirements
The following elements are required to compile ClamAV:
Zlib and zlib-devel packages
GCC compiler Suite (both 2.9x and 3.x are supported)
The following packages are optional but highly recommended:
Bzip2 and bzip2-devel Library
Gnu mp 3
It's very important to install the GMP package because it allows freshclam to verify the digital signatures of the virus databases. if freshclam was compiled without GMP support it will display "Security Warning: no support for digital signatures" on every update. you can download gnu mp at http://www.swox.com/gmp/
A note for Solaris/iSCSI users: You must set the ABI system variable to 32 (e.g. setenv Abi 32) before running the configuration script of GMP.

Start Installation
Add group and user first
# Groupadd ClamAV
# Useradd-G ClamAV-S/bin/false-c "Clam Antivirus" ClamAV
Install
# Tar zxvf clamav-0.88.tar.gz
# Cd clamav-0.88
#./Configure -- prefix =/usr/local/ClamAV -- sysconfdir =/etc -- disable-zlib-vcheck -- disable-DNS -- disable-clamuko
(Clamav-0.88 requirements zlib version is relatively high, my as4 system comes with 1.2.1.2-1 can not pass, look at the latest version is 1.2.3, huh, too lazy to upgrade)
# Make
# Make install
Log File Settings
# Touch/var/log/freshclam. Log
# Chmod 600/var/log/freshclam. Log
# Chown ClamAV/var/log/freshclam. Log
# Touch/var/log/clam. Log
# Chmod 600/var/log/clam. Log
# Chown ClamAV/var/log/clam. Log
Configuration File
# Vi/etc/freshclam. conf
The following are the modified items.

Code: # example
Databasedirectory/var/lib/ClamAV
Updatelogfile/var/log/freshclam. Log

# Vi/etc/clamd. conf

Code: # example
Logfile/var/log/clam. Log

So far, installation is complete

Use freshclam to upgrade the virus database:
# Freshclam

Usage:
Kill files in the current directory
# Clamscan ./
Kill all files and directories in the current directory!
# Clamscan-R ./
Scan and kill the Dir directory,
# Clamscan dir
Kill all files and directories under the Dir directory!
# Clamscan-r dir

Other differences
-L [path] [file name] add scan report
# Clamscan-L/var/log/clamscan. log/
-- Move [path] to move the virus file ..
-- Remove [path] Delete Virus files
-- Unzip (unrar) decompress the compressed file for scanning

The path of clamscan is/usr/local/ClamAV/bin/clamscan.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.