Last-modified: 2014-08-03 (日) 04:18:19
Avira/Debianへのインストール

概要

Aviraをインストールします。
Debian Squeeze x64環境へ入れるため、x86用ライブラリを事前に入れます。

手順

  1. ia32-libsをインストールします。
    Everything is expanded.Everything is shortened.
      1
      2
    
     
     
    
    apt-get update
    apt-get install ia32-libs
  2. ソースを取得します。
    Everything is expanded.Everything is shortened.
      1
      2
    
    -
    !
    
    # パスは変わる恐れがあるので、公式サイトから辿るのが無難
    wget http://dlpe.antivir.com/package/wks_avira/unix/en/pers/antivir_workstation-pers.tar.gz
  3. インストールします。
    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
    
    -
    !
     
    -
    !
     
    -
    !
     
    -
    -
    |
    -
    -
    |
    -
    !
    |
    -
    !
    |
    -
    |
    |
    !
    |
    -
    !
    |
    -
    !
    |
    -
    -
    |
    -
    !
    
    # 展開
    tar zxvf antivir_workstation-pers.tar.gz
     
    # 移動
    cd antivir-workstation-pers-3.1.3.5-0
     
    # インストール
    ./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]: {Enter}
  4. インストール時点のライセンスファイルが古くてアップデート出来ないので更新します。
    Avira/The license expired at 2012-09-12
  5. 設定ファイル一覧です。
    パス概要
    /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アップデートタスク
  6. 必要ならば、ログの設定を行ないます。
    今回はリアルタイムスキャンを使わないので、avscan.confのみ編集します。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
      6
      7
      8
      9
    
    -
    !
     
    -
    |
    |
    !
    -
    !
    
    # ログファイルパス
    LogFile /var/log/avira/log
     
    # シスログ:ファシリティはデフォルトのままuser
    # SyslogFacility [facility]
    # Default: SyslogFacility user
     
    # シスログ:プライオリティ
    SyslogPriority warning
  7. 必要ならば、logrotateの設定を行ないます。
  8. アップデートします。
    Everything is expanded.Everything is shortened.
      1
    
     
    
    avupdate-guard --product=Scanner
  9. avira_d.shを作成し、cronで手動スキャンを行わせます。
  10. 動作確認をします。
    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内のファイルを削除し、終了
    

検証時の環境