iT邦幫忙

20

Linux 上的掃毒軟體 Avast 安裝設定

  • 分享至 

  • twitterImage
  •  

公司與家裡的Linux主機,一直以來都是用著Antivir,但是因為該公司不再提供長時間的免費授權,所以尋求另一條路,找到在Desktop一直用的Avast。以下就是安裝與設定過程:
首先是安裝囉~
可以到http://www.avast.com/eng/avast-for-linux-workstation.html
下載與註冊取得一年的更新序號~Free喔

安裝:

rpm -ivh avast4workstation-1.0.8-1.i586

就這麼簡單

第一次啟動吧:

avast -c /tmp

這樣下條件是有意義的,因為 第一次啟動要輸入序號,如果只下

avast

那會把整台機器掃一次毒,這會等很久喔!

接下來要先更新:

avast-update

第一次更新會等一下下啦~

正式掃毒:
希望顯示掃毒狀況與預設自動清除病毒病指定檢查 /etc 目錄,寫log 到 /var/log/avastscan.log中,並對所有壓縮檔案內的文件掃毒

avast -c /etc -r /var/log/avastscan.log --archivetype='A' --continue=3

如果要設定在 crontab 中

crontab -e -u root

然後加一條如下的指令,設定每天 早上 5:00 掃整台電腦
00 5 * * * avast -r /var/log/avastscan.log -n --archivetype='A' --continue=3

就可以囉~
後面附上指令參數說明:
參數

-_, --console
work in stdin/stdout (filter) mode

-a, --testall
test all files, regardless of extension or content (default)

-b, --blockdevices
scan block devices

-c, --testfull
scan entire files (may be slow)

-d, --directory
scan only directory content, don't scan subdirectories

-i, --ignoretype
ignore virus targeting

-n, --nostats
do not report statistics in the scanner output

-p, --continue=NUMBER
allows setting of an action to be automatically performed:
delete file - 1, repair file - 3, user input - 4

-r, --report=[*]FILE
write output to a report file, '*' for OK results

-t, --archivetype[=ARCHIVE_LIST]
scan inside archives. ARCHIVE_LIST may be Z(zip)', G(gzip)',
B(bzip2), T(tar)', I(mime)', J(arj)', R(rar)', X(exec)', O(zoo)', Q(arc)', H(lha)', F(tnef)', V(cpio)', K(chm)', P(rpm)', Y(iso)', D(dbx)', 6(sis)', U(ole)', W(winexec)', A(all)' or `N(none)'

-v, --viruslist[=PATTERN]
show list of virus/worm names matching PATTERN string, and quit

-h, --help
display help and exits

--usage
display program usage, and quit

-V, --version
output current version information and exit


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
0
jjw
iT邦研究生 1 級 ‧ 2008-08-01 21:44:24

謝謝分享

0
Ruei
iT邦研究生 1 級 ‧ 2008-08-02 18:29:58

我 Linux 裝防毒都是害怕 Windows 中毒 xd

0
鐵殼心
iT邦高手 1 級 ‧ 2008-08-02 19:45:32

這東西看起來不錯

0
kuochiahao
iT邦研究生 1 級 ‧ 2008-08-03 23:17:59

謝謝分享

0
jamesjan
iT邦高手 1 級 ‧ 2008-08-04 16:19:08

感謝分享

0
james
iT邦新手 4 級 ‧ 2008-08-06 13:58:13

感謝分享!

0
tibandyli
iT邦新手 2 級 ‧ 2008-08-22 13:52:53

很實用的分享文章~ 謝謝^^

0
chanchan
iT邦新手 2 級 ‧ 2009-07-24 09:03:43

很專業又學到了一項不錯喔

我要留言

立即登入留言