升级并安装curl

aptapt update -y  && apt install -y curl

安装科技LION

#官网版
curl -sS -O https://kejilion.pro/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

#GitHub版 部分小伙伴会遇到官网版出现大段乱码!就用GitHub版本吧!
curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

#国内服务器版
curl -sS -O https://raw.gitmirror.com/kejilion/sh/main/cn/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

刷新列表并更新软件

sudo apt update
apt list --upgradable
sudo apt update && sudo apt upgrade -y

BT5.ME-Ubuntu/Debian安装

wget -O install.sh http://www.bt5.me/install/install_7.0.sh && bash install.sh

证书申请脚本

wget -N --no-check-certificate https://raw.githubusercontent.com/Misaka-blog/acme-script/main/acme.sh && bash acme.sh

检测服务器支持

wget -qO- https://github.com/yeahwu/check/raw/main/check.sh | bash

debian更换官方源

cat > /etc/apt/sources.list << EOF
deb https://deb.debian.org/debian/ bullseye main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye main contrib non-free

deb https://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-updates main contrib non-free

deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free

deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
EOF

Sing-box 全家桶

bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh)

媒体解锁

bash <(curl -L -s media.ispvps.com)

一键安装X-UI依赖

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

关闭防火墙

sudo ufw disable

防火墙放行端口

ufw allow 需要放行的端口
END
本文作者:
文章标题: 自用的一些Debian脚本命令
本文地址: https://www.haovps.top/archives/59.html
版权说明:若无注明,本文皆 高性能VPS推荐与IT技术博客 | Haovps.Top 原创,转载请保留文章出处。
cc
最后修改:2024 年 07 月 07 日
如果觉得我的文章对你有用,请随意赞赏