免责声明:以下所有脚本均来自互联网,本站不对其任何方面负责

零、准备工作

脚本执行后,如果出现未安装wget的提示,请先安装wegt

# ubuntu/debian等安装wget
apt-get install wget -y

# centos等安装wget
yum install wget -y

一、网络重装脚本/DD脚本

1、Linux:萌咖脚本

Oracle、Virmach、RackNerd、Ruvds等大部分VPS通用一键DD脚本,支持ARM及AMD(三毛、甲骨文需要去掉 -firmware)

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware -p 自定义密码

使用方法(部分机器需要设置网卡,否则可以VNC,但是不能远程SSH)

-firmware                额外的驱动支持
-d                       Debian系统 后面是系统版本号
-c                       Centos系统 后面是系统版本号
-v                       后面写64位 32位
-a                       不清楚这个干啥的但是每个脚本都带
--mirror                 后面是镜像源地址
-p                       后面写自定义密码
–ip-addr                 ifconfig -a 后获取到的 例:194.87.xxx.xxx
–ip-gate                 route -n    后获取到的 例   194.87.xxx.xxx
–ip-mask                 255.255.xxx.xx

腾讯云需要卸载组件,否则会导致报错,DD失败

systemctl stop tat_agent
systemctl disable tat_agent
rm -rf /etc/systemd/system/tat_agent.service
rm -fr /usr/local/qcloud

ps -A | grep agent
# 检查看是否还有腾讯云组件
# kill 这个进程

国内VPS镜像源(华为源)

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a --mirror 'https://mirrors.huaweicloud.com/debian/' -p 自定义密码

一些国内的镜像站地址(官方给出的地址列表

  • ftp.cn.debian.org
  • mirror.bjtu.edu.cn
  • mirror.lzu.edu.cn
  • mirror.nju.edu.cn
  • mirrors.163.com
  • mirrors.bfsu.edu.cn
  • mirrors.hit.edu.cn
  • mirrors.huaweicloud.com
  • mirror.sjtu.edu.cn
  • mirrors.tuna.tsinghua.edu.cn
  • mirrors.ustc.edu.cn

使用方法

# 清华源
--mirror 'https://mirrors.ustc.edu.cn/debian/'

# 腾讯源
--mirror 'http://mirrors.tencent.com/debian/'
--mirror 'http://mirrors.cloud.tencent.com/debian/'

# 腾讯源内网(dd完毕后可以修改,走内网不费额外流量)
http://mirrors.tencentyun.com/

# 阿里源
--mirror 'https://mirrors.aliyun.com/debian/'

# 华为源
--mirror 'https://mirrors.huaweicloud.com/debian/'

2、Linux:41合1 DD脚本

来源:https://git.beta.gs/

使用脚本的前提组件

# 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缓存或更换镜像源

# Debian/Ubuntu:
apt update -y && apt dist-upgrade -y

# RedHat/CentOS:
yum makecache && yum update -y

使用DD脚本

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 NewReinstall.sh https://cdn.jsdelivr.net/gh/fcurrk/reinstall@master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

41合一系统密码

1、CentOS 7.7 (已关闭防火墙及SELinux,默认密码Pwd@CentOS)
2、CentOS 7 (默认密码cxthhhhh.com)
3、CentOS 7 (支持ARM64、UEFI,默认密码cxthhhhh.com)
4、CentOS 8 (默认密码cxthhhhh.com)
5、Rocky 8 (默认密码cxthhhhh.com)
6、Rocky 8 (支持UEFI,默认密码cxthhhhh.com)
7、Rocky 8 (支持ARM64、UEFI,默认密码cxthhhhh.com)
8、CentOS 9 (默认密码cxthhhhh.com)
9、CentOS 6 (官方源原版,默认密码Minijer.com)
10、Debian 11 (官方源原版,默认密码Minijer.com)
11、Debian 10 (官方源原版,默认密码Minijer.com)
12、Debian 9 (官方源原版,默认密码Minijer.com)
13、Debian 8 (官方源原版,默认密码Minijer.com)
14、Ubuntu 20.04 (官方源原版,默认密码Minijer.com)
15、Ubuntu 18.04 (官方源原版,默认密码Minijer.com)
16、Ubuntu 16.04 (官方源原版,默认密码Minijer.com)
17、Windows Server 2022 (默认密码cxthhhhh.com)
18、Windows Server 2022 (支持UEFI,默认密码cxthhhhh.com)
19、Windows Server 2019 (默认密码cxthhhhh.com)
20、Windows Server 2016 (默认密码cxthhhhh.com)
21、Windows Server 2012 (默认密码cxthhhhh.com)
22、Windows Server 2008 (默认密码cxthhhhh.com)
23、Windows Server 2003 (默认密码cxthhhhh.com)
24、Windows 10 LTSC (默认密码Teddysun.com)
25、Windows 10 LTSC (支持UEFI,默认密码Teddysun.com)
26、Windows 7 x86 Lite (默认密码nat.ee)
27、Windows 7 x86 Lite (阿里云专用,默认密码nat.ee)
28、Windows 7 x64 Lite (默认密码nat.ee)
29、Windows 7 x64 Lite (支持UEFI,默认密码nat.ee)
30、Windows 10 LTSC Lite (默认密码nat.ee)
31、Windows 10 LTSC Lite (阿里云专用,默认密码nat.ee)
32、Windows 10 LTSC Lite (支持UEFI,默认密码nat.ee)
33、Windows Server 2003 Lite (C盘默认10G,默认密码WinSrv2003x86-Chinese)
34、Windows Server 2008 Lite (默认密码nat.ee)
35、Windows Server 2008 Lite (支持UEFI,默认密码nat.ee)
36、Windows Server 2012 Lite (默认密码nat.ee)
37、Windows Server 2012 Lite (支持UEFI,默认密码nat.ee)
38、Windows Server 2016 Lite (默认密码nat.ee)
39、Windows Server 2016 Lite (支持UEFI,默认密码nat.ee)
40、Windows Server 2022 Lite (默认密码nat.ee)
41、Windows Server 2022 Lite (支持UEFI,默认密码nat.ee)
99、自定义镜像

注意:

  • 系统名称后带Lite的均为精简版,没有的是完整版.
  • [X64-Legacy-cxthhhhh]代表系统为AMD64位,支持传统BIOS启动,cxthhhhh定制的系统镜像
  • ARM64代表系统支持ARM64位
  • UEFI代表系统支持最新的UEFI启动,如甲骨文全部都是这种
  • aliyun代表阿里云专用系统镜像
  • cxthhhhh、teddysun、nat.ee均为三位制作系统镜像的大佬代称
  • 系统密码会在选择相应序号后提示,请注意记录
  • 经测试在谷歌云原版系统基础上DD会出现自动获取的子网掩码为255.255.255.255,如出现这种情况需要手工输入改正为正确的如255.255.255.0,否则会安装完成主机可能会离线
  • 阿里云因使用了特殊的驱动,DD安装Windows系统选择阿里云专用版。
  • Oracle Cloud(甲骨文云)可选择支持UEFI的镜像,注意基础系统最好选择Ubuntu,如原系统是CentOS可能无法成功,注意如是ARM机器注意选择同时支持ARM64和UEFI的镜像。
  • 9-16项安装原版系统,可自定义密码,密码要求8-16位,以英文字母或数字开头,可以是大小写英文字母、数字及7个特殊字符.!$@#&%的任意组合

3、Windows

该DD包作者为@nat.ee,感谢大佬的辛勤付出,原贴地址

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'http://d.nat.ee/win/lite/win7-ent-sp1-x64-cn/win7-ent-sp1-x64-cn.vhd.gz'

可在WebUI查看进度的一键DD脚本
该脚本作者为@flyqie,感谢大佬的辛勤付出,原贴地址

https://raw.githubusercontent.com/flyqie/dd-shell/master/Core_Install.sh

# 国内机可使用
https://ghproxy.com/https://raw.githubusercontent.com/flyqie/dd-shell/master/Core_Install.sh

二、宝塔面板&AApanel

1、安装

基于Debian

# 宝塔
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh

# aapanel
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh

2、破解宝塔面板&AApanel

aapanel就是宝塔的换皮,破解方法一样
宝塔去实名认证

rm -rf /www/server/panel/data/bind.pl

宝塔&aapanel破解
编辑 /www/server/panel/class/panelplugin.py
找到 softList['list'] = tmpList 这行代码
在下面添加以下代码,注意缩进

softList['pro'] = 1
for soft in softList['list']:
soft['endtime'] = 0

修改宝塔标识(企业版ltd、专业版pro)
编辑 /www/server/panel/data/plugin.json
搜索 "pro": 把后面的-1 改为0 即可
编辑完毕后保存重启面板即可

三、机器性能检测

# superbench
wget -qO- git.io/superbench.sh | bash

# 机器性能检测
bash <(wget -qO- git.io/ceshi)

# Bench.sh
wget -qO- bench.sh | bash

# yabs机器跑分(硬盘性能检测)
curl -sL yabs.sh | bash

# VPS跑分测试
http://tutu.ovh/zjzx/shell/unixbench.sh

# Superbench修改版(Basic system info, Geekbench, besttrace, I/O test, Media Unlock test, speedtest)
bash <(wget --no-check-certificate -O- https://dl.233.mba/sh/superbenchpro.sh)

# 老鬼SuperBench
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

# 秋水逸冰UnixBench.sh
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh

# LemonBench.sh(快速测试+完整测试)
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full

四、网络检测

1、三网测速

# 第一个
bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh)

# 第二个
bash <(curl -Lso- https://git.io/superspeed_uxh)

2、三网回程检测

# 第一个
curl http://tutu.ovh/bash/returnroute/test.sh|bash

# 第二个
wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh

# 第三个
wget -qO- git.io/3trace | bash

# 第四个
wget -qO- git.io/autobesttrace | bash

# 第五个
wget -qO- git.io/besttrace | bash

2、流媒体检测

# 第一个
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

# 第二个
bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")

# 第三个(和第一个一样)
bash <(curl -sSL "https://git.io/JswGm")

# 第四个
bash <(curl -L -s check.unlock.media)

四、一键开启BBR

适用于高版本的Debian、Ubuntu、CentOS

#1、开启系统自带BBR + fq :
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr

#2、一键 BBR 脚本,包括 BBR / BBR PLUS /魔改 BBR 等:
wget -N --no-check-certificate "https://raw.githubusercontent.com/ylx2016/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

#3、BBR 参数调优
wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh

五、Docker

一键安装Docker

#国外机
curl -sSL https://get.docker.com/ | sh
#国内机
curl -sSL https://get.daocloud.io/docker | sh

卸载Docker

sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/

安装Docker-compose

#国外机
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
#国内机
curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

六、一键脚本收录工具箱

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
最后修改:2024 年 02 月 20 日
如果觉得我的文章对你有用,请随意赞赏