Ubuntu Jaunty: updates-available and reboot-required now in /etc/motd!

November 12, 2008

Any brave souls out there running Ubuntu Jaunty Jackalope yet?

No? Okay, okay, you’re right… Perhaps it’s a bit early for that. But what about in a virtual machine?

The Ubuntu Developer Summit isn’t until December, but we’re already busy working on Jaunty!

With some help from Michael Vogt, update-notifier is now able to publish information about available updates, and required system restarts. It uses update-motd to collect and publish a rich, dynamic Message-of-the-Day dialog.

This new functionality hopes to provide an equivalent to the Updates Available and Restart Required icons in the Ubuntu desktop system tray, for the Ubuntu server.

The result looks something like:

Linux dustin-desktop 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/

79 packages can be updated.
0 updates are security updates.

kirkland@t61p:~$

And, when a reboot is required, like this:

Linux dustin-desktop 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/

0 packages can be updated.
0 updates are security updates.

**** System restart required ****

kirkland@t61p:~$

We still have a few kinks to work out, and a few optimizations coming, but all told, this is good stuff for the Ubuntu Server!

:-Dustin

Advertisements

4 Responses to “Ubuntu Jaunty: updates-available and reboot-required now in /etc/motd!”

  1. Craig Says:

    Very cool! This should be very useful… I’m looking forward to it.

  2. zen Says:

    Really cool stuff Dustin. Nice to see server-team hard working. Anyone trying to backpoert it to 8.04/8.10?

  3. Peter Thorin Says:

    wow, this is awesome! will it be in ubuntu desktop as well?

  4. Dustin Kirkland Says:

    Peter-

    This will be on Jaunty desktop as well.

    Zen-

    This code probably won’t be backported to 8.04/8.10, unfortunately… I’ll see if I can simplify it somehow to fit within the scope of an SRU, perhaps.

    :-Dustin


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: