<?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>aaron-kelley.net &#187; Ubuntu</title>
	<atom:link href="http://aaron-kelley.net/blog/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaron-kelley.net</link>
	<description>My little corner of the Internet</description>
	<lastBuildDate>Wed, 01 Sep 2010 23:57:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Automatic Security Updates Not Happening in Ubuntu Server (10.04)</title>
		<link>http://aaron-kelley.net/blog/2010/09/automatic-security-updates-not-happening-in-ubuntu-server-10-04/</link>
		<comments>http://aaron-kelley.net/blog/2010/09/automatic-security-updates-not-happening-in-ubuntu-server-10-04/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 20:35:08 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu Server]]></category>

		<guid isPermaLink="false">http://aaron-kelley.net/?p=856</guid>
		<description><![CDATA[I&#8217;ve actually run into two separate causes of this problem during my time running Ubuntu Server machines. And while I am discussing Ubuntu Server in this post, I see no reason why this same problem couldn&#8217;t affect the desktop version of Ubuntu, or maybe other Ubuntu variants (Kubuntu, Xubuntu, etc.). The problem: You&#8217;ve enabled automatic [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve actually run into two separate causes of this problem during my time running Ubuntu Server machines.  And while I am discussing Ubuntu Server in this post, I see no reason why this same problem couldn&#8217;t affect the desktop version of Ubuntu, or maybe other Ubuntu variants (Kubuntu, Xubuntu, etc.).</p>
<p>The problem:  You&#8217;ve enabled automatic security update installation, and yet, security updates are not being automatically installed.</p>
<p><strong>First possible solution:</strong> This one is easy.  Check the file <tt>/etc/cron.daily/apt</tt> and make sure that it is marked executable.  Permissions on this file should look like <tt>rwxr-xr-x</tt> (755).  This file somehow lost its executability when I upgraded from one Ubuntu release to the next, which broke the daily update check and thus no automatic security update installation.</p>
<p>In the more recent occurrence of this problem for me, the daily update check was obviously happening.  I would connect to the server via SSH and see something like&#8230;</p>
<blockquote><p><tt>Welcome to the Ubuntu Server!<br />
* Documentation:  http://www.ubuntu.com/server/doc</tt></p>
<p><tt>5 packages can be updated.<br />
5 updates are security updates.</tt></p></blockquote>
<p>So, the daily update check was happening, but the automatic update installation was not.  What could cause this?</p>
<p>Well, it turns out that the script that does the update installation will only proceed to that point if the <em>check</em> for updates was successful (no errors at all). This leads us to&#8230;</p>
<p><strong>Second possible solution:</strong> Run a <tt>sudo aptitude update</tt> or <tt>sudo apt-get update</tt> and see if there are any errors.  If there are, address them, and hopefully that will resolve the problem.  In my case, I had a third-party repository that had become inaccessible, so although the main Ubuntu repositories were updating fine, this error still prevented automatic security update installation.</p>
<p>If you want to know how to set up automatic security updates, there are (at least) three possible ways:</p>
<ul>
<li>When first installing the system, you will be given the option to enable automatic security updates.</li>
<li>Follow the directions on <a href="https://help.ubuntu.com/community/AutomaticSecurityUpdates" target="_blank">this page</a> in the Ubuntu Wiki.  I recommend the apt.conf.d method (which is what will be set up for you using either of the other options presented here), but, the cron method may help you get around other similar issues that prevent automatic updates from working.</li>
<li>You can set it up using the GUI method like you would with a desktop version of Ubuntu.  First, install Synaptic (<tt>sudo aptitude install synaptic</tt>).  Then, make sure that you are connected to your server via SSH with X11 forwarding (by adding the <tt>-Y</tt> parameter to <tt>ssh</tt> when you connect).  Then, run Synaptic on the server as root (just type &#8220;<tt>sudo synaptic</tt>&#8221; at the terminal) and the Synaptic window should appear on your desktop.  Then, select &#8220;Settings -&gt; Repositories&#8221; from the menu, click on the &#8220;Updates&#8221; tab, and configure automatic updates as you see fit.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aaron-kelley.net/blog/2010/09/automatic-security-updates-not-happening-in-ubuntu-server-10-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL, Tomcat 6, and Ubuntu 9.10: Blah</title>
		<link>http://aaron-kelley.net/blog/2010/01/mysql-tomcat-6-and-ubuntu-9-10-blah/</link>
		<comments>http://aaron-kelley.net/blog/2010/01/mysql-tomcat-6-and-ubuntu-9-10-blah/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 22:23:43 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://aaron-kelley.net/?p=684</guid>
		<description><![CDATA[Trying to set up a JSP application on Ubuntu 9.10, using Tomcat 6 and MySQL 5.1 (both from the Ubuntu repositories).  I was getting a curious error when trying to get a connection to the MySQL database from the JDBC DriverManager: SQLException: Communications link failure The last packet sent successfully to the server was 0 [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to set up a JSP application on Ubuntu 9.10, using Tomcat 6 and MySQL 5.1 (both from the Ubuntu repositories).  I was getting a curious error when trying to get a connection to the MySQL database from the JDBC DriverManager:</p>
<blockquote><p>SQLException: Communications link failure<br />
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.<br />
SQLState: 08S01<br />
VendorError: 0</p></blockquote>
<p>After searching for a while and going through some solutions that didn&#8217;t work for me, I found the answer <a href="http://demoniosypinguinos.wordpress.com/2009/12/01/configurar-tomcat-para-mysql-en-ubuntu-9-10/" target="_blank">here</a>.  I&#8217;m re-posting it because that answer is posted in Spanish.  <img src='http://aaron-kelley.net/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p>All you have to do is open <tt>/etc/init.d/tomcat6</tt> in your favorite text editor (as root), find the line that looks like <tt>TOMCAT6_SECURITY=yes</tt>, and change it to <tt>TOMCAT6_SECURITY=no</tt>.  Then, restart the Tomcat server (<tt>sudo service tomcat6 restart</tt>).  Ta da!!  MySQL connections are now working.</p>
<p>Now, there&#8217;s probably a better way to do this that doesn&#8217;t involve completely turning off &#8220;<tt>TOMCAT6_SECURITY</tt>,&#8221; but this seems fine for a small test project which is what I&#8217;m working on (it will eventually be deployed on the JBoss server).  I&#8217;ll be sure to update this post if I find it&#8230; or if you know anything, leave a note in the comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://aaron-kelley.net/blog/2010/01/mysql-tomcat-6-and-ubuntu-9-10-blah/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Moving an Ubuntu Server install to another machine &#8211; where&#8217;d my network connection go?</title>
		<link>http://aaron-kelley.net/blog/2009/08/moving-an-ubuntu-server-install-to-another-machine-whered-my-network-connection-go/</link>
		<comments>http://aaron-kelley.net/blog/2009/08/moving-an-ubuntu-server-install-to-another-machine-whered-my-network-connection-go/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 19:16:48 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu Server]]></category>

		<guid isPermaLink="false">http://aaron-kelley.net/?p=536</guid>
		<description><![CDATA[Alright, this is actually a pretty simple problem, but only once you know which configuration files to look at. I recently replaced the machine that powers this very web site with a better one.  This was my first migration since switching to Ubuntu Server last winter.  I essentially took the hard drive out of the [...]]]></description>
			<content:encoded><![CDATA[<p>Alright, this is actually a pretty simple problem, but only once you know which configuration files to look at.</p>
<p>I recently replaced the machine that powers this very web site with a better one.  This was my first migration since switching to Ubuntu Server last winter.  I essentially took the hard drive out of the old machine and plopped it in the new one, booted it up, and hoped for the best.  Since Linux is not as picky as Windows about being moved to a new set of hardware, I figured it would work out fine.</p>
<p>Sure enough, Ubuntu booted right up on the new machine without so much as a complaint.  However, network connectivity was gone.  The old machine was using a PCI Ethernet card, while the new machine had an on-board controller that I hoped to use.  Anyway, I took the PCI card from the old machine and put it in the new machine, and then the network connectivity was back.</p>
<p>Why wouldn&#8217;t Ubuntu just start using the on-board controller, though?</p>
<p><span id="more-536"></span>Well, it turns out Ubuntu Server, in its default configuration, remembers which MAC address goes with which Ethernet device.  (This as opposed to the default configuration on the desktop version, where NetworkManager handles this dynamically.)  This information is stored in <tt>/etc/udev/rules.d/70-persistent-net.rules</tt>, and looks something like this:</p>
<blockquote><p><tt># This file was automatically generated by the /lib/udev/write_net_rules<br />
# program run by the persistent-net-generator.rules rules file.<br />
#<br />
# You can modify it, as long as you keep each rule on a single line.</tt></p>
<p><tt># PCI device 0x8086:0x1229 (e100)<br />
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"</tt></p>
<p><tt># PCI device 0x14e4:0x4401 (b44)<br />
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"</tt></p></blockquote>
<p>Here, my old Ethernet card (<tt>e100</tt>) and my new card (<tt>b44</tt>) are listed as <tt>eth0</tt> and <tt>eth1</tt>.  In <tt>/etc/network/interfaces</tt>, I only had a configuration for <tt>eth0</tt>.  Thus, no network connectivity when that card was not present.</p>
<p>The solution is simply to modify <tt>/etc/udev/rules.d/70-persistent-net.rules</tt> so that the card you want is <tt>eth0</tt>, or to add an appropriate configuration for <tt>eth1</tt> in <tt>/etc/network/interfaces</tt>.  Of course, the entry in the rules file for the adapter that is no longer present should be commented out or erased.  Anyway, after making these changes and bouncing the Ethernet kernel modules (or just rebooting the machine), things should work how you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://aaron-kelley.net/blog/2009/08/moving-an-ubuntu-server-install-to-another-machine-whered-my-network-connection-go/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FreeNX on Ubuntu 9.04 (jaunty) &#8211; What happened to my GNOME theme?</title>
		<link>http://aaron-kelley.net/blog/2009/08/freenx-on-ubuntu-9-04-jaunty-what-happened-to-my-gnome-theme/</link>
		<comments>http://aaron-kelley.net/blog/2009/08/freenx-on-ubuntu-9-04-jaunty-what-happened-to-my-gnome-theme/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 03:48:29 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://aaron-kelley.net/?p=433</guid>
		<description><![CDATA[I have a home server that sits in my closet running Ubuntu 9.04. I regularly access it using NX. About a week ago, I arrived back from an extended trip, and noticed that a security update to the kernel had been installed and it was waiting for me to approve a reboot. After I rebooted, [...]]]></description>
			<content:encoded><![CDATA[<p>I have a home server that sits in my closet running Ubuntu 9.04.  I regularly access it using <a href="http://en.wikipedia.org/wiki/NX_technology" target="_blank">NX</a>.  About a week ago, I arrived back from an extended trip, and noticed that a security update to the kernel had been installed and it was waiting for me to approve a reboot.  After I rebooted, I logged back in, and&#8230; my GNOME theme was all messed up.</p>
<p><span id="more-433"></span></p>
<p style="text-align: center;"><img class="alignnone size-large wp-image-434" title="Broken GNOME theme in Ubuntu 9.04" src="http://aaron-kelley.net/wp-content/uploads/2009/08/broken-theme-800x640.png" alt="Broken GNOME theme in Ubuntu 9.04" width="800" height="640" /></p>
<p>I don&#8217;t think that this was caused by the kernel update (I even booted up the old kernel to make sure), but some other update that came along recently is probably to blame, and the problem didn&#8217;t show itself until I had to log out and log back in.</p>
<p>I don&#8217;t use a fancy theme, just the regular default Ubuntu theme.  In this situation, the window borders were still themed properly (although now an ugly blue color, which you can&#8217;t see in this screen shot), but the icon set was the default GNOME set no matter which set I chose in the appearence preferences, and most of the controls weren&#8217;t themed either (see the bottom-left and top-right of the screen shot).</p>
<p>I thought that maybe something had gone bad in my profile, but I created a new account and it also had the problem, so something had apparently broken system-wide.  This is what makes me suspect that a recent software update is to blame, because I haven&#8217;t been poking around in any system-wide stuff on this machine in a while.</p>
<p>I didn&#8217;t realize that using the FreeNX server was part of the problem at first, but I finally found some <a href="http://ubuntuforums.org/showthread.php?t=1231195" target="_blank">other</a> <a href="http://ubuntuforums.org/showthread.php?t=1229504" target="_blank">people</a> who have the same issue this evening, and one of them mentioned <a href="https://bugs.launchpad.net/freenx-server/+bug/399758" target="_blank">this bug report</a>, which mentions <a href="https://bugs.edge.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/199245" target="_blank">another bug report</a>, which has the solution to the problem.  (It doesn&#8217;t just affect FreeNX either, some people have the same problem with VNC.)  It turns out that <tt>gnome-settings-daemon</tt> is crashing, and without it running, the theme is messed up (among other things).  To get it running again, you have to disable its keyboard plug-in.  (I&#8217;m not yet sure what you lose by disabling this plug-in, but the keyboard still works even without <tt>gnome-settings-daemon</tt> running, so what&#8217;s there to lose&#8230;).</p>
<p>Here&#8217;s the solution.</p>
<ul>
<li>Run <tt>gconf-editor</tt></li>
<li>Navigate to <tt>/apps/gnome_settings_daemon/plugins/keyboard</tt></li>
<li>Uncheck the &#8220;<tt>active</tt>&#8221; box on the right</li>
<li>Log out and log back in (or manually start <tt>gnome-settings-daemon</tt>)</li>
</ul>
<p>There you have it.  This will tie us over until the issue is actually fixed in <tt>gnome-settings-daemon</tt>.  Maybe, if you are experiencing this issue, you didn&#8217;t have to search around for as long as I did to find the solution.</p>
<p><strong>Update: August 5, 2009</strong></p>
<p>There is a <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/409621" target="_blank">new bug report</a> on this issue.</p>
<p>Also, a user reported that the fix above did not work.  I suggest also disabling the mouse plug-in for <tt>gnome-settings-daemon</tt> (by following the steps above, but going to <tt>/apps/gnome_settings_daemon/plugins/mouse</tt> instead), since some of the comments in the first <tt>gnome-settings-daemon</tt> bug report indicated that this was necessary for them to fix the problem.  If that doesn&#8217;t help, then something else is causing <tt>gnome-settings-daemon</tt> to crash&#8230; or if it is not crashing, you must have a completely different issue.</p>
<p><strong>Update: September 23, 2009</strong></p>
<p>Reportedly, you can fix this problem by reverting <tt>libxklavier</tt> to version <tt>3.9-0ubuntu1</tt>.</p>
]]></content:encoded>
			<wfw:commentRss>http://aaron-kelley.net/blog/2009/08/freenx-on-ubuntu-9-04-jaunty-what-happened-to-my-gnome-theme/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
