OpenSUSE Linux Rants

OpenSUSE Linux Tips, tricks, how-tos, opinions, and news

My Resume  -  My LinkedIn Profile

April 2, 2007

synergy in openSUSE 10.2 made even easier than before

by @ 7:03 am. Filed under bash, SUSE Tips & Tricks

Since last week, I have continued using synergy between my desktop and my laptop. I did get tired of running it manually from the command line every time I wanted to load it up. Because of this, I wrote some bash scripts. To start the server and client wasn't rocket science.

To start the synergy server, this is my bash script:


!#/bin/sh
synergys -f --config synergy.conf > /dev/null 2>&1 &

To start the synergy client, this is my bash script:


!#/bin/sh
synergyc -f --name laptop tomahawk > /dev/null 2>&1 &

Shutting down the synergy server wasn’t hard, either.

To stop the synergy server:

#!/bin/sh
killall synergys

To stop the synergy client:

#!/bin/sh
killall synergyc

But how does that stop me from having to run everything from the command line? It doesn't. This is why I made launcher buttons in my KDE Panels. I made one button for each of the scripts above. I put one button in on my desktop that links to the synergy server start script. I put another on the same machine pointing to the synergy server stop script. I also put launcher buttons in my KDE Panel on my laptop. These pointed, of course, to the synergy client start and stop scripts on that machine.

Now it is very easy. I click the Panel button on my desktop machine to start the synergy server. I then click the Panel button on my laptop to start the synergy client. They connect, and poof, I’m done. When I want to close up shop, I just click the button in the Panel on my desktop that runs the synergy server stop script. Then, I click the button on my laptop that points to the synergy client stop script.

Even more convenient than before.

5 Responses to “synergy in openSUSE 10.2 made even easier than before”

  1. David Mayr Says:

    Hi Scott,

    if you’d like to have it much easier to start you synergy server and client, use quicksynergy! you can download suse rpms from my opensuse build service home project at:
    http://software.opensuse.org/download/home:/dmayr

    David

  2. Scott Morris Says:

    Nice! I will have to check that out.

  3. Scott Morris Says:

    Absolutely awesome point. I did try to run them as daemons, but it wasn’t working. This is the only way I could make it work. Thanks for coming by.

  4. sharms Says:

    Also when starting, why not start them as daemons? That -f option doesn’t really help you, especially since you are terminating them using killall.

  5. Jake Says:

    Scott, I too had that problem with synergy not working without being ran in foreground. to get around this I had to build the synergy server from source. The client machine is using the rpm and is about to connect without -f.

OpenSUSE Linux Rants
Official OpenSUSE Linux Site

internal links:

categories:

SUSE Resources

search blog:

archives:

July 2018
S M T W T F S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

61 queries. 1.460 seconds