<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Crane Has Landed</title>
	<atom:link href="http://thecrane.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecrane.wordpress.com</link>
	<description>But where is that?</description>
	<lastBuildDate>Sun, 16 Oct 2011 02:33:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='thecrane.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Crane Has Landed</title>
		<link>http://thecrane.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://thecrane.wordpress.com/osd.xml" title="The Crane Has Landed" />
	<atom:link rel='hub' href='http://thecrane.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Fun with Cisco</title>
		<link>http://thecrane.wordpress.com/2011/10/16/fun-with-cisco/</link>
		<comments>http://thecrane.wordpress.com/2011/10/16/fun-with-cisco/#comments</comments>
		<pubDate>Sun, 16 Oct 2011 02:33:31 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[VOIP]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=219</guid>
		<description><![CDATA[This is a bit obscure, but I have managed to set up an Asterisk PBX server with some old Cisco 7910 phones. They have their idiosyncrasies though, so here are a couple of tips I&#8217;ve picked up along the way: To edit the settings on the phone (e.g. change the TFTP server), you need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=219&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a bit obscure, but I have managed to set up an Asterisk PBX server with some old Cisco 7910 phones.  They have their idiosyncrasies though, so here are a couple of tips I&#8217;ve picked up along the way:</p>
<ol>
<li>To edit the settings on the phone (e.g. change the TFTP server), you need to unlock the settings by pressing &#8220;**#&#8221; and then the Settings key.  Doing so should make the padlock icon turn to unlocked.</li>
<li>  You can then edit the editable settings by pressing the &#8220;*&#8221; key, with the &#8220;#&#8221; key saving your changes.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=219&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2011/10/16/fun-with-cisco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>LDAP issue with sendmail</title>
		<link>http://thecrane.wordpress.com/2011/08/20/ldap-issue-with-sendmail/</link>
		<comments>http://thecrane.wordpress.com/2011/08/20/ldap-issue-with-sendmail/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 01:06:34 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=215</guid>
		<description><![CDATA[For some reason, I suddenly stopped receiving email notifications of my voicemail from my trixbox server. A bit of hunting around, I discovered the following error in the logs, or when I tried to manually send mail using sendmail: 451 4.3.5 Error getting LDAP results in map ldapsx: Unknown error 325 sxadmin-scalix@scalix... Deferred: 451 4.3.5 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=215&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For some reason, I suddenly stopped receiving email notifications of my voicemail from my trixbox server.  A bit of hunting around, I discovered the following error in the logs, or when I tried to manually send mail using <code>sendmail</code>:</p>
<p><code>451 4.3.5 Error getting LDAP results in map ldapsx: Unknown error 325<br />
sxadmin-scalix@scalix... Deferred: 451 4.3.5 Error getting LDAP results in map ldapsx: Unknown error 325<br />
</code></p>
<p>All of this occurred after I changed my DNS suffix on my new router.  To fix the problem, I updated the <code>OMHOSTNAME</code> setting in <code>/etc/opt/scalix/instance.cfg</code> to what the fully-qualified name was et voila!  All working when I use the following test code:</p>
<p><code>echo "Subject: test" | /usr/lib/sendmail -v my@email.com</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=215&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2011/08/20/ldap-issue-with-sendmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Bulk create symbolic links to directories</title>
		<link>http://thecrane.wordpress.com/2011/04/08/bulk-create-symbolic-links-to-directories/</link>
		<comments>http://thecrane.wordpress.com/2011/04/08/bulk-create-symbolic-links-to-directories/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 06:45:17 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[symbolic link]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=210</guid>
		<description><![CDATA[Since you can&#8217;t use the cp command to create links to directories, I found another site with a great use of the find command: find path_to_the_directories_you_want_to_link_to -type f -exec ln -s \{\} . \; This should create a symbolic link for each of the directories it finds in the path provided. Brilliant!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=210&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since you can&#8217;t use the <code>cp </code>command to create links to directories, I found another site with a great use of the <code>find </code>command:</p>
<p><code>find path_to_the_directories_you_want_to_link_to -type f -exec ln -s \{\} . \;</code></p>
<p>This should create a symbolic link for each of the directories it finds in the path provided.  Brilliant!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=210&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2011/04/08/bulk-create-symbolic-links-to-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Remote notification</title>
		<link>http://thecrane.wordpress.com/2011/01/12/remote-notification/</link>
		<comments>http://thecrane.wordpress.com/2011/01/12/remote-notification/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 23:04:14 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[xbmc]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=204</guid>
		<description><![CDATA[I have been playing around with a way to get my Ubuntu box (that is running VLC on startup to stream our satellite TV across the network) to notify other boxes that it is awake and broadcasting. This is so that my wife can start the box up from a WOL script on the kitchen [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=204&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been playing around with a way to get my Ubuntu box (that is running VLC on startup to stream our satellite TV across the network) to notify other boxes that it is awake and broadcasting.  This is so that my wife can start the box up from a WOL script on the kitchen PC and then, once it is booted up, turn on the modded Xbox and run XBMC to connect to the stream and pick up TV downstairs.  </p>
<p>Nice enough.  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I managed to get it working using the following steps.</p>
<ol>
<li>On the PC that broadcasts TV, I added passwordless SSH (via <a href="http://www.debian-administration.org/articles/152">this link</a>) for the user that the kitchen PC runs under.</li>
<li>On the kitchen PC, I created a script in the <code>/usr/bin</code> called <code>notifier</code> that has the following in it:<br />
<code>export DISPLAY=:0 &amp;&amp; export XAUTHORITY=/home/[KITCHEN COMPUTER USERNAME]/.Xauthority &amp;&amp; sudo -u [KITCHEN COMPUTER USERNAME] /usr/bin/notify-send "TV is now broadcasting" 2&gt;&amp;1</code>.</p>
<p>Most of this is <a href="http://cweiske.de/tagebuch/DBus%20notify-send%20over%20network.htm">via this page</a>.</li>
<li>After adding the same user to the TV PC, I have a line in the TV PC <code>/etc/rc.local</code> that says<br />
<code>su [KITCHEN COMPUTER USERNAME] -c notifyKitchen</code><br />
The <code>notifyKitchen</code> is a <code>/usr/bin</code> script that simply says<br />
<code>ssh [KITCHEN COMPUTER USERNAME]@[KITCHEN COMPUTER] 'notifier'</code>.
</li>
</ol>
<p>Done and done.  When the TV PC boots, it calls this command and the Kitchen PC gets a pop-up notification that TV is running.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=204&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2011/01/12/remote-notification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Building a VPN</title>
		<link>http://thecrane.wordpress.com/2011/01/04/building-a-vpn/</link>
		<comments>http://thecrane.wordpress.com/2011/01/04/building-a-vpn/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 21:20:57 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=202</guid>
		<description><![CDATA[So, being the holidays and everything, I thought it would be useful to be able to dial-in to my home network and get access to all my local network resources. I first tried to do this when I was in San Francisco over Putty SSH. Can I just note for everyone reading this that this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=202&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, being the holidays and everything, I thought it would be useful to be able to dial-in to my home network and get access to all my local network resources.  I first tried to do this when I was in San Francisco over Putty SSH.  Can I just note for everyone reading this that this is not a good idea because if anything goes wrong (like when trying to create a new bridged interface), your network connection goes down&#8230;and so does your SSH connection!</p>
<p>But I&#8217;ve had a bit of better luck <a href="http://www.openvpn.net/index.php/open-source/documentation/howto.html">following the howto on OpenVPN.net</a> and have got it so that I currently have a routing connection (not bridged) up and running.  So an internal IP address now accesses my server, and I&#8217;m able to access the Samba shares, and the VOIP network as well!  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now, I&#8217;m just going to work on bridging the network&#8230;when I get home!  <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=202&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2011/01/04/building-a-vpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Tip: how to get the size of a folder in Linux CLI</title>
		<link>http://thecrane.wordpress.com/2010/10/24/tip-how-to-get-the-size-of-a-folder-in-linux-cli/</link>
		<comments>http://thecrane.wordpress.com/2010/10/24/tip-how-to-get-the-size-of-a-folder-in-linux-cli/#comments</comments>
		<pubDate>Sun, 24 Oct 2010 07:15:42 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[directory size]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubunty]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=199</guid>
		<description><![CDATA[It seems like a simple request&#8230;and it mostly is. But if you want to get the size of a folder &#8211; including sub-folders &#8211; in Linux from the command line, you need to use the du command. The simplest trick (thanks linuxforums.org) to get the total size without listing all the sub-folders is to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=199&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It seems like a simple request&#8230;and it mostly is.  But if you want to get the size of a folder &#8211; including sub-folders &#8211; in Linux from the command line, you need to use the <code>du</code> command.  The simplest trick (<a href="http://www.linuxforums.org/forum/programming-scripting/13287-how-find-directory-size.html">thanks linuxforums.org</a>) to get the total size without listing all the sub-folders is to use the following:</p>
<pre>du -h | grep -v '/' | awk '{print $1}'</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/199/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=199&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2010/10/24/tip-how-to-get-the-size-of-a-folder-in-linux-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows 7 Home Premium remote desktop</title>
		<link>http://thecrane.wordpress.com/2010/07/15/windows-7-home-premium-remote-desktop/</link>
		<comments>http://thecrane.wordpress.com/2010/07/15/windows-7-home-premium-remote-desktop/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 04:06:33 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=196</guid>
		<description><![CDATA[Found a great link to a patch that enables remote desktop hosting in Windows 7 Home Premium: http://thegreenbutton.com/forums/p/79427/393664.aspx#393664. Very nice. UPDATE: once running Service Pack 1, you need to update the patch.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=196&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Found a great link to a patch that enables remote desktop hosting in Windows 7 Home Premium: http://thegreenbutton.com/forums/p/79427/393664.aspx#393664.</p>
<p>Very nice.  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>UPDATE: once running Service Pack 1, you need <a href="http://www.missingremote.com/guide/how-enable-concurrent-sessions-windows-7-service-pack-1-rtm">to update the patch</a>. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=196&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2010/07/15/windows-7-home-premium-remote-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Shutting down via the web</title>
		<link>http://thecrane.wordpress.com/2010/07/05/shutting-down-via-the-web/</link>
		<comments>http://thecrane.wordpress.com/2010/07/05/shutting-down-via-the-web/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 10:15:27 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[shutdown via web]]></category>
		<category><![CDATA[sudoers]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=190</guid>
		<description><![CDATA[One of the annoying things about Ubuntu is the fact that you need to be an admin user to shutdown the PC. This makes sense if you are running a server, but not when you have a few PCs scattered throughout the house that you&#8217;d just like to shutdown quickly. So, I found a way [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=190&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the annoying things about Ubuntu is the fact that you need to be an admin user to shutdown the PC.  This makes sense if you are running a server, but not when you have a few PCs scattered throughout the house that you&#8217;d just like to shutdown quickly.</p>
<p>So, I found a way to enable this through Apache.  <strong>Warning</strong>: this will allow anyone who browses to your PC to shut it down without prompting.  So use carefully.</p>
<p>Basically, what you need to do is remove the need for admin/sudo access when shutting down as the <code>www-data</code> (Apache) user.  To do this, you use a specific command called <code>visudo</code> which specially edits a file containing what commands require admin access.</p>
<p>In short, make sure that the last line in that file is the following:</p>
<pre>www-data ALL= NOPASSWD: SHUTDOWN_CMDS</pre>
<p>and that there is a line further up that says <code>Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt</code>.</p>
<p>Then, once this is done, you can have a shutdown.php that has the following code:</p>
<pre>&lt;?php
echo exec('sudo shutdown -h now');
?&gt;
</pre>
<p>Q.E.D.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=190&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2010/07/05/shutting-down-via-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Symbolic linking in Windows to clear up space</title>
		<link>http://thecrane.wordpress.com/2010/06/07/symbolic-linking-in-windows-to-clear-up-space/</link>
		<comments>http://thecrane.wordpress.com/2010/06/07/symbolic-linking-in-windows-to-clear-up-space/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 04:25:47 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[clearing hdd]]></category>
		<category><![CDATA[symobolic link]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=183</guid>
		<description><![CDATA[My laptop is running Vista 32-bit at the moment, and the C:\Windows\Installer directory is over 5GB big! Not too pleased about that, I set about trying to find a way to either delete it or move it to my bigger D:\ partition. I found a great link on cloud.net that mentioned Junction &#8211; a free [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=183&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My laptop is running Vista 32-bit at the moment, and the C:\Windows\Installer directory is over 5GB big!  Not too pleased about that, I set about trying to find a way to either delete it or move it to my bigger D:\ partition.</p>
<p>I found a <a href="http://blog.ray1.net/2009/04/moving-your-windows-installer-directory.html">great link on cloud.net</a> that mentioned <a href="http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx">Junction</a> &#8211; a free app that allows the new(ish) symbolic link functionality to work in Windows.</p>
<p>Using it, I was able to move the whole folder to the D:\, and then use the command</p>
<pre>junction C:\Windows\Installer D:\Windows\Installer</pre>
<p>to trick Windows into thinking that the folder is still there.</p>
<p>Something I&#8217;m used to doing on Linux, but not Windows.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=183&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2010/06/07/symbolic-linking-in-windows-to-clear-up-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Tricksy trixbox</title>
		<link>http://thecrane.wordpress.com/2010/04/05/tricksy-trixbox/</link>
		<comments>http://thecrane.wordpress.com/2010/04/05/tricksy-trixbox/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 11:15:22 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[VOIP]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[trixbox]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=178</guid>
		<description><![CDATA[I have learned a lot about running Asterisk PBX at home&#8230;and still have much to learn. However, notes for my own records follow: When installing trixbox (a FreePBX + Asterisk distro based on CentOS), note that the default install option will format all hard drives attached to the system!!!!  It does mention that the drive [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=178&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have learned a lot about running Asterisk PBX at home&#8230;and still have much to learn.  However, notes for my own records follow:</p>
<ul>
<li>When installing trixbox (a FreePBX + Asterisk distro based on CentOS), note that the default install option will format <strong>all hard drives attached to the system</strong>!!!!  It does mention that the drive will be formatted, but doesn&#8217;t underscore that everything attached to the system &#8211; including USB hard drives &#8211; will be lost.  That&#8217;s a whole weekend of having to recover from an aborted partial total format of my server!  Use the <code>advanced</code> option from the <code>boot:</code> screen when installing</li>
<li>The default password for the FreePBX web client admin user (which you should change) is &#8220;password&#8221; for a username of &#8220;maint&#8221;.  You can change this through the <code>/etc/trixbox/httpdconf/trixbox.conf</code> file.</li>
</ul>
<p>Some more CentOS tips:</p>
<ul>
<li>CentOS is different from Ubuntu/Debian-based systems in many ways.  I&#8217;m still learning all of them (like <code>yum -y install</code> instead of <code>apt-get install</code>) but some gotchas &#8211; like the fact that package names are different (c.f. <code>samba-client</code></li>
<p>vs. <code>smbclient</code>) &#8211; are more important than others.</p>
<li>To get the prompt in the bash terminal to be more like Ubuntu, either copy the <code>~/.bashrc</code> from an Ubuntu machine (if you have one) or <a href="http://nfu.lichner.name/2008/11/centos-5-root-bash-prompt.html" target="_blank">try this tip</a>:
<pre>echo 'PS1="[\u@\h \W]\\$ "' &gt; /root/.bashrc</pre>
</li>
<li>To install Webmin, <a href="http://www.trixbox.org/wiki/webmin">follow these great instructions</a>:
<pre>wget http://internap.dl.sourceforge.net/sourceforge/webadmin/webmin-1.500-1.noarch.rpm
rpm -ivh webmin-1.500-1.noarch.rpm</pre>
</li>
<li>To play with networking settings (e.g. setting up a static IP rather than DHCP), use <code>system-config-network</code></li>
<li>If you install Samba server and want to restart it, it&#8217;s under <code>/etc/init.d/smb</code> (not <code>samba</code>).</li>
<li>If you get an error re: some packages not working (like dahdi), then use <Code>yum update</code> to update the lot.  Probably a good idea to run that anyway.</li>
<li>The default MySQL root password is "passw0rd".
<li>
</ul>
<p>More tips to come later.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thecrane.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thecrane.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thecrane.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thecrane.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&amp;blog=243281&amp;post=178&amp;subd=thecrane&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2010/04/05/tricksy-trixbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
	</channel>
</rss>
