linux常用脚本分享 dd重装系统 生成自签名证书 流媒体解锁 网飞奈飞

最常用的跑分脚本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
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) 看了下,有几个确实听常用的,我搬运过来 一键安装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") docker 一键安装 curl -sSL https://get.docker.com/ | sh 三网测试 bash <(curl -Lso- https://git.io/superspeed_uxh) bash <(curl -Lso- https://git.io/J1SEh) wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh bash jcnf.sh