Thursday, July 21, 2011

How to setup Synergy

Steps:

1) Install synergy on both machines. e.g. I have two machines one windows and other Ubuntu box. For Windows download synergy from http://synergy-foss.org/download/ and for Ubuntu "apt-get install synergy".

2) My Windows machine is on left side and Ubuntu is on right. I want to share keyboard and mouse of ubuntu machine with windows machine.

3) On Windows run installed synergy and select "Use another computer's shared keyboard and mouse(client)" radio button and enter host name of ubuntu machine. It will look like this:

Click Advance button and choose screen name for Windows machine. I chose "windowspc"

4) On your Ubuntu machine create a file synergy.conf and enter following text:


    section: screens
    taimoor-ubuntu:
    windowspc:
    end


    section: aliases
    windowspc:
    137.202.157.185
    end


    section: links
    taimoor-ubuntu:
    left = windowspc
    windowspc:
    right = taimoor-ubuntu
    end


    section: options
    screenSaverSync = false
    # hotkey to lock the cursor to the screen to something else
    keystroke(f12) = lockCursorToScreen(toggle)
    end


5) Copy this file to /etc/ directory using command "sudo cp ~/synergy.conf /etc/"

6) Run synergy server on your ubuntu with command: "synergys --config /etc/synergy.conf" and on windows click Start button

7) Enjoy. You can also make syngery auto start on both Windows and ubuntu. For this on Windows, synergy dialog has autostart option. Click it and select whether to start synergy on computer start or on Login. On Ubuntu, go to System->Preferences->Startup Applications and add new application. Name it synergys and in command box give command "synergys --config /etc/synergy.conf"