此 Ansible 剧本旨在快速配置您的 Raspberry Pi。
它兼容所有型号。已在多种型号上成功测试,包括 Pi Zero W、Pi Zero 2W 和 Pi 4B 等。该剧本在 Debian 及基于 Debian 的发行版上应能良好运行。
通过使用标签选择要安装的组件。每个标签安装特定的软件包和配置:
| 标签 | 描述 | 备注 |
|---|---|---|
| standard、std | 核心安装与配置 | 标准软件包、bashrc、vimrc |
| ap | 当未插入以太网线时启动热点 | 适用于移动场景以访问工具。→ AP 配置文件(通过 ssh [email protected] 访问) |
| display | 使用 LCD-show 配置显示器 | 需要修改 此文件 以配置正确的显示器。 |
| docker | Docker 安装 | 容器运行时环境 |
| jackit | 安装 jackit | 针对 Mousejack 的利用代码 |
| tor | Tor 安装 | 参见 README |
| rfid | RFID 工具安装 | 工具(libnfc、mfoc、mfcuk)以及来自 MifareClassicTool 的密钥 → 参见 备注 |
直接从 Pi 进行设置,运行以下命令: 运行命令前,您必须使用 Raspberry Pi Imager 设置好 Pi。
接下来运行命令:
curl -s https://raw.githubusercontent.com/atao/raspberrypi-setup/main/install.sh | bash -s -- all
要设置,请运行以下命令:
git clone https://github.com/atao/raspberrypi-setup.git
cd raspberrypi-setup
sudo ansible-playbook playbook.yml -i hosts --tags all -K
列出剧本任务:
sudo ansible-playbook playbook.yml -i hosts --list-tasks
仅安装部分标签:
curl -s https://raw.githubusercontent.com/atao/raspberrypi-setup/main/install.sh | bash -s -- standard,proxy,rfid,docker,web,jd2
Yaml 检查
yamllint playbook.yml roles/
语法检查:
--syntax-check
--
| sdr | SDR 工具安装 | rtl_433、rtl_sdr |
| web | Nginx 和 Certbot 安装 |
| wifi | WiFi 和 GPS 工具安装 | 无线安全测试与战争驾驶 |
| 标签 | 描述 | 备注 |
|---|
| jd2 | JDownloader 2 的 Docker 容器 jlesage/jdownloader-2 | 参见 配置技巧 |
| portainer | Portainer CE - 一款轻量级的容器化应用服务交付平台 portainer/portainer-ce | 容器管理器 |
| proxy | 轮换 Tor HTTP 代理容器 | 提供一个 HTTP 代理端点,具有多个并发隧道连接到 Tor 网络。 |