LIST

install helm on homeserver

curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null sudo apt-get install apt-transport-https --yes echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list sudo apt-get update sudo apt-get install helm

July 15, 2024

install tailscale on homeserver

install tailscale on homeserver https://tailscale.com/download/linux curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list sudo apt-get update sudo apt-get install tailscale sudo tailscale up tailscale ip -4

July 15, 2024

install zsh on homeserver

sudo apt install zsh -y also install ohmyzsh https://ohmyz.sh/#install sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" change prompt to include filename cp ~/.oh-my-zsh/themes/robbyrussell.zsh-theme ~/.oh-my-zsh/custom/themes PROMPT="%{$fg[blue]%}%m%{$fg[red]%}|%(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%} ) %{$fg[cyan]%}%c%{$reset_color%}" PROMPT+=' $(git_prompt_info)' ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}%1{✗%}" ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"

July 15, 2024

fix title with quotes breaking frontmatter

check if there are files that need fixing grep -R 'title: ".*".*"$' . | tee malformed-titles.txt (util) strip stuff that grep -R adds cat malformed-titles.txt | sed 's/.*\.md://' | (util) only keep filenames cat malformed-titles.txt | sed 's/:.*//' check that no existing files that would break -> this should be empty! grep -R '/^title: [^"]*$' . | tee conflicting-lines.txt (util) replace inline “make sure the previous check is empty!” sed -i \ -e '/^title: "....

July 14, 2024

nextcloud rescan user files

➜ ~ kubectl exec --stdin --tty nextcloud-848f5d757b-kvx7b -- /bin/bash root@nextcloud-848f5d757b-kvx7b:/# which occ /usr/bin/occ root@nextcloud-848f5d757b-kvx7b:/# occ files:scan -- sdfueneb Starting scan for user 1 out of 1 (sdfueneb) +———+——-+—–+———+———+——–+————–+ | Folders | Files | New | Updated | Removed | Errors | Elapsed time | +———+——-+—–+———+———+——–+————–+ | 4111 | 36454 | 0 | 20936 | 0 | 0 | 00:00:21 | +———+——-+—–+———+———+——–+————–+

July 6, 2024

ultimate homeserver helm dependency prometheus grafana

https://helm.sh/docs/helm/helm_dependency/ helm dependency list helm dependency update https://helm.sh/docs/chart_template_guide/subcharts_and_globals/ ➜ ~ kubectl --namespace default port-forward homeserver-grafana-647cbd75c9-2k5bt 3000:3000 ➜ ~ kubectl --namespace default port-forward alertmanager-homeserver-kube-prometheus-alertmanager-0 9093:9093 ➜ ~ kubectl --namespace default port-forward alertmanager-homeserver-kube-prometheus-alertmanager-0 9094:9094 loki 3100/TCP, 9095/TCP, 7946/TCP ➜ ~ kubectl --namespace default port-forward homeserver-loki-0 3100:3100 ➜ ~ kubectl --namespace default port-forward homeserver-loki-0 9095:9095 ➜ ~ kubectl --namespace default port-forward homeserver-loki-0 7946:7946

June 29, 2024

home assistant k3s

home assistant deployed in k3s Ultimate Home Server tutorial https://jaygould.co.uk/2024-01-01-setting-up-home-assistant-kubernetes-k3s/ ( https://github.com/jaygould/home-assistant/tree/e1262e6a42d1f00e6ef018a49b2993a5c21a24ff ) linuxserver https://docs.linuxserver.io/images/docker-homeassistant/#supported-architectures home assistant + k3s + zigbee https://jaygould.co.uk/2024-01-12-integrating-zigbee2mqtt-with-home-assistant-k3s-cluster/ ( https://github.com/jaygould/home-assistant/tree/f57fdc9d6aad964ed776f270aaa1f8b1844021e3 )

June 27, 2024

debugging network k3s

Analysis kgp -> showing nginx crashbackoffloop kl nginx-7bf7bd99c5-cw8vl -> showing no DNS resolution https://stackoverflow.com/questions/73297599/coredns-running-status-but-not-become-ready kubectl run -it test-nginx-svc --image=nginx -- bash curl http://:8080 curl http://nginx-service:8080 cat /etc/resolv.conf kgpa -> showing coredns pod not up –> dns is not working delete coredns kubectl delete –namespace kube-system pod coredns-6799fbcd5-m5jq2 delete nginx (to trigger redeploy instead of waiting for the crashloopbackoff) kubectl delete pod nginx-7bf7bd99c5-cw8vl

June 1, 2024

andoid kavita client

I also use Moon+ Reader via OPDS on Kavita. Kavita also supports OPDS-PS which syncs book progress back to the server so that you can pick it up on a different device right where you left off. Moon+ doesn’t support this, however it can sync book progress to google drive (maybe dropbox too!?) So that you can pick up where you left off on a different device, so long as you use Moon+ on that device as well....

May 26, 2024

nexcloud helm

Strict reverse proxies¶ This image uses a self-signed certificate by default. This naturally means the scheme is https. If you are using a reverse proxy which validates certificates, you need to disable this check for the container. src: https://docs.linuxserver.io/FAQ/#strict-proxy ... server { listen 10.1.2.3:80; server_name 10.1.2.3 myproxy.mycompany.com; location / { proxy_pass https://backend.server.ip/; proxy_ssl_trusted_certificate /etc/nginx/sslcerts/backend.server.pem; proxy_ssl_verify off; ... other proxy settings } src: https://serverfault.com/questions/341023/nginx-as-reverse-proxy-with-upstream-ssl ignored for now: proxy_ssl_trusted_certificate hope it works without…

May 26, 2024