前提:
Virtualization Platform(虚拟化平台)
- SolusVM/OpenStack/DigitalOcean/Vultr/Linode/Proxmox/QEMU KVM (BIOS boot)
- Oracle Cloud Infrastructure (UEFI boot)
- Google Cloud Compute Engine (Must manually configure the VPC internal IP and the gateway. UEFI boot with Secure Boot support)
- AWS EC2 & Lightsail (BIOS boot)
- Hyper-V & Azure (Generation 1 BIOS boot & Generation 2 UEFI boot)
Original OS(原始系统)
- Debian 8 or later
- Ubuntu 14.04 or later
- RHEL/CentOS/Alma/Rocky/Oracle Linux 7 or later
开始:
下载脚本:
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh
运行脚本:
sudo ./debi.sh --cdn --network-console --ethx --bbr --user root --password newpassword123456789xxx
–bbr 开启 BBR
–ethx 网卡名称使用传统形式,如 eth0 而不是 ens3
–cloud-kernel 安装占用空间较小的 cloud 内核,但可能会导致 UEFI 启动的机器(如 Oracle、Azure 及 Hyper-V、Google Cloud 等)VNC 黑屏。BIOS 启动的普通 VPS 则没有此问题。
默认时区为 UTC,添加 –timezone Asia/Shanghai 可使用中国时区。
默认使用 Debian 官方 CDN 镜像源(deb.debian.org),添加 –ustc 可使用中科大镜像源。
如果没有报错可以重启:
sudo shutdown -r now
约 30 秒后可以尝试 SSH 登录 installer 用户,密码与设置的相同。如果成功连接,可以按 Ctrl-A 然后再按 4 监控安装日志。安装完成后会自动重启进入新系统。
原作者github地址:https://github.com/bohanyang/debi