diff options
Diffstat (limited to 'docs/posts/WPA_woes/index.html')
-rw-r--r-- | docs/posts/WPA_woes/index.html | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/docs/posts/WPA_woes/index.html b/docs/posts/WPA_woes/index.html new file mode 100644 index 0000000..ab92cab --- /dev/null +++ b/docs/posts/WPA_woes/index.html | |||
@@ -0,0 +1,78 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <link rel="stylesheet" href="/style.css"> | ||
5 | <meta charset="UTF-8"> | ||
6 | <meta name="viewport" content="initial-scale=1"> | ||
7 | <meta content="#ffffff" name="theme-color"> | ||
8 | <meta name="HandheldFriendly" content="true"> | ||
9 | <meta property="og:title" content="nerdypepper"> | ||
10 | <meta property="og:type" content="website"> | ||
11 | <meta property="og:description" content="a static site {for, by, about} me "> | ||
12 | <meta property="og:url" content="https://nerdypepper.tech"> | ||
13 | <body> | ||
14 | <div class="posts"> | ||
15 | <div class="post"> | ||
16 | <div class="date"> | ||
17 | 12/10 2019 | ||
18 | <span class="commit-hash"> | ||
19 | <a href="https://github.com/nerdypepper/site/blob/master/posts/WPA_woes.md | ||
20 | " style="text-decoration: none"> | ||
21 | 9367110 | ||
22 | </a> | ||
23 | </span> | ||
24 | </div> | ||
25 | <span class="post-title"> | ||
26 | WPA Woes | ||
27 | </span> | ||
28 | <div class="post-text"> | ||
29 | <p>I finally got around to installing Void GNU/Linux on my main | ||
30 | computer. Rolling release, non-systemd, need I say more?</p> | ||
31 | |||
32 | <p>As with all GNU/Linux distributions, wireless networks had | ||
33 | me in a fix. If you can see this post, it means I’ve managed | ||
34 | to get online. It turns out, <code>wpa_supplicant</code> was detecting the | ||
35 | wrong interface by default (does it ever select the right | ||
36 | one?). Let us fix that:</p> | ||
37 | |||
38 | <pre><code>$ sudo rm -r /var/service/wpa_supplicant | ||
39 | $ sudo killall dhcpcd | ||
40 | </code></pre> | ||
41 | |||
42 | <p>What is the right interface though?</p> | ||
43 | |||
44 | <pre><code>$ iw dev | ||
45 | ... | ||
46 | Interface wlp2s0 | ||
47 | ... | ||
48 | </code></pre> | ||
49 | |||
50 | <p>Aha! Let us run <code>wpa_supplicant</code> on that interface, as a | ||
51 | background process:</p> | ||
52 | |||
53 | <pre><code>$ sudo wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf | ||
54 | $ sudo dhcpcd -B wlp2s0 | ||
55 | $ ping google.com | ||
56 | PING ... | ||
57 | </code></pre> | ||
58 | |||
59 | <p>Yay! Make those changes perpetual by enabling the service:</p> | ||
60 | |||
61 | <pre><code>------------------------------------------------------ | ||
62 | # Add these to /etc/wpa_supplicant/wpa_supplicant.conf | ||
63 | OPTS="-B" | ||
64 | WPA_INTERFACE="wlp2s0" | ||
65 | ------------------------------------------------------ | ||
66 | $ sudo ln -s /etc/sv/wpa_supplicant /var/service/ | ||
67 | $ sudo ln -s /etc/sv/dhcpcd /var/service/ | ||
68 | $ sudo sv restart wpa_supplicant | ||
69 | $ sudo sv restart dhcpcd | ||
70 | </code></pre> | ||
71 | |||
72 | </div> | ||
73 | <a href="/" class="post-end-link">⟵ Back</a> | ||
74 | <div class="separator"></div> | ||
75 | </div> | ||
76 | </div> | ||
77 | </body> | ||
78 | </html> | ||