Jade Dungeon

Barrier

共享键盘鼠标

共享键盘鼠标:synergy和它的开源版本 barrier

  • https://github.com/debauchee/barrier/
  • https://www.appinn.com/barrier/
  • https://blog.csdn.net/fgh544568/article/details/124854936
  • https://zhuanlan.zhihu.com/p/496268224

安装

Bonjour

在 Windows 下安装 Barrier 时,会自动安装 Bonjour 和 VC++ 运行库,然后就可以正常运行了。

证书问题

另外一个是碰到了证书错误的问题(如果没碰到就不管它):

ERROR: ssl certificate doesn't exist: /Users/appinn/Library/Application Support/barrier/SSL/Barrier.pem

解决方案,MAC OS系统使用 Openssl 命令生成证书即可:

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

对于 Windows 用户,需要有一个 openssl.exe 文件,OpenSSL 官网提供了一些下载 。如果你没碰到这个问题就不用了。

配置

指定配置文件:--config <path_to_saved_configuration>

配置文件例子:

# sample barrier configuration file
#
# comments begin with the # character and continue to the end of
# line.  comments may appear anywhere the syntax permits.

section: screens
	# three hosts named:  moe, larry, and curly
	moe:
	larry:
	curly:
end

section: links
	# larry is to the right of moe and curly is above moe
	moe:
		right = larry
		up    = curly

	# moe is to the left of larry and curly is above larry.
	# note that curly is above both moe and larry and moe
	# and larry have a symmetric connection (they're in
	# opposite directions of each other).
	larry:
		left  = moe
		up    = curly

	# larry is below curly.  if you move up from moe and then
	# down, you'll end up on larry.
	curly:
		down  = larry
end

section: aliases
	# curly is also known as shemp
	curly:
		shemp
end

问题:After loading my configuration on the client the field 'Server IP' is still empty!

修复:Edit your configuration to include the server's ip address manually with

    section: options
       serverhostname=<AAA.BBB.CCC.DDD>

使用的例子

Linux端启动脚本start-barrier.sh

/usr/bin/barriers -f --no-tray --debug INFO --name jade-t440p --disable-crypto --disable-client-cert-checking -c /tmp/Barrier.isWzGF --address :24800

windows端启动client的脚本barrier-autostart.bat

"C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug INFO --name jade-dungeon --ipc --stop-on-desk-switch --enable-drag-drop --disable-crypto --profile-dir "C:\Users\Jade Shan\AppData\Local\Barrier" [t440p.jade-dungeon.net]:24800

把脚本放到「定时任务」里。每次开机启动时以当前的用户执行, 打开「无法是否登录」选项。