Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Well I have installed avast anti virus on Ubuntu 12.04. But after updating, it crashes! So I have made some tweaks like below:

  1. Press Ctrl+Alt+T to open the Terminal. When it opens, run the command below.

    sudo gedit /etc/init.d/rcS
    
  2. Type your password and hit Enter.

  3. When the text file opens, add the line:

    sysctl -w kernel.shmmax=128000000
    
  4. Make sure the line you added is before:

    exec /etc/init.d/rc S
    
  5. This is what it should look like:

    #! /bin/sh
    
    # rcS
    
    #
    # Call all S??* scripts in /etc/rcS.d/ in numerical/alphabetical order
    #
    
    sysctl -w kernel.shmmax=128000000
    
    exec /etc/init.d/rc S
    
  6. Save the file.

  7. Reboot.

My question is: Did I do anything wrong? I mean as I have made some tweaks, will it lower the security of Avast down like viruses do? Please if you are a programmer check this if it contains bug or harmful intentions... Thanks.

share|improve this question
    
I had the exact same problem for a while. I never could get the above fix to work either. It may be a 12.04 issue. –  Ryan McClure Jun 2 '12 at 23:11
1  
Why would you do something like that? Do you actually know if it has something to do with Avast? What you've done shouldn't be harmful security wise, but looks completely irrelevant to the problem. Also, next time, ask first. –  mikewhatever Jun 3 '12 at 8:01
2  
Where is this fix from? Are there instructions somewhere recommending this? If so, a link to them should be added to the question (by editing the question). –  Eliah Kagan Jun 12 '12 at 1:37

4 Answers 4

This does not look to be harmful. Basically, these changes seem to me as if they were meant to ensure, that every time you start your computer, the virtual RAM filesystem that is available in /dev/shm/ is resized to some great size, probably to ensure that some temporary files that are going to be stored there will fit.

On the other hand, I have no clue why would this possibly could lead to fixing application crashes. It will not do any harm, but I doubt this fix can help.

Also, I need to admit I am not sure whether these changes will have any effect on ubuntu machine. These changes modify init.d files, while Ubuntu has migrated long time ago to another startup system, called Upstart, and it is possible that not only they will not fix anything, but will simply have no result.

Anyway, it's safe to try if you want to.

share|improve this answer
    
Agree, it looks fine, but I have no idea why it would actually fix anything. You (TmRn) might be better off using a different AV package. ClamAV has been around forever. The link is to some third party GUI tools that can make it easier to use. –  coteyr Nov 30 '12 at 16:38

I have just changed from Ubuntu 10.04 LTS which needed the same fix as shown in the first reply. Now I'm on Lubuntu 12.04 and have applied the fix as follows in LX terminal:

sudo leafpad /etc/init.d/rcS

Then add line as in the first answer.

If you want to run avast just in the current sesssion (or to check if it works), then go to LX terminal and run this line:

sudo sysctl -w kernel.shmmax=128000000
share|improve this answer

Have you tried this?

http://www.upubuntu.com/2011/08/how-to-install-avast-free-antivirus-on.html

I have not yet tried it. I am a newbie to Ubuntu

share|improve this answer

Here at Avast forum moderators say that it really fixes the problem and users confirm that: http://forum.avast.com/index.php?topic=57775.0 But wouldn't it make Ubuntu slower?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.