用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill remote-desktop命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | remote-desktop |
| description | Connect to dev-secondary graphical desktop from dev-primary via VNC over SSH tunnel |
| type | reference |
| version | 1.0.0 |
| category | workspace-hub |
Connect to dev-secondary graphical desktop from dev-primary via VNC over SSH tunnel.
bash scripts/operations/connection/vnc-dev-secondary.sh
Script is fully self-contained: detects display+auth, auto-starts x11vnc if needed, opens tunnel, launches viewer.
ps entry to find display + auth file dynamicallylocalhost:5900 → dev-secondary:5900xtigervncviewer localhost:5900| Flag | Why Required |
|---|---|
-noshm | MIT-SHM denied when x11vnc user ≠ X server owner |
-noxdamage | GNOME/Mutter compositor causes XIO crash via XDAMAGE |
-noscr | GNOME conflicts with RECORD extension scroll detection |
-auth <explicit-path> | -auth guess fails when running as root on GDM display |
-o /dev/null | Avoids stale root-owned log file permission errors |
Resolved dynamically from ps wwwaux | grep Xorg:
/run/user/120/gdm/Xauthority — requires sudo/run/user/1000/gdm/Xauthority — no sudo neededTo avoid needing to start x11vnc each time, create a systemd service on dev-secondary:
sudo tee /etc/systemd/system/x11vnc.service <<'EOF'
[Unit]
Description=x11vnc VNC server for display :0
After=display-manager.service
Requires=display-manager.service
[Service]
ExecStart=/usr/bin/x11vnc -display :0 -auth /run/user/120/gdm/Xauthority -noshm -noxdamage -noscr -forever -nopw -listen localhost -rfbport 5900
Restart=on-failure
RestartSec=3
[Install]
WantedBy=graphical.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now x11vnc
Note: systemd service uses GDM auth path — update if user session display changes.
SetDesktopSize failed: 1 — harmless; physical display ignores client resize requestsEnd of stream immediately — x11vnc not running; rerun the scriptConnection refused — SSH tunnel failed or nothing on port 5900