Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've searched in different forums how to connect to a wpa network with the terminal but none of the seems to work

In the network managager file "/etc/NetworkManager/system-connections/elhackerderivendel" I have:

[connection]
id=elhackerderivendel
uuid=2ec1e3d4-31ea-4d08-9aa4-6afc82324186
type=802-11-wireless
timestamp=1322936420

[802-11-wireless]
ssid=elhackerderivendel
mode=infrastructure
mac-address=ac:81:12:bb:28:e
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=AAAAAAAAAAAAAAAA #this is not my real password as you can expect

[ipv4]
method=auto

[ipv6]
method=auto

And on the other hand iwconfig tells me

- Device: wlan0  [elhackerderivendel] ------------------------------------------
  Type:              802.11 WiFi
  Driver:            brcmsmac
  State:             connected
  Default:           yes
  HW Address:        AC:81:12:BB:28:0E

  Capabilities:
    Speed:           28 Mb/s

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

And sudo wpa_cli scan_results

Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
00:0e:2e:c2:11:00   2462    188 [WPA2-PSK-CCMP-preauth][ESS]    elhackerderivendel
00:0b:3b:cc:95:e4   2427    177 [WPA2-PSK-CCMP][WPS][ESS]   elhackerderivendel

Any idea of what to write in the wpa_supplicant.conf?

share|improve this question

1 Answer 1

man wpa_supplicant.conf 

would have given you the answer. Anyway, here's it:

 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
      #
      # home network; allow all valid ciphers
      network={
           ssid="home"
           scan_ssid=1
           key_mgmt=WPA-PSK
           psk="very secret passphrase"
      }
      #
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.