Synergy allows sharing a single mouse/keyboard with multiple computers.
Install package synergy on all Computers sharing single mouse/keyboard.
Config file: /etc/synergy.conf
Notes: pc1 is server; pc2 is client
section: screens pc1: pc2: end section: aliases pc1: pc1.inf.unibz.it pc2: pc2.inf.unibz.it end section: links pc1: down = pc2 end section: options # Switches to the screen pc1 when the left arrow key is pressed in combination with the Alt key. keystroke(alt+left) = switchToScreen(pc1) # Switches to the screen pc2 when the right arrow key is pressed in combination with the Alt key. keystroke(alt+right) = switchToScreen(pc2) end
synergys -a pc1.inf.unibz.it
For autostart place the commandline in a file: start-synergys and in directory /etc/init.d/start-synergys
######### start-synergys ######## #!/bin/sh synergys -a pc1.inf.unibz.it ######### start-synergys ########
synergyc -n pc2 pc1.inf.unibz.it
Edit this files
1 /etc/gdm/Init/Default 2 /etc/gdm/PostLogin/Default 3 /etc/gdm/Xsession
and add the following text:
########################################## /usr/bin/killall synergyc sleep 1 /usr/bin/synergyc -n pc1 pc1.inf.unibz.it #########################################
######################### /usr/bin/killall synergyc sleep 1 #########################
########################################## /usr/bin/killall synergyc sleep 1 /usr/bin/synergyc -n pc1 pc1.inf.unibz.it #########################################
For detailed infos see: http://synergy2.sourceforge.net/autostart.html