返回顶部
o

obsidian-official-cli-headless无头黑曜石CLI

Install and adapt the official Obsidian CLI for headless Linux servers by using a non-root user, Xvfb virtual display, ACL-based vault access, and an obs wrapper command. Use when the user wants the official Obsidian CLI (not notesmd-cli) on a Debian/Ubuntu-like machine without a normal desktop session, or when root/GUI/display constraints break native CLI use.

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

obsidian-official-cli-headless

Obsidian 官方 CLI 无头模式

将官方 Obsidian CLI 视为一个桌面优先应用的适配问题,而非普通的 CLI 安装。

核心规则

  • - 仅将此技能用于官方 Obsidian CLI。
  • 假设无头 Linux 需要专用的非 root 用户、Xvfb 以及一个包装命令。
  • 当仓库位于 /root 下时,优先使用 ACL 而非更改所有权。
  • 优先使用单一目标仓库。
  • 避免用户使用 su - obsidian,通过暴露 /usr/local/bin/obs 来显示详细信息。

快速路径

  1. 1. 确认仓库路径。仅当用户未指定其他路径时,默认使用 /root/obsidian-vault。
  2. 以 root 身份运行 scripts/installofficialobsidian.sh。
  3. 以 root 身份运行 scripts/configureofficialcli.sh path>。
  4. 运行 scripts/verifyofficialcli.sh [vaultpath]。
  5. 报告包装路径、活动仓库、已验证的命令以及剩余注意事项。

本技能负责的内容

  • - 官方 Obsidian .deb 安装
  • 现场使用所需的无头运行时依赖
  • 专用的 obsidian 用户
  • 通过 ~/.config/obsidian/obsidian.json 启用官方 CLI
  • 通过 ACL 访问仓库
  • /usr/local/bin/obs 包装命令
  • 验证 help、vault、daily:path、daily:append、daily:read 和 search

禁止事项

  • - 不要将此技能用于 notesmd-cli 或轻量级纯 Markdown 工作流。
  • 除非用户明确要求,否则不要扩展到插件、同步设置、主题调整或完整的桌面环境工作。
  • 不要扩大权限范围超出必要程度。

包装模型

包装命令应有效运行:

bash
su - obsidian -c cd && xvfb-run -a /usr/bin/obsidian --disable-gpu ...

这是在无头主机上的稳定运行模式。

验证命令

至少使用以下命令:

bash
obs help
obs vault
obs daily:path
obs daily:append content=skill verification
obs daily:read
obs search query=skill verification

参考资料

  • - 当需要了解非 root 用户、Xvfb、ACL 或包装设计的设计原理时,请阅读 references/architecture.md。
  • 当安装部分成功但 CLI 行为仍然失败时,请阅读 references/troubleshooting.md。

报告格式

保持结果简洁:

  • - 已安装版本
  • 包装路径
  • 活动仓库路径
  • 已验证的命令
  • 剩余限制

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 obsidian-official-cli-headless-1776114376 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 obsidian-official-cli-headless-1776114376 技能

通过命令行安装

skillhub install obsidian-official-cli-headless-1776114376

下载

⬇ 下载 obsidian-official-cli-headless v1.0.0(免费)

文件大小: 6.19 KB | 发布时间: 2026-4-15 13:39

v1.0.0 最新 2026-4-15 13:39
- Initial release of obsidian-official-cli-headless skill.
- Enables installation and adaptation of the official Obsidian CLI for headless Linux servers using non-root user, Xvfb, ACLs, and a command wrapper.
- Focuses on vault access, basic CLI enablement, verification of key commands, and minimal permissions.
- Provides scripts and guidance for setup, configuration, verification, and reporting in headless environments.
- Excludes plugin, sync, and GUI-related features unless explicitly requested.

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

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

p2p_official_large
返回顶部