← 返回
开发者工具 中文

Obsidian Official CLI Headless

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 wra...
使用非 root 用户、Xvfb 虚拟显示、ACL 仓库访问及 obs 包装器,在无头 Linux 服务器上安装并适配官方 Obsidian CLI。
darinrowe
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 734
下载
💾 18
安装
1
版本
#latest

概述

Obsidian Official CLI Headless

Treat the official Obsidian CLI as a desktop-first app adaptation problem, not a normal CLI install.

Core rules

  • Use this skill only for the official Obsidian CLI.
  • Assume headless Linux needs a dedicated non-root user, Xvfb, and a wrapper command.
  • Prefer ACLs over ownership changes when the vault lives under /root.
  • Prefer one target vault.
  • Keep the user away from su - obsidian and display details by exposing /usr/local/bin/obs.

Fast path

  1. Confirm the vault path. Default to /root/obsidian-vault only if the user does not specify another path.
  2. Run scripts/install_official_obsidian.sh as root.
  3. Run scripts/configure_official_cli.sh as root.
  4. Run scripts/verify_official_cli.sh [vault_path].
  5. Report the wrapper path, active vault, verified commands, and remaining caveats.

What this skill owns

  • Official Obsidian .deb install
  • Headless runtime dependencies needed for field use
  • Dedicated obsidian user
  • Official CLI enablement via ~/.config/obsidian/obsidian.json
  • Vault access via ACLs
  • /usr/local/bin/obs wrapper
  • Verification of help, vault, daily:path, daily:append, daily:read, and search

What not to do

  • Do not use this skill for notesmd-cli or lightweight markdown-only workflows.
  • Do not expand into plugins, sync setup, theme tuning, or full desktop environment work unless the user explicitly asks.
  • Do not broaden permissions more than needed.

Wrapper model

The wrapper should effectively run:

su - obsidian -c 'cd <vault> && xvfb-run -a /usr/bin/obsidian --disable-gpu ...'

That is the stable operating model on a headless host.

Verification commands

Use at minimum:

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

References

  • Read references/architecture.md when you need the rationale for non-root user, Xvfb, ACLs, or wrapper design.
  • Read references/troubleshooting.md when the install works partially but CLI behavior still fails.

Report format

Keep the result short:

  • installed version
  • wrapper path
  • active vault path
  • verified commands
  • remaining limits

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-19 14:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,834
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,365
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,399