ClamAV is an antivirus engine and tool suite.
The following instructions have been written for a Linux operating system.
1. Install ClamAV:
Ubuntu
sudo apt-get install clamav-data clamav-base clamav unrar lha arj unzoo zip unzip
Fedora
sudo yum install clamav clamav-scanner-sysvinit
If you want to be able to scan compressed files (like rars and zips), then install the required packages.
Note: RPMFusion non-free repo is required for unrar
sudo yum install unrar lha arj unzoo zip unzip
2. Install the updater:
Ubuntu
sudo apt-get install clamav-freshclam
Fedora
sudo yum install clamav-update
1. Edit the clamd.conf
sudo vim /etc/clamav/clamd.conf
2. Comment out the Example line in the config file, which tells the system to use it. So find Example, and replace with:
#Example
3. Next we set the port to listen on. Find the TCPSocket entry and set it to
TCPSocket 3310
Result: Now when we start the ClamAV daemon, it will open and run on port 3310.
See http://linuxreviews.org/man/clamd.conf/ for a list of options for this config file.
Before you can start the ClamAV service, you need to update the ClamAV database with virus definitions.
You can force it to update now by running the freshclam as root.
sudo freshclam
The database files are under /var/lib/clamav/
To start the service, simply use the service command.
sudo service clamd.scan start
To add the ClamAV service to the default run levels.
sudo chkconfig clamd.scan on
Download and install ClamWin from http://www.clamwin.com/content/view/18/46/
Definitions are required to be updated each weekday.
1. Download to your USB drive the daily.cvd file from http://www.clamav.org/download/cvd/ website
2. Change the name from daily.cvd.txt to daily.cvd and copy this file to the public/clamav folder on the Workbench server over writing the previous day's file.