<?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>Zarathustra Shall Speak &#187; SysAdmin</title>
	<atom:link href="http://zarathustrashallspeak.com/tag/sysadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://zarathustrashallspeak.com</link>
	<description>And you yourself are also this Will to Power.</description>
	<lastBuildDate>Fri, 06 Apr 2012 04:16:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OS X and RVM</title>
		<link>http://zarathustrashallspeak.com/2012/01/17/os-x-and-rvm/</link>
		<comments>http://zarathustrashallspeak.com/2012/01/17/os-x-and-rvm/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 20:44:36 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=954</guid>
		<description><![CDATA[Oh shit, it's a lion, get in the headache.]]></description>
			<content:encoded><![CDATA[<p>As part of my duties, I&#8217;m being forced to actually use OS X for development.   It&#8217;s not been without headaches, at least where RVM is concerned &#8211; attempts at installing Vagrant under Ruby 1.8.7 resulted in segmentation faults.  Ruby 1.9.2 ain&#8217;t without issue, neither.</p>
<p>Thankfully, the Internets are here to help.  A knowledgeable bloke going by Jalada <a href="http://jalada.co.uk/2011/07/24/lion-rvm-and-ruby-1-8-7-woes.html">knows his business</a>.  He knows what o&#8217;clock it is, I dare say.</p>
<p>The short of it is, Lion comes with some gimcrack modern rubbish known as LLVM, whereas you need the right honorable Admiral Lord GCC.  If your MBP or MBA was made after the dinosaurs went extinct, you probably don&#8217;t have pure, undiluted GCC.  As per the previous link&#8217;s comments, simply go <a href="https://github.com/kennethreitz/osx-gcc-installer">here</a>, snag the &#8216;OS X 10.6 Snow Leopard: GCC-10.6.pkg&#8217; package, install it, and Bob&#8217;s yer uncle Dick.  That is to say, you&#8217;ll have proper GCC slumming about at /usr/bin/gcc-4.2.</p>
<p>After that, simply append &#8216;CC=/usr/bin/gcc-4.2&#8242; before your RVM installations.  (EG, &#8216;CC=/usr/bin/gcc-4.2 rvm install 1.8.7&#8242;)</p>
<p>&#8230;This sort of nonsense, though, is why I despise the idea of local development; indeed, I avoid it whenever possible.   But as the current fancy du jour involves building standardized virtualized machines for developers (thus avoiding this sort of issue, and more importantly, &#8216;hurr, works on my machine!!!!1111eleven&#8217; syndrome), well, my hand is forced.  Yo dawg, I herd u like virtualization, but we can&#8217;t put a virtual box in your virtual box.  Really.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2012/01/17/os-x-and-rvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHEL5, RVM, Rails 3</title>
		<link>http://zarathustrashallspeak.com/2011/12/26/rhel5-rvm-rails-3/</link>
		<comments>http://zarathustrashallspeak.com/2011/12/26/rhel5-rvm-rails-3/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 02:13:57 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[RHEL5]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=929</guid>
		<description><![CDATA[I've Got Your Rails Right Here]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tried to avoid dealing with RVM, but there&#8217;s really no other viable solution to get Ruby onto a production system.   Hell, even the developer-hell that is Ubuntu can&#8217;t keep pace with Ruby.   The good news is that RVM does actually make things easier.   Take the installation of RVM, Ruby 1.9.2, and Rails 3&#8230;</p>
<p><em>As root:</em></p>
<pre class="code">
yum --exclude=*.i?86 install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl
</pre>
<p><em>As your Ruby-happy user:</em></p>
<pre class="code">
echo insecure >> ~/.curlrc
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] &#038;&#038; . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source .bash_profile
rvm install 1.9.2
rvm use 1.9.2
rvm use 1.9.2 --default
rvm gemset create rails3
rvm gemset use rails3
gem install rails
</pre>
<p>Note: Curl on RHEL5 is braindead when it comes to SSL &#8211; thus, you need to basically force Curl to not authenticate certificates by way of the insecure method.  </p>
<p>Can it be that simple?</p>
<pre class="code">
# ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
# rails --version
Rails 3.1.3
</pre>
<p>I&#8217;m not going to stop cringing at the idea of taking software version control out of the hands of your distribution&#8217;s package management system.   It&#8217;s the wrong thing to do.  It&#8217;s always the wrong thing to do, even when it&#8217;s the right thing to do (hi, content management systems living in a docroot).</p>
<p>Still, props to RVM.  It&#8217;s been blissfully easy to work with, and at least has clear upgrade paths/capabilities, even if they do reside outside of the rest of the system.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2011/12/26/rhel5-rvm-rails-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;ve Got Yer Packages Right Here</title>
		<link>http://zarathustrashallspeak.com/2011/12/24/914/</link>
		<comments>http://zarathustrashallspeak.com/2011/12/24/914/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 00:48:36 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=914</guid>
		<description><![CDATA[I used to be a sysadmin like you, then I took an arrow in the knee.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running a server in a production environment, and that production environment consists of more than a website about your cat, chances are you&#8217;re using RedHat Enterprise Linux.  If you aren&#8217;t using RHEL, you&#8217;re probably using SuSE &#8211; which is an equally valid choice, but not my forte.  If you&#8217;re using Ubuntu, you should probably find a new employer as soon as you possibly can.   If you&#8217;re using Ubuntu because <em>you</em> want to, get the hell off my lawn, son.   We don&#8217;t care for your kind around these parts.</p>
<p>At any rate, congratulations on running the unarguably superior Linux distribution.   Here&#8217;s some things you should know.</p>
<h1>RHEL Version and Alternatives</h1>
<h3>RHEL5 vs RHEL6</h3>
<p>There&#8217;s only one viable reason to go with RHEL5 at this point: You&#8217;re deploying a new server to an existing cluster of RHEL5 servers.</p>
<p>Other than that, you should now be using RHEL6.  It&#8217;s past the initial release phase; it&#8217;s been out long enough to have proven itself stable; and by virtue of being a later version, it&#8217;ll be supported longer than RHEL5.</p>
<h3>Distribution Alternatives</h3>
<p>My advice?  <em>Don&#8217;t</em>.  But if you <em>have</em> to?</p>
<p>For many years, <a href="http://www.centos.org">CentOS</a> has been the &#8220;free&#8221; compatible alternative of choice for RHEL.  There&#8217;s been concern over update frequency/lag time behind RHEL of late.   Some have been looking at <a href="http://www.scientificlinux.org/">Scientific Linux</a> as a result, but you can expect a visit from <a href="http://en.wikipedia.org/wiki/John_Titor">John Titor</a> if you go down that route.</p>
<h1>Where My Packages At?</h1>
<p>Third party repositories are a necessity with RHEL.  The fact is, developers are all whiny about new features and sharp pointy things they can injure themselves and your infrastructure with.   Best to just give them what they want &#8211; and with RHEL, you can, while maintaining your sanity.</p>
<h3>MySQL</h3>
<p>If you&#8217;re running MySQL, you have no excuse whatsoever to not be running <a href="http://www.percona.com/">Percona</a>.   Percona is the Bugatti Veyron of MySQL, whereas <em>every</em> distributions&#8217; default MySQL packages are nothing more than a bunch of Honda Accords.  Percona Server is a drop-in replacement; your data is unaffected and you can revert to conventional MySQL at any time with no risk.   Percona offers consulting and on-demand support; they&#8217;ve got enterprise paranoia, err, needs, covered.  Percona currently offers 5.1 and 5.5 variants; there&#8217;s little reason not to go with 5.5 these days.  I think they have Ubuntu packages now too, for you crazy kids who are into kinky stuff.</p>
<h3>PHP</h3>
<p>If you&#8217;re running PHP, <a href="http://www.zend.com/en/products/server-ce/">Zend CE</a> is the answer.  Ever wonder how to get PHP 5.2 on a RHEL5 system without using packages that haven&#8217;t been maintained in a year?   Or perhaps you just want PHP to actually be, you know, <em>fast</em>.   Install Zend CE and you&#8217;ll have a well-documented, well-supported, optimized-to-hell-and-back PHP stack, from Zend.   From freaking <em>Zend</em>, people.   Zend CE currently offers PHP 5.2 and 5.3 flavors.</p>
<h3>Ruby</h3>
<p>Ruby&#8217;s the new Perl (and then some); and like the good old days of Perl, there&#8217;s an overinflated version hell problem.   Unlike Perl, Ruby isn&#8217;t old enough to have stabilized to the point where you can run what your distribution provides and be happy.   <a href="http://rbel.frameos.org/">rbel.frameos.org</a> may be the answer here &#8211; if and only if you&#8217;re working with Ruby 1.8.   If you are, you can look forward to a repository filled with 1.8 goodness as well as things like Chef and Node.</p>
<p>If you want to run with 1.9?   Good luck with that.   The only viable option I&#8217;ve found so far is <a href="http://beginrescueend.com/">RVM</a>, which lends itself to operational nightmares.  (&#8220;Let&#8217;s make thirty two copies of this out of date gem with a security vulnerability!   That&#8217;s easy to update, right?&#8221;)</p>
<p>I&#8217;m starting to suspect Ruby is nothing more than an insidious exit plan for exhausted sysadmins.   Learn Rails, become overpaid; welpguesssomeoneelseneedstoberesponsibleforuptimeImtoobusydeveloping.   Genius.</p>
<h3>Everything Else</h3>
<p><a href="http://fedoraproject.org/wiki/EPEL">EPEL</a> is your answer for all those miscellaneous packages, such as git and whatnot.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2011/12/24/914/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NoDaddy.</title>
		<link>http://zarathustrashallspeak.com/2010/04/29/nodaddy/</link>
		<comments>http://zarathustrashallspeak.com/2010/04/29/nodaddy/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 01:31:04 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fail]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=347</guid>
		<description><![CDATA[What to do when you're trying to get someone onto decent hosting, and budget crap stands in the way.]]></description>
			<content:encoded><![CDATA[<p>Dealing with a client we&#8217;re trying to move off their meh infrastructure onto our omgwtfbbq infrastructure.</p>
<p>Problem is, I can&#8217;t migrate their docroots.   Well, I can grab most of the docroots &#8211; but curiously, there&#8217;s a number of files which are owned by apache:apache and -rx to anything but, wull, Apache.</p>
<p>The virtual server in question has no root access, no sudo, and no way to configure either through their control panel.   Last time I had the misfortune of dealing with GoDaddy&#8217;s support&#8230;   Let&#8217;s just say, I don&#8217;t have three days for another non-resolution.</p>
<p>What to do?   Wull, it <em>is</em> a Drupal site&#8230;</p>
<pre class="code">&lt;?php
system('/bin/chmod -R go+rx /path/to/files', $retval);
?&gt;
</pre>
<p>This happily worked, because everything I needed to mess with was owned by the Apache user, so Apache itself had no problems smacking permissions around.</p>
<p>This pointedly wouldn&#8217;t have worked if a different user (root, for example) had ownership of those files.   But never underestimate the power of a single call to system() and the weird headaches it might solve.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2010/04/29/nodaddy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Varnish Startup Issue</title>
		<link>http://zarathustrashallspeak.com/2009/11/28/varnish-startup-issue/</link>
		<comments>http://zarathustrashallspeak.com/2009/11/28/varnish-startup-issue/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 22:49:53 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=165</guid>
		<description><![CDATA[Varnish; good for more than just furniture.]]></description>
			<content:encoded><![CDATA[<p>Ran into an issue where attempting to start Varnish on a VMWare VM spewed the following:</p>
<pre class="code">
Assert error in main(), varnishd.c line 632: Condition((daemon(1, d_flag)) == 0) not true. errno = 19 (No such device
</pre>
<p>The reason was that /dev/null was a bit&#8230; wonky. To fix this, I did:</p>
<pre class="code">
rm /dev/null
mknod -m 666 /dev/null c 1 3
</pre>
<p>Really confused as to how /dev/null could go wonky &#8211; that is, break &#8211; that is, look like a normal freaking file, but eh, there you have it.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2009/11/28/varnish-startup-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Broken Bash Prompt</title>
		<link>http://zarathustrashallspeak.com/2009/11/10/broken-bash/</link>
		<comments>http://zarathustrashallspeak.com/2009/11/10/broken-bash/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 21:44:21 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=153</guid>
		<description><![CDATA[ohgodibrokeitanditsproductionandwecantrebootitohnoes]]></description>
			<content:encoded><![CDATA[<p>Ran into an interesting issue today &#8211; made a change to root&#8217;s .bashrc, logged out, logged back in and&#8230;  Broken system.</p>
<p>Initial login was sucessful, the &#8216;Last logged in&#8230;&#8217; line displayed, but after that nothing but a blinking cursor.  Commands could be entered, but nothing would execute, and no bash prompt was seen.</p>
<p>The problem was quickly fixed with a strategic rsync, but let this be a lesson:</p>
<p>If you&#8217;re messing with root&#8217;s bash prompt, either test it on a non-root user, or open a second session to test.  I was quite taken aback by this, because it didn&#8217;t dawn on me that it was possible to break bash to such a degree via a simple prompt modification.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2009/11/10/broken-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The End Always Justifies the Means.</title>
		<link>http://zarathustrashallspeak.com/2009/06/11/the-end-always-justifies-the-means/</link>
		<comments>http://zarathustrashallspeak.com/2009/06/11/the-end-always-justifies-the-means/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 12:07:50 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=56</guid>
		<description><![CDATA[Suffer not the commodity box to live.]]></description>
			<content:encoded><![CDATA[<p><em>&#8220;They shall be my finest servers, these hardware who give themselves to me.<br />
Like clay I shall mould them and in the furnace of Sacramento I shall forge them.<br />
They will be of iron chassis and steely processor.<br />
In great racks shall I clad them and with the mightiest interconnect shall they be armed.<br />
They will be untouched by static or wear, no fault will blight them.<br />
They will have firewalls, IPS and HIDS such that no foe will best them in battle.<br />
They are my bulwark against low density.<br />
They are the defenders of scalability.<br />
They are my Sun boxes&#8230;<br />
&#8230;And they shall know no load.&#8221;</em></p>
<p>I either need more or less coffee.  I haven&#8217;t yet decided which.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2009/06/11/the-end-always-justifies-the-means/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace Text In a File In-Place With Sed</title>
		<link>http://zarathustrashallspeak.com/2009/05/23/replace-text-in-a-file-in-place-with-sed/</link>
		<comments>http://zarathustrashallspeak.com/2009/05/23/replace-text-in-a-file-in-place-with-sed/#comments</comments>
		<pubDate>Sat, 23 May 2009 02:31:31 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=65</guid>
		<description><![CDATA[You have forgotten something.]]></description>
			<content:encoded><![CDATA[<p>Yeah, yeah, this is common knowledge &#8211; but I always forget the proper syntax. :p</p>
<p>Anyhow, say you&#8217;ve got a file with ICANHAZCHEEZBURGRZ somewhere in it, and you want to replace that hilarious phrase. Here&#8217;s what you do:</p>
<pre class="code">
sed -i 's/ICANHAZCHEEZBURGRZ/IHAZACHEEZBURGR/' filename
</pre>
<p>This will replace &#8216;ICANHAZCHEEZBURGRZ&#8217; with &#8216;IHAZACHEEZBURGR&#8217;.</p>
<p>Such a thing is extremely useful when scripting the configuration of an insane amount of systems. (*wink wink, nudge nudge*)</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2009/05/23/replace-text-in-a-file-in-place-with-sed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

