How to Install and Update avast! Antivirus in Ubuntu
Ubuntu doesn't tend to get viruses, but if you work with Windows, you can scan your machine using avast! Antivirus, once you've fixed the update issue.
It is generally accepted that there are no currently wild viruses for Ubuntu, or any Linux based system. That is unlikely to change because of the vast quantities of eyes watching the code, integrated update system, and more in-built security. In the event that it does, neither How to Ubuntu, eustasy, nor avast! guarantee any protection or prevention by following these steps.
avast! Linux Edition
If you are using Ubuntu, you should download the deb version.
Once you have downloaded the package, you should have a file called avast4workstation_..._i386.deb. It should be around 30 Megabytes. Double-Click to open it in the Ubuntu Software Centre. Click the Install button in the top-right-hand corner. Wait for it to finish installing before proceeding.
You will need to complete the Registration Form to receive your free Key (via email) to use avast! Antivirus for Linux.
The form asks your name, email, and country (all compulsory). Optional items include age, computer literacy, and previous antivirus, and your reason for choosing avast!. After entering your details, it states a license key will be emailed to you, usually within half-an-hour.
- I have registered several installations with the same key, with no repercussions so far.
- While a valid email is required (it's where your key's being sent) i have never received any other mail from them.
When you launch avast! you will be asked for a key. If you exit without entering one, it will ask again on next launch. Because of the random nature of the key, you should copy and paste it from your registration email instead of typing it manually.
Unfortunately, while most of avast! works straight out of the metaphorical box, there is one problem.
The updates for avast! (important for detecting the latest viruses) come in blocks. Big blocks. Too big for Ubuntu's default shmmax.
ShmMax is the maximum amount of shared memory any given process can have, and while it's probably not big enough for pretty much everything, single big temporary downloads (like those for applying big updates) means avast! usually wants more, and exits with an Update Engine Error.
To fix it, we need to edit a file manually, which can be done in Gedit via the Terminal.
Add this line of code in a new line directly before the line, which should already be there, exec /etc/init.d/rc S.
Because you've edited the Kernel settings, which are things that load very early on, you'll need to restart your computer before completing the next step.
Updating is ridiculously easy, there is a big Update Database button in the top-left-hand corner, and you can also go via Tools, Update Database.
Under Tools, Preferences, you can also set it to install updates automatically.