Synergy是个开源的软件,支持在一个局域网中的多台电脑之间共享鼠标键盘,支持Windows, Linux和Mac OS。
http://synergy-foss.org/
现在有2台电脑,分别命名为:LeftComputer 和 RightComputer,其位置关系如名所示。LeftComputer安装Fedora14,RightComputer安装Win7,目标是使用Win7主机的键盘和鼠标同时控制两台电脑,即Windows 作为服务器端,Linux作为客户端。
在Win7上下载 1.4.3 Beta 64 bit for Windows 版本,安装。运行,出现配置界面。
勾选 “Server(share this computer's mouse and keyboard)”。
选中“Configure interactively:”,进入“Configure Server“:
从右上角拖动一个屏幕到格子里,双击修改属性。点击OK,再点击start,状态栏右下角出现一个圆圈标志,wait for connection。
如果选择“Use existing configuration”,可以创建一个synergy.sgc文件,内容如下(这是使用1.3.7版本时自动生成的)
section: screens cnlilychen001: switchCorners = none switchCornerSize = 0 Fedora-lilychen: switchCorners = none switchCornerSize = 0 end section: links cnlilychen001: left = Fedora-lilychen Fedora-lilychen: right = cnlilychen001 end section: aliases cnlilychen001: Win7 Fedora-lilychen: Fedora14 end
Linux 端下载1.4.3 Beta for Fedora and Red Hat,安装。
打开Terminal,输入:$/usr/bin/synergyc -f [RightComputer's IP]
-f 的意思是可以在前台看见调试信息。
(停止防火墙 sudo service iptables stop)
[Fedora-lilychen_988 ~/nettuner_claro/main]$ /usr/bin/synergyc -f 10.172.56.137 Synergy 1.3.7 Client on Linux 2.6.35.13-92.fc14.i686 #1 SMP Sat May 21 17:39:42 UTC 2011 i686 started client connecting to '10.172.56.137': 10.172.56.137:24800 connected to server entering screen leaving screen entering screen leaving screen
Linux做服务器端,Windows做客户端的配置,问google吧:)