侧边栏壁纸
博主头像
奇遇网

上善若水,无为处世

  • 累计撰写 38 篇文章
  • 累计创建 74 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

一键DD纯净系统

Leo
Leo
2024-10-25 / 0 评论 / 0 点赞 / 795 阅读 / 0 字

1、脚本一

升级前必要准备

Debian series(Debian / Ubuntu / Kali):

apt update -y
apt install wget -y

RedHat 7+, grub2(CentOS / AlmaLinux / CloudLinux / RockyLinux / OracleLinux / Fedora / VzLinux / ScientificOS / RedHat Enterprise Linux / Tencent OpenCloudOS / AWS AmazonLinux / AlibabaCloudLinux or AliyunLinux / OpenAnolis)

yum install wget -y

or (for Redhat 8+):

dnf install wget -y

Alpine Linux:

apk update
apk add bash wget
sed -i 's/root:\/bin\/ash/root:\/bin\/bash/g' /etc/passwd

下载系统

国外机器下载地址

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

国内机器下载地址

wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

快速安装系统

Debian12

bash InstallNET.sh -debian

Centos9

bash InstallNET.sh -centos

Ubuntu 22.04

bash InstallNET.sh -ubuntu

Windows 11 Pro

bash InstallNET.sh -windows

系统用户名

Linux

root

Windows

Administrator

系统密码

Linux

LeitboGi0ro

Windows

Teddysun.com

Linux系统DD完成后必要设置

升级系统

apt update -y

安装必要命令(Debian为例)

apt install wget curl sudo vim git unzip -y

2、脚本二

脚本地址

https://github.com/bin456789/reinstall

下载系统

Linux

国外机器下载

curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O ${_##*/} $_

国内机器下载

curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget -O ${_##*/} $_

Windows

请先关闭 Windows Defender实时保护 功能。该功能会阻止 certutil 下载任何文件。

国外机器下载

certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.bat

国内机器下载

certutil -urlcache -f -split https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.bat

安装系统

所有功能 都可在 Linux / Windows 下运行

  • Linux 下运行 bash reinstall.sh ...

  • Windows 下先运行 cmd,再运行 reinstall.bat ...

    • 如果参数中的链接包含特殊字符,要用 "" 将链接包裹起来,不能用 ''

安装系统对应名称及要求

博主关闭了所有页面的评论