一键DD ubuntu & debian
# 安装 Ubuntu 24.04 Minimal curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh bash reinstall.sh ubuntu 24.04 --minimal
# 安装 Debian 12 (Bookworm) 纯净云镜像 bash reinstall.sh debian 12 --ci
一键更新&设置自动安全更新/BBR
bash -c "$(cat <<'EOF' #!/bin/bash # 确保在任何命令失败时立即停止脚本 set -e # --- 1. 更新系统 --- echo ">>> [1/4] Updating package lists and upgrading system..." apt-get update apt-get upgrade -y # --- 2. 安装所有必需的软件包 --- echo ">>> [2/4] Installing essential packages (sudo, ufw, git, etc.)..." apt-get install -y sudo unattended-upgrades screen curl wget ufw git unzip tar # --- 3. 配置自动安全更新 --- echo ">>> [3/4] Configuring automatic security updates..." # 使用 -plow 参数进行非交互式配置,自动选择默认选项 dpkg-reconfigure -plow unattended-upgrades # --- 4. 启用 BBR --- echo ">>> [4/4] Enabling BBR congestion control..." # 检查以避免重复添加 grep -qxF 'net.core.default_qdisc=fq' /etc/sysctl.conf || echo 'net.core.default_qdisc=fq' >> /etc/sysctl.conf grep -qxF 'net.ipv4.tcp_congestion_control=bbr' /etc/sysctl.conf || echo 'net.ipv4.tcp_congestion_control=bbr' >> /etc/sysctl.conf # 应用内核设置 sysctl -p echo "-----------------------------------------------------" echo "✅ All tasks completed successfully!" echo "System is updated, secured, and BBR is enabled." echo "-----------------------------------------------------" EOF )"