<?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>gorzek.com - profound nonsense &#187; centos</title>
	<atom:link href="http://gorzek.com/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://gorzek.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 27 Oct 2011 16:37:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CentOS, yum, and ImageMagick suck!</title>
		<link>http://gorzek.com/nonfiction/rants/centos-yum-and-imagemagick-suck/</link>
		<comments>http://gorzek.com/nonfiction/rants/centos-yum-and-imagemagick-suck/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 17:17:19 +0000</pubDate>
		<dc:creator>gorzek</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://gorzek.com/?p=72</guid>
		<description><![CDATA[<p>I admit I am still something of a Linux novice. Nevertheless, I have always preferred my web servers run on the LAMP stack. My solitary experience running a Windows web server was a nightmare I&#8217;d not wish to repeat.</p>
<p>However, today was one of those days where I would have liked that same ease-of-use. For a [...]]]></description>
			<content:encoded><![CDATA[<p>I admit I am still something of a Linux novice. Nevertheless, I have always preferred my web servers run on the LAMP stack. My solitary experience running a Windows web server was a nightmare I&#8217;d not wish to repeat.</p>
<p>However, today was one of those days where I would have liked that same ease-of-use. For a program I wanted to use, I needed to install ImageMagick. No big deal, right?</p>
<p>I ran &#8220;yum install ImageMagick&#8221;, and what do you know, I got 404 errors on every last repository. Nice! It didn&#8217;t take me long to figure out that the packages for my operating system (CentOS 5.2) had been moved, but it did take some time to determine just what I would have to change in order to make it work.</p>
<p>Basically, I had to alter my yum repository definition to use &#8220;$releasever&#8221; instead of a hard-coded &#8220;5.2&#8243;, which is how it was originally set up. At that point, though, everything was fine. I got ImageMagick installed.</p>
<p>I screwed something else up along the way, though, and I just wanted all my processes restarted correctly, so I rebooted. Tried to SSH into it after that, and got the lovely message, &#8220;Server refused to allocate pty&#8221;. Very helpful, right? I&#8217;m not exactly someone who knows squat about SSH beyond how to login and mess with the shell, so it took some looking to find the problem. Evidently, when I installed ImageMagick (which brought with it a ton of dependencies), it killed some file system entries that were required by SHH. Yay!</p>
<p>To fix, I had to run:</p>
<p>/sbin/MAKEDEV tty<br />
/sbin/MAKEDEV pty</p>
<p>Then, I could get back into SSH. Fortunately, lxadmin was working, and I finally found a use for its primitive and otherwise worthless &#8220;Command Center&#8221; tool, which lets you execute arbitrary shell commands.</p>
<p>I also wanted to add a few options to my system startup. Just some plain ol&#8217; shell commands, nothing fancy. No services or anything of that sort. This is not as obvious a thing as you might suspect. I knew it had to go in one of the rc.d scripts, but I had no clue which one.</p>
<p>The answer: rc.local. Specifically, /etc/rc.d/rc.local. You can add whatever commands you want to execute there. Be sure to add an ampersand (&amp;) to the end of any command that might take a while, so it&#8217;s run in the background.</p>
<p>So, I am learning. It&#8217;s a frustrating and often annoying process, but now I have everything working the way I want it to. It does expose one of my lingering gripes with Linux, though: nothing is obvious. Who would think installing a program would break something completely unrelated, like SSH? It doesn&#8217;t make any sense. SSH worked fine from day one, until I installed ImageMagick. For that matter, I don&#8217;t see why ImageMagick requires 38MB of dependencies, including most of Gnome and X11. I realize it&#8217;s just using them as libraries, but still, I do find it a tad aggravating to see space getting used up by chunks a windowing system I won&#8217;t even be using. Windows has &#8220;DLL hell,&#8221; and Linux has &#8220;dependency hell.&#8221; Six of one, half a dozen of the other, I guess.</p>
]]></content:encoded>
			<wfw:commentRss>http://gorzek.com/nonfiction/rants/centos-yum-and-imagemagick-suck/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

