基于barrier的跨系统、多机键鼠协同

发布时间 2023-12-08 09:15:15作者: 巴蜀秀才

1、Windows与MAC安装

直接基于github安装
https://github.com/debauchee/barrier#distro-specific-packages

2、ubuntu安装

2.1 环境准备

sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

2.2 安装包下载

https://dl.flathub.org/repo/appstream/com.github.debauchee.barrier.flatpakref

2.3 安装barrier

flatpak install com.github.debauchee.barrier.flatpakref

2.4 运行

flatpak run com.github.debauchee.barrier

2.5 日志报错解决

bug1: 日志报错提醒:barrier.pem不存在;解决方案就是在报错的路径下创建一个,注意一定要进入报错路径创建。创建命令如下:

openssl req -x509 -nodes -days 365 -subj /CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem

bug2: 多机连接失败;解决问题是看服务端和客户端名字是否一样;检查SSL的开启状态;不同机子之间最好都设置打开,然后重启、连接。


参考链接:

  1. https://blog.csdn.net/u013187057/article/details/127211704
  2. https://blog.csdn.net/weixin_42301220/article/details/121197328