返回顶部
b

boot_installer引导安装器

Install, update, repair, or health-check the openclaw environment. Use when the user says install openclaw, run the bootstrapper, update packages, fix a broken install, or check system health.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
114
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

boot_installer

boot_installer

运行 {baseDir}/boot.sh 来管理完整的 openclaw 环境生命周期。
需要 Linux 系统和 root/sudo 权限。该脚本会自动处理权限提升。

斜杠命令

命令功能
/boot-install全新安装所有组件
/boot-update
将所有软件包升级到最新版本 | | /boot-repair | 深度清理并重建损坏状态 | | /boot-check | 健康检查 — 验证所有组件 |

何时运行哪种模式

  • - 用户说 安装 openclaw、设置、运行安装程序 → 安装(无标志)
  • 用户说 更新、升级软件包 → 更新
  • 用户说 修复、修理、有东西坏了、重建 → 修复
  • 用户说 检查、状态、是否全部安装、健康检查 → 检查

如何调用

始终以调用用户身份运行(sudo 由脚本内部处理):

bash
bash {baseDir}/boot.sh # 安装
bash {baseDir}/boot.sh --update # 更新
bash {baseDir}/boot.sh --repair # 修复
bash {baseDir}/boot.sh --check # 检查 — 退出时返回失败检查项数量(最大 125)

使用 exec 工具。流式输出,让用户实时看到旋转进度。

安装内容(安装模式)

  • - 通过 NodeSource 安装 Node.js v24+
  • UV Python 包管理器(~/.local/bin/uv)
  • 在 ~/venv 创建 Python 3.10 虚拟环境,包含 scrapling[fetchers]
  • 通过 Playwright 安装 Chromium 浏览器(~/.cache/ms-playwright)
  • NPM 全局包:9router、openclaw@latest、clawhub、paperclipai、@presto-ai/google-workspace-mcp、mcporter
  • /usr/local/bin 中的系统符号链接
  • 通过 systemd 用户服务实现 9router 自启动(回退到 .bashrc 钩子)
  • openclaw-gateway-watchdog systemd 用户服务
  • Mcporter Google Workspace 连接器

关键路径

路径用途
~/venvPython 虚拟环境
~/.local/bin
UV 二进制文件 | | ~/.local/npm/bin | NPM 全局二进制文件 | | ~/.cache/ms-playwright | Chromium 浏览器 | | ~/.openclaw/workspace/skills | 工作区技能 | | ~/.config/systemd/user/9router.service | 9router systemd 单元 | | ~/.config/systemd/user/openclaw-gateway-watchdog.service | 网关看门狗 |

安装后

如果 .bashrc 被修改,提醒用户重新加载 shell:
bash
source ~/.bashrc

日志和错误

脚本会将完整日志写入 /tmp/boot-YYYYMMDD-HHMMSS.log。如果某个步骤失败,会内联打印最后 15 行输出,并显示日志路径。失败时向用户展示该路径。

检查模式退出码

--check 退出时返回失败检查项的数量(0 = 全部通过,1–125 = N 个问题,上限为 125)。解析退出码并告知用户有多少检查项失败,以及运行 bash {baseDir}/boot.sh 进行修复。

故障排除

  • - APT 锁被占用 — 脚本最多等待 120 秒,并自动终止阻塞进程。无需用户操作。
  • Node.js 版本错误 — 如果安装的主版本低于 24,脚本会自动升级。
  • Python 虚拟环境损坏 — 先运行 --repair,然后无标志运行以重新安装软件包。
  • 9router 无法启动 — 日志位于 ~/.local/share/9router.log。如果 systemd 不可用,回退到 .bashrc 登录钩子。
  • 网关看门狗无法启动 — 运行 journalctl --user -u openclaw-gateway-watchdog -n 50。
  • 文件权限错误 — 无标志运行(安装模式);每次安装/更新结束时都会运行 fixownership。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 boot-installer-1775904601 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 boot-installer-1775904601 技能

通过命令行安装

skillhub install boot-installer-1775904601

下载

⬇ 下载 boot_installer v1.0.0(免费)

文件大小: 13.46 KB | 发布时间: 2026-4-12 09:13

v1.0.0 最新 2026-4-12 09:13
boot-installer 1.0.0

- Initial release for managing the openclaw environment lifecycle on Linux.
- Provides install, update, repair, and health-check modes with corresponding slash commands.
- Automates installs of Node.js 24+, UV Python manager, Python venv, Chromium (Playwright), NPM globals, and sets up systemd user services.
- Handles privilege escalation, locks, and repairs common package and environment issues.
- Surfaces logs and troubleshooting tips if steps fail; clear reporting of health-check results and log locations.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部