Update vps.md

This commit is contained in:
starry
2025-07-20 18:50:15 +08:00
committed by GitHub
parent 1c09b0acd7
commit d8f3f6d25b

View File

@@ -1,77 +1,5 @@
## VPS一键DD 重装系统
# Tools版本
项目地址https://github.com/leitbogioro/Tools
#### 下载脚本文件
```
cd /root
```
```
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
```
### 运行
```
bash InstallNET.sh -debian 11
```
### 运行结尾传递参数
选择越新的系统越需要较高的配置
`-debian 7-12` Debian 7 及更高版本
`-kali Rolling/dev/experimental` Kali Rolling开发和实验推荐Kali Rolling
`-centos 7-9` CentOS 7 及更高版本
`-alpine 3.16-3.18/edge` Alpine Linux 3.16 及更高版本轻量级系统为了保持更新到最新版本推荐edge
`-almalinux/alma 8/9` AlmaLinux 8 及更高版本
`-ubuntu 20.04/22.04/24.04` 不稳定,可能失败
`-windows 10/11/2012/2016/2019/2022` 需4H4G以上且不支持回退
`-pwd "密码"` 指定密码
### 默认信息
默认用户名
对于 Linux`root`
对于 Windows`Administrator`
默认密码
对于 Linux`LeitboGi0ro`
对于 Windows`Teddysun.com`
默认端口
对于Linux`与之前的系统相同`
对于 Windows`3389`
---
# reinstall版本
项目地址https://github.com/bin456789/reinstall
@@ -153,3 +81,140 @@ bash reinstall.sh anolis 7|8|23
>
> 安装其它系统时可通过多种方式SSH、HTTP 80 端口、后台 VNC、串行控制台查看安装进度。
> <br />即使安装过程出错,也能通过 SSH 运行 `/trans.sh alpine` 安装到 Alpine。
---
# Tools版本
项目地址https://github.com/leitbogioro/Tools
#### 下载脚本文件
```
cd /root
```
```
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
```
### 运行
```
bash InstallNET.sh -debian 11
```
### 运行结尾传递参数
选择越新的系统越需要较高的配置
`-debian 7-12` Debian 7 及更高版本
`-kali Rolling/dev/experimental` Kali Rolling开发和实验推荐Kali Rolling
`-centos 7-9` CentOS 7 及更高版本
`-alpine 3.16-3.18/edge` Alpine Linux 3.16 及更高版本轻量级系统为了保持更新到最新版本推荐edge
`-almalinux/alma 8/9` AlmaLinux 8 及更高版本
`-ubuntu 20.04/22.04/24.04` 不稳定,可能失败
`-windows 10/11/2012/2016/2019/2022` 需4H4G以上且不支持回退
`-pwd "密码"` 指定密码
### 默认信息
默认用户名
对于 Linux`root`
对于 Windows`Administrator`
默认密码
对于 Linux`LeitboGi0ro`
对于 Windows`Teddysun.com`
默认端口
对于Linux`与之前的系统相同`
对于 Windows`3389`
---
## MoeClub版本
项目地址https://github.com/MoeClub/Note/blob/master/InstallNET.sh
#### 自定义密码:
```
wget -N https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh && chmod +x InstallNET.sh && sudo ./InstallNET.sh -d 11 -p "自定义密码"
```
#### 默认密码:
```
wget -N https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh && chmod +x InstallNET.sh && sudo ./InstallNET.sh -d 11
```
默认debian 11系统
登录信息
用户名:```root```
端口:```22```
root密码```MoeClub.org```
---
如果DD报错请手动安装所需环境尝试
```
Debian/Ubuntu 命令:
apt-get install -y xz-utils openssl gawk file
CentOS 命令:
yum install -y xz openssl gawk file
```
---
### 脚本结尾传递参数
| 参数 | 描述 | 示例 |
|-------------------|-----------------------------------------------------|---------------------------------|
| `-v` | 指定操作系统的架构版本(如 `32` 或 `64` | `-v 64` |
| `-d` | 安装Debian系统后接发行版名称如 `12` | `-d 12` |
| `-u` | 安装Ubuntu系统后接发行版名称如 `20.04` | `-u 20.04` |
| `-c` | 安装CentOS系统后接版本号如 `7` | `-c 7` |
| `-dd` | 使用指定的镜像URL进行安装 | `-dd http://example.com/image.iso` |
| `-p` | 设置root用户的密码 | `-p "密码"` |
| `-i` | 选择网络接口 | `-i eth0` |
| `--ip-addr` | 设置静态IP地址 | `--ip-addr 192.168.0.100` |
| `--ip-mask` | 设置网络掩码 | `--ip-mask 255.255.255.0` |
| `--ip-gate` | 设置默认网关 | `--ip-gate 192.168.0.1` |
| `--ip-dns` | 设置DNS服务器地址 | `--ip-dns 8.8.8.8` |
| `-apt` `--mirror` | 指定软件源镜像地址 | `--mirror “http://mirror.example.com”` |
| `-rdp` | 设置Windows远程桌面端口仅在使用Windows镜像时有效 | `-rdp 3389` |
| `-port` | 设置SSH端口 | `-port 22` |
| `--noipv6` | 禁用IPv6 | `--noipv6` |
| `-firmware` | 包含固件支持仅Debian有效 | `-firmware` |
| `-cmd` | 设置在安装后执行的命令或脚本 | `-cmd 'echo hello'` |
---