Protect Ubuntu Desktop From Viruses Using AVG Antivirus

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

Sponsored Link

39 thoughts on “Protect Ubuntu Desktop From Viruses Using AVG Antivirus

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

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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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.

  7. 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

  8. 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

  9. @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

  10. 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.

  11. 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

  12. 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.”

  13. 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

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

  15. 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.

  16. 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

  17. 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

  18. 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?

  19. 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)?

  20. 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

  21. [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. 🙂

  22. 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!!!

  23. 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

  24. If you are having trouble with updates or scanning all files, try running from terminal.
    sudo avggui

    This will open avg with permissions.

  25. Hello,
    Downloaded the deb for AVG Free 7.5 from their site and installed it on my Hardy Heron system. Made a few mistakes in the process-incliding registration & creating GUI. While searching for a way out, found your site. Followed the steps outlined. I got over the registration problem somewhere down the line – but cannot figure it out though. Then went through your process of making AVG launcher and Update launcher. Also had to rm the updater process and redo it. Still refused to update, saying I have no permission to update. Remembered an error I made in the AVG launcher creation (forgot the [Desktop Entry]) so edited the AVG launcher process. AND NOW it is back to “your licence info is wrong”. Where do I go from here?
    I am about 15 days old on Ubuntu. Do I remove AVG & try all over again? I am unsure of the process. Could you help please.
    Thanks
    A S Chandrashekaran

  26. For ubuntu users: Click system, then administration, then users and groups. You should see avg there. Highlight it, click on unlock, put in your password when asked, then you should be able to do everything you want in AVG.

  27. Hi Darshan,

    I understand 100 % of what you are saying .

    Can you share your email , so we can exchange more information
    Giri

  28. sir..
    I’m downloading bit difender.. It is a file “.run” is it a installation package for ubuntu?
    and i hava another doubt that they can remove “windows” virus also?

  29. Pls help me

    I have some technical problem with avg in redhat.
    i was installed in avg.rpm in redhat. avg desktop icon not installed in system tool bar as u r provided the guide.

Leave a comment

Your email address will not be published. Required fields are marked *