<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>centoshacker</title>
	
	<link>http://centoshacker.com</link>
	<description>CentOS Hacks, Tips, and Tricks from Practitioners</description>
	<pubDate>Tue, 23 Feb 2010 10:35:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/centoshacker" /><feedburner:info uri="centoshacker" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>38.611854</geo:lat><geo:long>-121.445539</geo:long><item>
		<title>Quick and Dirty Monitoring Tool</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/gdizUPST7a8/quick-and-dirty-monitoring-tool.html</link>
		<comments>http://centoshacker.com/admin/performance/quick-and-dirty-monitoring-tool.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 10:32:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Performance]]></category>

		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=288</guid>
		<description>Recently, we needed a simple cron script to record load average, apache server count, existence of lighthttpd and mysql status in a log file every 10 minutes. So following shell script was born:
#!/bin/sh

httpd_cnt=`ps auxww &amp;#124; grep '/home/apache/bin/httpd' &amp;#124; wc -l`
lighthttpd_cnt=`ps auxww &amp;#124; grep 'lighthttpd' &amp;#124; wc -l`
mysql_status=`/usr/bin/mysqladmin -u root  -pYOUR_DB_PWD status`
load=`/bin/cat /proc/loadavg`
now=`date "+%m-%d-%Y %H:%M:%S"`
today=`date [...]&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/gdizUPST7a8" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/admin/performance/quick-and-dirty-monitoring-tool.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/admin/performance/quick-and-dirty-monitoring-tool.html</feedburner:origLink></item>
		<item>
		<title>Stop Lock Files from Locking Your Cron Jobs Upon Unscheduled Reboot</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/bShTRD0yCys/stop-lock-files-from-locking-your-cron-jobs-upon-unscheduled-reboot.html</link>
		<comments>http://centoshacker.com/admin/disks/stop-lock-files-from-locking-your-cron-jobs-upon-unscheduled-reboot.html#comments</comments>
		<pubDate>Sun, 27 Sep 2009 15:47:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Disks]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=286</guid>
		<description>Nobody likes unscheduled reboots but it happens to all of us. Recently, we had all our servers rebooted because our data center&amp;#8217;s ATS &amp;#8212; a device that switches to UPS power &amp;#8212; failed. About 90% of the servers returned to life as usual but a few had cron jobs that got stuck due to previous [...]&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/bShTRD0yCys" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/admin/disks/stop-lock-files-from-locking-your-cron-jobs-upon-unscheduled-reboot.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/admin/disks/stop-lock-files-from-locking-your-cron-jobs-upon-unscheduled-reboot.html</feedburner:origLink></item>
		<item>
		<title>Creating a swap partition</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/eMcMv0C4Zts/creating-a-swap-partition.html</link>
		<comments>http://centoshacker.com/admin/disks/creating-a-swap-partition.html#comments</comments>
		<pubDate>Sun, 27 Sep 2009 15:00:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Disks]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=278</guid>
		<description>Recently our data center had a power issue and rebooted all our servers. In this process, one of the server had an issue with the swap partition (/dev/sda3). So we decided to recreate it as follows:
# mkfs -t ext3 /dev/sda3
# mkswp /dev/sda3 1024&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/eMcMv0C4Zts" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/admin/disks/creating-a-swap-partition.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/admin/disks/creating-a-swap-partition.html</feedburner:origLink></item>
		<item>
		<title>Surviving fsck.ext3: Unable to resolve LABEL problem</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/_vqY1p11_V8/surviving-fsckext3-unable-to-resolve-label-problem.html</link>
		<comments>http://centoshacker.com/admin/disks/surviving-fsckext3-unable-to-resolve-label-problem.html#comments</comments>
		<pubDate>Sat, 26 Sep 2009 10:39:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Disks]]></category>

		<category><![CDATA[ext3]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=282</guid>
		<description>Due to a forced hard reboot, thanks to the Data Center&amp;#8217;s faulty PDU, one of our servers got the blues. After getting Nagios alert, we logged onto it via remote KVM and noticed that it is hanging at the maintenance shell prompt.
After logging in as root to the maintenance shell, we noticed that the system [...]&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/_vqY1p11_V8" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/admin/disks/surviving-fsckext3-unable-to-resolve-label-problem.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/admin/disks/surviving-fsckext3-unable-to-resolve-label-problem.html</feedburner:origLink></item>
		<item>
		<title>Creating SFTP-only User Accounts to Kill SSH Access</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/3fMjA0mrnQI/creating-sftp-only-user-accounts-to-kill-ssh-access.html</link>
		<comments>http://centoshacker.com/kabir/ssh/creating-sftp-only-user-accounts-to-kill-ssh-access.html#comments</comments>
		<pubDate>Sat, 26 Sep 2009 10:30:22 +0000</pubDate>
		<dc:creator>kabir</dc:creator>
		
		<category><![CDATA[SSH]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[sftp]]></category>

		<category><![CDATA[sftp-only]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=177</guid>
		<description>How to create SFTP-only User Accounts to Kill SSH Access&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/3fMjA0mrnQI" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/kabir/ssh/creating-sftp-only-user-accounts-to-kill-ssh-access.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/kabir/ssh/creating-sftp-only-user-accounts-to-kill-ssh-access.html</feedburner:origLink></item>
		<item>
		<title>Tuning Postfix to Fight SPAM a Little Better…</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/Pxhek_mWqX8/tuning-postfix-to-fight-spam-a-little-better.html</link>
		<comments>http://centoshacker.com/admin/tuning/tuning-postfix-to-fight-spam-a-little-better.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 16:30:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Email]]></category>

		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=272</guid>
		<description>How to tune Postfix to fight SPAM a little better without needing anything like spamassassin.&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/Pxhek_mWqX8" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/admin/tuning/tuning-postfix-to-fight-spam-a-little-better.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/admin/tuning/tuning-postfix-to-fight-spam-a-little-better.html</feedburner:origLink></item>
		<item>
		<title>Running out of disk space even when 20% is free!</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/4J96US0rQI8/running-out-of-disk-space-even-when-20-is-free.html</link>
		<comments>http://centoshacker.com/admin/disks/running-out-of-disk-space-even-when-20-is-free.html#comments</comments>
		<pubDate>Mon, 08 Jun 2009 21:44:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Disks]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=270</guid>
		<description>Today, we had a panic call from a customer who was hosting a small app on a non-dedicated server environment with us. The app uses a ton of images and was hosted on a box with terabytes of disk space. They called with a message saying that the system is out of disk space.
After investigating, [...]&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/4J96US0rQI8" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/admin/disks/running-out-of-disk-space-even-when-20-is-free.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/admin/disks/running-out-of-disk-space-even-when-20-is-free.html</feedburner:origLink></item>
		<item>
		<title>Bringing Email Home Across the Globe</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/toJl0lS7hZo/bringing-email-home-across-the-globe.html</link>
		<comments>http://centoshacker.com/admin/email/bringing-email-home-across-the-globe.html#comments</comments>
		<pubDate>Sun, 24 May 2009 19:59:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=265</guid>
		<description>Bringing Email Home Across the Globe&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/toJl0lS7hZo" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/admin/email/bringing-email-home-across-the-globe.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/admin/email/bringing-email-home-across-the-globe.html</feedburner:origLink></item>
		<item>
		<title>Mounting DVD ISO Files on CentOS 5.3</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/DfeHOOLJAoE/mounting-dvd-iso-files-on-centos-53.html</link>
		<comments>http://centoshacker.com/kabir/uncategorized/mounting-dvd-iso-files-on-centos-53.html#comments</comments>
		<pubDate>Sun, 24 May 2009 16:08:05 +0000</pubDate>
		<dc:creator>kabir</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=262</guid>
		<description>I often forget all the parameters to mount a DVD on a running system, so here is my blog-reminder:
# mount -t iso9660 -o loop /path/to/dvd.iso  /mount/point
Example:
mount -t iso9660 -o loop CentOS-5.3-i386-bin-DVD.iso  /mnt/dvd
This will mount the CentOS 5.3 DVD iso on /mnt/dvd directory.&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/DfeHOOLJAoE" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/kabir/uncategorized/mounting-dvd-iso-files-on-centos-53.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/kabir/uncategorized/mounting-dvd-iso-files-on-centos-53.html</feedburner:origLink></item>
		<item>
		<title>Setting up BackupPC on CentOS 5.3</title>
		<link>http://feedproxy.google.com/~r/centoshacker/~3/BbpSPY4TPSY/setting-up-backuppc-on-centos-53.html</link>
		<comments>http://centoshacker.com/kabir/uncategorized/setting-up-backuppc-on-centos-53.html#comments</comments>
		<pubDate>Wed, 20 May 2009 16:00:09 +0000</pubDate>
		<dc:creator>kabir</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://centoshacker.com/?p=259</guid>
		<description>We use BackupPC and have a love-hate relationship with it. We love that it works most of the time, and hate that it uses CGI Web interface and also outputs cryptic error messages when backup fails. But never the less, we have not found a better deal so far. Hence we  continue to use it.
Here [...]&lt;img src="http://feeds.feedburner.com/~r/centoshacker/~4/BbpSPY4TPSY" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://centoshacker.com/kabir/uncategorized/setting-up-backuppc-on-centos-53.html/feed</wfw:commentRss>
		<feedburner:origLink>http://centoshacker.com/kabir/uncategorized/setting-up-backuppc-on-centos-53.html</feedburner:origLink></item>
	</channel>
</rss>
