Synergy is a powerful software tool that allows you to share a single keyboard and mouse across multiple computers, saving you time, desk space, and the headache of juggling various input devices. Whether running exclusively on Linux or mixing operating systems like Windows and macOS, Synergy can unify your workflow. Follow this tutorial for a step-by-step approach to installing and configuring Synergy on Linux, exploring advanced settings, troubleshooting common problems, and understanding best practices for a seamless, secure setup. By the end, you’ll have a fully functional multi-computer environment that significantly enhances productivity.
Modern workspaces often involve more than one computer. You might have a personal laptop, a dedicated machine for specialized tasks, or multiple servers for development and testing. Handling separate keyboards and mice for each of these systems can quickly turn into a messy, inefficient situation. Synergy addresses this challenge by letting you control multiple devices with just one input peripherals. You move your mouse cursor from one screen to the next—no switching hardware, no hassle.
In this guide, you will discover:
This document aims to be as comprehensive and user-friendly as possible, providing everything you need to streamline your workspace using Synergy on Linux.
Synergy is a cross-platform application that allows you to share one keyboard and mouse among multiple computers connected to a local network. Conceptually, it functions similarly to a hardware-based KVM (Keyboard, Video, Mouse) switch, but it relies on software and your existing network infrastructure rather than special hardware cables.
Under the hood, Synergy operates in a server-client architecture:
When you move the mouse from the server to a client’s screen, Synergy sends keystrokes, mouse movements, and clicks via TCP to the client. This seamless transition creates the illusion of a single, extended desktop spanning multiple computers, even if they run different operating systems.
Originally introduced as an open-source project, Synergy has evolved into a paid application maintained by Symless. Some older, open-source versions (and forks like Barrier) still exist, but the official version offers the most up-to-date features and security enhancements. These enhancements include optional encryption and a more straightforward user interface, making it suitable for personal and professional environments.
One of the biggest perks of using Synergy on Linux is significantly reducing hardware clutter. Instead of having two or three sets of keyboards and mice, you can manage everything through a single set. This creates a cleaner, more organized desk setup and eliminates the need to switch from one device to another constantly.
Synergy enables you to move your cursor across multiple systems effortlessly. This means you can copy Text on one machine and paste it on another or manage various monitors across different machines as though they were part of one unified environment. Such flexibility often improves workflow efficiency, mainly if you frequently perform tasks across various operating systems or host multiple sessions.
Although this guide focuses on Linux, Synergy also supports Windows and macOS. You can mix and match these systems under one unified control. That versatility makes it suitable for various workflows—whether you’re a Linux enthusiast, a Windows gamer, or a macOS designer, Synergy can bring them all together.
Synergy has a range of sophisticated capabilities:
These advanced features allow you to tailor Synergy to nearly any professional or personal setup you require.
Compared to purchasing multiple keyboards, mice, or hardware-based KVM switches, Synergy’s price (if you opt for the paid version) is relatively low. Even free alternatives or older versions can offer core features at no cost, making it an attractive solution for budget-conscious users.
Before diving into installation, make sure you have the following essentials in place:
Each computer you plan to use with Synergy must be on the same local area network. Stable connectivity is crucial for minimizing lag and interruptions. A wired Ethernet connection generally offers excellent reliability, but Synergy also functions well on Wi-Fi, provided the network isn’t overcrowded or prone to interference.
Synergy supports a wide range of Linux distributions (including Ubuntu, Debian, Fedora, and Arch-based systems), as well as Windows and macOS. For Linux, ensure you’re using a relatively modern distribution that has official repositories or can be built from a source.
Synergy doesn’t require significant system resources. Even older machines can handle it easily. However, sometimes users want to work with several full HD monitors or transport a lot of data from the clipboard—in this case, a more powerful device will provide better performance.
Synergy has transitioned to a paid license model, offering different feature sets based on your purchase plan. Ensure you understand which features are included in your license, particularly if you require encryption or other professional-level features.
Disable or adjust any services that might conflict with keyboard or mouse input, such as remote desktop or other screen-sharing software. As a rule, you can launch Synergy along with these services; however, you might need to configure settings to avoid the overriding or interception of input devices.
Synergy on Linux can be installed through official repositories and downloadable packages or compiled from the source. Your chosen method often depends on your distribution and preference for stability versus bleeding-edge releases.
Use apt-get or dpkg
If you have a repository set up:

sudo apt-get update
sudo apt-get install synergy
If you have a .deb file instead:
sudo dpkg -i synergy-<version>.deb
sudo apt-get -f install

The second command resolves dependencies that dpkg might have missed.
Verification
After installation, check the installed version:
synergy --version
Install via dnf
Open a terminal where the .rpm file is located and run:
sudo dnf install synergy-<version>.rpm
Once complete, confirm by checking the version:
synergy --version
Check the AUR
Synergy is often available in the Arch User Repository (AUR). If you use an AUR helper like Yay or paru, you can install Synergy easily:
yay -S synergy
If you prefer doing it manually, download the PKGBUILD from the AUR, extract it, and run:
makepkg -si
Verify with:
synergy --version
Gather Dependencies
You’ll need standard build tools plus libraries for SSL, Qt, and other Synergy components. On Ubuntu/Debian, for example:
sudo apt-get install build-essential cmake qtbase5-dev libssl-dev git

git clone https://github.com/symless/synergy-core.git

cd synergy-core

mkdir build && cd build
cmake ..
make

sudo make install
Once Synergy is installed on all the machines you plan to use, the next step is configuring your server and client systems. The terms “server” and “client” are crucial here: the server hosts the physical keyboard and mouse, while the clients receive input via the network.
On most Linux distributions, you can find Synergy in your application launcher once installed. Alternatively, you can launch the GUI from the command line by typing:
synergy
A user interface will appear, allowing you to configure a server or a client setup.
Once you’ve established the basic server-client functionality, you can explore more advanced settings. These features include creating a configuration file, enabling security, specifying the services to run initially, and managing multiple monitors across different systems.
While the graphical interface simplifies basic setup, Synergy also supports detailed configuration files (often named synergy.conf or synergy. sg). These files can define screen names, links, hotkeys, and more.
Below is a sample configuration file:
section: screens
main-linux:
secondary-machine:
end
section: links
main-linux:
right = secondary-machine
secondary-machine:
left = main-linux
end
section: options
keystroke(alt+shift+escape) = lockCursorToScreen(toggle)
end

To use this file, run:
synergys --config /path/to/synergy.conf
Security-conscious users or those in multi-user environments may prefer to encrypt Synergy traffic. Modern Synergy versions often include SSL/TLS support, though it may require a specific license tier.
Configure SSL
Add options to your configuration file or Synergy GUI settings to enable encryption. Example config snippet:
section: options
crypto = enabled
sslCertificate = /path/to/synergy.pem
sslCipherList = ALL
end

To avoid manually starting Synergy each time you restart your machines, consider creating a systemd service (for distributions that use systemd) or adding Synergy to your session startup applications. Below is an example of a server service file:
/etc/systemd/system/synergy-server.service
[Unit]
Description=Synergy Server
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/synergys --config /path/to/synergy.conf
Restart=on-failure
[Install]
WantedBy=multi-user.target
After creating and editing this file:
sudo systemctl enable synergy-server
sudo systemctl start synergy-server
Perform a similar setup on client machines or configure the Synergy GUI to start on login.
Synergy does best in multiple-system environments with several monitors. Transitions can be applied within monitors on a single system and between monitors in different machines. As long as your synergy.conf or your GUI layout resembles the physical layout of each screen, the user transition will be seamless.
Despite Synergy’s simplicity, network-based applications can experience hiccups. Here are some frequent issues and their solutions.
Open Port 24800
By default, Synergy uses TCP port 24800. Ensure your firewall is configured to permit incoming connections on this port. For UFW on Ubuntu:
sudo ufw allow 24800/tcp

When you have sensitive data, always turn on SSL/TLS encryption. This shields typed commands and encrypted information from unauthorized interception. Make sure to use substantial certificates and, if available, advanced cipher suites.
For a responsive Synergy experience:
Tailor Synergy’s configuration to your personal preferences:
This means that Synergy updates may contain performance enhancements and fixes for security vulnerabilities. You should check forums for updates at least once a week, mainly if you use Synergy in production. However, this comes with the reminder that your basic organizational operating system and firewall settings should be current for the best security.
While Synergy is a popular choice for cross-platform keyboard and mouse sharing, there are alternatives worth considering.
In general, Synergy is an ideal tool for anyone who has multiple computers and is tired of crossing his arms. When you centralize control to a single keyboard and mouse, you do away with the need to constantly change between the different input methods and deal with the various peripheral devices. Whether you’re a Linux purist managing several servers or juggling Linux, Windows, and macOS machines side by side, Synergy offers a versatile, feature-rich environment for cross-platform collaboration.
Synergy has you covered everything from installation to advanced configuration—encryption, clipboard sharing, multi-monitor setups, and auto-start services. Pairing it with secure networking practices and regular updates will ensure a smooth, safe, and highly productive experience. If Synergy doesn’t perfectly fit your needs, alternatives like Barrier, Input Director, or ShareMouse may fill the gap.
Implementing the ideas outlined in this guide will help reorganize and optimize your desk and the local systems. Synergy on Linux allows you to perform your tasks efficiently, whether coding, designing, or browsing. Learn how to use it, and your daily task environment becomes simple and integrated into one environment.

Vinayak Baranwal wrote this article. Use the provided link to connect with Vinayak on LinkedIn for more insightful content or collaboration opportunities