目 录CONTENT

文章目录

还在手动操作Linux?脚本轻松搞定(超全)!

焱
2025-01-15 / 0 评论 / 0 点赞 / 7 阅读 / 0 字
温馨提示:
本文最后更新于2025-01-15,若内容或图片失效,请留言反馈。 部分素材来自网络,若有影响到您的利益,请联系我们删除。

系统设置

常用镜像源

镜像站地址
官方给出的地址列表:https://www.debian.org/mirror/list

一些国内的
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 'https://mirrors.aliyun.com/debian/'

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

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

设置 SWAP &综合测试脚本

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

docker相关

国内docker安装

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

国外docker安装

wget -qO- get.docker.com | bash

docker-compose安装

curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

宝塔消除脚本

sed -i "s|bind_user == 'True'|bind_user == 'XXXX'|" /www/server/panel/BTPanel/static/js/index.js

运行完之后,记得清除浏览器的缓存查看,也可以直接换一个浏览器登陆。

综合工具箱

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

开机改密码脚本

#!/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

杜甫测试

wget -q https://github.com/Aniverse/A/raw/i/a && bash a

网络

甲骨文 DD 脚本

DD 成 Debian 10

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

DD 成 Ubuntu 20.04

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

MoeClub 脚本

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

检测能否访问GPT脚本

bash <(curl -Ls https://raw.githubusercontent.com/missuo/OpenAI-Checker/main/openai.sh)

CentOS 7 BBR

Linux Kernel 内核升级到 4.9 及以上版本可以实现 BBR 加速

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

一键开启 BBR

Linux Kernel 内核升级到 4.9 及以上版本可以实现 BBR 加速

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

测试相关

机器测试

单线程测试

bash <(curl -Lso- https://bench.im/hyperspeed)

superbench测试

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

Bench测试

wget -qO- bench.sh | bash

速度测试

全面测速脚本

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

测试延迟、抖动

bash <(wget -qO- https://bench.im/hyperspeed)

测试回程线路

curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
```bash
wget -q route.f2k.pub -O route && bash route

三网测速

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

四网测速

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

bash jcnf.sh

四网快速版本:

bash <(curl -Lso- https://dl.233.mba/d/sh/speedtest.sh)
```bash
bash <(curl -Lso- https://git.io/J1SEh)

测试 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

WARP

wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi.sh && ./multi.sh
0
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区