Windows 11 部署 Robin:AI 驱动的暗网 OSINT 工具
本指南将手把手教你如何在 Windows 11 上利用 WSL2 和 Docker 部署 Robin。这是一款结合了 AI 能力(如 GPT-4 或 Ollama)的暗网情报分析工具。
第一阶段:基础环境准备
1. 安装 WSL (Ubuntu)
首先,我们需要在 Windows 上拥有一个 Linux 环境。请点击开始菜单,搜索 PowerShell,右键选择“以管理员身份运行”。
PowerShell
wsl --install -d Ubuntu
安装完成后,重启电脑。系统会自动弹出 Ubuntu 终端窗口,请按提示设置你的用户名和密码。
2. 安装 Docker Desktop
前往官网下载安装程序:Docker Desktop for Windows
关键步骤:开启 WSL 集成
1. 安装并打开 Docker Desktop。
2. 点击右上角齿轮图标进入 Settings。
3. 选择左侧 Resources -> WSL integration。
4. 勾选你刚刚安装的 Ubuntu 选项。
5. 点击 Apply & Restart。
1. 安装并打开 Docker Desktop。
2. 点击右上角齿轮图标进入 Settings。
3. 选择左侧 Resources -> WSL integration。
4. 勾选你刚刚安装的 Ubuntu 选项。
5. 点击 Apply & Restart。
第二阶段:Linux 环境配置
接下来的操作请在 Ubuntu 的终端窗口 中进行。
1. 回到家目录并更新系统
Bash
cd ~
sudo apt update && sudo apt upgrade -y
2. 安装并启动 Tor 服务
Bash
sudo apt install tor -y
sudo service tor start
3. 验证 Docker
Bash
docker --version
第三阶段:部署 Robin
1. 克隆项目代码
Bash
git clone https://github.com/apurvsinghgautam/robin.git
cd robin
2. 配置 API 密钥 (.env)
你需要配置 AI 模型。首先复制示例配置文件:
Bash
cp .env.example .env
nano .env
修改以下内容(以 Ollama 为例):
.env 文件内容
LLM_TYPE=ollama
LLM_MODEL=llama3
OLLAMA_BASE_URL=http://host.docker.internal:11434
第四阶段:构建与故障排除
1. 尝试构建镜像
Bash
docker build -t robin .
构建失败了? 如果提示 Permission denied,请执行
sudo usermod -aG docker $USER 然后重试。
第五阶段:运行与使用
启动 Robin
Bash
docker run --rm \
-v $(pwd)/.env:/app/.env \
--add-host=host.docker.internal:host-gateway \
-p 8501:8501 \
robin \
ui --ui-port 8501 --ui-host 0.0.0.0
访问 Web 界面
附录:如何彻底卸载
如果想从头再来,请执行以下清理命令。
Bash
docker stop $(docker ps -a -q)
docker rmi robin
cd ~ && rm -rf robin