The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,842 other followers

Linux: getting the correct license file for AntiVir

Posted by jpluimers on 2014/04/29

I needed AntiVir on an openSUSE workstation.

Too bad the default installation package from YaST installed an old license: AntiVir would not work, and I was getting emails like these at regular intervals:

<br />Date: Thu, 25 Apr 2014 08:57:11 +0200<br />From: Cron Daemon &lt;root@....&gt;<br />To: root@....<br />Subject: Cron &lt;root@...&gt; /usr/lib/AntiVir/guard/avupdate-guard --product=Scanner &gt; /dev/null<br /><br />Error: No valid license was found<br />

After searching the web for a while, I found a lot of posts with wrong information, basically coming down to these 2:

At the bottom of the post, you will find a small shell script that I use to keep the hbedv.key up-to-date.

First some more about HBEDV, then how I found about the new download location, and a command to show you the current license information.

Antivir Download locations

From the plethora of links at Avira Download Center, I finally reached the Download Avira Free Antivirus page at http://www.avira.com/en/download/product/avira-free-antivirus.

There you find links to the unix download (marked as ZIP, though it is a .tar.gz file) and the download for the key.

The key is now at http://personal.avira-update.com/package/peclkey/win32/int/hbedv.key

Getting hbedv.key license information

avlinfo can get you the information from the license, and tells you where the license on your system is stored, here is an example of the expired installation key.

Without parameters, it will list the installed key (and location!)

You can specify both a directory (it will search for hbedv.key in that directory) or filename to get the information from that file.

<br />snap:~/bin # avlinfo<br />==============================<br />Key file:         /usr/bin/../lib/AntiVir/guard/hbedv.key<br /><br />Product : Avira AntiVir Personal (Windows-NT)<br />Serial #: 0000149996-ADJIE-0000001<br />Expires : 2.1.2013<br />User    : Avira AntiVir Personal - Free Antivirus<br /><br />Product : Avira AntiVir Personal (Unix)<br />Serial #: 0000149996-PXWSE-0000001<br />Expires : 2.1.2013<br />User    : Avira AntiVir Personal - Free Antivirus<br />

Making the install process easier

Though I do *nix administration, it is not my day-to-day job, so programming the shell isn’t either.

I try to create scripts making my job as simple as possible, so I do create scripts for repetitive work as much as possible.

Some notes reminders for myself:

Here is the script:

<br />#! /bin/sh<br /><br />HbedvKey=hbedv.key<br />## Old location: 2011-07-25<br />##HbedvKeyDownloadPath=dlce.antivir.com/down/windows/$HbedvKey<br />## New location: changed somwehere in 2012?<br />HbedvKeyDownloadPath=personal.avira-update.com/package/peclkey/win32/int/$HbedvKey<br />HttpHbedvKeyDownloadPath=http://$HbedvKeyDownloadPath<br />UsrLibAntivirGuard=/usr/lib/AntiVir/guard<br />UsrLibAntivirGuardNew=$UsrLibAntivirGuard/new<br />UsrLibAntivirGuardHbedvKey=$UsrLibAntivirGuard/$HbedvKey<br />UsrLibAntivirGuardNewHbedvKey=$UsrLibAntivirGuardNew/$HbedvKeyDownloadPath<br /><br />echo "$HttpHbedvKeyDownloadPath"<br />echo "$UsrLibAntivirGuardHbedvKey"<br />echo "$UsrLibAntivirGuardNewHbedvKey"<br /><br />mkdir -p $UsrLibAntivirGuardNew<br /># -p: create if it does not exist<br /><br />pushd $UsrLibAntivirGuardNew<br /><br />wget -q --mirror --no-parent $HttpHbedvKeyDownloadPath<br />ls --full-time $UsrLibAntivirGuardNewHbedvKey<br /><br />if (test -e $UsrLibAntivirGuardNewHbedvKey)<br />then<br /><br /><%%KEEPWHITESPACE%%>  diff $UsrLibAntivirGuardHbedvKey $UsrLibAntivirGuardNewHbedvKey<br /><%%KEEPWHITESPACE%%>  # diff exit status 0: same; 1: different; 2: trouble<br /><br /><%%KEEPWHITESPACE%%>  if [ "$?" -ne "0" ]<br /><%%KEEPWHITESPACE%%>  then<br /><%%KEEPWHITESPACE%%>  # if $UsrLibAntivirGuardNewHbedvKey does not exist, or $UsrLibAntivirGuardHbedvKey is different from $UsrLibAntivirGuardNewHbedvKey<br /><br /><%%KEEPWHITESPACE%%>    echo "There is a $UsrLibAntivirGuardNewHbedvKey file that you might want to update into $UsrLibAntivirGuardHbedvKey"<br /><%%KEEPWHITESPACE%%>    echo ""<br /><%%KEEPWHITESPACE%%>    echo "Current key"<br /><%%KEEPWHITESPACE%%>    avlinfo $UsrLibAntivirGuardHbedvKey<br /><%%KEEPWHITESPACE%%>    echo ""<br /><%%KEEPWHITESPACE%%>    echo "Downloaded key"<br /><%%KEEPWHITESPACE%%>    avlinfo $UsrLibAntivirGuardNewHbedvKey<br /><%%KEEPWHITESPACE%%>  fi<br /><br />fi<br />popd<br />

A few more links for my memory:

  1. Windows download:
    will start web bootstrap EXE download when web page losds
    http://www.avira.com/en/download-start/product/avira-free-antivirus
  2. More versions:
    http://www.avira.com/en/download/product/avira-free-antivirus
  3. Web bootstrap for Windows
    http://personal.avira-update.com/package/webloader/win32/pecl/avira_free_antivirus.exe
    http://personal.avira-update.com/package/webloader/win32/pecl/avira_free_antivirus.zip
  4. Administrtive download for off-line install
    http://personal.avira-update.com/package/wks_avira13/win32/en/pecl/avira_free_antivirus_en.exe
    http://personal.avira-update.com/package/wks_avira13/win32/en/pecl/avira_free_antivirus_en.exe
  5. Linux
    http://premium.avira-update.com/package/wks_avira/unix/en/pers/antivir_workstation-pers.tar.gz
  6. Key
    2012-10-01T06:52:37.00Z
    http://personal.avira-update.com/package/peclkey/win32/int/hbedv.key
  7. PDF documentation
    http://www.avira.com/documents/products/pdf/en/man_avira_free_antivirus_en.pdf
  8. Old key
    2011-07-25T08:37:27.00Z
    http://dlce.antivir.com/down/windows/hbedv.key

–jeroen

3 Responses to “Linux: getting the correct license file for AntiVir”

  1. […] A short while ago, I wrote about Linux: getting the correct license file for AntiVir. […]

  2. Gustavo Carreno said

    Hummmm, let me rephrase:

    This post is quite good, but for some strange reason all your <code> is full of HTML tags.

  3. This post is quite good, but for some strange reason all your is full of HTML tags.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: