<?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>Darryl E. Clarke &#187; linux</title>
	<atom:link href="http://darrylclarke.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://darrylclarke.com</link>
	<description>Linux, PHP, MySQL, Apache, Development and More . . .</description>
	<lastBuildDate>Thu, 11 Mar 2010 01:30:43 +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>I Finally Upgraded to Debian 5</title>
		<link>http://darrylclarke.com/2009/10/17/i-finally-upgraded-to-debian-5/</link>
		<comments>http://darrylclarke.com/2009/10/17/i-finally-upgraded-to-debian-5/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 17:37:41 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[insanity]]></category>
		<category><![CDATA[not ubuntu]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/?p=243</guid>
		<description><![CDATA[On my production web server, I&#8217;m kind of a crazy fool.  I often do things that make people cringe and scream and say &#8220;what the hell are you doing?&#8221;
One of those said things is doing a distribution upgrade on-the-fly of the OS.  Since the installation of my server some three and a half years ago, [...]]]></description>
			<content:encoded><![CDATA[<p>On my production web server, I&#8217;m kind of a crazy fool.  I often do things that make people cringe and scream and say &#8220;what the hell are you doing?&#8221;</p>
<p>One of those said things is doing a distribution upgrade on-the-fly of the OS.  Since the installation of my server some three and a half years ago, Debian has had two major releases.  My server started with sarge, upgraded to etch, then upgraded again to lenny.  Unfortunately this time after 1210 days without rebooting my server I was forced to reboot. That is to say, since I installed my server where it lives it had never been rebooted.</p>
<p>The reboot occurred because the new libc required kernel 2.6. I was still cooking with an old 2.4 kernel.  After a pile of apt-get trickery, I got the necessary packages installed and had to reboot.  Once the 2.6 kernel was up and running everything else installed without a hitch.  I had to track down a few configuration changes with a couple of things, but overall I think the upgrade went smooth and with only a few minutes of downtime.  Not bad, I say, not bad.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2009/10/17/i-finally-upgraded-to-debian-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing a Live System RAID On The Fly</title>
		<link>http://darrylclarke.com/2009/06/26/replacing-a-live-system-raid-on-the-fly/</link>
		<comments>http://darrylclarke.com/2009/06/26/replacing-a-live-system-raid-on-the-fly/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 19:51:18 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[resize filesystems]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/?p=206</guid>
		<description><![CDATA[Well, this is one of those crazy fun things that I had to attempt.  My old system drive consisted of two 80 GB IDE drives in a mirror configuration.  Pretty standard, but they were getting sluggish and I happen to have a few 320GB SATA drives doing nothing.
This is not a tutorial. This [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this is one of those crazy fun things that I had to attempt.  My old system drive consisted of two 80 GB IDE drives in a mirror configuration.  Pretty standard, but they were getting sluggish and I happen to have a few 320GB SATA drives doing nothing.</p>
<p><strong>This is not a tutorial. This is a step by step account of a process I took to replace my disks; This is to be taken only as a suggestion as your configuration and mileage may vary.</strong> There may also be a better way of doing this.</p>
<p>So, lo and behold, I plugged them in to my eSATA ports and started rolling over!  For the sake of this exercise the original drives will be sda, sdb. The new drives will be sdc and sdd. The raid device is md0.<span id="more-206"></span></p>
<ol>
<li>BACKUP YOUR DATA</li>
<li>Partition the new drives using your favorite partition manager, create a matching partition on both sdc and sdd to be near the maximum.</li>
<li>Force a failure and remove the first drive:<br />
mdadm -f /dev/md0 /dev/sda1<br />
mdadm -r /dev/md0 /dev/sda1</li>
<li>Add the first of the new drives:<br />
mdadm &#8211;add /dev/md0 /dev/sdc1<br />
wait for it to rebuild/resync.  You can check the status by typing &#8216;cat /proc/mdstat&#8217; from a command line.  This took about 45 minutes for me.</li>
<li>Force a failure and remove the second drive:<br />
mdadm -f /dev/md0 /dev/sdb1<br />
mdadm -r /dev/md0 /dev/sdb1</li>
<li>Add the second of the new drives:<br />
mdadm &#8211;add /dev/md0 /dev/sdd1<br />
and wait for it to rebuild/resync. In my case the two new drives are considerably faster so this sync only took about 25 minutes.</li>
<li>Your system is now running on your brand new mirror, but the mirror is still only as large as the original disks.  So, you need to resize the md0 device:<br />
mdadm &#8211;grow /dev/md0 &#8211;size=max<br />
Then wait for it to rebuild/resync to the new size.  This part took 2 hours.</li>
<li>After that is done you need to grow your filesystem.  Depending on which filesystem you&#8217;re using, there are tools for it.  I&#8217;m using ext4; so I used the standard ext resize utility:<br />
resize2fs /dev/md0<br />
And it went into an online resize mode and worked fine.  Other utilities are: xfs_growfs and resize_reiserfs &#8211; if you&#8217;re using another filesystem or an LVM you may want to read the friendly manual.</li>
<li>And it&#8217;s done!</li>
</ol>
<p>If you&#8217;re using a production server and need to upgrade disks this is a pretty smooth method of doing it. While everything remains online for the long portions of the process things are a bit slower but not painfully slow.  The resync processes play nice and only take available power.  Idle servers rebuild faster and your times may vary on the steps.</p>
<p>After doing this, you may also want to make sure GRUB or your boot loader is in properly configured on the new drives.</p>
<p>And then, enjoy your new faster and bigger disks!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2009/06/26/replacing-a-live-system-raid-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04 on a Dell Latitude D610, Success.</title>
		<link>http://darrylclarke.com/2009/05/09/ubuntu-904-on-a-dell-latitude-d610-success/</link>
		<comments>http://darrylclarke.com/2009/05/09/ubuntu-904-on-a-dell-latitude-d610-success/#comments</comments>
		<pubDate>Sun, 10 May 2009 02:34:39 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[d610]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[latitude]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/?p=180</guid>
		<description><![CDATA[I had the joy of recovering data from a busted-ass Windows XP installation.  You know, the one where it blue screens no matter what boot process you try with an error about &#8220;kernl32.dll&#8221; being screwed? Yeah, one of those.  So, I fired up an Ubuntu live CD to test the hardware and figure out if [...]]]></description>
			<content:encoded><![CDATA[<p>I had the joy of recovering data from a busted-ass Windows XP installation.  You know, the one where it blue screens no matter what boot process you try with an error about &#8220;kernl32.dll&#8221; being screwed? Yeah, one of those.  So, I fired up an Ubuntu live CD to test the hardware and figure out if anything was actually wrong with the laptop &#8211; and much to my surprise &#8211; <strong>everything just worked</strong>.</p>
<p>I&#8217;ve watched Ubuntu grow over the years and I&#8217;ve used it on many machines.  The trickiest has always been <em>cheap</em> laptops.</p>
<p>The specs on this machine are fairly simplistic:</p>
<ul>
<li>Intel Pentium M 1.6Ghz</li>
<li>1255MB of ram (strange, eh?)</li>
<li>40 GB hard disk</li>
<li>cheap-o-dell-branded cd-rw/dvd-rom (modular, though)</li>
<li>broadcom gigabit ethernet</li>
<li>intel wireless</li>
<li>bluetooth (dell branded, onboard usb device)</li>
<li>standard ac&#8217;97 modem, ac&#8217;97 audio</li>
<li>and a bunch of other fluff.</li>
</ul>
<p>I&#8217;m just really impressed that everything works.  I didn&#8217;t have to find any windows drivers, or do anything goofy to get things rolling.  All the function keys (standby, hybernate, wireless, battery status&#8230;) work as expected.</p>
<p>Kudos to <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2009/05/09/ubuntu-904-on-a-dell-latitude-d610-success/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Happy Ubuntu Day (9.04 Released!)</title>
		<link>http://darrylclarke.com/2009/04/23/happy-ubuntu-day-904-released/</link>
		<comments>http://darrylclarke.com/2009/04/23/happy-ubuntu-day-904-released/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 17:09:42 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/?p=105</guid>
		<description><![CDATA[Today, like clockwork, is the day in which Ubuntu issues another release.
Get your copy via the always legal BitTorrent here.
Happy Ubuntu Day!
]]></description>
			<content:encoded><![CDATA[<p>Today, like clockwork, is the day in which <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> issues another release.</p>
<p>Get your copy via the always <a href="http://noncdn.releases.ubuntu.com/jaunty/" target="_blank">legal BitTorrent here</a>.</p>
<p>Happy Ubuntu Day!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2009/04/23/happy-ubuntu-day-904-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wanda the Fish is Dead</title>
		<link>http://darrylclarke.com/2009/04/01/wanda-the-fish-is-dead/</link>
		<comments>http://darrylclarke.com/2009/04/01/wanda-the-fish-is-dead/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 13:58:40 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[fish]]></category>
		<category><![CDATA[joke]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/?p=99</guid>
		<description><![CDATA[Looks like I neglected her too much.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://darrylclarke.com/wp-content/uploads/2009/04/dead-wanda.png"><img class="aligncenter size-full wp-image-100" title="dead-wanda" src="http://darrylclarke.com/wp-content/uploads/2009/04/dead-wanda.png" alt="dead-wanda" width="401" height="60" /></a>Looks like I neglected her too much.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2009/04/01/wanda-the-fish-is-dead/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.10 (Alpha 6) on my Mac Book Pro</title>
		<link>http://darrylclarke.com/2008/09/30/ubuntu-810-alpha-6-on-my-mac-book-pro/</link>
		<comments>http://darrylclarke.com/2008/09/30/ubuntu-810-alpha-6-on-my-mac-book-pro/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 15:18:08 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/2008/09/30/ubuntu-810-alpha-6-on-my-mac-book-pro/</guid>
		<description><![CDATA[I installed Ubuntu 8.10, Alpha 6 on my Mac Book Pro  (2nd generation) last night to give it a whirl.  I didn&#8217;t do anything with bootcamp, just a straight install.  The installer was fine, it went it&#8217;s normal route.  When I rebooted it took a while &#8211; I guess this is expected when booting an [...]]]></description>
			<content:encoded><![CDATA[<p>I installed Ubuntu 8.10, Alpha 6 on my Mac Book Pro  (2nd generation) last night to give it a whirl.  I didn&#8217;t do anything with bootcamp, just a straight install.  The installer was fine, it went it&#8217;s normal route.  When I rebooted it took a while &#8211; I guess this is expected when booting an alternate OS.</p>
<p>The fun started when I logged in. What appeared to be a fully working install &#8211; wasn&#8217;t.  The touchpad was slow and almost non responsive. I boosted the acceleration and  other settings, but to no avail.  It was unusable.</p>
<p>Audio worked, but not the audio out on the side. It didn&#8217;t switch over to optical output like it does with Leopard installed.</p>
<p>Dual monitors would only go into mirror mode. Even after I fiddled around with the settings I couldn&#8217;t get my desktop spanned across the second display.</p>
<p>It&#8217;s sad, but I had to go back to Leopard on the same night because I just don&#8217;t have the time to fool around with Ubuntu on my Mac to make it work the way I want it to.</p>
<p>Given that this is still only an Alpha release of Ubuntu I won&#8217;t count it out yet for being on my Mac.  Once the proper release comes out, I&#8217;ll give it another try.  But until then, Fail.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2008/09/30/ubuntu-810-alpha-6-on-my-mac-book-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse and Ubuntu 8.04</title>
		<link>http://darrylclarke.com/2008/04/07/eclipse-and-ubuntu-804/</link>
		<comments>http://darrylclarke.com/2008/04/07/eclipse-and-ubuntu-804/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 00:13:21 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/2008/04/07/eclipse-and-ubuntu-804/</guid>
		<description><![CDATA[I was having some trouble running Eclipse 3.3 Europa on Hardy Heron.  It was unstable, crashing a lot, and hogging way more ram than it normally hogs.
Then I realized what I&#8217;d forgotten to do on this fresh install.  I forgot to simply &#8217;sudo update-java-alternatives -s java-6-sun&#8217; and voila, it works like a charm.
Eclipse doesn&#8217;t work [...]]]></description>
			<content:encoded><![CDATA[<p>I was having some trouble running Eclipse 3.3 Europa on Hardy Heron.  It was unstable, crashing a lot, and hogging way more ram than it normally hogs.</p>
<p>Then I realized what I&#8217;d forgotten to do on this fresh install.  I forgot to simply &#8217;sudo update-java-alternatives -s java-6-sun&#8217; and voila, it works like a charm.</p>
<p>Eclipse doesn&#8217;t work well with the gjc java (the &#8216;free&#8217; and default) Hopefully this little thing won&#8217;t be an issue in the future when sun java 7 (open java) is ready to rock the free world.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2008/04/07/eclipse-and-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PHP Java Bridge on Ubuntu</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/</link>
		<comments>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 16:23:17 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/</guid>
		<description><![CDATA[Source Install
First, make sure all php packages are updated &#8212; if you update PHP after installing this, it will likely segfault.
For the purpose of this, I&#8217;m using Ubuntu 7.10, and Java 6 (sun-java6)

First, get the build essential, as well as php5-dev, sun java and automake

# apt-get install build-essential php5-dev sun-java6-jre \
    sun-java6-jdk [...]]]></description>
			<content:encoded><![CDATA[<h3>Source Install</h3>
<p>First, make sure all php packages are updated &#8212; if you update PHP after installing this, it will likely segfault.</p>
<p>For the purpose of this, I&#8217;m using Ubuntu 7.10, and Java 6 (sun-java6)</p>
<p><code><br />
First, get the build essential, as well as php5-dev, sun java and automake</code></p>
<pre>
# apt-get install build-essential php5-dev sun-java6-jre \
    sun-java6-jdk sun-java6-source automake</pre>
<p><code></code></p>
<p>Second, get the PHP/Java bridge source.</p>
<pre>
# cd /usr/src
# wget http://internap.dl.sourceforge.net/sourceforge/php-java-bridge/php-java-bridge_5.2.0.tar.gz
# tar xzfv php-java-bridge_5.2.0.tar.gz</pre>
<p><code></code></p>
<p>And, install.</p>
<pre>
# cd /usr/src/php-java-bridge-5.2.0
# phpize
# ./configure --with-java=/usr/lib/jvm/java-6-sun-1.6.0.03,/usr/lib/jvm/java-6-sun-1.6.0.03
# make
# chmod +x install.sh
# ./install.sh</pre>
<p>Answering the questions for the install script is fairly simple.  It looks for some tomcat stuff for the servlet portion of the Java Bridge, but we won&#8217;t be using it.</p>
<p><code></code></p>
<p>Copy *.inc to someplace it can be found.</p>
<pre>
# mkdir /usr/share/php/java
# cp *.inc /usr/share/php/java</pre>
<p><code></code></p>
<p>Testing,</p>
<pre>
# php test.php</pre>
<p>By default, java is only enabled in the command line php; to enable it in the global instances of php, edit the php.ini file and add the extension.</p>
<p><code></code></p>
<pre>
;; java.ini: Activate the PHP/Java extension

;; zend_extension = "/path/to/java.so"
extension = java.so

;; If you have installed the java-servlet.ini leave this file alone,
;; edit the servlet or standalone ini file.  Otherwise uncomment the
;; following java section and one of the following options:
[java]</pre>
<p>There are no other options required.  Make sure the java.hosts and java.servlet are disabled.  If logging is desired, that&#8217;s another story.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
