[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wpa_supplicant.conf - where?



On Wed 20 Jun 2012 at 09:38:40 -0700, Frank Miles wrote:

[Snip]

> Issuing: "wpa_cli status" indicates that it's SCANNING, and list_networks 
> shows the router.  My son's Mac finds and logs into the wireless router  
> with no problems.

That's nice. We are happy for him. :)

>                    I'm probably missing something simple - if someone  
> could point me to the docs or otherwise clue me into where wpa_...conf
> should be, I'd appreciate it!

If you only ever want to connect to one network a single stanza in the
interfaces file in /etc/network/ is all you need. Here, you can have
mine

   allow-hotplug wlan0
   iface wlan0 inet dhcp
           wpa-ssid "MI5 Listening Post #652"
           wpa-psk "Aj560BnlaoiuFgqQ94Fv7JUEXZ74SaMzp28LQw10Ditt9372"

If you are connecting to different networks you should be looking at the
manual method for ifupdown. Like this:

   allow-hotplug wlan1
   iface wlan1 inet manual
           wpa-roam /etc/wpa_supplicant/wpa-roam.conf

Create /etc/wpa_supplicant/wpa-roam.conf. Have stanzas similar to:

   ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
   update_config=1

   network={
           ssid="Serendipity"
           psk="GCF784x0dhuTJmiP0j8JlHvhs4gm0Q8LsakiopphOrZAPFLLMBidUFaq7B9X3"
           proto=WPA
           key_mgmt=WPA-PSK
           pairwise=TKIP
           auth_alg=OPEN
   }

You may want to evaluate the wpagui package.


Reply to: