Where the blog posts hang out.
Setting up Geodjango on Arch Linux
Setting up postgres with PostGIS for geodjango on Arch.
sudo pacman -S postgresql
Setting up data directory within my /home partition:
mkdir -p /home/myuser/postgresdb_data/data sudo chown -R postgres:postgres /home/myuser/postgresdb_data
sudo -iu postgres initdb -D /home/myuser/postgresdb_data/data
Edit the systemd service file:
sudo systemctl edit postgresql
Add the following:
[Service] Environment=PGROOT=/home/myuser/postgresdb_data PIDFile=/home/myuser/postgresdb_data/data/postmaster.pid ProtectHome=false
Edit /home/myuser/postgresdb_data/data/postgresql.conf to listen exclusively through UNIX sockets and we'll also set password encryption to scram-sha-256:
... listen_addresses = '' ... password_encryption = scram-sha-256 ...
Edit /home/myuser/postgresdb_data/data/pg_hba.conf to …
Fixing RabbitMQ Sources Repository
Updating a repo that is no longer signed.
Err:10 https://dl.bintray.com/rabbitmq-erlang/debian bionic InRelease 403 Forbidden [IP: 18.104.22.168 443] E: Failed to fetch https://dl.bintray.com/rabbitmq-erlang/debian/dists/bionic/InRelease 403 Forbidden [IP: 22.214.171.124 443] E: The repository 'https://dl.bintray.com/rabbitmq-erlang/debian bionic InRelease' is no longer signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
Seems to be related to the shutdown of Bintray sometime around April. So the first …
Switching Between Networks With wpa_supplicant
Easy switching between networks when you don't have a desktop environment
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.
#!/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.
I'll be using the Virtual Machine Manager of …
Installing & Configuring Mariadb for Arch Linux
A guide to installing and configuring Mariadb on Arch Linux
This website runs on a Digital Ocean Ubuntu VPS, and uses MySQL as it's backend database. I want to use my Arch Linux laptop to develop and test new code for the website so I need a database to use for the test environment. I could use Docker which would probably be the better option if I wanted to emulate the production database on this VPS as closely as possible but I've never …
Reallocating disk space from home to root partition
On my recent Arch install, I decided to create separate partitions for my root and home directories. Unfortunately, I'm a dummy and only allocated 20 GB for the root partition. As it turns out, that's not enough for a proper workstation setup so now I have to fix my mistake.
My particular install involves two usb drives, one with the Arch boot partition and the other with a cryptographic key to …
Setting up a Video Background Login Screen
Documenting my setup for creating a login screen with a video background.
Recently I was inspired to switch over to Arch Linux after seeing this post by u/EmpressNoodle over at /r/unixporn.
During my Arch install, I decided to use SDDM as my display manager. One of it's features is the ability to use videos as the background of the login screen so I figured I'd give that a go.
First, I had to decide on the base theme that I wanted to customize. My …