另外,本人在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, 能夠隨時交流,樂意之至!