From 8fdcf60c7b289eae7722af9c60e78f9599ec2538 Mon Sep 17 00:00:00 2001 From: Correl Date: Tue, 23 Jan 2024 23:38:24 -0500 Subject: [PATCH] updates --- ...29-transferring_data_to_a_raidz1_array.org | 84 +++++++++---------- daily/2024-01-23.org | 66 +++++++++++++++ 2 files changed, 108 insertions(+), 42 deletions(-) create mode 100644 daily/2024-01-23.org diff --git a/20240108001129-transferring_data_to_a_raidz1_array.org b/20240108001129-transferring_data_to_a_raidz1_array.org index cc24a34..ee8fb50 100644 --- a/20240108001129-transferring_data_to_a_raidz1_array.org +++ b/20240108001129-transferring_data_to_a_raidz1_array.org @@ -83,50 +83,50 @@ https://www.disctech.com/Western-Digital-WD-Red-Plus-WD101EFBX-10TB-NAS-SATA-Har for destination, source in sorted(mappings.items()): delete = "--delete" if not any(destination in d.parents for d in mappings.keys()) else "" - print(f"rsync -avz {delete:8} --no-perms --info=progress2 correlr@reason:{source}/ {destination}/") + print(f"rsync -avz {delete:8} --no-perms --info=progress2 'correlr@reason:{source}/' '{destination}/'") #+end_src #+RESULTS: #+begin_example -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/Backup/current/ /mnt/reason/backups/current/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/Backup/exports/ /mnt/reason/backups/exports/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/Backup/logs/ /mnt/reason/backups/logs/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/Backup/old/ /mnt/reason/backups/old/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Backup/ /mnt/reason/backups/older/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Backups/ /mnt/reason/backups/oldest/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/Backup/reason/ /mnt/reason/backups/reason/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/srv/ /mnt/reason/backups/srv.old/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/thunderbird/ /mnt/reason/backups/thunderbird.old/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/RetroPie/ /mnt/reason/games/retropie/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Roms/ /mnt/reason/games/roms/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/StepMania-3.9/ /mnt/reason/games/stepmania/StepMania-3.9/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/Anime/ /mnt/reason/media/anime/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Gaia/Videos/Anime Theater/ /mnt/reason/media/anime-theater/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Izanagi/Video/Movies/ /mnt/reason/media/movies/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Music/ /mnt/reason/media/music/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/Plays/ /mnt/reason/media/plays/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Gaia/Videos/Porn/ /mnt/reason/media/porn/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/TV/ /mnt/reason/media/television/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Gaia/Videos/Theatre/ /mnt/reason/media/theater/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Izanagi/Video/Anime Music Videos/ /mnt/reason/media/videos/Anime Music Videos/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Izanagi/Video/Comedy/ /mnt/reason/media/videos/Comedy/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Gaia/Videos/Family/ /mnt/reason/media/videos/Family/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Izanagi/Video/Misc/ /mnt/reason/media/videos/Misc/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Izanagi/Video/Music Videos/ /mnt/reason/media/videos/Music Videos/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Izanagi/Video/Wedding/ /mnt/reason/media/videos/Wedding/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Izanagi/Video/iPhone/ /mnt/reason/media/videos/iPhone/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/Webcam/ /mnt/reason/media/webcam/ -rsync -avz --no-perms --info=progress2 correlr@reason:/media/Terra/Misc/ /mnt/reason/misc/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Gaia/Laptop Pictures/ /mnt/reason/misc/Laptop Pictures/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Manga/ /mnt/reason/misc/Manga/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Pictures/ /mnt/reason/misc/Photos/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Software & Disc Images/ /mnt/reason/misc/Software & Disc Images/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Sort these pictures/ /mnt/reason/misc/Sort these pictures/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/Wedding Pictures/ /mnt/reason/misc/Wedding Pictures/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Terra/code/ /mnt/reason/misc/code/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Gaia/ipod/ /mnt/reason/misc/ipod/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Gaia/srv/gitea/ /mnt/reason/services/gitea/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Gaia/srv/gitlab/ /mnt/reason/services/gitlab/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Izanagi/srv/owncloud/ /mnt/reason/services/nextcloud/ -rsync -avz --delete --no-perms --info=progress2 correlr@reason:/media/Satanael/plexmediaserver/ /mnt/reason/services/plexmediaserver/ + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/Backup/current/' '/mnt/reason/backups/current/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/Backup/exports/' '/mnt/reason/backups/exports/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/Backup/logs/' '/mnt/reason/backups/logs/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/Backup/old/' '/mnt/reason/backups/old/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Backup/' '/mnt/reason/backups/older/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Backups/' '/mnt/reason/backups/oldest/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/Backup/reason/' '/mnt/reason/backups/reason/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/srv/' '/mnt/reason/backups/srv.old/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/thunderbird/' '/mnt/reason/backups/thunderbird.old/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/RetroPie/' '/mnt/reason/games/retropie/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Roms/' '/mnt/reason/games/roms/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/StepMania-3.9/' '/mnt/reason/games/stepmania/StepMania-3.9/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/Anime/' '/mnt/reason/media/anime/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Gaia/Videos/Anime Theater/' '/mnt/reason/media/anime-theater/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Izanagi/Video/Movies/' '/mnt/reason/media/movies/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Music/' '/mnt/reason/media/music/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/Plays/' '/mnt/reason/media/plays/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Gaia/Videos/Porn/' '/mnt/reason/media/porn/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/TV/' '/mnt/reason/media/television/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Gaia/Videos/Theatre/' '/mnt/reason/media/theater/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Izanagi/Video/Anime Music Videos/' '/mnt/reason/media/videos/Anime Music Videos/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Izanagi/Video/Comedy/' '/mnt/reason/media/videos/Comedy/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Gaia/Videos/Family/' '/mnt/reason/media/videos/Family/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Izanagi/Video/Misc/' '/mnt/reason/media/videos/Misc/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Izanagi/Video/Music Videos/' '/mnt/reason/media/videos/Music Videos/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Izanagi/Video/Wedding/' '/mnt/reason/media/videos/Wedding/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Izanagi/Video/iPhone/' '/mnt/reason/media/videos/iPhone/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/Webcam/' '/mnt/reason/media/webcam/' + rsync -avz --no-perms --info=progress2 'correlr@reason:/media/Terra/Misc/' '/mnt/reason/misc/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Gaia/Laptop Pictures/' '/mnt/reason/misc/Laptop Pictures/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Manga/' '/mnt/reason/misc/Manga/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Pictures/' '/mnt/reason/misc/Photos/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Software & Disc Images/' '/mnt/reason/misc/Software & Disc Images/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Sort these pictures/' '/mnt/reason/misc/Sort these pictures/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/Wedding Pictures/' '/mnt/reason/misc/Wedding Pictures/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Terra/code/' '/mnt/reason/misc/code/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Gaia/ipod/' '/mnt/reason/misc/ipod/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Gaia/srv/gitea/' '/mnt/reason/services/gitea/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Gaia/srv/gitlab/' '/mnt/reason/services/gitlab/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Izanagi/srv/owncloud/' '/mnt/reason/services/nextcloud/' + rsync -avz --delete --no-perms --info=progress2 'correlr@reason:/media/Satanael/plexmediaserver/' '/mnt/reason/services/plexmediaserver/' #+end_example diff --git a/daily/2024-01-23.org b/daily/2024-01-23.org new file mode 100644 index 0000000..e82325a --- /dev/null +++ b/daily/2024-01-23.org @@ -0,0 +1,66 @@ +: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.