FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-09-2009, 05:41 PM
Liam Proven
 
Default Automatic background updates

Is there an "official" way to do this, rather than just using cron to
schedule a script that says something like...

apt-get update
apt-get upgrade -y

...?

--
Liam Proven • Profile: http://www.linkedin.com/in/liamproven
Email: lproven@cix.co.uk • GMail/GoogleTalk/Orkut: lproven@gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AOL/AIM/iChat/Yahoo/Skype: liamproven • LiveJournal/Twitter: lproven
MSN: lproven@hotmail.com • ICQ: 73187508

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-09-2009, 06:27 PM
Steve
 
Default Automatic background updates

On Wed, 09 Dec 2009 18:41:25 -0000, Liam Proven <lproven@gmail.com> wrote:

> Is there an "official" way to do this, rather than just using cron to
> schedule a script that says something like...
>
> apt-get update
> apt-get upgrade -y
>
> ...?
>
There’s a setting for install security updates with out confirmation in
Update Manager > Preferences along with download in background, or am I
missing something.
--
Steve

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-09-2009, 06:37 PM
Liam Proven
 
Default Automatic background updates

On Wed, Dec 9, 2009 at 7:27 PM, Steve <yorvik.ubunto@googlemail.com> wrote:
> On Wed, 09 Dec 2009 18:41:25 -0000, Liam Proven <lproven@gmail.com> wrote:
>
>> Is there an "official" way to do this, rather than just using cron to
>> schedule a script that says something like...
>>
>> * apt-get update
>> * apt-get upgrade -y
>>
>> ...?
>>
> There’s a setting for install security updates with out confirmation in
> Update Manager > Preferences along with download in background, or am I
> missing something.

I'm hoping to not have to use the GUI at all.

There seems to be some skeletal stuff in
/etc/cron.daily/apt

... such as:

# APT::Periodic::Unattended-Upgrade "0";
# - Run the "unattended-upgrade" security upgrade script
# every n-days (0=disabled)
# Requires the package "unattended-upgrades" and will write
# a log in /var/log/unattended-upgrades

But I don't know how this works or how to "activate" it...?

This is on 9.04, BTW...

--
Liam Proven • Profile: http://www.linkedin.com/in/liamproven
Email: lproven@cix.co.uk • GMail/GoogleTalk/Orkut: lproven@gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AOL/AIM/iChat/Yahoo/Skype: liamproven • LiveJournal/Twitter: lproven
MSN: lproven@hotmail.com • ICQ: 73187508

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-09-2009, 06:49 PM
Aart Koelewijn
 
Default Automatic background updates

On Wed, 09 Dec 2009 19:37:32 +0000, Liam Proven wrote:

> On Wed, Dec 9, 2009 at 7:27 PM, Steve <yorvik.ubunto@googlemail.com>
> wrote:
>> On Wed, 09 Dec 2009 18:41:25 -0000, Liam Proven <lproven@gmail.com>
>> wrote:
>>
>>> Is there an "official" way to do this, rather than just using cron to
>>> schedule a script that says something like...
>>>
>>> * apt-get update
>>> * apt-get upgrade -y
>>>
>>> ...?
>>>
>> There’s a setting for install security updates with out confirmation in
>> Update Manager > Preferences along with download in background, or am I
>> missing something.
>
> I'm hoping to not have to use the GUI at all.
>
> There seems to be some skeletal stuff in /etc/cron.daily/apt
>
> ... such as:
>
> # APT::Periodic::Unattended-Upgrade "0"; # - Run the
> "unattended-upgrade" security upgrade script # every n-days
> (0=disabled)
> # Requires the package "unattended-upgrades" and will write # a
> log in /var/log/unattended-upgrades
>
> But I don't know how this works or how to "activate" it...?
>
> This is on 9.04, BTW...

same in 9.10. Delete the comment sign (#) in front of the line and change
the 0 to 1 (or 2 or 3 or ..). Now it reads:
APT::Periodic::Unattended-Upgrade "1";
Now save, that is all.

Aart


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-09-2009, 06:51 PM
Liam Proven
 
Default Automatic background updates

On Wed, Dec 9, 2009 at 7:49 PM, Aart Koelewijn <aart@mtack.xs4all.nl> wrote:
> On Wed, 09 Dec 2009 19:37:32 +0000, Liam Proven wrote:
>
>> On Wed, Dec 9, 2009 at 7:27 PM, Steve <yorvik.ubunto@googlemail.com>
>> wrote:
>>> On Wed, 09 Dec 2009 18:41:25 -0000, Liam Proven <lproven@gmail.com>
>>> wrote:
>>>
>>>> Is there an "official" way to do this, rather than just using cron to
>>>> schedule a script that says something like...
>>>>
>>>> * apt-get update
>>>> * apt-get upgrade -y
>>>>
>>>> ...?
>>>>
>>> There’s a setting for install security updates with out confirmation in
>>> Update Manager > Preferences along with download in background, or am I
>>> missing something.
>>
>> I'm hoping to not have to use the GUI at all.
>>
>> There seems to be some skeletal stuff in /etc/cron.daily/apt
>>
>> ... such as:
>>
>> # *APT::Periodic::Unattended-Upgrade "0"; # *- Run the
>> "unattended-upgrade" security upgrade script # * *every n-days
>> (0=disabled)
>> # * *Requires the package "unattended-upgrades" and will write # * *a
>> log in /var/log/unattended-upgrades
>>
>> But I don't know how this works or how to "activate" it...?
>>
>> This is on 9.04, BTW...
>
> same in 9.10. Delete the comment sign (#) in front of the line and change
> the 0 to 1 (or 2 or 3 or ..). Now it reads:
> APT::Periodic::Unattended-Upgrade "1";
> Now save, that is all.

Terrific! Thanks, I will try that.

--
Liam Proven • Profile: http://www.linkedin.com/in/liamproven
Email: lproven@cix.co.uk • GMail/GoogleTalk/Orkut: lproven@gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AOL/AIM/iChat/Yahoo/Skype: liamproven • LiveJournal/Twitter: lproven
MSN: lproven@hotmail.com • ICQ: 73187508

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-09-2009, 08:42 PM
Florian Diesch
 
Default Automatic background updates

Liam Proven <lproven@gmail.com> writes:

> Is there an "official" way to do this, rather than just using cron to
> schedule a script that says something like...
>
> apt-get update
> apt-get upgrade -y

There's cron-apt


Florian
--
<http://www.florian-diesch.de/linux/asciipinguine.html>

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-09-2009, 10:09 PM
Steve
 
Default Automatic background updates

On Wed, 09 Dec 2009 19:51:39 -0000, Liam Proven <lproven@gmail.com> wrote:

> On Wed, Dec 9, 2009 at 7:49 PM, Aart Koelewijn <aart@mtack.xs4all.nl>
> wrote:
>> On Wed, 09 Dec 2009 19:37:32 +0000, Liam Proven wrote:
>>
>>> On Wed, Dec 9, 2009 at 7:27 PM, Steve <yorvik.ubunto@googlemail.com>
>>> wrote:
>>>> On Wed, 09 Dec 2009 18:41:25 -0000, Liam Proven <lproven@gmail.com>
>>>> wrote:
>>>>
>>>>> Is there an "official" way to do this, rather than just using cron to
>>>>> schedule a script that says something like...
>>>>>
>>>>> apt-get update
>>>>> apt-get upgrade -y
>>>>>
>>>>> ...?
>>>>>
>>>> There’s a setting for install security updates with out confirmation
>>>> in
>>>> Update Manager > Preferences along with download in background, or am
>>>> I
>>>> missing something.
>>>
>>> I'm hoping to not have to use the GUI at all.
>>>
>>> There seems to be some skeletal stuff in /etc/cron.daily/apt
>>>
>>> ... such as:
>>>
>>> # APT::Periodic::Unattended-Upgrade "0"; # - Run the
>>> "unattended-upgrade" security upgrade script # every n-days
>>> (0=disabled)
>>> # Requires the package "unattended-upgrades" and will write # a
>>> log in /var/log/unattended-upgrades
>>>
>>> But I don't know how this works or how to "activate" it...?
>>>
>>> This is on 9.04, BTW...
>>
>> same in 9.10. Delete the comment sign (#) in front of the line and
>> change
>> the 0 to 1 (or 2 or 3 or ..). Now it reads:
>> APT::Periodic::Unattended-Upgrade "1";
>> Now save, that is all.
>
> Terrific! Thanks, I will try that.
>
One problem I foresee is, will you be informed if a restart is required of
either an application or the machine.

--
Steve

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-10-2009, 12:55 AM
NoOp
 
Default Automatic background updates

On 12/09/2009 10:41 AM, Liam Proven wrote:
> Is there an "official" way to do this, rather than just using cron to
> schedule a script that says something like...
>
> apt-get update
> apt-get upgrade -y
>
> ...?
>

One thing to keep in mind is that (once you get this working to your
liking) is that the auto upgrade will go out and fetch updates in the
background, and in the process the download can saturate your existing
network connection. For this reason I add an apt download limiter by
placing an /etc/apt/apt.conf file on all of my systems. The following is
what I use for a 1.5Mb DSL line, it keeps the download to 1Mb so that I
still have 500Kb of bandwidth to browse etc.

$ cat /etc/apt/apt.conf
//---------------------------
// Options for limiting Update Manager download speeds
Acquire
{
Queue-Mode "access"; // host|access
http
{
Dl-Limit "100"; // 100Kb/sec maximum download rate
};
};
//--------------------------

Just adjust 'Dl-Limit "100"' to whatever you need.

In the past when I had auto update set for customers/relatives etc.,
they'd be doing something & all of a sudden thought that they had
network and machine problems. Updates were soaking their connection &
then the updated installs were soaking the cpu during the installs. So
now I just add the apt.conf file and drill it in their heads to click
and perform the updates when they see the notification on the desktop.
(realise you aren't talking desktop, but the same file helps on my test
servers as well).


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-10-2009, 11:05 AM
Liam Proven
 
Default Automatic background updates

On Wed, Dec 9, 2009 at 11:09 PM, Steve <yorvik.ubunto@googlemail.com> wrote:
> On Wed, 09 Dec 2009 19:51:39 -0000, Liam Proven <lproven@gmail.com> wrote:
>
>> On Wed, Dec 9, 2009 at 7:49 PM, Aart Koelewijn <aart@mtack.xs4all.nl>
>> wrote:
>>> On Wed, 09 Dec 2009 19:37:32 +0000, Liam Proven wrote:
>>>
>>>> On Wed, Dec 9, 2009 at 7:27 PM, Steve <yorvik.ubunto@googlemail.com>
>>>> wrote:
>>>>> On Wed, 09 Dec 2009 18:41:25 -0000, Liam Proven <lproven@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Is there an "official" way to do this, rather than just using cron to
>>>>>> schedule a script that says something like...
>>>>>>
>>>>>> * apt-get update
>>>>>> * apt-get upgrade -y
>>>>>>
>>>>>> ...?
>>>>>>
>>>>> There’s a setting for install security updates with out confirmation
>>>>> in
>>>>> Update Manager > Preferences along with download in background, or am
>>>>> I
>>>>> missing something.
>>>>
>>>> I'm hoping to not have to use the GUI at all.
>>>>
>>>> There seems to be some skeletal stuff in /etc/cron.daily/apt
>>>>
>>>> ... such as:
>>>>
>>>> # *APT::Periodic::Unattended-Upgrade "0"; # *- Run the
>>>> "unattended-upgrade" security upgrade script # * *every n-days
>>>> (0=disabled)
>>>> # * *Requires the package "unattended-upgrades" and will write # * *a
>>>> log in /var/log/unattended-upgrades
>>>>
>>>> But I don't know how this works or how to "activate" it...?
>>>>
>>>> This is on 9.04, BTW...
>>>
>>> same in 9.10. Delete the comment sign (#) in front of the line and
>>> change
>>> the 0 to 1 (or 2 or 3 or ..). Now it reads:
>>> APT::Periodic::Unattended-Upgrade "1";
>>> Now save, that is all.
>>
>> Terrific! Thanks, I will try that.
>>
> One problem I foresee is, will you be informed if a restart is required of
> either an application or the machine.

That's true, and thanks, but I am expecting these machines to be
turned off after use & so rebooted daily. I reckon we can live with a
possible delay of a few hours between installation & reboot.

--
Liam Proven • Profile: http://www.linkedin.com/in/liamproven
Email: lproven@cix.co.uk • GMail/GoogleTalk/Orkut: lproven@gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AOL/AIM/iChat/Yahoo/Skype: liamproven • LiveJournal/Twitter: lproven
MSN: lproven@hotmail.com • ICQ: 73187508

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-10-2009, 11:06 AM
Liam Proven
 
Default Automatic background updates

On Thu, Dec 10, 2009 at 1:55 AM, NoOp <glgxg@sbcglobal.net> wrote:
> On 12/09/2009 10:41 AM, Liam Proven wrote:
>> Is there an "official" way to do this, rather than just using cron to
>> schedule a script that says something like...
>>
>> * apt-get update
>> * apt-get upgrade -y
>>
>> ...?
>>
>
> One thing to keep in mind is that (once you get this working to your
> liking) is that the auto upgrade will go out and fetch updates in the
> background, and in the process the download can saturate your existing
> network connection. For this reason I add an apt download limiter by
> placing an /etc/apt/apt.conf file on all of my systems. The following is
> what I use for a 1.5Mb DSL line, it keeps the download to 1Mb so that I
> still have 500Kb of bandwidth to browse etc.
>
> $ cat /etc/apt/apt.conf
> //---------------------------
> // Options for limiting Update Manager download speeds
> Acquire
> {
> Queue-Mode "access"; * * * // host|access
> http
> {
> Dl-Limit "100"; * * * *// 100Kb/sec maximum download rate
> };
> };
> //--------------------------
>
> Just adjust 'Dl-Limit "100"' to whatever you need.
>
> In the past when I had auto update set for customers/relatives etc.,
> they'd be doing something & all of a sudden thought that they had
> network and machine problems. Updates were soaking their connection &
> then the updated installs were soaking the cpu during the installs. So
> now I just add the apt.conf file and drill it in their heads to click
> and perform the updates when they see the notification on the desktop.
> (realise you aren't talking desktop, but the same file helps on my test
> servers as well).

That's a really good idea. Thanks!

--
Liam Proven • Profile: http://www.linkedin.com/in/liamproven
Email: lproven@cix.co.uk • GMail/GoogleTalk/Orkut: lproven@gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AOL/AIM/iChat/Yahoo/Skype: liamproven • LiveJournal/Twitter: lproven
MSN: lproven@hotmail.com • ICQ: 73187508

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 08:27 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org