<?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>Infernus &#187; Linux</title>
	<atom:link href="http://infernus.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://infernus.org</link>
	<description>Don&#039;t feel you have to take any notice of me, please.</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:35:35 +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>Linux love for TeamCity</title>
		<link>http://infernus.org/2009/02/linux-love-for-teamcity/</link>
		<comments>http://infernus.org/2009/02/linux-love-for-teamcity/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 15:41:22 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://infernus.org/2009/02/linux-love-for-teamcity/</guid>
		<description><![CDATA[For far too long we&#8217;ve been running our TeamCity build agents on Windows 2003 Server. This was, originally, driven by necessity. We were using Selenium, and out client cared only for a single browser: Internet Explorer. As time progressed we decided Selenium was costing us more than we received from it, so we dropped it. [...]]]></description>
			<content:encoded><![CDATA[<p>For far too long we&#8217;ve been running our <a href="http://www.jetbrains.com/teamcity/index.html">TeamCity</a> build agents on Windows 2003 Server. This was, originally, driven by necessity. We were using Selenium, and out client cared only for a single browser: Internet Explorer. As time progressed we decided Selenium was costing us more than we received from it, so we dropped it. And so we ended up using Windows to build for historical reasons only. And, of course, inertia.</p>
<p>So, over the last day or two, I&#8217;ve been building up replacements. Our build box is actually a PowerEdge 1950, split into two machines with the aid of <a href="http://www.vmware.com/products/esxi/">VMWare ESXi</a>. So I hacked together a build agent on VMWare Fusion to use as a template, copied it onto ESX, and set it spinning.</p>
<p>This was the point I got a kick in the arse. We were using Ubuntu 8.10 64bit &#8211; and ESX didn&#8217;t like it one bit. So I dragged a LCD and keyboard up to the server room and had a nose in the BIOS &#8211; sure enough, Dell had left VT off. Bloody Dell. I took advantage of the visit to <a href="http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/">hack SSH on in ESXi</a> and headed downstairs.</p>
<p>No luck. Same error.</p>
<p>An hour later I stumbled on the solution. The VM had paravirtualisation turned on. Paravirtualisation, apparently, only supports 32bit hosts. Off went paravirtualisation and on went the build server. Win!</p>
<p>So, victory, one less Windows server, and once more a severe wish that VMWare would produce Infratructure Client for either Linux or Mac OS X.</p>
<p>That wasn&#8217;t all I learnt of value, however. JetBrains are good enough to <a href="http://www.jetbrains.net/confluence/display/TCD4/Setting+up+and+Running+Additional+Build+Agents">tell you how to start TeamCity automatically</a> on Windows (via a server) and the Mac (via launchd) and complete omit Linux. So I went and found out about <a href="http://upstart.ubuntu.com/">Upstart</a>.</p>
<p>End solution: create the scripts below in /etc/event.d. They&#8217;ll run on startup/shutdown, and can also be started manually using:</p>
<pre>sudo start [start|stop]-teamcity-buildagent</pre>
<h2>/etc/event.d/start-teamcity-buildagent</h2>
<pre>
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

console output

script
	exec su -l buildagent -c '/opt/build-agent/bin/agent.sh start'
end script
</pre>
<h2>/etc/event.d/stop-teamcity-buildagent</h2>
<pre>
start on shutdown

console output
script
	exec su -l buildagent -c '/opt/build-agent/bin/agent.sh stop'
end script
</pre>
]]></content:encoded>
			<wfw:commentRss>http://infernus.org/2009/02/linux-love-for-teamcity/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu LTS scorns your initrds!</title>
		<link>http://infernus.org/2009/01/ubuntu-lts-scorns-your-initrds/</link>
		<comments>http://infernus.org/2009/01/ubuntu-lts-scorns-your-initrds/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 20:10:00 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://infernus.org/wordpress/?p=7</guid>
		<description><![CDATA[We have a number of developer boxes running Ubuntu 8.04LTS at work. For various reasons, we still have a few of the older boxes running Fedora 8, and we&#8217;re gradually moving them into the Ubuntu world. Today we moved two more developers across. One was fine &#8211; everything worked, all was good, little elves danced [...]]]></description>
			<content:encoded><![CDATA[<p>We have a number of developer boxes running Ubuntu 8.04LTS at work. For various reasons, we still have a few of the older boxes running Fedora 8, and we&#8217;re gradually moving them into the Ubuntu world.</p>
<p>Today we moved two more developers across. One was fine &#8211; everything worked, all was good, little elves danced their happy dances and so on. Unfortunately, the other one rebooted and kernel panicked.</p>
<p>Bugger.</p>
<p>The problem &#8211; one of the Ubuntu kernel updates didn&#8217;t bother to add an initrd line to /boot/grub/menu.lst.</p>
<pre>title           Ubuntu 8.04, kernel 2.6.24-23-generic
root            (hd0,0)
kernel          /vmlinuz-2.6.24-23-generic root=UUID=....</pre>
<p>The solution: bring it back!</p>
<pre>title           Ubuntu 8.04, kernel 2.6.24-23-generic
root            (hd0,0)
kernel          /vmlinuz-2.6.24-23-generic root=UUID=....
initrd          /initrd.img-2.6.24-23-generic</pre>
<p>Google provided the answer fairly quickly here, so it seems a reasonably common problem. I must concede I&#8217;m a little vexed that a LTS release shows such issues &#8211; but still, at least it&#8217;s not Vista.</p>
]]></content:encoded>
			<wfw:commentRss>http://infernus.org/2009/01/ubuntu-lts-scorns-your-initrds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
