另外,本人在centos6.5环境下做为server运行时,遇到一个问题,synergy1.5随着系统升级竟然变成了1.3X,因此若是遇到相似问题,请您先用 php
rpm -qa synergylinux
来查看synergy的version,如如果version(client与server不匹配),请您在软件update时,注意synergy不要升级web
您能够download this software【synergy】:http://synergy-project.org/centos
Download and run the newest installer 同linux下载服务器
First determine the IP addresses and host names for each machine and make sure each has a correct hosts file.网络
/etc/hosts linux下hosts【主机名与局域网ip匹配】文件路径
C:\WINDOWS\system32\drivers\etc\hosts Window下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 主机名
synergy的配置config文件:app
路径:/etc/synergy.conf, 能够 vi /etc/synergy.conf 而后参照如下code内容dom
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主机名根据本身状况改变:tcp
开启端口 port 24800 【synergy的服务port】:字体
1 关于网络防火墙: 2 (2)清除原有规则. 3 无论你在安装linux时是否启动了防火墙,若是你想配置属于本身的防火墙,那就清除如今filter的全部规则. 4 [root@tp ~]# iptables -F 清除预设表filter中的全部规则链的规则 5 [root@tp ~]# iptables -X 清除预设表filter中使用者自定链中的规则
上面的红色字体部分,为 网卡名 采用 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):
上面的红色字体为您的linux 用户名username
后台启动synergy:
window,网上资料较多,不介绍,我的email:likaiweb@qq.com, 能够随时交流,乐意之至!