Obsolete Releases > SME 8.x Contribs
Avira antivirus software instructs to get it, install it and run it
purvis:
How I installed avira virus scanner.
The time for the command line avira virus scanner(scancl) to load up
and scan one file on my system takes 11 seconds.
Before you copy and paste this code into a file that you create.
Expand your ssh program window to a full window size or some code may not wrap proper.
Be sure to make sure the wget lines are full and not wrapped around like mine did.
I use the nano editor.
WARNING WARNING WARNING
I do not know about dazuko, so i did not install it.
The avira guard program will not run without it as far as i can tell.
The hbedv.key file download is for windows 32 system but it works for linux as well.
--- Code: ---#!/bin/bash
########## STEP 1
clear
mkdir -p /tmp/avira
chmod 755 /tmp/avira
cd /tmp/avira
rm -f /tmp/avira/*.gz
rm -f /tmp/avira/*.key
clear
########### STEP 2
cd /tmp/avira
wget "http://personal.avira-update.com/package/peclkey/win32/int/hbedv.key"
wget "http://professional.avira-update.com/package/scancl/linux_glibc22/en/scancl-linux_glibc22.tar.gz"
wget "http://premium.avira-update.com/package/wks_avira/unix/en/pers/antivir_workstation-pers.tar.gz"
############ STEP 3
cd /tmp/avira
if [ -f "hbedv.key" ] || \
[ -f "scancl-linux_glibc22.tar.gz" ] || \
[ -f "antivir_workstation-pers.tar.gz" ]
then
cd /tmp/avira
tar xvzf antivir_workstation-pers.tar.gz
tar xvzf scancl-linux_glibc22.tar.gz
fi
cd /tmp/avira
if [ -f "/tmp/avira/antivir-workstation-pers-3.1.3.5-0/install" ]
then
cd /tmp/avira/antivir-workstation-pers-3.1.3.5-0
./install
fi
cd /tmp/avira
if [ -f "/usr/lib/AntiVir/guard/avira_personal.key" ]
then
cd /usr/lib/AntiVir/guard/
cp /tmp/avira/scancl-1.9.159.0/* \
/usr/lib/AntiVir/guard/
fi
cd /tmp/avira
if [ -f "/usr/lib/AntiVir/guard/avira_personal.key" ]
then
if [ ! -f "/usr/lib/AntiVir/guard/avira_personal.key.new" ]
then
cp /usr/lib/AntiVir/guard/avira_personal.key \
/usr/lib/AntiVir/guard/avira_personal.key.new
fi
fi
cd /tmp/avira
if [ -f "/tmp/avira/hbedv.key" ]
then
cp /tmp/avira/hbedv.key /usr/lib/AntiVir/guard/avira_personal.key
fi
cp /tmp/avira/hbedv.key /usr/lib/AntiVir/guard/avira_personal.key
#THIS UPDATE WILL TAKE A MORE THAN A FEW MINUTES
cd /tmp/avira
if [ -f "/usr/lib/AntiVir/guard/avupdate-guard" ]
then
cd /usr/lib/AntiVir/guard/
/usr/lib/AntiVir/guard/avupdate-guard
cp /tmp/avira/hbedv.key /usr/lib/AntiVir/guard/avira_personal.key
/usr/lib/AntiVir/guard/avupdate-guard
/usr/lib/AntiVir/guard/avupdate-guard --product=Scanner
/usr/lib/AntiVir/guard/avupdate-guard --product=Guard
fi
cd /tmp/avira
if [ -f "/usr/lib/AntiVir/guard/avupdate-guard" ]
then
avguard stop
fi
cd /tmp/avira
if [ -f "/usr/lib/AntiVir/guard/scancl" ]
then
/usr/lib/AntiVir/guard/scancl --help
fi
exit 0
--- End code ---
--- Quote ---THESE ARE SOME OF THE QUESTIONS AND ANSWERS THAT GAVE DURING THE INSTALLATON
I DID NOT INSTALL DAZUKOFS
I DID NOT INSTALL THE GNOME PLUGIN
I DID NOT START GUARD NOW
Would you like to create a link in /usr/sbin for avupdate-guard ? [y] y
Would you like to setup Scanner update as cron task ? [y] y
What time should updates be done [00:15]? I ACCEPTED THE DEFAULT
Would you like to check for Guard updates once a week ? [n] y
Would you like to install dazukofs now ? [y] n
Would you like to create /home/quarantine ? [y] y
Would you like to install the AVIRA Guard GNOME plugin ? [n] n
Would you like to create a link in /usr/sbin for avguard ? [y] y
Set up boot scripts ? [y] y
Would you like to start AVIRA Guard now? [y] n
--- End quote ---
manual update
--- Code: ---/usr/lib/AntiVir/guard/avupdate-guard
/usr/lib/AntiVir/guard/avupdate-guard --product=Scanner
/usr/lib/AntiVir/guard/avupdate-guard --product=Guard
--- End code ---
TO SCAN YOUR USERS EMAILS AND NOT DELETE THEM
--- Code: ---/usr/lib/AntiVir/guard/scancl -a -s -z --temp=/tmp /home/e-smith/files/users/*/Maildir/*/1*
--- End code ---
TO TIME YOUR SCAN YOUR USERS EMAILS AND NOT DELETE THEM
--- Code: ---time /usr/lib/AntiVir/guard/scancl -a -s -z --temp=/tmp /home/e-smith/files/users/*/Maildir/*/1*
--- End code ---
######### WARNING WARNING WARNING ##########
#########THIS PROCESS CAN DELETE FILES ########
THIS RUNS IN QUIET MODE, NO OUTPUT
IF YOU WANT TO SEE THE OUTPUT, THEN REMOVE THE "-q" OPTION LOCATED RIGHT AFTER THE "-z" OPTION
TO SCAN YOUR USERS EMAILS AND DELETE ANY THAT ARE DETECTED AS HAVING A VIRUS
--- Code: ---/usr/lib/AntiVir/guard/scancl -a -s -z -q --defaultaction=delete-archive --temp=/tmp /home/e-smith/files/users/*/Maildir/*/1*
--- End code ---
purvis:
I am in the process of running a avira scan on all files including achieves under the /home/e-smith/files directory.
On a single core single processor.
So far i am pleased with the cpu usage while the scan is running. The cpu usage is high but not as high as other
scanners I have used and I am still able to get to run other processes from my workstation.
When I run another heavy process from a workstaton on a shared directory using samba.
The scancl process cpu usage on the server backs down a whole lot better than Clamav ever did.
The disk are older on this unit as well.
On a single dual core processor, the result in cpu usage is even better.
This disk on this unit are newer about 1 year old.
purvis:
I am having issues with Avira today.
I will get back with anybody.
I believe at this point it was wrong to let Avira setup any symbolic links, cron jobs, or anything else from the install
I am reinstalling.
If you have not set up Avira.
Then hold off.
I am not sure exactly the issues i am having other that Avira has some very stupid setup and updating routines.
janet:
purvis
--- Quote ---Expand your ssh program window to a full window size or some code may not wrap proper.
Be sure to make sure the wget lines are full and not wrapped around like mine did.
I use the nano editor.
--- End quote ---
Always use
nano -w filenametoedit
to prevent unintended line wrapping
(instead of just using nano filenametoedit)
PS Please fully test & check your work before posting here.
Stefano:
--- Quote from: mary on March 27, 2013, 01:15:39 AM ---nano -w filenametoedit
to prevent unintended line wrapping
(instead of just using nano filenametoedit)
--- End quote ---
I suggest Purvis to create an alias in .bashrc eg.
--- Code: ---alias nano='nano -w'
--- End code ---
--- Quote ---PS Please fully test & check your work before posting here.
--- End quote ---
I agree and would say: before posting something that coud lead an unexperienced user to server compromisation, think twice (and add alwais a BIG disclaimer) :-)
in any case, Purvis, thank you for your effort, very apreciated
Navigation
[0] Message Index
[#] Next page
Go to full version