<?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>blog.timc3.com &#187; Linux</title>
	<atom:link href="http://blog.timc3.com/category/computing/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.timc3.com</link>
	<description>providing news and views since 2003</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:59:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<link rel="http://api.friendfeed.com/2008/03#sup" xmlns="http://www.w3.org/2005/Atom" type="application/json" href="http://friendfeed.com/api/public-sup.json#9e509d204d"/>		<item>
		<title>Resizing ext3 or ext4 partition for virtual image</title>
		<link>http://blog.timc3.com/2011/05/02/resizing-ext3-or-ext4-partition-for-virtual-image/</link>
		<comments>http://blog.timc3.com/2011/05/02/resizing-ext3-or-ext4-partition-for-virtual-image/#comments</comments>
		<pubDate>Mon, 02 May 2011 08:41:43 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=864</guid>
		<description><![CDATA[Note: please backup and make sure that you have a copy of your data and virtual images, this can go wrong and I won&#8217;t be held responsible. This worked for me, and might not work for you. For ext4 please use the latest GParted. As I migrated from raw or qcow images, some of the [...]]]></description>
			<content:encoded><![CDATA[<p>Note: <strong>please backup and make sure that you have a copy of your data and virtual images, this can go wrong and I won&#8217;t be held responsible</strong>. This worked for <a target="_self" href="mailto:tim@nospamplease.timc3.com">me</a>, and might not work for you. For ext4 please use the latest GParted.</p>
<p>As I migrated from raw or qcow images, some of the partition sizes that I have to work with are not as big as they could be. So I need to resize.</p>
<p>I generally give some of my hosts a 24Gb LVM virtual group each. But the image files can be as small as 2Gb &#8211; A lot of wasted space which the filesystem on the image might as well have. These instructions assume that there are only two partitions, a main partition, and a second <a target="_blank" href="http://www.debian.org">Linux</a> swap partition (either on an extended partition or a primary). </p>
<p>First taken the image offline, then get the name of image that you wish to resize, then the disk storage items:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vm<span style="color: #000000; font-weight: bold;">/</span><br />
lvdisplay</div></div>
<p>In my case it was &#8220;/dev/vdisk05/vm-102-disk-1&#8243;. Then you can check to see how large the volume group is set to (vgdisplay) resize:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">lvresize <span style="color: #660033;">-L</span> 23G <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vdisk05<span style="color: #000000; font-weight: bold;">/</span>vm-<span style="color: #000000;">102</span>-disk-<span style="color: #000000;">1</span></div></div>
<p>Next I mount a <a href="http://www.sysresccd.org/">SystemRescueCD</a> on the CDRom, and make sure its the first item in the boot sequence. Then boot into the system, go for the first choice in SystemRescueCD, and it will give you a rootprompt (I am VNC&#8217;ing into the system so that I can access the console as if using a physical machine):</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#Change the passwd so that you can ssh in if you need to.</span><br />
<span style="color: #c20cb9; font-weight: bold;">passwd</span><br />
<span style="color: #666666; font-style: italic;">#Start the GUI so you can run Gparted (First choice again).</span><br />
wizard</div></div>
<p>From a command prompt do (check file system, repair, remove journal):</p>
<ol>
<li>fsck -n /dev/sda1</li>
<li>e2fsck -f /dev/sda1</li>
<li>tune2fs -O ^has_journal /dev/sda1</li>
</ol>
<p>Then do the following in the GUI: </p>
<ol>
<li>Choose CD > System > GParted</li>
<li>Delete the swap partition as it will be the last</li>
<li>Resize partition, leaving some space for a new swap partition</li>
<li>Create a swap (type <a target="_blank" href="http://www.debian.org">Linux</a>-swap) partition twice the size of the amount of RAM you allocate to the image</li>
<li>Click Edit > Apply all operations</li>
<li>Close GParted</li>
</ol>
<p>Back on the command prompt do (repair,  check file system, journal, shutdown):</p>
<ol>
<li>e2fsck -f /dev/sda1</li>
<li>fsck -n /dev/sda1</li>
<li>tune2fs -j /dev/sda1</li>
<li>shutdown -h now</li>
</ol>
<p>Remove the CDRom device, and change the boot order back then start the Virtual machine. Issue a df -h to see if the partition has changed. It should have done!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2011/05/02/resizing-ext3-or-ext4-partition-for-virtual-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtual host QCow convert to LVM</title>
		<link>http://blog.timc3.com/2011/05/01/virtual-host-qcow-convert-to-lvm/</link>
		<comments>http://blog.timc3.com/2011/05/01/virtual-host-qcow-convert-to-lvm/#comments</comments>
		<pubDate>Sun, 01 May 2011 11:47:16 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=860</guid>
		<description><![CDATA[Sometimes its better to have your virtual images running directly of LVM instead of using raw or QCow formatted files. So how do we convert? Basically you have to make sure that you have a volume group, of the right size or bigger and then dd the file into a LV on that volume group: [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes its better to have your virtual images running directly of LVM instead of using raw or QCow formatted files. So how do we convert? Basically you have to make sure that you have a volume group, of the right size or bigger and then dd the file into a LV on that volume group:</p>
<p>This should in the directory where you have the image:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># Get the filesize of the raw image in Kilobytes.</span><br />
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lk</span><br />
<span style="color: #666666; font-style: italic;">#Create lv on vdisk05 (the VG)</span><br />
lvcreate <span style="color: #660033;">-L</span> 5242880K <span style="color: #660033;">-n</span> vm-<span style="color: #000000;">102</span>-disk-<span style="color: #000000;">1</span> vdisk05<br />
<span style="color: #666666; font-style: italic;">#Convert from QCow to Raw</span><br />
qemu-img convert bld-ubuntu-<span style="color: #000000;">1004</span>-<span style="color: #000000;">2</span>.qcow2 <span style="color: #660033;">-O</span> raw bld-ubuntu-<span style="color: #000000;">1004</span>-<span style="color: #000000;">2</span>.raw<br />
<span style="color: #666666; font-style: italic;">#Copy the image into the lv:</span><br />
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=bld-ubuntu-<span style="color: #000000;">1004</span>-<span style="color: #000000;">2</span>.raw <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vdisk05<span style="color: #000000; font-weight: bold;">/</span>vm-<span style="color: #000000;">102</span>-disk-<span style="color: #000000;">1</span></div></div>
<p>Then change the configuration of your QEMU or whatever you are using on your virtualisation platform.</p>
<p>Sorry for the briefness of the instructions, its mainly for my own benefit and if you are doing this you should really know about LVM, dd and ls.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2011/05/01/virtual-host-qcow-convert-to-lvm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Jenkins nginx proxy script</title>
		<link>http://blog.timc3.com/2011/04/15/my-jenkins-nginx-proxy-script/</link>
		<comments>http://blog.timc3.com/2011/04/15/my-jenkins-nginx-proxy-script/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 12:35:11 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=851</guid>
		<description><![CDATA[Here is a very simple configuration for nginx to proxy Jenkins (the new name for the un-Oracle&#8217;d Hudson) server &#123; &#160; &#160; &#160; &#160; listen &#160; 80 default; &#160; &#160; &#160; &#160; server_name &#160;bld-master localhost; &#160; &#160; &#160; &#160; root /var/lib/jenkins; &#160; &#160; &#160; &#160; access_log &#160;/var/log/nginx/jenkins.access.log; &#160; &#160; &#160; &#160; location / &#123; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a very simple configuration for nginx to proxy Jenkins (the new name for the un-Oracle&#8217;d Hudson)</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">server <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; <span style="color: #000000;">80</span> default;<br />
&nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;bld-master localhost;<br />
&nbsp; &nbsp; &nbsp; &nbsp; root <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>jenkins;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp;<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>jenkins.access.log;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; location <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass &nbsp; &nbsp; &nbsp; &nbsp;http:<span style="color: #000000; font-weight: bold;">//</span>127.0.0.1:<span style="color: #000000;">8080</span><span style="color: #000000; font-weight: bold;">/</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_redirect &nbsp; &nbsp;off;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp;Host &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">$http_host</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp;X-Real-IP &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #007800;">$remote_addr</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp;X-Forwarded-For &nbsp;<span style="color: #007800;">$proxy_add_x_forwarded_for</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2011/04/15/my-jenkins-nginx-proxy-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting MAC Addresses on Debian and Ubuntu</title>
		<link>http://blog.timc3.com/2011/04/14/848/</link>
		<comments>http://blog.timc3.com/2011/04/14/848/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 10:34:48 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=848</guid>
		<description><![CDATA[I recently had a problem with having duplicate MAC addresses on my network for a couple of machines that I was using in a Linux KVM cluster. Flashing the firmware on the motherboards seem to have reset the MAC address to a default (thanks ASUS) that was the same on each board. Changing the MAC [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a problem with having duplicate MAC addresses on my network for a couple of machines that I was using in a <a target="_blank" href="http://www.debian.org">Linux</a> KVM cluster. Flashing the firmware on the motherboards seem to have reset the MAC address to a default (thanks ASUS) that was the same on each board.</p>
<p>Changing the MAC address back seems like quite a hard job and looking around on the internet it seems that many people are doing this the hard way with shell scripts and so forth. Instead its easy enough to do this using the scripts that are already setting up the network for <a target="_blank" href="http://www.debian.org">Debian</a> (and I am sure this will work for Ubuntu just as well).</p>
<p>Edit /etc/network/interfaces like so:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">auto eth0<br />
iface eth0 inet manual<br />
pre-up <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #007800;">$IFACE</span> hw ether 00:01:02:03:04:05<br />
pre-up <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #007800;">$IFACE</span> up<br />
pre-down <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #007800;">$IFACE</span> down</div></div>
<p>What this is doing is manually controlling the startup and shutdown of the eth0 interface. I am using bridging on my KVM boxes, so I don&#8217;t actually have to set up the IP address (albeit DHCP or manual IP configuration), but that aside the interesting parts are what happens in pre-up. Firstly I set the hardware address to a new address (and please change it from the example above &#8211; thats not the actual one I used either), then we tell it to bring the interface up.</p>
<p>We also use pre-down to tell it what happens when stopping the network service.</p>
<p>Probably better than messing around with Shell scripts.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2011/04/14/848/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time saving tips for linux</title>
		<link>http://blog.timc3.com/2011/03/25/time-saving-tips-for-linux/</link>
		<comments>http://blog.timc3.com/2011/03/25/time-saving-tips-for-linux/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 09:23:19 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=845</guid>
		<description><![CDATA[Really nice little round up on Quora: http://www.quora.com/Linux/What-are-some-time-saving-tips-that-every-Linux-user-should-know With a follow up on hacker news: http://news.ycombinator.com/item?id=2361978 Probably going to be more of these.]]></description>
			<content:encoded><![CDATA[<p>Really nice little round up on Quora:</p>
<p><a href="http://www.quora.com/Linux/What-are-some-time-saving-tips-that-every-Linux-user-should-know">http://www.quora.com/Linux/What-are-some-time-saving-tips-that-every-<a target="_blank" href="http://www.debian.org">Linux</a>-user-should-know</a></p>
<p>With a follow up on hacker news:</p>
<p><a href="http://news.ycombinator.com/item?id=2361978">http://news.ycombinator.com/item?id=2361978</a></p>
<p>Probably going to be more of these.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2011/03/25/time-saving-tips-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling RabbitMQ on Ubuntu 10.04</title>
		<link>http://blog.timc3.com/2010/08/23/compiling-rabbitmq-on-ubuntu-10-04/</link>
		<comments>http://blog.timc3.com/2010/08/23/compiling-rabbitmq-on-ubuntu-10-04/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 15:05:33 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RabbitMQ STOMP Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=816</guid>
		<description><![CDATA[As part of my on going effort for realtime web updates on one of our applications I needed to install RabbitMQ HEAD (That is the development head) with the RabbitMQ STOMP adaptor. Talking on IRC channel it was recommended to me to install from source, but unfortunately the documentation is out of date. So the [...]]]></description>
			<content:encoded><![CDATA[<p>As part of my on going effort for realtime web updates on one of our applications I needed to install RabbitMQ HEAD (That is the development head) with the RabbitMQ STOMP adaptor. Talking on IRC channel it was recommended to <a target="_self" href="mailto:tim@nospamplease.timc3.com">me</a> to install from source, but unfortunately the documentation is out of date. So the following will do it cleanly:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> erlang-crypto erlang-snmp erlang-syntax-tools libsctp1 lksctp-tools erlang-runtime-tools erlang-mnesia erlang-public-key erlang-os-mon erlang-ssl erlang-base erlang-parsetools mercurial git-core build-essential erlang-dev <span style="color: #c20cb9; font-weight: bold;">zip</span> erlang-tools erlang-src python-simplejson &nbsp;erlang-edoc<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<br />
hg clone http:<span style="color: #000000; font-weight: bold;">//</span>hg.rabbitmq.com<span style="color: #000000; font-weight: bold;">/</span>rabbitmq-public-umbrella<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> rabbitmq-public-umbrella<br />
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">co</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span></div></div>
<p><strong>Updated:</strong> The following will create a <a target="_blank" href="http://www.debian.org">Debian</a> style package and install (replace ** with the version numbering that you wish to use:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> cdbs debhelper xmlto<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> rabbitmq-server<br />
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">VERSION</span>=<span style="color: #000000;">1.8</span>.<span style="color: #000000; font-weight: bold;">**</span> srcdist<br />
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">-C</span> packaging<span style="color: #000000; font-weight: bold;">/</span>debs<span style="color: #000000; font-weight: bold;">/</span>Debian <span style="color: #007800;">UNOFFICIAL_RELEASE</span>=<span style="color: #c20cb9; font-weight: bold;">true</span> package<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> packaging<span style="color: #000000; font-weight: bold;">/</span>debs<span style="color: #000000; font-weight: bold;">/</span>Debian<span style="color: #000000; font-weight: bold;">/</span>rabbitmq-server_1.8.<span style="color: #000000; font-weight: bold;">**</span>-<span style="color: #000000;">1</span>_all.deb</div></div>
<p>Activating the STOMP plugin:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> rabbitmq-public-umbrella<span style="color: #000000; font-weight: bold;">/</span>rabbitmq-stomp<span style="color: #000000; font-weight: bold;">/</span>dist<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> amqp_client.ez <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rabbitmq<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rabbitmq_server-1.8.1<span style="color: #000000; font-weight: bold;">/</span>plugins<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> rabbit_stomp.ez <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rabbitmq<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rabbitmq_server-1.8.1<span style="color: #000000; font-weight: bold;">/</span>plugins</div></div>
<p>Configuration file:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">RABBITMQ_PLUGINS_DIR</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rabbitmq<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rabbitmq_server-1.8.1<span style="color: #000000; font-weight: bold;">/</span>plugins<br />
<span style="color: #007800;">SERVER_START_ARGS</span>=<span style="color: #ff0000;">'-rabbit_stomp listeners [{&quot;0.0.0.0&quot;,61613}]'</span></div></div>
<p>Restart to activate (the activation script for plugins is depreciated):</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>rabbitmq-server restart</div></div>
<p>And you should have a working RabbitMQ on Ubuntu with a STOMP adaptor.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2010/08/23/compiling-rabbitmq-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wake On Lan with Ubuntu</title>
		<link>http://blog.timc3.com/2010/08/06/wake-on-lan-with-ubuntu/</link>
		<comments>http://blog.timc3.com/2010/08/06/wake-on-lan-with-ubuntu/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 12:08:22 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=805</guid>
		<description><![CDATA[Wake-on-lan is incredibly useful for those scenarios where you have more than one machine on a network, but you don&#8217;t always want to have them running but they are needed sometimes. To setup, make sure that the Motherboard and NIC support is there from your manufacturer. Sometimes it has to be enabled, such as making [...]]]></description>
			<content:encoded><![CDATA[<p>Wake-on-lan is incredibly useful for those scenarios  where you have more than one machine on a network, but you don&#8217;t always want to have them running but they are needed sometimes.</p>
<p>To setup, make sure that the Motherboard and NIC support is there from your manufacturer. Sometimes it has to be enabled, such as making sure that it uses S3 for shutdown, and that PCI wake is supported.</p>
<p>Next you need to check support from the operating system, I am using Ubuntu 10.04, but this should work for other operating systems. Install ethtool, and then check against the ethernet adapter (eth0 in my example).</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> ethtool<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ethtool eth0</div></div>
<p>If support is enabled, but it is turned off you will see:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Supports Wake-on: g<br />
Wake-on: d</div></div>
<p>So we turn it on:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> ethtool <span style="color: #660033;">-s</span> eth0 wol g</div></div>
<p>Now we need to make sure that its always enabled everytime we restart:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> wakeonlan</div></div>
<p>And in that file:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
ethtool <span style="color: #660033;">-s</span> eth0 wol g<br />
<span style="color: #7a0874; font-weight: bold;">exit</span></div></div>
<p>Now make sure that its put into the correct runlevels:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> &nbsp;<span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x wakeonlan<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> wakeonlan defaults</div></div>
<p>And that is it. It should be supported that you can wake the machine from another computer/server using your favourite wakeup utility ( such as wakeonlan ).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2010/08/06/wake-on-lan-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMWare Ubuntu IP address change</title>
		<link>http://blog.timc3.com/2010/05/04/vmware-ubuntu-ip-address-change/</link>
		<comments>http://blog.timc3.com/2010/05/04/vmware-ubuntu-ip-address-change/#comments</comments>
		<pubDate>Tue, 04 May 2010 16:00:11 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=798</guid>
		<description><![CDATA[I always have this problem when moving VMWare images of Ubuntu, the most recent of a 10.04 LTS Server. Whenever you move or copy a VMWare image it assigns a new Mac address and Ubuntu starts without properly bringing up the interface. Really annoying when you are using VMWare server without a console. To make [...]]]></description>
			<content:encoded><![CDATA[<p>I always have this problem when moving VMWare images of Ubuntu, the most recent of a 10.04 LTS Server. Whenever you move or copy a VMWare image it assigns a new Mac address and Ubuntu starts without properly bringing up the interface.</p>
<p>Really annoying when you are using VMWare server without a console.</p>
<p>To make it grab the IP Address again, simply remove the rule:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>udev<span style="color: #000000; font-weight: bold;">/</span>rules.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">70</span>-persistent-net.rules</div></div>
<p>Then restart.</p>
<p>Of course before you move the image you could remove the rule and not have them problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2010/05/04/vmware-ubuntu-ip-address-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django on RedHat or CentOS</title>
		<link>http://blog.timc3.com/2010/03/26/django-on-redhat-or-centos/</link>
		<comments>http://blog.timc3.com/2010/03/26/django-on-redhat-or-centos/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 10:07:21 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=769</guid>
		<description><![CDATA[I am normally using Debian, Ubuntu or even Suse for deploying Django, but a recent customer needed to deploy on Red Hat Enterprise Server 5. We decided beforehand to test deployment on RHEL5 and also on CentOS 5.4 and so these instructions should work for both environments. NginX will be used as the webserver. The [...]]]></description>
			<content:encoded><![CDATA[<p>I am normally using <a target="_blank" href="http://www.debian.org">Debian</a>, Ubuntu or even Suse for deploying Django, but a recent customer needed to deploy on Red Hat Enterprise Server 5.</p>
<p>We decided beforehand to test deployment on RHEL5 and also on CentOS 5.4 and so these instructions should work for both environments. NginX will be used as the webserver.</p>
<p>The first thing I like to do is to upgrade the repository and add EPEL. This wasn&#8217;t needed I found on the RedHat box I was using, but was needed on CentOS but your mileage might vary. It should be noted that we made the system as up to date as possible with patches and yum updates.</p>
<p>I won&#8217;t be covering the database setup, it is assumed that this is already setup and done. I also won&#8217;t be covering the actually placing of the Django application anywhere.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<br />
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.fedora.redhat.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>epel<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>epel-release-<span style="color: #000000;">5</span>-<span style="color: #000000;">3</span>.noarch.rpm<br />
<span style="color: #c20cb9; font-weight: bold;">yum</span> repolist<br />
<span style="color: #c20cb9; font-weight: bold;">yum update</span><br />
<span style="color: #c20cb9; font-weight: bold;">yum search</span> zlib<br />
<span style="color: #c20cb9; font-weight: bold;">yum install</span> zlib-devel<span style="color: #000000; font-weight: bold;">*</span><br />
<span style="color: #c20cb9; font-weight: bold;">yum install</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #c20cb9; font-weight: bold;">make</span></div></div>
<p>Python 2.4 ships with both RHEL5 and CentOS 5 and is needed for the packaging environment YUM so I would advise not to replace it but just compile and install 2.5.5 (or 2.6) next to it.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> src<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> src<br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.python.org<span style="color: #000000; font-weight: bold;">/</span>ftp<span style="color: #000000; font-weight: bold;">/</span>python<span style="color: #000000; font-weight: bold;">/</span>2.5.5<span style="color: #000000; font-weight: bold;">/</span>Python-2.5.5.tgz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> fxz Python-2.5.5.tgz<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> Python-2.5.5<br />
.<span style="color: #000000; font-weight: bold;">/</span>configure<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span><br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>src<br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>pypi.python.org<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2.5</span><span style="color: #000000; font-weight: bold;">/</span>s<span style="color: #000000; font-weight: bold;">/</span>setuptools<span style="color: #000000; font-weight: bold;">/</span>setuptools-0.6c11-py2.5.egg<span style="color: #666666; font-style: italic;">#md5=64c94f3bf7a72a13ec83e0b24f2749b2</span><br />
<span style="color: #c20cb9; font-weight: bold;">sh</span> setuptools-0.6c11-py2.5.egg</div></div>
<p>Now we need to build and install NginX. I choose this primarily because of my experience with it, (I have used Apache2 a lot  but its archaic ) and because of its speed.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum install</span> pcre-devel.i386 openssl-devel.i386<br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>nginx.org<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>nginx-0.7.65.tar.gz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> fxz nginx-0.7.65.tar.gz<br />
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--sbin-path</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin <span style="color: #660033;">--conf-path</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf <span style="color: #660033;">--pid-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>nginx.pid <span style="color: #660033;">--error-log-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>error.log <span style="color: #660033;">--http-log-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>access.log --with-http_ssl_module --with-http_flv_module <span style="color: #660033;">--with-cc-opt</span>=<span style="color: #ff0000;">&quot;-I /usr/include/pcre&quot;</span> <br />
<span style="color: #c20cb9; font-weight: bold;">make</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span><br />
<span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx<br />
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig nginx on<br />
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig <span style="color: #660033;">--list</span> nginx</div></div>
<p>There is a decent RedHat init.d script here: <a href="http://wiki.nginx.org/RedHatNginxInitScript">http://wiki.nginx.org/RedHatNginxInitScript</a>, but remember that I have changed the installation location above so you will need to change the location in that script of nginx from /usr/sbin/nginx to /usr/local/sbin/nginx</p>
<p>You will also need a nginx.conf configuration script for /etc/nginx/ or you could roll your own using sites-available, sites-enabled pattern.  I will attach the script soon.</p>
<p>Now with Python 2.5 installed we can install Django and other requirements:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">easy_install-<span style="color: #000000;">2.5</span> Django<br />
easy_install-<span style="color: #000000;">2.5</span> django-nose<br />
easy_install-<span style="color: #000000;">2.5</span> http:<span style="color: #000000; font-weight: bold;">//</span>dist.repoze.org<span style="color: #000000; font-weight: bold;">/</span>PIL-1.1.6.tar.gz<br />
easy_install-<span style="color: #000000;">2.5</span> flup</div></div>
<p>I am using easy_install here as that is the most widely used tool, but pip with a requirements file is a better solution.</p>
<p>Now we need a database adapter. I am using PostgreSQL 8.4.2, if you are using MySQL, Oracle or some other database you will need to follow the recommended route for the Python adapter.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum search</span> psycopg2<br />
<span style="color: #c20cb9; font-weight: bold;">yum install</span> python-psycopg2.i386 <span style="color: #7a0874; font-weight: bold;">&#40;</span>This will <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #000000; font-weight: bold;">for</span> the old Python<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #c20cb9; font-weight: bold;">yum install</span> postgresql-devel<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>src<br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>initd.org<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>psycopg<span style="color: #000000; font-weight: bold;">/</span>psycopg2-2.0.13.tar.gz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz psycopg2-2.0.13.tar.gz<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> psycopg2-2.0.13<br />
<span style="color: #c20cb9; font-weight: bold;">vim</span> setup.cfg</div></div>
<p>Change the location of pg_config:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp;<span style="color: #007800;">pg_config</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pg_config</div></div>
<p>And now install:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">python2.5 setup.py build<br />
python2.5 setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></div></div>
<p>Then you need to install your application. This is really specific to your needs. I choose to install the files in /opt/cantemo/application-name as that is specific to our solutions, but RedHat style might mean that you wish to install somewhere else.</p>
<p>Lastly you will want to have your application start easily and also make sure that it starts if the machine ever reboots. To do this I am going to install the start-stop-daemon that is used on <a target="_blank" href="http://www.debian.org">Debian</a> based <a target="_blank" href="http://www.debian.org">Linux</a> distros on Redhat. I read some threads that it will but there is no ETA on that.</p>
<p>You should download the initd script for Django from <a href="http://code.djangoproject.com/wiki/InitdScriptForLinux">http://code.djangoproject.com/wiki/InitdScriptForLinux</a>. Change the RUN_AS user to the user on RedHat that you are going to use for running Nginx. By default this is apache.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>src<br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>developer.axis.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>distribution<span style="color: #000000; font-weight: bold;">/</span>apps-sys-utils-start-stop-daemon-IR1_9_18-<span style="color: #000000;">2</span>.tar.gz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzf</span> apps-sys-utils-start-stop-daemon-IR1_9_18-<span style="color: #000000;">2</span>.tar.gz<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>sys-utils<span style="color: #000000; font-weight: bold;">/</span>start-stop-daemon-IR1_9_18-<span style="color: #000000;">2</span><br />
<span style="color: #c20cb9; font-weight: bold;">gcc</span> start-stop-daemon.c <span style="color: #660033;">-o</span> start-stop-daemon<br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> start-stop-daemon <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>start-stop-daemon<br />
<span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.id<span style="color: #000000; font-weight: bold;">/</span>fastcgi<br />
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>fastcgi<br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>fastcgi start<br />
<span style="color: #c20cb9; font-weight: bold;">ps</span> ax<br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>fastcgi stop<br />
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig <span style="color: #660033;">--add</span> fastcgi<br />
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig <span style="color: #660033;">--list</span> fastcgi</div></div>
<p>Lastly make sure that your application directories have the correct user permissions but you should be able to start everything by issuing the following commands:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx start<br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>fastcgi start</div></div>
<p>Eric Florenzano posted a nice tutorial on <a href="http://djangoadvent.com/1.2/deploying-django-site-using-fastcgi/">deploying django using FastCGI</a> so also check that out, but I didn&#8217;t have much luck with daemontools on CentOS, and didn&#8217;t bother trying on RedHat. I suggest instead using start-stop-daemon. Check it out for other hints and tips though, particularly on prefork vs. threaded, pip, and more nginx configuration tips.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2010/03/26/django-on-redhat-or-centos/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Postfix and Gmail</title>
		<link>http://blog.timc3.com/2010/03/20/postfix-and-gmail/</link>
		<comments>http://blog.timc3.com/2010/03/20/postfix-and-gmail/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 12:07:03 +0000</pubDate>
		<dc:creator>timc3</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.timc3.com/?p=759</guid>
		<description><![CDATA[I have been using Hudson as a continuous integration server for a short while now and I am super impressed. I have it running on Debian and is really quite feature-full. One thing that I did have a problem with was with the standard Debian 5 Java environment there was a problem using TLS for [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using <a href="http://hudson-ci.org/">Hudson</a> as a continuous integration server for a short while now and I am super impressed. I have it running on <a target="_blank" href="http://www.debian.org">Debian</a> and is really quite feature-full.</p>
<p>One thing that I did have a problem with was with the standard <a target="_blank" href="http://www.debian.org">Debian</a> 5 Java environment there was a problem using TLS for mail it seemed, and I didn&#8217;t just want to send stuff to gmail&#8217;s SMTP server all the time so I configured a local Postfix SMTP relay on another server.</p>
<p>This guide, <a href="http://www.marksanborn.net/linux/send-mail-postfix-through-gmails-smtp-on-a-ubuntu-lts-server/">Send Mail Postfix Through Gmail’s SMTP On A Ubuntu LTS Server</a> helped a lot &#8211; but be sure to read the comments as there are some helpful hints.</p>
<p>So now I have it. Hudson running and sending email through my relay to my gmail accounts.</p>
<p>More information on Hudson soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.timc3.com/2010/03/20/postfix-and-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 21/73 queries in 0.487 seconds using disk: basic
Object Caching 1628/1730 objects using disk: basic

Served from: blog.timc3.com @ 2012-02-10 08:43:01 -->
