barrier-kvm
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "barrier-kvm" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4133b606127f5976162da631d20f67aa15280f59b69bb2cbebd0bfde1983656d. Verify the upstream source and version against https://skillhub.cn/skills/user_1e091b22/barrier-trans-deepin-win before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Barrier KVM setup skill: guides configuring Barrier software to share keyboard and mouse between a Linux server and Windows/Mac clients, covering installation, SSL certificate configuration, system settings, cross-OS screen layout configuration, and the important --disable-client-cert-checking workaround.
Introduction source: third_party · user_1e091b22 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Software, accounts and paid services
- 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.
- Testing
- Not tested
Browse files
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.serviceCurrent listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的跨操作系统键鼠共享解决方案,涵盖 Linux 服务器与 Windows/Mac 客户端的安装、SSL 配置、系统设置、屏幕布局配置
Highlights
- 触发词精准完整,覆盖中英文常见表达,边界清晰
Highlights
- 文档结构清晰,步骤完整,提供端到端示例,frontmatter 完整
Highlights
- 工具来源明确,参数正确,覆盖主要异常情况,提供详细的 Pitfalls 和解决方案
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 31 -
Administrator or elevated privileges
Elevate only when necessary. Keep protection and certificate validation enabled and avoid broad system access.
Mentioned in main document · lines 31
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- gh-proxy.com
- ghfast.top
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
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.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.