Installation
另外,本人在centos6.5环境下作为server运行时,遇到一个问题,synergy1.5随着系统升级居然变成了1.3X,所以如果遇到类似问题,请您先用
rpm -qa synergy
来查看synergy的version,如若是version(client与server不匹配),请您在软件update时,注意synergy不要升级
Linux
您可以download this software【synergy】: http://synergy-project.org/
Windows and Mac OS X
Download and run the newest installer 同linux下载
Pre-configuration【安装install之前的相关配置】
First determine the IP addresses and host names for each machine and make sure each has a correct hosts file.
-
Arch Linux -
/etc/hosts linux下hosts【主机名与局域网ip匹配】文件路径 -
Windows -
C:\WINDOWS\system32\drivers\etc\hosts Window下hosts【主机名与局域网ip匹配】文件路径 - Mac OS X - How to Add Hosts to Local Hosts File . MAC下hosts【主机名与局域网ip匹配】文件路径
/etc/hosts
10.10.66.1 archserver.localdomain archserver
10.10.66.100 archleft.localdomain archleft
10.10.66.105 archright.localdomain archright
对该文件进行编辑,修改文件内容, 格式如 bold粗体, ip、hostname 根据自己情况而定
主机ip 主机名.localdomain 主机名
本篇文章介绍如何将linux【centos】作为server:
synergy的配置config文件:
路径:/etc/synergy.conf, 可以 vi /etc/synergy.conf 然后参照以下code内容
section: screens
desktop:
halfDuplexCapsLock
=
false
halfDuplexNumLock
=
false
halfDuplexScrollLock
=
false
xtestIsXineramaUnaware
=
false
switchCorners
=
none
switchCornerSize
=
0
notepad:
halfDuplexCapsLock
=
false
halfDuplexNumLock
=
false
halfDuplexScrollLock
=
false
xtestIsXineramaUnaware
=
false
switchCorners
=
none
switchCornerSize
=
0
end
section: aliases
end
section: links
desktop:
down
=
notepad
notepad:
up
=
desktop
end
section: options
relativeMouseMoves
=
false
screenSaverSync
=
true
win32KeepForeground
=
false
switchCorners
=
none
switchCornerSize
=
0
keystroke(Control
+l) =
switchToScreen(desktop)
keystroke(Control
+k) =
switchToScreen(notepad)
end
上面的 红色字体为hostname主机名 根据自己情况改变:
开启端口 port 24800 【synergy的服务port】:
1
关于网络防火墙:
2
(
2
)清除原有规则.
3
不管你在安装linux时是否启动了防火墙,如果你想配置属于自己的防火墙,那就清除现在filter的所有规则.
4
[root@tp ~]# iptables -
F 清除预设表filter中的所有规则链的规则
5
[root@tp ~]# iptables -X 清除预设表filter中使用者自定链中的规则
iptables -A INPUT -i p33p1 -p tcp --dport 24800 -j ACCEPT
上面的红色字体部分,为 网卡名 采用 ifconfig 命令查看您的 机器。
编辑服务service 文件:
路径: /etc/systemd/system/synergys@.service
直接: vi /etc/systemd/system/synergys@.service 进行编辑,内容参照如下:
[Unit]
Description
=
Synergy Server Daemon
After
=
network.target
[Service]
Type
=
forking
ExecStart
=/usr/bin/synergys --config
/etc/
synergy.conf
User
=%
i
[Install]
WantedBy
=multi-user.target
使服务生效
Then enable it as the appropriate user (replacing 'mary' with your username):
# systemctl enable synergys@ mary
# systemctl start synergys@ mary
上面的红色字体为您的linux 用户名username
后台启动synergy:
# synergys -f
window,网上资料较多,不介绍,个人 email:likaiweb@qq.com , 可以随时交流,乐意之至!

