1、创建一个kaspersky目录,并将卡巴斯基网络代理安装包文件klnagent-6.0-529.i386.rpm拷贝到kaspersky目录。然后开始安装:
[root@test kaspersky]# rpm -ivh klnagent-6.0-529.i386.rpm
Preparing... ########################################### [100%]
1:klnagent ########################################### [100%]
Kaspersky Network Agent has been installed successfully but
needs to be properly configured before using.
Unfortunately, RPM is not able to run scripts interactively, so
please run
/opt/kaspersky/klnagent/lib/bin/setup/postinstall.pl
script by yourself to configure it.
[root@test kaspersky]# /opt/kaspersky/klnagent/lib/bin/setup/postinstall.pl
Please enter Administration Server DNS-name or static IP-address
202.120.111.91 //管理服务器的IP地址
Please enter Administration Server port number [14000]:
14000 //管理服务器的端口
Please enter Administration Server ssl port number [13000]:
13000 //管理服务器的SSL端口
Please enter ’Y’ to confirm that you want to use SSL encryption
or enter ’N’ to use non-encrypted communication [Y]:
N //是否使用SSL连接
Please enter default administration group name. The group name
can be up to 255 symbols.
By default group name will be generated automatically based on
the computer DNS-domain name.
product //输入计算机的DNS域名
Starting klnagent: klnagent started
Kaspersky Network Agent is installed.
Binaries were installed in /opt/kaspersky/klnagent/bin
2、安装卡巴斯基的反病毒程序,将安装包文件和授权许可文件拷贝到kaspersky目录;
3、进入kaspersky目录,开始安装:
[root@test cdrom]# cd /kaspersky //进入kaspersky目录
[root@test kaspersky]# rpm -ivh kav4fs-5.7-17.i386.rpm
//执行rpm –ivh 进行安装
Preparing... ############################################ [100%]
1:kav4fs…. ######################################### [100%]
Kaspersky Anti-Virus for Linux FileServer has been installed
successfully but needs to be properly configured before using.
Unfortunately, RPM is not able to run scripts interactively, so
please run
/opt/kaspersky/kav4fs/lib/bin/setup/postinstall.pl
script by yourself to configure it.
kavmidware started
klnagent connectors is reloaded
4、完成安装后,程序会提示运行:
Run /opt/kaspersky/kav4fs/lib/bin/setup/postinstall.pl
来配置图形化管理工具、安装KEY文件、以及更新。
(注意:最好把KEY文件与安装程序放在同一个目录下。)
[root@test kaspersky]# /opt/kaspersky/kav4fs/lib/bin/setup/postinstall.pl
运行后会出现下面的提示,询问是否用代理更新和是否现在更新。
Installing license files.
License file (a file with .key extension) is your personal
license key. You need to install it to use the application.
To install it right now, just enter the path to the location of
your license file (enter an empty string to continue without key
file installation):
/root //输入授权文件的路径
License file /root/013E76D7.key has been installed
Configuring KeepUp2Date proxy settings.
If you use an http proxy server to access the Internet, you need
to tell the Kaspersky Anti-Virus for Linux FileServer
KeepUp2Date component about it. Please enter the address of your
http proxy server in one of the following forms,
http://proxyIP:port or http://user:pass@proxyIP:port. If you
don’t have or need a proxy server to access the Internet, enter
’no’ here [no]:
No //是否选择代理服务器
Latest anti-virus bases are an essential part of your anti-virus
protection. Do you want to download the latest anti-virus bases
right now to insure your application is up to date? (If you
answer ’yes’, make sure you are connected to the Internet):
[yes]:
No //是否升级反病毒数据库
如果系统内,安装了webmin程序,脚本配置时会出现下面的的说明:
Webmin module installed successfully. Check it on ’Others’ web page.
Depending on Webmin configuration, you may also need to enable
the Kaspersky Anti-Virus Webmin module. To do this, on the
Webmin main page go to Webmin -> Webmin users -> <username> ->
set the check box on Kaspersky Anti-Virus for Linux FileServer.
Would you like to compile the kavmonitor module ? [yes]:
No //是否安装实时监控插件
Warning: kavmonitor kernel module is not compiled!
To manual recompile kernel module please start
/opt/kaspersky/kav4fs/src/kavmon.pl --build[=PATH]
Kaspersky Anti-Virus for Linux FileServer is installed.
Configuration file was installed in
/etc/opt/kaspersky/kav4fs.conf
Binaries were installed in /opt/kaspersky/kav4fs/bin
Latest anti-virus bases are an essential part of your anti-virus
protection. You must run keepup2date component to
download the latest anti-virus bases before using the
application.
如果,系统中没有按照默认配置安装或者没有安装webmin程序的话,安装程序会出现如下提示:
Webmin configuration file is not found.
(probably webmin is not installed, or installed into non-default location.)
Webmin(www.webmin.com)is a web-based interface for system administration
for various Unix utilites. If you install it, you’ll be able to configure
and use Kaspersky Anti-Virus through the web interface.
If you want to use this functionality, but haven’t installed webmin yet,
you can safely type ’cancel’ here, install webmin later and re-run this
configuration script again (or use Webmin to install the module from directory
/opt/kav/contrib/kavfs.wbm)
If you have webmin installed in non-default path, please enter
where webmin configuration file located?
(type "cancel" for continue installation without webmin). [cancel]:
按回车键,跳过配置webmin,继续安装。
5、更新卡巴斯基反病毒程序
[root@test kaspersky]# /opt/kaspersky/kav4fs/bin/kav4fs-keepup2date
............................................................
............................................................
............................................................
Downloading file ’bases/av/avc/i386/daily-ex.avc’
Downloading file ’diffs/bases/av/avc/i386/avp.klb.-ch’
Downloading file ’bases/av/avc/i386/avp.klb’
…………………………………………..
…………………………………………..
…………………………………………..
=== Replacing files
Checking new bases...
Standard AV bases are OK, latest update: 14-06-2007, total records: 324606.
Extended AV bases are OK, latest update: 14-06-2007, total records: 345978.
File updated ’/var/opt/kaspersky/kav4fs/bases/kavset.xml’
File updated ’/var/opt/kaspersky/kav4fs/bases/master.xml’
File updated ’/var/opt/kaspersky/kav4fs/bases/dailyc.avc’
File updated ’/var/opt/kaspersky/kav4fs/bases/daily-ec.avc’
File updated ’/var/opt/kaspersky/kav4fs/bases/daily.avc’
File updated ’/var/opt/kaspersky/kav4fs/bases/daily-ex.avc’
File updated ’/var/opt/kaspersky/kav4fs/bases/avp.klb’
Update ’Kaspersky Anti-Virus for Linux FileServer’ completed successfully
Executing command /etc/init.d/kav4fs reload_avbase
kavmonitor AV bases reloaded
Command /etc/init.d/kav4fs reload_avbase was executed with code 0
6、安装卡巴斯基实时监控插件
进入 /opt/kaspersky/kav4ws/lib/bin/setup/ 目录,并运行setup.pl来安装实时监控组件:
[root@test kaspersky]# /opt/kaspersky/kav4ws/lib/bin/setup/setup.pl
Would you like to compile the kavmonitor module ? [yes]:
Yes //安装实时监控插件
Configure kernel module using kernel sources from /lib/modules/2.4.20-8/build
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
…………………………………………………
………………………………………………...
…………………………………………………
make[1]: Leaving directory `/opt/kaspersky/kav4fs/src/module.linux’
=== Install module as /lib/modules/2.4.20-8/misc/kavmon.o
=== Rebuild modules.dep
=== Probe new module
=== Unload module
Starting kavmonitor: kavmonitor started
//完成安装