<?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>usefulgeek &#187; tips</title>
	<atom:link href="http://www.usefulgeek.com/blog/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.usefulgeek.com/blog</link>
	<description>rants, reviews and kind hearted messages from some geeks</description>
	<lastBuildDate>Mon, 19 Jul 2010 16:48:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Lock and Unlock Linux accounts</title>
		<link>http://www.usefulgeek.com/blog/2010/04/lock-and-unlock-linux-accounts/</link>
		<comments>http://www.usefulgeek.com/blog/2010/04/lock-and-unlock-linux-accounts/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 13:37:06 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=264</guid>
		<description><![CDATA[Using passwd it is possible to quickly lock and unlock Linux accounts.
To lock an account.
passwd -l username
To unlock an account.
passwd -u username


Related posts:Quick install of Tomcat5 on CentOS At the office, we&#8217;re in the process of doing some...

Related posts brought to you by Yet Another Related Posts Plugin.


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/' rel='bookmark' title='Permanent Link: Quick install of Tomcat5 on CentOS'>Quick install of Tomcat5 on CentOS</a> <small>At the office, we&#8217;re in the process of doing some...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Using <code>passwd</code> it is possible to quickly lock and unlock Linux accounts.</p>
<p>To lock an account.</p>
<pre>passwd -l <code>username</code></pre>
<p>To unlock an account.</p>
<pre>passwd -u <code>username</code></pre>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/' rel='bookmark' title='Permanent Link: Quick install of Tomcat5 on CentOS'>Quick install of Tomcat5 on CentOS</a> <small>At the office, we&#8217;re in the process of doing some...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/04/lock-and-unlock-linux-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using telnet to test POP server</title>
		<link>http://www.usefulgeek.com/blog/2010/04/using-telnet-to-test-pop-server/</link>
		<comments>http://www.usefulgeek.com/blog/2010/04/using-telnet-to-test-pop-server/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 14:52:28 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=261</guid>
		<description><![CDATA[Using telnet (or putty) it&#8217;s possible to some simple tests against a POP server.  By no means exhaustive, it can give you insights in where to start troubleshooting.
First, using telnet and open a connection the remote POP server
telnet mailserver 110
Where mailserver is the mail server you want to connect to.  Note that port [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/' rel='bookmark' title='Permanent Link: Quick install of Tomcat5 on CentOS'>Quick install of Tomcat5 on CentOS</a> <small>At the office, we&#8217;re in the process of doing some...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/10/open-source-storage-server/' rel='bookmark' title='Permanent Link: Open Source storage server'>Open Source storage server</a> <small>This is not going to be a full review, but...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2010/01/remote-packet-capture/' rel='bookmark' title='Permanent Link: Remote packet capture'>Remote packet capture</a> <small>Had a need to capture some traffic on the remote...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Using telnet (or putty) it&#8217;s possible to some simple tests against a POP server.  By no means exhaustive, it can give you insights in where to start troubleshooting.</p>
<p>First, using telnet and open a connection the remote POP server</p>
<pre>telnet mailserver 110</pre>
<p>Where <code>mailserver</code> is the mail server you want to connect to.  Note that port <code>110</code> is the default port for POP, but could be different depending on your servers settings.</p>
<p>Once connected, use <code>USER</code> and <code>PASS</code> to login.</p>
<pre>
[root@ms1 ~] # telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 localhost v2001.78rh server ready
USER <code>username</code>
+OK User name accepted, password please
PASS <code>password</code>
+OK Mailbox open, 1 messages
QUIT
+OK Sayonara
Connection closed by foreign host.
</pre>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/' rel='bookmark' title='Permanent Link: Quick install of Tomcat5 on CentOS'>Quick install of Tomcat5 on CentOS</a> <small>At the office, we&#8217;re in the process of doing some...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/10/open-source-storage-server/' rel='bookmark' title='Permanent Link: Open Source storage server'>Open Source storage server</a> <small>This is not going to be a full review, but...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2010/01/remote-packet-capture/' rel='bookmark' title='Permanent Link: Remote packet capture'>Remote packet capture</a> <small>Had a need to capture some traffic on the remote...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/04/using-telnet-to-test-pop-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux IPv6 Neighbor Discovery</title>
		<link>http://www.usefulgeek.com/blog/2010/04/linux-ipv6-neighbor-discovery/</link>
		<comments>http://www.usefulgeek.com/blog/2010/04/linux-ipv6-neighbor-discovery/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 21:37:54 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ipv6]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=252</guid>
		<description><![CDATA[Using ping6 and ip neigh it&#8217;s possible to discover other IPv6 hosts on your local network using the link-local addresses.
First, use ping6 to ping all hosts on the local network using the IPv6 link-local address
ping6 -c 2 -I eth0 ff02::1
Then, use ip neigh to show a list of IPv6 enable hosts on the local network
ip [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Using <code>ping6</code> and <code>ip neigh</code> it&#8217;s possible to discover other IPv6 hosts on your local network using the link-local addresses.<br />
First, use ping6 to ping all hosts on the local network using the IPv6 link-local address</p>
<pre>ping6 -c 2 -I eth0 ff02::1</pre>
<p>Then, use <code>ip neigh</code> to show a list of IPv6 enable hosts on the local network</p>
<pre>ip -f inet6 neigh</pre>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/04/linux-ipv6-neighbor-discovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewrite incoming CallerID</title>
		<link>http://www.usefulgeek.com/blog/2010/02/rewrite-incoming-callerid/</link>
		<comments>http://www.usefulgeek.com/blog/2010/02/rewrite-incoming-callerid/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 21:38:27 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=231</guid>
		<description><![CDATA[We&#8217;re using asterisk, and as part of the dial plan, a 9 is required before the number to make calls out to the PSTN.  Since our phones have a incoming call log, it would be very convient to have asterisk rewrite the CallerID value on calls from the PSTN to include this leading digit.  I [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/01/asterisk-gotoif-application/' rel='bookmark' title='Permanent Link: Asterisk GotoIf Application'>Asterisk GotoIf Application</a> <small>The description from asterisk for this is GotoIf(condition?[labeliftrue]:[labeliffalse]), however for...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re using asterisk, and as part of the dial plan, a 9 is required before the number to make calls out to the PSTN.  Since our phones have a incoming call log, it would be very convient to have asterisk rewrite the CallerID value on calls from the PSTN to include this leading digit.  I found this was rather easy to accomplish.  Adding something similar to the following to whatever extension handles your incoming calls, all CallerID numbers will have a 9 added to the front.<br />
<code><br />
exten =&gt; s,1,Set(<span style="color: green;">CALLERID(num)</span>=9<span style="color: purple;">${CALLERID(num)</span>})<br />
</code><br />
And proceed with your normal call routing logic.  Change the preceding digit to whatever matches your system.  If you have several extensions this is going to be used with, you could benefit from using a global variable for the leading digit.</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/01/asterisk-gotoif-application/' rel='bookmark' title='Permanent Link: Asterisk GotoIf Application'>Asterisk GotoIf Application</a> <small>The description from asterisk for this is GotoIf(condition?[labeliftrue]:[labeliffalse]), however for...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/02/rewrite-incoming-callerid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asterisk GotoIf Application</title>
		<link>http://www.usefulgeek.com/blog/2010/01/asterisk-gotoif-application/</link>
		<comments>http://www.usefulgeek.com/blog/2010/01/asterisk-gotoif-application/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 15:12:20 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=211</guid>
		<description><![CDATA[The description from asterisk for this is GotoIf(condition?[labeliftrue]:[labeliffalse]), however for me (being somewhat new to asterisk, and not fully understanding all the little bits, this was a bit confusing. A better way of describing this, at least for those of use new to asterisk, might be GotoIf(condition?[context,priority,labeliftrue]:[context,priority,labeliffalse]).
I have not used labels in the dial plan [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/02/rewrite-incoming-callerid/' rel='bookmark' title='Permanent Link: Rewrite incoming CallerID'>Rewrite incoming CallerID</a> <small>We&#8217;re using asterisk, and as part of the dial plan,...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The description from asterisk for this is <code>GotoIf(condition?[labeliftrue]:[labeliffalse])</code>, however for me (being somewhat new to asterisk, and not fully understanding all the little bits, this was a bit confusing. A better way of describing this, at least for those of use new to asterisk, might be <code>GotoIf(condition?[context,priority,labeliftrue]:[context,priority,labeliffalse])</code>.<br />
I have not used labels in the dial plan before, and when starting out with this application I read label to be a context.  This lead me to write my dial plan similar to this..</p>
<pre>[default]
exten =&gt; 100,1,GoToIf(condition?true,false)
[true]
exten =&gt; s,1,...
[false]
exten =&gt; s,1,...
</pre>
<p>In retrospect, it&#8217;s obvious what the documentation is saying, but as I said, not being familiar with labels, I was a bit lost.</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/02/rewrite-incoming-callerid/' rel='bookmark' title='Permanent Link: Rewrite incoming CallerID'>Rewrite incoming CallerID</a> <small>We&#8217;re using asterisk, and as part of the dial plan,...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/01/asterisk-gotoif-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick install of Tomcat5 on CentOS</title>
		<link>http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/</link>
		<comments>http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 19:19:27 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=198</guid>
		<description><![CDATA[At the office, we&#8217;re in the process of doing some work where we need a tomcat server.  Without having to get into things to much, I found this simple method for getting tomcat5 up and running pretty quickly.  I&#8217;m sure I&#8217;ve left out some important things, and I&#8217;m doubtful as to how production ready this [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/04/using-telnet-to-test-pop-server/' rel='bookmark' title='Permanent Link: Using telnet to test POP server'>Using telnet to test POP server</a> <small>Using telnet (or putty) it&#8217;s possible to some simple tests...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>At the office, we&#8217;re in the process of doing some work where we need a tomcat server.  Without having to get into things to much, I found this simple method for getting tomcat5 up and running pretty quickly.  I&#8217;m sure I&#8217;ve left out some important things, and I&#8217;m doubtful as to how production ready this is, but for our testing, it&#8217;s working out fine.</p>
<p>I&#8217;m using CentOS 5.3 for all of this, but I&#8217;m sure it will work with CentOS 5.4</p>
<pre>yum install tomcat5 tomcat5-admin-webapps tomcat5-webapps</pre>
<p>After this, you need to edit the tomcat-users.xml file to create a new user.Using the above, this file ends up in <code>/etc/tomcat5/tomcat5-users.xml</code> and all that needs to be added is a line similar to the following..</p>
<pre>user username="admin" password="p@ssw0rd" roles="admin,manager"</pre>
<p>I can&#8217;t get wordpress to work with me on this, so you&#8217;ll need to wrap the above in angle brackets, the same as all the other lines in that file.<br />
You can set username and password to whatever you&#8217;d like.  After this, restart tomcat (not sure if this is needed) with <code>service tomcat5 restart</code> and off you go.</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/04/using-telnet-to-test-pop-server/' rel='bookmark' title='Permanent Link: Using telnet to test POP server'>Using telnet to test POP server</a> <small>Using telnet (or putty) it&#8217;s possible to some simple tests...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Launch Google Chrome and external links with incognito mode.</title>
		<link>http://www.usefulgeek.com/blog/2009/11/launch-google-chrome-and-external-links-with-incognito-mode/</link>
		<comments>http://www.usefulgeek.com/blog/2009/11/launch-google-chrome-and-external-links-with-incognito-mode/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 03:19:50 +0000</pubDate>
		<dc:creator>drale</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=178</guid>
		<description><![CDATA[The instructions floating around are to place the --incognito switch (single &#8211; works fine for me) in your desktop shortcut. But sometimes you may be in an application like Tweek Deck, etc that links to webpages. These pages don&#8217;t launch in incognito if you only fix your desktop shortcut. Here is how to do both. [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/10/installing-dropbox-on-ubuntu-and-others/' rel='bookmark' title='Permanent Link: Installing Dropbox on Ubuntu (and others)'>Installing Dropbox on Ubuntu (and others)</a> <small>I&#8217;ve been using dropbox to sync and share files between...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The instructions floating around are to place the <code>--incognito</code> switch (single &#8211; works fine for me) in your desktop shortcut. But sometimes you may be in an application like Tweek Deck, etc that links to webpages. These pages don&#8217;t launch in incognito if you only fix your desktop shortcut. Here is how to do both. Google Chrome is set as the default browser in this case.</p>
<p>(These instructions are based off of Windows XP)</p>
<p>Right-click on your Chrome shortcut. Choose <em>P</em><em>roperties</em>. Add <em>-incognito</em> to the end:</p>
<pre>chrome.exe" --incognito</pre>
<p>To launch all web shortcuts and links from your system:<br />
<em>Control Panel &gt; Folder Options &gt; File Types</em><br />
Select the File Type <em>URL:HyperText Transfer Protocol</em> and choose <em>Advanced<br />
<span style="font-style: normal">Select action </span>open<span style="font-style: normal"> and </span>edit<span style="font-style: normal">.<br />
Just like before add the switch to the end like this:<br />
</span></em></p>
<pre>chrome.exe" --incognito -- "%1"</pre>
<p><strong>Edit:</strong> After more digging in Google I found this tip mentioned in <a href="http://code.google.com/p/chromium/issues/detail?id=6273#c3">Google Code Chromium issues</a> (Comment 3).</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/10/installing-dropbox-on-ubuntu-and-others/' rel='bookmark' title='Permanent Link: Installing Dropbox on Ubuntu (and others)'>Installing Dropbox on Ubuntu (and others)</a> <small>I&#8217;ve been using dropbox to sync and share files between...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/11/launch-google-chrome-and-external-links-with-incognito-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove bonded interface in OpenFiler</title>
		<link>http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/</link>
		<comments>http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 13:45:42 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[openfiler]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=174</guid>
		<description><![CDATA[I decided to try and use NIC bonding in OpenFiler and while things seemed to go well at first, I did run into some issues over time.  I&#8217;m still in the process of testing, and I think most of the issues are &#8220;user error&#8221; and not so much problems with NIC bonding or OpenFiler itself.  [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/10/open-source-storage-server/' rel='bookmark' title='Permanent Link: Open Source storage server'>Open Source storage server</a> <small>This is not going to be a full review, but...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/' rel='bookmark' title='Permanent Link: Quick install of Tomcat5 on CentOS'>Quick install of Tomcat5 on CentOS</a> <small>At the office, we&#8217;re in the process of doing some...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I decided to try and use NIC bonding in OpenFiler and while things seemed to go well at first, I did run into some issues over time.  I&#8217;m still in the process of testing, and I think most of the issues are &#8220;user error&#8221; and not so much problems with NIC bonding or OpenFiler itself.  More on that later.</p>
<p>I was able to configure a bonded interface, and add both interfaces to it.  However, after the issues started, I wanted to remove the bond.  There is no way of doing this from within the Web UI it seems.  Easiest solution, login to the console, and delete <code>/etc/sysconfig/network-scripts/ifcfg-bond0</code> if you&#8217;re using the first bond interface.</p>
<p>After this file is deleted, <code>service network restart</code> should get you going again.</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/10/open-source-storage-server/' rel='bookmark' title='Permanent Link: Open Source storage server'>Open Source storage server</a> <small>This is not going to be a full review, but...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/' rel='bookmark' title='Permanent Link: Quick install of Tomcat5 on CentOS'>Quick install of Tomcat5 on CentOS</a> <small>At the office, we&#8217;re in the process of doing some...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Text and Find/Replace Easier Than You Think in Linux</title>
		<link>http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/</link>
		<comments>http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 09:37:49 +0000</pubDate>
		<dc:creator>drale</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[rpl]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=154</guid>
		<description><![CDATA[How to search all files for a text string:
grep -lr string ./ &#62; results.txt
-l will print only the path and file names of the matches.
Search all files of a certain name for a certain string:
grep -lr string ./ &#124; grep filename
Yes, do specify ./ if you are doing all directories within current.
(source and more info)
Find [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><strong>How to search all files for a text string:</strong></p>
<pre>grep -lr string ./ &gt; results.txt</pre>
<p><code>-l</code> will print only the path and file names of the matches.</p>
<p>Search all files of a certain name for a certain string:</p>
<pre>grep -lr string ./ | grep filename</pre>
<p>Yes, do specify ./ if you are doing all directories within current.</p>
<p>(<a href="http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/">source and more info</a>)</p>
<p><strong>Find an replace a string in files:</strong><br />
Searching for a way to do this usually leads me to finding fancy scripts that don&#8217;t work right, are scary (create temp files, etc) or aren&#8217;t recursive. Just have backups at hand and test the following combination of <code>find</code> and <code>sed</code> before unleashing it, because it works great! You can test it by replacing <code>sed</code> with <code>grep</code></p>
<pre>find ./ -type f -exec sed -i ’s/string1/string2/’ {} \;</pre>
<p>Within specific file names/extentions&#8230;</p>
<pre>find ./ -iname \*.htm\* -exec sed -i 's/\-2005/\-2007/g' {} \;</pre>
<p>Don&#8217;t forget to use escape \ as seen above. And if your strings contain forward slash / just use a different delimiter such as pipe | or escape it.</p>
<p>You can also install rpl, as shown in the source pdf, for even cleaner line of code for executing your find and replace.</p>
<p>(<a href="http://www.sb.fsu.edu/~xray/Manuals/Search+Replace-v.2.pdf">source and more info</a>) A nice pdf to keep by your side.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Dropbox on Ubuntu (and others)</title>
		<link>http://www.usefulgeek.com/blog/2009/10/installing-dropbox-on-ubuntu-and-others/</link>
		<comments>http://www.usefulgeek.com/blog/2009/10/installing-dropbox-on-ubuntu-and-others/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 13:12:27 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=148</guid>
		<description><![CDATA[I&#8217;ve been using dropbox to sync and share files between my various computers for quite some time, and overall have been very pleased.  However, one area things are not so great&#8230; documentation for installation on Linux.  After having to reinstall on my notebook, I decided to somewhat document the hidden part of the process.
After downloading [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/01/share-files-list-in-dropbox-public-folder/' rel='bookmark' title='Permanent Link: Share list of files in DropBox Public folder'>Share list of files in DropBox Public folder</a> <small>For Windows DropBox users. Here is a simple way to...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/' rel='bookmark' title='Permanent Link: Quick install of Tomcat5 on CentOS'>Quick install of Tomcat5 on CentOS</a> <small>At the office, we&#8217;re in the process of doing some...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/11/launch-google-chrome-and-external-links-with-incognito-mode/' rel='bookmark' title='Permanent Link: Launch Google Chrome and external links with incognito mode.'>Launch Google Chrome and external links with incognito mode.</a> <small>The instructions floating around are to place the --incognito switch...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a title="getdropbox" href="https://www.getdropbox.com/">dropbox</a> to sync and share files between my various computers for quite some time, and overall have been very pleased.  However, one area things are not so great&#8230; documentation for installation on Linux.  After having to reinstall on my notebook, I decided to somewhat document the hidden part of the process.</p>
<p>After downloading the .deb (or other package) and installing, <a href="https://www.getdropbox.com/downloading">dropbox instructions</a> leave you hanging.  There is no dropbox folder, there is no daemon running, nothing.  The next step is simply to run <code>dropbox start -i</code> to install the daemon and launch the process to move forward.  It&#8217;s simple, easy and poorly documented.  Maybe dropbox should add this to the end of their install instructions?</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/01/share-files-list-in-dropbox-public-folder/' rel='bookmark' title='Permanent Link: Share list of files in DropBox Public folder'>Share list of files in DropBox Public folder</a> <small>For Windows DropBox users. Here is a simple way to...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/' rel='bookmark' title='Permanent Link: Quick install of Tomcat5 on CentOS'>Quick install of Tomcat5 on CentOS</a> <small>At the office, we&#8217;re in the process of doing some...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/11/launch-google-chrome-and-external-links-with-incognito-mode/' rel='bookmark' title='Permanent Link: Launch Google Chrome and external links with incognito mode.'>Launch Google Chrome and external links with incognito mode.</a> <small>The instructions floating around are to place the --incognito switch...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/10/installing-dropbox-on-ubuntu-and-others/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
