Skip to content

wwwxxx0402/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

学会使用查找功能!Ctrl+F

DD网络重装脚本:系统默认为debian12

moeclub大佬的脚本

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 12 -v 64 -p 密码 -port 端口 -a -firmware

leitbogioro大佬的脚本(推荐)

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd '密码'

beta.gs大佬的脚本

wget --no-check-certificate -O NewReinstall.sh https://raw.githubusercontent.com/fcurrk/reinstall/master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

服务器综合测试脚本(融合怪)(推荐)GitHub开源地址

 curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

性能测试脚本

YABS(推荐)GitHub开源地址

wget -qO- yabs.sh | bash

流量稀缺的服务器(不测试iperf网络)

curl -sL yabs.sh | bash -s -- -i

我更喜欢geekbench5(不测试geekbench6)

curl -sL yabs.sh | bash -s -- -5

我喜欢geekbench5,但服务器流量稀缺(不测试geekbench6、不测试iperf网络)

curl -sL yabs.sh | bash -s -- -5 -i

Geekbench 5 专测脚本 GitHub开源地址 论坛大佬@Google 开发

bash <(curl -sL gb5.top)

LemonBench GitHub开源地址

wget -qO- https://raw.githubusercontent.com/LemonBench/LemonBench/main/LemonBench.sh | bash -s -- --fast

UnixBench.sh

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh

网络测试脚本

hyperspeed 三网测速(推荐)(未开源)

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

AutoTrace 三网回程线路显示(推荐)

wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh

backtrace 三网回程线路直接显示(小白用这个)

curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh

Bench 网络带宽及硬盘读写速率(国外部分+国内部分节点)

wget -qO- bench.sh | bash

SuperBench.sh 网络带宽及硬盘读写速率(国内三网+speedtest+fast)

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

网络 专测 论坛大佬@Google开发

bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh)

使用http下载文件

dd if=/dev/zero bs=1M count=2048 of=tt && python3 -m http.server 8000

iperf3本地测试

apt install iperf3

服务端

iperf3 -s -p 8000

客户端

iperf3 -c xxx.xx.xx.xx -p 8000

超售测试脚本

一键检测超售 LOC帖

wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh && chmod +x memoryCheck.sh && bash memoryCheck.sh

移除virtio_balloon模块

rmmod virtio_balloon

内存填充测试

apt-get update
apt-get install wget build-essential -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

流媒体测试脚本

RegionRestrictionCheck(推荐)

bash <(curl -L -s check.unlock.media)

流媒体解锁改(加入了原生/DNS解锁检测)

bash <(curl -L -s media.ispvps.com)

openai解锁检测

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

BBR脚本

一键开启BBR(适用于较新的Debian、Ubuntu)

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

Linux-NetSpeed(锐速/bbrplus/bbr魔改版)

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

ylx大佬的锐速/BBRPLUS/BBR2

wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

TCP窗口调优

wget http://sh.nekoneko.cloud/tools.sh && chmod +x tools.sh && ./tools.sh

moerats大佬的添加swap脚本

wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh

spiritlhl大佬的zram内存压缩脚本

curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh

cloudflare warp脚本 添加IPv4/IPv6网络

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh

fail2ban服务器ssh防爆破

wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh && bash fail2ban.sh 2>&1 | tee fail2ban.log

独立服务器硬盘时间

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

常用软件脚本

Docker

curl -sSL https://get.docker.com/ | sh

Nezha探针 官网

curl -L https://gitee.com/naibahq/nezha/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

Alist V3一键安装 官网

curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install

Aria2一键安装脚本

wget -N git.io/aria2.sh && chmod +x aria2.sh && bash aria2.sh

XUI

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

3X-UI

---
version: "3"

services:
  3x-ui:
    image: ghcr.io/mhsanaei/3x-ui:latest
    container_name: 3x-ui
    hostname: yourhostname
    volumes:
      - $PWD/db/:/etc/x-ui/
      - $PWD/cert/:/root/cert/
    environment:
      XRAY_VMESS_AEAD_FORCED: "false"
    tty: true
    network_mode: host
    restart: unless-stopped
http://ip:2053
admin
admin

Xray

bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install

Hysteria2

bash <(curl -fsSL https://get.hy2.sh/)
systemctl enable hysteria-server
openssl req -x509 -nodes -newkey ec:<(openssl ecparam -name prime256v1) -keyout /etc/hysteria/server.key -out /etc/hysteria/server.crt -subj "/CN=bing.com" -days 36500 && chown hysteria /etc/hysteria/server.key && chown hysteria /etc/hysteria/server.crt
nano /etc/hysteria/config.yaml
# auth段使用脚本生成的密码,其余部分删掉
listen: :19999
tls:
  cert: /etc/hysteria/server.crt
  key: /etc/hysteria/server.key
quic:
  initStreamReceiveWindow: 16777216
  maxStreamReceiveWindow: 16777216
  initConnReceiveWindow: 33554432
  maxConnReceiveWindow: 33554432
masquerade:
  type: proxy
  proxy:
    url: https://bing.com
    rewriteHost: true
systemctl start hysteria-server

端口跳跃

apt install iptables-persistent
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 20000:40000 -j DNAT --to-destination :19999
ip6tables -t nat -A PREROUTING -i eth0 -p udp --dport 20000:40000 -j DNAT --to-destination :19999
netfilter-persistent save

相关命令

#一键安装Hysteria2
bash <(curl -fsSL https://get.hy2.sh/)

#生成自签证书
openssl req -x509 -nodes -newkey ec:<(openssl ecparam -name prime256v1) -keyout /etc/hysteria/server.key -out /etc/hysteria/server.crt -subj "/CN=bing.com" -days 36500 && sudo chown hysteria /etc/hysteria/server.key && sudo chown hysteria /etc/hysteria/server.crt

#启动Hysteria2
systemctl start hysteria-server.service
#重启Hysteria2
systemctl restart hysteria-server.service
#查看Hysteria2状态
systemctl status hysteria-server.service
#停止Hysteria2
systemctl stop hysteria-server.service
#设置开机自启
systemctl enable hysteria-server.service
#查看日志
journalctl -u hysteria-server.service

qbittorrent 4.3.9

安装教程

其他

VPS剩余价值计算器 @nanyi

全国 34 省份 TCPING v4 IP

北上广四网TCPing可用地址

宝塔一键挂载硬盘脚本

wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

acme生成免费证书

curl https://get.acme.sh | sh

剑皇刷流量脚本

wget https://cdn.jsdelivr.net/gh/maintell/webBenchmark@releases/download/0.6/webBenchmark_linux_x64
chmod +x webBenchmark_linux_x64
./webBenchmark_linux_x64 -c 64 -s http://链接.jpg

测试 25 端口是否开放

telnet smtp.aol.com 25

测试 IPv4 优先还是 IPv6 优先

curl ip.p3terx.com
curl ip.sb

一键删除平台监控(阿里云、腾讯云、华为云、UCLOUD、甲骨文云、京东云)

curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/install_scripts/dlm.sh -o dlm.sh && chmod +x dlm.sh && bash dlm.sh

About

vps常用脚本归档(不定时更新)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published