Share mouse, keyboard between Windows machine with Linux and Mac
Many people often need to use two computers at the same time, and it's difficult to share mice and keyboards with two computers. So what to do in this situation? The good news is that you can share your mouse and keyboard with two computers at the same time. Let's find out through the following article!
In this tutorial, you will learn how to use the mouse and keyboard with two computers to do the job quickly.
People often use Ubuntu or Linux Mint on a computer and Windows on another computer. So, in this tutorial, we will use Linux keyboard and mouse with a Windows PC or laptop.
Share mouse, keyboard between Windows machine with Linux and Mac
- Synergy installation 1.7.1
- For 64-bit systems
- For 32-bit systems
- Synergy configuration 1.7.1
- Download, install and configure Synergy on Windows
- Run Synergy server on Ubuntu
- Connect the Windows client to the server
- Shortcuts to start and stop Ubuntu server
Synergy installation 1.7.1
Synergy is software to share mice and keyboards between multiple computers, allowing seamless movement of the mouse pointer 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 and follow the following simple installation instructions:
- Choose language.
- Complete activation or skip activation.
- Select Server or Client - Remember, whether you choose Server or Client depends on whether you are sharing the mouse and keyboard of this machine (choose Server) or use the mouse and keyboard of another computer (choose Client).
- Click Next and you will get the main window where you can choose how to connect to the client computer. There are two options, the first option is 'Configure interactively' and the second option is 'Use existing configuration'. The first option will list the computers that are connected to your network. In the second option, you will need to create a configuration file (don't worry it is very simple).
For example, today select the second option and switch to the terminal to configure the Synergy file.
Synergy configuration 1.7.1
To use Synergy for connecting to Windows clients (you can use the same way to connect to any Mac OS X client, Linux installs any distribution) with Ubuntu / Linux Mint.
Open the terminal and type the following command:
$ sudo gedit /home/username/.synergy.conf
- sudo - To perform the task as root.
- gedit - To use gedit to create a file.
- username - User name on your computer.
This command will open the gedit text editor. Paste the following information in gedit.
Note : To find your hostname in Ubuntu, enter the server name in Terminal. In Windows, enter the server name in the Command line. To find your IP address in Ubuntu, enter ifconfig into Terminal. In Windows, enter ipconfig into the Command line.
section: links hostnameOfServer: hostnameOfClient: end section: aliases hostnameOfServer: IPAddressOfServer hostnameOfClient: IPAddressOfServer end
Now, add the following information at the end of the file, depending on which case you are applying. If your server is on the left and your client is on the right, use the following code.
section: links hostnameOfServer: right = hostnameOfClient hostnameOfClient: left = hostnameOfServer end
After you've done the configuration process, save the file. If you encounter any problems, leave comments in the comment section below.
Download, install and configure Synergy on Windows
Visit the Synergy website and download the appropriate version of Windows for your computer.
- Run the installer and then run Synergy.
- Select Share this computer's mouse and keyboard to access the configuration screen.
- Then, add your computer name to the hostnames section and then set up the settings on the left and right just like before.
- After configuring, select Use another computer's shared keyboard and mouse .
Run Synergy server on Ubuntu
Open a terminal window and enter the following code to run the server:
synergys -f -conf /home/username/.synergy.conf
Connect the Windows client to the server
- With the option Use another shared keyboard and mouse computer has been integrated, enter the server's IP address (Ubuntu) and click Start.
- Now you can use Ubuntu desktop keyboard and mouse with your Windows laptop.
Shortcuts to start and stop Ubuntu server
To start the server quickly, right-click on the top panel and create a new launcher. In the command section, enter:
synergys -f --conf /home/username/.synergy.conf
To stop the server quickly, right-click on the top panel and create a new launcher. In the command section, enter:
killall synergys
You can also start Synergy from the menu or dash. After you open Synergy from the menu, it will run in the system. You can click and select Start or Stop.
See more:
- How to share keyboard and mouse between two computers on Windows 10
- Use multiple computers with just one set of keyboard and mouse
- How to synchronize Clipboard between Windows and macOS?
You should read it
- Share mouse and keyboard for multiple computers
- How to share keyboard and mouse between two computers on Windows 10
- How to use the keyboard and mouse for 2 PCs with Barrier
- How to control the mouse with the keyboard in Windows 10
- Download Mouse and Keyboard Recorder - software for recording keyboard and mouse activity for $ 23, free of charge
- Top keyboard for the best TV, integrated touch mouse
- How to fix mouse lag in Windows 11/10
- How to enable the numeric keypad as a mouse on Windows 11
- Sharing articles on Facebook with just a simple click
- Xiaomi launched the wireless mouse and Miyu keyboard with voice support, priced at 1.3 million
- Instructions for using a replacement keyboard for a broken mouse
- How to enable Mouse Keys Windows 10