Avast-1.3.0 Antivirus software

Antivirus, forensics, intrusion detection, cryptography, etc.
Message
Author
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#16 Post by Semme »

Doesn't your Avast work? Let's see your wrapper-script.sh.

From the same directory you can >> gzip wrapper-script.sh
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#17 Post by Sylvander »

1. My avast-1.3.0 fails at the point after I enter the license_key and choose to download the database.
At the end of the database download, Avast fails.

I gzip'd the wrapper-script.sh file.
Will attempt to upload wrapper-script.sh.gz here.
OK, that uploaded, so I unpacked it back as is was before.
Attachments
wrapper-script.sh.gz
(1.62 KiB) Downloaded 264 times

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#18 Post by Sylvander »

When I run the avast command in a terminal, it is reported that the key cannot be found inside file /root/.avast/avastrc and yet I can see the key code in that file.

The terminal window avast command reports failure in detail, and asks me to enter the code, and when I do it rejects it as invalid.
And yet I've successfully used that key for years.
I have it stored within my "Acerose Password Vault", and use copy-and-paste to enter it into the Avast key window.
I've checked the key used with the key in the Pasword Vault, and they are identical.

Here's what I get at the 2nd attempt using the avast command in a terminal.

Code: Select all

# avast
avast: can not initialize avast! engine: Invalid argument
# 

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#19 Post by corvus »

@Sylvander
Attached are my wrapper-script.sh try to replace it with yours.
As riguards the key code I know that has a time limit try request another code for free version to Avast.
Hope that helps.
Attachments
wrapper-script.sh.gz
Avast wrapper-script.sh
(1.67 KiB) Downloaded 253 times
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#20 Post by Sylvander »

1. I downloaded wrapper-script.sh.gz, unpacked it, renamed the old version with an "old" ending, and replaced it with the new version.
Tried to run the installed avast-1.3.0 using the menu entry, and nothing happened.
Entered the avast command in a URXVT terminal, and got the following:

Code: Select all

# avast
bash: /usr/bin/avast: Permission denied
# 
/usr/bin/avast is only a link to /usr/lib/avast4workstation/bin/wrapper-script.sh
Checked the properties->permissions on wrapper-script.sh, and found none of the 3 had execute permissions, so I gave execute permission to all 3.

2. Re-ran the avast command and got:

Code: Select all

# avast
kernel.shmmax = 256000000
Couldn't find a registration key in ~/.avast/avastrc file!
Please register avast! at http://www.avast.com/i_kat_207.php?lang=ENG
to get the key.
NOTE: if avast! rejects the key, remove ~/.avast/avastrc file and
run this script again with a valid key.

Please enter the key here:
There was no /root/.avast/avastrc file, nor was there ANY avastrc file existing anywhere in my filesystem.
So, I made an avastrc file with the key included, and the [terminal command version of the] avast program ran and scanned, and found zero infection.

3. Used the menu entry for avast to run the program.
Took a while, but eventually appeared on screen.
Clicked "Update database", and it completed OK.
Scanned the /mnt/home directory.
Problem listed:
/mnt/home/00/Teamviewer_latest/teamviewer_linux.tar.gz/teamviewer_linux.tar
"Error while scanning - GZIP archive is corrupted"
Link to this Teamviewer archive was supplied in a PM to me by semme!
What say you semme?
Might this be why Teamviewer wouldn't work?

4. SUCCESS! :D
Avast-1.3.0 is working!
I've tried over the years to get this version working, and this is the 1st time I succeeded.
My thanks to all who assisted. :D

mgolden
Posts: 94
Joined: Sun 10 Aug 2014, 21:15

#21 Post by mgolden »

I've managed to get AVAST running here as well.

Setting a value of 128000000 resulted in "An error occured in avast! engine: Invalid argument"

Setting a value of 256000000 resulted in an unable to allocate memory.

Slowly started incrementing the numbers and found the program would run when I reached 224000000.

Here is my rc.local:

#this file called from rc.sysinit
#you can edit this file
#When firewall is installed, will append lines to this file...

if [ -x /etc/rc.d/rc.firewall ]; then
/etc/rc.d/rc.firewall start
fi
mkdir -p /mnt/sdb; mount -t ntfs /dev/sdb /mnt/sdb #pmount
/sbin/sysctl -w kernel/shmmax=224000000


And here are the last few lines from my wrapper-script.sh:

SHMMAX=`sysctl -n kernel.shmmax`
[ $SHMMAX -lt 224000000 ] && sysctl -w kernel.shmmax=224000000

AVAST4DATADIR=$HOME/.avast
export AVAST4DATADIR

$AVAST_PREFIX/bin/$programname "$@"

Post Reply