scottmuc / infrastructure

Documentation / Automation for personal third-party infrastructure
The Unlicense
10 stars 2 forks source link

Rebuild Raspbery PI - July 2023 Edition #61

Closed scottmuc closed 1 year ago

scottmuc commented 1 year ago

Yay for Repaving!

As much as possible is documented inline in this issue template. In case of problems you may find help by viewing all the previous repave issues. Have fun!

Things to do with the existing build

Post OS install steps on desktop

How Do I Know I Am Done?

scottmuc commented 1 year ago

Thoughts on DHCP Shuffling

Rather than the disable DHCPD on the PI and enable DHCPD on the router, I could statically assign an IP and DNS. It saves those 2 steps and I could live-stream a repave without the internet disruption on my PC.

That being said, when bootstrapping the PI, I need it to get an IP address so I can SSH to it. Perhaps there's a way to set the IP of the PI statically.

scottmuc commented 1 year ago

logkeepalive.sh Issue

Note that on reboot, /tmp/logkeepalive.sh gets deleted so the logging tag needs to be reapplied.

scottmuc commented 1 year ago

Repave issues

scottmuc commented 1 year ago
ansible@raspberrypi:~ $ cat /etc/os-release && uname -a
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
scottmuc commented 1 year ago

Resolving Issues

Grafana

The behaviour I was seeing was that going to https://home.scottmuc.com/grafana redirected to http://home.scottmuc.com:3000/grafana.

It looks like this repave brought in version 10 of grafana and that brought in a breaking change. I've temporarily locked the version to 9.5.6 and now it is working. A tiny bit of searching shows what looks to be the breaking change: https://github.com/grafana/grafana/pull/66724

I'll need to familiarize myself with that PR to see what I need to do. Version 10 was running but the reverse proxy configuration wasn't working.

Alacritty

Not sure what happened, but had to apply a configuration change for selections to be copied to the clipboard to work.

scottmuc commented 1 year ago

Repave complete! I'll edit/upload the video as soon as I can.

scottmuc commented 1 year ago

Here's the video (80min) of the whole exercise.