分享一些常用的脚本(持续更新中)

综合工具箱(强烈推荐,集成了很多脚本)

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

shbox综合工具箱

wget https://raw.githubusercontent.com/jamespan2012/shbox/main/shbox.sh -O shbox.sh && bash shbox.sh #后续运行脚本(再次检查也仅需运行下面代码) bash shbox.sh

查看Linux内核版本

uname -r

查看本机绑定的IP地址

ip a

自动配置IPv6在ens3网卡上(网卡名字修改为自己的网卡)

dhclient -6 ens3

CentOS 关闭防火墙

systemctl start supervisord
systemctl disable firewalld
systemctl stop firewalld

DD脚本

安装所需环境:

#适用于 Debian/Ubuntu:
apt-get update
apt-get install -y xz-utils openssl gawk file

#适用于 RedHat/CentOS:
yum update
yum install -y xz openssl gawk file

一键DD脚本

wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh
  • CentOS默认密码Pwd@CentOS 其它系统Pwd@Linux
  • OpenVZ / LXC 架构系统不适用

DD甲骨文脚本

  • DD成Debian 10

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"

  • DD成Ubuntu 20.04

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -u 20.04 -v 64 -p "自定义root密码" -port "自定义ssh端口"

MoeClub脚本(萌咖)

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"

脚本常用参数:
-firmware #额外的驱动支持,部分VPS不支持该参数,如甲骨文永久免费VPS
-d #Debian系统,后面是系统版本号,如 -d 11
-c #Centos系统,后面是系统版本号,如 -c 7
-u #Ubuntu系统,后面是系统版本号,如 -u 22.04
-v #后面写64或32,选择64位/32位操作系统
-a #Auto,全自动无人值守安装
–mirror #自定义镜像源地址
-p #自定义密码
–ip-addr #自定义IP地址,如:123.45.xxx.xxx (事先 ifconfig -a 获取)
–ip-gate #自定义网关地址,如:123.45.xxx.xxx (事先 route -n 获取)
–ip-mask #自定义掩码地址,如:255.255.xxx.xx

开机改密码

#!/bin/bash
echo root:Vicer |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot

国内外部分稳定的开源镜像站点:

#中国大陆
mirror.bjtu.edu.cn #北京交通大学镜像站
mirrors.163.com #网易镜像站
mirrors.bfsu.edu.cn #北京外国语大学镜像站
mirrors.neusoft.edu.cn #大连东软信息学院镜像站
mirrors.tuna.tsinghua.edu.cn #清华大学镜像站
mirrors.ustc.edu.cn #中国科学技术大学镜像站

#国内知名IDC
mirrors.tencent.com #腾讯镜像站
mirrors.tencentyun.com #腾讯云内网镜像站(仅限腾讯云内网使用)
mirrors.aliyun.com #阿里云镜像
mirrors.huaweicloud.com #华为云镜像站

#海外
ftp.cn.debian.org #中国大陆镜像站
ftp.hk.debian.org #香港镜像站
ftp.tw.debian.org #台湾镜像站
ftp.jp.debian.org #日本镜像站
ftp.us.debian.org #美国镜像站
ftp.ru.debian.org #俄罗斯镜像站
ftp.uk.debian.org #英国镜像站
ftp.fr.debian.org #法国镜像站
ftp.au.debian.org #澳大利亚镜像站
ftp.br.debian.org #巴西镜像站

Linux 一键更换国内软件源脚本

国内使用     服务器推荐
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
 
教育网
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu
github地址
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)
gitee地址
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)


海外使用
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad
github地址
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad
gitee地址
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad

5K哥 DD脚本

wget -qO- 1keydd.com/inst.sh | bash -s - -t deb

融合怪混合VPS测试脚本(10代目)

curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

SuperBench By 秋水逸冰

bash <(wget -qO- https://down.vpsaff.net/linux/speedtest/superbench.sh)

SuperBench 原版

wget -qO- bench.sh | bash

YABS(Yet Another Bench SH)

curl -sL yabs.sh | bash

三网测速

bash <(curl -Lso- https://git.io/superspeed.sh)

硬盘性能/通电时间检测(独立服务器)

wget -q https://github.com/Aniverse/A/raw/i/a && bash a

LemonBench

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast

ChatGPT检测

bash <(curl -Ls https://cpp.li/openai)

ChatGPT检测-Lite版

bash <(curl -Ss "https://raw.githubusercontent.com/candyraws/OpenAI-Checker-lite/main/openai_check_lite.sh")

NetFlix解锁检测

wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.01/nf_2.01_linux_amd64 && chmod +x nf && clear && ./nf

流媒体解锁测试

bash <(curl -L -s check.unlock.media)

回程网络测试

wget -qO- git.io/besttrace | bash

Docker一键安装(官方)

curl -sSL https://get.docker.com/ | sh

安装docker-compose

#下载docker-compose文件
curl -L https://github.com/docker/compose/releases/download/1.21.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

#将文件复制到/usr/local/bin环境变量下面
mv docker-compose /usr/local/bin

#给他一个执行权限
chmod +x /usr/local/bin/docker-compose

#查看是否安装成功
docker-compose -version

国内安装Docker

curl -sSL https://get.daocloud.io/docker | sh
#安装 Docker Compose
curl -L https://get.daocloud.io/docker/compose/releases/download/v2.3.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose       

chmod +x /usr/local/bin/docker-compose

NGINX+PHP80+MariaDB10.6-OneInStack

curl -sSL https://get.docker.com/ | shwget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 1 --php_option 10 --phpcache_option 1 --php_extensions zendguardloader,ioncube,sourceguardian,imagick,fileinfo,imap,ldap,phalcon,yaf,redis,memcached,memcache,mongodb,swoole,xdebug --phpmyadmin  --db_option 5 --dbinstallmethod 1 --dbrootpwd auik2022 --node  --pureftpd  --redis  --memcached  --reboot

FastPanel

wget http://repo.fastpanel.direct/install_fastpanel.sh -O - | bash -

魔法篇

Wulabing-VLESS 2xmode

wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/Xray_onekey/main/install.sh" && chmod +x install.sh && bash install.sh

mack-a(八合一一键脚本)

wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

233Boy-V2Ray

bash <(curl -s -L https://git.io/v2ray.sh)

X-UI

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

BBR大全

wget --no-check-certificate -O tcp.sh https://github.com/cx9208/Linux-NetSpeed/raw/master/tcp.sh && chmod +x tcp.sh && ./tcp.sh

3X-UI

bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)

小结

目前还在继续更新,都是我日常用的脚本,分享给大家,后续会添加更多。

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容