
本文介绍如何用 InstallNET.sh 一键重装脚本,把一台 VPS(例如 Oracle Cloud 上内存较小的 Ubuntu)DD 成干净的 Debian 12 系统。以下以 Debian 12、韩国 KAIST 镜像为例。
准备工作
先在原系统(Debian / Kali / Ubuntu 均可)中安装 wget:
apt updateapt install wget -y下载脚本
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh运行 DD 脚本
运行 DD 脚本,示意:DD 为 debian 12 系统,SSH 密码设置为 xiaoge.org,SSH 端口改为 45622,使用 bbr+fq,从韩国镜像拉取:
bash InstallNET.sh -debian 12 -mirror "http://ftp.kaist.ac.kr/debian/" -pwd 'xiaoge.org' -port "45622" --bbr参数说明
脚本还支持 raid、bbr、硬盘格式等更多参数,完整用法见介绍文档:
bash InstallNET.sh -系统版本 -项目 "数值"完成后
完成后按提示运行 reboot 重启系统即可(首次启动会比较慢)。
该脚本已在 DMIT、搬瓦工、斯巴达、甲骨文、NC、RN 等 VPS 上成功完成 DD。
参考链接
项目地址:https://www.nodeseek.com/post-9383-1
https://github.com/leitbogioro/Tools
注意事项
示例中的 SSH 密码和端口请改成自己的;DD 会清空原系统,重装前请备份数据;首次启动较慢,耐心等待即可。