LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-21-2007, 06:12 AM   #1
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Rep: Reputation: 30
Avast on slackware 11


Hi to everyone, I know there is a lot of talk about linux not being affected by the viruses that affect windows - nevertheless companies like Avast have developed a linux based version of home edition. Has anyone been successful in installing it.Installpkg says the same thing over and over again "this is not a tgz file"!!!

I would appreciate some advice on this matter.

bookie
 
Old 04-21-2007, 06:22 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I looked at the Avast website and the packages they provide are RPM .deb and a .tar.gz. The last is not a Slackware package and hence you aren't supposed to use pkgtool to install it. You don't actually have to install it, all you need to do is extract the files from that tarball.
 
Old 04-21-2007, 07:15 AM   #3
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
I'm not familiar with the "Avast" company nor their products. You might keep in mind that, although Linux is not affected by Windows viruses, nobody ever said a Linux system can not be used in order to scan a Windows system for viruses.

@ Nylex:

Are you saying RPM and DEB are "Slackware packages"?
 
Old 04-21-2007, 08:05 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by introuble
@ Nylex:

Are you saying RPM and DEB are "Slackware packages"?
No, I was just listing the packages I saw available and assumed that the OP had downloaded the third and was trying to install it with pkgtool.
 
Old 04-21-2007, 11:27 AM   #5
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
re-avast

Thanks for your comments guys. I tar balled the file - which went well. Avast have given me a little info that I can't seem to get my head around. I will give you the state of play at the moment.

I moved the tar file to it's own folder - which I created:
mkdir /usr/local/pkg

mv Desktop/avast4workstation-1.0.8.tar.gz I then tar balled it:

cd /usr/local/pkg pkg# tar xfs avast4workstation-1.0.8.tar.gz so far so good. I then looked in the documents file for avast for hints on how to execute avast. The info found is as follows:

Installing from RPM
===================

To install avast4workstation from RPM package, login as root and type
rpm -Uvh avast4workstation-*.i586.rpm
(replace * with the version of your RPM package).


Installing from tarball
=======================

No installation is required, files in the bin/ can be run directly after
unpacking the .tar.gz archive. If you would like to integrate avast! into
your KDE or GNOME desktop, run

./lib/avast4workstation/share/avast/desktop/install-desktop-entries.sh install

from the place where you unpacked the archive. Run

./lib/avast4workstation/share/avast/desktop/install-desktop-entries.sh uninstall

to uninstall previously installed menu entries.

Please see the README file and man pages for more information how to use
the program.


I wasn't sure how to use this info and what commands I need to use? Please give me your thoughts on this. If there is another way of executing avast - please let me know. If there is more info that you need - please ask.

bookie

Last edited by bookie; 04-21-2007 at 11:29 AM.
 
Old 04-21-2007, 11:30 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
cd to the bin directory and see what's there. You'll be able to run any of the executables there with "./filename" (without quotes).
 
Old 04-21-2007, 12:14 PM   #7
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
re avast

Hi Nylex, sorry about all the info, but unsure what to do with it. In the bin file there was

Avast, Avast update, and Avastgui. I opened Avast. Does this help. Really keen to learn this stuff. Thanks
bookie
PS I guess that is why they call us newbies.



#!/bin/sh
#
# Execute avast! programs in safe environment.
#
# Variables affecting this script:
#
# AVAST_PREFIX ..... Sets prefix to avast! installation; default is to
# autodetect it and standard value is
# /usr/lib/avast4workstation.
# AVAST_FAILSAFE ... If set to "1", bundled version of GTK+ and X11
# libraries will be used even if there's system
# version available. Use in case of problems with GTK+.
#

PATH=/bin:/usr/bin:/usr/local/bin:$PATH
export PATH

# -----------------------------------------------------------------------
# Find avast! installation directory:
# -----------------------------------------------------------------------

if test -z $AVAST_PREFIX ; then
dirn=`dirname $0`
basen=`basename $0`
if test -d $dirn/../lib/avast4workstation ; then
AVAST_PREFIX=`cd $dirn/../lib/avast4workstation && pwd`
fi

if test ! -f $AVAST_PREFIX/lib/libavastengine-4.so.7 ; then
# try to resolve the symlink
file2=`ls -l $dirn/$basen | sed -e 's,.* -> \(.*\),\1,'`

if test -f "$file2" ; then
dir2=`dirname $file2`
if test -d $dir2/../../avast4workstation ; then
AVAST_PREFIX=`cd $dir2/.. && pwd`
fi
fi
fi

export AVAST_PREFIX
fi

# -----------------------------------------------------------------------
# Check the license key and VPS database for non-GUI users:
# -----------------------------------------------------------------------

programname=`basename $0`
if test "$programname" = "avast" ; then
key=""
if test -f ~/.avast/avastrc ; then
key=`grep key= ~/.avast/avastrc | cut -d "=" -f 2`
fi

if test -z "$key" ; then
echo "Couldn't find a registration key in ~/.avast/avastrc file!"
echo "Please register avast! at http://www.avast.com/i_kat_207.php?lang=ENG"
echo "to get the key."
echo "NOTE: if avast! rejects the key, remove ~/.avast/avastrc file and"
echo "run this script again with a valid key."
echo
echo "Please enter the key here:"
read regkey
echo

if [ -f ~/.avast/avastrc ]; then
mv -f ~/.avast/avastrc ~/.avast/avastrc.prev
else
mkdir -p ~/.avast
fi

echo "[licence]" > ~/.avast/avastrc
echo "key=$regkey" >> ~/.avast/avastrc
chmod 600 ~/.avast/avastrc

if [ -f ~/.avast/avastrc.prev ]; then
cat ~/.avast/avastrc.prev | grep -v '\[licence\]' | grep -v 'key=' >> ~/.avast/avastrc
rm ~/.avast/avastrc.prev
fi
fi

if test ! -f ~/.avast/400.vps ; then
if test -f $AVAST_PREFIX/var/400.vps ; then
cp $AVAST_PREFIX/var/400.vps ~/.avast
echo "Base virus definition file installed."
echo "Please run 'avast-update' to download the latest available."
echo
else
echo "Can't find base virus definition file"
echo "Please run 'avast-update' to download the latest available."
echo
exit 22
fi
fi
fi

# -----------------------------------------------------------------------
# Detect presence of GTK+ and X11 libraries:
# -----------------------------------------------------------------------

has_avastengine=0
has_esmtp=0
has_gtk=0
has_x11=0

if test `uname -m` = "x86_64" ; then
# use all included libraries when running on 64bit platform
AVAST_FAILSAFE=1
fi

if test "x$AVAST_FAILSAFE" != "x1" ; then
if test "x`$AVAST_PREFIX/bin/testlibs-avastengine 2>/dev/null`" = xOK ; then
has_avastengine=1
fi
if test "x`$AVAST_PREFIX/bin/testlibs-esmtp 2>/dev/null`" = xOK ; then
has_esmtp=1
fi
if test "x`$AVAST_PREFIX/bin/testlibs-x11 2>/dev/null`" = xOK ; then
has_x11=1
fi
if test "x`$AVAST_PREFIX/bin/testlibs-gtk 2>/dev/null`" = xOK ; then
has_gtk=1
fi
fi

if test $has_avastengine = 0 ; then
LD_LIBRARY_PATH=$AVAST_PREFIX/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
fi

if test $has_esmtp = 0 ; then
LD_LIBRARY_PATH=$AVAST_PREFIX/lib-esmtp:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
fi

if test $has_x11 = 0 ; then
LD_LIBRARY_PATH=$AVAST_PREFIX/lib-x11:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
fi

if test $has_gtk = 0 ; then
LD_LIBRARY_PATH=$AVAST_PREFIX/lib-gtk2:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
fi

# -----------------------------------------------------------------------
# Changes to dynamic linker behavior:
# -----------------------------------------------------------------------

# Make sure that our libraries are used in cases when we don't want
# system-wide versions:
#LD_LIBRARY_PATH=$AVAST_PREFIX/lib:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH

# Make sure that NPTL pthreads implementation is not used, our binaries are
# compiled on old system. This ensures compatibility with 2.6-based systems
# such as SuSE 9.1:
#LD_ASSUME_KERNEL="2.4.1"
#export LD_ASSUME_KERNEL


# -----------------------------------------------------------------------
# Run the program:
# -----------------------------------------------------------------------

AVAST4DATADIR=$HOME/.avast
export AVAST4DATADIR

$AVAST_PREFIX/bin/$programname $*
 
Old 04-21-2007, 02:18 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The bin directory will contain files that you can execute, such as the one you posted. You can execute that file with "./Avast", assuming that Avast is the filename.
 
Old 04-23-2007, 01:51 AM   #9
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Avast works

Thanks Nylex, I now have a working Avast. I had to make a little change to properties for Avast, so that I could start Avast from a desktop icon. But that was it. Thanks for all your help on this matter.

bookie
 
Old 04-23-2007, 03:57 PM   #10
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 36
rpm2tgz filename.rpm
installpkg filename.tgz
would be the simplest way to installed
if i read it right that rpm packages are also awailible

but i use clamav instead of anything else
i'm an anti-avast guy
 
Old 06-23-2007, 04:22 AM   #11
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Hi Tux-Slack, it seems to be a day for catching up on missed posts. I am sorry for not replying sooner.- Thanks for your input.

bookie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
avast antivirus iqbala Linux - Newbie 7 04-27-2007 04:51 AM
About Slackware 9.1 boot disk?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is AL3OMDAH Slackware 4 04-18-2007 09:54 AM
Avast: Another Virus Scanner Ported for Linux stjoan1 General 14 04-17-2006 09:15 AM
Avast antivirus rolls out next month djnzlab1 Linux - General 2 12-07-2005 07:30 AM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration