Last-modified: 2013-03-17 (日) 15:48:40
Avira/CentOSへのインストール

概要

Aviraをインストールします。

手順

  1. ソースを取得します。
    Everything is expanded.Everything is shortened.
      1
      2
    
    -
    !
    
    # パスは変わる恐れがあるので、公式サイトから辿るのが無難
    wget http://dlpe.antivir.com/package/wks_avira/unix/en/pers/antivir_workstation-pers.tar.gz
  2. インストールします。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
    
    -
    !
     
    -
    !
     
    -
    !
     
    -
    -
    |
    -
    -
    |
    -
    !
    |
    -
    !
    |
    -
    |
    |
    !
    |
    -
    !
    |
    -
    !
    |
    -
    -
    |
    -
    !
    |
    -
    !
    
    # 展開
    tar zxvf antivir_workstation-pers.tar.gz
     
    # 移動
    cd antivir-workstation-pers-3.0.5-13
     
    # インストール
    ./install
     
    # ライセンス確認後、承諾するか聞かれる
    do you agree to the license terms ? [n] y
     
    # アップデーターのリンクを/usr/sbinに作成するか
    Would you like to create a link in /usr/sbin for avupdate ? [y] {Enter}
     
    # アップデートをcronタスクとして登録するか
    Would you like to setup Engine and Signature updates as cron task ? [y] n
     
    # 週一回Workstation本体の更新を確認するか
    Would you like to check for Guard updates once a week ? [n] {Enter}
     
    # DazukoFSがシステムに組み込まれてい場合、インストールするか聞かれる
    # リアルタイム保護をする場合必要なファイルシステムドライバスタックらしい
    # 今回はリアルタイム保護しないので、入れない
    Would you like to install dazukofs now ? [y] n
     
    # 検疫ディレクトリを/home/quarantineに作成するか
    Would you like to create /home/quarantine ? [y] {Enter}
     
    # GNOME用プラグインをインストールするか
    Would you like to install the AVIRA Guard GNOME plugin ? [n] {Enter}
     
    # リアルタイム保護のリンクを/usr/sbinに作成するか
    Would you like to create a link in /usr/sbin for avguard ? [y] n
     
    # 起動スクリプトを設定するか
    Set up boot scripts [y]: n
     
    # Security Management Centerを有効にするか
    Would you like to activate SMC support ? [y] n
  3. Aviraはバイナリの書き換えを検出すると、動作を停止するので、prelinkの対象から除外します。
    Everything is expanded.Everything is shortened.
      1
    
     
    
    echo '-b /usr/lib/AntiVir' >> /etc/prelink.conf
  4. 設定ファイル一覧です。
    パス概要
    /etc/avira/avguard.confリアルタイムスキャン設定ファイル
    /etc/avira/avscan.conf手動スキャン設定ファイル
    /etc/avira/avguard-scanner.confAVIRA Guard scanner config
    /etc/avira/avupdate.confAVIRA Avupdate options
    /etc/cron.d/avira_updaterアップデートタスク
  5. 必要ならば、ログの設定を行ないます。
    今回はリアルタイムスキャンを使わないので、avscan.confのみ編集します。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
      6
      7
      8
      9
    
    -
    !
     
    -
    |
    |
    !
    -
    !
    
    # ログファイルパス
    LogFile /var/log/avira/avscan.log
     
    # シスログ:ファシリティはデフォルトのままuser
    # SyslogFacility [facility]
    # Default: SyslogFacility user
     
    # シスログ:プライオリティ
    SyslogPriority warning
  6. 必要ならば、logrotateの設定を行ないます。
  7. アップデートします。
    Everything is expanded.Everything is shortened.
      1
    
     
    
    avupdate --product=Guard
  8. avira_d.shを作成し、cronで手動スキャンを行わせます。
  9. 動作確認をします。
    eicar | THE ANTI-VIRUS OR ANTI-MALWARE TEST FILEからテストウイルスをダウンロードして確認します。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
      6
      7
      8
      9
    
    -
    !
     
    -
    !
     
    -
    |
    |
    
    # テストウイルス、ダウンロード
    wget http://www.eicar.org/download/eicar.com
     
    # 手動スキャン
    /root/cron_scripts/avira_d.sh
     
    # メールを確認し、検出され移動したことが書かれていることを確認する
    # また、/home/quarantineに移動してあることを確認する
    # /home/quarantine内のファイルを削除し、終了
    

検証時の環境

参考