<?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>Get *NIXy</title>
	<atom:link href="http://unixsysadmin.org/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://unixsysadmin.org</link>
	<description>I got 99 problems but a cron job ain&#039;t one</description>
	<lastBuildDate>Sun, 23 Oct 2011 17:36:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>iPad does IPv6</title>
		<link>http://unixsysadmin.org/index.php/2011/10/ipad-does-ipv6/</link>
		<comments>http://unixsysadmin.org/index.php/2011/10/ipad-does-ipv6/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 14:53:11 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[capture]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ios5]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[packet]]></category>
		<category><![CDATA[packet capture]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[wireshark]]></category>
		<category><![CDATA[wlan0]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=172</guid>
		<description><![CDATA[Upon connecting to the wireless network in the hotel I was staying in over the weekend, I decided to do a packet capture just to see what was going on. (Similar to reading log files, it&#8217;s worthwhile to be able to recognize the kind of entries/packets you expect to see and those that might be [...]]]></description>
			<content:encoded><![CDATA[<p>Upon connecting to the wireless network in the hotel I was staying in over the weekend, I decided to do a packet capture just to see what was going on. (Similar to reading log files, it&#8217;s worthwhile to be able to recognize the kind of entries/packets you expect to see and those that might be suspicious.)</p>
<p>This turned out to be a learning experience: my iPad (named &#8216;kepler&#8217;) has IPv6 functionality; I definitely did not know that until I saw UDP packets like this:</p>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2011/10/kepleripv6.png"><img src="http://unixsysadmin.org/wp-content/uploads/2011/10/kepleripv6.png" alt="" title="kepleripv6" width="1361" height="162" class="aligncenter size-full wp-image-173" /></a></p>
<p>I subsequently found some documentation online confirming this.</p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2011/10/ipad-does-ipv6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Minimalist Squid configuration</title>
		<link>http://unixsysadmin.org/index.php/2011/07/minimalist-squid-configuration/</link>
		<comments>http://unixsysadmin.org/index.php/2011/07/minimalist-squid-configuration/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 12:36:43 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[conf]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[config file]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[minimal]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[squid.conf]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=170</guid>
		<description><![CDATA[Squid is one of the first open-source programs I got into. I have spent a lot of time looking at squid.conf The default squid.conf (reference copy in /usr/share/doc/squid/examples/squid.conf) is about 5000 lines by default. It&#8217;s great that everything is well-documented but who wants to deal with a massive config file like that? Not me. This [...]]]></description>
			<content:encoded><![CDATA[<p>Squid is one of the first open-source programs I got into. I have spent a lot of time looking at squid.conf The default squid.conf (reference copy in /usr/share/doc/squid/examples/squid.conf) is about 5000 lines by default. It&#8217;s great that everything is well-documented but who wants to deal with a massive config file like that? Not me. This was generated with Squid 2.7STABLE9:</p>
<p><code><br />
acl all src all<br />
acl manager proto cache_object<br />
acl localhost src 127.0.0.1/32<br />
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32<br />
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network<br />
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network<br />
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network<br />
acl SSL_ports port 443          # https<br />
acl SSL_ports port 563          # snews<br />
acl SSL_ports port 873          # rsync<br />
acl Safe_ports port 80          # http<br />
acl Safe_ports port 21          # ftp<br />
acl Safe_ports port 443         # https<br />
acl Safe_ports port 873         # rsync<br />
acl purge method PURGE<br />
acl CONNECT method CONNECT<br />
http_access deny manager<br />
http_access deny purge<br />
http_access deny !Safe_ports<br />
http_access deny CONNECT !SSL_ports<br />
http_access allow localhost<br />
http_access deny all<br />
icp_access allow localnet<br />
icp_access deny all<br />
http_port 3128<br />
hierarchy_stoplist cgi-bin ?<br />
access_log /var/log/squid/access.log squid<br />
refresh_pattern ^ftp:           1440    20%     10080<br />
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0<br />
refresh_pattern (Release|Packages(.gz)*)$       0       20%     2880<br />
refresh_pattern .               0       20%     4320<br />
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]<br />
upgrade_http0.9 deny shoutcast<br />
acl apache rep_header Server ^Apache<br />
broken_vary_encoding allow apache<br />
extension_methods REPORT MERGE MKACTIVITY CHECKOUT<br />
hosts_file /etc/hosts<br />
coredump_dir /var/spool/squid<br />
useragent_log /var/log/squid/useragent.log<br />
cache_mgr squid@yummypi.com<br />
</code></p>
<p>That is basically the default squid.conf with the comments removed. I removed some of the safe_ports. (Who uses Gopher anymore?) I added in two options that I like to use. The last one is useful in a corporate environment where you want feedback from users (which you can promptly redirect to /dev/null). </p>
<p>I have placed this file at <a href="http://unixsysadmin.org/squid.small.conf">unixsysadmin.org/squid.small.conf</a> and a copy of the default file at <a href="http://unixsysadmin.org/squid.conf">unixsysadmin.org/squid.conf</a> if you&#8217;d like to wget it or whatever.</p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2011/07/minimalist-squid-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>apt-get via cron</title>
		<link>http://unixsysadmin.org/index.php/2011/03/apt-get-via-cron/</link>
		<comments>http://unixsysadmin.org/index.php/2011/03/apt-get-via-cron/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 14:45:40 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[apt-get via cron]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab update via cron]]></category>
		<category><![CDATA[PATH]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=168</guid>
		<description><![CDATA[IRL I&#8217;ve had a few people ask me about updating Ubuntu installations via cron. If you add something like 05 0 * * * /usr/bin/apt-get -y update ; /usr/bin/apt-get -y upgrade to root&#8217;s crontab, you&#8217;ll get errors like this: dpkg: warning: 'ldconfig' not found in PATH or not executable. dpkg: warning: 'start-stop-daemon' not found in [...]]]></description>
			<content:encoded><![CDATA[<p>IRL I&#8217;ve had a few people ask me about updating Ubuntu installations via cron. If you add something like 05 0 * * * /usr/bin/apt-get -y update ; /usr/bin/apt-get -y upgrade to root&#8217;s crontab, you&#8217;ll get errors like this:</p>
<p><code>dpkg: warning: 'ldconfig' not found in PATH or not executable.<br />
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.<br />
dpkg: warning: 'update-rc.d' not found in PATH or not executable.<br />
dpkg: 3 expected program(s) not found in PATH or not executable.<br />
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.<br />
E: Sub-process /usr/bin/dpkg returned an error code (2)</code></p>
<p>Those errors should not surprise those who have troubleshooted cron jobs before. <strong>Cron 101 teaches us to use always use the full path.</strong> If you want to apt-get update via cron, add the following to root&#8217;s crontab:</p>
<p><code>05 0 * * * PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/aleida ; /usr/bin/apt-get -y update ; /usr/bin/apt-get -y upgrade</code></p>
<p>(You can use output redirection to prevent receiving mail about it but if you&#8217;re going to auto-pilot your updates, I recommend having them at least sent to you. You can add a line like MAILTO=cron@example.com to your crontab and direct that email somewhere less noisy than your primary address.)</p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2011/03/apt-get-via-cron/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t run screen if&#8230;</title>
		<link>http://unixsysadmin.org/index.php/2011/03/dont-run-screen-if/</link>
		<comments>http://unixsysadmin.org/index.php/2011/03/dont-run-screen-if/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 17:34:38 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[customizations]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[screenrc]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=155</guid>
		<description><![CDATA[This should go without saying but make sure you are not running screen if you want your .screenrc customizations to take effect. I was trying to redo my .screenrc and none of my changes were taking effect and I was extremely frustrated.  The .screenrc I was using is from my FreeBSD systems but I was [...]]]></description>
			<content:encoded><![CDATA[<p>This should go without saying but make sure you are not running screen if you want your .screenrc customizations to take effect. I was trying to redo my .screenrc and none of my changes were taking effect and I was extremely frustrated.  The .screenrc I was using is from my FreeBSD systems but I was working on an Ubuntu one and I thought there was some difference in how things were specified cross-platform. Not the case.</p>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2011/01/screen-is-running.png"><img class="aligncenter size-full wp-image-156" title="screen is running" src="http://unixsysadmin.org/wp-content/uploads/2011/01/screen-is-running.png" alt="" width="804" height="136" /></a></p>
<p>Exiting screen and then running it again initialized all of my changes. This is the kind of dumb, annoying, obvious stuff that halts progress. It&#8217;s so stupid. Ugh. If this can help one person not go through what I just went through, I&#8217;ll be a little happier.</p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2011/03/dont-run-screen-if/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Better Ruby gem search for newbies</title>
		<link>http://unixsysadmin.org/index.php/2011/01/better-ruby-gem-search-for-newbies/</link>
		<comments>http://unixsysadmin.org/index.php/2011/01/better-ruby-gem-search-for-newbies/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 10:13:03 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[gem search]]></category>
		<category><![CDATA[prime]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[remote gems]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby gems]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=161</guid>
		<description><![CDATA[When you&#8217;re just starting out with Ruby, the output of &#8216;gem list&#8217; may be the null set, rendering &#8216;gem search&#8217; basically useless. To learn what gems can be installed, one tends to look outside of the gem command. However, there&#8217;s a switch that makes this easier: gem search prime --both]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re just starting out with Ruby, the output of &#8216;gem list&#8217; may be the null set, rendering &#8216;gem search&#8217; basically useless. To learn what gems can be installed, one tends to look outside of the gem command. However, there&#8217;s a switch that makes this easier:</p>
<p><code>gem search prime --both</code></p>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2011/01/gem-search-prime-both.png"><img src="http://unixsysadmin.org/wp-content/uploads/2011/01/gem-search-prime-both.png" alt="" title="gem-search-prime--both" width="402" height="360" class="aligncenter size-full wp-image-162" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2011/01/better-ruby-gem-search-for-newbies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AdBlock Plus Statistics</title>
		<link>http://unixsysadmin.org/index.php/2011/01/adblock-plus-statistics/</link>
		<comments>http://unixsysadmin.org/index.php/2011/01/adblock-plus-statistics/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 12:05:14 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ad block]]></category>
		<category><![CDATA[ad block plus]]></category>
		<category><![CDATA[adblock]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web browsing]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=163</guid>
		<description><![CDATA[Use this one-liner of which I am rather proud to gather how many hits AdBlock Plus has recorded: find ~/.mozilla/firefox/*/adblockplus -name patterns.ini -exec cat {} \; &#124; grep hitCount &#124; cut -d"=" -f2 &#124; awk '{s+=$0} END {print s}' Tested with FreeBSD and Ubuntu.]]></description>
			<content:encoded><![CDATA[<p>Use this one-liner of which I am rather proud to gather how many hits AdBlock Plus has recorded:</p>
<p><code>find ~/.mozilla/firefox/*/adblockplus -name patterns.ini -exec cat {} \; | grep hitCount | cut -d"=" -f2 | awk '{s+=$0} END {print s}'</code></p>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2011/01/adblockplusstats.png"><img src="http://unixsysadmin.org/wp-content/uploads/2011/01/adblockplusstats.png" alt="" title="adblockplusstats" width="568" height="53" class="aligncenter size-full wp-image-164" /></a></p>
<p>Tested with FreeBSD and Ubuntu.</p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2011/01/adblock-plus-statistics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use of the w command</title>
		<link>http://unixsysadmin.org/index.php/2011/01/use-of-the-w-command/</link>
		<comments>http://unixsysadmin.org/index.php/2011/01/use-of-the-w-command/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 10:51:49 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[/usr/bin/w]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command switches]]></category>
		<category><![CDATA[differences]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[w]]></category>
		<category><![CDATA[w command]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=157</guid>
		<description><![CDATA[Primarily a FreeBSD user, I am used to seeing the output of w like this: (Excellent uptime on the above&#8230;FreeBSD FTW. . However, in Ubuntu (10.04 anyway), it looks like this: I&#8217;d prefer to see what commands others are using. Who would have thought that a single letter command had useful switches?: Nothing interesting is [...]]]></description>
			<content:encoded><![CDATA[<p>Primarily a FreeBSD user, I am used to seeing the output of w like this:</p>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2011/01/freebsd-w-output.png"><img class="aligncenter size-full wp-image-159" title="freebsd-w-output" src="http://unixsysadmin.org/wp-content/uploads/2011/01/freebsd-w-output.png" alt="" width="735" height="328" /></a>(Excellent uptime on the above&#8230;FreeBSD FTW. <img src='http://unixsysadmin.org/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> .</p>
<p>However, in Ubuntu (10.04 anyway), it looks like this:</p>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2011/01/annoying-w-output.png"><img class="aligncenter size-full wp-image-160" title="annoying-w-output" src="http://unixsysadmin.org/wp-content/uploads/2011/01/annoying-w-output.png" alt="" width="598" height="108" /></a></p>
<p>I&#8217;d prefer to see what commands others are using. Who would have thought that a single letter command had useful switches?:</p>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2011/01/w-u-output.png"><img class="aligncenter size-full wp-image-158" title="w-u-output" src="http://unixsysadmin.org/wp-content/uploads/2011/01/w-u-output.png" alt="" width="512" height="100" /></a></p>
<p>Nothing interesting is going on at the moment but I still prefer to know. <img src='http://unixsysadmin.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2011/01/use-of-the-w-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Self-hosted twitpic alternative</title>
		<link>http://unixsysadmin.org/index.php/2011/01/self-hosted-twitpic-alternative/</link>
		<comments>http://unixsysadmin.org/index.php/2011/01/self-hosted-twitpic-alternative/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 10:27:09 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[alternative]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[self-hosted]]></category>
		<category><![CDATA[twitpic]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=153</guid>
		<description><![CDATA[There are several write-ups on creating a self-hosted Twitpic alternative. Most are ridiculously convoluted and not worth the time. Jeremy Kessel (a Twitter employee) has a great write-up here that is worth the read and the time to set everything up. It does not require much technical expertise and most people can do it within [...]]]></description>
			<content:encoded><![CDATA[<p>There are several write-ups on creating a self-hosted Twitpic alternative. Most are ridiculously convoluted and not worth the time.</p>
<p>Jeremy Kessel (a Twitter employee) has a great <a href="http://boilr.net/2010/05/30/how-to-setup-your-own-twitter-mobile-photo-sharing-site-with-wordpress/">write-up here</a> that is worth the read and the time to set everything up. It does not require much technical expertise and most people can do it within 20 minutes or so.</p>
<p>I&#8217;ve set my one up at <a href="http://briepix.com">briepix.com</a>.</p>
<p>Now that everything&#8217;s set up, I use the WordPress app for Android to tweet instead of the Twitter app. Or the WordPress web interface or the WordPress app for iPad. It&#8217;s pretty smooth.</p>
<p><strong>A few things to note</strong>:</p>
<ul>
<li> Jeremy&#8217;s article does not cover this but you do need to go to Settings -&gt; Writing and enable XML-RPC.</li>
<li> You also need to have curl enabled in your PHP install or it will fail in a not nice way.</li>
<li> Finally, I recommend setting &#8216;Set this on by default&#8217; to Yes in order to have your pix automatically tweeted when the post is published.</li>
</ul>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2011/01/set-this-on-by-default.png"><img class="aligncenter size-full wp-image-154" title="set-this-on-by-default" src="http://unixsysadmin.org/wp-content/uploads/2011/01/set-this-on-by-default.png" alt="" width="673" height="93" /></a></p>
<p>That&#8217;s basically it. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2011/01/self-hosted-twitpic-alternative/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Never type your MySQL password again</title>
		<link>http://unixsysadmin.org/index.php/2010/12/never-type-your-mysql-password-again/</link>
		<comments>http://unixsysadmin.org/index.php/2010/12/never-type-your-mysql-password-again/#comments</comments>
		<pubDate>Sun, 26 Dec 2010 11:30:59 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[config file]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=146</guid>
		<description><![CDATA[Some of my personal machines are running local, test versions of MySQL, mostly so that I can play around without breaking anything production. Access to these boxes is limited. (some are not even on the Internet) and I hate having to type my password over and over again. The solution to this is to create [...]]]></description>
			<content:encoded><![CDATA[<p>Some of my personal machines are running local, test versions of MySQL, mostly so that I can play around without breaking anything production. Access to these boxes is limited. (some are not even on the Internet) and I hate having to type my password over and over again. The solution to this is to create a <strong>~/.my.cnf</strong> file containing the database password for that user. </p>
<p>MySQL completely documents this option <a href="http://dev.mysql.com/doc/refman/5.1/en/option-files.html">here</a>.</p>
<p>Rather than read through all of that, just create a file in your home directory called <strong>.my.cnf</strong>.  The contents of that file should be:</p>
<p><code>[client]<br />
password=Your-password-goes-here<br />
</code></p>
<p>It&#8217;s that simple. Now you can do things like mysqladmin ping via cron or mysqladmin pr from the console without having to bother with a password.</p>
<p><a href="http://unixsysadmin.org/wp-content/uploads/2010/12/dotmydotcnf.png"><img src="http://unixsysadmin.org/wp-content/uploads/2010/12/dotmydotcnf.png" alt="" title="dotmydotcnf" width="545" height="226" class="aligncenter size-full wp-image-147" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2010/12/never-type-your-mysql-password-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snipe Bad IPs (and good ones)</title>
		<link>http://unixsysadmin.org/index.php/2010/11/snipe-bad-ips-and-good-ones/</link>
		<comments>http://unixsysadmin.org/index.php/2010/11/snipe-bad-ips-and-good-ones/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 19:39:58 +0000</pubDate>
		<dc:creator>aleida</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[infosniper]]></category>
		<category><![CDATA[infosniper.net]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[qxhp]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://unixsysadmin.org/?p=143</guid>
		<description><![CDATA[Like most people in this business, I am lazy&#8230;and that&#8217;s a good thing. I use infosniper.net (among other tools) to gather more information about different IP addresses. You can access the infosniper.net page for a URL directly by typing: http://infosniper.net/index.php?ip_address=69.163.239.213. It&#8217;s my opinion that that is *way* too much to type. So with the following [...]]]></description>
			<content:encoded><![CDATA[<p>Like most people in this business, I am lazy&#8230;and that&#8217;s a good thing. I use infosniper.net (among other tools) to gather more information about different IP addresses. You can access the infosniper.net page for a URL directly by typing: <a href="http://infosniper.net/index.php?ip_address=69.163.239.213" target="_self">http://infosniper.net/index.php?ip_address=69.163.239.213</a>. It&#8217;s my opinion that that  is *way* too much to type. So with the following in my .htaccess, I set up an easier way to do this with my four letter domain name:</p>
<p><code>Redirect / http://infosniper.net/index.php?ip_address=</code></p>
<p>So, you can just type something like <a href="http://qxhp.com/69.163.239.213" target="_self">qxhp.com/69.163.239.213</a>. That&#8217;s more like it!</p>
]]></content:encoded>
			<wfw:commentRss>http://unixsysadmin.org/index.php/2010/11/snipe-bad-ips-and-good-ones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

