barrier-kvm
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "barrier-kvm":https://skillpi.com/zh/skills/deepskill-4133b606127f5976162da631d20f67aa15280f59b69bb2cbebd0bfde1983656d。安装前核对上游来源和版本:https://skillhub.cn/skills/user_1e091b22/barrier-trans-deepin-win。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Barrier KVM 设置技能:指导在 Linux 服务器与 Windows/Mac 客户端之间设置 Barrier 软件以共享键盘和鼠标,涵盖安装、SSL 证书配置、系统设置、跨操作系统屏幕布局配置,以及关键的 --disable-client-cert-checking 修复选项。
介绍来源: third_party · user_1e091b22 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: barrier-kvm
description: Set up Barrier software KVM to share keyboard and mouse across multiple computers (Linux server + Windows/Mac clients). Covers install, SSL certs, config, cross-OS screen layout, and the critical --disable-client-cert-checking fix.Barrier KVM Setup
Set up Barrier software KVM so one keyboard/mouse controls multiple computers across a LAN. Linux is the server (keyboard/mouse attached), Windows/Mac are clients.
Trigger
User says: "barrier", "KVM", "share keyboard mouse", "一套键鼠控制多台电脑", "键鼠共享"
Step 1: Gather Info
Ask the user:
- Linux hostname for screen name (default: from
hostname) - Windows hostname for screen name
- Which side is Linux? (left/right/top/bottom of Windows)
- Linux IP (auto-detected)
- Screen info: Linux landscape or portrait? Windows single/dual monitor?
Step 2: Download & Install Barrier
The skill contains no binaries — everything is fetched on demand.
Linux (Deepin / Ubuntu / Debian)
# Install Barrier from apt
sudo apt update && sudo apt install barrier -y
# Verify
barrier --version
Windows Installer → Desktop
Download the Windows installer and place it on the Linux desktop for the user to transfer:
# Download via GitHub proxy (works in China)
wget -O ~/Desktop/BarrierSetup-2.4.0-release.exe \
"https://ghfast.top/https://github.com/debauchee/barrier/releases/download/v2.4.0/BarrierSetup-2.4.0-release.exe"
# Fallback proxy if ghfast.top is unavailable:
# wget -O ~/Desktop/BarrierSetup-2.4.0-release.exe \
# "https://gh-proxy.com/https://github.com/debauchee/barrier/releases/download/v2.4.0/BarrierSetup-2.4.0-release.exe"
Then tell the user:
请将桌面上的 BarrierSetup-2.4.0-release.exe 通过 U 盘或 SMB 共享拷贝到 Windows 电脑上,双击安装。
Step 3: Generate SSL Certificate
mkdir -p ~/.local/share/barrier/SSL
openssl req -x509 -newkey rsa:2048 \
-keyout ~/.local/share/barrier/SSL/Barrier.pem \
-out ~/.local/share/barrier/SSL/Barrier.pem \
-days 3650 -nodes -subj "/CN=Barrier"
Step 4: Create Config File
Write ~/.config/barrier/barrier.conf replacing LINUX-PC and WINDOWS-PC:
section: screens
LINUX-PC:
WINDOWS-PC:
end
section: links
LINUX-PC:
right = WINDOWS-PC
WINDOWS-PC:
left = LINUX-PC
end
Adjust right/left/up/down per the user's layout.
Step 5: Start Server
Critical flags — omitting these causes connection failures:
barriers -f \
--config ~/.config/barrier/barrier.conf \
--enable-crypto \
--disable-client-cert-checking \
--name LINUX-PC
| Flag | Why |
|---|---|
--enable-crypto |
SSL encryption (default on most Windows builds) |
--disable-client-cert-checking |
Requirement. Windows client typically has no certificate; without this the server rejects it with "peer did not return a certificate" |
If port 24800 is in use, kill the old process first:
fuser -k 24800/tcp; pkill -9 barriers
Step 6: Guide Windows Setup
Give the user these instructions for the Windows machine:
- Install Barrier on the Windows machine using BarrierSetup-2.4.0-release.exe (downloaded to Linux desktop in Step 2 — transfer to Windows via USB/SMB)
- Open Barrier → check Client (NOT Server)
- Server IP: enter Linux IP
- Screen name: must match the name in the config file exactly
- Click Apply → Start
- If SSL settings are needed: Edit → Settings → Security → ensure "Enable SSL Encryption" is checked
Step 7: Verify
Check connection:
ss -tnp | grep 24800
Should show ESTABLISHED. Test mouse transition across the screen edge.
Pitfalls
- SSL rejection: The #1 issue. Always use
--disable-client-cert-checking. - Port conflict: Old barriers may hold port 24800. Kill with
fuser -k 24800/tcpbefore starting. - Screen name mismatch: Must be identical on both sides, case-sensitive.
- Portrait/Landscape mix: Barrier maps Y proportionally. If mouse jumps oddly, 1080→3000 width transitions can feel abrupt — this is normal.
- barrierc auto-connect: The Barrier GUI may auto-start a barrierc client. Kill it if it conflicts:
pkill barrierc. - Windows client disconnects immediately: Almost always SSL certificate issue. Re-verify
--disable-client-cert-checkingis on.
Optional: Auto-start on Boot (systemd)
Write ~/.config/systemd/user/barriers.service (replace LINUX-PC):
[Unit]
Description=Barrier Server
After=graphical-session.target
[Service]
ExecStart=/usr/bin/barriers -f \
--config %h/.config/barrier/barrier.conf \
--enable-crypto \
--disable-client-cert-checking \
--name LINUX-PC
Restart=on-failure
[Install]
WantedBy=graphical-session.target
Enable it:
systemctl --user daemon-reload
systemctl --user enable --now barriers.service当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的跨操作系统键鼠共享解决方案,涵盖 Linux 服务器与 Windows/Mac 客户端的安装、SSL 配置、系统设置、屏幕布局配置
亮点
- 触发词精准完整,覆盖中英文常见表达,边界清晰
亮点
- 文档结构清晰,步骤完整,提供端到端示例,frontmatter 完整
亮点
- 工具来源明确,参数正确,覆盖主要异常情况,提供详细的 Pitfalls 和解决方案
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 31 行 -
管理员或提升权限
确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。
主文档提及 · 第 31 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- gh-proxy.com
- ghfast.top
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。