「F-Prot Antivirus」の設定
「F-Prot Antivirus」のダウンロード

F-Protのサイトより、Solaris x86 Workstations版をダウンロード。
以下のように入力し、ダウンロードする。

First Name: <= 名
Last Name: <= 姓
E-mail Address: <= メールアドレス
E-mail Address (again): <= メールアドレス再入力
Country: <= Japan
Intended use: <= Home User
Number of Computers in Your Network: <= 1-10
Where did you hear of F-Prot Antivirus?: <= Other

「F-Prot Antivirus」のインストール
Solaris# gunzip -c fp-solaris-i386-ws.tar.gz | tar xf - <= ダウンロードしたファイルの展開
Solaris# mv f-prot /usr/local/
Solaris# ln -fs /usr/local/f-prot/f-prot.sh /usr/local/bin/f-prot
Solaris# ln -fs /usr/local/f-prot/man_pages/f-prot.1 /usr/share/man/man1/
Solaris# ln -fs /usr/local/f-prot/man_pages/check-updates.pl.8 /usr/share/man/man8/
Solaris# chmod +x /usr/local/f-prot/f-prot
Solaris# chmod +x /usr/local/f-prot/tools/check-updates.pl
「HTTP::Request」のインストール

ウィルス定義のアップデート用のファイルは「HTTP::Request」が必要な為、インストールする。
なお、初めて「CPAN」を実行すると初期設定を行うことになる。
「CPAN」の設定についてはこちらを参照。

Solaris# perl -MCPAN -e shell <= 「CPAN」の実行
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan> m /HTTP::Request/ <= HTTP::Requestの確認
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Sun, 17 Jul 2005 10:03:45 GMT
Module          HTTP::Request   (G/GA/GAAS/libwww-perl-5.803.tar.gz)
Module          HTTP::Request::Common (G/GA/GAAS/libwww-perl-5.803.tar.gz)
Module          HTTP::Request::Form (G/GB/GBAUER/HTTP-Request-Form-0.952.tar.gz)
Module          HTTP::Request::Params (C/CW/CWEST/HTTP-Request-Params-1.01.tar.gz)
Module          OpenFrame::Segment::HTTP::Request (R/RC/RCLAMP/OpenFrame-3.05.tar.gz)
Module          POE::Component::Client::HTTP::Request (R/RC/RCAPUTO/POE-Component-Client-HTTP-0.7001.tar.gz)
Module          POE::Component::Client::HTTP::RequestFactory (R/RC/RCAPUTO/POE-Component-Client-HTTP-0.7001.tar.gz)
Module          POE::Component::Server::HTTP::Request (R/RC/RCLAMP/POE-Component-Server-HTTP-0.07.tar.gz)
8 items found

cpan> install HTTP::Request <= HTTP::Requestのインストール

Do you want to install lwp-request? [y] <= 空Enter
Do you want to install lwp-mirror? [y] <= 空Enter
Do you want to install lwp-rget? [y] <= 空Enter
Do you want to install lwp-download? [y] <= 空Enter

Do you want to install the GET alias? [n] <= 空Enter
Do you want to install the HEAD alias? [n] <= 空Enter
Do you want to install the POST alias? [n] <= 空Enter


cpan> quit <= 「CPAN」の終了
全ファイルのスキャン
Solaris# f-prot /
ウィルス定義ファイル最新化
Solaris# /usr/local/f-prot/tools/check-updates.pl
自動アップデート&スキャン
Solaris# vi ~/f-prot.sh <= 自動アップデート&スキャン実行スクリプト作成
#!/sbin/sh

/usr/local/f-prot/tools/check-updates.pl > /var/log/f-prot.log
/usr/local/bin/f-prot -auto -disinf -delete / >> /var/log/f-prot.log
/usr/bin/grep "Infection" /var/log/f-prot.log


Solaris# chmod 755 f-prot.sh <= スクリプトに実行権限付加
Solaris# crontab -e <= cron編集
00 05 * * * /root/f-prot.sh <= 追加(毎日5:00にウィルス定義ファイル最新化&全ファイルスキャンを行う)
▲ページのトップへ