SS的常用 shell 脚本备份

All scripts are for Debian/Ubuntu!

先占坑,想起来再更新。

Updated on 2021-6-7

init

apt update
DEBIAN_FRONTEND=noninteractive apt-get -qqq upgrade -y
DEBIAN_FRONTEND=noninteractive apt-get install -qqq vim zsh nload tmux git build-essential -y
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

cd $ZSH_CUSTOM/plugins
git clone https://gitclone.com/github.com/zsh-users/zsh-syntax-highlighting.git
echo "source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
source ~/.zshrc

sudo apt install curl
sh <(curl https://j.mp/spf13-vim3 -L)

 

某不知名网络工具

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian.sh
chmod +x shadowsocks-libev-debian.sh
./shadowsocks-libev-debian.sh 2>&1 | tee shadowsocks-libev-debian.log

wget --no-check-certificate -O /opt/bbr.sh https://github.com/teddysun/across/raw/master/bbr.sh
chmod 755 /opt/bbr.sh
/opt/bbr.sh

ohmyzsh

sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

安装 Node 16 LTS

# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install -g cnpm --registry=https://registry.npm.taobao.org
yarn config set registry https://registry.npm.taobao.org

Peek 动图录制工具

sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt install peek

Flameshot 截图工具

apt install flameshot

服务器跑分

wget https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
wget -qO- bench.sh | bash
快速测试:
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast

完整测试:
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full

涵盖系统信息收集、Speedtest网速测试、磁盘性能测试、路由追踪测试
bash <(curl -Lso- https://git.io/superspeed)

创建大文件

dd if=/dev/zero of=test bs=1M count=0 seek=100000

云盾卸载

wget -N --no-check-certificate https://raw.githubusercontent.com/123wbx321wbx/Uninstall-aliyun-service/master/UAS.sh && chmod 777 UAS.sh && ./UAS.sh

 

Node

curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

npm install -g cnpm --registry=https://registry.npm.taobao.org

 

Docker

curl -Lso- https://get.docker.com | bash

 

 

CC BY-NC-SA 4.0 本作品使用基于以下许可授权:Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注