We often need to use two computers at one time and switching mouse & keyboard again & again is very annoying. So what to do? Yeah! We can use one mouse & keyboard with two machines at the same time. So let's get started!
In this tutorial we are going to learn how to use one mouse and keyboard with two computers to do work quickly.
We often use Ubuntu/Linux Mint on one computer and Windows on another computer. So in this tutorial we will use Linux mouse & keyboard with Windows PC or laptop.
Install Synergy 1.7.1
Synergy is software for sharing one mouse and one keyboard between multiple computers on your desk allowing to seamlessly move the mouse cursor from one screen to another (works on Linux, Windows and Mac OS X).
For 64-bit Systems -
$ wget https://synergy-project.org/files/nightly/synergy-1.7.1-master-3dcd36b-Linux-x86_64.deb
$ sudo dpkg -i synergy-1.7.1-master-3dcd36b-Linux-x86_64.deb
$ sudo apt-get -f install
For 32-bit Systems -
$ wget https://synergy-project.org/files/nightly/synergy-1.7.1-master-3dcd36b-Linux-i686.deb
$ sudo dpkg -i synergy-1.7.1-master-3dcd36b-Linux-i686.deb
$ sudo apt-get -f install
After you have installed Synergy open it from dash.
Follow a simple installation wizard-
Click Next and you will get the main windows where you can choose how you want to connect to client computer. There are two options, the first one is 'Configure interactively' and second is 'Use existing configuration'. The first option will give the list of computer that are connected to your network. In second option you will need to create a configuration file (don't worry it's very easy).
We will select the second option and will switch to terminal to configure synergy file.
Configure Synergy 1.7.1
In order to use synergy to connect to our Windows client (in our case Windows client, you can use the same way to connect to any client Mac OS X, Linux or any distro) with our Ubuntu/Linux Mint.
Open up terminal and type the following command -
$ sudo gedit /home/username/.synergy.conf
sudo - To perform task as root
gedit - To use gedit program to create file
username - Username of your computer
It will open gedit text editor, paste the following with your computer info.
Note: To find your hostname in Ubuntu, type hostname in the terminal. In Windows, type hostname in the command line. To find your IP address in Ubuntu, type ifconfig in the terminal. In Windows, type ipconfig in the command line.
After you have done with the above configuration save the file. If you have any problem then feel free to comment in the comment section below.
Download, Install and Configure Synergy On Windows
Running the Synergy Server on Ubuntu
Connecting the Windows Client to the Server
Shortcuts for Starting and Stopping the Ubuntu Server
You can also start Synergy from menu or dash. After you open synergy from menu you'll have synergy running in the system trey. You can click and select start or stop.