<?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/"
	>

<channel>
	<title>cordump.com</title>
	<atom:link href="http://www.cordump.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.cordump.com</link>
	<description>Where Dave Nash dumps his thoughts about System Administration</description>
	<pubDate>Sun, 13 Dec 2009 00:37:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>TIP: Figuring out which RPM&#8217;s contain which files</title>
		<link>http://www.cordump.com/?p=69</link>
		<comments>http://www.cordump.com/?p=69#comments</comments>
		<pubDate>Thu, 19 Feb 2009 06:26:49 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[General System Administration]]></category>

		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=69</guid>
		<description><![CDATA[If you ever need to know what files an RPM will install or what RPM&#8217;s &#8220;own&#8221; a file on your system then the rpm command has a few switches that can help you out.
If you want to know which file&#8217;s an installed RPM&#8217;s owns:

rpm -ql 

If you have an RPM file and want to know [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever need to know what files an RPM will install or what RPM&#8217;s &#8220;own&#8221; a file on your system then the rpm command has a few switches that can help you out.<br />
If you want to know which file&#8217;s an installed RPM&#8217;s owns:<br />
<code><br />
rpm -ql <RPM><br />
</code><br />
If you have an RPM file and want to know what file&#8217;s it will create or modify before you install it:<br />
<code><br />
rpm -qpl <RPM_FILE><br />
</code><br />
And finally if you have a file or directory and you want to know which RPM installed it:<br />
<code><br />
rpm -qf <FILENAME><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=69</wfw:commentRss>
		</item>
		<item>
		<title>TIP: force sudo to forget your password</title>
		<link>http://www.cordump.com/?p=68</link>
		<comments>http://www.cordump.com/?p=68#comments</comments>
		<pubDate>Tue, 27 Jan 2009 02:59:21 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[General System Administration]]></category>

		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=68</guid>
		<description><![CDATA[Very rarely you need to force sudo to forget your cached password or token in super secret decoder ring lingo.  All you need is one little flag an you are ready to

% sudo -k

See simple
]]></description>
			<content:encoded><![CDATA[<p>Very rarely you need to force sudo to forget your cached password or token in super secret decoder ring lingo.  All you need is one little flag an you are ready to<br />
<code><br />
% sudo -k<br />
</code><br />
See simple</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=68</wfw:commentRss>
		</item>
		<item>
		<title>TIP: search and replace, in place, across multiple files</title>
		<link>http://www.cordump.com/?p=67</link>
		<comments>http://www.cordump.com/?p=67#comments</comments>
		<pubDate>Wed, 21 Jan 2009 02:50:16 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[Automation]]></category>

		<category><![CDATA[General System Administration]]></category>

		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=67</guid>
		<description><![CDATA[Ever have that need to change one little thing in a bunch of files? You know after you accidentally misspelled your Boss&#8217;s name as &#8220;Marvin Blowhard&#8221; on every page of the Company website.
Now you could open up each file in vi and find every reference to Mr. Blowhard to Joe Smith, even using search &#038; [...]]]></description>
			<content:encoded><![CDATA[<p>Ever have that need to change one little thing in a bunch of files? You know after you accidentally misspelled your Boss&#8217;s name as &#8220;Marvin Blowhard&#8221; on every page of the Company website.<br />
Now you could open up each file in vi and find every reference to Mr. Blowhard to Joe Smith, even using search &#038; replace<br />
<code>s/Marvin Blowhard/Joe Smith/</code> inside vi get&#8217;s kind of tedious after a while.<i> That joke doesn&#8217;t seem so funny now, does it?</i><br />
Now consider a little BASH and sed foo<br />
<code><br />
for i in `ls *.html`; do sed "s:Marvin Blowhard:Joe Smith:g" $i >temp;mv temp $i; done<br />
</code><br />
All nice and done so you can get back to planning your next BOFH moment, like sending him in the into the server room with a flash light to look for breaks in the fiber runs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=67</wfw:commentRss>
		</item>
		<item>
		<title>TIP: X forwarding after su&#8217;ing to another user</title>
		<link>http://www.cordump.com/?p=66</link>
		<comments>http://www.cordump.com/?p=66#comments</comments>
		<pubDate>Sun, 19 Oct 2008 19:01:29 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[General System Administration]]></category>

		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=66</guid>
		<description><![CDATA[It is a fairly common occurrence now days for security purposes to disable remote login access for &#8220;role accounts&#8221; like Oracle or Mysql. This restricts you to logging as a normal user then using the su command to become the role users. It works great in almost every circumstance but what if you need access [...]]]></description>
			<content:encoded><![CDATA[<p>It is a fairly common occurrence now days for security purposes to disable remote login access for &#8220;role accounts&#8221; like Oracle or Mysql. This restricts you to logging as a normal user then using the su command to become the role users. It works great in almost every circumstance but what if you need access to a remote X display while su&#8217;ed to the role account? Just trying to run the X program as normal will give you an error.<br />
So what do you do? Why you find the Magic Cookie!<br />
Before doing su to the become the new user do<br />
<code><br />
$ xauth list<br />
</code><br />
You should get back a result that looks something like this<br />
<code><br />
hostname.domainname.com:11  MIT-MAGIC-COOKIE-14d22408a71a55b41ccd1657d7923ae<br />
</code><br />
Now that you have your Magic Cookie don&#8217;t forget to stock up on the munchies.<br />
su to the new user and tell it what  the Magic Cookie is so it can communicate with the Xserver.<br />
<code><br />
su - someuser<br />
password: *******<br />
xauth add MIT-MAGIC-COOKIE-14d22408a71a55b41ccd1657d7923ae<br />
</code><br />
Then export X programs as normal</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=66</wfw:commentRss>
		</item>
		<item>
		<title>Apache disk full error, with lots of free disk space</title>
		<link>http://www.cordump.com/?p=65</link>
		<comments>http://www.cordump.com/?p=65#comments</comments>
		<pubDate>Tue, 13 May 2008 02:57:16 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=65</guid>
		<description><![CDATA[Occasionally when attempting to start or restart Apache 2.2.X you may get  an error like &#8220;No space left on device: Couldn&#8217;t create accept lock&#8221; in the error logs.  No a quick df  shows that you have plenty of space left on all filesystems so what now&#8230;
Apache uses semaphores to control its sub [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally when attempting to start or restart Apache 2.2.X you may get  an error like &#8220;No space left on device: Couldn&#8217;t create accept lock&#8221; in the error logs.  No a quick df  shows that you have plenty of space left on all filesystems so what now&#8230;<br />
Apache uses semaphores to control its sub processes and sometimes those semaphore&#8217;s don&#8217;t get closed properly and the error you are getting actually means Help! and can&#8217;t get anymore semaphore&#8217;s.<br />
Now to see if this is actually the case you can check the following command:<br />
<code><br />
ipcs -s | grep <APACHE-USER><br />
</code><br />
If you see a lot of entries, espically if Apache does not start, then this is probably your issue.  Fortunately, there is an easy way to resolve the issue, just run the command below to kill all semaphores owned by <APACHE-USER>.<br />
<code><br />
ipcs -s | grep <APACHE-USER>| perl -e &#8216;while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;<br />
</code><br />
You do run everything as unique users don&#8217;t you? Other wise any other running applications or apache instances owned <APACHE-USER> probably were killed and need to be restarted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=65</wfw:commentRss>
		</item>
		<item>
		<title>Vacuuming your Mail.app</title>
		<link>http://www.cordump.com/?p=64</link>
		<comments>http://www.cordump.com/?p=64#comments</comments>
		<pubDate>Wed, 12 Mar 2008 03:38:02 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[Quick Tips]]></category>

		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=64</guid>
		<description><![CDATA[Want to speed up and improve the performance of Mail.app on your Mac?  Just Vacuum it up and watch it fly
http://gracefulflavor.net/2007/03/16/simple-trick-speeds-up-mailapp-considerably/
]]></description>
			<content:encoded><![CDATA[<p>Want to speed up and improve the performance of Mail.app on your Mac?  Just Vacuum it up and watch it fly<br />
http://gracefulflavor.net/2007/03/16/simple-trick-speeds-up-mailapp-considerably/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=64</wfw:commentRss>
		</item>
		<item>
		<title>TIP: Are we there yet part 2, using a watch dog</title>
		<link>http://www.cordump.com/?p=63</link>
		<comments>http://www.cordump.com/?p=63#comments</comments>
		<pubDate>Wed, 23 Jan 2008 04:10:30 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[Automation]]></category>

		<category><![CDATA[General System Administration]]></category>

		<category><![CDATA[Life in General]]></category>

		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=63</guid>
		<description><![CDATA[As a follow up to the previous tip on getting notified.  What do you do when you have an already running process that you would like have notify you when it completes?
So you kicked off this update that was only supposed to take a few minutes but now an hour later it is still [...]]]></description>
			<content:encoded><![CDATA[<p>As a follow up to the previous tip on <a href="http://www.dragonswhisper.com/cgi-sys/cgiwrap/daven/managed-mt/mt-tb.cgi/58">getting notified</a>.  What do you do when you have an already running process that you would like have notify you when it completes?<br />
So you kicked off this update that was only supposed to take a few minutes but now an hour later it is still running and you are tired of having to check up on it, wouldn&#8217;t it be nice if you could just get a nice little e-mail letting you know when its done.  Well, this little one liner just might make your day, ok maybe your hour&#8230;<br />
<code><br />
while [ $(ps auxww | grep -i SOMEPROCESS | grep -v grep > /dev/null; echo $?) -eq 0 ]; do echo -n &#8220;.&#8221;; sleep 5; done; echo `/bin/date` | mail -s &#8220;SOMEPROCESS has completed&#8221; me@example.com<br />
</code><br />
This little ditty will print a &#8220;.&#8221; every 5 seconds while the process is running, then when it completes will shoot you a nice little e-mail with the time it completed in the body.  Now just don&#8217;t forget to the processes in screen so they can keep running even if you get disconnected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=63</wfw:commentRss>
		</item>
		<item>
		<title>TIP: Are we there yet? Having a command notify you when its done</title>
		<link>http://www.cordump.com/?p=62</link>
		<comments>http://www.cordump.com/?p=62#comments</comments>
		<pubDate>Sun, 20 Jan 2008 03:52:04 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=62</guid>
		<description><![CDATA[Sometimes you have a long running process and rather than check up on it periodically  you would just rather have it notify you.  From the command line this is really simple you can have it email you using the mail command.

% ps auxww ; echo "ps done" &#124; mail -s "ps done" me@example.com

This [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you have a long running process and rather than check up on it periodically  you would just rather have it notify you.  From the command line this is really simple you can have it email you using the mail command.<br />
<code><br />
% ps auxww ; echo "ps done" | mail -s "ps done" me@example.com<br />
</code><br />
This will just email you &#8220;ps done&#8221;, now suppose you want the output of the command do<br />
<code><br />
% ps auxww | mail -s "ps done" me@example.com<br />
</code><br />
this will include the the output of the command in the body of the email message<br />
<code><br />
% time ps auxww | mail -s "ps done" me@example.com<br />
</code><br />
and finally include the bash command time before the command you will get the exact amount of time it took to run included at the bottom of the e-mail.<br />
By piping to mail you can get a bit of piece of mind not needing to constantly check on you process and with the right options even get the output and the exact run time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=62</wfw:commentRss>
		</item>
		<item>
		<title>MTR: traceroute that works</title>
		<link>http://www.cordump.com/?p=61</link>
		<comments>http://www.cordump.com/?p=61#comments</comments>
		<pubDate>Wed, 09 Jan 2008 05:22:21 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[General System Administration]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=61</guid>
		<description><![CDATA[mtr is an update to the classic traceroute that is able to continue giving results even if one of the hops times out.  The homepage
for mtr explains it below:

As mtr starts, it investigates the network connection between the host mtr runs on and a user-specified destination host. After it determines the address of each [...]]]></description>
			<content:encoded><![CDATA[<p><A href="http://www.bitwizard.nl/mtr/">mtr</a> is an update to the classic traceroute that is able to continue giving results even if one of the hops times out.  The <A href="http://www.bitwizard.nl/mtr/">homepage</a><br />
for mtr explains it below:<br />
<quote><br />
As mtr starts, it investigates the network connection between the host mtr runs on and a user-specified destination host. After it determines the address of each network hop between the machines, it sends a sequence ICMP ECHO requests to each one to determine the quality of the link to each machine. As it does this, it prints running statistics about each machine.<br />
</quote></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=61</wfw:commentRss>
		</item>
		<item>
		<title>TIP: using Gmail to have mutliple unique e-mail addresses</title>
		<link>http://www.cordump.com/?p=60</link>
		<comments>http://www.cordump.com/?p=60#comments</comments>
		<pubDate>Thu, 03 Jan 2008 02:53:47 +0000</pubDate>
		<dc:creator>daven</dc:creator>
		
		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.cordump.net/?p=60</guid>
		<description><![CDATA[Have you ever wanted to have a specific e-mail address for a site or maybe a throw away address so you can see if your credit car company is the one selling your e-mail address to spammers.  Now you could use your own domain name and setup multiple e-mail addresses for each account and [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to have a specific e-mail address for a site or maybe a throw away address so you can see if your credit car company is the one selling your e-mail address to spammers.  Now you could use your own domain name and setup multiple e-mail addresses for each account and forward them on to a central mailbox for you to peruse.  However, if you have a GMail account or if you don&#8217;t mind setting one up ( it is free after all ) you can use the usename+ trick.<br />
To use this trick simply type your e-mail address and normal but in between your username and the @ enter in + followed by something descriptive.  So for example if my gmail email address was notarealemailadddress@gmail.com and I wanted a unique e-mail address for cnn.com to you I could simply give them the e-mail address notarealemailaddress+cnn@gmail.com, GMail will then happily ignore the + and everything after it and deliver the e-mail to your inbox.<br />
Have and if you find that someone was selling your address to spammers via this method make sure to let the world know what evil bastards they are.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cordump.com/?feed=rss2&amp;p=60</wfw:commentRss>
		</item>
	</channel>
</rss>
