Ubuntu 8.04 Hardy Heron Synergy Client Setup
In the Teknynja cave I have a MS Windows XP box with two monitors (my main development system) and a Ubuntu box with one monitor (my Internet offload system). I use Synergy to control the Ubuntu system using XP's mouse and keyboard. Since the Ubuntu box doesn't have a keyboard or mouse connected to it, a little hacking is required to get the Synergy client running before the login screen. I've been doing this with my Ubuntu 7.04 system for a while, and now that I am setting up a replacement Ubuntu 8.04 system, I thought I would document the Synergy client setup for future reference. It should be noted that I installed Ubuntu Hardy Heron from the Alternate CD, but that should not make a difference for this procedure. I also assume that you already have the Synergy keyboard/mouse server configured and running somewhere on your network.
First, install Synergy on the Ubuntu system using:
sudo apt-get install synergy
Then edit the gdm initialization file:
sudo nano /etc/gdm/Init/Default
and add the following lines just before the “sysresources=/etc/X11/Xresources” line
/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc xxx.xxx.xxx.xxx
where xxx.xxx.xxx.xxx is the IP address of your server machine.
Now edit the gdm pre-session file:
sudo nano /etc/gdm/PreSession/Default
and and the following line just before the “XSETROOT='gdmwhich xsetroot'” line
/usr/bin/synergyc xxx.xxx.xxx.xxx
Make sure the Synergy server is configured and running on your keyboard/mouse system, and reboot the Ubuntu system. You should now be able to move the mouse over to the Ubuntu screen and login normally.
Note that I still consider myself a Ubuntu/Linux noob, and so any improvements/comments/suggestions you have about this post are greatly appreciated. Ymmv. Most of the help I needed setting up this configuration came from the Ubuntu Synergy How To page.