diff --git a/knowledge base/baikal.md b/knowledge base/baikal.md index 320a88b..91555a4 100644 --- a/knowledge base/baikal.md +++ b/knowledge base/baikal.md @@ -9,7 +9,7 @@ ## TL;DR
- Installation and configuration + Setup ```sh docker pull 'ckulka/baikal-docker' @@ -42,7 +42,7 @@ Ensure the following are available: ## Further readings - [Website] -- [Github] +- [Codebase] - [Self-hosting] ### Sources @@ -65,8 +65,8 @@ Ensure the following are available: [baïkal dependencies]: https://github.com/sabre-io/Baikal/wiki/Ba%C3%AFkal-dependencies [baikal php error]: https://github.com/sabre-io/Baikal/issues/701 -[github]: https://github.com/sabre-io/Baikal -[website]: https://sabre.io/baikal/ +[Codebase]: https://github.com/sabre-io/Baikal +[Website]: https://sabre.io/baikal/ [ckulka/baikal-docker]: https://github.com/ckulka/baikal-docker diff --git a/knowledge base/linux/alpine.md b/knowledge base/linux/alpine.md index 9ae3af7..6665c03 100644 --- a/knowledge base/linux/alpine.md +++ b/knowledge base/linux/alpine.md @@ -2,6 +2,7 @@ 1. [TL;DR](#tldr) 1. [Further readings](#further-readings) + 1. [Sources](#sources) ## TL;DR @@ -30,12 +31,29 @@ addgroup 'nobody' 'docker' # Start services. rc-update add 'gitea' rc-service 'gitea' start + +# Upgrade to a new release branch. +sed -i'.bak' -e 's/v3.22/v3.23/g' '/etc/apk/repositories' \ +&& apk add --upgrade --update-cache 'apk-tools' \ +&& apk upgrade --available \ +&& reboot + +# Update configuration files. +find '/etc' -name "*.apk-new" +diff '/etc/init.d/localmount' '/etc/init.d/localmount.apk-new' \ +&& mv -iv '/etc/init.d/localmount.apk-new' '/etc/init.d/localmount' ``` ## Further readings +- [Website] +- [Documentation] - [APK] +### Sources + +- [Upgrading Alpine Linux to a new release branch] + [apk]: ../apk.md + + +[Documentation]: https://wiki.alpinelinux.org/wiki/Main_Page +[Upgrading Alpine Linux to a new release branch]: https://wiki.alpinelinux.org/wiki/Upgrading_Alpine_Linux_to_a_new_release_branch +[Website]: https://alpinelinux.org/ diff --git a/knowledge base/turris os.md b/knowledge base/turris os.md index fd5f2d7..fa50208 100644 --- a/knowledge base/turris os.md +++ b/knowledge base/turris os.md @@ -529,14 +529,15 @@ curl -sSL 'https://install.pi-hole.net' | bash /etc/.pihole/pihole -a -p # Update pi-hole as a whole, if needed. +/etc/.pihole/pihole updatePihole /etc/.pihole/pihole -up # Set the router as the primary DNS server. -sed -E -i.bak 's|^#?\s*DNS\s*=\s*.*$|DNS=192.168.1.1|' '/etc/systemd/resolved.conf' +sed -E -i'.bak' 's|^#?\s*DNS\s*=\s*.*$|DNS=192.168.1.1|' '/etc/systemd/resolved.conf' # Set Cloudflare as the fallback DNS server. # Optional. -sed -E -i.bak 's|^#?\s*FallbackDNS\s*=\s*.*$|FallbackDNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 # Cloudflare|' '/etc/systemd/resolved.conf' +sed -E -i'.bak' 's|^#?\s*FallbackDNS\s*=\s*.*$|FallbackDNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 # Cloudflare|' '/etc/systemd/resolved.conf' # Set the interface to ignore DNS lists given by the DHCP server. cp '/etc/systemd/network/eth0.network' '/etc/systemd/network/eth0.network.bak'