Debian重装纯净原生系统一键脚本

Debian重装纯净原生系统一键脚本

Debian重装纯净原生系统一键脚本
背景:
适用于由GRUB引导的CentOS,Ubuntu,Debian系统.
使用官方发行版去掉模板预装的软件.
同时也可以解决内核版本与软件不兼容的问题。
只要有root权限,还您一个纯净的系统。

注意:
全自动安装默认root密码:Vicer,安装完成后请立即更改密码.
请使用 passwd root 命令更改密码.
特别注意:OpenVZ构架不适用.

需要:
1.Debian/Ubuntu/CentOS 系统(由GRUB引导);
2.wget 用来下载文件,获取公网IP;
3.ip 获取网关,掩码等;
4.sed awk grep 处理文本流;
5.VNC 安装系统(此项为可选)。

确保安装了所需软件:

#Debian/Ubuntu:
apt-get install -y gawk sed grep
#RedHat/CentOS:
yum install -y gawk sed grep

如果出现了错误,请运行:

#Debian/Ubuntu:
apt-get update
#RedHat/CentOS:
yum update

注意:在安装Ubuntu时,可能会遇到
Getting the time form a network time server...
界面进度条很长时间不会动,可以等待它超时或者更换别的版本.
该问题是Ubuntu系统的问题.

安装脚本:


全自动安装默认 root 密码: Vicer,安装完成后请立即更改密码。

Debian 7 x32

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d 7 -v 32 -a

Debian 7 x64

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d 7 -v 64 -a

Debian 8 x32

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d 8 -v 32 -a

Debian 8 x64

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d 8 -v 64 -a

Debian 9 x32

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d 9 -v 32 -a

Debian 9 x64

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d 9 -v 64 -a

Ubuntu 14.04 x32

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d trusty -v 32 -a

Ubuntu 14.04 x64

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d trusty -v 64 -a

Ubuntu 16.04 x32

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d xenial -v 32 -a

Ubuntu 16.04 x64

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d xenial -v 64 -a

Ubuntu 17.04 x32

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d zesty -v 32 -a

Ubuntu 17.04 x64

wget --no-check-certificate -qO DebianNET.sh 'https://moeclub.org/attachment/LinuxShell/DebianNET.sh' && chmod -x DebianNET.sh && bash DebianNET.sh -d zesty -v 64 -a

CentOS 6+ X64

wget xiaofd.github.io/centos.sh && bash centos.sh 

安装时间(Vultr 2.5刀机器 重装大概15分钟) root用户密码为 xiaofd.win

注意:此教程转载自 萌咖大佬博客

本文链接:

https://itren.org/153.html
1 + 4 =
快来做第一个评论的人吧~