Computerglitch

An ongoing adventure

Synergy

I have a CentOS box and a Windows XP box I wanted to be able to easily switch between. Instead of using a KVM switch I decided to use Synergy to switch between two monitors.

To setup Synergy I first installed it on CentOS from the EPEL repo:

1
yum install synergy-plus

For reference my systems are: xp=WindowsXP Box despina=CentOS Box (replace xp and despina with your system names) Once Synergy is installed you must configure it. First edit /etc/synergy.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
section: screens
xp:
despina:

end

section: links

xp:
right = despina

despina:
left = xp

end

This tells Synergy that to access my Windows XP system, move the mouse off the right side of the screen on my CentOS system.

To make Synergy start at bootup I added the following to my /etc/rc.local file:

1
/usr/bin/synergyc -f xp &

This tells Synergy to connect to my Windows XP system at startup. I also wanted to have Synergy start at the very initial login page, to do that I had to do the following:

Edit /etc/gdm/Init/Default and add the following line at the very end but before exit 0 line:

1
/usr/bin/synergyc -f xp &

Now add the following to the very top (after the #!/bin/sh line) of the /etc/gdm/PreSession/Default file:

1
/usr/bin/synergyc -f xp &

Now to configure my Windows XP system. I simply downloaded and installed from http://synergy2.sourceforge.net/

Once it was installed I hit the Configure button and setup my screens as follows:

And that’s it. I can now move between systems simply by moving my mouse to the edge of the screen.

Comments