使用reinstall脚本DD系统
https://github.com/bin456789/reinstall
国外服务器:
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_国内服务器:
curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget -O reinstall.sh $_安装Linux:
bash reinstall.sh anolis 7|8|23
rocky 8|9|10
oracle 8|9
almalinux 8|9|10
opencloudos 8|9|23
centos 9|10
fedora 41|42
nixos 25.05
debian 9|10|11|12|13
opensuse 15.6|tumbleweed
alpine 3.19|3.20|3.21|3.22
openeuler 20.03|22.03|24.03|25.03
ubuntu 16.04|18.04|20.04|22.04|24.04|25.04 [--minimal]
kali
arch
gentoo
aosc
fnos
redhat --img="http://access.cdn.redhat.com/xxx.qcow2"可选参数
--password PASSWORD 设置密码
--ssh-key KEY 设置 SSH 登录公钥,支持以下格式。当使用公钥时,密码为空
--ssh-key "ssh-rsa ..."
--ssh-key "ssh-ed25519 ..."
--ssh-key "ecdsa-sha2-nistp256/384/521 ..."
--ssh-key http://path/to/public_key
--ssh-key github:your_username
--ssh-key gitlab:your_username
--ssh-key /path/to/public_key
--ssh-key C:\path\to\public_key
--ssh-port PORT 修改 SSH 端口(安装期间观察日志用,也作用于新系统)
--web-port PORT 修改 Web 端口(安装期间观察日志用)
--frpc-toml /path/to/frpc.toml 添加 frpc 内网穿透
--hold 2 安装结束后不重启,此时可以 SSH 登录修改系统内容,系统挂载在 /os (此功能不支持 Debian/Kali)