barrier-kvm

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.

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.

0 Downloads

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

Browse files at the source ↗

Original SKILL.md

Open original ↗
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:

  1. 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)
  2. Open Barrier → check Client (NOT Server)
  3. Server IP: enter Linux IP
  4. Screen name: must match the name in the config file exactly
  5. Click Apply → Start
  6. 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

  1. SSL rejection: The #1 issue. Always use --disable-client-cert-checking.
  2. Port conflict: Old barriers may hold port 24800. Kill with fuser -k 24800/tcp before starting.
  3. Screen name mismatch: Must be identical on both sides, case-sensitive.
  4. Portrait/Landscape mix: Barrier maps Y proportionally. If mouse jumps oddly, 1080→3000 width transitions can feel abrupt — this is normal.
  5. barrierc auto-connect: The Barrier GUI may auto-start a barrierc client. Kill it if it conflicts: pkill barrierc.
  6. Windows client disconnects immediately: Almost always SSL certificate issue. Re-verify --disable-client-cert-checking is 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

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供完整的跨操作系统键鼠共享解决方案,涵盖 Linux 服务器与 Windows/Mac 客户端的安装、SSL 配置、系统设置、屏幕布局配置
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖中英文常见表达,边界清晰
Structure and Standards95/100

Highlights

  • 文档结构清晰,步骤完整,提供端到端示例,frontmatter 完整
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常情况,提供详细的 Pitfalls 和解决方案
Evidence Verifiability (mean of the first four)93/100

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

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.