If you want to make your Linux machine more secure then you need to install antivirus. In order to install ClamAV on your machine, first of all run the following command to update your system. Now ClamAV has been installed on your machine. Run the following command to check whether it has been installed or not.
If the above command gives the version of ClamAV then it has been installed successfully. To install ClamAV signature database, follow the given steps. First step is to stop the clamav-freshclam service by running the following command in the terminal window. In the Second Step , now we have to update the signature database manually. There are two ways to do so. First Method involves to run the following command in the terminal. This command will install the signature database in your machine.
If this command does not work, then goto the following link to download signature database file. Now the third step is to start the clamav-freshclam service by running the following command. You can use further options with this command.
Run the following command in the terminal window to see all the available options. NOTE: This can take some time depending upon the amount of data and processing speed of your system. In order to install ClamTK , run the following command in the terminal window.
Here we will discuss how to scan a directory using ClamTK. First of all run the following command to start ClamTK package. ClamTK will scan that directory and display the result as shown in the following figure. So you can use any of them but the best choice is to use ClamTK as it provides a graphical user interface which makes it easier to use, specially for beginners. So far we have discussed how to install and use ClamAV and ClamTK , so what if you want to remove these packages from your system?
You can remove these packages by running the following commands. Then you can start your service and add it to startup :.
Like you did for freshclam , create a service for ClamAV. The configuration file already exists, but you will have to change its name:.
After you have configured the ClamAV antivirus service, you can scan any server directory for viruses scanner mode. To scan the specified directory for viruses, use the following command:. With these parameters, the antivirus will immediately delete the infected files. If you want to move suspicious files to a separate directory, run the scan using the —move parameter:. If you want to exclude some of the directories from scanning, use the —exclude-dir parameter:.
To scan for viruses regularly, you can configure a cron job with the settings you want. Notify me of followup comments via e-mail. You can also subscribe without commenting. Leave this field empty. Home About. Related Reading. December 23,
0コメント