<?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>UnderworldLabs.org &#187; linux</title>
	<atom:link href="http://underworldlabs.org/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://underworldlabs.org</link>
	<description>My Dropbox</description>
	<lastBuildDate>Tue, 20 Mar 2012 23:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>UnixBench</title>
		<link>http://underworldlabs.org/blog/unixbench/</link>
		<comments>http://underworldlabs.org/blog/unixbench/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 12:01:48 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=208</guid>
		<description><![CDATA[A friend of mine wanted to see if his machine could beat the pants off my machine. I figured a pee-ing competition is always fun...]]></description>
			<content:encoded><![CDATA[<p>A friend of mine wanted to see if his machine could beat the pants off my machine. I figured a pee-ing competition is always fun so at his request I downloaded <a href="http://code.google.com/p/byte-unixbench/">UnixBench</a>.</p>
<p>UnixBench is a super cool utility that performs a series of benchmark tests and provides some fairly comprehensive results against a baseline system. It takes a while to run &#8211; especially if you have multiple CPUs. Mine took about 30 minutes. </p>
<p>I wanted the best (or lets say most representative) score I could get so I killed everything and effectively booted into runlevel 3 &#8211; which is almost everything except X. So here are my results&#8230; </p>
<p><iframe style="height:600px;width:635px" src="http://underworldlabs.org/wp-content/files/2012/03/fitter-2012-03-20-01.html"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/unixbench/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox update woes</title>
		<link>http://underworldlabs.org/blog/virtualbox-update-woes/</link>
		<comments>http://underworldlabs.org/blog/virtualbox-update-woes/#comments</comments>
		<pubDate>Thu, 19 May 2011 14:07:57 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=129</guid>
		<description><![CDATA[Not sure what happened here but upgrading from VirtualBox 3.x to 4.06 (with Oracle branding too &#8211; eek), killed a few of my VMs. First...]]></description>
			<content:encoded><![CDATA[<p>Not sure what happened here but upgrading from VirtualBox 3.x to 4.06 (with Oracle branding too &#8211; eek), killed a few of my VMs. First USB 2.0 support is now a part of some separate package, and then 4 out of 9 VMs would not start with messages like:</p>
<pre>unknown configuration node //DB2</pre>
<p>At this point i was thinking how the hell did VirtualBox know about my DB2 installation &#8211; assuming that my DB2 database installed on that VM was an issue. A little confusing here too given that i would get the VM window and then it would just close so it wasn&#8217;t getting anywhere near starting the OS &#8211; WindowsXP.</p>
<p>Anyway a bit of digging about and then this:</p>
<pre>takisd@fitter:~> VBoxManage getextradata WindowsXP-1 enumerate
Key: GUI/LastCloseAction, Value: powerOff
Key: GUI/LastGuestSizeHint, Value: 640,480
Key: GUI/LastNormalWindowPosition, Value: 1437,47,640,527
Key: GUI/LastWindowPostion, Value: 1422,111,1224,867
Key: GUI/MiniToolBarAlignment, Value: bottom
Key: GUI/MiniToolBarAutoHide, Value: on
Key: GUI/SaveMountedAtRuntime, Value: yes
Key: GUI/ShowMiniToolBar, Value: yes
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/DB2/GuestPort, Value: 50000
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/DB2/HostPort, Value: 50000
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/DB2/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/Firebird/GuestPort, Value: 3050
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/Firebird/HostPort, Value: 3050
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/Firebird/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/Oracle/GuestPort, Value: 1521
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/Oracle/HostPort, Value: 1521
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/Oracle/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/SQLServer/GuestPort, Value: 1433
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/SQLServer/HostPort, Value: 1433
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/SQLServer/Protocol, Value: TCP
</pre>
<p>&#8230;where <code>WindowsXP-1</code> is the name of the virtual machine.</p>
<p>So all my intalled DBs on that particular VM had a setting on them for respective ports. I use most VMs for testing against various databases for various apps and mainly for <a href="http://executequery.org">Execute Query</a>. </p>
<p>I vaguely recalled setting these some time ago &#8211; probably as a network response for forwarding &#8211; either way i didn&#8217;t really remember and resetting these with empty values fixed the problem like this:</p>
<pre>VBoxManage setextradata WindowsXP-1 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/DB2/GuestPort"</pre>
<p>&#8230;and so on for the other nodes. Restarting the OS worked just fine and I now have my VMs back. Not sure if this documented anywhere by Oracle &#8211; quite the gotcha for seemingly simple upgrade.</p>
<p>&#8230;and here i was thinking WTF did Oracle do now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/virtualbox-update-woes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache 2.2.3-x with mod_jk</title>
		<link>http://underworldlabs.org/blog/apache-2-2-3-x-with-mod_jk/</link>
		<comments>http://underworldlabs.org/blog/apache-2-2-3-x-with-mod_jk/#comments</comments>
		<pubDate>Tue, 10 May 2011 00:03:37 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=145</guid>
		<description><![CDATA[Running CentOS 5 on one of my personal (playpen) servers, i recently performed a simple yum update which brought in the package httpd-2.2.3-45.el5.centos.1.i386 and its...]]></description>
			<content:encoded><![CDATA[<p>Running CentOS 5 on one of my personal (playpen) servers, i recently performed a simple yum update which brought in the package <code>httpd-2.2.3-45.el5.centos.1.i386</code> and its dependents in addition to some others including some python and selinux updates. So no biggie so far &#8211; but restarting apache brought me a world of pain as I spent the next 24 hours trying to diagnose why any http request to <em>any</em> domain on that server would never complete and [seemingly] never timeout.</p>
<p>Frankly, I don&#8217;t know for sure which particular package was the culprit. There was nothing logged that pointed to any issues &#8211; indeed any and all logs I went through indicated all was well. I also could not find a single thing online that resembled what I was experiencing. I have managed my own servers for about 10 years now. I&#8217;m far from a competent Linux admin but I usually know enough to get by or just enough to get out of trouble, so I became severely frustrated when a seemingly simple upgrade could result in all my sites being made unavailable.</p>
<p>I started by stripping back my Apache install to next to nothing &#8211; which brought back a single <em>static</em> site i set up as a test. Then line-by-line I reintroduced various modules, includes and various directive lines. At the very bottom I had my mod_jk include &#8211; which by the way serves over half of my sites. </p>
<p>As soon as I reintroduced mod_jk it dumped. After much fiddling, rebuilding mod_jk, installing from rpm, downgrading packages, tinkering with various mod_jk parameters, using <code>strace</code> on startup (great article on debugging with <code>strace</code> <a href="http://linuxgazette.net/132/vishnu.html">here</a>) I finally put it down to the inclusion of the following:</p>
<pre>
&lt;Location /*/META-INF/*&gt;
    Deny From All
&lt;/Location&gt;
&lt;Location /*/WEB-INF/*&gt;
    Deny From All
&lt;/Location&gt;
</pre>
<p>The above tells Apache as a global directive to disallow any access to the protected Java web application directories <code>WEB-INF</code> and <code>META-INF</code>. </p>
<p>The lines above have been a part of my apache/mod_jk config for as long as I remember. I haven&#8217;t yet had a good look as to why the above is no longer acceptable &#8211; I&#8217;m just relieved to have everything back up. I would have expected Apache to complain about configuration errors, issue the relevant message and fail to start just like it does for most other issues. Not so in this case and furthermore it silently takes down the whole server instance.</p>
<p>I didn&#8217;t find any references to this anywhere &#8211; perhaps this will help someone equally confused as I was <img src='http://underworldlabs.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/apache-2-2-3-x-with-mod_jk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webalizer Segmentation Faults</title>
		<link>http://underworldlabs.org/blog/webalizer-segmentation-faults/</link>
		<comments>http://underworldlabs.org/blog/webalizer-segmentation-faults/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 11:39:23 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[webalizer]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=54</guid>
		<description><![CDATA[I had recently been getting some rather odd segmentation faults when running webalizer against some (not all) of my domains. Problem was that it wouldn&#8217;t...]]></description>
			<content:encoded><![CDATA[<p>I had recently been getting some rather odd segmentation faults when running <a href="http://www.webalizer.org/" target="_blank">webalizer</a> against some (not all) of my domains. Problem was that it wouldn&#8217;t always happen so i didn&#8217;t pay a great deal of attention to it. I later figured the up &#8211; then down &#8211; then up was related to my log rotation (yeah &#8211; duh!), so something in the logs was causing the process to fail.</p>
<p>After some serious digging (it drove me a little nuts) and a plethora of less than helpful tips and references I stumbled across this:  <a href="https://calomel.org/webalizer.html" target="_blank">Webalizer &#8211; Web Server Statistics &#8220;how to&#8221;</a>.</p>
<p>Apparently it has something to do with the way browsers accessing the site report their name and that some have multiple parens (&#8216;(&#8216; and &#8216;)&#8217;) in it. This had the affect of confusing the mangle agent that reports agent names accessing the site. The fix was specifying a MangleAgents value other than 1 (zero or 2 worked fine). I set it to 2 and all is well &#8211; I now have all my stats working again.</p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/webalizer-segmentation-faults/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bye-bye VMWare &#8211; hello VirtualBox</title>
		<link>http://underworldlabs.org/blog/bye-bye-vmware-hello-virtualbox/</link>
		<comments>http://underworldlabs.org/blog/bye-bye-vmware-hello-virtualbox/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 23:38:44 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=21</guid>
		<description><![CDATA[Well after some serious stuffing about i finally gave up on vmware. My latest kernel upgrade to 2.6.26.x just wouldn&#8217;t play nice regardless of what...]]></description>
			<content:encoded><![CDATA[<p>Well after some serious stuffing about i finally gave up on vmware. My latest kernel upgrade to 2.6.26.x just wouldn&#8217;t play nice regardless of what i did. Advice was sought from <a href="http://communities.vmware.com/message/1036922" target="_blank">relevant places</a> to no avail &#8211; even though the number of people with a similar issue was (is) growing. A colleague with an identical issue upgraded to the vmware 2 release candidate and the issue was not noticed there.  There was no inclination to go down that road &#8211; its a 450MB+ download, runs in a browser window, and looks like a rather bloated setup compared to the 1.x releases  No problem though as i&#8217;ve discovered <a href="http://www.virtualbox.org/" target="_blank">VirtualBox</a>.</p>
<p>After a little bit of stuffing around to get the bridge networking up and running (vmware did this for you on startup quite nicely), i&#8217;m all good now with a couple of guest operating systems installed and running with no issue. Some useful docs and info for setting up with <a href="http://debian.org" target="_blank">Debian</a> can be found on the Debian Virtual Box wiki <a href="http://wiki.debian.org/VirtualBox" target="_blank">here</a>. A huge plus is also that it comes with a neat script to build the vbox module for the running kernel.</p>
<p>Overall, so far VirtualBox is more than a suitable replacement for vmware. Give it a shot if you haven&#8217;t already.</p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/bye-bye-vmware-hello-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare server 1.06 and kernel v2.6.26</title>
		<link>http://underworldlabs.org/blog/vmware-server-106-and-kernel-v2626/</link>
		<comments>http://underworldlabs.org/blog/vmware-server-106-and-kernel-v2626/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 15:23:24 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=20</guid>
		<description><![CDATA[Perhaps a recurring theme&#8230; In any case take a look here: http://groups.google.com/group/vmkernelnewbies/web/how-to-install-vmware-in-2-6-26-linux-kernel Theres a new vmware-any-any patch that fixes the build error under kernel 2.6.26.]]></description>
			<content:encoded><![CDATA[<p>Perhaps a recurring theme&#8230;</p>
<p>In any case take a look here: <a href="http://groups.google.com/group/vmkernelnewbies/web/how-to-install-vmware-in-2-6-26-linux-kernel" target="_blank">http://groups.google.com/group/vmkernelnewbies/web/how-to-install-vmware-in-2-6-26-linux-kernel</a></p>
<p>Theres a new vmware-any-any patch that fixes the build error under kernel 2.6.26.</p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/vmware-server-106-and-kernel-v2626/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian &#8211; Tell the system the hardware clock is UTC</title>
		<link>http://underworldlabs.org/blog/debian-tell-the-system-the-hardware-clock-is-utc/</link>
		<comments>http://underworldlabs.org/blog/debian-tell-the-system-the-hardware-clock-is-utc/#comments</comments>
		<pubDate>Sat, 03 May 2008 22:25:01 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=18</guid>
		<description><![CDATA[I always forget how to do this and subsequent updates bugger things up. We are trying to tell the system that the hardware clock is...]]></description>
			<content:encoded><![CDATA[<p>I always forget how to do this and subsequent updates bugger things up.</p>
<p>We are trying to tell the system that the hardware clock is set to UTC.</p>
<p>Edit the following: /etc/default/rcS. Modify UTC to read UTC=yes (or no depending on what you are trying to achieve).</p>
<p>Some additional good resources for time:  <a href="http://www.debian-administration.org/articles/213" target="_blank">Debian Administration</a> and the Debian <a href="http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html" target="_blank">online docs.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/debian-tell-the-system-the-hardware-clock-is-utc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kernel 2.6.25 and nvidia</title>
		<link>http://underworldlabs.org/blog/kernel-2625-and-nvidia/</link>
		<comments>http://underworldlabs.org/blog/kernel-2625-and-nvidia/#comments</comments>
		<pubDate>Sat, 03 May 2008 21:59:21 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nvidia]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=17</guid>
		<description><![CDATA[More 2.6.25 issues&#8230; Attempt to build nvidia module for kernel 2.6.25.1 failed. The nvidia installer needs to be patched as described here. After this. just...]]></description>
			<content:encoded><![CDATA[<p>More 2.6.25 issues&#8230;</p>
<p>Attempt to build nvidia module for kernel 2.6.25.1 failed. The nvidia installer needs to be patched as described <a href="http://www.nvnews.net/vbulletin/showthread.php?t=110088" target="_blank">here</a>. After this. just build and install as normal and all is well.</p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/kernel-2625-and-nvidia/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMWare server 1.05 and kernel v2.6.25</title>
		<link>http://underworldlabs.org/blog/vmware-server-105-and-kernel-v2625/</link>
		<comments>http://underworldlabs.org/blog/vmware-server-105-and-kernel-v2625/#comments</comments>
		<pubDate>Sat, 03 May 2008 21:53:54 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=16</guid>
		<description><![CDATA[I recently upgraded my kernel from 2.6.24.4 to 2.6.25.1. In trying to rebuild vmware server against the new kernel, i came up with a few...]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded my kernel from 2.6.24.4 to 2.6.25.1.  In trying to rebuild vmware server against the new kernel, i came up with a few issues.</p>
<p>A bit of digging uncovered this: <a href="http://lenrek.wordpress.com/2008/04/24/vmware-105-and-kernel-2625/" target="_blank">http://lenrek.wordpress.com/2008/04/24/vmware-105-and-kernel-2625/.</a> It got me up and running quite nicely.</p>
<p>Small point to note &#8211; i used to apply the vmware-any-any-update-116 patch and then run /usr/bin/vmware-config.pl. Patches for the 2.6.25 kernel do not apply to a patched vmware-server install. i ran without the any-any patch and all worked fine nonetheless.</p>
<p>Finally, as i normally do i executed the following to ensure correct operation of the console:<br/><br />
<code>cd /usr/lib/vmware/lib/libpng12.so.0<br />
mv libpng12.so.0 libpng12.so.0.old<br />
ln -sf /usr/lib/libpng12.so.0 libpng12.so.0<br />
cd /usr/lib/vmware/lib/libgcc_s.so.1<br />
mv libgcc_s.so.1 libgcc_s.so.1.old<br />
ln -sf /lib/libgcc_s.so.1</code></p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/vmware-server-105-and-kernel-v2625/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tango Generator 3</title>
		<link>http://underworldlabs.org/blog/tango-generator-3/</link>
		<comments>http://underworldlabs.org/blog/tango-generator-3/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 22:03:26 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tango]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=15</guid>
		<description><![CDATA[Used this a while ago and recently revisited for an update. It downloads icons from all over to come up with a custom unified look...]]></description>
			<content:encoded><![CDATA[<p>Used this a while ago and recently revisited for an update. It downloads icons from all over to come up with a custom unified look based around the <a href="http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines" target="_blank">Tango Icon Theme Guidelines</a>.</p>
<p>Check it out <a href="http://mejogid.ohallwebservices.com/site/index.php?q=node/1" target="_blank">here</a>&#8230; well worth a look especially if you run <a href="http://gnome.org" target="_blank">Gnome</a> or <a href="http://xfce.org" target="_blank">XFCE</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/tango-generator-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

