<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ChangeLog - Jon Chase&#039;s blog &#187; Cloud</title>
	<atom:link href="http://www.juliesoft.com/category/cloud/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.juliesoft.com</link>
	<description>solve niche problems, make users happy</description>
	<lastBuildDate>Sun, 18 Jul 2010 06:56:43 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>An easy way to keep your Ubuntu EC2 instances up to date</title>
		<link>http://www.juliesoft.com/2010/05/an-easy-way-to-keep-your-ubuntu-ec2-instances-up-to-date/</link>
		<comments>http://www.juliesoft.com/2010/05/an-easy-way-to-keep-your-ubuntu-ec2-instances-up-to-date/#comments</comments>
		<pubDate>Mon, 24 May 2010 06:46:26 +0000</pubDate>
		<dc:creator>Jon Chase</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.juliesoft.com/?p=379</guid>
		<description><![CDATA[
Note: this tip can be applied to a lot of Linux distros, but the Ubuntu on EC2 set up is the one I&#8217;m using it on. YMMV
So I&#8217;m running some pretty stable Ubuntu instances on Amazon&#8217;s EC2.  They&#8217;ve never shut down unexpectedly, and I rarely need to restart them.  This means I&#8217;m rarely [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.juliesoft.com%2F2010%2F05%2Fan-easy-way-to-keep-your-ubuntu-ec2-instances-up-to-date%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.juliesoft.com%2F2010%2F05%2Fan-easy-way-to-keep-your-ubuntu-ec2-instances-up-to-date%2F" height="61" width="51" /></a></div><p><img src="http://www.juliesoft.com/wp-content/uploads/2010/05/stonehenge.jpg" alt="stonehenge" title="stonehenge" width="500" height="375" class="aligncenter size-full wp-image-378" /></p>
<p>Note: this tip can be applied to a lot of Linux distros, but the Ubuntu on EC2 set up is the one I&#8217;m using it on. YMMV</p>
<p>So I&#8217;m running some pretty stable Ubuntu instances on Amazon&#8217;s EC2.  They&#8217;ve never shut down unexpectedly, and I rarely need to restart them.  This means I&#8217;m rarely in the console tinkering around with software packages or worrying about software updates.  I needed an easy, hands off way to make sure my instances are running the latest, greatest, and shiniest new software out there.  An email every day with packages that need updated would be perfect.  Enter <a href="https://help.ubuntu.com/9.10/serverguide/C/automatic-updates.html"><strong>apticron</strong></a>.  </p>
<h3>apticron: easy software updates</h3>
<p>The docs on apticron <a href="https://help.ubuntu.com/9.10/serverguide/C/automatic-updates.html">are here</a>, but here&#8217;s the gist:  install apticron (<span class="mono">sudo apt-get install apticron</span>) and you&#8217;ll get a daily email with a list of packages that need updated.  You can then install the packages yourself as you please (see below on how to automate that too), which I prefer.  The daily email even contains the required upgrade commands.  How easy is that?  </p>
<p>Here&#8217;s an example email from apticron:</p>
<p><img src="http://www.juliesoft.com/wp-content/uploads/2010/05/apticron_email.png" alt="apticron_email" title="apticron_email" width="495" height="688" class="aligncenter size-full wp-image-377" /></p>
<p>You&#8217;ll probably need to <strong>customize the email address that apticron sends its reports to</strong>.  The file that controls that is <span class="mono">/etc/apticron/apticron.conf</span>.</p>
<p>Since the EC2 instances I launch are configured from scratch every time they&#8217;re launched, I tend to write scripts to install software like apticron.  Here&#8217;s my script that installs apticron and updates the email address it uses to something more useful (automatically run at start up thanks to the wonderful <a href="http://alestic.com/2009/08/runurl">runurl</a>):</p>
<pre class="brush: bash">
#!/bin/bash -ex
export DEBIAN_FRONTEND=noninteractive
# Installs apticron
# apticron sends an email once a day listing packages that need updated
sudo apt-get -y install apticron
echo "replacing the default /etc/apticron/apticron.conf with a configured version"
sudo touch /etc/apticron/apticron.conf
sudo rm /etc/apticron/apticron.conf
sudo touch /etc/apticron/apticron.conf
echo "EMAIL=\"me@myawesomecompany.com\"" | sudo tee -a /etc/apticron/apticron.conf
</pre>
<p>(I&#8217;ll be the first to admit that my shell scripting skills could use some improvement.  Suggestions welcome, but the above will get the job done.)</p>
<p>Oh, and I mentioned that the updates themselves can also be automated.  I&#8217;m not comfortable with this yet as I&#8217;d much rather review the updates before having them applied, but if you&#8217;re interested in automatic updates, <a href="https://help.ubuntu.com/9.10/serverguide/C/automatic-updates.html ">have a look at unattended-upgrades</a>.  </p>
<h3>Happy automating!</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.juliesoft.com/2010/05/an-easy-way-to-keep-your-ubuntu-ec2-instances-up-to-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
