LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-14-2007, 10:26 PM   #1
timberwolf90
LQ Newbie
 
Registered: Sep 2007
Location: CA, USA
Distribution: Freespire 2.0.0
Posts: 25

Rep: Reputation: 15
installing/register avg anti-virus


My mom insists that I have some kind of protection on my computer, whether its Linux or Windows (she reads the paper a lot. )

Anyways, I've decided to install AVG Anti-virus on my Freespire 2.0.0

I've gone to http://www.grisoft.cz/doc/downloads-.../crp/0?prd=avl and downloaded avg75lms-r49-a1124.i386.rpm

I've been following this page to install it so far: http://www.ubuntugeek.com/install-av...u-desktop.html
But theres been a problem.

First I need to get the serial number (to register later on). So I do this and got an error: sudo rpm -qip -scripts avg75lms-r49-a1124.i386.rpm
Code:
Name        : avg75lms                     Relocations: (not relocatable)
Version     : r49                               Vendor: (none)
Release     : a1124                         Build Date: Thu 06 Sep 2007 08:10:31 AM PDT
Install Date: (not installed)               Build Host: localhost
Group       : Applications/System           Source RPM: avg75lms-r49-a1124.src.rpm
Size        : 52023783                         License: (c) 2006 GRISOFT, s.r.o.
Signature   : (none)
URL         : http://www.grisoft.cz/linux
Summary     : AVG Anti-Virus for Linux
Description :
This package contains the binary release of AVG Anti-Virus for x86 Linux.
preinstall scriptlet (using /bin/sh):
if [ -z `grep ^avg /etc/group | cut -f1 -d:` ];
then
        groupadd avg 2> /dev/null
fi

if [ -z `grep ^avg /etc/passwd | cut -f1 -d:` ];
then
        useradd -s /sbin/nologin -g avg avg 2>/dev/null
fi
postinstall scriptlet (using /bin/sh):sudo rpm -qip -scripts avg75lms-r49-a1124.i386.rpm

AVG_SCRIPTS_DIR=/opt/grisoft/avg7/etc/init.d/

. ${AVG_SCRIPTS_DIR}/avgdinit.conf
. ${AVG_SCRIPTS_DIR}/functions.common
. ${AVG_SCRIPTS_DIR}/functions.slack

distro=`detect_distro`

echo "Installing 'avgd' service initscripts..."

case "$distro" in
    rh | suse | mdk | ubuntu | deb )
        ln -s ${AVG_SCRIPTS_DIR}/avgd.all /etc/init.d/avgd
        ;;
    slack )
        ln -s ${AVG_SCRIPTS_DIR}/avgd.all /etc/rc.d/rc.avgd
        ;;
    * )
        echo "Automatic installation of initscripts for your platform/distro is not supported."
        echo "Please, in directory according to your plartform/distribution"
        echo "create symbolic link 'avgd' to initscript for AVG daemon"
        echo "${AVG_SCRIPTS_DIR}/avgd.all."
        ;;
esac

echo "Registering 'avgd' service to runlevels..."

case "$distro" in
    rh | suse | mdk )
        /sbin/chkconfig --add avgd
        ;;
    deb | ubuntu )
        update-rc.d avgd defaults
        ;;
    slack )
        # System V emulation
        # get runlevels to register from initscript file (if possible)
        echo "Using System V emulation for registering initscript to runlevels"

        levels=`awk '$1 == "#" && $2 == "chkconfig:" {print $3":"$4":"$5}' ${AVG_SCRIPTS_DIR}/avgd.all`;
        levels=${levels:-"2345:60:40"}
        register_slack_initscript rc.avgd $levels
        ;;
    * )
        echo "Automatic registration of initscripts for your platform/distro is not supported."
        echo "Please, register the 'avgd' service initscript for startup and runlevels."
        ;;
esac

touch /opt/grisoft/avg7/data/set_vers.cfg
echo "Please do registration with avgscan -register."
echo "See /opt/grisoft/avg7/doc/README for more information."
preuninstall scriptlet (using /bin/sh):

if [ $1 = 0 ] ; then

    . /opt/grisoft/avg7/etc/init.d/avgdinit.conf
    . /opt/grisoft/avg7/etc/init.d/functions.common
    . /opt/grisoft/avg7/etc/init.d/functions.slack

    distro=`detect_distro`

    echo "Unregistering 'avgd' service ..."

    case "$distro" in
        rh | suse | mdk )
            /sbin/chkconfig --del avgd
            ;;
        deb | ubuntu )
            update-rc.d avgd remove
            ;;
        slack )
            # System V emulation
            unregister_slack_initscript rc.avgd
            ;;
        * )
            echo "Automatic unregistration of 'avgd' service initscript for your platform/distro is not supported."
            ;;
    esac

    # Stop the daemon

    case "$distro" in
        rh | suse | mdk | deb | ubuntu )
            /etc/init.d/avgd stop >/dev/null 2>&1
            ;;
        slack )
            /etc/rc.d/rc.avgd stop >/dev/null 2>&1
            ;;
        * )
            ;;
    esac

    echo "Uninstalling 'avgd' service initscripts..."

    case "$distro" in
        rh | suse | mdk | ubuntu | deb )
            rm /etc/init.d/avgd
            ;;
        slack )
            rm /etc/rc.d/rc.avgd
            ;;
        * )
            echo "Automatic uninstallation of initscripts for your platform/distro is not supported."
            ;;

    esac

fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

exit 0
Basically, I want to know what this error (or whatever it is) is and what I can do about it. If there is another way to install avg on Freespire, please post it. Thanks.
 
Old 11-15-2007, 07:28 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,698

Rep: Reputation: 287Reputation: 287Reputation: 287
From the link you provided to the installation instructions, you have several steps left to complete the installation.

The command you entered generates a script you will need to convert the rpm to a .deb (for Linux derived from Debian, which includes Freespire).

Just keep executing the commands in the order given in the installation instructions. If you get an error, it will be plainly labeled as an error. The code you quote doesn't say *error* in the output.

PS: the next command in the sequence gives the License Number you need.
 
Old 11-15-2007, 09:26 AM   #3
timberwolf90
LQ Newbie
 
Registered: Sep 2007
Location: CA, USA
Distribution: Freespire 2.0.0
Posts: 25

Original Poster
Rep: Reputation: 15
next step

I tried the next step: /usr/bin/avgscan -register
Code:
AVG7 Anti-Virus command line scanner
Copyright (c) 2007 GRISOFT, s.r.o.
Program version 7.5.49, engine 442
Virus Database: Version 269.13.8/993  2007-09-06
Enter license number:
I don't have a License Number...

Also, In the text I posted before, there is a line that reads "Automatic installation of initscripts for your platform/distro is not supported."
I think I'm supposed to look for a License Number to then paste in the next command. Is this correct? If so, where can I find it?
 
Old 11-15-2007, 09:42 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,698

Rep: Reputation: 287Reputation: 287Reputation: 287
A bit farther down the installation instructions, there is this line
Quote:
sudo /opt/grisoft/avggui/bin/avggui_update_licinfo.sh
Have you tried that to see if it gives the license info?
 
Old 11-16-2007, 09:47 AM   #5
timberwolf90
LQ Newbie
 
Registered: Sep 2007
Location: CA, USA
Distribution: Freespire 2.0.0
Posts: 25

Original Poster
Rep: Reputation: 15
I tried "sudo /opt/grisoft/avggui/bin/avggui_update_licinfo.sh" and said command not found.

I browsed to /opt/grisoft/ and found out avggui was really avg7 so I changed the path to "/opt/grisoft/avg7/bin/avgupdate"

When I put in "sudo '/opt/grisoft/avg7/bin/avgupdate'" I got this:

Code:
usage: /opt/grisoft/avg7/bin/avgupdate [OPTIONS] [PATH|LIST]
 OPTIONS:
 -o, --online     online update from Internet
 -f, --offline    offline update from PATH or LIST
 -d, --download   download update files
 -s, --antispam   antispam update from Internet
 -p, --priority NUM
     NUM represents type of update
     2 - priority update
     3 - recommended update
     4 - optional update
 -c, --config FILE
       use ohter config file
 -t, --daemon-pid FILE
       file with AVG daemons group pid
 -i, --no-diff      ignore binary diff files
 -b, --no-backup    do not create backup files
 -n, --no-progress  do not display progress information
 -l, --no-log       do not create log file
 -a, --no-daemons   do not restart deamons
 -m, --complete     only complete updating files
 -r, --restore      restore previous version
 -v, --version      display version
 -h, --help         display this help end exit
 PATH : directory with update files
 LIST : list of update files separated with space
I'm not sure what to do now. I can't find anything about a License Number.

I tried automatically updating with "sudo '/opt/grisoft/avg7/bin/avgupdate' -o"

Code:
File '/opt/grisoft/avg7/data/avg7.snu' not found.
So what now?
 
Old 11-16-2007, 12:03 PM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,698

Rep: Reputation: 287Reputation: 287Reputation: 287
At this point, I suggest that you go back to the website and download the .deb version (which is what Freespire needs) and try that. If that doesn't work, try downloading the tarbal (.tar.gz) version and compile it.
 
Old 11-17-2007, 11:17 AM   #7
timberwolf90
LQ Newbie
 
Registered: Sep 2007
Location: CA, USA
Distribution: Freespire 2.0.0
Posts: 25

Original Poster
Rep: Reputation: 15
installing .deb and .tar.gz

Installing .deb

When I install using "sudo dpkg -i avg75lms-r49-a1124.i386.deb" there are no problems.
It also said:
Code:
Please do registration with avgscan -register.
See /opt/grisoft/avg7/doc/README for more information.
I read /opt/grisoft/avg7/doc/README and I noticed they gave me a License Number but for a trial. I don't want a trial, I want the free version. I know this is a "Full Version" as it says that on the page I downloaded the files from.

I tried "sudo avgscan -register" and it still asked for a License Number.

When I tried "sudo '/opt/grisoft/avg7/bin/avgupdate'" and "sudo '/opt/grisoft/avg7/bin/avgupdate' -o" I got the same thing as before. Post: http://www.linuxquestions.org/questi...3/#post2961049

I then tried "sudo gedit /usr/share/applications/avg.desktop" and noticed when I pasted the text in avg.desktop that some of the paths might be incorrect, not every installion will be the same.

For the line: "File:/usr/share/applications/avg.desktop" there was a avg.desktop file, thats good.

For the line: "Icon=/opt/grisoft/avggui/prog/pixmaps/avgico_big.png" I looked and found /opt/grisoft/avg7/ but no prog file

Installing .tar.gz

I unpacked the file: "tar -xzvf avg75lms-r49-a1124.i386.tar.gz"
Changed the directory: "cd avg7-linux"
Installed: "sudo ./install.sh"

It asked me some questions then installed.

Here's what I got:

Code:
Do you want to continue? (yes/no): yes
Do you agree with the license? (yes/no): yes
Detected operating system is:
        Linux for i686: Debian
Is this correct? (Y/n): y
What group should be used for AVG 7 for Linux [avg]: timberwolf90
Under which user should AVG 7 for Linux run [avg]: timberwolf90
Creating destination directories...
Installing files...
Creating symlinks...
ln: creating symbolic link `/usr/bin/avgscan' to `/opt/grisoft/avg7/bin/avgscan': File exists
ln: creating symbolic link `/usr/bin/avgqrtctl' to `/opt/grisoft/avg7/bin/avgqrtctl': File exists
ln: creating symbolic link `/usr/bin/avgspmctl' to `/opt/grisoft/avg7/bin/avgspmctl': File exists
ln: creating symbolic link `/usr/bin/avgdmilter' to `/opt/grisoft/avg7/bin/avgdmilter': File exists
ln: creating symbolic link `/usr/bin/avgupdate' to `/opt/grisoft/avg7/bin/avgupdate': File exists
ln: creating symbolic link `/etc/avg.conf' to `/opt/grisoft/avg7/etc/avg.conf': File exists
Installing 'avgd' service initscripts...
ln: creating symbolic link `/etc/init.d/avgd' to `/opt/grisoft/avg7/etc/init.d/avgd.all': File exists
Registering 'avgd' service to runlevels...
 System startup links for /etc/init.d/avgd already exist.

Generating uninstall script...

Would you like to read README now? (Y/n): n
Would you like to do registration now? (Y/n): y
AVG7 Anti-Virus command line scanner
Copyright (c) 2007 GRISOFT, s.r.o.
Program version 7.5.49, engine 442
Virus Database: Version 269.13.8/993  2007-09-06
License type is TRIAL for SERVER.
Number of days to expiration: 30

AVG Anti-Virus for Linux/FreeBSD successfully installed.
I said yes to registering and now I'm on a trial version.

I still can't find the icon to start the program in "Run Programs"
 
  


Reply

Tags
avg, freespire, install, register, rpm


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ok, I am confused about AVG Anti-Virus! asif2k General 10 01-08-2007 07:49 PM
using clamav, avg anti-virus Shadowalker Linux - Software 2 03-30-2006 12:01 AM
AVG Anti-virus Free For Linux Now Available For Download furfurdemon666 Linux - News 34 03-12-2006 11:22 AM
AVG anti-virus for Linux jspaceman Linux - Software 1 03-24-2005 12:45 PM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 02:35 PM


All times are GMT -5. The time now is 07:40 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