update draft post for openbsd notes

main
Dominic Reich 11 months ago
parent ec5a041409
commit 4a13ce8419
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -95,24 +95,7 @@ I solved this by copying `/etc/ssl` to `/var/www/etc/ssl` via rsync, keeping fil
permissions intact. I may setup a cronjob for this maybe.
~~~console
$ doas cp -r /etc/ssl etc/ssl
$ doas rcctl restart php80_fpm
~~~
## Apache (Server)
As I host my own Cloudlog instance on my server I run into problems sometimes.
The SAT and Hams.at tools never worked for me and I looked into this today. I
got some weird SSL related errors and I thought first it was a misconfiguration
in my `php.ini` file but it finally turned out, that `ServerRoot` in my Apache
configuration pointed to `/var/www` and Cloudlog wasn't able to read the main
CA file from `/etc/ssl/cert.pem`. I copied `/etc/ssl` to `/var/www/etc/ssl` and
it works just fine -- now I need a solution to update these certs when the OS
updates the files in `/etc/ssl` because a symlink did not work for this.
tl;dr;
~~~console
$ cd /var/www
$ doas rsync -avhzrp /etc/ssl/ etc/ssl
sending incremental file list
created directory etc/ssl
@ -130,4 +113,46 @@ php80_fpm(ok)
php80_fpm(ok)
~~~
## Z-Shell
~~~console
$ count=1; zmv -n '*' '$f[1,4]/$((count++))-$f[12,-1]'
mv -- 2023-08-05-problems-with-apt-keys-on-my-hotspots 2023/51-problems-with-apt-keys-on-my-hotspots
mv -- 2023-08-26-dmrhost-on-a-raspberrypi4-with-openbsd-or-freebsd 2023/52-dmrhost-on-a-raspberrypi4-with-openbsd-or-freebsd
mv -- 2023-09-16-openbsd-current-built-from-source 2023/53-openbsd-current-built-from-source
~~~
Moves subdirectories into other folder structure with a counting variable.
~~~console
$ count=16; zmv -Q '*(/)' '$((count++))-$f[12,-1]'
mv -- 2021-08-08-win10-grub2-and-uefi 16-win10-grub2-and-uefi
mv -- 2021-08-12-running-n1mm-logger-on-linux 17-running-n1mm-logger-on-linux
mv -- 2021-10-03-winlink-and-vara-on-linux 18-winlink-and-vara-on-linux
mv -- 2021-10-03-wordlist-generation 19-wordlist-generation
mv -- 2021-10-26-processes-accessing-mountpoints 20-processes-accessing-mountpoints
~~~
That was the second part, counting from where we stopped from the previous directory.
There was a draft post left in `2022` which I deleted, now I had to renumber the folders
from `28-*` to `34-` to a number lower by 1.
~~~console
$ for i in {29..34}; do zmv -n -W $i'*' $((--i))'*'; done
mv -- 29-using-nfs-on-a-raspberry-pi 28-using-nfs-on-a-raspberry-pi
mv -- 30-vpn-tunnel-into-hamnet-on-fedora-36 29-vpn-tunnel-into-hamnet-on-fedora-36
mv -- 31-winlink-on-linux-fix-invalid-handle-on-logfiles 30-winlink-on-linux-fix-invalid-handle-on-logfiles
mv -- 32-hamnet-on-the-pfsense 31-hamnet-on-the-pfsense
mv -- 33-changing-network-metrics-on-linux 32-changing-network-metrics-on-linux
mv -- 34-change-git-submodule-url 33-change-git-submodule-url
~~~
So, there is still one post left that is actually a draft post and I'd like to
remove the leading number from that directory.
~~~console
$ zmv -n -W '59-*' '*'
mv -- 59-pat-winlink-on-openbsd pat-winlink-on-openbsd
~~~

Loading…
Cancel
Save