How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat

Kaspersky Anti-Virus is now one of the popular anti-virus softwares. The strong point are that it can detect and clean most of virus, light weight – it consumes less system resource comparing with other anti-virus softwares and Kaspersky’s signature is updated regularly (about every 2 hours).

Today, I have to setup Kaspersky Anti-Virus for Linux Workstation on a RedHat Enterprise 4. But in my environment, I can’t update signature from the Internet directly because it’s a separated network. So I have to manually update the signature myself. And I’ll install only few servers so there’s no need to install administration console for centralize management Kaspersky’s product. Therefore, I’ll not install Kaspersky Network Agent.

This article, I’ll show how to install Kaspersky Anti-Virus 5.7 on Linux RedHat Enterprise 4 by starting from install Webmin first. Then, I’ll install Kaspersky Workstation 5.7 and update the signature manually. Finally, I’ll add cronjobs to perform a scanning every week.

Note: Webmin is a web-based interface for system administration for Unix which will be used for configure Kaspersky Workstation.

Section

  1. Install Webmin on Linux RedHat Enterprise 4
  2. Install Kaspersky Anti-Virus Workstation 5.7 on Linux RedHat Enterprise 4
  3. Manually Update the Kaspersky Anti-Virus’s signature
  4. Start the Kaspersky Anti-Virus On-Access Scanner
  5. Add cronjobs to run Kaspersky Scanner

Step-by-step to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat

Install Webmin on Linux RedHat Enterprise 4

  1. Login as ‘root’ on Linux RedHat Enterprise 4 server. You may be logged in as other user and use ‘su’ command to execute as ‘root’.
    Root's desktop
  2. Insert Kaspersky’s CD on the server. I got it from Kaspersky’s vendor. Copy these .rpm files to local server.
    • Webmin: webmin-1.370-1.noarch.rpm
    • Kaspersky Workstation 5.7 for Linux: kav4ws-5.7-17.i386.rpm
    • Kaspersky’s CDKey: CDKEY.key
    • Kaspersky’s signature: av-i386-cumul.zip

    Note: For webmin, you can find one at www.webmin.com. For av-i386-cumul.zip, you can find the latest signature one at kaspersky.com.
    Prepare files for installation

  3. Open Terminal by right click on any space on the desktop and select Open Terminal. Type the command below to install Webmin.

    rpm -ivh /root/Desktop/webmin-1.370-1.noarch.rpm

    When the installation finishes, it’ll show how to open Webmin as in the figure. In this example, it tells I can open Webmin by browse to http://localhost.localdomain.com:10000 and login using ‘root’ account.
    Install Webmin

  4. Test if you can access Webmin by open the browser and enter the url that you get from the last step. It’ll ask for user account for Webmin server. Enter your account user and password.
    Login to Webmin webpage
  5. Now you’ll see the main page of Webmin. The Webmin has been installed successfully.
    Webmin's Main page

Back to top

Install Kaspersky Anti-Virus Workstation 5.7 on Linux RedHat Enterprise 4

  1. Back to Terminal. Type the command below to install Kaspersky Workstation 5.7.

    rpm -ivh /root/Desktop/kav4ws-5.7-17.i386.rpm

    When the installation finishes, it recommends you to run postinstall.pl to configure Kaspersky Anti-Virus.
    Install Kaspersky Workstation 5.7

  2. Run postinstall.pl to configure it by type the command below.

    /opt/kaspersky/kav4ws/lib/bin/setup/postinstall.pl

    Execute postinstall.pl

  3. The first thing that the configuration asks is the license key of Kaspersky. You can obtain this file from Kaspersky by buying the product. Type only the folder that you keep the file. In this example, I have the license key file on /root/Desktop/CDKEY.key so I type

    /root/Desktop

    Note: When configuration finishes, you can delete the license key file. Kaspersky has already load the license to its system.
    Adding the license key

  4. Next, the configuration asks for the proxy to access the Internet to get updates. Since I’ll configure an offline system, I can ignore this configuration. I simply press ‘Enter’ to accept default value ([No]).
    Configure Kaspersky
  5. Next, it asks to update the signature. Again, this is offline system. I’ll type ‘no’.
    Note: For the first time of installation, you have to update the signature at least once. Otherwise, it can’t run. I’ll manually update the signature in the next few steps.
    Configure Kaspersky
  6. Next, it asks to compile kavmonitor, simply press ‘Enter’ to proceed.
    Configure Kaspersky
  7. Now the Kaspersky Anti-Virus for Linux Workstation is installed. You’ll noticed some error but it’ll be solved after update the signature.
    Configure Kaspersky
  8. Check if Kaspersky Anti-Virus for Linux is installed properly by open Webmin. Browse to Other -> KAV 5.7 for UNIX WS. This is the configuration page for Kaspersky Anti-Virus 5.7.
    Note: If you don’t see this menu, recheck the Kaspersky’s configuration again.
    Open Kaspersky on Webmin
  9. Now Kaspersky Anti-Virus for Linux can’t be started yet since you haven’t update the signature. Click on Key Info to view license information.
    Check license information
  10. You’ll see an error on license page. Don’t worry, this will be solved by update the signature.
    Check license information

Back to top

Manually Update the Kaspersky Anti-Virus’s signature

  1. On Desktop, extract av-i386-cumul.zip to a folder. In this example, I extract all files to /root/Desktop/Updates/.
    Extract the signature's file
  2. Back to Webmin, click on KeepUp2Date in Other -> KAV 5.7 for UNIX WS.
    Configure update on Webmin
  3. On KeepUp2Date menu, browse to misc settings. Check ‘Use update server url’ and ‘Use update server url only’ and change ‘Update server url’ to the folder where you have extracted the signature files. In this example, it is ‘/root/Desktop/Updates/’. And click Save.
    Note: The ‘Update server url’ path must be follow with ‘/’.
    Configure update path
  4. Open Terminal and type the command below to update the signature.

    /opt/kaspersky/kav4ws/bin/kav4ws-keepup2date

    Run keepup2date to update the signature

  5. Waiting until the update is finished, you’ll see some error message because Kaspersky Anti-Virus hasn’t started yet.
    The update is running
  6. Now the signature is up-to-date. Browse to Key Info on Webmin again, the license info has been shown correctly.
    Check license again to see if it shows correctly

Back to top

Start the Kaspersky Anti-Virus On-Access Scanner

  1. Before start Kaspersky Anti-Virus On-Access Scanner, you can configure how to handle when Kaspersky Anti-Virus found suspicious, infected files in ‘AV File Check’ and ‘AV File Monitor’. I’ll not cover in these configuration.
    Configure Kaspersky Anti-Virus
  2. When you have finished configuration, next I’ll start Kaspersky Anti-Virus On-Access Scanner by click on ‘AV Run’.
    Click 'AV Run'
  3. Browse to the bottom of the page, click ‘Start’ button on Kaspersky Anti-Virus On-Access Scanner.
    Start Kaspersky Anti-Virus On-Access Scanner
  4. It’ll show Kaspersky Anti-Virus On-Access Scanner Output.
    Kaspersky Anti-Virus On-Access Scanner has started
  5. Back to ‘AV Run’, you’ll see the service status is started with no errors (Exit code:0).
    Kaspersky Anti-Virus On-Access Scanner has started

Back to top

Add cronjobs to run Kaspersky Scanner

  1. Open Terminal, type the command below to view current cronjobs.

    crontab -l

    Listing current cronjobs

  2. Type the command below to edit cronjob.

    crontab -e

    Note: You can customize the frequency to run these jobs by change the values. For more information about cronjobs, see Crontab – Quick reference.
    Edit cronjobs

  3. On the cronjob’s editor, add these 2 lines and save the file.

    0 0 * * 4 /opt/kaspersky/kav4ws/bin/kav4ws-kavscanner
    0 0 * * 3 /opt/kaspersky/kav4ws/bin/kav4ws-keepup2date

    Add new cronjobs

  4. Review the cronjobs again by type the command.

    crontab -l

    Review cronjobs

  5. Now you have finished configure cronjobs.

Summary

Now I have Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat. The routine that I need to do is to update the anti-virus’s signature regulary to ensure that the servers are safe from virus threats. For ease of management, you can extend by implement Kaspersky Administration console to manage Kaspersky’s product.

5 Comments

  1. Erma May 9, 2009
  2. linglom May 12, 2009
  3. detoxtech October 3, 2009
  4. acneduronX2 November 10, 2009
  5. mulyadi saripudin January 22, 2014

Leave a Reply