AVG Anti-Virus 8.5 for Linuxの使用法

以前にはAVG Anti-VirusにはGUIが付いていたようですが、

現在はコマンドラインでの使用になります。

普通にインスールしますと、

$ps -e

で起動しているプロセスを見ることができます。

AVGに関係していそうなデーモンは四つありました。

1254 ? 00:00:01 avgd
1267 ? 00:00:00 avgavid
1292 ? 00:00:01 avgtcpd
1309 ? 00:00:07 avgscand

avgspamd -- anti-spam daemon

が起動していないのは、恐らくsendmailなどのメールサーバーを立ち上げていないからだと思います。

インスール時に、たしかそのようなメッセージが表示されました。

これらのデーモンはいったい何なのかは、

/opt/avg/avg8/doc/

のディレクトリのREADMEに書いてあります。

Description
-----------

Avg functions are secured by several daemons that are managed via command-line.


DAEMONS:
avgd -- general AVG daemon; starts first, manages other AVG daemons
avgavid -- AVI daemon; loads AVI into shared memory
avgsched -- scheduler for planning periodic events (update etc.)
avgtcpd -- e-mail scanning daemon; supports SMTP, AVG, and Milter protocol

avgspamd -- anti-spam daemon
avgscand -- anti-virus daemon
avgupd -- update daemon
avgoad -- on-access daemon

COMMAND-LINES:
avgctl -- basic control of AVG product, such as launching, stopping,
restarting, registration, and getting statistics from running
daemons
avgcfgctl -- can get and set configurations values
avgscan -- launch on-demand scan of requested path
avgupdate -- run virus database update or program update via avgupd with
specified parameters
avgdiag.sh -- diagnostic tool for easy collection of troubleshooting data

For more detailed information please refer to the respective man page.


READMEファイルで書かれているのはこれだけなので、

実際のコマンドの使い方は

$man avgscan

$man コマンド名

と入力するとマニュアルが表示されます。

とりあえず、知っておく必要のあるコマンドはavgscanと avgupdateの二つです。

コマンドラインのアンチウイルス・スキャナーのavgscanコマンドですが、

$man avgscan

と入力しましょう。

Unixのコマンドのマニュアルは非常に取っ付きにくいのですが、

わかり易い例が書かれておりますので、これだけ知っておけば問題はありません。

EXAMPLES
avgscan / -x /dev -x /mnt
Scan all except for /dev and /mnt directories.

avgscan /home/user1 /home/user2 -arc -pwdw
Scan user1 and user2 directory including archives and reporting
password protected archives.

avgscan --coo --heur /home/user1/.mozilla
Cookies scan.


avgscan /

の場合はroot権限が必要です。

Ubuntu なら sudoが使えますが

Fedora ではデフォルトではsudoは使えませんので

$su

root password 入力

#avgscan /

となります。



パターンファイルの更新コマンドはavgupdateですが、

Ubuntu : sudo avgupdate

Fedora :$su
root password 入力
#avgupdate


パターンファイルのアップデートも手動、スキャンも手動ならこれだけ知っていれば良いです。

なにもかも自動化したいひとは、


avgsched -- scheduler for planning periodic events (update etc.)

avgupd -- update daemon

これらのマニュアルを読んで研究して下さい。