Installation of Anti Virus software for Linux. This is to protect Windows users who are connecting to the Linux server to get files. This posting describes the installation and configuration of an Anti Virus product for Linux. I have chosen the Clamav Anti Virus product for x86 Linux. This Anti-Virus product is installed on a Debian based system with this command:
sudo apt-get install clamav clamav-base
This will install the Clamav product and enable the virus protection service on the Linux computer. This is very useful for protecting users of the Linux file server from any infected files that were put there by employees. This software will run automatically in the background and scan files to prevent infection of Windows clients that are accessing the Linux file server. This Anti-Virus product is not very difficult to use and will give protection to Windows computers from any malicious software and viruses that are resident in the files on the shared folder. Clamav does not use much memory and is very reliable. I wanted to install the Mcafee anti-virus and give that a try on Linux, but that is not as easy as installing Clamav.
Type clamscan to run a scan of a directory on your Linux system.
homer@neo:~$ clamscan /home/homer/.gksu.lock: Empty file /home/homer/.pulse-cookie: OK /home/homer/.ICEauthority: OK /home/homer/.profile: OK /home/homer/.xdvirc: OK /home/homer/.gtk-bookmarks: OK /home/homer/.bashrc: OK /home/homer/.viminfo: OK /home/homer/.bash_logout: OK /home/homer/.xsession-errors.old: OK /home/homer/.bash_history: OK /home/homer/partitions.txt: OK /home/homer/.mysql_history: OK /home/homer/file1.txt: OK /home/homer/.vimrc: OK /home/homer/.fehbg: OK /home/homer/moodle.sql: OK /home/homer/.xsession-errors: OK ----------- SCAN SUMMARY ----------- Known viruses: 2399132 Engine version: 0.97.8 Scanned directories: 1 Scanned files: 17 Infected files: 0 Data scanned: 3.48 MB Data read: 1.20 MB (ratio 2.89:1) Time: 6.905 sec (0 m 6 s)
To install the Clamav definitions database on Linux type this command.
This will download and install the newest versions of the virus definitions database. This is how easy it is to install a virus scanner on Linux.
homer@neo:~$ sudo freshclam [sudo] password for homer: ClamAV update process started at Sat Jun 22 04:58:49 2013 WARNING: DNS record is older than 3 hours. WARNING: Invalid DNS reply. Falling back to HTTP mode. Downloading main.cvd [100%] main.cvd updated (version: 54, sigs: 1044387, f-level: 60, builder: sven) Downloading daily.cvd [100%] daily.cvd updated (version: 17385, sigs: 1360120, f-level: 63, builder: neo) Downloading bytecode.cvd [100%] bytecode.cvd updated (version: 214, sigs: 41, f-level: 63, builder: neo) Database updated (2404548 signatures) from db.local.clamav.net (IP: 188.8.131.52)