Installation
另外,本人在centos6.5環(huán)境下作為server運(yùn)行時(shí),遇到一個(gè)問(wèn)題,synergy1.5隨著系統(tǒng)升級(jí)居然變成了1.3X,所以如果遇到類似問(wèn)題,請(qǐng)您先用
rpm -qa synergy
來(lái)查看synergy的version,如若是version(client與server不匹配),請(qǐng)您在軟件update時(shí),注意synergy不要升級(jí)
Linux
您可以download this software【synergy】: http://synergy-project.org/
Windows and Mac OS X
Download and run? the newest installer ? 同linux下載
Pre-configuration【安裝install之前的相關(guān)配置】
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【主機(jī)名與局域網(wǎng)ip匹配】文件路徑 - 
      Windows -?
      
C:\WINDOWS\system32\drivers\etc\hosts ??Window下hosts【主機(jī)名與局域網(wǎng)ip匹配】文件路徑 - Mac OS X -? How to Add Hosts to Local Hosts File . ??MAC下hosts【主機(jī)名與局域網(wǎng)ip匹配】文件路徑
 
    /etc/hosts
  
  
    
      
      10.10.66.1        archserver.localdomain       archserver
    
    
10.10.66.100      archleft.localdomain         archleft
10.10.66.105      archright.localdomain        archright
    
    
    對(duì)該文件進(jìn)行編輯,修改文件內(nèi)容, 格式如 bold粗體, ip、hostname 根據(jù)自己情況而定
    
    
      主機(jī)ip  主機(jī)名.localdomain  主機(jī)名
    
  
  本篇文章介紹如何將linux【centos】作為server:
synergy的配置config文件:
路徑:/etc/synergy.conf, 可以 vi ?/etc/synergy.conf ? ? ? 然后參照以下code內(nèi)容
      
        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主機(jī)名 根據(jù)自己情況改變:
?
開(kāi)啟端口 port 24800 【synergy的服務(wù)port】:
      
        
          1
        
        
          關(guān)于網(wǎng)絡(luò)防火墻: 
        
        
          2
        
         (
        
          2
        
        
          )清除原有規(guī)則. 
        
        
          3
        
        
          不管你在安裝linux時(shí)是否啟動(dòng)了防火墻,如果你想配置屬于自己的防火墻,那就清除現(xiàn)在filter的所有規(guī)則. 
        
        
          4
        
         [root@tp ~]# iptables -
        
          F 清除預(yù)設(shè)表filter中的所有規(guī)則鏈的規(guī)則 
        
        
          5
        
         [root@tp ~]# iptables -X        清除預(yù)設(shè)表filter中使用者自定鏈中的規(guī)則
      
    
  ?
iptables -A INPUT -i p33p1 -p tcp --dport 24800 -j ACCEPT
上面的紅色字體部分,為 網(wǎng)卡名 采用 ifconfig 命令查看您的 機(jī)器。
?
?
編輯服務(wù)service 文件:
路徑: ? ? ? /etc/systemd/system/synergys@.service
直接: vi? /etc/systemd/system/synergys@.service ? ? ? ? ? ? 進(jìn)行編輯,內(nèi)容參照如下:
      
        [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
    
  使服務(wù)生效
Then enable it as the appropriate user (replacing 'mary' with your username):
# systemctl enable synergys@ mary
# systemctl start synergys@ mary
上面的紅色字體為您的linux 用戶名username
?
后臺(tái)啟動(dòng)synergy:
# synergys -f
?
window,網(wǎng)上資料較多,不介紹,個(gè)人 email:likaiweb@qq.com , 可以隨時(shí)交流,樂(lè)意之至!
?
?
?
?
?
?
?
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061
					微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元
					
