<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to connect to a wireless network from the Ubuntu command line</title>
	<atom:link href="http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/</link>
	<description>Programming, gardening, economics, life in Cleveland Heights</description>
	<lastBuildDate>Sat, 04 Feb 2012 03:03:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt Wilson</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-12099</link>
		<dc:creator>Matt Wilson</dc:creator>
		<pubDate>Mon, 21 Nov 2011 19:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-12099</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: victorianixon</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-12098</link>
		<dc:creator>victorianixon</dc:creator>
		<pubDate>Mon, 21 Nov 2011 11:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-12098</guid>
		<description>Excellent writing about a wireless network..It is actually useful for me. keep writing and happy blogging.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.trispec.com/en/about-us.php&quot; rel=&quot;nofollow&quot;&gt;Wireless network point to point&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Excellent writing about a wireless network..It is actually useful for me. keep writing and happy blogging.</p>
<p><a href="http://www.trispec.com/en/about-us.php" rel="nofollow">Wireless network point to point</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Wilson</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-12092</link>
		<dc:creator>Matt Wilson</dc:creator>
		<pubDate>Fri, 18 Nov 2011 20:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-12092</guid>
		<description>Wonderful!  Glad it helped.</description>
		<content:encoded><![CDATA[<p>Wonderful!  Glad it helped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Goodison</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-12091</link>
		<dc:creator>Mike Goodison</dc:creator>
		<pubDate>Fri, 18 Nov 2011 20:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-12091</guid>
		<description>Another Linux Noob here - just wanted to say what I&#039;ve found here has been very helpful.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;Mike G</description>
		<content:encoded><![CDATA[<p>Another Linux Noob here &#8211; just wanted to say what I&#39;ve found here has been very helpful.</p>
<p>Thanks</p>
<p>Mike G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Wilson</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-12075</link>
		<dc:creator>Matt Wilson</dc:creator>
		<pubDate>Thu, 10 Nov 2011 22:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-12075</guid>
		<description>happy to help!</description>
		<content:encoded><![CDATA[<p>happy to help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karel</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-12074</link>
		<dc:creator>Karel</dc:creator>
		<pubDate>Thu, 10 Nov 2011 13:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-12074</guid>
		<description>Thank you!!! this helped me a lot.</description>
		<content:encoded><![CDATA[<p>Thank you!!! this helped me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Wilson</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-10798</link>
		<dc:creator>Matt Wilson</dc:creator>
		<pubDate>Mon, 21 Feb 2011 22:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-10798</guid>
		<description>Thanks so much for putting this together!</description>
		<content:encoded><![CDATA[<p>Thanks so much for putting this together!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Savage</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-10797</link>
		<dc:creator>Savage</dc:creator>
		<pubDate>Mon, 21 Feb 2011 14:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-10797</guid>
		<description>How to connect to a wireless network from the Ubuntu command line using a WPA/WPA2 Personal key.&lt;br&gt;For this to work.. you need to have WPA-Supplicant installed ... Ubuntu comes with WPA-Supplicant installed by default.&lt;br&gt;if not present, install it using this command:    sudo apt-get install wpasupplicant&lt;br&gt;Ubuntu doesn&#039;t use a root password by default ...so we need to use the sudo command here.&lt;br&gt;&lt;br&gt;Now we need to create 2 files: &lt;a href=&quot;http://wireless-wpa.sh&quot; rel=&quot;nofollow&quot;&gt;wireless-wpa.sh&lt;/a&gt; + wireless-wpa.conf using the vi command.  For those who are not familiar with vi , I will guide you through this. &lt;br&gt;&lt;br&gt;OK ..lets start: first we gonna create the &lt;a href=&quot;http://wireless-wpa.sh&quot; rel=&quot;nofollow&quot;&gt;wireless-wpa.sh&lt;/a&gt;&lt;br&gt;type:   sudo vi &lt;a href=&quot;http://wireless-wpa.sh&quot; rel=&quot;nofollow&quot;&gt;wireless-wpa.sh&lt;/a&gt;&lt;br&gt;press the &quot;i&quot; button ones and insert text below.&lt;br&gt;#!/bin/sh &lt;br&gt;iface=eth1&lt;br&gt;&lt;br&gt;#shut down interface&lt;br&gt;ifconfig $iface down&lt;br&gt;&lt;br&gt;#set ad-hoc/management of wireless device&lt;br&gt;iwconfig $iface mode Managed&lt;br&gt;&lt;br&gt;#enable interface&lt;br&gt;ifconfig $iface up&lt;br&gt;&lt;br&gt;#stop any persistent wireless wpa2 sessions&lt;br&gt;killall wpa_supplicant&lt;br&gt;&lt;br&gt;#apply WPA/WPA2 personal settings to device&lt;br&gt;wpa_supplicant -B -Dwext -i $iface -c ./wireless-wpa.conf -dd&lt;br&gt;&lt;br&gt;#obtain an IP address&lt;br&gt;dhclient $iface&lt;br&gt;&lt;br&gt;Now we need to save this file and quit vi.... press &quot;esc&quot; button ones ... then type..   :wq  ( you need to type the : also )&lt;br&gt;Thats done ... now we gonna make the wireless-wpa.conf&lt;br&gt;&lt;br&gt;type:   sudo vi wireless-wpa.conf&lt;br&gt;press the &quot;i&quot; button ones and insert text below.&lt;br&gt;&lt;br&gt;# config file using WPA/WPA2-PSK Personal key.&lt;br&gt;&lt;br&gt;ctrl_interface=/var/run/wpa_supplicant&lt;br&gt;&lt;br&gt;network={&lt;br&gt;        ssid=&quot;my_router_id&quot; &lt;br&gt;        scan_ssid=1&lt;br&gt;        key_mgmt=WPA-PSK&lt;br&gt;        psk=&quot;1234567890&quot;&lt;br&gt;}&lt;br&gt;&lt;br&gt;Now we need to save this file and quit vi.... press &quot;esc&quot; button ones ... then type..  :wq  ( you need to type the : also )&lt;br&gt;That&#039;s also done ... now we need to set the permissions for these 2 files.&lt;br&gt;&lt;br&gt;sudo chmod 755 &lt;a href=&quot;http://wireless-wpa.sh&quot; rel=&quot;nofollow&quot;&gt;wireless-wpa.sh&lt;/a&gt;&lt;br&gt;sudo chmod 644 wireless-wpa.conf&lt;br&gt;&lt;br&gt;Make sure you put these 2 files in the same directory anywhere you like...else it will not work.&lt;br&gt;Run the following command to make a connection to your wireless Router/Accespoint/&lt;br&gt;sudo ./&lt;a href=&quot;http://wireless-wpa.sh&quot; rel=&quot;nofollow&quot;&gt;wireless-wpa.sh&lt;/a&gt;&lt;br&gt;&lt;br&gt;That&#039;s all .... have fun!</description>
		<content:encoded><![CDATA[<p>How to connect to a wireless network from the Ubuntu command line using a WPA/WPA2 Personal key.<br />For this to work.. you need to have WPA-Supplicant installed &#8230; Ubuntu comes with WPA-Supplicant installed by default.<br />if not present, install it using this command:    sudo apt-get install wpasupplicant<br />Ubuntu doesn&#39;t use a root password by default &#8230;so we need to use the sudo command here.</p>
<p>Now we need to create 2 files: <a href="http://wireless-wpa.sh" rel="nofollow">wireless-wpa.sh</a> + wireless-wpa.conf using the vi command.  For those who are not familiar with vi , I will guide you through this. </p>
<p>OK ..lets start: first we gonna create the <a href="http://wireless-wpa.sh" rel="nofollow">wireless-wpa.sh</a><br />type:   sudo vi <a href="http://wireless-wpa.sh" rel="nofollow">wireless-wpa.sh</a><br />press the &#8220;i&#8221; button ones and insert text below.<br />#!/bin/sh <br />iface=eth1</p>
<p>#shut down interface<br />ifconfig $iface down</p>
<p>#set ad-hoc/management of wireless device<br />iwconfig $iface mode Managed</p>
<p>#enable interface<br />ifconfig $iface up</p>
<p>#stop any persistent wireless wpa2 sessions<br />killall wpa_supplicant</p>
<p>#apply WPA/WPA2 personal settings to device<br />wpa_supplicant -B -Dwext -i $iface -c ./wireless-wpa.conf -dd</p>
<p>#obtain an IP address<br />dhclient $iface</p>
<p>Now we need to save this file and quit vi&#8230;. press &#8220;esc&#8221; button ones &#8230; then type..   :wq  ( you need to type the : also )<br />Thats done &#8230; now we gonna make the wireless-wpa.conf</p>
<p>type:   sudo vi wireless-wpa.conf<br />press the &#8220;i&#8221; button ones and insert text below.</p>
<p># config file using WPA/WPA2-PSK Personal key.</p>
<p>ctrl_interface=/var/run/wpa_supplicant</p>
<p>network={<br />        ssid=&#8221;my_router_id&#8221; <br />        scan_ssid=1<br />        key_mgmt=WPA-PSK<br />        psk=&#8221;1234567890&#8243;<br />}</p>
<p>Now we need to save this file and quit vi&#8230;. press &#8220;esc&#8221; button ones &#8230; then type..  :wq  ( you need to type the : also )<br />That&#39;s also done &#8230; now we need to set the permissions for these 2 files.</p>
<p>sudo chmod 755 <a href="http://wireless-wpa.sh" rel="nofollow">wireless-wpa.sh</a><br />sudo chmod 644 wireless-wpa.conf</p>
<p>Make sure you put these 2 files in the same directory anywhere you like&#8230;else it will not work.<br />Run the following command to make a connection to your wireless Router/Accespoint/<br />sudo ./<a href="http://wireless-wpa.sh" rel="nofollow">wireless-wpa.sh</a></p>
<p>That&#39;s all &#8230;. have fun!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Wilson</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-10777</link>
		<dc:creator>Matt Wilson</dc:creator>
		<pubDate>Sun, 20 Feb 2011 06:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-10777</guid>
		<description>Absolutely.</description>
		<content:encoded><![CDATA[<p>Absolutely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Savage</title>
		<link>http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/comment-page-1/#comment-10776</link>
		<dc:creator>Savage</dc:creator>
		<pubDate>Sun, 20 Feb 2011 04:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/#comment-10776</guid>
		<description>Hi Matt ... do you still need some tips for handling WPA-PSK connections ?</description>
		<content:encoded><![CDATA[<p>Hi Matt &#8230; do you still need some tips for handling WPA-PSK connections ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

