因为国外镜像源的速度问题,所以就选择与VPS最近的镜像源,以提高下载速度。

1、一键安装脚本

此一键安装脚本能够全自动安装/重装 Redhat/CentOS/Debian/Ubuntu 系统,默认root用户登录密码为:MoeClub.org,但请在安装完成后立即更改密码。全自动安装CentOS时默认提供VNC功能,可使用VNC Viewer查看进度,VNC端口为1或者5901,可自行尝试连接。(成功后VNC功能会消失)

注意事项:目前CentOS系统只支持任意版本重装为CentOS 6.x 及以下版本。此一键安装脚本不适用于OpenVZ构架。

(1)安装运行环境
#Debian/Ubuntu: apt-get update #运行升级命令
#Debian/Ubuntu: apt-get install -y xz-utils openssl gawk file #安装必需软件
#RedHat/CentOS: yum update #运行升级命令
#RedHat/CentOS: yum install -y xz openssl gawk file #安装必需软件
(2)下载一键安装脚本代码
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh
(3)一键安装脚本使用说明
bash InstallNET.sh -d/–debian [dist-name]
-u/–ubuntu [dist-name]
-c/–centos [dist-version]
-v/–ver [32/i386|64/amd64]
–ip-addr/–ip-gate/–ip-mask
-apt/-yum/–mirror
-dd/–image
-a/-m# dist-name: 发行版本代号
# dist-version: 发行版本号
# -apt/-yum/–mirror : 使用定义镜像
# -a/-m : 询问是否能进入VNC自行操作. -a 为不提示(一般用于全自动安装), -m 为提示.
(4)一键脚本安装系统示例

#使用默认镜像全自动安装命令
bash InstallNET.sh -d 8 -v 64 -a

#使用自定义镜像全自动安装命令
bash InstallNET.sh -c 6.10 -v 64 -a –mirror ‘http://mirror.centos.org/centos’

# 以下示例中,将X.X.X.X替换为自己的网络参数.
# –ip-addr :IP Address/IP地址
# –ip-gate :Gateway /网关
# –ip-mask :Netmask /子网掩码

#使用自定义镜像全自动安装
bash InstallNET.sh -u 9 -v 64 -a –mirror ‘http://mirrors.ustc.edu.cn/debian/’

#使用自定义镜像自定义网络参数全自动安装
bash InstallNET.sh -u 16.04 -v 64 -a –ip-addr x.x.x.x –ip-gate x.x.x.x –ip-mask x.x.x.x –mirror ‘http://archive.ubuntu.com/ubuntu’

#使用自定义网络参数全自动dd方式安装
bash InstallNET.sh –ip-addr x.x.x.x –ip-gate x.x.x.x –ip-mask x.x.x.x -dd ‘https://moeclub.org/onedrive/IMAGE/Windows/win7emb_x86.tar.gz’

#使用自定义网络参数全自动dd方式安装存储在谷歌网盘中的镜像(调用文件ID的方式)
bash InstallNET.sh –ip-addr x.x.x.x –ip-gate x.x.x.x –ip-mask x.x.x.x -dd “https://image.moeclub.org/GoogleDrive/1cqVl2wSGx92UTdhOxU9pW3wJgmvZMT_J”

#使用自定义网络参数全自动dd方式安装存储在谷歌网盘中的镜像
bash InstallNET.sh –ip-addr x.x.x.x –ip-gate x.x.x.x –ip-mask x.x.x.x -dd “https://image.moeclub.org/GoogleDrive/1cqVl2wSGx92UTdhOxU9pW3wJgmvZMT_J”

#国内推荐使用USTC源
–mirror ‘http://mirrors.ustc.edu.cn/debian/’

2、一键安装CentOS系统

(1)下载一键安装脚本

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh

(2)一键全自动安装 CentOS 6.10 64位 系统

bash InstallNET.sh -c 6.10 -v 64 -a --mirror 'http://mirror.centos.org/centos'

(3)一键全自动安装 CentOS 7 64位 系统(非 InstallNET.sh 一键安装脚本)

wget --no-check-certificate -qO AutoDD.sh 'http://git.io/autodd.sh' && bash AutoDD.sh

3、一键安装Debian系统

(1)下载一键安装脚本

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh

(2)一键全自动安装 Debian 8 64位 系统

bash InstallNET.sh -d 8 -v 64 -a --mirror 'http://mirrors.ustc.edu.cn/debian/'

(3)一键全自动安装 Debian 9 64位 系统

bash InstallNET.sh -d 9 -v 64 -a --mirror 'http://mirrors.ustc.edu.cn/debian/'

4、一键安装Ubuntu系统

(1)下载一键安装脚本

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh

(2)一键全自动安装 Ubuntu 16.10 64位 系统

bash InstallNET.sh -d 16.10 -v 64 -a --mirror 'http://archive.ubuntu.com/ubuntu/'

(3)一键全自动安装 Ubuntu 18.10 64位 系统

bash InstallNET.sh -u 18.10 -v 64 -a --mirror 'http://archive.ubuntu.com/ubuntu/'

其实,这些所谓的纯净系统也只是别人的镜像源,可信与否,还取决于系统镜像源是否可靠。