aboutsummaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
authorAkshay <[email protected]>2019-10-12 17:23:31 +0100
committerAkshay <[email protected]>2019-10-12 17:23:31 +0100
commit9367110d68282fb8c811741e26d1f487921e877c (patch)
tree3fcc49c8ab45a8e4cfa598cde1aec666ba5ef8f1 /posts
parente549283cdeecb79b67005d3905caddc322fc254f (diff)
new post!
Diffstat (limited to 'posts')
-rw-r--r--posts/WPA_woes.md46
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 @@
1I finally got around to installing Void GNU/Linux on my main
2computer. Rolling release, non-systemd, need I say more?
3
4As with all GNU/Linux distributions, wireless networks had
5me in a fix. If you can see this post, it means I've managed
6to get online. It turns out, `wpa_supplicant` was detecting the
7wrong interface by default (does it ever select the right
8one?). Let us fix that:
9
10```
11$ sudo rm -r /var/service/wpa_supplicant
12$ sudo killall dhcpcd
13```
14
15What is the right interface though?
16
17```
18$ iw dev
19 ...
20 Interface wlp2s0
21 ...
22```
23
24Aha! Let us run `wpa_supplicant` on that interface, as a
25background 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
31PING ...
32```
33
34Yay! Make those changes perpetual by enabling the service:
35
36```
37------------------------------------------------------
38# Add these to /etc/wpa_supplicant/wpa_supplicant.conf
39OPTS="-B"
40WPA_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```