Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo does not connect to wifi (wpa_supplicant)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
m_p_w
n00b
n00b


Joined: 12 Sep 2016
Posts: 31

PostPosted: Mon Aug 20, 2018 1:18 am    Post subject: gentoo does not connect to wifi (wpa_supplicant) Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Aug 20, 2018 3:30 am    Post subject: Reply with quote

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
View user's profile Send private message
m_p_w
n00b
n00b


Joined: 12 Sep 2016
Posts: 31

PostPosted: Mon Aug 20, 2018 6:56 am    Post subject: Reply with quote

Thank you for pointing it out
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum