<?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>BlueScripts &#187; CentOS</title>
	<atom:link href="http://bluescripts.net/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://bluescripts.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 07 Jul 2010 16:42:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Lighttpd + mod_magnet on CentOS (64 bit)</title>
		<link>http://bluescripts.net/2009/08/lighttpd-mod_magnet-on-centos-64-bit/</link>
		<comments>http://bluescripts.net/2009/08/lighttpd-mod_magnet-on-centos-64-bit/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:20:17 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[mod_magnet]]></category>

		<guid isPermaLink="false">http://bluescripts.net/?p=238</guid>
		<description><![CDATA[After about an hour of tinkering around on google and in the terminal here is what you need to do: wget http://www.lua.org/ftp/lua-5.1.2.tar.gz tar xfz lua-5.1.2.tar.gz cd lua-5.1.2 nano src/Makefile Replace: CFLAGS= -O2 -Wall $(MYCFLAGS) With: CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS) make linux install wget http://luaforge.net/frs/download.php/2384/md5-1.0.2.tar.gz tar xfz md5-1.0.2.tar.gz cd md5-1.0.2 make make install cd .. [...]]]></description>
			<content:encoded><![CDATA[<p>After about an hour of tinkering around on google and in the terminal here is what you need to do:</p>
<pre>
wget http://www.lua.org/ftp/lua-5.1.2.tar.gz
tar xfz lua-5.1.2.tar.gz
cd lua-5.1.2
nano src/Makefile
</pre>
<p>Replace:</p>
<pre> CFLAGS= -O2 -Wall $(MYCFLAGS) </pre>
<p>With:</p>
<pre> CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS) </pre>
<pre>
make linux install

wget http://luaforge.net/frs/download.php/2384/md5-1.0.2.tar.gz
tar xfz md5-1.0.2.tar.gz
cd md5-1.0.2
make
make install
cd ..
wget http://luaforge.net/frs/download.php/1678/luazlib-0.0.1.rar

wget wget http://www.rarlab.com/rar/unrar-3.7.7-centos.gz
gunzip unrar-3.7.7-centos.gz
chmod +x unrar-3.7.7-centos
./unrar-3.7.7-centos x luazlib-0.0.1.rar
cd luazlib-0.0.1
make
make install

export LUA_CFLAGS="-I/usr/local/include"
export LUA_LIBS="-L/usr/local/lib -llua"

cd LIGHTTPD_DIRECTORY
./configure -with-lua
make
make install
</pre>
<p>All done!</p>
<p>Thanks to:<br />
<a href="http://gadelkareem.com/2007/09/17/dynamic-content-caching-using-lighty-mod_magnet-lua/">http://gadelkareem.com/2007/09/17/dynamic-content-caching-using-lighty-mod_magnet-lua/</a> &#038;&#038; <a href="http://www.verlihub-project.org/doku.phpid=howto_install_lua_library_on_64_bit">http://www.verlihub-project.org/doku.phpid=howto_install_lua_library_on_64_bit</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluescripts.net/2009/08/lighttpd-mod_magnet-on-centos-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting Loopback Device issue on CentOS</title>
		<link>http://bluescripts.net/2009/08/interesting-loopback-device-issue-on-centos/</link>
		<comments>http://bluescripts.net/2009/08/interesting-loopback-device-issue-on-centos/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 23:03:17 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Loopback device]]></category>

		<guid isPermaLink="false">http://bluescripts.net/2009/08/interesting-loopback-device-issue-on-centos/</guid>
		<description><![CDATA[Was playing around with using the loopback devices to mount some OS images on CentOS and following the losetup followed by a mount command would indeed mount the image, but umount wouldn&#8217;t unmount it and would leave it stagnant, leaving me with this error: ioctl: LOOP_CLR_FD: Device or resource busy Interestingly enough though the lomount [...]]]></description>
			<content:encoded><![CDATA[<p>Was playing around with using the loopback devices to mount some OS images on CentOS and following the losetup followed by a mount command would indeed mount the image, but umount wouldn&#8217;t unmount it and would leave it stagnant, leaving me with this error:</p>
<pre>ioctl: LOOP_CLR_FD: Device or resource busy</pre>
<p>Interestingly enough though the lomount command</p>
<pre>lomount -diskimage OS.img -partition 1  /MOUNTFOLDER</pre>
<p>and then using umount to unmount the mountfolder would unmount the loopback device properly and free it for re-use.</p>
<p>Hope this helps someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://bluescripts.net/2009/08/interesting-loopback-device-issue-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS w/out Yum</title>
		<link>http://bluescripts.net/2008/09/centos-wout-yum/</link>
		<comments>http://bluescripts.net/2008/09/centos-wout-yum/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 15:34:26 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://bluescripts.net/?p=75</guid>
		<description><![CDATA[Took me about 20 minutes to figure out why this wasn&#8217;t working when installing yum: After you follow the instructions atÂ http://wiki.centos.org/TipsAndTricks/BrokenVserver You get to the part where your trying to install rpm-python. This doesn&#8217;t work quite as you&#8217;d hoped.Â Error: # rpm -Uvh rpm-python-4.4.2-48.el5.i386.rpm warning: rpm-python-4.4.2-48.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 [...]]]></description>
			<content:encoded><![CDATA[<p>Took me about 20 minutes to figure out why this wasn&#8217;t working when installing yum:</p>
<p>After you follow the instructions atÂ <a href="http://wiki.centos.org/TipsAndTricks/BrokenVserver">http://wiki.centos.org/TipsAndTricks/BrokenVserver</a><br />
You get to the part where your trying to install rpm-python. This doesn&#8217;t work quite as you&#8217;d hoped.Â </p>
<p>Error:</p>
<pre>
# rpm -Uvh rpm-python-4.4.2-48.el5.i386.rpm

warning: rpm-python-4.4.2-48.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897

error: Failed dependencies:

Â Â  Â  Â  Â rpm = 4.4.2-48.el5 is needed by rpm-python-4.4.2-48.el5.i386
</pre>
<p>So clear all the other RPM&#8217;s you installed, download these three from the repository (varies if your using 64 bit or i386)</p>
<p>rpm-4.4.2-48.el5.i386.rpm Â  Â  Â  rpm-python-4.4.2-48.el5.i386.rpm</p>
<p>rpm-libs-4.4.2-48.el5.i386.rpm Â </p>
<p>Make sure all these are present then run:</p>
<pre>rpm -Uvh *.rpm</pre>
<p>Â This will install the libs and the RPM update at the same time so the error isn&#8217;t thrown.</pre>
]]></content:encoded>
			<wfw:commentRss>http://bluescripts.net/2008/09/centos-wout-yum/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
