Author Topic: How to get Synergy working  (Read 4913 times)

ongoto

  • Guest
How to get Synergy working
« on: May 25, 2010, 06:45:13 AM »
Setting up synergy
1. Install synergy
2. Create unique hostnames for your machines
3. Write a config file for the synergy server
4. Test run

Server
--------------------------------------------------------------------------
Install
Synergy installs two binaries; /usr/bin/synergys and /usr/bin/synergyc.
The first starts the server, the second the client.  TCP/IP is also
a requirement and PCLOS has that already set up and running.
Hostname
Each machine is identified by it's hostname.  They must be unique.
All linux distros I've seen use localhost.localdomain by default.  You
can change this to any hostname you like.  Set your hostname in /etc/sysconfig/network using your text editor.  You'll do this on each of
your machines.  (I use desktop#.localnet giving each machine a different
# number)
Config file
One machine has to be the server.  The other(s) will be the client(s).
On the server you need a config file which is read by synergys when
it starts up.  I made a synergy folder in /etc and named the config
file synergy.conf.  You get the IP numbers (inet addr:) for your machines using the ifconfig -a command in a terminal.  (The ones used here in the aliases
section are just examples)
The links section is where you describe the physical location of your
machines relative to each other. (in terms of screen edges)
/etc/synergy/synergy.conf
Code: [Select]
   section: screens
    desktop1.localnet:
    desktop2.localnet:
    laptop:
    end

    section: aliases
    desktop1.localnet:
    192.168.0.106
    desktop2.localnet:
    192.168.0.111
    laptop:
    192.168.0.108
    end

    section: links
    desktop1.localnet:
    up = desktop2.localnet
    left = laptop
    desktop2.localnet:
    down = desktop1.localnet
    laptop:
    right = desktop1.localnet
    end

    section: options
    screenSaverSync = false
    end
 

Testing server
The command to start the synergy server in the background as a daemon is:
synergys --config /etc/synergy/synergy.conf
But for testing in the foreground, until you get it working right, use the -f option:
synergys -f --config /etc/synergy/synergy.conf
Port conflict
The default port synergy uses is 24800.  If you get errors that say
something like "port already used" then try 24900 or another until
you find one that works.  You will use the -a option in the server command and prepend a colon to the port number  like this:
synergys -f -a :24888 --config /etc/synergy/synergy.conf


Clients
--------------------------------------------------------------------------
Testing client
Clients need no config file.  The command to start the synergy client(s)
is:
synergyc 192.168.0.106   ## the server machine IP number
If you had port errors with the server, then use a colon and append the port number to the command like this:
synergyc 192.168.0.106:24888
The port numbers have to match in both server and client.

Barring typos and other little mistakes, this should get you up and  
running with no errors.  If you move your mouse past the edge of
the server screen, it should show up in the client.  You should be
able to share the keyboard wherever the mouse pointer is and you should
be able to copy and paste between machines.
You can add more client machines.  You'll have to modify the
/etc/synergy/synergy.conf file when you do so.

When you are satisfied all is running well, run synergy in the background
as a daemon, as noted above, by removing the -f option.  If you used the -a
option for the port problem, keep that in the command.

Extra:  
   If you add the command to your /home/user/.bashrc file, synergy will
   autostart when you login.  There are other (better) ways to autostart
   as well.  

The end
« Last Edit: July 18, 2011, 10:56:04 AM by ongoto »

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2431
  • Any Bugs in site?
Re: How to get Synergy working
« Reply #1 on: August 18, 2010, 07:53:47 AM »
ongoto
I am finding your instructions most helpful, I appreciate your work. Has saved me a lot of time as I found the post with a SEARCH after I had seen a general reference to Synergy amongst items like VNC, Ultra VNC etc. since it is already in Synaptic I have downloaded and getting ready to install.

I am trying to find what program I need to install on my windows systems (yes I have to keep them going)
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

ongoto

  • Guest
Re: How to get Synergy working
« Reply #2 on: August 18, 2010, 11:13:53 PM »
Thank you for the kind words.  As I recall, setting up synergy on two windows boxes is much simpler than it was with linux.  Pretty much a point and click operation.
Take notes and post any new discoveries.
Cheers
« Last Edit: August 19, 2010, 02:36:57 PM by ongoto »

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12795
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: How to get Synergy working
« Reply #3 on: July 18, 2011, 10:08:49 AM »
This is brilliant! I had to open 24800 on the server in the PCC personal firewall but this is absolutely brilliant!

Andy

ongoto

  • Guest
Re: How to get Synergy working
« Reply #4 on: July 18, 2011, 10:57:17 AM »
I agree  ;D

Whoever developed synergy deserves a hug.