關於【鍵鼠<局域網>共享軟件:synergy】install

Installation

另外,本人在centos6.5環境下做爲server運行時,遇到一個問題,synergy1.5隨着系統升級竟然變成了1.3X,因此若是遇到相似問題,請您先用 php

rpm -qa synergylinux

來查看synergy的version,如如果version(client與server不匹配),請您在軟件update時,注意synergy不要升級web

Linux

您能夠download this software【synergy】:http://synergy-project.org/centos

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  主機名
Note: Check that the clients can reach the server.【保證client客戶端能夠connect鏈接server服務器】
 

本篇文章介紹如何將linux【centos】做爲server:

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中使用者自定鏈中的規則

 

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

相關文章
相關標籤/搜索