roam/daily/2024-01-23.org

67 lines
2.8 KiB
Org Mode
Raw Normal View History

2024-01-24 04:38:24 +00:00
:PROPERTIES:
:ID: 00f4cf27-0ac7-44a4-ac93-383da99ccb9f
:END:
#+title: 2024-01-23
* Testing Arch Linux with Cockpit + ZFS
Testing an option for [[id:a5f8aa86-b03c-494e-85fa-d9483950d2fb][Reason]].
** Remember to install and enable core services:
- sshd
- dhcpcd
** Install yay
#+begin_example
pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
#+end_example
** Install cockpit-zfs
- Also requires samba
*** Cockpit ZFS web fonts are missing
https://github.com/45Drives/cockpit-zfs-manager/issues/15
: sudo pacman -Sy wget
#+begin_example
sudo mkdir -p /usr/share/cockpit/base1/fonts/
sudo wget -O /usr/share/cockpit/base1/fonts/fontawesome.woff https://github.com/h5p/font-awesome/raw/master/fontawesome-webfont.woff
sudo wget -O /usr/share/cockpit/base1/fonts/glyphicons.woff https://github.com/twbs/bootstrap-sass/raw/master/assets/fonts/bootstrap/glyphicons-halflings-regular.woff
sudo wget -O /usr/share/cockpit/base1/fonts/patternfly.woff https://github.com/patternfly/patternfly-sass/raw/master/assets/fonts/patternfly/PatternFlyIcons-webfont.woff
sudo wget -P /usr/share/cockpit/static/fonts https://github.com/braintree/braintree_slim_example/raw/main/static/fonts/open-sans/OpenSans-Semibold-webfont.woff
sudo mkdir -p /usr/share/cockpit/zfs/assets/fonts/RedHatDisplay/
sudo cp -v /usr/share/cockpit/static/fonts/*Display*.woff2 /usr/share/cockpit/zfs/assets/fonts/RedHatDisplay/
for f in /usr/share/cockpit/zfs/assets/fonts/RedHatDisplay/*; do sudo mv -v -- "$f" "${f%.woff2}.woff"; done
sudo mkdir -p /usr/share/cockpit/zfs/assets/fonts/RedHatText/
sudo cp -v /usr/share/cockpit/static/fonts/*Text*.woff2 /usr/share/cockpit/zfs/assets/fonts/RedHatText/
for f in /usr/share/cockpit/zfs/assets/fonts/RedHatText/*; do sudo mv -v -- "$f" "${f%.woff2}.woff"; done
sudo systemctl restart cockpit
#+end_example
** Import ZFS pool
: zpool import -R /mnt reason
*** "Storage Pool could not be imported"
"The pool was previously in use by another system".
Import needs to be forced.
: zpool import -R /mnt -f reason
* Setting up Home Assistant
Setting up [[id:5aeea464-e1ed-46e4-9293-87edaf385051][Home Assistant]] on an appliance device using a [[https://libre.computer/products/aml-s905x-cc/][Libre Computer "Le Potato"]].
Supervisor has an issue with Docker 25
https://github.com/home-assistant/supervisor/issues/4827
#+begin_example
sudo apt install \
docker-compose-plugin=2.21.0-1~debian.12~bookworm \
docker-ce-cli=5:24.0.7-1~debian.12~bookworm \
docker-buildx-plugin=0.11.2-1~debian.12~bookworm \
docker-ce=5:24.0.7-1~debian.12~bookworm \
docker-ce-rootless-extras=5:24.0.7-1~debian.12~bookworm
#+end_example
Configuration lives in =/usr/share/hassio=; =configuration.yaml= needed the
nginx proxy added as a trusted reverse proxy.