Shell常用脚本综合工具箱(集成了很多脚本,强烈推荐)

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

 

MoeClub脚本

重点推荐:

时间:2021 /11/22 15:21 萌咖更新脚本:

1.新增对 Oracle AMD,Oracle ARM全面支持. 可支持从 Ubuntu, Oracle Linux 等系统网络重装.

2.更新 dd 镜像的基础系统版本.

3.移除对外部 wget 的依赖.

4.新增 -port 参数, 可更改默认SSH端口.

5.更新 内置的网络参数计算 逻辑.

6.更新 grub 配置文件定位逻辑, 可支持任意引导grub的系统.

以下系统已通过测试(其他自测):

Debian:9、10、11;

Ubuntu:18.04、20.04;

中央操作系统:6.10;

以下平台已通过测试(其他自测):

甲骨文、Do、Azure

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"

 

-d 10 -v 64
-d 9 -v 64
-u 20.04 -v 64
-u 18.04 -v 64

 

更改开机密码

#!/bin/bash
echo root:Vicer |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot

 

机器测试

最全测速脚本

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast

 

 

superbench

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

 

Bench.sh

wget -qO- bench.sh | bash

 

速度测试

直接显示回程线路

curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
wget -q route.f2k.pub -O route && bash route
# 第一个
wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh

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

 

四网测速

wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh

bash jcnf.sh

 

三网测试

bash <(curl -Lso- https://git.io/superspeed_uxh)

 

测试25端口是否开放

telnet smtp.aol.com 25

 

测试IPv4优先还是IPv6优先

curl ip.p3terx.com

 

流媒体测试

全媒体测试

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

 

奈飞测试

wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf
#第一个
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")

 

BBR加速开启

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

 

Docker相关

更新、安装必备软件

apt-get update && apt-get install -y wget vim

 

卸载Docker

sudo apt-get purge docker-ce docker-ce-cli containerd.io
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd

 

查看版本

docker-compose --version

 

防火墙

CentOS关闭防火墙

systemctl start supervisord
systemctl disable firewalld
systemctl stop firewalld

 

持续更新…