常用 VPS 脚本

个人收集的各种脚本集合:

一键安装 pip2:

1
wget -qO- http://98.tn/脚本/get-pip.py | python

一键安装 python3 & pip3 并替换为系统默认

1
wget -N --no-check-certificate http://98.tn/脚本/python3install.sh && chmod +x python3install.sh && ./python3install.sh

VPS 一键测试

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

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

VPS 一键测速

1
wget -qO- https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python

一键安装 锐速/BBR

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

一键 dd Win7 32 位 (端口 22 administrator 密码admin.com)

1
wget -qO InstallNET.sh 'http://98.tn/脚本/dd.sh' && bash InstallNET.sh -dd 'http://98.tn/dd/win732.vhd.gz' -rdp 22

静态安装 FFMPEG:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# 官网 https://www.johnvansickle.com/ffmpeg/

# x86 下载二进制文件
wget http://file.zhaojun.im/脚本/ffmpeg-git-32bit-static.tar.xz
# x86_64 下载二进制文件
wget http://file.zhaojun.im/脚本/ffmpeg-git-64bit-static.tar.xz

# 解压文件
tar xvf ffmpeg-git-*-static.tar.xz && rm -rf ffmpeg-git-*-static.tar.xz

# 将 ffmpeg 和 ffprobe 可执行文件移至 /usr/bin 方便系统直接调用
mv ffmpeg-git-*/ffmpeg ffmpeg-git-*/ffprobe /usr/bin/

# 查看版本
ffmpeg
ffprobe