Page 1 of 2

Avast-1.3.0 Antivirus software

Posted: Tue 04 Oct 2011, 03:18
by DPUP5520
You can download Avast-1.3.0 here http://www.mediafire.com/file/ngsvsg3da ... -1.3.0.pet Includes script which fixes issues with updating the antivirus signature.

Posted: Tue 17 Apr 2012, 18:49
by Amgine
When I use avast it only scans the USB drive that it is on. I would like to scan the hard drive in the computer.

Would

Code: Select all

-d, --directory            Scan only directory content, no subdirectoires
changing the directory to the drive (sda1) be the correct one to use?

Posted: Wed 18 Apr 2012, 18:21
by DPUP5520
Um to be honest with you i'm not sure, im not on my Puppy right now, but using that will only scan the root of the drive and not the sub-directory's meaning the whole drive. I haven't used the command line for Avast for god knows how long. You do know that I have a menu entry in there for the gui right?
Anyone else wanna jump in, im heading out today for another month so I wont be available for questions anymore. later.

Posted: Wed 18 Apr 2012, 20:54
by Amgine
Thanks. I will try that.

Posted: Wed 18 Apr 2012, 21:12
by Amgine
I want to be able to scan Windows computers.

Posted: Fri 20 Apr 2012, 13:16
by ashes
Thank you for posting the avast.pet.

After install I have updated the virus definition file.

But when I try to run avast I get this message.

Code: Select all

# avast -a
avast: can not initialize avast! engine: Invalid argument
any idea how to make it work?


edit:

it works after reboot :)

Posted: Fri 20 Apr 2012, 13:35
by Sylvander
Try this...

1. Into a terminal window...
Copy, paste, and enter the following line of code:

Code: Select all

/sbin/sysctl -w kernel/shmmax=130000000
Then...

2. Try again to run Avast.

scan other drives that might contain MS windows on system

Posted: Sat 21 Jul 2012, 04:32
by atv
Amgine wrote:
I want to be able to scan Windows computers.
I was able to scan any mounted drive by:


From avast gui
1. navigate to /mnt/sda2 ; or any other disk (/mnt/sdb3 for example)
2. make sure Avast is set to scan all subfolders and it will scan the whole drive

a bit late but someone else may find this useful,

cheers

Posted: Sat 21 Jul 2012, 20:54
by DPUP5520
ashes wrote:Thank you for posting the avast.pet.

After install I have updated the virus definition file.

But when I try to run avast I get this message.

Code: Select all

# avast -a
avast: can not initialize avast! engine: Invalid argument
any idea how to make it work?


edit:

it works after reboot :)
I probably should've mentioned that it requires a reboot after the first update since it has the fix script preinstalled when you install Avast. And yes that's correct for the last comment all you have to do is go to the root of the drive that you want to scan from the GUI and make sure Avast is set to scan all subfolders and it will scan the whole drive.

Posted: Thu 13 Nov 2014, 21:13
by bigpup
entered in error.

Posted: Sun 14 Jun 2015, 13:14
by mgolden
Has anyone managed to get Avast-1.3.0 working on Slacko Puppy 5.7?

I'm getting the "An error occured in avast! engine: Invalid argument" on both systems I've tried running it on.

Avast 1.3.0

Posted: Mon 15 Jun 2015, 18:01
by corvus
@mgolden
On precise 5.7.1 with a computer that has 1GB of RAM I installed avast-1.3 entered the registration key and updated the virus database which is 177 MB so I added the following line in the file: /etc/rc.d/rc.local, as suggested by other topics in this forum, but with different values:
/sbin/sysctl -w kernel/shmmax=256000000
Rebooted the computer and tried to start avast again. It worked for me.
If does not work try entering the following string in /usr/lib/avast4workstation/bin/wrapper-script.sh, as suggested by Barry Kauler:
SHMMAX = `sysctl -n kernel.shmmax`
[$ SHMMAX -lt 256000000] && sysctl -w kernel.shmmax = 256000000
Cheers. :)

Posted: Wed 17 Jun 2015, 11:30
by Sylvander
Where within /usr/lib/avast4workstation/bin/wrapper-script.sh should those lines of code be placed?

Posted: Wed 17 Jun 2015, 13:40
by Semme
The pet files script includes:

Code: Select all

#BK insert...
#as explained here: http://www.facebook.com/topic.php?uid=38282497425&topic=14021
SHMMAX=`sysctl -n kernel.shmmax`
[ $SHMMAX -lt 128000000 ] && sysctl -w kernel.shmmax=128000000
Edit as you wish..

Posted: Wed 17 Jun 2015, 14:37
by Sylvander
Semme wrote:The pet files script includes
Which script file, included with which PET file? :(

Posted: Wed 17 Jun 2015, 15:07
by Semme
Doesn't your Avast work? Let's see your wrapper-script.sh.

From the same directory you can >> gzip wrapper-script.sh

Posted: Wed 17 Jun 2015, 16:57
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.

Posted: Wed 17 Jun 2015, 17:15
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
# 

Posted: Wed 17 Jun 2015, 20:36
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.

Posted: Wed 17 Jun 2015, 23:18
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