Title: Synergy Setup Notes
Subject: Covers setup of synergy over ssh, between linux boxes.


Some of my config files are available at:
http://stilen.com/xtools/Synergy_files/

============================================
First:
Make a good config file on the server,
So that you know which machines are involved
============================================
    homer@geny:~> cat .synergy.conf

################################################
# Title: .synergy.conf
#
# Net: 192.168.0.0/24
#          _____   _____
# Host:   (geny)  (genx)
# IP:       101    102
# Loci:      |      |
#          -------------
# 2005/01/07
###################################
section: screens
  geny:
  genx:
end

section: links
  geny:
    right = genx
  genx:
    left  = geny
end

section: aliases
  geny:
    192.168.0.101
  genx:
    192.168.0.102
end

==============================================
Second:
Make a damon script for the server to run
==============================================
    homer@geny:~> vi ~/bin/syns.sh

#!/bin/sh
synergys  --config .synergy.conf --daemon

==============================================
Third:
Make a script for the client to run
==============================================
    homer@geny:~> vi /home/homer/bin/sync_ssh.sh

#!/bin/sh
ssh -f -N -L 24800:geny:24800 geny
synergyc --daemon --name genx --camp localhost

==============================================
Fourth:
Auto Start synergy when you log into KDE
==============================================
  On the Client:
    homer@geny:~> cd ~/.kde/Autostart/
    homer@geny:~> ln -s ~/bin/sync_ssh.sh
  On the Server:
    homer@genx:~> cd ~/.kde/Autostart/
    homer@genx:~> ln -s ~/bin/syns.sh

==============================================
Fifth:
SSH key exchange, client will auto log into 
synergy server (geny logs into genx)
==============================================
 On Client, if you already have:
    homer@geny:~>~/.ssh/id_dsa
         id_dsa.pub
	 identity
	 identity.pub
	 id_rsa
	 id_rsa.pub

 Create the 'authorized_keys*' files and trnasfer to server.
    homer@geny:~>cat ~/.ssh/id_dsa.pub   >> authorized_keys2
    homer@geny:~>cat ~/.ssh/id_rsa.pub   >> authorized_keys2
    homer@geny:~>cat ~/.ssh/identity.pub >> authorized_keys
  
 Set permissions:
    homer@geny:~> chown homer:homer authorized_keys*
    homer@geny:~> chmod 600 authorized_keys* 

  Transfer to synergy server 
    homer@geny:~>rsync -avz -e ssh authorized_keys* homer@genx:~/.ssh/

On Server, adjuest sshd configuration and restart if needed. 
   homer@genx:~>/etc/ssh/sshd_config
       RSAAuthentication    yes                        
       PubkeyAuthentication yes                     
       AuthorizedKeysFile   .ssh/authorized_keys2

==============================================
Sixth:
Start up the server and client
==============================================
On Server:
  homer@genx:~>./bin/syns.sh

  NOTE: for debugging, edit scritp,
         change: 
	   --daemon
	 to:      
           --no-daemon
==============================================