Setting up synergy on a complex network


 
Thread Tools Search this Thread
Operating Systems Linux Setting up synergy on a complex network
# 1  
Old 09-04-2014
Question Setting up synergy on a complex network

Hi,

I'm trying to use synergy at my workplace. I have a Windows laptop, which I want to use as the client and a Linux desktop which will be the server. Unfortunately, these machines are not on the same Local Area Network.

The only way to access the Linux desktop from my Windows laptop is by ssh-ing a gateway machine (essentially a Linux workstation that's on the same network as the windows laptop and is also connected to the Linux desktop).

I'd like to know how to setup the synergy server on my Linux desktop so that the Windows laptop can detect it. I've been told that this was set-up earlier but after a new Linux OS update it doesn't work anymore.

Some details on the setup

The gateway machine (which runs Ubuntu 10.04) has two ethernet cards - first for the LAN network that connects to the Windows laptop and the second that connects to the Linux desktop (which runs SUSE Enterprise 11).

I can ping from the Windows laptop to the gateway machine, but not the other way round. I can ping to and from the gateway machine to the Linux desktop and from the gateway to the Windows machine. Also, I don't mind changing client and server as long as I can get it to work.

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Network Manager not setting correct DNS servers

Since a few weeks i use Ubuntu 16 on my laptop: # uname -a Linux xxxx 4.8.0-52-generic #55~16.04.1-Ubuntu SMP Fri Apr 28 14:36:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Because i want to use a custom name server i set the properties in the "Edit Connections" dialogue to the following: ... (2 Replies)
Discussion started by: bakunin
2 Replies

2. UNIX for Dummies Questions & Answers

Setting up a home network for learning Linux

I am working on learning Linux, and somebody suggested setting up Linux on a separate computer, and searching for answers to whatever may be needed, on a different computer plugged in to the Internet. I have a Windows 7 PC, plugged in to a cable modem, and an old notebook, Compaq Presario R3000... (5 Replies)
Discussion started by: AdultFoundry
5 Replies

3. UNIX for Advanced & Expert Users

Setting up complex Date conditions in Autosys

Scenario : Job A - to be started at 2230 PM everyday ( mo-fr ) Job B - Need to start after 4 hours Jobs A started,irrespective of the Jobs A status .Even if Job A has failed/Succeeded/Terminated/Running Job B should start 4 hours after Job A started.It cannot be set to 0230 AM next day because... (2 Replies)
Discussion started by: krg.sati
2 Replies

4. AIX

Synergy on AIX

I am trying to install Synergy (1.3.1) on AIX 5.3 and it gets to checking pthreads and fails: . . . checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for ranlib... ranlib checking for dot...... (1 Reply)
Discussion started by: bitstone
1 Replies

5. UNIX for Dummies Questions & Answers

Synergy on AIX

I am trying to install Synergy (1.3.1) on AIX 5.3 and it gets to checking pthreads and fails: . . . checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for ranlib... ranlib checking for dot...... (1 Reply)
Discussion started by: bitstone
1 Replies

6. IP Networking

Need to solve complex network problem

I have a Red Hat linux server X on a x.x.0.0 network. This machine also has to communicate with another server Y on a network called y.y.0.0 Server X has two network interfaces. eth0 is configured on the x.x.0.0 network and has a default gateway on the x.x.0.0 network. In order to... (4 Replies)
Discussion started by: soliberus
4 Replies

7. UNIX for Dummies Questions & Answers

Need help setting up a home solaris private network

Hi all, I just purchased 2 Ultra 10 servers and I want to practice with home networking. I want to create a private network where I can connect both boxes to the internet via broadband using my four port adsl modem/router. My ISP assigns me 192.168 addresses via DHCP and I use the ISP's DNS but... (1 Reply)
Discussion started by: Kongowea
1 Replies

8. IP Networking

network speed not tale with the port setting

Hi all, one of my Sun Box facing the problem. The network port i had set to Auto-Negotiated and i had edited the /etc/system/ file in the Sun box as below: set hme:hme_adv_autoneg_cap=1 set hme:hme_adv_100fdx_cap=0 set hme:hme_adv_100hdx_cap=0 But when i checked the /var/adm/messages/, it... (0 Replies)
Discussion started by: AirWalker83
0 Replies

9. Solaris

setting up unix and 2000 server on network

i have a question i want to setup a unix server and 2000 server with an xp client i want to run bind can i still setup a primary dns on the 2000 box or can u use secondary dns on 2000 also i want to setup an exchange server on the 2000 server for email between the windows machines? basically i... (2 Replies)
Discussion started by: rmuhammad
2 Replies

10. UNIX for Dummies Questions & Answers

setting up a network printer

Hello people, I'm attempting to setup a printer connection to a printer running off the NT printer server, but with little success. I'm using the admintool, go to ADD printers...where it offers 'local' and 'access to printer'. I have chosen the 'access to printer' option as i'm attempting to... (1 Reply)
Discussion started by: colesy
1 Replies
Login or Register to Ask a Question
SYNERGYS(1)						      General Commands Manual						       SYNERGYS(1)

NAME
synergys -- synergy server SYNOPSIS
synergys [-a address | --address address ] [-c pathname | --config pathname ] [-d level | --debug level ] [--display display ] [--daemon | { --no-daemon | -f } ] [-n screen-name | --name screen-name ] [--restart | { --no-restart | -1 } ] address synergys { -h | --help } synergys --version DESCRIPTION
Starts the synergys mouse/keyboard sharing server. Synergy lets you use one keyboard and mouse across multiple computers. To do so it requires that all the computers are connected to each other via TCP/IP networking. Most systems come with this installed. This manual page was written for the Debian distribution because the original program does not have a manual page. Slightly old documenta- tion exists in /usr/share/doc/synergy/obsolete/index.html; it is the most up-to-date information available, despite the pathname. OPTIONS
-a address --address address listen for clients on the given address. The argument for --address is of the form: [hostname][:port]. The hostname must be the address or hostname of an interface on the system. The default is to listen on all interfaces. The port overrides the default port, 24800. -c pathname --config pathname use the named configuration file instead. If no configuration file pathname is provided then the first of the following to load sets the configuration: o ~/.synergy.conf o /etc/synergy.conf If no configuration file can be loaded then the configuration uses its defaults with just the server screen. -d level --debug level filter out log messages with priority below level. Debug levels are from highest to lowest: FATAL, ERROR, WARNING, NOTE, INFO, DEBUG, DEBUG1, and DEBUG2. Only messages at or above the given level are logged. Messages are logged to a terminal window when running in the foreground, and to syslog when running as a daemon. --display display connect to the X server at display --daemon run the server as a daemon. -f --no-daemon run the server in the foreground. -n screen-name --name screen-name use screen-name instead of the hostname to identify this screen in the configuration. This option lets the client use a name other than its hostname for its screen. --restart restart the server automatically if it fails. -1 --no-restart do not try to restart the server if it fails for some reason. -h --help display help and exit. --version display version information and exit. CONFIGURING THE SERVER
The synergy server requires configuration. The configuration file is a plain text file broken into sections. Each section has the form: section: <name> <args> end Comments are introduced by `#' and continue to the end of the line. The file can have the following sections. The `screens' section must appear before the `links' and `aliases' sections. screens <args> is a list of screen names, one name per line, each followed by a colon. Names are arbitrary strings but they must be unique. The hostname of each computer is recommended. There must be a screen name for the server and each client. Each screen can specify a number of options. Options have the form `name = value' and a listed one per line after the screen name. Example: section: screens moe: larry: halfDuplexCapsLock = true halfDuplexNumLock = true curly: meta = alt end This declares three screens named: moe, larry, and curly. Screen `larry' has half-duplex caps lock and num lock keys (see below) and screen `curly' converts the meta modifier key to the alt key. Screen can have the following options: o halfDuplexCapsLock = {true|false} This computer has a caps lock key that doesn't report a press and a release event when the user presses it but instead reports a press event when it's turned on and a release event when it's turned off. If caps lock acts strangely on all screens then you may need this option on the server screen. If it acts strangely on one screen then that screen may need the option. o halfDuplexNumLock = {true|false} This is identical to halfDuplexCapsLock except it applies to the num lock key. o xtestIsXineramaUnaware = {true|false} This option works around a bug in the XTest extension when used in combination with Xinerama. It affects X11 clients only. Not all versions of the XTest extension are aware of the Xinerama extension. As a result, they do not move the mouse correctly when using multiple Xinerama screens. This option is currently true by default. If you know your XTest extension is Xinerama aware then set this option to false. o Modifier keys: shift = {shift|ctrl|alt|meta|super|none} ctrl = {shift|ctrl|alt|meta|super|none} alt = {shift|ctrl|alt|meta|super|none} meta = {shift|ctrl|alt|meta|super|none} super = {shift|ctrl|alt|meta|super|none} Map a modifier key pressed on the server's keyboard to a different modifier on this client. This option only has an effect on a client screen; it's accepted and ignored on the server screen. You can map, say, the shift key to shift (the default), ctrl, alt, meta, super or nothing. Normally, you wouldn't remap shift or ctrl. You might, however, have an X11 server with meta bound to the Alt keys. To use this server effectively with a windows client, which doesn't use meta but uses alt extensively, you'll want the windows client to map meta to alt (using `meta = alt'). links <args> is a list of screen names just like in the `screens' section except each screen is followed by a list of links, one per line. Each link has the form `<left|right|up|down> = <name>'. A link indicates which screen is adjacent in the given direction. Example: section: links moe: right = larry up = curly larry: left = moe up = curly curly: down = larry end This indicates that screen `larry' is to the right of screen `moe' (so moving the cursor off the right edge of moe would make it appear at the left edge of larry), `curly' is above `moe', `moe' is to the left of `larry', `curly' is above `larry', and `larry' is below `curly'. Note that links do not have to be symmetrical; moving up from moe then down from curly lands the cursor on larry. aliases <args> is a list of screen names just like in the `screens' section except each screen is followed by a list of aliases, one per line *not* followed by a colon. An alias is a screen name and must be unique. During screen name lookup each alias is equivalent to the screen name it aliases. So a client can connect using its canonical screen name or any of its aliases. Example: section: aliases larry: larry.stooges.com curly: shemp end Screen `larry' is also known as `larry.stooges.com' and can connect as either name. Screen `curly' is also known as `shemp'. (Hey, it's just an example.) options <args> is a list of lines of the form `name = value'. These set the global options. Example: section: options heartbeat = 5000 switchDelay = 500 end You can use the following options: o heartbeat = N The server will expect each client to send a message no less than every N milliseconds. If no message arrives from a client within 3N seconds the server forces that client to disconnect. If synergy fails to detect clients disconnecting while the server is sleeping or vice versa, try using this option. o switchDelay = N Synergy won't switch screens when the mouse reaches the edge of a screen unless it stays on the edge for N milliseconds. This helps prevent unintentional switching when working near the edge of a screen. o switchDoubleTap = N Synergy won't switch screens when the mouse reaches the edge of a screen unless it's moved away from the edge and then back to the edge within N milliseconds. With the option you have to quickly tap the edge twice to switch. This helps prevent uninten- tional switching when working near the edge of a screen. o screenSaverSync = {true|false} If set to false then synergy won't synchronize screen savers. Client screen savers will start according to their individual con- figurations. The server screen saver won't start if there is input, even if that input is directed toward a client screen. The synergy server will try certain pathnames to load the configuration file if the user doesn't specify a path using the `--config' com- mand line option. `synergys --help' reports those pathnames. RUNNING THE SERVER
Run the server on the computer that has the keyboard and mouse to be shared. You must have prepared a configuration file before starting the server. The server should be started before the clients but that's not required. Run the synergy server on the server system using the following command line: synergys -f [--config config-pathname] Replace config-pathname with the path to the configuration file. See OPTIONS for the default locations of the configuration file. The `-f' option causes synergys to run in the foreground. This is recommended until you've verified that the configuration works. If you didn't include the system's hostname in the configuration file (either as a screen name or an alias) then you'll have to add `--name screen-name' to the command line, where screen-name is a name in the configuration file. You can use `synergys --help' for a list of command line options. See `Starting Automatically on Unix' below for running synergy automatically when the X server starts. CONFIGURE SYNERGY TO START AUTOMATICALLY
Synergy requires an X server. That means a server must be running and synergy must be authorized to connect to that server. It's best to have the display manager start synergy. You'll need the necessary (probably root) permission to modify the display manager configuration files. If you don't have that permission you can start synergy after logging in via the .xsession file. To start the server use something like: killall synergys synergys [<options>] --config <config-pathname> <options> must not include `-f' or `--no-daemon'. If the configuration pathname is one of the default locations then you don't need the `--config' option. Note that some display managers (xdm and kdm, but not gdm) grab the keyboard and do not release it until the user logs in, for security reasons. This prevents a synergy server from sharing the mouse and keyboard until the user logs in. NETWORK SECURITY
Synergy has no built-in support for encryption or authentication. The server accepts connections from any computer. The server and clients send all data unencrypted which means the clipboard and mouse and keyboard events (e.g. typed passwords) are easily examined by anyone listening on the network. Therefore, do not run synergy on untrusted networks except as follows. You can use SSH (secure shell) to provide strong authentication and encryption to synergy without modifying either SSH or synergy. On Linux and Unix a free implementation of SSH called OpenSSH is available at http://www.openssh.com/. On Windows you can use the Cygwin ver- sion of OpenSSH. ssh -f -N -L 24800:server-hostname:24800 server-hostname where server-hostname is the name or address of the SSH and synergy server host. 24800 is the default synergy port; replace it with which- ever port you use if you don't use the default. Once ssh authenticates with the server, start the synergy client as usual except use `localhost' or `127.0.0.1' for the server address. Synergy will then pass all communication through SSH which encrypts it, passes it over the network, decrypts it, and hands it back to synergy. Authentication is provided by SSH's authentication. FILES
~/.synergy.conf, /etc/synergy.conf SEE ALSO
synergyc(1), ssh(1) AUTHOR
This manual page was written by Daniel Lutz <danlutz@debian.org> for the Debian system. Edited by Titus Barik <barik@ieee.org>. SYNERGYS(1)