適用 Linux 伺服器:Debian / Ubuntu / Proxmox / Standard VPS
支援 密碼 + Duo / 公鑰 + Duo / Root Key + Duo,使用者密碼 + Duo
| 功能 | 支援 |
|---|
| [Unit] | |
| Description=Update scanner and malicious IP blocklists | |
| After=network-online.target | |
| Wants=network-online.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/local/sbin/block-scanners.sh input-only | |
| TimeoutStartSec=30min | |
| Nice=10 |
| sudo apt-get remove --purge -y grub-cloud-amd64 || true | |
| sudo dpkg --configure -a | |
| sudo apt-get install -f -y | |
| dpkg -l | grep grub-cloud-amd64 || true | |
| dpkg --audit || true | |
| apt update; apt upgrade -y | |
| apt -y autoremove --purge; | |
| update-grub; |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| export DEBIAN_FRONTEND=noninteractive | |
| DNSDIST_CHANNEL="${DNSDIST_CHANNEL:-21}" # default 21 https://repo.powerdns.com/ | |
| APT_DIR="/etc/apt" | |
| SOURCES_DIR="/etc/apt/sources.list.d" | |
| PREF_DIR="/etc/apt/preferences.d" | |
| KEYRING_DIR="/etc/apt/keyrings" |
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
The following packages have unmet dependencies:
dnsdist : Depends: libre2-9 (>= 20131024+dfsg) but it is not installable
E: Unable to correct problems, you have held broken packages.
E: The following information from --solver 3.0 may provide additional context:
Unable to satisfy dependencies. Reached two conflicting decisions:
1. dnsdist:amd64=2.1.0~alpha0+master.717.g1fe1273bc-1pdns.debian12 is selected for install
2. dnsdist:amd64=2.1.0~alpha0+master.717.g1fe1273bc-1pdns.debian12 Depends libre2-9 (>= 20131024+dfsg)
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| export DEBIAN_FRONTEND=noninteractive | |
| ############################################################################### | |
| # CrowdSec reinstall / install script for Debian 12/13/testing | |
| # | |
| # Features: | |
| # --dry-run |
| #!/bin/bash | |
| ssid=$(networksetup -getairportnetwork en0 | cut -d ":" -f 2 | sed "s/^[ \t]*//") | |
| sudo airport -z | |
| sudo ifconfig en0 ether $(openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.\$//") | |
| networksetup -setairportnetwork en0 "$ssid" |