<?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 Server</title>
	<atom:link href="http://aaron-kelley.net/blog/tag/ubuntu-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaron-kelley.net</link>
	<description>My little corner of the Internet</description>
	<lastBuildDate>Fri, 18 May 2012 19:32:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Have Ubuntu Server hand out &#8220;static&#8221; or &#8220;fixed&#8221; addresses via DHCP</title>
		<link>http://aaron-kelley.net/blog/2011/01/have-ubuntu-server-hand-out-static-or-fixed-addresses-via-dhcp/</link>
		<comments>http://aaron-kelley.net/blog/2011/01/have-ubuntu-server-hand-out-static-or-fixed-addresses-via-dhcp/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 21:28:34 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[Ubuntu Server]]></category>

		<guid isPermaLink="false">http://aaron-kelley.net/?p=936</guid>
		<description><![CDATA[Nowadays, most local area networks have a DHCP server running on them. This is, of course, how hosts on the network are assigned their IP address and other stuff they need to know (router address, DNS servers, etc.). The DHCP server has a pool of addresses that it is allowed to hand out to clients, [...]]]></description>
			<content:encoded><![CDATA[<p>Nowadays, most local area networks have a DHCP server running on them.  This is, of course, how hosts on the network are assigned their IP address and other stuff they need to know (router address, DNS servers, etc.).</p>
<p>The DHCP server has a pool of addresses that it is allowed to hand out to clients, and it will often hand out these addresses sequentially.  In some cases, the address chosen for a particular client may be based on some sort of hash function on the client&#8217;s MAC address (so that the client will always be assigned the same address, unless there is a hash collision).</p>
<p>Of course, sometimes it&#8217;s nice to assign a particular device on your network a specific IP address (a &#8220;static&#8221; or &#8220;fixed&#8221; IP address).  This way, you will always know without any doubt what the IP address or your printer or file server or whatever is.  Of course, you can just set the address manually on the device, taking care to place it outside of the DHCP pool.</p>
<p><span id="more-936"></span>Another way to go about it is to reserve a specific IP address for your device on your DHCP server using the device&#8217;s physical (or &#8220;MAC&#8221;) address.  This is handy if you have many devices that you would like to assign fixed addresses to – if, for whatever reason, you ever want to change the IP address of something on your network, you just make the change on the DHCP server and you do not have to bother touching the device itself.  The change will take place the next time the device renews its DHCP lease.</p>
<p>Using the DHCP server included with Ubuntu Server, if you would like to assign a fixed address to a particular device, just add some lines like this to <tt>/etc/dhcp3/dhcpd.conf</tt>:</p>
<blockquote><p><tt>host aaron-vmware {<br />
&nbsp;&nbsp;&nbsp;&nbsp;hardware ethernet 00:0c:29:f8:47:3e;<br />
&nbsp;&nbsp;&nbsp;&nbsp;fixed-address 192.168.100.81;<br />
}</tt></p></blockquote>
<p>Restart the DHCP server configuration using <tt>sudo service dhcp3-server restart</tt> and you&#8217;re all set.</p>
]]></content:encoded>
			<wfw:commentRss>http://aaron-kelley.net/blog/2011/01/have-ubuntu-server-hand-out-static-or-fixed-addresses-via-dhcp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Plesk 10 on Ubuntu 10.04 – Can&#8217;t restart DNS service error</title>
		<link>http://aaron-kelley.net/blog/2010/11/plesk-10-on-ubuntu-10-04-cant-restart-dns-service-error/</link>
		<comments>http://aaron-kelley.net/blog/2010/11/plesk-10-on-ubuntu-10-04-cant-restart-dns-service-error/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 23:34:56 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Parallels Plesk]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu Server]]></category>

		<guid isPermaLink="false">http://aaron-kelley.net/?p=900</guid>
		<description><![CDATA[Today, I installed the new Parallels Plesk 10.0.1 on Ubuntu Server 10.04. This is the first release of Plesk that supports any version of Ubuntu newer than 8.04. Anyway, after the install, I went to log in and filled out the initial setup information, and was then given this error: Unable to restart Named: dnsmng [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I installed the new <a href="http://www.parallels.com/plesk/" target="_blank">Parallels Plesk 10.0.1</a> on Ubuntu Server 10.04.  This is the first release of Plesk that supports any version of Ubuntu newer than 8.04.  Anyway, after the install, I went to log in and filled out the initial setup information, and was then given this error:</p>
<blockquote><p>Unable to restart Named: dnsmng failed: dnsmng failed: dnsmng: Service /etc/init.d/bind9 failed to restart</p></blockquote>
<p>(What a great error message.)</p>
<p>Whoops.  Turns out there&#8217;s a problem with the default Plesk configuration of the DNS server BIND (run it in a chrooted environment) and Ubuntu&#8217;s configuration (run it with AppArmor, explicitly configuring which files it is allowed to open).  You have to give BIND permission to open the files in its chroot environment.  The solution to this problem is to edit the file <tt>/etc/apparmor.d/usr.sbin.named</tt> and add these lines before the closing brace at the end of the file:</p>
<blockquote><p><tt>/var/named/run-root/etc/* rw,<br />
/var/named/run-root/var/* rw,<br />
/var/named/run-root/dev/* rw,</tt></p></blockquote>
<p>Then, reboot the machine and you should be good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://aaron-kelley.net/blog/2010/11/plesk-10-on-ubuntu-10-04-cant-restart-dns-service-error/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<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><span id="more-856"></span><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>
<p><strong>Update: November 12, 2010</strong></p>
<p>There is a bug in Ubuntu 10.10 that seems to only affect 32-bit installations but prevents automatic security update installation.  See <a href="https://bugs.launchpad.net/ubuntu/+bug/664514" target="_blank">here</a> for details.  A fix is already available upstream in Debian; hopefully it will be pushed on to Ubuntu users soon.</p>
]]></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>2</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>
	</channel>
</rss>

