博主常用腳本


1-服務器DD腳本

腳本1

wget --no-check-certificate -O AutoReinstall.sh https://disk.wej.cc/AutoReinstall.sh && bash AutoReinstall.sh

默認密碼:

  • Pwd@CentOS
  • Pwd@Linux

測試可用:

  • 騰訊香港輕量
  • 騰訊國內輕量
  • ...

萌卡腳本

  • DD debian系統
  • 其中10代表debian系統版本,可修改為8 9
  • 64代表64位,可修為32,即32位,DD完成后
  • root密碼為:MoeClub.org
  • 請第一時間修改
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a -firmware

2-測試服務器網絡回程

wget -qO- git.io/besttrace | bash

這個可能不太准確

wget -q route.f2k.pub -O route && bash route

3-服務器bench測試腳本

wget -qO- bench.sh | bash
curl -Lso- bench.sh | bash

新增一個

wget -qO- sb.oldking.net | bash

wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh

4-Speedtest測速 Docker容器

docker pull badapple9/speedtest-x
docker run -d -p 9001:80 -it badapple9/speedtest-x
docker pull respectdd/speed
docker run -d -it -p 9001:80 --name cs respectdd/speed

注意:端口為9001,防火牆需放行


5-卸載寶塔

wget http://download.bt.cn/install/bt-uninstall.sh

6-Git設置和取消代理

http方式:

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

Socket5方式:

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

建議使用socket5
image.png

取消代理:

git config --global --unset http.proxy
git config --global --unset https.proxy

7-Ipv6服務器SSH連接

SSH鏈接
找一台有ipv6的服務器,連上上ssh,替換以下ipv6的地址進行連接

ssh root@2001:bc8:2e3d:500::1 -p 22

image.png

Ping測試

ping6 google.com

裝好以后,先更改DNS為DNS64

echo -e "nameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf

8-NetFlix檢測

wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.6/nf_2.6_linux_amd64 && chmod +x nf && clear && ./nf

作者github:https://github.com/sjlleo/netflix-verify/releases/

使用腳本前請確認curl已安裝

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

或者直接運行以下Docker命令

docker run --rm --net=host lmc999/regioncheck

9-一鍵安裝qBitTorrent

使用 docker 方便, 不是KVM才要自己編譯
一鍵腳本 ,選擇 7 自動安裝,而且支持 ARM64甲骨文這些

wget git.io/autopt.sh && bash autopt.sh


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM