aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-09-06 15:38:34 +0200
committerlonkaars <loek@pipeframe.xyz>2021-09-06 15:38:34 +0200
commitfa6d9a7b81890f39d84236b4b7da168bd8e18449 (patch)
tree4ceaa08e2e4181e6c2d20e2a67dc8ee13dc28a55
parent434f6b23ee9b37cd7ca1c30317492a42209dedc5 (diff)
avans wifi post
-rw-r--r--posts/avanswifi.md60
-rw-r--r--public/img/avanswifi.pngbin0 -> 11154 bytes
2 files changed, 60 insertions, 0 deletions
diff --git a/posts/avanswifi.md b/posts/avanswifi.md
new file mode 100644
index 0000000..08b2c3b
--- /dev/null
+++ b/posts/avanswifi.md
@@ -0,0 +1,60 @@
+[meta]: <title> (Avans wifi setup)
+[meta]: <subtitle> (How to use Avans eduroam on Arch Linux)
+[meta]: <author> (Loek)
+[meta]: <date> (September 6 2021)
+[meta]: <tags> (software)
+[meta]: <cover> (/img/avanswifi.png)
+
+I wasted 2 hours trying to set up my school's WiFi, so here's a quick reference
+for other students who might've tried connecting but ended up giving up.
+
+> NOTE: I'm using **NetworkManager** on my own installation, so that's what I'm
+> writing this guide for.
+
+1. Install `iwd`
+ ```
+ # pacman -S iwd
+ ```
+ `iwd` is needed because NetworkManager can't connect to WPA enterprise
+ networks as stated by the [arch
+ wiki](https://wiki.archlinux.org/title/NetworkManager#WPA_Enterprise_connection_with_NetworkManager)
+2. Set `iwd` as NetworkManager's backend by adding the following to your
+ `/etc/NetworkManager/NetworkManager.conf`:
+ ```dosini
+ [device]
+ wifi.backend=iwd
+ ```
+3. Enable/start `iwd.service`
+ ```
+ # systemctl enable --now iwd
+ ```
+4. Create a new file `/var/lib/iwd/eduroam.8021x` with the following contents,
+ replacing the \<placeholders\> with your own credentials:
+ ```dosini
+ [Security]
+ EAP-Method=PEAP
+ EAP-Identity=anonymous
+ EAP-PEAP-Phase2-Method=MSCHAPV2
+ EAP-PEAP-Phase2-Identity=<username>
+ EAP-PEAP-Phase2-Password=<password>
+
+ [Settings]
+ AutoConnect=True
+ ```
+ Keep in mind that your username isn't your student e-mail, but the first
+ letter of your first name, and 7 characters from your last name, e.g.
+ `Loek Le Blansch -> lblansch`.
+
+After setting all of this up, your laptop should atomatically connect to the
+eduroam network. If you want to connect manually, you'll need to use the
+command-line utility `iwctl`, or use the following command:
+
+```
+$ iwctl station wlan0 connect eduroam
+```
+
+(wlan0 can differ depending on your network card).
+
+You can (and should) still use `nmcli` to connect to normal networks, but I
+haven't tested if it works for eduroam too.
+
diff --git a/public/img/avanswifi.png b/public/img/avanswifi.png
new file mode 100644
index 0000000..b006795
--- /dev/null
+++ b/public/img/avanswifi.png
Binary files differ