aboutsummaryrefslogtreecommitdiff
path: root/docs/posts/WPA_woes.html
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-01-25 13:46:36 +0000
committerAkshay <[email protected]>2020-01-25 13:46:36 +0000
commit071ad3b4cb371e864316a821120ea1b63e6bf213 (patch)
treec86a4221935ff37a0bf9cfa9e1a0f423997e0ae2 /docs/posts/WPA_woes.html
parent39d2766689801f8cd1f0ee93d231c9561687d95f (diff)
site layout; use esh
Diffstat (limited to 'docs/posts/WPA_woes.html')
-rw-r--r--docs/posts/WPA_woes.html68
1 files changed, 68 insertions, 0 deletions
diff --git a/docs/posts/WPA_woes.html b/docs/posts/WPA_woes.html
new file mode 100644
index 0000000..f4f8d8e
--- /dev/null
+++ b/docs/posts/WPA_woes.html
@@ -0,0 +1,68 @@
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="post posts">
15 <div class="date">12/10 2019</div>
16 <span style="font-size: 2rem; font-weight: 600">
17 WPA Woes
18 </span>
19 <div class="post-text">
20 <p>I finally got around to installing Void GNU/Linux on my main
21computer. Rolling release, non-systemd, need I say more?</p>
22
23<p>As with all GNU/Linux distributions, wireless networks had
24me in a fix. If you can see this post, it means I&#8217;ve managed
25to get online. It turns out, <code>wpa_supplicant</code> was detecting the
26wrong interface by default (does it ever select the right
27one?). Let us fix that:</p>
28
29<pre><code>$ sudo rm -r /var/service/wpa_supplicant
30$ sudo killall dhcpcd
31</code></pre>
32
33<p>What is the right interface though?</p>
34
35<pre><code>$ iw dev
36 ...
37 Interface wlp2s0
38 ...
39</code></pre>
40
41<p>Aha! Let us run <code>wpa_supplicant</code> on that interface, as a
42background process:</p>
43
44<pre><code>$ sudo wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
45$ sudo dhcpcd -B wlp2s0
46$ ping google.com
47PING ...
48</code></pre>
49
50<p>Yay! Make those changes perpetual by enabling the service:</p>
51
52<pre><code>------------------------------------------------------
53# Add these to /etc/wpa_supplicant/wpa_supplicant.conf
54OPTS=&quot;-B&quot;
55WPA_INTERFACE=&quot;wlp2s0&quot;
56------------------------------------------------------
57$ sudo ln -s /etc/sv/wpa_supplicant /var/service/
58$ sudo ln -s /etc/sv/dhcpcd /var/service/
59$ sudo sv restart wpa_supplicant
60$ sudo sv restart dhcpcd
61</code></pre>
62
63 </div>
64 <a href="/index.html" class="post-end-link">‹ Back</a>
65 <div class="separator"></div>
66 </div>
67 </body>
68</html>