Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default wpa_supplicant.conf for wpa_cli #53

Open
pklapperich opened this issue Mar 29, 2018 · 1 comment
Open

default wpa_supplicant.conf for wpa_cli #53

pklapperich opened this issue Mar 29, 2018 · 1 comment
Assignees
Labels
feature-request grml-release Grml ISO release specific issues

Comments

@pklapperich
Copy link

pklapperich commented Mar 29, 2018

I was a little disappointed to get to the wiki page for wlan and see it says it "works out of box" but then the whole page is just about drivers; no information about actually connecting (other than a broken external link to a README).

It would be nice if the grml image included a default wpa_supplicant.conf like:

# /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/run/wpa_supplicant
update_config=1

This would allow wpa_cli to connect and save the config; out of box.

The wiki could then include a basic example like:

To quickly connect, you can use the interactive wpa_cli command (which gives a > prompt). To connect to the network MYNETWORK with the password "itsasecret" do the following:

# wpa_cli
> scan
OK
<3>CTRL-EVENT-SCAN-STARTED
> scan_results
bssid / frequency / signal level / flags / ssid
11:22:33:44:55:66 5220 -41 [WPA2-PSK-CCMP][ESS] MYNETWORK
77:88:99:00:11:22 2437 -72 [WPA2-EAP-TKIP][WPA-EAP-CCMP] OTHERNETOWRK
...
> add_network
0
> set_network 0 ssid "MYNETWORK"
> set_network 0 psk "itsasecret"
> enable_network 0
<2>CTRL-EVENT-CONNECTED - Connection to 11:22:33:44:55:66 completed (reauth) [id=0 id_str=]
> save_config
OK
> quit
 # dhclient wlan0  # <-- to get an ip

If your network has no password, use set_network 0 key_mgmt NONE instead.
See man wpa_cli or type help from the > prompt for more info.

@mika
Copy link
Member

mika commented Mar 29, 2018

Our wiki is very outdated overall and we'd like to move all its documentation towards a different place (and bring it up2date), though mainly lack the manpower to do so. :-/ The WLAN page is outdated too, see its Last modified: 2011/10/13 information in the footer. ;(

Regarding your point: we try to diverge from Debian as little as possible, though I personally wasn't even aware of the steps you provided, we'll look into that and see what we can improve/include. Thanks for providing those steps, nice. :)

Are you already aware of our netcardconfig tool which allows simple + easy interactive usage of WLAN on the console though?

@jkirk jkirk added feature-request grml-release Grml ISO release specific issues labels Oct 23, 2019
@jkirk jkirk self-assigned this Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request grml-release Grml ISO release specific issues
Projects
None yet
Development

No branches or pull requests

3 participants