logo NodeSeekbeta

linux常用脚本分享,欢迎大家补充

抛砖引玉,欢迎补充

最常用的跑分脚本Yabs

curl -L yabs.sh | bash

dd重装系统

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/InstallNET.sh && chmod +x InstallNET.sh && ./InstallNET.sh -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"

ovz转化为alpine

curl -L https://gist.githubusercontent.com/trimsj/c1fefd650b5f49ceb8f3efc1b6a1404d/raw/8c2439d5d583dd40d5af3e570949b9f0974357ba/alpine.sh | bash

openssl生成自签名证书

通过openssl生成私钥
openssl genrsa -out server.key 2048
# 根据私钥生成证书申请文件csr
openssl req -new -key server.key -out server.csr
# 使用私钥对证书申请进行签名从而生成证书
openssl x509 -req -in server.csr -out server.crt -signkey server.key -days 3650
12345
  • linux换源:
    bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
    开BBR:
    wget --no-check-certificate -O tcp.sh https://raw.githubusercontent.com/Mufeiss/Linux-NetSpeed/master/tcp.sh && chmod +x tcp.sh && ./tcp.sh
    流媒体检测:
    bash <(curl -L -s check.unlock.media)

  • @hostlocmjj #3

    看了下,有几个确实听常用的,我搬运过来

    一键安装wrap

     wget -N https://raw.githubusercontent.com/fscarmen/warp/main/warp-go.sh && bash warp-go.sh [option] [lisence]
    

    linux实际可用内存检测

    centos

    yum install wget -y
    yum groupinstall "Development Tools" -y
    wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
    gcc -l stdc++ memtester.cpp
    ./a.out
    

    Ubuntu / Debian

    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
    

    mtr测试

    curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
    
    wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
    bash testrace.sh
    
    wget -qO- git.io/besttrace | bash
    

    流媒体解锁测试

    bash <(curl -L -s check.unlock.media)
    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")
    

    搬运自https://archives.vip/6.html
    https://blog.laoda.de/archives/useful-script
    https://www.wrnxr.cn/163.html

  • https://archives.vip/6.html

  • 网络重装 Debian 11 https://github.com/bohanyang/debi

    下载脚本:

    curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh
    

    运行脚本:

    sudo ./debi.sh --cdn --network-console --ethx --bbr --user root --password <新系统用户密码>
    
    • --bbr 开启 BBR
    • --ethx 网卡名称使用传统形式,如 eth0 而不是 ens3
    • --cloud-kernel 安装占用空间较小的 cloud 内核,但可能会导致 UEFI 启动的机器(如 Oracle、Azure 及 Hyper-V、Google Cloud 等)VNC 黑屏。BIOS 启动的普通 VPS 则没有此问题。
    • 默认时区为 UTC,添加 --timezone Asia/Shanghai 可使用中国时区。
    • 默认使用 Debian 官方 CDN 镜像源(deb.debian.org),添加 --china 可使用阿里云镜像源。

    如果没有报错可以重启:

    sudo shutdown -r now
    
  • 顺便问下,现在测流媒体解锁比较靠谱的脚本是什么

  • @NAS #5
    可以搬运,请保留源地址

  • @hostlocmjj #6 好的,都加上了,感谢推荐,整理的比较系统

  • @NAS #4
    我博客最后也保留了两个地址,把那俩也弄过来吧

  • @hostlocmjj #8
    好的,原来是大佬的博客啊,失敬失敬

12345

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有62366位seeker

🎉欢迎新用户🎉