diff options
author | Akshay <[email protected]> | 2019-10-12 17:23:31 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2019-10-12 17:23:31 +0100 |
commit | 9367110d68282fb8c811741e26d1f487921e877c (patch) | |
tree | 3fcc49c8ab45a8e4cfa598cde1aec666ba5ef8f1 | |
parent | e549283cdeecb79b67005d3905caddc322fc254f (diff) |
new post!
-rw-r--r-- | posts/WPA_woes.md | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/posts/WPA_woes.md b/posts/WPA_woes.md new file mode 100644 index 0000000..4a2c19e --- /dev/null +++ b/posts/WPA_woes.md | |||
@@ -0,0 +1,46 @@ | |||
1 | I finally got around to installing Void GNU/Linux on my main | ||
2 | computer. Rolling release, non-systemd, need I say more? | ||
3 | |||
4 | As with all GNU/Linux distributions, wireless networks had | ||
5 | me in a fix. If you can see this post, it means I've managed | ||
6 | to get online. It turns out, `wpa_supplicant` was detecting the | ||
7 | wrong interface by default (does it ever select the right | ||
8 | one?). Let us fix that: | ||
9 | |||
10 | ``` | ||
11 | $ sudo rm -r /var/service/wpa_supplicant | ||
12 | $ sudo killall dhcpcd | ||
13 | ``` | ||
14 | |||
15 | What is the right interface though? | ||
16 | |||
17 | ``` | ||
18 | $ iw dev | ||
19 | ... | ||
20 | Interface wlp2s0 | ||
21 | ... | ||
22 | ``` | ||
23 | |||
24 | Aha! Let us run `wpa_supplicant` on that interface, as a | ||
25 | background process: | ||
26 | |||
27 | ``` | ||
28 | $ sudo wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf | ||
29 | $ sudo dhcpcd -B wlp2s0 | ||
30 | $ ping google.com | ||
31 | PING ... | ||
32 | ``` | ||
33 | |||
34 | Yay! Make those changes perpetual by enabling the service: | ||
35 | |||
36 | ``` | ||
37 | ------------------------------------------------------ | ||
38 | # Add these to /etc/wpa_supplicant/wpa_supplicant.conf | ||
39 | OPTS="-B" | ||
40 | WPA_INTERFACE="wlp2s0" | ||
41 | ------------------------------------------------------ | ||
42 | $ sudo ln -s /etc/sv/wpa_supplicant /var/service/ | ||
43 | $ sudo ln -s /etc/sv/dhcpcd /var/service/ | ||
44 | $ sudo sv restart wpa_supplicant | ||
45 | $ sudo sv restart dhcpcd | ||
46 | ``` | ||