Category: Admin’s Little Helpers

Some reminders for http caching

blatantly copypasted from No-cache means “do cache” Caching has never been easy, but HTTP cache headers can be particularly confusing. The worst examples of this are no-cache and private. What does the below response header do? It looks like this means “don’t store this response anywhere”, right? Hahaha no. In reality, this means “please

Continue Reading…

run openvpn in client mode automatically after linux boot

scenario: send out a raspberry pi model b rev1, all setup with raspberryi os / raspbian. the hardware specs are nothing much, but the machine is reliable, even when apparently half the ram chips are dead…. install openvpn, then take the config file from the server you want to connect to – in my case

Continue Reading…

chroot and serial console to fix ubuntu distro upgrade gone wrong

I had to fix a do-distro-upgrade from 16.04 to 18.04 due to a severed ssh connection, and no screen running (apparently earlier distro upgrades used screen to prevent this kind of problem) the machine as a PCengine apu2, so no video. also, the root file system is sitting on a miniPCI ssd. eventually, my thinkpad

Continue Reading…