synergy
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| synergy [2017/06/23 16:59] – k2patel | synergy [2020/12/22 23:37] (current) – [Synergy] k2patel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Synergy ====== | ====== Synergy ====== | ||
| - | Project : [[https:// | + | Project : [[https:// |
| - | Due to infrastructure requirement, | + | :!: Barrier / Opensource forked from 1.x after it became paid. |
| - | I was able to successfully build Synergy and install on system, but failed | + | Project : [[https:// |
| + | |||
| + | ==== Installation ==== | ||
| + | :!: Since version 2.x there is GUI for synergy available | ||
| + | I've chose to use 2.x since it uses openssl | ||
| + | |||
| + | === Linux === | ||
| + | Most linux distro has package available. | ||
| + | <code bash | fedora> | ||
| + | sudo dnf install synergy | ||
| + | </ | ||
| + | |||
| + | === Mac === | ||
| <code bash> | <code bash> | ||
| - | export | + | git clone https:// |
| - | ./hm.sh conf -g2 --mac-sdk 10.12 --mac-identity ElCapitan | + | git checkout v2.0.0-stable |
| - | ./hm.sh build | + | brew update |
| - | ./hm.sh dist mac | + | brew upgrade |
| + | brew info qt | ||
| + | | ||
| + | export LD_LIBRARY_PATH=$(brew | ||
| + | export CPATH=$(brew | ||
| + | export PKG_CONFIG_PATH=$(brew | ||
| + | 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> | <code text> | ||
| - | You have OS X 10.11.6. The application requires OS X 10.12 or later. | + | ~/ |
| </ | </ | ||
| - | Next step for me is to explicitly build app for 10.11 using 10.12 SDK.< | + | ==== Starting server / client ==== |
| - | As quick fix here is what i changed. | + | In my case server is on linux and client |
| - | < | + | === Server === |
| - | diff --git a/ | + | == Configuration == |
| - | index f32ec483..7f41f489 100644 | + | < |
| - | --- a/ | + | # sample synergy configuration file |
| - | +++ b/ | + | # |
| - | @@ -449,10 +449,10 @@ class InternalCommands: | + | # comments begin with the # character and continue to the end of |
| - | if generator.cmakeName.find(' | + | # line. |
| - | sdkDir = self.getMacSdkDir() | + | # +-------+ +--------+ +---------+ |
| - | cmake_args += " | + | # |Laptop | |Desktop1| |iMac | |
| - | - cmake_args += " | + | # | |
| - | + cmake_args += " | + | # +-------+ +--------+ +---------+ |
| - | + | ||
| - | - | + | |
| - | - cmake_args += " | + | section: screens |
| - | + cmake_args += " | + | # three hosts named: |
| - | + cmake_args | + | # These are the nice names of the hosts to make it easy to write the config file |
| - | + | # The aliases section below contain the "actual" | |
| - | # if not visual studio, use parent dir | + | desk: |
| - | | + | mac: |
| - | @@ -510,7 +510,7 @@ class InternalCommands: | + | end |
| - | | + | |
| - | | + | section: links |
| - | + | # iMac is to the right of Desktop1 | |
| - | - | + | # Laptop is to the left of Desktop1 |
| - | + | + | desk: |
| - | + | right = mac | |
| - | | + | |
| - | if qMajor | + | # Desktop1 is to the right of Laptop |
| + | mac: | ||
| + | left = desk | ||
| + | |||
| + | end | ||
| + | |||
| + | section: aliases | ||
| + | # The "real" | ||
| + | desk: | ||
| + | desk | ||
| + | |||
| + | mac: | ||
| + | mac | ||
| + | end | ||
| + | </ | ||
| + | Now server can be using following command. | ||
| + | <code bash | start server> | ||
| + | / | ||
| </ | </ | ||
| - | After above changes i was able to build and run synergy, there you go package build on 10.12 SDK for OS 10.11. | + | === Client === |
| + | :?: One can also create the alias in bash profile | ||
| + | <code bash | start client> | ||
| + | ~/bin/synergy-core --client --enable-crypto -n mac desk | ||
| + | </ | ||
| + | ==== 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.1498237170.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
