<?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>Tony Baltazar &#187; Linux/Unix</title>
	<atom:link href="http://abaltazar.org/category/linuxunix/feed/" rel="self" type="application/rss+xml" />
	<link>http://abaltazar.org</link>
	<description>Technology / Security / Free Software / Programming</description>
	<lastBuildDate>Tue, 27 Jul 2010 06:21:56 +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>Speed up shell scripting</title>
		<link>http://abaltazar.org/2010/07/08/speed-up-shell-scripting/</link>
		<comments>http://abaltazar.org/2010/07/08/speed-up-shell-scripting/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 04:28:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://abaltazar.org/?p=267</guid>
		<description><![CDATA[Once again the book Practical Ruby for System Administration by Ben Hamou taught me some pretty clever Ruby sysadmin scripting tricks. One of the scripts that the author used was to automatically populate the path to the Ruby interpreter, update the permissions to 755, and open the script in vi, all during the same process. [...]]]></description>
			<content:encoded><![CDATA[<p>Once again the book Practical Ruby for System Administration by Ben Hamou taught me some pretty clever Ruby sysadmin scripting tricks.<br />
One of the scripts that the author used was to automatically populate the path to the Ruby interpreter, update the permissions to 755, and open the script in vi, all during the same process.</p>
<p>I took that same concept and enhanced the script to also auto populate the settings if the scripts is written in Bash, Perl, PHP, or Python.</p>
<p>Download <a href="http://www.abaltazar.org/scripts/rnew.rb">rnew.rb</a></p>
<p>-Copy rnew.rb to somewhere within your system PATH.<br />
cp rnew.rb /usr/local/bin</p>
<p>-This should give the ability to use rnew.rb from anywhere you&#8217;re working on.<br />
rnew.rb koolscript.php</p>
<p><br/><br />
-Happy Hacking <img src='http://abaltazar.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2010/07/08/speed-up-shell-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>watch command line utility for alternative for Mac OS X</title>
		<link>http://abaltazar.org/2010/07/04/watch-gnu-command-line-utility-for-mac-os-x/</link>
		<comments>http://abaltazar.org/2010/07/04/watch-gnu-command-line-utility-for-mac-os-x/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 16:34:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://abaltazar.org/?p=259</guid>
		<description><![CDATA[I recently purchased the book Practical Ruby for System Administration by Ben Hamou and one of the cool Ruby one-liner command line expressions is one that mimics the watch command. ruby -e 'system "clear; df -h" while sleep 1' Just like the author, for quite a while I&#8217;ve been kind of annoyed by the fact [...]]]></description>
			<content:encoded><![CDATA[<p>I recently purchased the book Practical Ruby for System Administration by Ben Hamou and one of the cool Ruby one-liner command line expressions is one that mimics the watch command.<br />
<code>ruby -e 'system "clear; df -h" while sleep 1'</code></p>
<p>Just like the author, for quite a while I&#8217;ve been kind of annoyed by the fact that Apple doesn&#8217;t include this really useful command line utility. So inspired by the one-liner script, I hacked a small watch command line alternative for OS X.</p>
<p>Download <a href="http://www.abaltazar.org/scripts/watch.rb">watch.rb</a><br />
sudo cp watch.rb /usr/local/bin<br />
wacht.rb &#8216;<em>UNIX command</em>&#8216;</p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2010/07/04/watch-gnu-command-line-utility-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting a CD to an iso image</title>
		<link>http://abaltazar.org/2010/05/22/converting-cd-to-an-iso-image/</link>
		<comments>http://abaltazar.org/2010/05/22/converting-cd-to-an-iso-image/#comments</comments>
		<pubDate>Sun, 23 May 2010 05:19:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>

		<guid isPermaLink="false">http://abaltazar.org/?p=178</guid>
		<description><![CDATA[Converting a disk to an iso image is easier to do in Linux than in other operating system. dd bs=2k if=/dev/cdrom of=~/disk_image.iso]]></description>
			<content:encoded><![CDATA[<p>Converting a disk to an iso image is easier to do in Linux than in other operating system.<br />
<code>dd bs=2k if=/dev/cdrom of=~/disk_image.iso</code></p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2010/05/22/converting-cd-to-an-iso-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCALE 8x</title>
		<link>http://abaltazar.org/2010/02/22/scale-8x/</link>
		<comments>http://abaltazar.org/2010/02/22/scale-8x/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 04:51:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>

		<guid isPermaLink="false">http://abaltazar.org/?p=100</guid>
		<description><![CDATA[Being my first Linux conference, overall I had a really good time. Seeing and talking to a lot of famous Open Source figures was pretty kool. I only managed to see four different talks. My favorite talk was Jono Bacon&#8217;s talk on the evolution of the Free Software/Open Source movement to what now will be [...]]]></description>
			<content:encoded><![CDATA[<p>Being my first Linux conference, overall I had a really good time. Seeing and talking to a lot of famous Open Source figures was pretty kool.</p>
<p>I only managed to see four different talks.<br />
My favorite talk was Jono Bacon&#8217;s talk on the evolution of the Free Software/Open Source movement to what now will be  fun and rapid development using a new development approach. Essentially, Cononical has developed a Python software development framework called Quickly (reminds me of Ruby on Rails, though I haven&#8217;t hacked much on it to even compare its similarities) That makes it real easy to package (.deb only) and publish.</p>
<p><strong>BSD for Linux users:</strong><br />
This talk was mainly focused on the difference and advantages of using the BSD&#8217; s (NetBSD, FreeBSD, OpenBSD) compared  to Linux. Now more then I ever, I&#8217;m thinking of delaying a DNS BIND server on my local network running on OpenBSD. </p>
<p><strong>Basic Introduction to KDE:</strong><br />
As the name implies, it was definitely, an introduction to KDE 4. Although I prefer using Gnome, the </p>
<p><strong>Python for non programmers:</strong><br />
Also, as the name implies, this was a definite introduction to Python. Although I&#8217;m not big on Python, I definitely felt like an advance Python hacker by being on this talk. </p>
<p>Even though I only attended the Saturday event, I really enjoyed SCALE. It definitely felt like a community conference and it didn&#8217;t felt corporate what so ever.  </p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2010/02/22/scale-8x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_ruby and eRuby</title>
		<link>http://abaltazar.org/2010/02/16/mod_ruby-and-eruby/</link>
		<comments>http://abaltazar.org/2010/02/16/mod_ruby-and-eruby/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 07:13:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://abaltazar.org/?p=75</guid>
		<description><![CDATA[I finally had some time to install mod_ruby and eRuby on my server. Prerequisites: httpd-devel ruby ruby-devel eruby yum install httpd-devel ruby ruby-devel eruby Installing mod_ruby was pretty confusing, as module default compilation is intended for Apache 1.3 (not why this is the case) If you&#8217;re running Apache 2.0 or higher, I managed to successfully [...]]]></description>
			<content:encoded><![CDATA[<p>I finally had some time to install mod_ruby and eRuby on my server. </p>
<p>Prerequisites:<br />
httpd-devel ruby ruby-devel eruby<br />
yum install httpd-devel ruby ruby-devel eruby</p>
<p>Installing mod_ruby was pretty confusing, as module default compilation is intended for Apache 1.3 (not why this is the case)</p>
<p>If you&#8217;re running Apache 2.0 or higher,  I managed to successfully compiled mod_ruby as the following:<br />
 ./configure.rb &#8211;with-apr-includes=/usr/include/apr-1<br />
make<br />
make install</p>
<p>After the install, then its a matter of just adding the custom ruby http conf file to httpd conf.d directory.</p>
<p>SAMPLE:<br />
<code><br />
AddType text/html .rhtml<br />
LoadModule ruby_module modules/mod_ruby.so</p>
<p><IfModule mod_ruby.c><br />
  RubyRequire apache/ruby-run<br />
  #RubyRequire apache/ruby-debug</p>
<p>  RubyRequire apache/eruby-run<br />
  #RubyRequire apache/eruby-debug</p>
<p>  # Execute *.rbx files as Ruby scripts<br />
  <Files *.rbx><br />
    Options ExecCGI<br />
    SetHandler ruby-object<br />
    RubyHandler Apache::RubyRun.instance<br />
    #RubyHandler Apache::RubyDebug.instance<br />
  </Files></p>
<p>  # Handle *.rhtml files as eRuby files<br />
  <Files *.rhtml><br />
    SetHandler ruby-object<br />
    RubyHandler Apache::ERubyRun.instance<br />
    RubyHandler Apache::ERubyDebug.instance<br />
  </Files><br />
</IfModule><br />
</code></p>
<p>Now I can embed Ruby code on standard html pages serving and running natively using Apache and eRuby. <img src='http://abaltazar.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Hence, <a href="http://perlninja.pl">perlninja.pl</a></p>
<p>References:<br />
<a href="http://www.modruby.net/en/">http://www.modruby.net/en/</a><br />
<a href="http://www.ptwit.ac.th/seksan/blog/?p=59">http://www.ptwit.ac.th/seksan/blog/?p=59</a></p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2010/02/16/mod_ruby-and-eruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m LPIC-1 Certified</title>
		<link>http://abaltazar.org/2010/01/30/im-lpic-1-certified/</link>
		<comments>http://abaltazar.org/2010/01/30/im-lpic-1-certified/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 02:42:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>

		<guid isPermaLink="false">http://abaltazar.org/2010/01/30/im-lpic-1-certified/</guid>
		<description><![CDATA[A month after my initial planning, I finally manage to pass both LPIC-1 exams.]]></description>
			<content:encoded><![CDATA[<p>A month after my initial planning, I finally manage to pass both LPIC-1 exams.<br />
<img src="http://www.lpi.org/var/ezwebin_site/storage/images/media/images/lpic1_large/6903-1-eng-US/lpic1_large.gif" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2010/01/30/im-lpic-1-certified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computer upgrades</title>
		<link>http://abaltazar.org/2010/01/10/computer-upgrades/</link>
		<comments>http://abaltazar.org/2010/01/10/computer-upgrades/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 05:13:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux/Unix]]></category>

		<guid isPermaLink="false">http://abaltazar.org/2010/01/10/computer-upgrades/</guid>
		<description><![CDATA[I finally upgraded the hard drives on my MacBook, Mac Mini (Server), and my main desktop Mac Mini. Macbook (Leopard) For some strange reason, I wasn&#8217;t able to clone my existing Leopard system to the new 500 GB as the clone process failed about 10% &#8211; 15% completion. So I just backed up all my [...]]]></description>
			<content:encoded><![CDATA[<p>I finally upgraded the hard drives on my MacBook, Mac Mini (Server), and my main desktop Mac Mini.</p>
<p>Macbook (Leopard)<br />
For some strange reason, I wasn&#8217;t able to clone my existing Leopard system to the new 500 GB as the clone process failed about 10% &#8211; 15% completion.  So I just backed up all my files and installed Snow Leopard from scratch.</p>
<p>Mac Mini (Leopard)<br />
Unlike with my MacBook, cloning the existing Leopard system to the new hard drive worked flawlessly on my desktop Mac Mini.<br />
After that, upgrading to Snow Leopard worked like a charm.</p>
<p>Mac Mini (CentOS)<br />
Upgrading the RAM on the Mini to 2 GB was simple, the hard drive upgrade was a completely different story. First, I wasn&#8217;t able to find any open source program that would allow me to clone to an attach mass storage USB drive. Unless I didn&#8217;t read the documentation properly, both CloneZilla and FOG only allow the clone output image to be saved on a network system and not locally, even if its a different hard drive. </p>
<p>Little that I knew. dd was everything I needed to clone the hard drive.<br />
commands I used:</p>
<p><code>dd if=/dev/sda of=/dev/sdb</code></p>
<p>After the dd copy was finished, I rebotted to the new hard drive only to find out that <code>/dev/sda5 , /dev/sda6 and /dev/sda7</code> were not copied properly to the new hard drive. So I had to reboot into rescue mode using the original CentOS install DVD and ran the  following commands:<br />
<code>dd if=/dev/sda5 of=/dev/sdb5</code><br />
<code>dd if=/dev/sda6 of=/dev/sdb6</code><br />
<code>dd if=/dev/sda7 of=/dev/sdb7</code></p>
<p>On my second reboot to the new 500 GB hard drive, Linux was able to boot perfectly fine with all my original settings!!! Until&#8230; I opened up fdisk only to find out that I wasn&#8217;t able to add partition (I had over 400 GB of free space in the drive) because I wasnt able to modify my existing partition table that consisted of 3 primary partions and 1 extended partition that consisted of three logic partitions within it. So I just download the live GParted program and I was able to created the additional 400 GB logical drive from there.</p>
<p>On the third attempt to boot into the new 500 GB hard drive, Linux had to do filesystem check to /dev/sda7 which happened to be my /home partition. The fsck completely wiped out all of the contents that was in my home directory. Which wasn&#8217;t a big of a deal since I already had a full backup of all my files.</p>
<p>Conclusion<br />
Overall upgrading  the hard drive on a Mac Mini running CentOS was really painful, but I had the feeling that it could have been worse.</p>
<p><a href="http://www.centos.org">CentOS<a/><br />
<a href="http://gparted.sourceforge.net/livecd.php">GParted Live CD <a/></p>
<p>-Alpha01</p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2010/01/10/computer-upgrades/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goodbye Eclipse and hello vim</title>
		<link>http://abaltazar.org/2009/04/19/goodbye-eclipse-and-hello-vim/</link>
		<comments>http://abaltazar.org/2009/04/19/goodbye-eclipse-and-hello-vim/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 07:59:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://abaltazar.org/2009/04/19/goodbye-eclipse-and-hello-vim/</guid>
		<description><![CDATA[Apparently Apple doesn&#8217;t think its a good idea to ship vi with syntax highlighting turned on by default, giving how really easy it is to enable. I simply had to edit the /usr/share/vim/vimrc file. Full instructions are in http://www.geekology.co.za/blog/2009/03/enable-syntax-highlighting-other-options-in-vim-mac-osx-leopard]]></description>
			<content:encoded><![CDATA[<p>Apparently Apple doesn&#8217;t think its a good idea to ship vi with syntax highlighting turned on by default, giving how really easy it is to enable.</p>
<p>I simply had to edit the <em>/usr/share/vim/vimrc</em> file. Full instructions are in <a href="http://www.geekology.co.za/blog/2009/03/enable-syntax-highlighting-other-options-in-vim-mac-osx-leopard">http://www.geekology.co.za/blog/2009/03/enable-syntax-highlighting-other-options-in-vim-mac-osx-leopard</a></p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2009/04/19/goodbye-eclipse-and-hello-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s Official Part III</title>
		<link>http://abaltazar.org/2008/06/07/its-official-part-iii/</link>
		<comments>http://abaltazar.org/2008/06/07/its-official-part-iii/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 03:21:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>

		<guid isPermaLink="false">http://abaltazar.org/2008/06/07/its-official-part-iii/</guid>
		<description><![CDATA[I&#8217;m a sysadmin once again.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a sysadmin once again.</p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2008/06/07/its-official-part-iii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m Linux Certified!!!</title>
		<link>http://abaltazar.org/2008/04/21/im-linux-certified/</link>
		<comments>http://abaltazar.org/2008/04/21/im-linux-certified/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 23:37:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>

		<guid isPermaLink="false">http://abaltazar.org/2008/04/21/im-linux-certified/</guid>
		<description><![CDATA[After 5 months of studying, I finally took the CompTIA Linux+ certification exam today. My study consisted of reading two books (Sybex CompTIA Linux+ and Linux+ 2005 in Depth), on-line tutorials, and a web based program called &#8220;TestOut Linux+ LabSim&#8221; that my school provides. The exam is by and far the most difficult CompTIA certification [...]]]></description>
			<content:encoded><![CDATA[<p>After 5 months of studying, I finally took the CompTIA Linux+ certification exam today. My study consisted of reading two books (Sybex CompTIA Linux+ and Linux+ 2005 in Depth), on-line tutorials, and a web based program called &#8220;TestOut Linux+ LabSim&#8221; that my school provides.</p>
<p>The exam is by and far the most difficult CompTIA certification exam that I&#8217;ve taken. Given that I scored 675 and the minimum passing score is 675! I probably would had gotten a better score if I&#8217;d studied sed, awk, and iptables more in depth. If I had taken this exam six months ago I would have failed it miserably. Now that I&#8217;m CompTIA Linux+ certfied professional, I&#8217;ll be putting the LPIC Level 1 on hold until I know I&#8217;m fully prepared for those set of exams.</p>
<p>Cheers!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://abaltazar.org/2008/04/21/im-linux-certified/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
