Please enable Javascript to view the contents

阿里云 / 腾讯云网络安装最新的Debian 10 Buster

 ·  ☕ 1 分钟  ·  ✍️ IceKam · 👀... 阅读

前言

由于国内环境及众所周知的原因,需要重装下干净的系统。

常规呢,是通过一些脚本,虽然方便但也不太可控。

经测试,本文在阿里云及腾讯云安装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网关信息。

总结

还是比较好的,这样系统就干净了很多。

分享
您的鼓励是我最大的动力
bitcoin QR Code

icekam
作者
IceKam
茶艺品鉴砖家,低端码字人口。