Monday 3 March 2014

[synergy] Share one set of mouse and keyboard over multiple computers

www.yodi.sg/setup-synergy-server-and-client-multiple-screen-fedora-core-17/

My setup involves a main box (2 monitors)- then my laptop (3rd external monitor) plugged into one router.

Since my desk space is limited, sharing inputs across different system comes handy.

Using Synergy, KVM switch like environment can be set up over the network.

Main box has fedora; 192.168.0.1 (will be server)
Laptop has ubuntu 12.04.4; 192.168.0.2 (will be client)

1. Install synergy
sudo yum install synergy
sudo apt-get install synergy

2. Setup server (on fedora 19)
sudo nano /etc/sysconfig/network #give two computers different hostname
sudo nano /etc/hosts #now there is no need to type ip every time

#synergy hostname setup
192.168.0.1 master0
192.168.0.2 node0
#Ctrl-X save-Y and exit

Save everything and restart or
sudo service network restart

2.1 configure synergy
sudo touch /etc/synergy.conf
sudo nano /etc/synergy.conf

section: screens
    master0:
    node0:
end

section: aliases
    master0:
        localhost.localdomain
    node0:
        192.168.0.2
end

section: links
    master0:
        right = node0
    node0:
        left = master0
end

#save and exit

2.2 run the server
synergys -f --config /etc/synergy.conf
#put it in a boot script without -f, so it can run as a daemon

3. run the client
synergyc -n node0 master0
#put this line in a startup application or /etc/init.d/rc.local
#so it will connect to the server automatically every boot up
#this line in a boot script doesn't work for 1.4+, taskbar is not available error
#will work with synergy 1.3.8, protocol version 1.3

No comments:

Post a Comment