前言
由于国内环境及众所周知的原因,需要重装下干净
的系统。
常规呢,是通过一些脚本,虽然方便但也不太可控。
经测试,本文在阿里云及腾讯云安装Debian 10 Buster
均成功。
其他厂商的也可以测试,只要有VNC
按道理都没问题。
准备
A.后台权限。
B.厂家支持VNC
。
C.能连网。
网络配置信息备份
1
2
3
4
5
|
ifconfig
and
ip addr
|
把ip
网关什么的备份下来待用。
下载最新的网络安装文件
1
2
3
|
mkdir /boot/newinstall && cd /boot/newinstall
wget https://mirror.tuna.tsinghua.edu.cn/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
wget https://mirror.tuna.tsinghua.edu.cn/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux
|
写入GRUB启动文件
1
2
3
4
5
6
7
8
9
|
cat >> /boot/grub/grub.cfg << EOF
menuentry 'Debian Stable New Install' {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
linux /boot/newinstall/linux
initrd /boot/newinstall/initrd.gz
}
EOF
|
安装最新的Debian 10 Buster
1:先登录云服务商的后台,切到VNC的连接页面。
2:在SSH
重启云服务器。
3:输入重启命令立即在后台连接VNC。
4:选择网络安装启动选项在线安装。
注意
腾讯云
需要手填IP网关信息。
总结
还是比较好的,这样系统就干净了很多。