Debian Admin - Your way to Debian World

October 22, 2006

Protect Ubuntu Desktop From Viruses Using AVG Antivirus

by @ 11:45 am. Filed under Security, Other Linux

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

AVG Free Edition is the well-known antivirus protection tool. AVG Free is available free of charge to home users for the life of the product. Rapid virus database updates are available for the lifetime of the product, thereby providing the high level of detection capability that millions of users around the world trust to protect their computers. AVG Free is easy to use and will not slow your system down (low system resource requirements). Highlights include automatic update functionality, the AVG Resident Shield, which provides real-time protection as files are opened and programs are run, free Virus Database Updates for the lifetime of the product, and AVG Virus Vault for safe handling of infected files.


Now are going see how to install AVG Antivirus in Ubuntu presently avg antivirus is having only .rpm files to install we need to convert this .rpm files to .deb files to install avg in ubuntu for this we are using a program called alien.We have already discussed about this you can check here

You can download avg antivirus from here

Install AVG Antivirus in Ubuntu

Download the latest version of AVG from the above link to your /usr/local/src/ directory

wget http://free.grisoft.com/softw/70free/setup/avg71flm-r30-a0791.i386.rpm

sudo rpm -qip –scripts avg71flm-r30-a0791.i386.rpm

Now you need to find the License Number looks like the following

/usr/bin/avgscan -register 70FREE-TX-IB-P1-C01-S139FC-327-9FPB (This number migh vary for you)

As i told you before we will convert .rpm file to .deb file using the following command

sudo alien -k avg71flm-r30-a0791.i386.rpm

Installing debian package using the following command

sudo dpkg -i avg71flm_r30_i386.deb

Now you need to Register your copy of AVG antivirus this time it will propt the following questions

sudo /opt/grisoft/avggui/bin/avggui_update_licinfo.sh

Please enter two additional registration information.
What is your name: Ruchi
What is the name of your company: Debianadmin

sudo avgscan -register

Now you need to enter your license number we have gathered before

AVG7 Anti-Virus command line scanner
Copyright (c) 2006 GRISOFT, s.r.o.
Program version 7.1.30, engine 386
Virus Database: Version 268.11.1/421 2006-08-16
Enter license number: 70FREE-TX-IB-P1-C01-S139FC-327-9FPB

Now we need create an AVG antivirus launcher in the application tab for users

sudo gedit /usr/share/applications/avg.desktop

enter the following lines Save and exit the file

File:/usr/share/applications/avg.desktop
[Desktop Entry]
Name=AVG Antivirus
Comment=Antivirus
Exec=avggui &
Icon=/opt/grisoft/avggui/prog/pixmaps/avgico_big.png
Terminal=false
Type=Application
Categories=Application;System;

For an AVG Antivirus update launcher

sudo gedit /usr/share/applications/avgupdate.desktop

enter the following lines Save and exit the file

File:/usr/share/applications/avg.desktop
[Desktop Entry]
Name=AVG Updater
Comment=Antivirus
Exec=sudo /opt/grisoft/avg7/bin/avgupdate -o
Icon=/opt/grisoft/avggui/prog/pixmaps/avgupdateico.png
Terminal=true
Type=Application
Categories=Application;System;

Once you create application menu you need to open AVG antivirus from Applications—>Internet—>AVG Antivirus you can see this here

Once you open AVG Antivirus first time you can see this in the following screen and click ok on license window

AVG Antivirus main windows looks like below here you can select test,test results and update options

Now if you want to update virus database online click on update in the above screen you can see the antivirus updates are in progress and update finished successfully.

If you want to run Virus Scan you need to click on test and you hould see the following screen

Virus scanning in running

Tags: , , , , , ,

You may also be interested in...

29 Responses to “Protect Ubuntu Desktop From Viruses Using AVG Antivirus”

  1. jack Says:

    “sudo dpkg -i dpkg -i avg71flm_r30_i386.deb”

    This line contains an extra “dpkg -i” doesn’t it?

  2. Admin Says:

    thanks for you good catch and i have corrected this now.

  3. Darshan.N.Gowdigere Says:

    Sir,
    I have installed AVG as per your directions.But when I try to update, message pops up saying “Sorry you do have permission to execute AVG update”.
    What should I do?
    Y/s
    Darshan

  4. Admin Says:

    this error will occur because of Update performed by a nonprivileged user.

    The simple solution is add the user into group avg.

    or try to add the following option

    edit the /usr/share/applications/avg.desktop file using the following command

    sudo gedit /usr/share/applications/avg.desktop

    and add the following lines and save the file

    [Desktop Entry]
    Name=AVG Antivirus
    Comment=Antivirus
    Exec=gksudo avggui &
    Icon=/opt/grisoft/avggui/prog/pixmaps/avgico_big.png
    Terminal=false
    Type=Application
    Categories=Application;System;

    Now try to run the update

    hope this helps

  5. Darshan.N.Gowdigere Says:

    Sir,
    No, it didn’t work.
    I haven’t created anyother user account apart from my own.And in the properties for my account under ‘user privileges’, I have selected the ‘execute system administration tasks’ option.
    So,this doesn’t make me a non-privileged user, does it?

    Under administration, Users & groups, groups, I couldn’t find any group named avg.
    So, what should I do?
    Y/s,
    Darshan

  6. Admin Says:

    remove the existing /usr/share/applications/avg.desktop file

    sudo rm /usr/share/applications/avg.desktop

    and create a new file with my post earlier this should run as root

  7. Darshan.N.Gowdigere Says:

    Sir,
    I found 2 files with names avg.desktop & avg.desktop~ & similarly for avgupdate.desktop. So, I sudo rm’d them all & created a new avg.desktop as per your yesterday’s post & avgupdate.desktop as per your Oct 22nd article. But it still doesn’t allow me to update.
    Hope I am not bugging you.
    Y/s,
    Darshan.

  8. Darshan.N.Gowdigere Says:

    Sir,
    I just found that I have 2 icons for AVG , one under System tools menu & the other under Accessories.
    In all the prior posts, I was running the one under Accessories. But now I ran the other one & it updated successfully.
    So, my pblm is solved.Thank you.
    But how do I remove the entry under Accessories?
    Y/s,
    Darshan

  9. Warblade Says:

    Sir,
    Pls help me..Avg can’t update an error sign apear “avgupdate is already running” but it’s not? How will I fix it?
    Please answer
    Jared

  10. Admin Says:

    @warblade

    It occurres because the update agent died half way through an update. The lock file that tells it if it is still running was left behind. The solution for this is delete avgupdate.pid lock file

    sudo rm -r /opt/grisoft/avg7/var/run/avgupdate.pid

    If you don’t have this file, then try doing a search using

    locate avgupdate.pid

  11. Warblade Says:

    Thanks it work!

  12. Warblade Says:

    Now I’ve got a problem Once i try to scan it has an error! Says it can’t open file.

  13. 7echno7im Says:

    Works Perfect with AVG 7.1 (newer since write up) just fill in the correct file name. Thanks so much. i am a Linux newb but managed to follow you instructions very easily. i am running Ubuntu Server 6.10, all command line. :) Most efficient OS i have run yet, boot up is seconds :) Can’t wait to finish my web server.

  14. nello Says:

    Help Please

    When click the update botton, the following message comes up.

    Update process failed..
    Reason: Can not create file ‘/opt/grisoft/avg7/var/run/avgupdate.pid’.

    How do I fix it?

    Thank you
    Nello

  15. alemarze Says:

    In : http://forum.grisoft.cz/freeforum/read.php?10,67499,68275

    “Hi,

    all AVG files are owned by an avg user and a avg group. Only the avg user and users in the avg group are allowed to run update process and create files. All you need is to add an user who will run update process to the avg group.

    switch to root
    $ su

    add your user to the avg group
    # adduser avg

    You will need to login again. You can check if your user is in the avg group with the groups commnad. You should see avg group listed in its output. Then you will be able perform update process.”

  16. nello Says:

    Thank you very much alemarze. I filally got the update to work and I was able to do it using the ‘Users and Groups’ GUI under administration.

    Thanks

    Nello

  17. top Says:

    i want to know the avg antivirus company name and sales number so i can install it.Hope someone can help me.thank you!!!

  18. Jesse Says:

    I am using Ubuntu 6.10 64(bit), I installed AVG using the –force-architecture option. I was able to install and register AVG but I can’t create a shortcut to for the GUI. When I type sudo gedit /usr/share/applications/avg.desktop there is no avg.desktop to be found. So I ran a search and the only files I have pertaining to AVG are in the usr/bin folder. Just so you know I am using Fluxbox and would like to add a shortcut in fluxbox-menu.

    I tried adding the following to my fluxbox-menu but avgscan does not execute:
    [exec] (AVG) {avgscan}

    Was wondering if you could help me with a fluxbox-menu solution but if not could you tell me where the avg.desktop files went, cause I don’t have them. Thanks.

  19. jesse Says:

    avg

  20. mat Says:

    how to download and find updeter avg in internet?

  21. Charles Says:

    Hello,

    When I try to update, I get an error message saying that avgupdate.pid could not be created. I am a member of the avg group and the error persists. The file avgupdate.pid does not exist on my computer. Is there a way to manually recreate a valid avgupdate.pid file?

    Thanks

  22. Charly Says:

    I have some problems to install it on Debian

    1. the license number i’don’t know where to find it
    2. at the website i found 3 files. Wich one is the file that i’need for Debian?

    thank you

  23. Ross Says:

    When I try to down load the file from AVG I get an error: Not Found

    The requested URL /softw/70free/setup/avg71flm-r30-a0791.i386.rpm was not found on this server.
    Apache Server at guru2.grisoft.cz Port 80

    Very new to Linux is there something I need to set up before I download AVG?

  24. B.K.PRADEEP KUMAR Says:

    Thankyou for providing me the advanced and super antivirus freely.

  25. Grzegorz | Newbie Ubuntu User Says:

    Hi there,

    There is ability to download a DEB file from AVG web page (2007-03-24). So do I need do download RPM and converter it? If not, where can I find a serial number? It probably is inside a DEB file (like in RPM), but how do I get it from there?

    I also want to ask if installation process using DEB from AVGs web page is diffrent or the same as You descripe above (exept convertering RPM into DEB)?

  26. Tom Says:

    Grzegorz if you install the DEB from AVG’s web page then you can just skip the part about using alien to convert the .rpm to .deb

  27. bambit Says:

    [quote]Sir,
    I just found that I have 2 icons for AVG , one under System tools menu & the other under Accessories.
    In all the prior posts, I was running the one under Accessories. But now I ran the other one & it updated successfully.
    So, my pblm is solved.Thank you.
    But how do I remove the entry under Accessories?
    Y/s,
    Darshan[/quote]
    I had the exact same problem which was solved the exact same way. My answer to the question how to remove entry under Accessories is (for newbies like me) go to System > Preferences > Main Menu. Select Accessories on the left pane, and then look at the right pane where you will see the AVG menu entry. Remove the checkmark on the box beside the name AVG and then close the window. :)

  28. khaiii Says:

    plzz help me!!

    sir!! this is my problem “Update process failed..
    Reason: Sorry, you do not have permission to execute avgupdate”

    plz solve my problem!!!

  29. Hank Says:

    I am running Kubuntu 8.04. When I scan w AVG, I get a large number of warning messages that certain files are can not be opened and were not scanned. Is this normal or is there a way to adjust the settings to scan those files?

    Thanks - Hank

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.