SUSE Synergy Install

From NippAero

Jump to: navigation, search

Synergy Install on Suse 10.1 http://synergy2.sourceforge.net/

Contents

Install Synergy

Extract the RPM and install. Default directory is /usr/bin

Create script to check if Synergy is running

Create “synycheck” script somewhere like /home/shell:

mnipp@punky:~/src/> mkdir shell [use this dir to store misc shell scripts together]

The following is a display of what the script should look like:

 mnipp@punky:~/shell> cat syncheck
 syncheck=`ps -ef|grep synergy|grep -v grep`


 if [ -z "$syncheck" ]
  then
        echo "NO"
        /usr/bin/synergyc 10.45.58.61 [This is the Synergy Server IP]

  else
        echo "YES"

 fi

Test SynCheck Script

Run syncheck script manually to test if it is working:

mnipp@punky:~/shell> /home/shell/syncheck
YES

Verify Synergy is running

Check to see if Synergyc is running:

mnipp@punky:~/shell> ps -ef|grep syn
mnipp     3935     1  0 17:54 ?        00:00:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session /usr/X11R6/bin/kde
mnipp     9725     1  0 18:51 ?        00:00:05 /usr/bin/synergyc 10.252.108.61
mnipp    12575  4544  0 20:00 pts/3    00:00:00 grep syn

Stopping Synergy

To stop Synergyc:

mnipp@punky:~/shell> killall synergyc

Starting Synergy

To start Synergyc:

mnipp@punky:~/shell> /usr/bin/synergyc

Add to Cron

Edit CronTab

mnipp@punky:~/shell> crontab -e
#CRONTAB TO ADD SYNERGY CONNECTION
*/1 * * * * /home/mnipp/shell/syncheck
~
~
~
To Exit
Shift Q, 
Entering Ex mode.  Type "visual" to go to Normal mode.
:q!

Verify Cron

Display cron jobs:

mnipp@punky:~/src/shell> crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXpHEjjE installed on Tue Jun  6 00:49:53 2006)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
#CRONTAB TO ADD SYNERGY CONNECTION
*/1 * * * * /home/mnipp/shell/syncheck