From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Lenovo T400 wifi scan and connect questions
Date: Thu, 01 Sep 2022 14:00:41 +0100 [thread overview]
Message-ID: <3438693.V25eIC5XRa@lenovo.localdomain> (raw)
In-Reply-To: <Yw+zXW4bV/CNOebM@waltdnes.org>
[-- Attachment #1: Type: text/plain, Size: 2268 bytes --]
On Wednesday, 31 August 2022 20:15:41 BST Walter Dnes wrote:
> During launch, wpa_supplicant blows up on...
>
> DIR=/var/run/wpa_supplicant GROUP=wheel
> DIR=/var/run/wpa_supplicant GROUP=0
Hmm ... so the example page syntax is wrong. I wonder if I came across this
too in the distant past. :-/
I have this in my config and it works:
ctrl_interface_group=wheel
ctrl_interface=/var/run/wpa_supplicant
> https://wiki.gentoo.org/wiki/Wpa_supplicant#Configuration recommends...
>
> ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
>
> The 3 lines in my wpa_supplicant.conf that are not commented out are...
>
> ctrl_interface_group=0
> ap_scan=1
> ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
>
> Thank you for your help. It works.
Cool. :-)
> I live in a condo building. As
> a regular user "wpa_cli scan" followed by "wpa_cli scan_result" shows
> approximately a couple of dozen machines. BTW I've disabled MVM and
> wifi still works.
>
> One last question; I occasionally see signs in various places saying
>
> Our network name is "foo" and password is "bar".
>
> My reading of the wpa_cli man page indicates I should use...
>
> wpa_cli password foo bar
>
> ...to log on. Is that correct?
The wpa_cli command syntax is:
password <network id> <password>
configure password for an SSID
However, I'm not sure <network id> == SSID. When you add a network in
interactive mode with:
add_network
the shell outputs a network id number; e.g. 3, which you are meant to use
thereafter to set up variables for the AP; e.g.:
set_network 3 ssid "starvebux"
set_network 3 psk "Not Free"
enable_network 3
In addition, I understand the wpa_cli command 'password', as opposed to
variable 'psk' which is used in the interactive shell, to be for a EAP-PEAP
authentication scheme. For a pre-shared key you'll use interactively:
set_network 3 psk 0f0fbfdadff6271a5107a49cfb5db9e921138ee74a66b0.....
or if it is a passphrase you'll enclose it in double quotes "Not Free" as
above.
This is the reason I use the wpa_supplicant GUI when not restricted to working
in a console, because the qt5 wpa_supplicant GUI makes it easier to click and
fill in a PSK, compared to the multiple commands required in a terminal.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2022-09-01 13:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 21:23 [gentoo-user] Lenovo T400 wifi scan and connect questions Walter Dnes
2022-08-30 7:52 ` Michael
2022-08-30 22:26 ` Walter Dnes
2022-08-31 8:53 ` Michael
2022-08-31 19:15 ` Walter Dnes
2022-09-01 13:00 ` Michael [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3438693.V25eIC5XRa@lenovo.localdomain \
--to=confabulate@kintzios.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox