|
prelink.confを編集する これやらないとantivirなどのバイナリファイルが書き換えられ、その状態でantivirを起動すると「error (program file of AntiVir has been modified):」って怒られちまいます。 $ su -c 'vi /etc/prelink.conf' リストの一番下に下記を追記 -b /usr/lib/AntiVir AntiVirのインストール http://www.free-av.com/からプログラムをダウンロードする。現時点でのバージョンは2.1.11-21 $ tar -xzvf antivir-workstation-pers.tar.gz $ cd antivir-workstation-pers $ su -c './install' だいたいyesで進んでいく。
.......
Note: Dazuko currently only works with GNU/Linux, FreeBSD and Solaris systems. If you are interested in helping us port Dazuko to OpenBSD, feel free to check out the Dazuko Project at: http://www.dazuko.org available options: m k n How should AvGuard be installed? [k] m <- `m`を選択
......
Enter the full path to dazuko.ko: /lib/modules/2.6.22.1-21.fc7_DAZUKO/extra/dazuko.ko モジュールの場所を指定 ※1
........
Be sure to read the README file for additional information. Thank you for your interest in Avira AntiVir Workstation (UNIX).
END
これで完了。 ※1) 後述の作成したスクリプトでdazuko.koを有効にするので、あまり設定に意味は無いかもしれませぬ。 ユーザーグループを編集 インストーラよりantivirがグループに追加されます。このグループにantivirを使用するユーザーを追加します。 $ su -c 'gpasswd -a username antivir' 一度、ログアウトして再度、ログインする。 GUI版を起動してみる javaで構成されているみたいです。GCJ、本家JAVAのどちらを使用しても動作に問題はないようです。 ではでは、`antivir-gui`で起動します。 bash-3.2$ antivir-gui
ERROR: Can't connect to an X server. Please try the following:
- generate or merge `.Xauthority'. You can merge with: $ xauth merge <path-to-user-with-X-rights>/.Xauthority 左様でございますか。 $ touch ~/.Xauthority これで、無事起動することができました。 
起動スクリプトを修正 antivirのインストーラにより/etc/rc(0-6).dに起動スクリプトが直に設置されます。しかし、起動は問題なかったのに再起動&シャットダウン時に「Sending all processes the TERM signal...」で止まってしまうようになるんですよ。再起動、終了の度にPCのリセットボタンを押していたらタマランので、起動スクリプトを作成しました。 既存のスクリプトを削除 $ su -c 'rm /etc/rc?.d/S20av*' $ su -c 'rm /etc/rc?.d/K80av*' #!/bin/sh # # avguard Start/Stop AvGuard # # chkconfig: 2345 20 80 # description: AntiVir Workstation PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/lib/AntiVir" # Source function library. . /etc/rc.d/init.d/functions antivir=/usr/lib/AntiVir/antivir prog=avguard module=dazuko pidfile=/var/run/avguard.pid lockfile=/var/lock/subsys/${prog} options="--updater-daemon" GUARD_TYPE="workstation" RETVAL=0 check_module() { if [ -z "`lsmod | grep ^dazuko`" ]; then modprobe dazuko >/dev/null 2>&1 fi if [ ! -e /dev/dazuko ]; then mknod -m 600 /dev/dazuko c `grep dazuko /proc/devices | sed "s/ .*//"` 0 fi } start() { echo -n $"Starting $prog: " check_module || exit 1 daemon $antivir --${GUARD_TYPE} && daemon $antivir $options RETVAL=$? echo [ $RETVAL = 0 ] && touch ${lockfile} ${pidfile} return $RETVAL } stop() { echo -n $"Stopping $prog: " killproc $antivir RETVAL=$? echo [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile} } restart() { stop start } reload() { restart } force_reload() { restart } status $antivir >/dev/null running=$? case "$1" in start) [ $running = 0 ] && exit 0 start ;; stop) stop ;; status) status $antivir ;; restart) restart ;; reload|force-reload|condrestart|try-restart) restart ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}" exit 2 esac exit $RETVAL
アップデーターもまとめて起動しているとか色々ツッコミどころはあるかとおもいますが・・・ これをFedoraのサービスとして登録します。しちゃいます。 作成したスクリプト(下記ではavguard)を設置 # cp avguard /etc/rc.d/init.d/ ; chmod 755 /etc/rc.d/init.d/avguard ; chown root:root /etc/rc.d/init.d/avguard # chkconfig --add avguard これにて、再起動&シャットダウン時のトラブルが解決しました。ヨカッタネ。
Tags: etc Fedora7 Antivirをインストールする2 |