synergy
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| synergy [2017/06/23 16:37] – created k2patel | synergy [2020/12/22 23:37] (current) – [Synergy] k2patel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Synergy ====== | ====== Synergy ====== | ||
| - | Project : [[https:// | + | Project : [[https:// |
| + | |||
| + | :!: Barrier / Opensource forked from 1.x after it became paid. | ||
| + | Project : [[https:// | ||
| + | |||
| + | ==== Installation ==== | ||
| + | :!: Since version 2.x there is GUI for synergy available and there is no hm.sh script in source.\\ | ||
| + | I've chose to use 2.x since it uses openssl to secure connection. \\ | ||
| + | |||
| + | === Linux === | ||
| + | Most linux distro has package available. | ||
| + | <code bash | fedora> | ||
| + | sudo dnf install synergy | ||
| + | </ | ||
| + | |||
| + | === Mac === | ||
| + | <code bash> | ||
| + | git clone https:// | ||
| + | git checkout v2.0.0-stable | ||
| + | brew update | ||
| + | brew upgrade | ||
| + | brew info qt | ||
| + | export CMAKE_PREFIX_PATH="/ | ||
| + | export LD_LIBRARY_PATH=$(brew --prefix openssl)/ | ||
| + | export CPATH=$(brew --prefix openssl)/ | ||
| + | export PKG_CONFIG_PATH=$(brew --prefix openssl)/ | ||
| + | mkdir build | ||
| + | cmake -DCMAKE_OSX_SYSROOT=/ | ||
| + | make | ||
| + | </ | ||
| + | |||
| + | Once building binary is done, Copy files to **~/bin/** so it can be used used within path.\\ | ||
| + | |||
| + | |||
| + | ====Post Build==== | ||
| + | === Server === | ||
| + | <code bash> | ||
| + | openssl req -x509 -nodes -days 3650 -subj /CN=Synergy -newkey rsa:4096 -keyout ~/ | ||
| + | openssl x509 -fingerprint -sha1 -noout -in ~/ | ||
| + | sed -e " | ||
| + | cat ~/ | ||
| + | </ | ||
| + | |||
| + | === Client === | ||
| + | Copy server key hash to following file. | ||
| + | <code text> | ||
| + | ~/ | ||
| + | </ | ||
| + | |||
| + | ==== Starting server / client ==== | ||
| + | In my case server is on linux and client is on mac. | ||
| + | |||
| + | === Server === | ||
| + | == Configuration == | ||
| + | <code bash | ~/ | ||
| + | # sample synergy configuration file | ||
| + | # | ||
| + | # comments begin with the # character and continue to the end of | ||
| + | # line. comments may appear anywhere the syntax permits. | ||
| + | # +-------+ | ||
| + | # |Laptop | |Desktop1| |iMac | | ||
| + | # | | ||
| + | # +-------+ | ||
| + | |||
| + | |||
| + | section: screens | ||
| + | # three hosts named: | ||
| + | # These are the nice names of the hosts to make it easy to write the config file | ||
| + | # The aliases section below contain the " | ||
| + | desk: | ||
| + | mac: | ||
| + | end | ||
| + | |||
| + | section: links | ||
| + | # iMac is to the right of Desktop1 | ||
| + | # Laptop is to the left of Desktop1 | ||
| + | desk: | ||
| + | right = mac | ||
| + | |||
| + | # Desktop1 is to the right of Laptop | ||
| + | mac: | ||
| + | left = desk | ||
| + | |||
| + | end | ||
| + | |||
| + | section: aliases | ||
| + | # The " | ||
| + | desk: | ||
| + | desk | ||
| + | |||
| + | mac: | ||
| + | mac | ||
| + | end | ||
| + | </ | ||
| + | Now server can be using following command. | ||
| + | <code bash | start server> | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === Client === | ||
| + | :?: One can also create the alias in bash profile | ||
| + | <code bash | start client> | ||
| + | ~/ | ||
| + | </ | ||
| + | ==== Autossh ( If do not want to use built-in crytpo library ) ==== | ||
| + | |||
| + | Opensource version of synergy does not support encryption any more.\\ | ||
| + | In order to secure data transmitted over network i use ssh tunnel, they suggest the same on their website.\\ | ||
| + | Best bet is to use autossh, so if you are roaming between location it will auto connect when you are on same network.\\ | ||
| + | |||
| + | **Installation**\\ | ||
| + | <code bash> | ||
| + | brew install autossh | ||
| + | </ | ||
| + | |||
| + | **Setup Tunnel**\\ | ||
| + | <code bash> | ||
| + | autossh -f -v -M 24800 -N -R 24800: | ||
| + | </ | ||
| + | |||
| + | **Client**\\ | ||
| + | Set ServerIP = ' | ||
| + | |||
| + | That should do it. | ||
synergy.1498235839.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
