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 , 可以隨時交流,樂意之至!
?
?
?
?
?
?
?
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
