aboutsummaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
Diffstat (limited to 'posts')
-rw-r--r--posts/avanswifi.md62
-rw-r--r--posts/homeauto.md11
2 files changed, 23 insertions, 50 deletions
diff --git a/posts/avanswifi.md b/posts/avanswifi.md
index 08b2c3b..11191fd 100644
--- a/posts/avanswifi.md
+++ b/posts/avanswifi.md
@@ -1,60 +1,26 @@
[meta]: <title> (Avans wifi setup)
-[meta]: <subtitle> (How to use Avans eduroam on Arch Linux)
+[meta]: <subtitle> (How to use Avans eduroam with NetworkManager)
[meta]: <author> (Loek)
-[meta]: <date> (September 6 2021)
+[meta]: <date> (September 9 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
+$ nmcli connection edit type wifi
+nmcli> set 802-11-wireless.ssid eduroam
+nmcli> set 802-1x.eap peap
+nmcli> set 802-1x.phase2-auth mschapv2
+nmcli> set 802-1x.identity <avans username>
+nmcli> set 802-1x.password <avans password>
+nmcli> set wifi-sec.key-mgmt wpa-eap
+nmcli> save
+nmcli> activate
```
-(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.
+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`.
diff --git a/posts/homeauto.md b/posts/homeauto.md
index 33e2a6a..35d8d12 100644
--- a/posts/homeauto.md
+++ b/posts/homeauto.md
@@ -12,7 +12,7 @@ automation system.
I've tried two home automation systems so far: homebridge and home assistant.
Homebridge isn't really an automation system. It's meant to add unsupported
devices to *homekit*, but doesn't work with anything other than apple devices.
-I've also tried (and am currently using) home assistant. It's a complete
+I've also tried (and am currently using) home assistant. It's a complete
replacement for the homekit ecosystem, and it can do basically anything, as
long as you're patient enough...
@@ -227,6 +227,10 @@ Very complicated stuff...
[This](http://www.knutsel.org/2009/01/01/livingcolors-1st-generation/) article
describes all the research that went into reverse-engineering the lamp.
+I ordered a cc2500 wireless transmitter and receiver, but the seller cancelled
+the order, and now I have to wait a while longer to get one. I'll update this
+article once I've set it up though.
+
## Toshiba air conditioning unit
I created a small daughter board to connect to the raspberry pi's gpio pins,
@@ -237,5 +241,8 @@ I've spent a solid two days now trying to use my raspberry pi or arduino uno as
a janky logic analyzer, to capture the IR messages and get the message contents
manually, but I still haven't succeeded. I have however succeeded in frying the
IR LED by giving it +5v backwards without any protection, so that's something I
-guess. I'll update this article when I get it working.
+guess. I'll update this section of the article together with the Philips lamp.
+
+
+To be continued...