Ein Befehl, als root
# At a terminal: it shows the terms of use and takes a yes, then
# asks for your key, then three short questions, and Enter takes the
# safe answer every time.
curl -fsSL https://reportedip.com/agent/install.sh | sh
# For automation, and for fifty hosts: nothing is asked, the terms
# are accepted up front.
curl -fsSL https://reportedip.com/agent/install.sh | REPORTEDIP_ACCEPT_TERMS=1 REPORTEDIP_KEY="YOUR_API_KEY" sh
Das Erste, was das Skript zeigt, sind die Nutzungsbedingungen, und es braucht ein yes, bevor es irgendetwas lädt. Es prüft, dass es als root läuft, dass die Plattform Linux ist, dass die Architektur amd64 oder arm64 heißt und dass ein Prüfsummenwerkzeug vorhanden ist. Dann lädt es mit Ihrem Schlüssel den Build für Ihre Architektur, prüft ihn gegen SHA256SUMS und installiert ihn nach /usr/local/bin. Von dort ermittelt die Einrichtung, welche Dienste laufen, welche Ports lauschen und wo diese Distribution ihre Logs ablegt, und schreibt die Konfiguration selbst. Nehmen Sie die zweite Form immer dann, wenn ein Skript das hier ausführt, denn sie fragt nichts und braucht kein Terminal.