https://wiki.archlinux.org/api.php?action=feedcontributions&user=4t08yw&feedformat=atomArchWiki - User contributions [en]2024-03-29T11:10:28ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=User:4t08yw&diff=359089User:4t08yw2015-02-01T21:43:15Z<p>4t08yw: Created page with "Fedora user. If I dun goofed call me out."</p>
<hr />
<div>Fedora user. If I dun goofed call me out.</div>4t08ywhttps://wiki.archlinux.org/index.php?title=Input_Leap&diff=359086Input Leap2015-02-01T21:29:56Z<p>4t08yw: /* Troubleshooting */</p>
<hr />
<div>[[Category:Input devices]]<br />
[[fr:Synergy]]<br />
[[it:Synergy]]<br />
[http://synergy-project.org/ Synergy] lets you easily share a single mouse and keyboard between multiple computers (even with different operating systems) without the need for special hardware. It is intended for users with multiple computers on their desk since each system uses its own monitor(s).<br />
<br />
Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. Synergy also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all. <br />
<br />
==Installation==<br />
<br />
===Arch Linux===<br />
You can [[pacman|install]] the {{pkg|synergy}} package from the [[official repositories]].<br />
<br />
===Windows and OS X===<br />
[http://synergy-project.org/download/ Download] and run the newest installer from the official website.<br />
<br />
==Pre-configuration==<br />
First determine the IP addresses and [[Network_configuration#Set_the_hostname|host names]] for each machine and make sure each has a correct hosts file.<br />
<br />
* Arch Linux - {{ic|/etc/hosts}}<br />
* Windows - {{ic|C:\WINDOWS\system32\drivers\etc\hosts}}<br />
* OS X - [http://support.apple.com/kb/TA27291 How to Add Hosts to Local Hosts File].<br />
<br />
{{hc|/etc/hosts|<br />
10.10.66.1 archserver.localdomain archserver<br />
10.10.66.100 archleft.localdomain archleft<br />
10.10.66.105 archright.localdomain archright}}<br />
<br />
{{Note|Check that the clients can reach the server.}}<br />
<br />
==Server configuration==<br />
In synergy, the computer with keyboard and mouse you want to share is called server.<br />
See [http://synergy2.sourceforge.net/configuration.html Synergy Configuration File Format] for a detailed description of all available sections and options.<br />
<br />
===Arch Linux===<br />
<br />
The configuration file for Arch Linux is {{ic|/etc/synergy.conf}}. If it does not exist, create it using {{ic|/etc/synergy.conf.example}}, whose comments should give you enough information for a basic configuration; if you need further reference, read the guide mentioned above.<br />
{{Tip|1=You may also use either {{Pkg|qsynergy}} from the [[official repositories]] or {{AUR|quicksynergy}} from the [[AUR]] which provide a GUI to simplify the configuration process.}}<br />
{{Tip|1=Need to open tcp port 24800}}<br />
<br />
If you experience problems and you wish to run the server in the foreground, you can run the following command instead:<br />
# synergys -f<br />
<br />
The synergy server process needs to attach to your user's X session, which means it needs to run as your user. Enable it as the appropriate user (replacing 'mary' with your username):<br />
<br />
# systemctl enable synergys@mary<br />
# systemctl start synergys@mary<br />
<br />
===Windows===<br />
<br />
# Open the Synergy program<br />
# Select the option ''Server (share this computer's mouse and keyboard)''<br />
# Select ''Configure interactively''<br />
# Click the ''Configure Server...'' button<br />
# This opens a window in which you can add screens depending on how many computers/screens you have: just drag the screen icon in the top-right corner to the screens area, and double-click it to edit its settings<br />
# Click ''OK'' to close the screens window when you are ready, then click on ''Start'' to start the server<br />
<br />
On Windows, configuration is saved by default in a {{ic|synergy.sgc}} file, but its name and location can of course be changed at pleasure.<br />
<br />
If you want to start the Synergy server everytime Windows starts, you have to launch the program '''as administrator''', then go to ''Edit -> Services'' and select ''Install'' in the ''Server'' section; note that at the following reboot Synergy will indeed automatically start, but the tray icon will not display automatically (at least for version 1.4.2 beta on Windows 7). To uninstall the service, do the same thing but obviously select ''Uninstall''.<br />
<br />
If you want to start the server from the command-line, here is a Windows command you can place in a {{ic|.bat}} file or just run from {{ic|cmd.exe}}:<br />
<br />
C:\Program Files\Synergy+\bin\synergys.exe -f --debug ERROR --name left --log c:\windows\synergy.log -c C:/windows/synergy.sgc --address 10.66.66.2:24800<br />
<br />
===OS X===<br />
<br />
OS X has a similar configuration as Unix: check [http://synergy-project.org/wiki/Developer the official documentation] for more information.<br />
<br />
===Configuration examples===<br />
<br />
This is an example for a basic 3-computers setup:<br />
<br />
{{hc|/etc/synergy.conf|<nowiki><br />
section: screens<br />
server-fire:<br />
archright-fire:<br />
archleft-fire:<br />
end<br />
<br />
section: links<br />
archleft-fire:<br />
right = server-fire<br />
server-fire:<br />
right = archright-fire<br />
left = archleft-fire<br />
archright-fire:<br />
left = server-fire<br />
end<br />
</nowiki>}}<br />
<br />
This should be the example bundled with the Arch Linux package:<br />
<br />
{{hc|/etc/synergy.conf|2=<br />
section: screens<br />
# three hosts named: moe, larry, and curly<br />
moe:<br />
larry:<br />
curly:<br />
end<br />
<br />
section: links<br />
# larry is to the right of moe and curly is above moe<br />
moe:<br />
right = larry<br />
up = curly<br />
<br />
# moe is to the left of larry and curly is above larry.<br />
# note that curly is above both moe and larry and moe<br />
# and larry have a symmetric connection (they're in<br />
# opposite directions of each other).<br />
larry:<br />
left = moe<br />
up = curly<br />
<br />
# larry is below curly. if you move up from moe and then<br />
# down, you'll end up on larry.<br />
curly:<br />
down = larry<br />
end<br />
<br />
section: aliases<br />
# curly is also known as shemp<br />
curly:<br />
shemp<br />
end<br />
<br />
}}<br />
<br />
The following is a more customized example:<br />
<br />
{{hc|synergy.sgc|2=<br />
section: screens<br />
leftpc:<br />
halfDuplexCapsLock = false<br />
halfDuplexNumLock = false<br />
halfDuplexScrollLock = false<br />
xtestIsXineramaUnaware = false<br />
switchCorners = none +top-left +top-right +bottom-left +bottom-right <br />
switchCornerSize = 0<br />
rightpc:<br />
halfDuplexCapsLock = false<br />
halfDuplexNumLock = false<br />
halfDuplexScrollLock = false<br />
xtestIsXineramaUnaware = false<br />
switchCorners = none +top-left +top-right +bottom-left +bottom-right <br />
switchCornerSize = 0<br />
end<br />
<br />
section: aliases<br />
leftpc:<br />
10.66.66.2<br />
rightpc:<br />
10.66.66.1<br />
end<br />
<br />
section: links<br />
leftpc:<br />
right = rightpc<br />
rightpc:<br />
left = leftpc<br />
end<br />
<br />
section: options<br />
heartbeat = 1000<br />
relativeMouseMoves = false<br />
screenSaverSync = false<br />
win32KeepForeground = false<br />
switchCorners = none +top-left +top-right +bottom-left +bottom-right <br />
switchCornerSize = 4<br />
end<br />
}}<br />
<br />
==Clients configuration==<br />
<br />
{{Note|This assumes a server has been set up and configured '''properly'''. Make sure the server is already configured to accept the client(s) before continuing.}}<br />
<br />
===Arch Linux===<br />
In a console window, type:<br />
$ synergyc server-host-name<br />
<br />
Or, to run synergy in the foreground:<br />
$ synergyc -f server-host-name<br />
<br />
Here, {{ic|server-host-name}} is the host name of the server.<br />
<br />
====Use Encryption====<br />
To use the encryption feature type:<br />
$ synergyc --crypto-pass <pass> <server-host-name><br />
<pass> is not the choosen passphrase of the server!<br />
It can be found in the servers log in DEBUG2 mode.<br />
<br />
{{Tip|If you are connecting with a GUI server, it checks the MD5 hash of the password. Use {{ic|<nowiki>echo -n yourpassword|md5sum</nowiki>}} to get the hash, and use that as your password above.}}<br />
<br />
====Autostart====<br />
<br />
There exist several ways to automatically start the Synergy client, and they are actually the same that can be used for every other application.<br />
<br />
{{Note|In all of the following examples, you always have to substitute {{ic|server-host-name}} with the real server host name.}}<br />
<br />
* You can add the next line to your [[xinitrc|{{ic|~/.xinitrc}}]]:<br />
<br />
{{hc|~/.xinitrc|<br />
...<br />
<br />
#replace server-host-name with the real name<br />
synergyc server-host-name<br />
}}<br />
<br />
The following is an alternative:<br />
<br />
{{hc|~/.xinitrc|<br />
<nowiki>XINIT_CMD='/usr/bin/synergyc -d FATAL -n galileo-fire 10.66.66.2:24800'<br />
/usr/bin/pgrep -lxf "$XINIT_CMD" || ( ( $XINIT_CMD ) & )</nowiki><br />
}}<br />
<br />
* Otherwise, if you are using a [[Display manager|display manager]] (kdm, gdm, [[SLiM]], ...), or a stand-alone [[Window manager|window manager]] (Openbox, ...), you could exploit its start-up script and add the following:<br />
synergyc server-host-name<br />
<br />
For example, using ''kdm'' you should edit {{ic|/usr/share/config/kdm/Xsetup}}.<br />
<br />
* To start the Synergy client with systemd, create a service file, '''/etc/systemd/system/synergyc@.service''' and optionally a config file, '''/etc/conf.d/synergyc.conf'''<br />
<br />
{{hc| /etc/systemd/system/synergyc@.service|2=<br />
[Unit]<br />
Description=Synergy Client Daemon<br />
After=network.target<br />
<br />
[Service]<br />
EnvironmentFile=/etc/conf.d/synergyc.conf<br />
ExecStart=/usr/bin/synergyc --no-daemon --debug ${DEBUGLEVEL:-INFO} ${SERVERALIAS}<br />
User=%i<br />
<br />
[Install]<br />
WantedBy=multi-user.target}}<br />
<br />
{{hc|/etc/conf.d/synergyc.conf|2=<br />
DEBUGLEVEL=WARNING<br />
SERVERALIAS=server-name}}<br />
<br />
To start the service for your user,<br />
<br />
# systemctl start synergyc@mary<br />
<br />
Automatically starting Synergy is also documented in its [http://synergy2.sourceforge.net/autostart.html official reference page].<br />
<br />
===Windows===<br />
<br />
After installation, open the Synergy program, select the option ''Client (use another computer's keyboard and mouse)'' and type the host name of the server computer in the text box, then click ''Start'' to start the client.<br />
{{Note|You can use the tray icon to stop the client.}}<br />
<br />
If you want to start the Synergy client every time Windows starts, you have to launch the program '''as an administrator''', then go to ''Edit -> Services'' and select ''Install'' in the ''Client'' section.<br />
<br />
If you want to start the client from the command-line, here is a Windows command you can place in a {{ic|.bat}} file or just run from {{ic|cmd.exe}}. This points to a configuration file in {{ic|C:\synergy.sgc}} and runs in the background like a service.<br />
<br />
{{bc|<nowiki>START /MIN /D"C:\Program Files\Synergy+\bin" synergys.exe -d ERROR -n m6300 -c C:\synergy.sgc -a 10.66.66.2:24800</nowiki>}}<br />
<br />
===OS X===<br />
<br />
Locate the synergyc program in the synergyc folder and drag it onto the terminal window: the full path will appear in the terminal.<br />
Now append the host name of the server, so that the complete command will look like this:<br />
<br />
{{bc|/path/to/synergyc/synergyc server-host-name}}<br />
<br />
Then press {{ic|Enter}}.<br />
<br />
==Known Issues==<br />
If Arch is being used as a client in a Synergy installation, the server may not be able to wake the client monitor. There are some workarounds, such as executing the following via [[Secure Shell|SSH]], if ACPI is enabled (see: [[Display_Power_Management_Signaling#Modifing_DPMS_and_screensaver_settings_using_xset|Modifying DPMS and ScreenSaver settings with xset]]):<br />
{{bc|# xset dpms force on}}<br />
<br />
==Troubleshooting==<br />
The official documentation has a [http://synergy-project.org/wiki/Synergy_FAQ FAQ] and also a [http://synergy2.sourceforge.net/trouble.html troubleshooting page].<br />
<br />
===Keyboard repeat===<br />
If you experience problems with your keyboard repeat on the client machine (Linux host), simply type:<br />
{{bc|# /usr/bin/xset r on}}<br />
in any console.<br />
<br />
===Keyboard mapping===<br />
If you experience problems with the keyboard mapping when using the server's keyboard in a client window (e.g a terminal) then re-setting the X key map after starting synergyc may help. The following command sets the keymap to its current value:<br />
<br />
# setxkbmap $(setxkbmap -query | grep "^layout:" | awk -F ": *" '{print $2}')<br />
<br />
===No Cursor in Gnome3===<br />
When Gnome 3 doesn't detect a mouse, it will default to touchscreen mode and hide the cursor. To enable run:<br />
<br />
# dconf write /org/gnome/settings-daemon/plugins/cursor/active false<br />
<br />
This can be added to an init script or systemd unit:<br />
<br />
ExecStartPost=dconf write /org/gnome/settings-daemon/plugins/cursor/active false<br />
<br />
===messages.log being spammed with by synergyc===<br />
If you run ''synergyc'' as described above then your {{ic|/var/log/messages.log}} file will get spammed with messages like these:<br />
<br />
May 26 22:30:46 localhost Synergy 1.4.6: 2012-05-26T22:30:46 INFO: entering screen<br />
/build/src/synergy-1.4.6-Source/src/lib/synergy/CScreen.cpp,103<br />
May 26 22:30:47 localhost Synergy 1.4.6: 2012-05-26T22:30:47 INFO: leaving screen<br />
/build/src/synergy-1.4.6-Source/src/lib/synergy/CScreen.cpp,121<br />
<br />
To prevent this run ''synergyc'' with the {{ic|-d WARNING}} option. This ''debug level'' option tells synergy to only log messages if they are level ''WARNING'' or above.<br />
<br />
synergyc -d WARNING server-host-name<br />
<br />
You can also edit the line that calls ''synergyc'' if you use a {{ic|/etc/rc.d/synergyc}} file.<br />
<br />
[ -z "$PID" ] && /usr/bin/synergyc -d WARNING "$SERVERALIAS"<br />
<br />
==External Links==<br />
* Synergy website: http://synergy-project.org<br />
* Official documentation: http://synergy-project.org/wiki/User_Guide</div>4t08ywhttps://wiki.archlinux.org/index.php?title=Input_Leap&diff=359085Input Leap2015-02-01T21:29:05Z<p>4t08yw: /* Troubleshooting */</p>
<hr />
<div>[[Category:Input devices]]<br />
[[fr:Synergy]]<br />
[[it:Synergy]]<br />
[http://synergy-project.org/ Synergy] lets you easily share a single mouse and keyboard between multiple computers (even with different operating systems) without the need for special hardware. It is intended for users with multiple computers on their desk since each system uses its own monitor(s).<br />
<br />
Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. Synergy also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all. <br />
<br />
==Installation==<br />
<br />
===Arch Linux===<br />
You can [[pacman|install]] the {{pkg|synergy}} package from the [[official repositories]].<br />
<br />
===Windows and OS X===<br />
[http://synergy-project.org/download/ Download] and run the newest installer from the official website.<br />
<br />
==Pre-configuration==<br />
First determine the IP addresses and [[Network_configuration#Set_the_hostname|host names]] for each machine and make sure each has a correct hosts file.<br />
<br />
* Arch Linux - {{ic|/etc/hosts}}<br />
* Windows - {{ic|C:\WINDOWS\system32\drivers\etc\hosts}}<br />
* OS X - [http://support.apple.com/kb/TA27291 How to Add Hosts to Local Hosts File].<br />
<br />
{{hc|/etc/hosts|<br />
10.10.66.1 archserver.localdomain archserver<br />
10.10.66.100 archleft.localdomain archleft<br />
10.10.66.105 archright.localdomain archright}}<br />
<br />
{{Note|Check that the clients can reach the server.}}<br />
<br />
==Server configuration==<br />
In synergy, the computer with keyboard and mouse you want to share is called server.<br />
See [http://synergy2.sourceforge.net/configuration.html Synergy Configuration File Format] for a detailed description of all available sections and options.<br />
<br />
===Arch Linux===<br />
<br />
The configuration file for Arch Linux is {{ic|/etc/synergy.conf}}. If it does not exist, create it using {{ic|/etc/synergy.conf.example}}, whose comments should give you enough information for a basic configuration; if you need further reference, read the guide mentioned above.<br />
{{Tip|1=You may also use either {{Pkg|qsynergy}} from the [[official repositories]] or {{AUR|quicksynergy}} from the [[AUR]] which provide a GUI to simplify the configuration process.}}<br />
{{Tip|1=Need to open tcp port 24800}}<br />
<br />
If you experience problems and you wish to run the server in the foreground, you can run the following command instead:<br />
# synergys -f<br />
<br />
The synergy server process needs to attach to your user's X session, which means it needs to run as your user. Enable it as the appropriate user (replacing 'mary' with your username):<br />
<br />
# systemctl enable synergys@mary<br />
# systemctl start synergys@mary<br />
<br />
===Windows===<br />
<br />
# Open the Synergy program<br />
# Select the option ''Server (share this computer's mouse and keyboard)''<br />
# Select ''Configure interactively''<br />
# Click the ''Configure Server...'' button<br />
# This opens a window in which you can add screens depending on how many computers/screens you have: just drag the screen icon in the top-right corner to the screens area, and double-click it to edit its settings<br />
# Click ''OK'' to close the screens window when you are ready, then click on ''Start'' to start the server<br />
<br />
On Windows, configuration is saved by default in a {{ic|synergy.sgc}} file, but its name and location can of course be changed at pleasure.<br />
<br />
If you want to start the Synergy server everytime Windows starts, you have to launch the program '''as administrator''', then go to ''Edit -> Services'' and select ''Install'' in the ''Server'' section; note that at the following reboot Synergy will indeed automatically start, but the tray icon will not display automatically (at least for version 1.4.2 beta on Windows 7). To uninstall the service, do the same thing but obviously select ''Uninstall''.<br />
<br />
If you want to start the server from the command-line, here is a Windows command you can place in a {{ic|.bat}} file or just run from {{ic|cmd.exe}}:<br />
<br />
C:\Program Files\Synergy+\bin\synergys.exe -f --debug ERROR --name left --log c:\windows\synergy.log -c C:/windows/synergy.sgc --address 10.66.66.2:24800<br />
<br />
===OS X===<br />
<br />
OS X has a similar configuration as Unix: check [http://synergy-project.org/wiki/Developer the official documentation] for more information.<br />
<br />
===Configuration examples===<br />
<br />
This is an example for a basic 3-computers setup:<br />
<br />
{{hc|/etc/synergy.conf|<nowiki><br />
section: screens<br />
server-fire:<br />
archright-fire:<br />
archleft-fire:<br />
end<br />
<br />
section: links<br />
archleft-fire:<br />
right = server-fire<br />
server-fire:<br />
right = archright-fire<br />
left = archleft-fire<br />
archright-fire:<br />
left = server-fire<br />
end<br />
</nowiki>}}<br />
<br />
This should be the example bundled with the Arch Linux package:<br />
<br />
{{hc|/etc/synergy.conf|2=<br />
section: screens<br />
# three hosts named: moe, larry, and curly<br />
moe:<br />
larry:<br />
curly:<br />
end<br />
<br />
section: links<br />
# larry is to the right of moe and curly is above moe<br />
moe:<br />
right = larry<br />
up = curly<br />
<br />
# moe is to the left of larry and curly is above larry.<br />
# note that curly is above both moe and larry and moe<br />
# and larry have a symmetric connection (they're in<br />
# opposite directions of each other).<br />
larry:<br />
left = moe<br />
up = curly<br />
<br />
# larry is below curly. if you move up from moe and then<br />
# down, you'll end up on larry.<br />
curly:<br />
down = larry<br />
end<br />
<br />
section: aliases<br />
# curly is also known as shemp<br />
curly:<br />
shemp<br />
end<br />
<br />
}}<br />
<br />
The following is a more customized example:<br />
<br />
{{hc|synergy.sgc|2=<br />
section: screens<br />
leftpc:<br />
halfDuplexCapsLock = false<br />
halfDuplexNumLock = false<br />
halfDuplexScrollLock = false<br />
xtestIsXineramaUnaware = false<br />
switchCorners = none +top-left +top-right +bottom-left +bottom-right <br />
switchCornerSize = 0<br />
rightpc:<br />
halfDuplexCapsLock = false<br />
halfDuplexNumLock = false<br />
halfDuplexScrollLock = false<br />
xtestIsXineramaUnaware = false<br />
switchCorners = none +top-left +top-right +bottom-left +bottom-right <br />
switchCornerSize = 0<br />
end<br />
<br />
section: aliases<br />
leftpc:<br />
10.66.66.2<br />
rightpc:<br />
10.66.66.1<br />
end<br />
<br />
section: links<br />
leftpc:<br />
right = rightpc<br />
rightpc:<br />
left = leftpc<br />
end<br />
<br />
section: options<br />
heartbeat = 1000<br />
relativeMouseMoves = false<br />
screenSaverSync = false<br />
win32KeepForeground = false<br />
switchCorners = none +top-left +top-right +bottom-left +bottom-right <br />
switchCornerSize = 4<br />
end<br />
}}<br />
<br />
==Clients configuration==<br />
<br />
{{Note|This assumes a server has been set up and configured '''properly'''. Make sure the server is already configured to accept the client(s) before continuing.}}<br />
<br />
===Arch Linux===<br />
In a console window, type:<br />
$ synergyc server-host-name<br />
<br />
Or, to run synergy in the foreground:<br />
$ synergyc -f server-host-name<br />
<br />
Here, {{ic|server-host-name}} is the host name of the server.<br />
<br />
====Use Encryption====<br />
To use the encryption feature type:<br />
$ synergyc --crypto-pass <pass> <server-host-name><br />
<pass> is not the choosen passphrase of the server!<br />
It can be found in the servers log in DEBUG2 mode.<br />
<br />
{{Tip|If you are connecting with a GUI server, it checks the MD5 hash of the password. Use {{ic|<nowiki>echo -n yourpassword|md5sum</nowiki>}} to get the hash, and use that as your password above.}}<br />
<br />
====Autostart====<br />
<br />
There exist several ways to automatically start the Synergy client, and they are actually the same that can be used for every other application.<br />
<br />
{{Note|In all of the following examples, you always have to substitute {{ic|server-host-name}} with the real server host name.}}<br />
<br />
* You can add the next line to your [[xinitrc|{{ic|~/.xinitrc}}]]:<br />
<br />
{{hc|~/.xinitrc|<br />
...<br />
<br />
#replace server-host-name with the real name<br />
synergyc server-host-name<br />
}}<br />
<br />
The following is an alternative:<br />
<br />
{{hc|~/.xinitrc|<br />
<nowiki>XINIT_CMD='/usr/bin/synergyc -d FATAL -n galileo-fire 10.66.66.2:24800'<br />
/usr/bin/pgrep -lxf "$XINIT_CMD" || ( ( $XINIT_CMD ) & )</nowiki><br />
}}<br />
<br />
* Otherwise, if you are using a [[Display manager|display manager]] (kdm, gdm, [[SLiM]], ...), or a stand-alone [[Window manager|window manager]] (Openbox, ...), you could exploit its start-up script and add the following:<br />
synergyc server-host-name<br />
<br />
For example, using ''kdm'' you should edit {{ic|/usr/share/config/kdm/Xsetup}}.<br />
<br />
* To start the Synergy client with systemd, create a service file, '''/etc/systemd/system/synergyc@.service''' and optionally a config file, '''/etc/conf.d/synergyc.conf'''<br />
<br />
{{hc| /etc/systemd/system/synergyc@.service|2=<br />
[Unit]<br />
Description=Synergy Client Daemon<br />
After=network.target<br />
<br />
[Service]<br />
EnvironmentFile=/etc/conf.d/synergyc.conf<br />
ExecStart=/usr/bin/synergyc --no-daemon --debug ${DEBUGLEVEL:-INFO} ${SERVERALIAS}<br />
User=%i<br />
<br />
[Install]<br />
WantedBy=multi-user.target}}<br />
<br />
{{hc|/etc/conf.d/synergyc.conf|2=<br />
DEBUGLEVEL=WARNING<br />
SERVERALIAS=server-name}}<br />
<br />
To start the service for your user,<br />
<br />
# systemctl start synergyc@mary<br />
<br />
Automatically starting Synergy is also documented in its [http://synergy2.sourceforge.net/autostart.html official reference page].<br />
<br />
===Windows===<br />
<br />
After installation, open the Synergy program, select the option ''Client (use another computer's keyboard and mouse)'' and type the host name of the server computer in the text box, then click ''Start'' to start the client.<br />
{{Note|You can use the tray icon to stop the client.}}<br />
<br />
If you want to start the Synergy client every time Windows starts, you have to launch the program '''as an administrator''', then go to ''Edit -> Services'' and select ''Install'' in the ''Client'' section.<br />
<br />
If you want to start the client from the command-line, here is a Windows command you can place in a {{ic|.bat}} file or just run from {{ic|cmd.exe}}. This points to a configuration file in {{ic|C:\synergy.sgc}} and runs in the background like a service.<br />
<br />
{{bc|<nowiki>START /MIN /D"C:\Program Files\Synergy+\bin" synergys.exe -d ERROR -n m6300 -c C:\synergy.sgc -a 10.66.66.2:24800</nowiki>}}<br />
<br />
===OS X===<br />
<br />
Locate the synergyc program in the synergyc folder and drag it onto the terminal window: the full path will appear in the terminal.<br />
Now append the host name of the server, so that the complete command will look like this:<br />
<br />
{{bc|/path/to/synergyc/synergyc server-host-name}}<br />
<br />
Then press {{ic|Enter}}.<br />
<br />
==Known Issues==<br />
If Arch is being used as a client in a Synergy installation, the server may not be able to wake the client monitor. There are some workarounds, such as executing the following via [[Secure Shell|SSH]], if ACPI is enabled (see: [[Display_Power_Management_Signaling#Modifing_DPMS_and_screensaver_settings_using_xset|Modifying DPMS and ScreenSaver settings with xset]]):<br />
{{bc|# xset dpms force on}}<br />
<br />
==Troubleshooting==<br />
The official documentation has a [http://synergy-project.org/wiki/Synergy_FAQ FAQ] and also a [http://synergy2.sourceforge.net/trouble.html troubleshooting page].<br />
<br />
===Keyboard repeat===<br />
If you experience problems with your keyboard repeat on the client machine (Linux host), simply type:<br />
{{bc|# /usr/bin/xset r on}}<br />
in any console.<br />
<br />
===Keyboard mapping===<br />
If you experience problems with the keyboard mapping when using the server's keyboard in a client window (e.g a terminal) then re-setting the X key map after starting synergyc may help. The following command sets the keymap to its current value:<br />
<br />
# setxkbmap $(setxkbmap -query | grep "^layout:" | awk -F ": *" '{print $2}')<br />
<br />
===No Cursor in Gnome3===<br />
When Gnome 3 doesn't detect a mouse, it will default to touchscreen mode and hide the cursor. To enable run:<br />
<br />
# dconf write /org/gnome/settings-daemon/plugins/cursor/active false<br />
<br />
This can be added to an init script or systemd unit:<br />
<br />
# ExecStartPost=dconf write /org/gnome/settings-daemon/plugins/cursor/active false<br />
<br />
===messages.log being spammed with by synergyc===<br />
If you run ''synergyc'' as described above then your {{ic|/var/log/messages.log}} file will get spammed with messages like these:<br />
<br />
May 26 22:30:46 localhost Synergy 1.4.6: 2012-05-26T22:30:46 INFO: entering screen<br />
/build/src/synergy-1.4.6-Source/src/lib/synergy/CScreen.cpp,103<br />
May 26 22:30:47 localhost Synergy 1.4.6: 2012-05-26T22:30:47 INFO: leaving screen<br />
/build/src/synergy-1.4.6-Source/src/lib/synergy/CScreen.cpp,121<br />
<br />
To prevent this run ''synergyc'' with the {{ic|-d WARNING}} option. This ''debug level'' option tells synergy to only log messages if they are level ''WARNING'' or above.<br />
<br />
synergyc -d WARNING server-host-name<br />
<br />
You can also edit the line that calls ''synergyc'' if you use a {{ic|/etc/rc.d/synergyc}} file.<br />
<br />
[ -z "$PID" ] && /usr/bin/synergyc -d WARNING "$SERVERALIAS"<br />
<br />
==External Links==<br />
* Synergy website: http://synergy-project.org<br />
* Official documentation: http://synergy-project.org/wiki/User_Guide</div>4t08yw