วันพุธที่ 24 ธันวาคม พ.ศ. 2551

กาติดตั้ง clamAV

Anti-virus
[edit]
ClamAV AntiVirus Server

* Read #General Notes
* Read #How to add extra repositories

* Although viruses and spyware are less common in Linux systems, they do exist. Furthermore, many users share files with Windows users, either on their own computer or on LANs. ClamAV is useful for checking these files.

* Install ClamAV AntiVirus Server:

sudo apt-get install clamav

If you get errors, try running the command again
[edit]
How to update virus definitions

* Virus definition updates are provided by the clamav-freshclam module, which is installed as part of clamav.

* Run freshclam manually:

sudo freshclam

[edit]
How to install ClamAV automatic updater daemon

* The clamav daemon will run freshclam automatically to keep definitions up-to-date. It will also run e-mail server checking modules for e-mail attachments.

sudo apt-get install clamav-daemon

[edit]
How to scan files or folders

sudo clamscan -r /location_of_files_or_folders

[edit]
How to install ClamTk GUI frontend for ClamAV

sudo apt-get install clamtk

ClamTk can be accessed from the Menu: Applications--> Accessories-->Virus Scanner

* Note: As of August 1, 2007, the Ubuntu repository version of ClamTk is 0.31, which has a bug that does not allow it to run. Obtain and install the current version of ClamTk 0.99, which functions fine in Ubuntu Feisty:

wget -c http://downloads.sourceforge.net/clamtk/clamtk_2.99-1_all.deb
sudo dpkg -i clamtk_2.99-1_all.deb

[edit]
How to automatically scan files/folders for viruses

* Read #General Notes
* Read #How to install ClamAV AntiVirus Server

* This method is used to automatically scan files/folders for viruses at a scheduled time.
* * * * * * means: minute hour date month year

* Edit the crontab file:

EDITOR=gedit sudo crontab -e

comment: sure? (root's crontab)

or, simply,

gksudo gedit crontab -e

comment: sure? - (its work?)

* Append a line similar to the following line at the end of file. In this example, scanning will be done at 02:04am every day of every month of every year.

04 02 * * * sudo clamscan -r /location_of_files_or_folders

ไม่มีความคิดเห็น:

แสดงความคิดเห็น