<?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>Spind.net Blog</title>
	<atom:link href="http://blog.spind.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.spind.net</link>
	<description>Stories from the trenches of System Administration</description>
	<lastBuildDate>Thu, 10 Jun 2010 10:51:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting DHCP hostname with Network Manager</title>
		<link>http://blog.spind.net/2010/06/10/setting-dhcp-hostname-with-network-manager/</link>
		<comments>http://blog.spind.net/2010/06/10/setting-dhcp-hostname-with-network-manager/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 10:51:21 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[Hostname]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NetworkManager]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=179</guid>
		<description><![CDATA[If you&#8217;re running Linux on your desktop, you&#8217;re probably using Network Manager to handle your network connections. The configuration interface doesn&#8217;t let you specify a DHCP hostname, which strikes me as odd. Luckily there&#8217;s a solution; add the following to /etc/dhclient-eth0.conf:

send host-name &#8220;myneathostname&#8221;;

]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running Linux on your desktop, you&#8217;re probably using Network Manager to handle your network connections. The configuration interface doesn&#8217;t let you specify a DHCP hostname, which strikes me as odd. Luckily there&#8217;s a solution; add the following to <tt>/etc/dhclient-eth0.conf</tt>:</p>
<div class="codebox">
send host-name &#8220;myneathostname&#8221;;
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2010/06/10/setting-dhcp-hostname-with-network-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Fedora 13 on a MacBook Pro</title>
		<link>http://blog.spind.net/2010/05/27/installing-fedora-13-on-a-macbook-pro/</link>
		<comments>http://blog.spind.net/2010/05/27/installing-fedora-13-on-a-macbook-pro/#comments</comments>
		<pubDate>Thu, 27 May 2010 20:52:50 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora13]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[MacBookPro]]></category>
		<category><![CDATA[x86_64]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=177</guid>
		<description><![CDATA[Fedora releases are sometimes a bit flaky, and Fedora 13 isn&#8217;t an exception &#8211; at least not when I was trying to install it on my MacBook Pro 5,5. It simply froze while booting the installation operating system &#8211; last display error was &#8220;Waiting for hardware to initialize&#8221;. Hours later, it turns out the magic [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora releases are sometimes a bit flaky, and Fedora 13 isn&#8217;t an exception &#8211; at least not when I was trying to install it on my MacBook Pro 5,5. It simply froze while booting the installation operating system &#8211; last display error was <em>&#8220;Waiting for hardware to initialize&#8221;</em>. Hours later, it turns out the magic trick is to add the <em>nomodeset</em> kernel option when booting the installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2010/05/27/installing-fedora-13-on-a-macbook-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5 Remote Reinstall over VNC</title>
		<link>http://blog.spind.net/2010/01/14/centos-5-remote-reinstall-over-vnc/</link>
		<comments>http://blog.spind.net/2010/01/14/centos-5-remote-reinstall-over-vnc/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 21:26:57 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reinstall]]></category>
		<category><![CDATA[Remote]]></category>
		<category><![CDATA[VNC]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=169</guid>
		<description><![CDATA[So you want to live your life on the edge, and do a remote reinstall of your server? The reasons can be many &#8211; maybe the server was compromised, or &#8211; like me &#8211; you just received a freshly installed new system with a horrible disk partitioning or maybe even the wrong choice of architecture. [...]]]></description>
			<content:encoded><![CDATA[<p>So you want to live your life on the edge, and do a remote reinstall of your server? The reasons can be many &#8211; maybe the server was compromised, or &#8211; like me &#8211; you just received a freshly installed new system with a horrible disk partitioning or maybe even the wrong choice of architecture. I&#8217;ll show you how! <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I just received my dedicated server at bulk price, but unfortunately also with a bulk installation of CentOS. It&#8217;s fitted with two 250G disks, yet there is no mirroring or anything installed. On top of this, this delicious 64-bit system was running a 32-bit operating system. I was not amused. Asking for a special reinstall would probably cost me a fortune in support, and even then I probably wouldn&#8217;t get it exactly like I wanted it.</p>
<p>Luckily most new Linux distributions feature remote installation via VNC. If the system is already running Linux &#8211; like this one &#8211; its both easy and safe to play around with this method. In this example, we&#8217;ll be installing CentOS 5.4 x86_64.</p>
<p>Step 1: Get a hold of the bootstrap files. This includes the Linux kernel image and the ramdisk image. Put these on your /boot partition:</p>
<div class="codebox">
$ cd /boot<br />
$ mkdir centos5-x86_64<br />
$ cd centos5-x86_64<br />
$ wget http://mirror.leaseweb.com/centos/5.4/os/x86_64/isolinux/vmlinuz<br />
$ wget http://mirror.leaseweb.com/centos/5.4/os/x86_64/isolinux/initrd.img
</div>
<p>Step 2: Add an entry to the Grub boot loader. Adjust values for network (ip, netmask, dns, gateway) and pick a better VNC password than me. Copy the &#8220;root (&#8230;)&#8221; line from a working entry:</p>
<div class="codebox">
title CentOS 5 VNC Install<br />
        root (hd0,0)<br />
        kernel /centos5-x86_64/vmlinuz vnc vncpassword=foobar headless ip=1.2.3.4 netmask=255.255.255.0 gateway=1.2.3.1 dns=2.3.4.5 ksdevice=eth0 method=http://mirror.leaseweb.com/centos/5.4/os/x86_64/ lang=en_US keymap=us<br />
        initrd /centos5-x86_64/initrd.img
</div>
<p>Step 3: Ask the Grub boot loader to boot your new entry next time, and only next time. This makes a lot of sense if your hosting facility allows you to power cycle the server remote &#8211; and they should. Really. If you can&#8217;t do this yourself, at least you can have some support drone push the reset button if the server doesn&#8217;t come up. Note what number your new entry in the Grub configuration file has. First one is 0, second is 1 etc. I had two entries already, so that made my new entry number 2:</p>
<div class="codebox">
$ echo &#8220;savedefault &#8211;stage2=/boot/grub/stage2 &#8211;default=2 &#8211;once&#8221; | grub &#8211;batch
</div>
<p>Step 4: Reboot and be patient. Some servers take up to five minutes to come back up &#8211; probably because of a BIOS misconfiguration. Anyway, reboot it:</p>
<div class="codebox">
$ reboot
</div>
<p>Step 5: Connect to your server with your favorite VNC client. Mine&#8217;s <a href="http://sourceforge.net/projects/cotvnc/">Chicken of the VNC</a> <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  You&#8217;ll need to connect to port 5901, which in VNC-terms often is referred to as &#8220;Display 1&#8243;. Use the password you specified:</p>
<p><a href="/uploads/2010/01/vnc.png"><img src="/uploads/2010/01/vnc.png" alt="vnc" title="vnc" width="509" height="314" class="alignnone size-full wp-image-173" /></a></p>
<p>Step 6: Run the install <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  After this, your neat remote installation will be wiped, so double check all your network settings.</p>
<p><a href="/uploads/2010/01/install.png"><img src="/uploads/2010/01/install-600x466.png" alt="install" title="install" width="600" height="466" class="alignnone size-medium wp-image-174" /></a></p>
<p>Good luck! <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2010/01/14/centos-5-remote-reinstall-over-vnc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making Magento 1.3 run on PHP 5.3</title>
		<link>http://blog.spind.net/2009/09/03/making-magento-1-3-run-on-php-5-3/</link>
		<comments>http://blog.spind.net/2009/09/03/making-magento-1-3-run-on-php-5-3/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 20:44:02 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=166</guid>
		<description><![CDATA[With the release of PHP 5.3, many functions automatically trigger a function is deprecated error. With Magento, that error effectively stops execution, even if it&#8217;s actually just a small notice. I won&#8217;t beat around the bush &#8211; this is the quick and very dirty fix that turns off error reporting completely. Varien&#8217;s Object class also [...]]]></description>
			<content:encoded><![CDATA[<p>With the release of PHP 5.3, many functions automatically trigger a <em>function is deprecated</em> error. With Magento, that error effectively stops execution, even if it&#8217;s actually just a small notice. I won&#8217;t beat around the bush &#8211; this is the quick and very dirty fix that turns off error reporting completely. Varien&#8217;s Object class also needs a small fix, but then you should be ready to go.</p>
<blockquote><p>
perl -p -i -e &#8217;s/^\s*(error_reporting)\(.*\);\s*$/$1(0);/g&#8217; `find docs/ -name &#8220;*.php&#8221;`<br />
perl -p -i -e &#8217;s/__toString/__invode/g&#8217; docs/lib/Varien/Object.php
</p></blockquote>
<p>Hopefully the coming Magento 1.4 release will have fixed these issues, so a hack won&#8217;t be needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/09/03/making-magento-1-3-run-on-php-5-3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Making use of the Windows-keys</title>
		<link>http://blog.spind.net/2009/07/05/making-use-of-the-windows-keys/</link>
		<comments>http://blog.spind.net/2009/07/05/making-use-of-the-windows-keys/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 13:00:00 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Keyboard]]></category>
		<category><![CDATA[WinKeys]]></category>
		<category><![CDATA[X11]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=157</guid>
		<description><![CDATA[I&#8217;m old school. I don&#8217;t have one of those fancy multimedia keyboards, but I do have one of those new fancy Windows-keyboards. That&#8217;s right &#8211; I&#8217;ve now got three extra keys I can&#8217;t really use for anything. I tried to map Win+F11 and Win+F12 to adjust my volume in Gnome, but no dice &#8211; it [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m old school. I don&#8217;t have one of those fancy multimedia keyboards, but I <em>do</em> have one of those new fancy Windows-keyboards. That&#8217;s right &#8211; I&#8217;ve now got three extra keys I can&#8217;t really use for anything. I tried to map Win+F11 and Win+F12 to adjust my volume in Gnome, but no dice &#8211; it just displays <em>Super R</em> the moment I hit the Win-key. But there is a solution <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="/uploads/2009/07/Screenshot-Keyboard-Shortcuts1.png"><img src="/uploads/2009/07/Screenshot-Keyboard-Shortcuts1.png" alt="The Problem" title="The Problem" width="419" height="371" class="alignnone size-full wp-image-160" /></a></p>
<p>The solution is to redefine the Win-key behaviour. Open up <em>System » Keyboard » Preferences</em>, select the <em>Layout</em> tab, click <em>Latyout Options&#8230;</em>  and change <em>Alt/Win key behaviour</em> from <em>Default</em> to <em>Hyper is mapped to Win-keys</em>.</p>
<p><a href="/uploads/2009/07/Screenshot-Keyboard-Layout-Options.png"><img src="/uploads/2009/07/Screenshot-Keyboard-Layout-Options.png" alt="The Solution" title="The Solution" width="399" height="442" class="alignnone size-full wp-image-159" /></a></p>
<p>I went straight back to <em>Keyboard Shortcuts</em> and tried Win+F11 again &#8211; this time I got <em>Mod4+F11</em>, proving that the Win-key now works as a modifier instead of a normal key:</p>
<p><a href="/uploads/2009/07/Screenshot-Keyboard-Shortcuts-fixed.png"><img src="/uploads/2009/07/Screenshot-Keyboard-Shortcuts-fixed.png" alt="Solved!" title="Solved!" width="419" height="371" class="alignnone size-full wp-image-162" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/07/05/making-use-of-the-windows-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving disk images from VMWare to VirtualBox</title>
		<link>http://blog.spind.net/2009/07/02/moving-disk-images-from-vmware-to-virtualbox/</link>
		<comments>http://blog.spind.net/2009/07/02/moving-disk-images-from-vmware-to-virtualbox/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 14:34:39 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora11]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=153</guid>
		<description><![CDATA[I couldn&#8217;t find any updated information on this online, so this is my ultra short guide to converting VMWare disk images to VirtualBox. This is tested with VirtualBox 3.0.0 under Fedora 11.
Step one is to concatenate fragmented VMWare images. This might not me necessary in your case, but we&#8217;ll do it anyway. Let&#8217;s assume the [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t find any updated information on this online, so this is my ultra short guide to converting VMWare disk images to VirtualBox. This is tested with VirtualBox 3.0.0 under Fedora 11.</p>
<p>Step one is to concatenate fragmented VMWare images. This might not me necessary in your case, but we&#8217;ll do it anyway. Let&#8217;s assume the image you want to convert is called <tt>leopard-fragmented.vmdk</tt>:</p>
<div class="codebox">
vdiskmanager -r leopard-fragmented.vmdk leopard.vmdk
</div>
<p>Now you&#8217;re got a rather huge VMWare disk image file, and we&#8217;ll use <tt>qemu</tt> to convert it into a raw disk image:</p>
<div class="codebox">
qemu-img convert leopard.vmdk leopard.bin
</div>
<p>This will take a while, and you&#8217;ll probably end up with a less-than-huge file since this is the raw file, without any fancy compression. Now you&#8217;ll want to convert this to the VirtualBox disk format, <tt>vdi</tt>:</p>
<div class="codebox">
VBoxManage convertfromraw leopard.bin leopard.vdi
</div>
<p>The <tt>vdi</tt> ended up being around 7GB &#8211; more or less the exact size of the <tt>vmdk</tt> file. The temporary <tt>bin</tt> file was 32GB though. Be sure you&#8217;re got enough room on your disk for this job.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/07/02/moving-disk-images-from-vmware-to-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox refuses to remember my passwords</title>
		<link>http://blog.spind.net/2009/05/26/firefox-refuses-to-remember-my-passwords/</link>
		<comments>http://blog.spind.net/2009/05/26/firefox-refuses-to-remember-my-passwords/#comments</comments>
		<pubDate>Tue, 26 May 2009 15:02:25 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Amnesia]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=150</guid>
		<description><![CDATA[I&#8217;ve had a few issues with my Firefox previously, but this time it somehow forgot all my saved passwords and stopped offering to remember new ones. This one was a quickie, but I&#8217;ll post it for later reference.
This problem can be fixed by removing the files key3.db and signons3.txt from your Firefox profile directory. On [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a few issues with my Firefox <a href="/2009/04/10/my-firefox-plugins/">previously</a>, but this time it somehow forgot all my saved passwords and stopped offering to remember new ones. This one was a quickie, but I&#8217;ll post it for later reference.</p>
<p>This problem can be fixed by removing the files <tt>key3.db</tt> and <tt>signons3.txt</tt> from your Firefox profile directory. On Unix, it&#8217;s usually a random generated directory under <tt>~/.mozilla/firefox</tt>. Be aware that removing these files will remove any stored passwords &#8211; mine were already gone though.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/05/26/firefox-refuses-to-remember-my-passwords/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOS 5 (64) on Sun VirtualBox on Fedora 10 (64)</title>
		<link>http://blog.spind.net/2009/05/21/centos-5-64-on-sun-virtualbox-on-fedora-10-64/</link>
		<comments>http://blog.spind.net/2009/05/21/centos-5-64-on-sun-virtualbox-on-fedora-10-64/#comments</comments>
		<pubDate>Thu, 21 May 2009 14:20:32 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[x86_64]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=141</guid>
		<description><![CDATA[I&#8217;ve been playing around with Sun VirtualBox. Installation of both Windows XP and CentOS 5 went smooth, but installing the guest OS tweaks &#8211; in the VirtualBox world referred to as Additions &#8211; gave me a little trouble on CentOS. It&#8217;s done the same way as on VMWare, by mounting an ISO with the scripts [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with <a href="http://www.virtualbox.org/">Sun VirtualBox</a>. Installation of both Windows XP and CentOS 5 went smooth, but installing the guest OS tweaks &#8211; in the VirtualBox world referred to as <em>Additions</em> &#8211; gave me a little trouble on CentOS. It&#8217;s done the same way as on VMWare, by mounting an ISO with the scripts and drivers required. It&#8217;s not as painless as on VMWare though.</p>
<p>For starters, you have to find the ISO yourself &#8211; but I&#8217;ll give you a hint: look in <tt>/usr/share/virtualbox/</tt> <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  After mounting the ISO image, a directory popped up. I tried double clicking on <tt>autorun.sh</tt> but nothing ever comes easy, does it? I tried running it in the terminal, and was somewhat enlightened as I realized it was looking in vain for <tt>gksu</tt> &#8211; probably a Gnome frontend for <tt>su</tt>. Luckily there seemed to be another script I could run &#8211; <tt>VBoxLinuxAdditions-amd64.run</tt> &#8211; but it whined about OpenGL direct rendering:</p>
<div class="codebox">
Verifying archive integrity&#8230; All good.<br />
Uncompressing VirtualBox 2.2.2 Guest Additions for Linux Installation&#8230;&#8230;<br />
VirtualBox 2.2.2 Guest Additions installation<br />
Please install the build and header files for your current Linux kernel.<br />
The current kernel version is 2.6.18-128.el5<br />
This system does not seem to have support for OpenGL direct rendering.<br />
VirtualBox requires Linux 2.6.27 or later for this.  Please see the log.<br />
file /var/log/vboxadd-install.log if your guest uses Linux 2.6.27 and you still see this message.<br />
Problems were found which would prevent the Guest Additions from installing.<br />
Please correct these problems and try again.
</div>
<p>Before I ran the script, I made sure the newly installed CentOS was crispy by running <tt>yum upgrade</tt>. I also had a sneaking suspicion that a C compiler was required, so I made sure the system also sported <tt>gcc</tt>. The only thing I personally noticed by reading the message above, was that some missing OpenGL crap prevented the additions to be installed. As I was typing the message in this blog, I also noticed something about kernel headers. Rather embarrassing, but I really didn&#8217;t see it until now. Anyway, obviously the thing needed was kernel goodness, so I ran <tt>yum install kernel-devel</tt>. That seemed to make the VirtualBox additions script more happy and now it seems to be running flawlessly.</p>
<p>So, to summarize &#8211; what to do to make the damned thing work:</p>
<div class="codebox">
$ yum upgrade -y<br />
$ yum install -y gcc kernel-devel<br />
$ ln -s /usr/src/kernels/2.6.18-128.1.10.el5-i686 /usr/src/linux<br />
$ cd /media/VBOXADDITIONS_2.2.2_46594/<br />
$ sh VBoxLinuxAdditions-amd64.run
</div>
<p>I rebooted as I was told to, but mouse integration didn&#8217;t seem to work. Probably due to the kernel being upgraded without rebooting and actually utilizing it. So, I ran the additions script again, rebooted again and woo &#8211; mouse integration seems to work. The clipboard doesn&#8217;t though, and the maching is still creating some really nasty spikes on my CPU graph every three seconds or so:</p>
<p><a href="/uploads/2009/05/VirtualBox-CPUUsage1.png"><img src="/uploads/2009/05/VirtualBox-CPUUsage1-600x497.png" alt="VirtualBox-CPUUsage" title="VirtualBox-CPUUsage" width="600" height="497" class="alignnone size-medium wp-image-146" /></a></p>
<p>It&#8217;s worth mentioning that when I&#8217;m running my Windows XP guest in VirtualBox, the CPU graphs on the host system are nice and flat.</p>
<p>I&#8217;m not entirely pleased, but I think VirtualBox will eventually win me over from VMWare.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/05/21/centos-5-64-on-sun-virtualbox-on-fedora-10-64/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The mysterious case of the 501 error</title>
		<link>http://blog.spind.net/2009/05/13/the-mysterious-case-of-the-501-error/</link>
		<comments>http://blog.spind.net/2009/05/13/the-mysterious-case-of-the-501-error/#comments</comments>
		<pubDate>Wed, 13 May 2009 09:10:30 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ModSecurity]]></category>
		<category><![CDATA[Paranoia]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=137</guid>
		<description><![CDATA[I recently installed mod_security on our Apache server, and everything seemed to be working fine. Suddenly, while working on the previous post, I was presented with this error:

Method Not Implemented
POST to /wp/wp-admin/post.php not supported.

I checked the log files, and found these hits:

[Wed May 13 10:52:48 2009] [error] [client xxx.xxx.xxx.xxx] ModSecurity: Access denied with code 501 [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed <a href="http://www.modsecurity.org/">mod_security</a> on our Apache server, and everything seemed to be working fine. Suddenly, while working on the <a href="http://blog.spind.net/2009/05/13/prioritizing-linux-services/">previous post</a>, I was presented with this error:</p>
<div class="codebox">
Method Not Implemented<br />
POST to /wp/wp-admin/post.php not supported.
</div>
<p>I checked the log files, and found these hits:</p>
<div class="codebox">
[Wed May 13 10:52:48 2009] [error] [client xxx.xxx.xxx.xxx] ModSecurity: Access denied with code 501 (phase 2). Pattern match &#8220;(?:\\b(?:\\.(?:ht(?:access|passwd|group)|www_?acl)|global\\.asa|httpd\\.conf|boot\\.ini)\\b|\\/etc\\/)&#8221; at ARGS:content. [file "/etc/httpd/modsecurity.d/modsecurity_crs_40_generic_attacks.conf"] [line "114"] [id "950005"] [msg "Remote File Access Attempt"] [data "/etc/"] [severity "CRITICAL"] [tag "WEB_ATTACK/FILE_INJECTION"] [hostname "blog.spind.net"] [uri "/wp/wp-admin/post.php"] [unique_id "xxxxxxxxxxxxx"]
</div>
<p>In short, it&#8217;s <tt>mod_security</tt> telling me that the text <tt>/etc/</tt> triggered rule 950005, which should be protecting our server against malicious attempts to access local files &#8211; like the ones in the <tt>/etc</tt> directory. The access file only showed a POST to <tt>/wp/wp-admin/post.php</tt> so I had no idea where the <tt>/etc/</tt> string was coming from. Maybe some weird hidden Javascript? Maybe something else?</p>
<p><a href="http://techpulp.com/2009/02/how-to-resolve-post-to-wp-admin-post-php-not-supported-error-in-wordpress/">This post</a> narrowed acknowledged it to be related to <tt>mod_security</tt> and suggested to disable it permanently or just turn it temporarily off while posting. I aim to do better.</p>
<p>The <a href="http://blog.spind.net/2009/05/13/prioritizing-linux-services/">previous post</a> has a wonderful nugget of enlightenment about prioritizing services on Linux, and suggested a couple of changes to the Linux configuration files &#8211; most of which are located in.. the <tt>/etc/</tt> folder. In short, I triggered <tt>mod_security</tt> rule 950005 by posting data containing <tt>/etc/</tt>.</p>
<p>If you ever plan to cover issues related to deployment and administration of operating system in the Unix family, this rule absolutely has got to go. Obviously it&#8217;s written with the best of intentions, but as it is doesn&#8217;t work and should be disabled.</p>
<p>Avoid messing with <tt>/etc/httpd/modsecurity.d/modsecurity_crs_40_generic_attacks.conf</tt> and just disable the specific rules in <tt>/etc/httpd/conf.d/mod_security.conf</tt> by adding this:</p>
<div class="codebox">
# Disable a couple of rules in modsecurity.d/modsecurity_crs_40_generic_attacks.conf<br />
# that prevents submitting text containing filenames in the Unix family.<br />
SecRuleRemoveById 950005<br />
SecRuleRemoveById 950006
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/05/13/the-mysterious-case-of-the-501-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Prioritizing Linux services</title>
		<link>http://blog.spind.net/2009/05/13/prioritizing-linux-services/</link>
		<comments>http://blog.spind.net/2009/05/13/prioritizing-linux-services/#comments</comments>
		<pubDate>Wed, 13 May 2009 08:54:16 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=134</guid>
		<description><![CDATA[Administrating a Linux system is always interesting, especially when something starts hogging the resources and people start complaining. Everyone wants their e-mail on time and spam free, but nobody wants to wait on a slow web server. What to do? Put a priority on your services!
My initial thought was &#8220;wow, someone must have thought about [...]]]></description>
			<content:encoded><![CDATA[<p>Administrating a Linux system is always interesting, especially when something starts hogging the resources and people start complaining. Everyone wants their e-mail on time and spam free, but nobody wants to wait on a slow web server. What to do? Put a priority on your services!</p>
<p>My initial thought was &#8220;wow, someone must have thought about this before me&#8221;, and I looked briefly through the service scripts in <tt>/etc/rc.d/init.d</tt>. I was specifically interested in tweaking the <tt>nice</tt> level for the <a href="http://www.ijs.si/software/amavisd/">Amavis daemon</a>, but found nothing in the <tt>amavisd</tt> file &#8211; just a simple call to the <tt>daemon</tt> function in <tt>/etc/rc.d/init.d/functions</tt>.</p>
<p>With my initial thought still fresh in my mind, I dug down in the <tt>functions</tt> script, and saw that it actually honours a couple of environment variables set by the configuration scripts in <tt>/etc/sysconfig</tt> &#8211; one of them being <tt>NICELEVEL</tt>.</p>
<p>In short: if you want a service &#8211; like the Amavis daemon &#8211; to run with priority 15, add this to <tt>/etc/sysconfig/amavisd</tt>:</p>
<div class="codebox">
# Force this service to run with very low priority:<br />
NICELEVEL=18
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/05/13/prioritizing-linux-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
