Results 1 to 5 of 5

Thread: [SOLVED] Automatic updates

  1. #1
    Join Date
    Dec 2007
    Beans
    15

    [SOLVED] Automatic updates

    Hi. At work, we have some computers that we share. We don't work in front of the computers but have them on all day and use them now and then to look something up, write emails, print stuff, etc. I recently installed Ubuntu in one of them, the others run WinXP. Everything is working fine, but I have one security concern.

    We have a slow internet connection, so when I download software/updates with synaptics it can take some hours. I normally start the download process and go to do something else (outside the computers room). My concern is that I have to leave my user acount open, so anyone that walks in has access to my terminal. Is there some way to tell the SO to "do this and log me off when you are done; in the meantime do not accept any other command". At least, is there a way to automatically download and install the updates (say at night) without having to log in (I know that the Windows machines do that).

    Thanks in advance!

  2. #2
    brian_p is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Apr 2008
    Location
    UK
    Beans
    1,622

    Re: Automatic updates

    Quote Originally Posted by Tantor View Post
    We have a slow internet connection, so when I download software/updates with synaptics it can take some hours. I normally start the download process and go to do something else (outside the computers room). My concern is that I have to leave my user acount open, so anyone that walks in has access to my terminal. Is there some way to tell the SO to "do this and log me off when you are done; in the meantime do not accept any other command". At least, is there a way to automatically download and install the updates (say at night) without having to log in (I know that the Windows machines do that).

    Thanks in advance!
    Run a cron job using apt-get or aptitude. Lock the screen to prohibit access.
    Brian.

  3. #3
    Join Date
    Apr 2008
    Beans
    10

    Re: Automatic updates

    To clarify, if necessary, use the following guide to add an entry in the cron scheduler's configuration file that will run "apt-get update" and "apt-get dist-upgrade -y" http://www.builderau.com.au/program/...9279542,00.htm

    Also, if you end up with enough machines that that becomes impractical, use the following guide (or something like it) to make one of those hosts become a local Ubuntu mirror, so that you only end up downloading the packages once. Of course, funneling apt across a properly configured HTTP proxy will have a similar end result.

  4. #4
    Join Date
    Jul 2005
    Location
    Sydney
    Beans
    2,543
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Automatic updates

    System->Administration->Software Sources has some 'automatic updates' options; you can set it to automatically install security updates or automatically download updates in the background.

    You can also use the "Switch User" functionality to lock your session and allow others to log in.
    Remember: if your problem is not described on a Launchpad bug, it can only be fixed by accident!

  5. #5
    Join Date
    Dec 2007
    Beans
    15

    Re: Automatic updates

    Thanks, this "cron job" thing was what I was looking for. Thanks also for the quick guide!

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
  •