主页 > 建站 > vps一键dd脚本

vps一键dd脚本

2022年1月25日 vps一键dd脚本无评论 阅读: 12,802 次

一、Vicer一键DD

其所需环境为:

架构:KVM/XEN,不支持OpenVZ。

系统:Debian/Ubuntu/CentOS

注意事项:

  1. Vicer脚本目前不支持重装为CentOS 7系统,支持CentOS 6.9以下版本。
  2. 重装的系统源自官方发行版。
  3. 安装过程全自动进行,无需VNC操作,无需进入救援模式。
  4. 系统安装完成后的默认用户名为root,默认密码为:MoeClub.org

先安装所需软件

#Debian/Ubuntu:

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


#RedHat/CentOS:

yum install -y xz openssl gawk file

下载脚本:

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh'


使用:

Usage:

• bash InstallNET.sh -d/--debian [dist-name]

• -u/--ubuntu [dist-name]

• -c/--centos [dist-version]

• -v/--ver [32/i386|64/amd64]

• -p

• --ip-addr/--ip-gate/--ip-mask

• -apt/-yum/--mirror

• -dd/--image

• -a/-m


# dist-name: 发行版本代号

# dist-version: 发行版本号

# -p: 自定义密码

# -apt/-yum/--mirror : 使用定义镜像

# -a/-m : 询问是否能进入VNC自行操作. -a 为不提示(一般用于全自动安装), -m 为提示.

 

举例:

安装debian 11 64位系统

bash InstallNET.sh -d 11

指定国内安装源,root密码设置为test123

bash InstallNET.sh -d 11 -v 64 -a --mirror 'https://mirrors.huaweicloud.com/debian/' -p test123

安装centos 6.9

bash InstallNET.sh -c 6.9 -v 64 -a

安装Ubuntu 18.04

bash InstallNET.sh -u 18.04 -v 64 -a

注意,在某些vps上,如果网络速度较慢,安装会失败,需修改InstallNET.sh脚本中的selectMirror函数:

把--timeout=3删除或将3数字改大,比如--timeout=30

二、25合一dd脚本

安装重装系统的前提组件:
Debian/Ubuntu:

apt-get install -y xz-utils openssl gawk file wget screen && screen -S os

RedHat/CentOS:

yum install -y xz openssl gawk file glibc-common wget screen && screen -S os

如果出现异常,请刷新Mirrors缓存或更换镜像源。
RedHat/CentOS:

yum makecache && yum update -y

Debian/Ubuntu:

apt update -y && apt dist-upgrade -y

使用:

wget --no-check-certificate -O AutoReinstall.sh https://git.io/betags && chmod a+x AutoReinstall.sh && bash AutoReinstall.sh

新版体验:

wget --no-check-certificate -O NewReinstall.sh https://git.io/newbetags && chmod a+x NewReinstall.sh && bash NewReinstall.sh

如为CN主机,可能出现报错或不能下载脚本的问题,可执行以下命令开始安装.

wget --no-check-certificate -O AutoReinstall.sh https://cdn.jsdelivr.net/gh/fcurrk/reinstall@master/AutoReinstall.sh && chmod a+x AutoReinstall.sh && bash AutoReinstall.sh

新版体验:

wget --no-check-certificate -O NewReinstall.sh https://cdn.jsdelivr.net/gh/fcurrk/reinstall@master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

25合一系统缺省密码:
1、CentOS 7.7 (已关闭防火墙及SELinux,默认密码Pwd@CentOS)
2、CentOS 7 (默认密码cxthhhhh.com)
3、CentOS 8 (默认密码cxthhhhh.com)
4、CentOS 6 (默认密码Minijer.com)
5、Debian 11 (默认密码Minijer.com)
6、Debian 10 (默认密码Minijer.com)
7、Debian 9 (默认密码Minijer.com)
8、Debian 8 (默认密码Minijer.com)
9、Ubuntu 20.04 (默认密码Minijer.com)
10、Ubuntu 18.04 (默认密码Minijer.com)
11、Ubuntu 16.04 (默认密码Minijer.com)
12、Windows Server 2019 (默认密码cxthhhhh.com)
13、Windows Server 2016 (默认密码cxthhhhh.com)
14、Windows Server 2012 (默认密码cxthhhhh.com)
15、Windows Server 2012 Lite (默认密码nat.ee)
16、Windows Server 2008 (默认密码cxthhhhh.com)
17、Windows Server 2008 Lite (默认密码nat.ee)
18、Windows Server 2003 (默认密码cxthhhhh.com)
19、Windows Server 2003 Lite (默认密码WinSrv2003x86-Chinese)
20、Windows 10 LTSC Lite (默认密码www.nat.ee)
21、Windows 7 x86 Lite (默认密码Windows7x86-Chinese)
22、Windows 7 Ent Lite (默认密码nat.ee)
23、Windows 7 Ent Lite (UEFI支持甲骨文)(默认密码nat.ee)
24、Windows Server 2008 Lite (UEFI支持甲骨文)(默认密码nat.ee)
25、Windows Server 2012 Lite (UEFI支持甲骨文)(默认密码nat.ee)
99、自定义镜像

注意:此脚本引用了上面的DD脚本,如果在网络较慢的VPS上安装失败,需要修改脚本

需要下载修改后的InstallNET.sh脚本,比如https://iytc.net/InstallNET.sh

发表评论

新用户的评论需审核后才会显示;

电子邮件地址不会被公开;
必填项已用*标注