<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rough Book &#187; Networking</title>
	<atom:link href="http://vivin.net/category/nerdy-stuff/computers-nerdy-stuff/networking-computers-nerdy-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://vivin.net</link>
	<description>random musings of just another computer nerd</description>
	<lastBuildDate>Wed, 02 May 2012 18:20:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Broadband speed-test results for T-Mobile&#8217;s HSPA+ network</title>
		<link>http://vivin.net/2010/12/29/broadband-speed-test-results-for-t-mobiles-hspa-network/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2010/12/29/broadband-speed-test-results-for-t-mobiles-hspa-network/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 02:41:12 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[broadband]]></category>
		<category><![CDATA[g2]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hspa+]]></category>
		<category><![CDATA[internet speed]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[qwest]]></category>
		<category><![CDATA[t-mobile]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1621</guid>
		<description><![CDATA[I&#8217;m at Phoenix Sky Harbor airport waiting for my (delayed) file to Orange County. I was having trouble connecting to Sky Harbor&#8217;s free Wi-Fi and so I decided to tether to my G2. The phone was showing all four bars on the HSPA+ network and so I decided to run a speed test. This is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m at Phoenix Sky Harbor airport waiting for my (delayed) file to Orange County. I was having trouble connecting to Sky Harbor&#8217;s free Wi-Fi and so I decided to tether to my G2. The phone was showing all four bars on the HSPA+ network and so I decided to run a speed test. This is what I got:</p>
<p><a href="http://vivin.net/wp-content/uploads/2010/12/1090044307.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://vivin.net/wp-content/uploads/2010/12/1090044307.png" alt="Broadband speed-test results" title="Broadband speed-test results" width="300" height="135" class="aligncenter size-full wp-image-1624" /></a></p>
<p>The average speed for T-Mobile as reported by speedtest.net is around 2Mbps, so I&#8217;m surprised that mine is so high. I ran a few more tests and I got results between 2.5Mbps and 3.5Mbps. What bothers me the most is that T-Mobile&#8217;s mobile network provides a better upload speed than the measly 896Kbps that Qwest gives me.</p>
<br /><a href="http://vivin.net/?p=1621#comments" title="Comments on &quot;Broadband speed-test results for T-Mobile&#8217;s HSPA+ network&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1621" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=1621&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/12/29/broadband-speed-test-results-for-t-mobiles-hspa-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/uploads/2010/12/1090044307-150x135.png" />
		<media:content url="http://vivin.net/wp-content/uploads/2010/12/1090044307.png" medium="image">
			<media:title type="html">Broadband speed-test results</media:title>
			<media:thumbnail url="http://vivin.net/wp-content/uploads/2010/12/1090044307-150x135.png" />
		</media:content>
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1621" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=1621&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>GitHub broke my scp</title>
		<link>http://vivin.net/2010/03/09/github-broke-my-scp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2010/03/09/github-broke-my-scp/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:44:08 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1466</guid>
		<description><![CDATA[I set up git on my FreeBSD box so that I can commit my code to GitHub. Today I tried to scp some stuff over and I was met with this rather unhelpful message: vivin@serenity ~/Projects/code $ scp -r vivin@www.vivin.net:~/code/agnostic . Password: ps: Process environment requires procfs(5) Initializing new SSH agent... vivin@serenity ~/Projects/code $ I [...]]]></description>
			<content:encoded><![CDATA[<p>I set up <a href="http://en.wikipedia.org/wiki/Git_%28software%29">git</a> on my FreeBSD box so that I can commit my code to <a href="http://github.com/">GitHub</a>. Today I tried to scp some stuff over and I was met with this rather unhelpful message:</p>
<pre>
vivin@serenity ~/Projects/code
$ scp -r vivin@www.vivin.net:~/code/agnostic .
Password:
ps: Process environment requires procfs(5)
Initializing new SSH agent...

vivin@serenity ~/Projects/code
$
</pre>
<p>I fixed the procfs problem by adding the following to my <em>/etc/fstab</em>:</p>
<pre class="brush: php">
proc                    /proc           procfs  rw              0       0
linproc                 /compat/linux/proc      linprocfs       rw      0       0
</pre>
<p>and then running:</p>
<pre>
vivin@enterprise ~
$ sudo mount /compat/linux/proc

vivin@enterprise ~
$ sudo mount /proc
</pre>
<p>So I try to scp again and I get:</p>
<pre>
vivin@serenity ~/Projects/code
$ scp -r vivin@www.vivin.net:~/code/agnostic .
Password:
Initializing new SSH agent...

vivin@serenity ~/Projects/code
$
</pre>
<p>WTF? Then I remembered making some changes to my <em>.bashrc</em> to be able to commit to github:</p>
<pre class="brush: php">
function start_agent {
  echo &quot;Initializing new SSH agent...&quot;
  /usr/bin/ssh-agent | sed &#039;s/^echo/#echo/&#039; &gt; &quot;${SSH_ENV}&quot;
  echo succeeded
  chmod 600 &quot;${SSH_ENV}&quot;
  . &quot;${SSH_ENV}&quot; &gt; /dev/null
  /usr/bin/ssh-add;
}

# Source SSH settings, if applicable
if [ -f &quot;${SSH_ENV}&quot; ]; then
  . &quot;${SSH_ENV}&quot; &gt; /dev/null
  #ps ${SSH_AGENT_PID} doesn&#039;t work under cywgin
  ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ &gt; /dev/null || {
    start_agent;
  }
else
  start_agent;
fi
</pre>
<p>I pulled all that out of my <em>.bashrc</em> and made a separate shell script for it. After I did that, scp started working again. I had no idea that calling scp would actually run <em>.bashrc</em></p>
<br /><a href="http://vivin.net/?p=1466#comments" title="Comments on &quot;GitHub broke my scp&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=1466&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/03/09/github-broke-my-scp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=1466&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>Flu shot and bizarre network issues</title>
		<link>http://vivin.net/2009/10/27/flu-shot-and-bizarre-network-issues/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/10/27/flu-shot-and-bizarre-network-issues/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 22:49:34 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[flu]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[vaccine]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1042</guid>
		<description><![CDATA[This last weekend I had drill and the medics gave us the seasonal-flu mist-vaccine. It&#8217;s the one where they squirt gooey, inactive virus up your nose. I&#8217;ve had the vaccine before without any adverse side-effects. Yeah, not this time. I got the shot on Saturday and I was fine on Sunday. Not so on Monday. [...]]]></description>
			<content:encoded><![CDATA[<p>This last weekend I had drill and the medics gave us the seasonal-flu mist-vaccine. It&#8217;s the one where they squirt gooey, inactive virus up your nose. I&#8217;ve had the vaccine before without any adverse side-effects. Yeah, not this time. I got the shot on Saturday and I was fine on Sunday. Not so on Monday. I woke up a few times in the middle of the night with a bit of a fever, but I figured that it would just go away. Yeah, didn&#8217;t happen. On Monday morning I felt like I had been run over by a semi. My throat felt like I had swallowed bits of broken glass. Needless to say, I didn&#8217;t go to work. I was bedridden most of the day, but towards the end I felt a little better. I tried to get a little work done but I wasn&#8217;t too successful since I had a hard time concentrating.<br />
<span id="more-1042"></span><br />
By around seven or eight in the evening I was checking my email and I realized that Gmail wasn&#8217;t picking up any mail from vivin.net. I thought that courier-imap might not be running, but it was. Gmail complained that the connection was timing out. Odd, because I hadn&#8217;t made any changes at all recently other than an <em>fsck</em> after a power failure. I decided to try out the POP3 tester over <a href="http://www.wormly.com/test_pop3_mail_server">here</a> and I also got a timeout error. However, when I did a command-line test of the POP3 server like so:</p>
<pre class="brush: php">
openssl s_client -connect localhost:995
</pre>
<p>Everything seemed fine. Furthermore, this problem seemed to be limited to both my FreeBSD servers. My Linux box seemed to be running fine. I tried a bunch of things. I restarted both machines, restarted the network interfaces, made sure firewalls weren&#8217;t running, reset my router&#8230; nothing seemed to work. Every time I tested the connection to the machines (using this awesome tool <a href="http://www.uptimeinspector.com/test-server-connection.html">here</a>), the connections would time out. What was even stranger was that a <em>netstat</em> showed connections to be in a SYN_RCVD state, which meant that the box had accepted the connection. It&#8217;s just that the response wasn&#8217;t getting out. Eventually I was so desperate that I decided to reinstall FreeBSD on one of the machines. I also posted to a BSD forum asking for help. I figured that next evening I could probably fix it after work.</p>
<p>Well, next morning I still felt terrible, but it wasn&#8217;t so bad. My throat wasn&#8217;t hurting as much and I didn&#8217;t have that much of a headache so I was able to work from home. Oh, and the installation had completed. I set everything up quickly and gave it a whirl. Nope. Same problem. Yeah, I was getting pretty frustrated and annoyed at this point. I went so far as to contemplate wiping my beloved FreeBSD off both machines and putting Linux on there. I updated my post at the forum and I checked on it periodically throughout the day as I kept working. Finally, a kind soul popped in to help me out. He helped me troubleshoot using <em>tcpdump</em> and I was able to confirm that the machine was responding to the incoming connection, but it wasn&#8217;t going out. Finally, he asked me to check the routing information. I&#8217;m not that well-versed with that so I didn&#8217;t see the problem until he pointed it out. The routing information was all wrong!</p>
<p>See, I have two network interfaces on the box. One for my internal network, and one pointing to the outside world. The one pointing to the outside world is statically configured, whereas the one for my internal network picks up its configuration from my AirPort Extreme router. What was happening was that <em>dhclient</em> was overwriting the route information. So when the machine tried to respond back, it saw its default route as the internal router, and <em>not</em> my modem! I had to update my <em>dhclient.conf</em> and force the router address to the correct one:</p>
<pre class="brush: php">
backoff-cutoff 2;
initial-interval 1;
retry 10;
select-timeout 0;
timeout 30;

interface &amp;quot;vr0&amp;quot; {
   supersede routers 209.x.y.54;
   supersede host-name &amp;quot;enterprise&amp;quot;;
   supersede domain-name &amp;quot;xxxx.xxx&amp;quot;;
   request subnet-mask,
           domain-name-servers;

   require subnet-mask,
           domain-name-servers;
}
</pre>
<p>The important line here is the one that says <em>supersede routers 209.x.y.54;</em> (I&#8217;ve hidden the actual numbers from teh hax0rs). This tells the <em>dhclient</em> to override the router information that it gets from the DHCP server. Once I did this, everything started working again. My thanks to <em>jggimi</em> at <a href = "http://www.daemonforums.org/showthread.php?t=3936">DaemonForums</a>!</p>
<br /><a href="http://vivin.net/?p=1042#comments" title="Comments on &quot;Flu shot and bizarre network issues&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1042" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=1042&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/10/27/flu-shot-and-bizarre-network-issues/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1042" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1042" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=1042&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>Qwest charges a &#8220;setup fee&#8221; for static IP&#8217;s</title>
		<link>http://vivin.net/2009/10/13/qwest-charges-a-setup-fee-for-static-ips/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/10/13/qwest-charges-a-setup-fee-for-static-ips/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:58:46 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[dyndns]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[qwest]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1028</guid>
		<description><![CDATA[Two weeks ago, I finally got my DSL upgrade from a measly 3Mbps to a whopping (for me) 12Mbps. I have been on 3Mbps since 2004, and the difference is amazing. I&#8217;m able to stream HD quality stuff from Netflix all the time! Qwest set me up with an Actiontec Q1000 router/modem, which as far [...]]]></description>
			<content:encoded><![CDATA[<p>Two weeks ago, I finally got my DSL upgrade from a measly 3Mbps to a whopping (for me) 12Mbps. I have been on 3Mbps since 2004, and the difference is amazing. I&#8217;m able to stream HD quality stuff from Netflix all the time! Qwest set me up with an Actiontec Q1000 router/modem, which as far as routers go, is not that great. But it does the job&#8230; somewhat. My previous modem (also from Qwest) would let me grab multiple IP&#8217;s from Qwest if I had it plugged into a switch (every machine that was plugged into that switch got an IP from Qwest&#8217;s pool). However, the Actiontec is different. Since it&#8217;s a router, it basically just enables DHCP and gives you an address. This was a problem for me because I have three machines that face the outside world and I use DynDNS so that I can access them. The router does some port-mapping, but that wasn&#8217;t an option. Since my website was my top priority, I set it up in a DMZ and figured that I could access the other two machines through my webserver, so no big deal. But yeah, didn&#8217;t work completely. DynDNS uses the modem&#8217;s IP for my webserver. I can access my website without any problem, from the outside world. But if I try to get to it from within my network, I end up at the Actiontec&#8217;s configuration page. Stupid. So eventually I just decided to get some static IP&#8217;s. The price was pretty reasonable: a block of 8 for $14.99 a month. Then I saw the setup fee: $50. Seriously? FIFTY dollars to set up a block of IP addresses?<span id="more-1028"></span> It gets even better. The more IP addresses you order, the higher the &#8220;setup fee&#8221; goes. Here&#8217;s the full chart:</p>
<table border="1">
<tbody>
<tr>
<td><strong># of IP Addresses</strong></td>
<td><strong>Monthly Rate</strong></td>
<td><strong>One Time Charge</strong></td>
</tr>
<tr>
<td>1 (1 useable)</td>
<td>$5.95</td>
<td>$25.00</td>
</tr>
<tr>
<td>8 (5 useable)</td>
<td>$14.95</td>
<td>$50.00</td>
</tr>
<tr>
<td>16 (13 useable)</td>
<td>$29.95</td>
<td>$75.00</td>
</tr>
<tr>
<td>32 (29 useable)</td>
<td>$59.95</td>
<td>$150.00</td>
</tr>
<tr>
<td>64 (61 useable)</td>
<td>$119.95</td>
<td>$250.00</td>
</tr>
</tbody>
</table>
<p><em>Source: <a href="http://www.qwest.net/help/static_ips.html#howmuch">Qwest.net:  How much do static IP addresses cost and how many addresses do I get?</a></em></p>
<p>I had a hard time understanding this. I mean, I&#8217;ll admit that I&#8217;m not a networking expert. But how hard can setting up static IP&#8217;s be? Does it <em>really</em> take $50 worth of work? I&#8217;m assuming it involves some configuration &#8211; probably a few keystrokes or something of that nature. $50 for that? Maybe it&#8217;s completely different from what I think. Maybe IP addresses are huge blocks of stone that need to be moved from place to place, therefore there are obvious labor costs. Whatever. $50 sounds ridiculous to me. I figured I&#8217;d talk to Qwest and see if they could explain this cost to me. I didn&#8217;t get anywhere with the reps online, but the prompt and helpful folks at <a href="http://twitter.com/TalkToQwest">@TalkToQwest</a> finally emailed me with an answer:</p>
<blockquote><p>Hello Vivin,</p>
<p>After doing a little research on the matter I have found out a little more about the business decision to charge for setting up Static IP’s. Initially, there is a lot more in the way of system software that has to be implemented on our order side to facilitate these orders as apposed to the standard issue.</p>
<p>Additionally, the potential costs of features/functions that are afforded the customer with these services potentially require more resources and as such, cost to maintain and implement.</p>
<p>The setup cost is a way to spread that cost across the specific platform at what is considered a reasonable amount. How exactly they come up with this figure is of course something that I would not be privy to and would be considered proprietary marketing/business internally confidential information that I could not disclose any how, but that is the basic reason why we charge for the setup. There are cost unique to Static IP’s and they need to be covered.</p>
<p>Hope that helps explain it a bit anyway.</p></blockquote>
<p>Not exactly the answer I was looking for, but I appreciate the time that the rep took to write me an email, and I guess I did understand the rep&#8217;s point that there are <em>some</em> costs involved. But come on, now&#8230; The point about &#8220;cost to maintain and implement&#8221; &#8211; I assume that this could easily be covered by the $14.99 I pay them every month. Other than that, I don&#8217;t see any reason to have a setup fee. If you ask me, there&#8217;s really only one reason. I apologize if I&#8217;m being cynical, but honestly I think it&#8217;s just a way for Qwest to make a quick buck. I can&#8217;t think of any other reason. I also don&#8217;t really buy into the whole &#8220;proprietary marketing/internal business/confidential&#8221; aspect of this, because come on&#8230; it&#8217;s just networking. I&#8217;m assuming that not too many people care about the fee, or ask about it and so Qwest is able to get away with it. Come to think of it, whoever invented the concept of a the &#8220;setup fee&#8221; is a genius. It&#8217;s a technical and important-sounding phrase that is also completely meaningless.</p>
<p>Anyway, I decided to take the hit and order them because I need the block. But overall I think it should be mandatory for companies to itemize and describe all the elements that make up a &#8220;setup fee&#8221; instead of just charging their customers some random amount. As customers we have a right to know what we&#8217;re paying for.</p>
<br /><a href="http://vivin.net/?p=1028#comments" title="Comments on &quot;Qwest charges a &#8220;setup fee&#8221; for static IP&#8217;s&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1028" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=1028&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/10/13/qwest-charges-a-setup-fee-for-static-ips/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1028" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1028" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=1028&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>My new laptop</title>
		<link>http://vivin.net/2008/02/17/my-new-laptop/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2008/02/17/my-new-laptop/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 01:04:14 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[pcbsd]]></category>
		<category><![CDATA[windows vista]]></category>
		<category><![CDATA[xps]]></category>
		<category><![CDATA[xps m1530]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=384</guid>
		<description><![CDATA[I recently bought myself a new laptop &#8211; the Dell XPS M1530. I was originally considering a Macbook, but that was a little too pricey for me. I started to fancy OS X ever since I found out that it is basically FreeBSD at the core. Also, there is the eye-candy. Other than the price-tag, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bought myself a new laptop &#8211; the <a target = "_blank" href = "http://www.dell.com/content/products/productdetails.aspx/xpsnb_m1530?c=us&amp;amp;cs=19&amp;amp;l=en&amp;amp;s=dhs&amp;amp;~tab=bundlestab">Dell XPS M1530</a>. I was originally considering a <a target = "_blank" href = "http://www.apple.com/macbook/">Macbook</a>, but that was a little too pricey for me. I started to fancy <a target = "_blank" href = "http://www.apple.com/macosx/">OS X</a> ever since I found out that it is basically <a target = "_blank" href = "http://freebsd.org">FreeBSD</a> at the core. Also, there is the eye-candy. Other than the price-tag, I also realized that the only reason I would want the Macbook was because it looks so good. That didn&#8217;t seem entirely practical. I could still get the eye-candy and the productivity on <a target = "_blank" href = "http://pcbsd.org">another OS</a>. The last laptop I bought was an Alienware beast. It was ridiculously heavy and I got sick of lugging it around. It basically a desktop masquerading as a laptop. In addition to being really heavy, it generates quite a lot of heat. Enough to burn your lap. But it plays games really, really well. Anyway, I decided that I would look for a nice non-Apple laptop. After scouring the Internets and reading a bunch of reviews, I settled on the XPS. It&#8217;s sleek, stylish, fast, portable, and it got a bunch of good reviews. I went to the Dell site and configured my XPS:</p>
<ul>
<li>Intel Core 2 Duo Processor T7700 (2.4GHz/800Mhz FSB, 4MB Cache)</li>
<li>3GB Shared Dual Channel DDR2 SDRAM at 667MHz (2 Dimms)</li>
<li>256MB NVIDIA GeForce 8600M GT</li>
<li>250GB 5400rpm SATA Hard Drive</li>
<li>High Resolution glossy widescreen 15.4 inch LCD(1680&#215;1050) 2MP Camera</li>
<li>Slot Load DVD+/-RW (DVD/CD read/write)</li>
<li>Integrated Sound Blaster Audigy HD Software Edition</li>
<li>Intel Next-Gen Wireless-N Mini-card (4965AGN)</li>
</ul>
<p>It&#8217;s got some punch. I&#8217;m mainly going to use it as a development machine so the RAM and speed definitely help as far as compile-times go. They estimated about two weeks to build the laptop, but actually I got a pleasant surprise when the laptop arrived a little over a week after I ordered it. I wasn&#8217;t disappointed in the least when I opened up the package. The first thing I did was blast <a target = "_blank" href = "http://www.microsoft.com/windows/products/windowsvista/default.mspx">Vista</a> off the hard-drive and install PC-BSD. This is where I learnt a hard lesson. Stability in the BSD world comes at a price. You don&#8217;t have very good hardware support (for no fault of FreeBSD; I&#8217;ll rant about this later) for the latest hardware. Drivers are not included until they are reliable and stable. As a result, my Marvell Yukon 88E8040 Gigabit Ethernet card, and my Intel 4965AGN Wireless-N card were unrecognized. Marvell (surprisingly) had a FreeBSD 6 driver on their website that is supposed to work with the 88E80XX series, but I was unable to get it to work on my system. I tried using <a target = "_blank" href = "http://en.wikipedia.org/wiki/NdisWrapper">ndiswrapper</a> to get the Intel card working, but I only succeeded in crashing my system very nicely. I was pretty bummed. I really didn&#8217;t want to go back to using The Evil (Vista), and so I decided to play around with <a target = "_blank" href = "http://www.kubuntu.org/">kubuntu</a> for a while. It was nice, and I may get back to it. But for the hell of it, I wiped it off and tried to install OS X on it. I was able to get a &#8220;patched&#8221; Leopard ISO and I actually got it to install on the XPS. However, I wasn&#8217;t able to get it to recognize any of my network devices. So after playing around with that for a while, I went back to The Evil. I am hoping that by the time PC-BSD 2.0 or FreeBSD 7.0 rolls around, there will be more support for the network cards. If that&#8217;s the case, I&#8217;ll definitely be wiping out Vista and installing PC-BSD (or install FreeBSD 7.0 and build KDE). I&#8217;ve been using Vista for a little while, and I guess it&#8217;s not so bad. It&#8217;ll stay out of your way if you ask it to. But it really doesn&#8217;t compare to either PC-BSD, Kubuntu, or Leopard. As far as the XPS, I like it a whole lot. I think Dell has done a pretty good job with it.</p>
<br /><a href="http://vivin.net/?p=384#comments" title="Comments on &quot;My new laptop&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?384" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=384&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2008/02/17/my-new-laptop/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?384" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?384" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=384&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>Getting the Netgear WN311T to work on PC-BSD/FreeBSD</title>
		<link>http://vivin.net/2007/07/10/getting-the-netgear-wn311t-to-work-on-pcbsdfreebsd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2007/07/10/getting-the-netgear-wn311t-to-work-on-pcbsdfreebsd/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 22:22:57 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[ndisgen]]></category>
		<category><![CDATA[ndisulator]]></category>
		<category><![CDATA[ndiswrapper]]></category>
		<category><![CDATA[netgear]]></category>
		<category><![CDATA[pcbsd]]></category>
		<category><![CDATA[wep]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[wireless card]]></category>
		<category><![CDATA[wireless cards]]></category>
		<category><![CDATA[wireless drivers]]></category>
		<category><![CDATA[wn311t]]></category>
		<category><![CDATA[wpa]]></category>
		<category><![CDATA[wpa_supplicant]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=379</guid>
		<description><![CDATA[Recently, I decided to try out PC-BSD. It&#8217;s essentially FreeBSD with a desktop (KDE) and various other goodies. I&#8217;ll talk about my experience with PC-BSD in another post. This one is about setting up the Netgear WN311T RangeMax NEXT Wireless Adapter to work with PC-BSD. I had heard that setting up wireless to work with [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I decided to try out <a target = "_blank" href = "http://pcbsd.org/">PC-BSD</a>. It&#8217;s essentially <a target = "_blank" href = "http://freebsd.org">FreeBSD</a> with a desktop (<a target = "_blank" href = "http://en.wikipedia.org/wiki/KDE">KDE</a>) and various other goodies. I&#8217;ll talk about my experience with PC-BSD in another post. This one is about setting up the <a target = "_blank" href = "http://www.netgear.com/Products/Adapters/RangeMaxNextWirelessAdapters/WN311T.aspx">Netgear WN311T RangeMax NEXT Wireless Adapter</a> to work with PC-BSD. I had heard that setting up wireless to work with FreeBSD or Linux can be quite an adventure and my experience was no different. These instructions should also work for regular FreeBSD. You can also use the following instructions to get other wireless cards working. But remember that each one will have its own quirks so you will probably have to scour the web looking for additional documentation. Remember, <a target = "_blank" href = "http://google.com">Google</a> is your friend!</p>
<p>When I installed PC-BSD, I noticed that it wasn&#8217;t able to recognize my Wireless Adapter. This wasn&#8217;t a surprise, and for no fault of PC-BSD&#8217;s. It&#8217;s just that very few manufacturers make drivers for OSes other than Windows. Also, they are reluctant to release details for the adapters because they regard them as trade secrets. Hence, developers are left with the option to painstakingly reverse-engineer the adapters and write drivers for them. Anyway, before I could get my card to work, I needed to know what chipset it uses. To do this, you can use <span style = "font-family:courier new">lspci</span>, which lists devices on the PCI bus.</p>
<p>So first, open up a terminal window from Start-&#62;System-&#62;Konsole. Then do:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
[vivin@tardis ~] su
Password:
[root@tardis /home/vivin]# pkg_add -r pciutils
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/pciutils.tbz... Done
[root@tardis /home/vivin]# lspci</strong>
00:00.0 Host bridge: Intel Corporation 82875P/E7210 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82875P Processor to AGP Controller (rev 02)
00:03.0 PCI bridge: Intel Corporation 82875P/E7210 Processor to PCI to CSA Bridge (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV31 [GeForce FX 5600] (rev a1)
02:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller (LOM)
<strong>03:01.0 Ethernet controller: Marvell Technology Group Ltd. Unknown device 2a02 (rev 03)</strong>
03:02.0 Serial controller: 3Com Corp, Modem Division 56K FaxModem Model 5610 (rev 01)
03:03.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
03:03.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 03)
03:03.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port
03:04.0 Multimedia controller: Sigma Designs, Inc. REALmagic Hollywood Plus DVD Decoder (rev 02)</pre>
<p>As you can see, the wireless controller has a <a target = "_blank" href = "http://marvell.com">Marvell</a> chipset. Unfortunately, FreeBSD doesn&#8217;t have a driver for Marvell chipsets. This is where the amazing piece of software known as <span style = "font-family:courier new"><a target = "_blank" href = "http://ndiswrapper.sourceforge.net/joomla/">ndiswrapper</a></span> comes in. FreeBSD doesn&#8217;t have <span style = "font-family:courier new">ndiswrapper</span> per se, instead it has something similar called <span style = "font-family:courier new"><a target = "_blank" href = "http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html">ndisulator</a></span> (also known as <em>Project Evil</em>). This nifty piece of software creates a kernel module by making a wrapper around the Windows driver (using the SYS and INF files). You can then load this kernel module and FreeBSD will be able to recognize your wireless card.</p>
<p>Before you can run <span style = "font-family:courier new">ndisulator</span>, you need access to your hardware&#8217;s driver files and the kernel source files. For PC-BSD, you can get the source files <a target = "_blank" href = "http://www.pbidir.com/packages.php?code=436">here</a>. You will need to copy this from <span style = "font-family:courier new">/Programs</span> to <span style = "font-family:courier new">/usr</span> and extract it. For FreeBSD, run <span style = "font-family:courier new">/stand/sysinstall</span> and then download the <span style = "font-family:courier new">src</span> distribution. I think it&#8217;s somewhere under &#8220;Configure&#8221;.</p>
<p>As far as the driver files, you can usually get this from your installation CD. However, in some cases (such as this one), the driver files are packed into an executable and there&#8217;s no way you can get it unless you actually install the program. If this is the case, you can probably search the web to be able to find the driver files. What I did was install <a target = "_blank" href = "http://winehq.com">Wine</a> and then run the latest driver from <a target = "_blank" href = "http://kbserver.netgear.com/products/WN311T.asp">Netgear&#8217;s site</a>. If you don&#8217;t have <a target = "_blank" href = "http://en.wikipedia.org/wiki/X_Window_System">X</a> running, then this is a problem. Anyway, I have made it easier for you and I have the <a target = "_blank" href = "http://vivin.net/pub/wn311t/wn311t-driver-4.0.tar.bz2">bzipped</a> and <a target = "_blank" href = "http://vivin.net/pub/wn311t/wn311t-driver-4.0.tar.gz">gzipped</a> tarballs available for download. Now once you have extracted the files to a directory, you will need to run <a target = "_blank" href = "http://threads.seas.gwu.edu/cgi-bin/man2web?program=ndisgen&amp;amp;section=8"><span style = "font-family:courier new">ndisgen</span></a> on these files. If you notice, there are two SYS files. I built modules for both, and I use both on my system. It seems to work if you load either one. Using <span style = "font-family:courier new">ndisgen</span> is simple. However, there are a few caveats. When you first run ndisgen you may get a &#8220;Conversion failed&#8221; error with a syntax error on line 998 (or something to that effect). The reason is that the INF file parser on FreeBSD is not as forgiving as the one on Windows. It&#8217;ll trip up on DOS-style EOL characters (\r\n) and on some other weird characters as well. Often, the file itself has some other weird syntax errors as well. Anyway, to fix the the EOL character problem, you have to change the DOS-style EOL characters to Unix. Some systems have a <span style = "font-family:courier new">dos2unix</span> and <span style = "font-family:courier new">unix2dos</span> command. If you don&#8217;t have it (I didn&#8217;t) you can use the <span style = "font-family:courier new">sed</span> command:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
[root@tardis /home/vivin/wn311t]# sed -i -e 's,^M,,g' NetMW14x.inf
</pre>
<p>The <span style = "font-family:courier new">^M</span> is not just the caret sign and the capital letter M. To get it, you have to press CTRL+V and then CTRL+M. This command will convert all DOS-style EOL&#8217;s to UNIX-style EOL&#8217;s. Now we need to try converting the files to kernel modules. Unfortunately, when I did this first, I got the following error:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
[root@tardis /home/vivin/wn311t]# ndisgen NetMW14x.inf netmw145.sys
        ==================================================================
        ------------------ Windows(r) driver converter -------------------
        ==================================================================

                        Kernel module generation

        The script will now try to generate the kernel driver module.
        This is the last step. Once this module is generated, you should
        be able to load it just like any other FreeBSD driver module.

        Press enter to compile the stub module and generate the driver
        module now: 

        Generating Makefile... done.
        Building kernel module... In file included from /usr/share/misc/windrv_stub.c:57:
./windrv.h:150:4: unknown escape sequence '\p'
./windrv.h:150:4: unknown escape sequence '\H'
./windrv.h:318:4: unknown escape sequence '\p'
./windrv.h:318:4: unknown escape sequence '\H'
build failed. Exiting.
</pre>
<p>This is problem is due to un-escaped backslashes in <span style = "font-family:courier new">windrv.h</span>. I went ahead and fixed the file, but then realized that when I ran <span style = "font-family:courier new">ndisgen</span> again, my changes would be overwritten. So I copied my changes to another file called <span style = "font-family:courier new">windrv2.h</span>. I ran <span style = "font-family:courier new">ndisgen</span> again, and at the prompt where it tells you that it is going to build the kernel module, I opened up another terminal window and copied <span style = "font-family:courier new">windrv2.h</span> over <span style = "font-family:courier new">windrv.h</span>. This time the conversion process went through without a hitch. After you convert both SYS files, you will be looking at two <span style = "font-family:courier new">.ko</span> files; <span style = "font-family:courier new">netmw143_sys.ko</span> and <span style = "font-family:courier new">netmw145_sys.ko</span>. You need to <span style = "font-family:courier new">kldload</span> these modules:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
[root@tardis /home/vivin/wn311t]# kldload netmw145_sys.ko
[root@tardis /home/vivin/wn311t]# kldload netmw143_sys.ko
[root@tardis /home/vivin/wn311t]# kldstat
Id Refs Address    Size     Name
 1   23 0xc0400000 753dc8   kernel
 3    2 0xc0b5f000 1af50    linux.ko
 4    1 0xc0b7a000 75650    <strong>netmw143_sys.ko</strong>
 5    4 0xc0bf0000 1753c    <strong>ndis.ko</strong>
 6    3 0xc0c08000 c9e0     <strong>if_ndis.ko</strong>
 7    1 0xc0c15000 757d0    <strong>netmw145_sys.ko</strong>
 8    1 0xc0c8b000 58554    acpi.ko
 9    1 0xc57ff000 6000     snd_emu10k1.ko
10    1 0xc5805000 1c000    sound.ko
11    1 0xc5872000 6000     linprocfs.ko
12    1 0xc588f000 4000     logo_saver.ko
</pre>
<p>Note that I took this output from my machine where I automatically load the modules at startup (more on that later), which is why they are in lower memory locations. Anyway, the highlighted modules are the ones you need to worry about. If all goes well, these modules should be visible. If you do an <span style = "font-family:courier new">ifconfig</span> you should now be able to see the <span style = "font-family:courier new">ndis0</span> interface:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
[root@tardis /home/vivin/wn311t]# ifconfig ndis0
ndis0: flags=8843&#60;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&#62; mtu 1500
        inet6 fe80::218:4dff:fe1f:f432%ndis0 prefixlen 64 scopeid 0x7
        inet 0.0.0.0 netmask 0xffffff00 broadcast 255.255.255.255
        ether 00:18:4d:1f:f4:32
        media: IEEE 802.11 Wireless Ethernet autoselect
        status: no carrier
        ssid "" channel 1
        authmode OPEN privacy OFF txpowmax 100 protmode CTS
</pre>
<p>This is good, because FreeBSD now recognizes your card. The next hurdle is getting your card associated to a wireless network. This is where I had the most difficulty. Scanning for networks didn&#8217;t seem to work for me. KDE&#8217;s wireless tools were unable to find anything and I was also unable to find anything from the terminal. I figured I could still try and connect to the network by providing my SSID. Since I use <a target = "_blank" href = "http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access">WPA</a>, I was going to use <a target = "_blank" href = "http://hostap.epitest.fi/wpa_supplicant/"><span style = "font-family:courier new">wpa_supplicant</span></a> to connect to my wireless network. This proved to be easier said than done. I set up my <span style = "font-family:courier new">wpa_supplicant.conf</span> file in <span style = "font-family:courier new">/etc</span> like this:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
eapol_version=1
ap_scan=1
fast_reauth=1

network={
           ssid="&#60;put your ssid here&#62;"
           # 'RSN' == 'WPA2'
           proto=RSN WPA
           key_mgmt=WPA-PSK
           pairwise=CCMP TKIP
           group=CCMP TKIP
           psk=&#60;put your psk here&#62;
        }
</pre>
<p>After that:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
[root@tardis /home/vivin/wn311t]# wpa_supplicant -i ndis0 -c /etc/wpa_supplicant.conf
ioctl[SIOCG80211, op 24, len 24576]: No space left on device
ioctl[SIOCG80211, op 24, len 24576]: No space left on device
ioctl[SIOCG80211, op 24, len 24576]: No space left on device
ioctl[SIOCG80211, op 24, len 24576]: No space left on device
ioctl[SIOCG80211, op 24, len 24576]: No space left on device
</pre>
<p>As you can see, things didn&#8217;t go too well. I spent hours scouring the web and message boards. I found someone with exactly the same error message, but they had received no responses to their queries. Finally after about another hour of searching, I had enough information to put it all together. Instead of using the <span style = "font-family:courier new">wpa_supplicant</span> binary, you need to use FreeBSD&#8217;s <span style = "font-family:courier new">wpa_supplicant</span> script together with <span style = "font-family:courier new">dhclient</span>:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
<strong><span style = "color:">[root@tardis /home/vivin/wn311t]#</span> /etc/rc.d/wpa_supplicant forcestart ndis0</strong>
<strong><span style = "color:">[root@tardis /home/vivin/wn311t]#</span> dhclient ndis0</strong>
</pre>
<p>If all goes well, your wireless card should be able to authenticate with your wireless router and receive an IP address:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
<strong><span style = "color:">[root@tardis /home/vivin/wn311t]#</span> ifconfig ndis0</strong>
ndis0: flags=8843&#60;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&#62; mtu 1500
        inet6 fe80::218:4dff:fe1f:f432%ndis0 prefixlen 64 scopeid 0x7
        inet 10.0.1.197 netmask 0xffffff00 broadcast 10.0.1.255
        ether 00:18:4d:1f:f4:32
        media: IEEE 802.11 Wireless Ethernet autoselect
        status: associated
        ssid "" channel 1
        authmode OPEN privacy OFF txpowmax 100 protmode CTS
</pre>
<p>This is fine and dandy. But now you need to make sure that all these steps are done automatically when you startup your machine. First, you need to ensure that your new kernel modules are loaded up when you start your machine. To do that, copy your kernel object files to <span style = "font-family:courier new">/boot/kernel</span>. Then, add the following lines to <span style = "font-family:courier new">/boot/loader.conf</span></p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
[root@tardis /home/vivin/wn311t]# grep net /boot/loader.conf
netmw143_sys_load="yes"
netmw145_sys_load="yes"
</pre>
<p>These changes will ensure that your wireless adapter drivers are loaded up on startup. Finally, you need to add two lines to <span style = "font-family:courier new">/etc/rc.conf</span> to let FreeBSD know that your wireless adapter needs to be configured through <span style = "font-family:courier new">wpa_supplicant</span>:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
# Enable wpa_supplicant
if_ndis0="WPA DHCP"
wpa_supplicant_enable="YES"
</pre>
<p>I have read that the second line is superfluous because apparently the &#8220;WPA&#8221; option tells FreeBSD to use <span style = "font-family:courier new">wpa_supplicant</span>, but it didn&#8217;t seem to hurt anything so I left it in there. Once you have done all this, go ahead and restart your machine. Your WN311T Wireless Adapter should now be able to connect to the wireless network. You can verify that <span style = "font-family:courier new">wpa_supplicant</span> is running by doing the following:</p>
<pre style = "border:1px solid #cccccc; padding:4px; background-color:#eeeeee">
<strong><span style = "color:">[root@tardis /home/vivin/wn311t]#</span></strong> ps x | grep wpa
 1368  ??  Ss     0:56.72 /usr/sbin/wpa_supplicant -B -q -i ndis0 -c /etc/wpa_supplicant.conf -D ndis -P /var/run/wpa_supplicant/ndis0.pid
</pre>
<p>In some cases, <span style = "font-family:courier new">wpa_supplicant</span> still won&#8217;t start. I have had this problem before. In that case, you will have to run <span style = "font-family:courier new">wpa_supplicant</span> and <span style = "font-family:courier new">dhclient</span> manually (like I showed before) to get your card to work. I am not sure why this happens.</p>
<p>These instructions deal with using WPA for your Wireless Security. I believe <span style = "font-family:courier new">wpa_supplicant</span> can be configured to use <a target = "_blank" href = "http://en.wikipedia.org/wiki/Wired_Equivalent_Privacy">WEP</a> as well.</p>
<p>So there you have it. I hope this writeup is helpful and saves you hours of frustration!</p>
<br /><a href="http://vivin.net/?p=379#comments" title="Comments on &quot;Getting the Netgear WN311T to work on PC-BSD/FreeBSD&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?379" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=379&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2007/07/10/getting-the-netgear-wn311t-to-work-on-pcbsdfreebsd/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?379" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?379" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=379&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>w00t</title>
		<link>http://vivin.net/2004/10/19/w00t/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2004/10/19/w00t/#comments</comments>
		<pubDate>Tue, 19 Oct 2004 20:16:34 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Nerdy Stuff]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[nerdy]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=311</guid>
		<description><![CDATA[You know what&#8217;s so sweet? I am using Winamp to make an http connection to my FreeBSD machine to access music that&#8217;s on my XP machine through an SMB share. So my music goes from my XP machine through the SMB share to my FreeBSD machine and from there over the internet through a symlinked [...]]]></description>
			<content:encoded><![CDATA[<p>You know what&#8217;s so sweet? I am using Winamp to make an http connection to my FreeBSD machine to access music that&#8217;s on my XP machine through an SMB share. So my music goes from my XP machine through the SMB share to my FreeBSD machine and from there over the internet through a symlinked directory in my pub folder to arrive at my laptop. So Schweeet! I can access my entire music collection!</p>
<br /><a href="http://vivin.net/?p=311#comments" title="Comments on &quot;w00t&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?311" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=311&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2004/10/19/w00t/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?311" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?311" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=311&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>Absurd amount of traffic</title>
		<link>http://vivin.net/2004/09/06/absurd-amount-of-traffic/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2004/09/06/absurd-amount-of-traffic/#comments</comments>
		<pubDate>Mon, 06 Sep 2004 09:57:49 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[internet traffic]]></category>
		<category><![CDATA[piracy]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=293</guid>
		<description><![CDATA[Yesterday, I had trouble accessing my own site from my WinXP machine. It was really slow. It didn&#8217;t make too much sense. So I ssh&#8217;d to my FreeBSD machine and ran netstat on it. I saw a LARGE number of connections to port 80 (http). I don&#8217;t know who all these people were, or why [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I had trouble accessing my own site from my WinXP machine. It was really slow. It didn&#8217;t make too much sense. So I ssh&#8217;d to my FreeBSD machine and ran <span style = "font-family:courier new">netstat</span> on it. I saw a LARGE number of connections to port 80 (http). I don&#8217;t know who all these people were, or why they were accessing my website &#8211; I mean there&#8217;s not that much to see on my website&#8230; That too, enough connections to actually make it slow to access from my Win XP machine, which is on the <em>same</em> network! Weird&#8230;</p>
<br /><a href="http://vivin.net/?p=293#comments" title="Comments on &quot;Absurd amount of traffic&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?293" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=293&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2004/09/06/absurd-amount-of-traffic/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?293" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?293" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=293&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>Bumped Up</title>
		<link>http://vivin.net/2004/05/21/bumped-up/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2004/05/21/bumped-up/#comments</comments>
		<pubDate>Fri, 21 May 2004 23:41:04 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[broadband]]></category>
		<category><![CDATA[dsl]]></category>
		<category><![CDATA[my website]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=278</guid>
		<description><![CDATA[I bumped up my line speed from 640k/256k to 1.5M/896k. Expect faster downloads from here!]]></description>
			<content:encoded><![CDATA[<p>I bumped up my line speed from 640k/256k to 1.5M/896k. Expect faster downloads from here!</p>
<br /><a href="http://vivin.net/?p=278#comments" title="Comments on &quot;Bumped Up&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?278" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=278&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2004/05/21/bumped-up/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?278" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?278" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=278&#38;type=feed" medium="image" />
	</item>
		<item>
		<title>Broke through the proxy</title>
		<link>http://vivin.net/2004/02/27/broke-through-the-proxy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2004/02/27/broke-through-the-proxy/#comments</comments>
		<pubDate>Fri, 27 Feb 2004 17:31:47 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[proxy tunneling]]></category>
		<category><![CDATA[tunneling]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=246</guid>
		<description><![CDATA[I did it! I broke through the proxy! Although TightVNC runs ridiculously slow through Httport. I&#8217;m getting speeds like 137b/s. I wonder if I can make it faster.]]></description>
			<content:encoded><![CDATA[<p>I did it! I broke through the proxy! Although TightVNC runs ridiculously slow through Httport. I&#8217;m getting speeds like 137b/s. I wonder if I can make it faster.</p>
<br /><a href="http://vivin.net/?p=246#comments" title="Comments on &quot;Broke through the proxy&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?246" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=246&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2004/02/27/broke-through-the-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?246" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?246" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=246&#38;type=feed" medium="image" />
	</item>
	</channel>
</rss>

