This is an old revision of the document!
Hermes auf Debian stable
Betriebssystem und Pakete
OS: debian-bookworm
- Minimum-Installation
- Alle Updates
apt update && apt upgrade apt install \ vim \ openssh-server \ dropbear-initramfs \ command-not-found \ apache2-utils \ mc \ rcs \ rsync \ swaks \ ufw \ inetutils-tools \ net-tools \ fuse \ at \ samba \ nullmailer \ mailutils \ hdparm \ sudo \ golang \ ethtool \ hwinfo \ hdparm \ pv \ gdu \ python3-dateutil \ lsb-release \ gnupg2 \ apt-transport-https \ ca-certificates \ curl \ software-properties-common \ mariadb-client \ lshw
Swapspace
sudo fallocate -l 16G /swapfile ls -lh /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon --show sudo echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab cat /proc/sys/vm/swappiness sudo sysctl vm.swappiness=10 cat /proc/sys/vm/vfs_cache_pressure sudo sysctl vm.vfs_cache_pressure=50
In /etc/sysctl.conf folgende Zeilen anfügen:
vm.swappiness=10 vm.vfs_cache_pressure=50
Docker
Restic
wget https://github.com/restic/restic/releases/download/v0.16.2/restic_0.16.2_linux_amd64.bz2 bzip2 -d restic_0.16.2_linux_amd64.bz2 mv restic_0.16.2_linux_amd64 /usr/local/bin/restic chmod +x /usr/local/bin/restic restic
Erzeugt eine Ausgabe beginnend mit
restic is a backup program which allows saving multiple revisions of files and directories in an encrypted repository stored on different backends. The full documentation can be found at https://restic.readthedocs.io/ .
Repo für Restore mounten
Pfad kann unterschiedlich sein!
restic -p /root/resticpw -r /backupdisk/restic-repo --no-lock mount /resticrestore
Pihole
Conditional Forwarding
workaround fuer pi-holes (von heise.de/forum )
Ich bin jetzt nicht der Netzwerker - aber ein Ping auf fritz.box gibt jetzt bei mir wieder die Router-Adresse aus. In den Pi-Hole Einstellungen gehe manN auf Settings - DNS - ganz nach unten: Use Conditional Forwarding - Haken rein. Dann im ersten Feld den eigenen Netzwerkbereich - im zweiten Feld die Routeradresse und im dritten Feld dann “fritz.box” Dann sollte, so Beschreibung lokale Netzwerkanfragen im Lokal bleiben. Ergaenzungen/Berichtigungen erwuenscht! Gruss, Klaus
