Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer:debian:hermes_v3 [2023/11/24 14:46] springcomputer:debian:hermes_v3 [2025/03/09 08:12] (current) – [Scrutiny Smart Monitor] spring
Line 1: Line 1:
-====== Restic ======+====== 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 ====== 
 +<file> 
 +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 
 +</file> 
 +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   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   bzip2 -d restic_0.16.2_linux_amd64.bz2
Line 14: Line 80:
 </file> </file>
  
-===== Repo für Restore mounten =====+==== Repo für Restore mounten ====
 Pfad kann unterschiedlich sein! Pfad kann unterschiedlich sein!
-  restic -p /root/resticpw -r /backupdisk/@20220903-1133/restic-repo mount /resticrestore+  restic -p /root/resticpw -r /backupdisk/restic-repo --no-lock mount /resticrestore 
 +   
 +===== Pihole ===== 
 + 
 +==== Conditional Forwarding ==== 
 +workaround fuer pi-holes (von {{https://www.heise.de/forum/heise-online/Kommentare/Verwirrend-Internet-Domain-fritz-box-zeigt-NFT-Galerie-statt-Router-Verwaltung/workaround-fuer-pi-holes/posting-43595444/show/|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 
 + 
 +==== Scrutiny Smart Monitor ==== 
 +siehe https://github.com/AnalogJ/scrutiny 
 +Installiert im hub-spoke-Modus 
 + 
 +=== Offline Collection === 
 +Download 
 +  wget https://github.com/AnalogJ/scrutiny/releases/latest/download/scrutiny-collector-metrics-linux-amd64 
 +  chmod +x scrutiny-collector-metrics-linux-amd64 
 +  mv scrutiny-collector-metrics-linux-amd64 /usr/local/bin/scrutiny-collector 
 + 
 +Ausführen 
 +  /usr/local/bin/scrutiny-collector run --api-endpoint "http://192.168.2.252:8080" 
 + 
 +Eintrag in crontab 
 +  55 5    * * *   root    /usr/local/bin/scrutiny-collector run --api-endpoint "http://192.168.x.xxx:8080" 
 + 
 +Dokumentation config-Datei: https://github.com/AnalogJ/scrutiny/blob/master/example.collector.yaml
  
 +Den Collector gibt's auch für Windows: https://github.com/AnalogJ/scrutiny/releases
  • computer/debian/hermes_v3.1700837160.txt.gz
  • Last modified: 2023/11/24 14:46
  • by spring