Installing Clam AntiVirus
Clam Antivirus
Clam Antivirus, commonly abbreviated as ClamAV, is an open-source virus scanner that runs on Unix-like operating systems.
I personally rented a Sakura VPS, installed some middleware, and was checking that it worked. Before I knew it, the server was hit by a DoS attack and I got a notice saying “We are going to shut down your server.” That scare is what led me to install this.
Installation Steps
Either of the following two methods works fine. Installing via yum is easier, since it comes with a startup script and places everything on the path for you.
- Via yum
1 | # yum install clamav clamav-update |
- Build from source
1 | # cd /usr/local/src |
Updating the Configuration File
/etc/clamd.conf
1 | // To update the definition file, uncomment "User clam" |
Startup Configuration
1 | // Start |
Verifying Execution
1 | # clamscan --infected --remove --recursive |
| Option | Explain |
|---|---|
| –infected | Show only the virus-infected files |
| –remove | Delete the virus-infected files |
| –recursive | Scan subdirectories recursively |
You can check each option with clamscan -h.
However
This only installs a virus scanning tool. Since technology advances day by day and there is no guarantee you won’t be compromised, always keep an eye on security trends.
