diff options
Diffstat (limited to 'docs/posts/WPA_woes')
-rw-r--r-- | docs/posts/WPA_woes/index.html | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/docs/posts/WPA_woes/index.html b/docs/posts/WPA_woes/index.html index a4ef973..a676210 100644 --- a/docs/posts/WPA_woes/index.html +++ b/docs/posts/WPA_woes/index.html | |||
@@ -10,6 +10,7 @@ | |||
10 | <meta property="og:type" content="website"> | 10 | <meta property="og:type" content="website"> |
11 | <meta property="og:description" content="a static site {for, by, about} me "> | 11 | <meta property="og:description" content="a static site {for, by, about} me "> |
12 | <meta property="og:url" content="https://peppe.rs"> | 12 | <meta property="og:url" content="https://peppe.rs"> |
13 | <link rel="icon" type="image/x-icon" href="/favicon.png"> | ||
13 | <title>WPA Woes - peppe.rs</title> | 14 | <title>WPA Woes - peppe.rs</title> |
14 | <body> | 15 | <body> |
15 | <div class="posts"> | 16 | <div class="posts"> |
@@ -36,16 +37,16 @@ | |||
36 | WPA Woes | 37 | WPA Woes |
37 | </span> | 38 | </span> |
38 | <div class="post-text"> | 39 | <div class="post-text"> |
39 | <p>I finally got around to installing Void GNU/Linux on my main | 40 | <p>I finally got around to installing Void GNU/Linux on my main |
40 | computer. Rolling release, non-systemd, need I say more?</p> | 41 | computer. Rolling release, non-systemd, need I say more?</p> |
41 | 42 | ||
42 | <p>As with all GNU/Linux distributions, wireless networks had | 43 | <p>As with all GNU/Linux distributions, wireless networks had |
43 | me in a fix. If you can see this post, it means I’ve managed | 44 | me in a fix. If you can see this post, it means I've managed |
44 | to get online. It turns out, <code>wpa_supplicant</code> was detecting the | 45 | to get online. It turns out, <code>wpa_supplicant</code> was detecting the |
45 | wrong interface by default (does it ever select the right | 46 | wrong interface by default (does it ever select the right |
46 | one?). Let us fix that:</p> | 47 | one?). Let us fix that:</p> |
47 | 48 | ||
48 | <pre><code>$ sudo rm -r /var/service/wpa_supplicant | 49 | <pre><code>$ sudo rm -r /var/service/wpa_supplicant |
49 | $ sudo killall dhcpcd | 50 | $ sudo killall dhcpcd |
50 | </code></pre> | 51 | </code></pre> |
51 | 52 | ||
@@ -60,7 +61,7 @@ $ sudo killall dhcpcd | |||
60 | <p>Aha! Let us run <code>wpa_supplicant</code> on that interface, as a | 61 | <p>Aha! Let us run <code>wpa_supplicant</code> on that interface, as a |
61 | background process:</p> | 62 | background process:</p> |
62 | 63 | ||
63 | <pre><code>$ sudo wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf | 64 | <pre><code>$ sudo wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf |
64 | $ sudo dhcpcd -B wlp2s0 | 65 | $ sudo dhcpcd -B wlp2s0 |
65 | $ ping google.com | 66 | $ ping google.com |
66 | PING ... | 67 | PING ... |
@@ -69,12 +70,12 @@ PING ... | |||
69 | <p>Yay! Make those changes perpetual by enabling the service:</p> | 70 | <p>Yay! Make those changes perpetual by enabling the service:</p> |
70 | 71 | ||
71 | <pre><code>------------------------------------------------------ | 72 | <pre><code>------------------------------------------------------ |
72 | # Add these to /etc/wpa_supplicant/wpa_supplicant.conf | 73 | # Add these to /etc/wpa_supplicant/wpa_supplicant.conf |
73 | OPTS="-B" | 74 | OPTS="-B" |
74 | WPA_INTERFACE="wlp2s0" | 75 | WPA_INTERFACE="wlp2s0" |
75 | ------------------------------------------------------ | 76 | ------------------------------------------------------ |
76 | $ sudo ln -s /etc/sv/wpa_supplicant /var/service/ | 77 | $ sudo ln -s /etc/sv/wpa_supplicant /var/service/ |
77 | $ sudo ln -s /etc/sv/dhcpcd /var/service/ | 78 | $ sudo ln -s /etc/sv/dhcpcd /var/service/ |
78 | $ sudo sv restart wpa_supplicant | 79 | $ sudo sv restart wpa_supplicant |
79 | $ sudo sv restart dhcpcd | 80 | $ sudo sv restart dhcpcd |
80 | </code></pre> | 81 | </code></pre> |