User Tools

Site Tools


synergy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
synergy [2018/05/07 21:08]
k2patel
synergy [2018/05/07 21:12]
k2patel
Line 51: Line 51:
  
 === Server === === Server ===
 +== Configuration ==
 +<code bash | ~/​.synergy.conf>​
 +# 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: ​ Laptop, Desktop1, and iMac
 + # These are the nice names of the hosts to make it easy to write the config file
 + # The aliases section below contain the "​actual"​ names of the hosts (their hostnames)
 + 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 "​real"​ name of iMac is John-Smiths-iMac-3.local. If we wanted we could remove this alias and instead use John-Smiths-iMac-3.local everywhere iMac is above. Hopefully it should be easy to see why using an alias is nicer
 + desk:
 +   desk
 +
 + mac:
 +   mac
 +end
 +</​code>​
 +Now server can be using following command.
 <code bash | start server> <code bash | start server>
 /​usr/​bin/​synergy-core --server --name desk -c /​tmp/​Synergy.TJ6658 --address :24800 -c ~/​.synergy.conf --enable-drag-drop --enable-crypto --daemon /​usr/​bin/​synergy-core --server --name desk -c /​tmp/​Synergy.TJ6658 --address :24800 -c ~/​.synergy.conf --enable-drag-drop --enable-crypto --daemon
Line 56: Line 98:
  
 === Client === === Client ===
 +:?: One can also create the alias in bash profile
 <code bash | start client> <code bash | start client>
 +~/​bin/​synergy-core --client --enable-crypto -n mac desk
 </​code>​ </​code>​
 ==== Autossh ( If do not want to use built-in crytpo library ) ==== ==== Autossh ( If do not want to use built-in crytpo library ) ====
synergy.txt ยท Last modified: 2020/12/22 23:37 by k2patel