<?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>Netflow Developments &#187; bsd</title>
	<atom:link href="http://blog.netflowdevelopments.com/tag/bsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.netflowdevelopments.com</link>
	<description>The latest and greatest happenings in the world of Science, Technology and everything else Geek</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:48:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Multi-Threaded Downloading with Wget</title>
		<link>http://blog.netflowdevelopments.com/2011/01/24/multi-threaded-downloading-with-wget/</link>
		<comments>http://blog.netflowdevelopments.com/2011/01/24/multi-threaded-downloading-with-wget/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 19:30:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Random Musings]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[multi]]></category>
		<category><![CDATA[multithread]]></category>
		<category><![CDATA[thread]]></category>
		<category><![CDATA[wget]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/?p=568</guid>
		<description><![CDATA[In the process of downloading a few thousand log files from one server to the next I suddenly had the need to do some serious multithreaded downloading in BSD, preferably with Wget as that was the simplest way I could think of handling this.  A little looking around led me to this little nugget: wget [...]]]></description>
			<content:encoded><![CDATA[<p>In the process of downloading a few thousand log files from one server to the next I suddenly had the need to do some serious multithreaded downloading in BSD, preferably with Wget as that was the simplest way I could think of handling this.  A little looking around led me to this little nugget:</p>
<p>wget -r -np -N [url] &amp; wget -r -np -N [url] &amp; wget -r -np -N [url] &amp; wget -r -np -N [url]</p>
<p>Just repeat the wget -r -np -N [url] for as many threads as you need&#8230; Now given this isn&#8217;t pretty and there are surely better ways to do this but if you want something quick and dirty it should do the trick&#8230; Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2011/01/24/multi-threaded-downloading-with-wget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Autocomplete by reverse searching history in Linux</title>
		<link>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/</link>
		<comments>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 11:07:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux / Freebsd]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[complete]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[reverse search]]></category>
		<category><![CDATA[up arrow]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/?p=428</guid>
		<description><![CDATA[Being a FreeBSD user I just got used to a very nice feature that would allow me to autocomplete commands based on my history.  So for example if 15 commands ago I had typed &#8216;cat filenames1 &#62; filename2&#8242; and I wanted to retype that command I could just type &#8216;cat&#8217; and then press up and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="linux" src="http://www.open-of-course.org/courses/file.php/24/linux-logo-full.jpg" alt="" width="196" height="216" />Being a FreeBSD user I just got used to a very nice feature that would allow me to autocomplete commands based on my history.  So for example if 15 commands ago I had typed &#8216;cat filenames1 &gt; filename2&#8242; and I wanted to retype that command I could just type &#8216;cat&#8217; and then press up and it would go through my history and bring up the last command I typed starting with &#8216;cat&#8217; until I got back to the desired command, only bringing up those in my history starting with &#8216;cat&#8217; of course.</p>
<p>Unfortunately this isn&#8217;t the way it works in linux, in linux pressing up, no matter how much you&#8217;ve typed so far will just take you back through the command history.  Sure you can press ctrl-r but I couldn&#8217;t be bothered to figure that out.  Besides there is a much cooler way to go about it.</p>
<p>what you  do is to edit /etc/inputrc:<br />
vi gedit /etc/inputrc</p>
<p>somewhere around line 40 is the following:</p>
<p># alternate mappings for &#8220;page up&#8221; and &#8220;page down&#8221; to search the history<br />
#&#8221;\e[5~&#8221;: history-search-backward<br />
#&#8221;\e[6~&#8221;: history-search-forward<br />
Uncomment those lines, close term and open an new one and viola!  It works the same but with page up and down instead.  Beauty!  If you didn&#8217;t know about this at all go in there and turn it on right now because man this is a time saver and a half.  You&#8217;ll thank me later!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Importing / Loading a Mysql backup / database from a .sql file &#8211; In Shell</title>
		<link>http://blog.netflowdevelopments.com/2009/03/23/importing-loading-a-mysql-backup-database-from-a-sql-file-in-shell/</link>
		<comments>http://blog.netflowdevelopments.com/2009/03/23/importing-loading-a-mysql-backup-database-from-a-sql-file-in-shell/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 22:26:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[.sql]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[import .sql]]></category>
		<category><![CDATA[Linux / Freebsd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[shell]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/2009/03/23/importing-loading-a-mysql-backup-database-from-a-sql-file-in-shell/</guid>
		<description><![CDATA[I was appalled when the first page of search results for this came up with instructions on how to do this for a Windows server.  So I felt it my duty to add to the tutorials out there for people actually running a real web server (BSD/Linux/Etc) Parse in the .sql file into an already [...]]]></description>
			<content:encoded><![CDATA[<p>I was appalled when the first page of search results for this came up with instructions on how to do this for a Windows server.  So I felt it my duty to add to the tutorials out there for people actually running a real web server (BSD/Linux/Etc)</p>
<p>Parse in the .sql file into an already existing DB</p>
<p>In shell simply issue the following command</p>
<p>$ mysql -u root -p db-name &lt; backup-file.sql</p>
<p>To create a new DB and then import</p>
<p>Login to Mysql:<br />
<code>$ mysql -u root -p</code></p>
<p>Now create database called sales using SQL statement:</p>
<pre>mysql&gt; <strong>CREATE DATABASE <span style="color: #ff0000;">myDB</span>;</strong>
mysql&gt; <strong>quit</strong>;</pre>
<p>Now restore database, enter:<br />
<code>$ mysql -u root -p myDB &lt; <span style="color: #993399;">/path/to/your-DB-file.sql</span></code><br />
Easy Peasy isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2009/03/23/importing-loading-a-mysql-backup-database-from-a-sql-file-in-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to update php5 or any port in BSD</title>
		<link>http://blog.netflowdevelopments.com/2008/12/09/how-to-update-php5-or-any-port-in-bsd/</link>
		<comments>http://blog.netflowdevelopments.com/2008/12/09/how-to-update-php5-or-any-port-in-bsd/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 09:32:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Random Musings]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[cvsup]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[update php]]></category>
		<category><![CDATA[update port tree]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/2008/12/09/how-to-update-php5-or-any-port-in-bsd/</guid>
		<description><![CDATA[Well I figured I would join the throng of blogs with a brief run down of cvsup , considering I just wrote a nice email about it and all I have to do is copy and paste to share it with the world : Basically you just need to install cvsup by compiling and installing [...]]]></description>
			<content:encoded><![CDATA[<p>Well I figured I would join the throng of blogs with a brief run down of cvsup , considering I just wrote a nice email about it and all I have to do is copy and paste to share it with the world :</p>
<p>Basically you just need to install cvsup by compiling and installing it</p>
<p>So head over to /usr/ports/net/cvsup and do a make &amp;&amp; make install as root</p>
<p>After that is all installed</p>
<p>copy /usr/share/examples/cvsup/ports-supfile to a new location, such as /root or your home directory.<br />
1. Edit ports-supfile you just moved to /root<br />
2. Change CHANGE_THIS.FreeBSD.org to a CVSup server near you.  IE: cvsup.FreeBSD.org<br />
3. You also want to scroll down and make sure the line &#8220;ports-all&#8221; is commented out and simply scroll down and uncomment out the ports-lang only.  This will make sure it only updates that tree instead of the entire thing.  (however you can ignore that last steo if you want to do a complete update) Save the file<br />
4. Now to run cvsup, use the following:<br />
# csup -L 2 -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile</p>
<p>or<br />
# cvsup -L 2 -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile</p>
<p>Then go into /usr/ports/lang/php5 and do a quick make(as root) and then make install</p>
<p>Viola php5 is updated</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2008/12/09/how-to-update-php5-or-any-port-in-bsd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

