前言
唔...还没想好说什么。
主要做自己的备忘录,持续更新中......
可以通过目录快速查找自己想用的脚本。
预留标题
DD脚本
经典Reinstall
##hub:
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_
##lab:
curl -O https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_
##运行
bash reinstall.sh
##示例
bash reinstall.sh anolis 7|8|23
opencloudos 8|9|23
rocky 8|9
redhat 8|9 --img='http://xxx.com/xxx.qcow2'
oracle 8|9
almalinux 8|9
centos 9|10
fedora 40|41
nixos 24.11
debian 9|10|11|12
opensuse 15.6|tumbleweed
alpine 3.18|3.19|3.20|3.21
openeuler 20.03|22.03|24.03|24.09
ubuntu 16.04|18.04|20.04|22.04|24.04|24.10 [--minimal]
kali
arch
gentoo不知道...
-p 密码
-port 端口
-d 11 安装debian11,可以改为c或u,对应Centos、Ubuntu
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64LloydAsp/OsMutation
支持 OpenVZ 7 及 LXC
wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh
##或者
curl -so OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh
##对于磁盘较小的 vps(小于 1GiB,实验性支持)
wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutationTight.sh && chmod u+x OsMutation.sh && ./OsMutation.shRescue中DDwin2016
wget -O- "https://dl.lamp.sh/vhd/cn_win2016.xz" | xzcat | dd of=/dev/sda
###
###用户名: administrator
###密码:Teddysun.com更新软件包、安装docker
sudo apt update && sudo apt upgrade -y
apt install -y wget vim sudo curl git unzip
wget -qO- get.docker.com | bash
docker -v
systemctl enable docker
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version安装Fail2ban(仿爆破)
sudo apt-get install fail2ban && sudo apt-get install rsyslog && sudo systemctl start fail2ban && sudo systemctl enable fail2ban && sudo systemctl status fail2ban修改时区
dpkg-reconfigure tzdata中文SSH
一般不用...
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh开启BBR
常用方案
wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.shGoogleBBR
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf && echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p基础性能测试
Superbench-老鬼
SuperBench测试脚本
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bashYabs
这个脚本和上面那个superbench比,IO测试比较完全,还能测试cpu分数。但是没有网速测试,
curl -sL yabs.sh | bash -s -- -iBench.sh-秋水逸冰
显示当前测试的各种系统信息;取自世界多处的知名数据中心的测试点,下载测试比较全面;支持 IPv6 下载测速;IO 测试三次,并显示平均值。
wget -qO- bench.sh | bash
#或者
curl -Lso- bench.sh | bash
#或者
wget -qO- 86.re/bench.sh | bash
#或者
curl -so- 86.re/bench.sh | bashUnixBench-秋水逸冰
UnixBench是一个类unix系(Unix,BSD,Linux)统下的性能测试工具,一个开源工具,被广泛用与测试Linux系统主机的性能。Unixbench的主要测试项目有:系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C库等系统基准性能提供测试数据。自动安装UnixBench和测试脚本,系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C库等系统基准性能。
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh硬盘测试
型号、通电时间等
#通电时间+顺序写入
wget -q https://github.com/Aniverse/A/raw/i/a && bash a
#Debian or Ubuntu
apt -y install smartmontools
#CentOS
yum -y install smartmontools
#查看一下有哪些盘
fdisk -l
#查看/dev/sda盘的所有信息
smartctl --all /dev/sda.
IP质量测试(比较常用)
bash <(curl -Ls IP.Check.Place)流媒体测试
###这个
bash <(curl -L -s https://git.io/JRw8R)
###或者这个
bash <(curl -L -s check.unlock.media)这个更新慢点
bash <(curl -sSL "https://git.io/JswGm")路由测试
回程路由
这个是回程路由测试脚本,去程的去itdog、LookingHouse、ipip.net之类的网站,vivi个人比较喜欢Lookinghouse。
下面这个脚本是原版,测试结果不如详细回程路由里面自己判断准确,有些gia回程这个脚本会判断成cn2 gt。这是因为有些地区的gia回程难免出现202.97,这个脚本就会把gia线路判断成cn2 gt,不过总体来将这个脚本还是比较准确的。提示一下,电信回程没有优化的普通线路是163,联通普通回程时4837,移动普通回程是cmi。
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash详细一点的,这个其实就是nxtrace,不过是整合脚本,想测回家路线的话最好还是用下面的Nexttrace
wget -qO- git.io/besttrace | bash去程路由
之前发过这个脚本的详细说明,可以回去看一下文章:
curl nxtrace.org/nt | bash && nexttrace 1.1.1.1三网测速
日常使用,3网测速,对应 speedtest.net 的自动更新测速服务器ID的测速脚本。 项目地址
#测速
bash <(wget -qO- bash.spiritlhl.net/ecs-net)
#测延迟
bash <(wget -qO- bash.spiritlhl.net/ecs-ping)这个也好用
bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh)测速备用
bash <(curl -Lso- https://bench.im/hyperspeed)speedtest cli 测本地带宽
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash && sudo apt-get install speedtest && speedtest1
融合怪
Spiritlhl融合怪
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.shcurl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.shNodeQuality
bash <(curl -sL https://run.NodeQuality.com)清除ssh记录
查看
last
lastb
lastlog
history清除
nano cl.sh#!/bin/bash
> /var/log/wtmp
> /var/log/btmp
> /var/log/lastlogchmod +x cl.sh
./cl.sh
history -c超兽检测
wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh && chmod +x memoryCheck.sh && bash memoryCheck.sh等待补充...
想起什么补充什么吧,基本都是网络上整理来的,可能会有失效的,欢迎指出。都是些自己经常用的脚本。
1
评论区