Installationarch Linux
You can download this software [synergy]: http://synergy-project.org/
Windows and Mac OS X
Download and run the newest InstallerDownload from Linux
Pre-configuration [related configuration before install installation]
First determine the IP addresses and host names for each machine and make sure each has a correct hosts file.
- Arch Linux-
/Etc/hosts in Linux Hosts [host name and lan ip address match] File Path
- Windows-
C: \ windows \ system32 \ drivers \ etc \ hosts window hosts [host name and lan ip address match] File Path
- Mac OS X-how to add hosts to local hosts file. hosts under MAC [host name and LAN IP address match] File Path
/etc/hosts
10.10.66.1 archserver. localdomain archserver10.10.66.100 archleft. localdomain archleft10.10.66.105 arshortght. localdomain arshortght
Edit the file and modify the file content. The format is bold and bold. The IP address and hostname are determined based on your own situation.
Host IP host name. localdomain Host Name
Note:Check that the clients can reach the server. [Ensure that the client can connect to the server.] This article introduces how to use Linux as the server:
Configure the config file of synergy:
Path:/etc/Synergy. conf, which can be VI/etc/Synergy. conf and then refer to the following code content
section: screens desktop: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false switchCorners = none switchCornerSize = 0 notepad: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false switchCorners = none switchCornerSize = 0endsection: aliasesendsection: links desktop: down = notepad notepad: up = desktopendsection: options relativeMouseMoves = false screenSaverSync = true win32KeepForeground = false switchCorners = none switchCornerSize = 0 keystroke(Control+l) = switchToScreen(desktop) keystroke(Control+k) = switchToScreen(notepad)end
The above red font is the hostname host name, which can be changed as needed:
Enable port 24800. [synergy service port ]:
Iptables-A input-I p33p1-P TCP -- dport 24800-J accept
In the red section above, use the ifconfig command to view the Network Card Name.
Edit the service file:
Path:/Etc/systemd/system/[email protected]
Direct: vi/Etc/systemd/system/[email protected:
[Unit]Description=Synergy Server DaemonAfter=network.target[Service]Type=forkingExecStart=/usr/bin/synergys --config /etc/synergy.confUser=%i[Install]WantedBy=multi-user.target
Make the service take effect
Then enable it as the appropriate user (replacing 'Mary 'with your username ):
# Systemctl enable [email protected] Mary # systemctl start [email protected] Mary
The above red font is your Linux Username
Start synergy in the background:
# Synergys-F
Window, there are many online materials, not to mention, personal email: [email protected], can communicate at any time, happy to come!
Result: