View previous topic :: View next topic |
Author |
Message |
m_p_w n00b
Joined: 12 Sep 2016 Posts: 31
|
Posted: Mon Aug 20, 2018 1:18 am Post subject: gentoo does not connect to wifi (wpa_supplicant) |
|
|
Ok in my case kernel, drivers and wifi card work just fine
However, I think that I am setting up wpa_supplicant wrongly.
This is what I did (my OS uses wlan0 for my wifi)
1)
Installed wpa_supplicant and iw
[code] emerge --ask net-wireless/iw net-wireless/wpa_supplicant/code]
2)
edit /etc/conf.d/net by adding the following lines
modules_wlan0= "wpa_supplicant"
config_wlan0="dhcp"
3)
scan the wifi networks and choose one from the list
[code]iwlist scan[/code]
4)
add my wifi network to the wpa_supplicant.conf
[code]wpa_passphrase ESSID password >> /etc/wpa_supplicant/wpa_supplicant.conf[/code]
5)
add wpa_supplicant to start up
[code]rc-update add wpa_supplicant default[/code]
Do you know what I am missing? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Aug 20, 2018 3:30 am Post subject: |
|
|
don't do this
add wpa_supplicant to start up
Code: | rc-update add wpa_supplicant default |
If wlan0 is in fact the name of your wifi interface:
and you are intending to use gentoo style networking: Code: | rc-update add net.wlan0 default | which will start wpa_supplicant
or you are intending to use wicd: Code: | rc-update add wicd default |
or you are intending to use networkmanager: Code: | rc-update add NetworkManager default |
or you are intending to use dhcpcd: Code: | rc-update add dhcpcd default | wpa_supplicant will be started when the controlling progam needs it
This presumes you use openrc not systemd _________________ Defund the FCC. |
|
Back to top |
|
|
m_p_w n00b
Joined: 12 Sep 2016 Posts: 31
|
Posted: Mon Aug 20, 2018 6:56 am Post subject: |
|
|
Thank you for pointing it out |
|
Back to top |
|
|
|