<?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>itlivewire dev blog &#187; linux</title>
	<atom:link href="http://itlivewire.com/devblog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://itlivewire.com/devblog</link>
	<description>Just another web development blog...</description>
	<lastBuildDate>Mon, 16 Apr 2012 12:37:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Find files that are created more than 7 days and delete them using bash</title>
		<link>http://itlivewire.com/devblog/2012/01/18/find-files-that-are-created-more-than-7-days-and-delete-them-using-bash/</link>
		<comments>http://itlivewire.com/devblog/2012/01/18/find-files-that-are-created-more-than-7-days-and-delete-them-using-bash/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 23:31:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=475</guid>
		<description><![CDATA[Here we will use the find -mtime and xargs commands Complete script: find '/home/user/data/' -name '*.txt' -mtime +7 &#124; xargs rm Explanation: find -mtime displays files made based on given number of days find '/home/user/data/' -name '*.txt' -mtime +7 xargs captures the result of a previous command and pass it as an argument for another [...]]]></description>
			<content:encoded><![CDATA[<p>Here we will use the <strong>find -mtime</strong> and <strong>xargs</strong> commands</p>
<p>Complete script:</p>
<pre class="brush: php;">find '/home/user/data/' -name '*.txt' -mtime +7 | xargs rm</pre>
<p>Explanation:<br />
<strong>find -mtime</strong> displays files made based on given number of days</p>
<p>    <code>find '/home/user/data/' -name '*.txt' -mtime +7</code></p>
<p><strong>xargs</strong> captures the result of a previous command and pass it as an argument for another function</p>
<p>    <code>find '/home/user/data/' -name '*.txt' -mtime +7 | xargs rm</code></p>
<p>The result of the find command is passed to another function rm which then removes the files</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2012/01/18/find-files-that-are-created-more-than-7-days-and-delete-them-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu certified laptops and hardware for 10.10 and 11.04</title>
		<link>http://itlivewire.com/devblog/2011/11/14/ubuntu-certified-laptops-and-hardware-for-10-10-and-11-04/</link>
		<comments>http://itlivewire.com/devblog/2011/11/14/ubuntu-certified-laptops-and-hardware-for-10-10-and-11-04/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 22:24:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=447</guid>
		<description><![CDATA[Check if your laptop is fully compatible with ubuntu http://www.ubuntu.com/certification/]]></description>
			<content:encoded><![CDATA[<p>Check if your laptop is fully compatible with ubuntu</p>
<p><a href="http://www.ubuntu.com/certification/">http://www.ubuntu.com/certification/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/11/14/ubuntu-certified-laptops-and-hardware-for-10-10-and-11-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion svn auto deploy project on commit</title>
		<link>http://itlivewire.com/devblog/2011/04/14/subversion-svn-auto-deploy-project-on-commit/</link>
		<comments>http://itlivewire.com/devblog/2011/04/14/subversion-svn-auto-deploy-project-on-commit/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 10:19:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=395</guid>
		<description><![CDATA[Automate the deploy of your project on svn commit, this require you have access to your svn server On your server got to your repo folder /usr/local/svn/my_repo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; then go to hooks folder /usr/local/svn/my_repo/hooks &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; then copy the post-commit.tpl to post-commit cp post-commit.tpl post-commit the post-commit file is a file called by subversion after every [...]]]></description>
			<content:encoded><![CDATA[<p>Automate the deploy of your project on svn commit, this require you have access to your svn server</p>
<p>On your server got to your repo folder<br />
<strong>/usr/local/svn/my_repo</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
then go to hooks folder<br />
<strong>/usr/local/svn/my_repo/hooks</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
then copy the post-commit.tpl to post-commit<br />
<strong>cp post-commit.tpl post-commit</strong></p>
<p>the post-commit file is a file called by subversion after every commit, basically its a bash script<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
chmod the post-commit file<br />
<strong> chmod +x post-commit</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Now lets edit the post-commit file.<br />
Lets say your project dev directory resides on the same server, the post-commit file has content so we erase them all and add this </p>
<p>     <strong><br />
     #!bin/usr/bash<br />
     cd /home/dev_website<br />
     svn up .<br />
     </strong></p>
<p>what the bash does is change directory to the /home/dev_website then execute the svn update command<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>and were done, next time there is no need to log in to the server just to svn update of your dev website.</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/04/14/subversion-svn-auto-deploy-project-on-commit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the version number of your redhat or fedora core</title>
		<link>http://itlivewire.com/devblog/2010/04/07/how-to-get-the-version-number-of-your-redhat-or-fedora-core/</link>
		<comments>http://itlivewire.com/devblog/2010/04/07/how-to-get-the-version-number-of-your-redhat-or-fedora-core/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 05:14:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=350</guid>
		<description><![CDATA[cat /etc/redhat-release]]></description>
			<content:encoded><![CDATA[<p><strong>cat /etc/redhat-release</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/04/07/how-to-get-the-version-number-of-your-redhat-or-fedora-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>open ssl generate a random password</title>
		<link>http://itlivewire.com/devblog/2009/12/02/open-ssl-generate-a-random-password/</link>
		<comments>http://itlivewire.com/devblog/2009/12/02/open-ssl-generate-a-random-password/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 02:37:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[open ssl]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=206</guid>
		<description><![CDATA[Command to generate a decent random password openssl rand -base64 6]]></description>
			<content:encoded><![CDATA[<p>Command to generate a decent random password</p>
<p><code><strong>openssl rand -base64 6</strong></code></p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2009/12/02/open-ssl-generate-a-random-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

