Linux 运维与环境配置脚本集合。
这是一个扩展性仓库,用于收集开发与运维过程中常用的 Linux 环境配置脚本,解决系统初始化、网络隧道、代理配置、源切换等常见问题。
开箱即用 :脚本应支持交互式菜单或清晰的命令行参数
安全优先 :修改系统配置前自动备份,支持回滚
跨发行版 :尽可能兼容主流 Linux 发行版(Debian/Ubuntu 优先)
运维友好 :提供完善的状态查询、日志查看、故障排查工具
scripts/
├── autossh-tunnel/ # SSH 反向隧道部署
│ ├── autossh-tunnel.sh # 部署脚本
│ ├── docs/ # 运维文档
│ │ ├── ops-guide.md
│ │ └── autossh-tunnel-incident-and-fix.md
│ └── README.md
├── changes-source/ # 镜像源切换工具
│ ├── change-source.sh # 切换脚本
│ └── README.md
├── v2rayA/ # v2rayA 部署
│ ├── install_v2rayA.sh # 安装脚本
│ └── README.md
└── README.md # 本文档
autossh-tunnel - SSH 反向隧道
cd autossh-tunnel
./autossh-tunnel.sh --generate-config
vim ~ /.autossh-tunnel.conf
sudo ./autossh-tunnel.sh
详见:autossh-tunnel/README.md
cd changes-source
sudo ./change-source.sh
详见:changes-source/README.md
cd v2rayA
sudo ./install_v2rayA.sh install --mirror
source ~ /.bashrc
详见:v2rayA/README.md
项目
支持系统
支持架构
autossh-tunnel
Debian/Ubuntu
x86_64, aarch64, armv7l
changes-source
Ubuntu 18.04+, Debian 10+
通用
v2rayA
Debian 10+, Ubuntu 18.04+
x86_64, aarch64, armv7l
方向
说明
状态
系统初始化
常用软件安装、基础配置
规划中
SSH 配置
密钥管理、安全加固
规划中
环境配置
时区、语言、Shell 配置
规划中
系统信息
硬件/软件信息采集
规划中
监控告警
系统资源监控与告警
规划中