Linux防毒軟體 ClamAV

因為看到AVG不會在開發給Linux使用的OS
所以看了一下http://www.av-comparatives.org/防毒軟體評比
發現裡面有介紹Linux用的防毒軟體Report資料
由於我比較需要的是Command-line的功能
瀏覽了一下 居然有一個我不知道的開源防毒軟體(我超弱的Orz
早知道就用這個就好啦

簡單的找了一下資料
官方網頁:https://www.clamav.net/
像我的是可以用YUM直接下載安裝
所以指令只要輸入:# yum install -y clamav clamav-update
他就會安裝完成

然後大家都知道的 第一步要更新病毒資料庫
打『clam』按TAB
疑!? 找不到像是update的指令
後來又翻了一下google
惃…居然是要用『freshclam』這個指令

然後 也得知要先處理相關設定的檔案
所以檔案查了一下 放在『/etc/freshclam.conf』
第一步要先把更新的資料庫增加一些放臺灣的連結
所以要找『DatabaseMirror』關鍵字
新增下面這幾個:
#DatabaseMirror database.clamav.net (記得這個加#號槓掉)
DatabaseMirror clamav.stu.edu.tw
DatabaseMirror db.tw.clamav.net
DatabaseMirror db.us.clamav.net
DatabaseMirror db.local.clamav.net

官方的那個連結速度太慢了 會等到瘋掉

存檔離開以後 就可以使用『freshclam』這個指令
輸入以後。。。 機車勒 這是啥鬼警報畫面
Can't open/parse the config file /etc/freshclam.conf
天殺的我不是已經設定好了嘛 怎會找不到檔案…QQ

依然還是要翻萬能的google
原來是還要把『/etc/freshclam.conf』檔案裡面
有個EXAMPLE敘述要加上#號槓掉 而他…就在開頭第一行…=A=
# Comment or remove the line below.
#Example

完成存檔後 執行『freshclam』這個指令
歐!看他在更新檔案 %跑跑跑
完成!!(得到安裝Linux新防毒軟體的成就)

基本掃描的指令如下:
clamscan -r /
clamscan -r -l ~/clamscan.log /

其他相關參考資料:
https://www.clamav.net/ ClamAV® open source antivirus engine
Linux 系統安裝防毒 – ClamAV – CentOS
http://askubuntu.com/questions/250290/how-do-i-scan-for-viruses-with-clamav
http://linuxhostingsupport.net/blog/error-cant-open-or-parse-the-config-freshclam-conf
http://askubuntu.com/questions/526317/cant-run-freshclam

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

請輸入下列驗證碼計算後阿拉伯數字 (Translate it, if not Taiwanese to post reply) *