Results 1 to 7 of 7

Thread: Avast and where?

  1. #1
    Join Date
    Jan 2010
    Location
    TEXAS
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Avast and where?

    I have installed avast because it can pull viruses out of wine if necessary. I run this command #sudo sysctl -w kernel.shmmax+1280000000
    this will get avast to load no problem. Now, can I put this in a file somewhere, so i do not have to run the command before i run Avast. If i do not run the command i get some engine error. If i do add this command into a file permanently will it change my performance.
    Give me 10 MIN before trying my post cause i always forget sutff and will be editing it. Usually to add things.
    Compaq Presario C700, Ubuntu 10.04, 8.1,XP sp3 no vga driver.
    When things are fixed mark thread as solved PLEASE! It is in thread tools.

  2. #2
    Join Date
    Jun 2009
    Beans
    42
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Avast and where?

    Quote Originally Posted by Dn4mycrownj View Post
    I have installed avast because it can pull viruses out of wine if necessary. I run this command #sudo sysctl -w kernel.shmmax+1280000000
    this will get avast to load no problem. Now, can I put this in a file somewhere, so i do not have to run the command before i run Avast. If i do not run the command i get some engine error. If i do add this command into a file permanently will it change my performance.
    Go to system>preferences>startup applications, click "add" and put that command into the command input box.

  3. #3
    Join Date
    Jan 2010
    Location
    TEXAS
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Avast and where?

    do i have to put sudo in front of it?
    Give me 10 MIN before trying my post cause i always forget sutff and will be editing it. Usually to add things.
    Compaq Presario C700, Ubuntu 10.04, 8.1,XP sp3 no vga driver.
    When things are fixed mark thread as solved PLEASE! It is in thread tools.

  4. #4
    Join Date
    Mar 2010
    Location
    Norway
    Beans
    674

    Re: Avast and where?

    Quote Originally Posted by Dn4mycrownj View Post
    do i have to put sudo in front of it?

    If you have to put sudo in front of it when you do it from the terminal, then you need to put sudo there too.

  5. #5
    Join Date
    Jan 2010
    Location
    TEXAS
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Avast and where?

    thank you
    Give me 10 MIN before trying my post cause i always forget sutff and will be editing it. Usually to add things.
    Compaq Presario C700, Ubuntu 10.04, 8.1,XP sp3 no vga driver.
    When things are fixed mark thread as solved PLEASE! It is in thread tools.

  6. #6
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: Avast and where?

    That won't work.

    If you substitute the sudo for gksu, then it has more of a chance of working, as it'll give you a graphical prompt for your password.

    A better solution would be to add the task to root's crontab:
    Code:
    sudo -i
    crontab -e
    I'm not familiar with cron myself, so I can't tell you what you'd need to add to crontab to get this command to run. However, someone else may be able to tell you, or this link may help you figure out what needs to be written.

    My guess is
    Code:
    @reboot sysctl -w kernel.shmmax+1280000000
    Last edited by WorMzy; June 14th, 2010 at 01:37 AM.
    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

  7. #7
    Join Date
    Jan 2010
    Location
    TEXAS
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Avast and where?

    The first way didnt work. I looked at cron does it run all the time before I set it up. I would rather not have something that is always running an extra process.

    I havnt tried wormzys way yet.
    Give me 10 MIN before trying my post cause i always forget sutff and will be editing it. Usually to add things.
    Compaq Presario C700, Ubuntu 10.04, 8.1,XP sp3 no vga driver.
    When things are fixed mark thread as solved PLEASE! It is in thread tools.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •