DD网络重装脚本 PS:自定义密码直接 -p 你想要的密码就行!!! 部分机器需要设置网卡,否则可以 VNC,但是不能远程 SSH
甲骨文、三毛、Vir、RN 等大部分 VPS 通用,三毛、甲骨文 记得去掉 -firmware
旧
1 bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' ) -d 11 -v 64 -a -firmware -p 自定义密码
新
1 bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh' ) -d 11 -v 64 -p 密码 -port 端口 -a -firmware
1 2 wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh' && bash InstallNET.sh -dd 'https://dd.591592.xyz/dd/win10-ent-2016-ltsb-x64-cn.vhd.gz'
1 2 3 4 5 6 -d 10 -v 64 -d 9 -v 64 -u 20.04 -v 64 -u 18.04 -v 64 -a 全自动无人值守安装
腾讯云删除监控组件 PS: 如果你是腾讯云记得卸载组件 否则会导致报错 DD 失败
1 2 3 4 5 6 7 8 systemctl stop tat_agent systemctl disable tat_agentrm -rf /etc/systemd/system/tat_agent.servicerm -fr /usr/local/qcloud ps -A | grep agent
· 国内 VPS 需要更换镜像源否则很慢!我这里使用的华为源,如果你是腾讯云后面可以换成内网源,节省流量,下面有写!
1 bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' ) -d 11 -v 64 -a --mirror 'https://mirrors.huaweicloud.com/debian/' -p 自定义密码
镜像站地址 官方给出的地址列表:https://www.debian.org/mirror/list
更换软件源 1 bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
41合一脚本(可DD windows) https://git.beta.gs/
1 2 3 4 5 6 7 8 9 10 11 12 安装重装系统的前提组件: Debian/Ubuntu: apt-get install -y xz-utils openssl gawk file wget screen && screen -S os RedHat/CentOS: yum install -y xz openssl gawk file glibc-common wget screen && screen -S os 如果出现异常,请刷新Mirrors缓存或更换镜像源。 RedHat/CentOS: yum makecache && yum update -y Debian/Ubuntu: apt update -y && apt dist-upgrade -y
1 wget --no-check-certificate -O NewReinstall.sh https://git.io/newbetags && chmod a+x NewReinstall.sh && bash NewReinstall.sh
如为 CN 主机 (部分主机商已不能使用),可能出现报错或不能下载脚本的问题,可执行以下命令开始安装.
1 wget --no-check-certificate -O NewReinstall.sh https://cdn.jsdelivr.net/gh/fcurrk/reinstall@master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 41 合一系统密码:1 、CentOS 7 .7 (已关闭防火墙及SELinux,默认密码Pwd@CentOS)2 、CentOS 7 (默认密码cxthhhhh.com)3 、CentOS 7 (支持ARM64、UEFI,默认密码cxthhhhh.com)4 、CentOS 8 (默认密码cxthhhhh.com)5 、Rocky 8 (默认密码cxthhhhh.com)6 、Rocky 8 (支持UEFI,默认密码cxthhhhh.com)7 、Rocky 8 (支持ARM64、UEFI,默认密码cxthhhhh.com)8 、CentOS 9 (默认密码cxthhhhh.com)9 、CentOS 6 (官方源原版,默认密码Minijer.com)10 、Debian 11 (官方源原版,默认密码Minijer.com)11 、Debian 10 (官方源原版,默认密码Minijer.com)12 、Debian 9 (官方源原版,默认密码Minijer.com)13 、Debian 8 (官方源原版,默认密码Minijer.com)14 、Ubuntu 20 .04 (官方源原版,默认密码Minijer.com)15 、Ubuntu 18 .04 (官方源原版,默认密码Minijer.com)16 、Ubuntu 16 .04 (官方源原版,默认密码Minijer.com)17 、Windows Server 2022 (默认密码cxthhhhh.com)18 、Windows Server 2022 (支持UEFI,默认密码cxthhhhh.com)19 、Windows Server 2019 (默认密码cxthhhhh.com)20 、Windows Server 2016 (默认密码cxthhhhh.com)21 、Windows Server 2012 (默认密码cxthhhhh.com)22 、Windows Server 2008 (默认密码cxthhhhh.com)23 、Windows Server 2003 (默认密码cxthhhhh.com)24 、Windows 10 LTSC (默认密码Teddysun.com)25 、Windows 10 LTSC (支持UEFI,默认密码Teddysun.com)26 、Windows 7 x86 Lite (默认密码nat.ee)27 、Windows 7 x86 Lite (阿里云专用,默认密码nat.ee)28 、Windows 7 x64 Lite (默认密码nat.ee)29 、Windows 7 x64 Lite (支持UEFI,默认密码nat.ee)30 、Windows 10 LTSC Lite (默认密码nat.ee)31 、Windows 10 LTSC Lite (阿里云专用,默认密码nat.ee)32 、Windows 10 LTSC Lite (支持UEFI,默认密码nat.ee)33 、Windows Server 2003 Lite (C盘默认10 G,默认密码WinSrv2003x86-Chinese)34 、Windows Server 2008 Lite (默认密码nat.ee)35 、Windows Server 2008 Lite (支持UEFI,默认密码nat.ee)36 、Windows Server 2012 Lite (默认密码nat.ee)37 、Windows Server 2012 Lite (支持UEFI,默认密码nat.ee)38 、Windows Server 2016 Lite (默认密码nat.ee)39 、Windows Server 2016 Lite (支持UEFI,默认密码nat.ee)40 、Windows Server 2022 Lite (默认密码nat.ee)41 、Windows Server 2022 Lite (支持UEFI,默认密码nat.ee)99 、自定义镜像
一键 DD Linux 系统 1 wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 bash InstallNET.sh -debian bash InstallNET.sh -centos bash InstallNET.sh -rockylinux bash InstallNET.sh -almalinux bash InstallNET.sh -fedora bash InstallNET.sh -ubuntu -debian 9/10/11 : Debian 9+ -centos 7/8/9-stream: CentOS 7+ -almalinux/alma 8/9: AlmaLinux 8+ -rockylinux/rocky 8/9: RockyLinux 8+ -fedora 34/35/36/37: Fedora 34+ -ubuntu 16.04/18.04/20.04: Ubuntu 16.04~20.04 -mirror "有效的源链接" -port "1~65535" -pwd '自定义密码,不可太复杂,不推荐带特殊符号,默认:LeitboGi0ro' --network "dhcp/auto or static/manual" 动态或静态网络,可选,可不添加,脚本自动识别
宝塔面板7.7.0 1 curl -sSO https://raw.githubusercontent.com/8838/btpanel-v7.7.0/main/install/install_panel.sh && bash install_panel.sh
1 2 3 4 5 6 7 8 9 sed -i "s|bind_user == 'True'|bind_user == 'XXXX'|" /www/server/panel/BTPanel/static/js/index.jsrm -f /www/server/panel/data/bind.pl chattr +i /www/server/panel/data/plugin.json
综合工具箱(强烈推荐,集成了很多脚本) 1 wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
一键开启 BBR(适用于较新的 Debian、Ubuntu) 1 2 3 4 5 echo "net.core.default_qdisc=fq" >> /etc/sysctl.confecho "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p sysctl net.ipv4.tcp_available_congestion_control lsmod | grep bbr
superbench 1 wget -qO- git.io/superbench.sh | bash
Bench.sh 1 wget -qO- bench.sh | bash
三网测速 1 bash <(curl -Lso- https://git.io/superspeed_uxh)
1 bash <(curl -Lso- https://git.io/J1SEh)
1 2 wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh bash jcnf.sh
yabs 机器跑分
一键安装 docker 1 bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
脚本集成安装 Docker Engine
与 Docker Compose
,可手动选择安装版本、下载源、镜像加速器,支持国内外服务器环境和 ARM
架构处理器环境使用
国外 1 curl -sSL https://get.docker.com/ | sh
国内 1 curl -sSL https://get.daocloud.io/docker | sh
卸载 docker 1 2 sudo apt-get remove docker docker-enginerm -fr /var/lib/docker/
流媒体测试 全媒体测试 1 bash <(curl -L -s check.unlock.media)
1 bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
奈飞测试 1 wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf
1 bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
1 bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh" )
杜甫测试 1 wget -q https://github.com/Aniverse/A/raw/i/a && bash a
单线程测试 1 bash <(curl -Lso- https://bench.im/hyperspeed)
直接显示回程线路 1 curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
1 2 wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh bash testrace.sh
1 wget -qO- git.io/besttrace | bash
测试 25 端口是否开放
一键修改默认 SSH 端口,自行替换 2222 1 sed -i 's/#Port\ 22/Port\ 2222/' /etc/ssh/sshd_config && systemctl reload ssh
一键清理 /var/log / 目录下的过期日志 1 find /var/log/ -name "*.1" -exec rm -rf {} \; && find /var/log/ -name "*.log.1" -exec rm -rf {} \; && find /var/log/ -name "*.gz" -exec rm -rf {} \;
测试 IPv4 优先还是 IPv6 优先
目前用过的最好用,功能最全的套 warp 脚本 1 wget -N https://raw.githubusercontent.com/fscarmen/warp/main/warp-go.sh && bash warp-go.sh [option] [lisence]
WARP 1 wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi.sh && ./multi.sh
宝塔一键挂载硬盘脚本 Centos 系统请使用以下命令: 1 yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
Ubuntu 系统请使用以下命令: 1 wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh
Debian 系统请使用以下命令: 1 wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
FunctionClub 大佬的内存检测脚本 CentOS 1 2 3 4 5 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 1 2 3 4 5 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
Aria2 一键安装脚本 1 wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh
qbittorrent 1 2 3 4 cd /root wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.9_v1.2.15/x86_64-qbittorrent-noxchmod +x x86_64-qbittorrent-nox ./x86_64-qbittorrent-nox
输入 y 然后 ctrl+c 退出就行
1 2 3 4 5 6 7 8 9 10 11 12 13 tee > /etc/systemd/system/qbittorrent.service <<EOF[Unit] Description =qBittorrent Daemon ServiceAfter =network.target[Service] LimitNOFILE =512000 User =rootExecStart =/root/x86_64 -qbittorrent-nox[Install] WantedBy =multi-user.target EOF
1 2 3 4 5 6 systemctl daemon-reload systemctl start qbittorrent systemctl status qbittorrent
1 2 3 4 5 6 ps -aux | grep qbittorrent kill 对应序号
剑皇脚本 1 2 3 wget https://github.com/maintell/webBenchmark/releases/download/0.6/webBenchmark_linux_x64chmod +x webBenchmark_linux_x64 ./webBenchmark_linux_x64 -c 32 -s https://target.url
https://blog.laoda.de/archives/useful-script https://www.wrnxr.cn/163.html https://archives.vip/6.html https://hostloc.com/thread-1097221-1-3.html https://supermanito.github.io/LinuxMirrors/#/