Protect Ubuntu Desktop From Viruses Using AVG Antivirus
Posted by Admin on October 22nd, 2006
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
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



October 23rd, 2006 at 5:34 am
“sudo dpkg -i dpkg -i avg71flm_r30_i386.deb”
This line contains an extra “dpkg -i” doesn’t it?
October 23rd, 2006 at 6:57 am
thanks for you good catch and i have corrected this now.
November 4th, 2006 at 4:01 am
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
November 4th, 2006 at 9:48 am
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
November 4th, 2006 at 4:55 pm
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
November 4th, 2006 at 6:26 pm
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
November 5th, 2006 at 5:29 pm
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.
November 6th, 2006 at 3:56 am
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
November 8th, 2006 at 12:15 pm
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
November 8th, 2006 at 12:45 pm
@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
November 9th, 2006 at 11:45 am
Thanks it work!
November 9th, 2006 at 11:49 am
Now I’ve got a problem Once i try to scan it has an error! Says it can’t open file.
December 3rd, 2006 at 6:27 am
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.
December 7th, 2006 at 9:24 pm
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
December 28th, 2006 at 6:10 pm
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.”
January 1st, 2007 at 6:22 pm
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
January 10th, 2007 at 7:14 am
i want to know the avg antivirus company name and sales number so i can install it.Hope someone can help me.thank you!!!
January 10th, 2007 at 8:34 pm
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.
January 12th, 2007 at 5:06 am
avg
January 29th, 2007 at 6:12 am
how to download and find updeter avg in internet?
February 17th, 2007 at 7:09 am
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
March 1st, 2007 at 3:18 am
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
March 8th, 2007 at 2:01 am
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?
March 12th, 2007 at 8:09 am
Thankyou for providing me the advanced and super antivirus freely.
March 24th, 2007 at 10:55 am
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)?
April 22nd, 2007 at 5:12 am
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
May 29th, 2007 at 12:56 am
[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.
June 17th, 2007 at 2:24 pm
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!!!
June 21st, 2008 at 2:01 pm
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
November 3rd, 2008 at 5:05 pm
If you are having trouble with updates or scanning all files, try running from terminal.
sudo avggui
This will open avg with permissions.
November 14th, 2008 at 2:04 pm
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
January 12th, 2009 at 9:54 pm
Thanks AVG now working again after upgrade to Ibex.
February 2nd, 2009 at 8:42 pm
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.
February 4th, 2009 at 12:54 am
clamav is way better than avg at least for ubuntu, check out this link:
http://my.opera.com/ubuntunerd1/blog/h
February 4th, 2009 at 4:46 pm
why would you want to scann ubuntu for viruses when its a virus free environment?
April 2nd, 2009 at 7:22 am
Hi Darshan,
I understand 100 % of what you are saying .
Can you share your email , so we can exchange more information
Giri
October 8th, 2009 at 10:23 am
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?
October 19th, 2009 at 9:39 am
“Now you need to find the License Number looks like the following”…
So WHERE do I look for it?