Switching Between Networks With wpa_supplicant

Easy switching between networks when you don't have a desktop environment

Background

My setup manages its Wi-Fi connection with wpa_supplicant but doesn't have a desktop environment so it's kind of annoying when I want to switch VLANs to manage my IoT devices.

The two networks I'm switching between are defined in /etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf and their priority set by the priority variable. To make switching easier, I've made a script to flip the priorities and restart the wpa_supplicant systemd service.

Solution

#!/usr/bin/python3
import subprocess


with open('/etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf', 'r') as …

Setting Up The Chia Network On A Synology NAS

Does money grow on hard drives?

This is probably dumb but I'm doing it anyway

Chia is going to be the next big crypto craze. Or at least that's what their website tries to make the case for.

Also, it's just kind of fun to play around with. So that's what this post is about, especially since the HDDs in my NAS are not the recommended method of plotting and farming Chia.

Setup

I'll be using the Virtual Machine Manager of …