admin管理员组

文章数量:1532037

原系统建议使用Ubuntu18.04镜像,运行脚本后我选择Debian10安装

先打开VNC(不然后期可能无法进入系统)  ,后使用SSH进入 Root模式。

改腾讯云内网软件源(建议使用第二方法)

cat <<EOF > /etc/apt/sources.list
deb http://mirrors.tencentyun/debian/ buster main contrib non-free
deb http://mirrors.tencentyun/debian/ buster-updates main contrib non-free
deb http://mirrors.tencentyun/debian/ buster-backports main contrib non-free
deb http://mirrors.tencentyun/debian-security buster/updates main contrib non-free
deb-src http://mirrors.tencentyun/debian/ buster main contrib non-free
deb-src http://mirrors.tencentyun/debian/ buster-updates main contrib non-free
deb-src http://mirrors.tencentyun/debian/ buster-backports main contrib non-free
deb-src http://mirrors.tencentyun/debian-security buster/updates main contrib non-free
EOF
apt-get update

#第二方法  通过wget获取配置文件,改回腾讯云内网软件源
#若您使用腾讯云服务器,请将源的域名从 mirrors.cloud.tencent 改为 mirrors.tencentyun,
#使用内网流量不占用公网流量。
# 14.04
wget -O /etc/apt/sources.list  http://mirrors.cloud.tencent/repo/ubuntu14_sources.list
# 16.04
wget -O /etc/apt/sources.list http://mirrors.cloud.tencent/repo/ubuntu16_sources.list
#更新缓存
apt-get clean all
apt-get update
 

安装所需软件

apt-get update
apt-get install -y xz-utils openssl gawk file

下载执行脚本

wget https://cdn.jsdelivr/gh/hiCasper/Shell@master/AutoReinstall.sh && chmod +x AutoReinstall.sh && bash AutoReinstall.sh

执行完成后,SSH自动断开,在腾讯云管理面板里无法一件SSH登陆。

打开使用腾讯云VNC,一直按回车,需等待几分钟才能进入


账号:root
默认密码:Pwd@Linux

本文标签: 系统腾讯重装一键脚本