banner
xingli

xingli

猫娘爱好者

Linux常用優化腳本

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

性能測試腳本#

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)

超售測試腳本#

一鍵檢測超售 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

優化腳本#

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 [option] [lisence/url/token]

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

XUI#

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

Xray#

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

Aria2 一鍵安裝腳本#

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

qbittorrent 4.3.9#

安裝教程

其他#

VPS 剩餘價值計算器

寶塔一鍵掛載硬碟腳本#

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

騰訊雲刪除監控#

sudo -i
systemctl stop tat_agent
systemctl disable tat_agent
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -f /etc/systemd/system/tat_agent.service
rm -rf /usr/local/qcloud
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /usr/local/qcloud
process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
for i in ${process[@]}
do
  for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
  do
    kill -9 $A
  done
done

測試 25 端口是否開放#

telnet smtp.aol.com 25

測試 IPv4 優先還是 IPv6 優先#

curl ip.p3terx.com

其他#

我想 DD 成 Linux 系統的(推薦、首選)#

強烈建議使用 leitbogioro 大佬的
512M 記憶體以上的成功率高達 100%。且可以自動配置 ipv6

bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) -debian 10 -timezone "Asia/Shanghai" -swap "1024"

密碼 LeitboGi0ro

我想 DD 成 Linux 系統的,但是記憶體只有 256M#

實測只能用萌咖大佬的
注意⚠️該腳本不支持 ipv6,只能自動配置 ipv4⚠️

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a

密碼 MoeClub.org

我想 DD 成 Windows(推薦、首選)#

我推薦使用 leitbogioro 大佬的
前提:有 vnc,記憶體別太低。支持自動配置 v4v6

bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) -windows 2019  -lang "cn"

如果想 d 別的版本,直接改就行 -windows 10/11/2012/2016/2019/2022
密碼 Teddysun.com

我想 DD 成 Windows,但是沒有 VNC#

如果沒有 vnc,那你可以使用 5k 的腳本。
具體可以查看這位大佬寫的,非常詳細 https://blog.tanglu.me/dd

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。