Changes between Version 1 and Version 2 of ventana/ubuntu/wireless


Ignore:
Timestamp:
01/09/2018 03:12:24 PM (12 days ago)
Author:
Tim Harvey
Comment:

convert restored html to wiki markup

Legend:

Unmodified
Added
Removed
Modified
  • ventana/ubuntu/wireless

    v1 v2  
    1 {{{#!html
    2           <div id="wikipage" class="trac-content"><h1 id="UbuntuWirelessPage"><b style="color:#000;background:#ffcc99">Ubuntu Wireless Page</b></h1>
    3 <p>
    4 These instructions have primarily been copied from the <a class="wiki" href="/wiki/Yocto/Wireless">Yocto <b style="color:#000;background:#66ffff">Wireless</b> page</a>. Please reference that page for more instructions.
    5 </p>
    6 <p>
    7 These instructions below are for creating a <b style="color:#000;background:#66ffff">wireless</b> client that will connect to a nearby access point.
    8 </p>
    9 <ol><li>Install required missing packages
    10 <pre class="wiki">apt-get update
     1[[PageOutline]]
     2
     3= Ubuntu Wireless Page =
     4These instructions have primarily been copied from the Yocto Wireless page. Please reference that page for more instructions.
     5
     6[=#client]
     7== Client ==
     8These instructions below are for creating a wireless client that will connect to a nearby access point.
     91. Install required missing packages:
     10{{{#!bash
     11apt-get update
    1112apt-get install iw
    1213apt-get install wpasupplicant
    1314apt-get install udhcpc
    14 </pre></li></ol><ol start="2"><li>Edit /etc/network/interfaces and edit/add the following to configure wlan0 on boot wpa_supplicant:
    15 <pre class="wiki">auto wlan0
     15}}}
     162. Edit /etc/network/interfaces and edit/add the following to configure wlan0 on boot wpa_supplicant:
     17{{{#!bash
     18auto wlan0
    1619iface wlan0 inet dhcp
    17         <b style="color:#000;background:#66ffff">wireless</b>_mode managed
    18         <b style="color:#000;background:#66ffff">wireless</b>_essid any
     20        wireless_mode managed
     21        wireless_essid any
    1922        wpa-driver nl80211
    2023        wpa-conf /etc/wpa_supplicant.conf
    21 
    22 </pre></li></ol><ol start="3"><li>Create WPA Supplicant Configuration File at /etc/wpa_supplicant.conf, replacing ssid and psk with correct information
    23 <pre class="wiki">
     24}}}
     253. Create WPA Supplicant Configuration File at /etc/wpa_supplicant.conf, replacing ssid and psk with correct information:
     26{{{
    2427network={
    2528        scan_ssid=1
     
    2932        psk="testpass"
    3033}
     34}}}
     354. Sync and power cycle the board:
     36{{{#!bash
     37sync
     38}}}
    3139
    32 </pre></li></ol><ol start="4"><li>Sync and power cycle the board
    33 <pre class="wiki">sync
    34 </pre></li></ol><h2 id="Troubleshooting">Troubleshooting</h2>
    35 <p>
    36 To scan for available access points in range you can use the <tt>iw</tt> tool:
    37 </p>
    38 <div class="code"><pre>iw dev wlan0 scan <span class="c"># scan for AP's
    39 </span></pre></div><p>
    40 To manually connect to <b style="color:#000;background:#66ffff">wireless</b> if auto connection is not working:
    41 While the above will configure <b style="color:#000;background:#66ffff">wireless</b> Client mode on bootup, if you want to start it manually you can do so by manually starting/re-starting wpa_supplicant (ifup will do this for you on bootup if configured in /etc/network/interfaces):
    42 </p>
    43 <div class="code"><pre>ifconfig wlan0 up
     40== Troubleshooting ==
     41To scan for available access points in range you can use the iw tool:
     42{{{#!bash
     43iw dev wlan0 scan # scan for AP's
     44}}}
     45
     46To manually connect to wireless if auto connection is not working: While the above will configure wireless Client mode on bootup, if you want to start it manually you can do so by manually starting/re-starting wpa_supplicant (ifup will do this for you on bootup if configured in /etc/network/interfaces):
     47{{{#!bash
     48ifconfig wlan0 up
    4449killall wpa_supplicant
    45 wpa_supplicant -i wlan0 -D nl80211 -c /etc/wpa_supplicant.conf -B <span class="c"># manage <b style="color:#000;background:#66ffff">wireless</b> client
    46 </span>udhcpc -i wlan0 <span class="c"># obtain dhcp lease
    47 </span></pre></div
     50wpa_supplicant -i wlan0 -D nl80211 -c /etc/wpa_supplicant.conf -B # manage wireless client
     51udhcpc -i wlan0 # obtain dhcp lease
    4852}}}