Control Everything from One Place with Synergy
Once you've tested the server and client(s), you'll probably want them to start automatically in the future. Synergy requires an X server, so starting it before the X server starts won't work. The easiest way to start Synergy automatically is to add a line to your $HOME/.xsession or similar X session startup script. Typically, you'd run the Synergy server from .xsession with no arguments and run the client with the server hostname as the only argument. They'd run in the background and quit when the X server quits or restarts.
The problem with this setup is Synergy isn't running during the login screen, which is managed by XDM or one of the eqivalents such as GDM or KDM. If you have the necessary permissions, you can reconfigure your display manager to start Synergy when the X server starts. First, copy $HOME/.synergy.conf to /etc/synergy.conf (no leading dot on the latter) so the display manager can find it. Then edit the display manager's Xsetup script; different distributions put this file in different places so you may have to search for it. Near the end of the script but before any call to exit add two lines. You can use either:
/usr/bin/killall synergyc /usr/local/bin/synergyc guava
replacing guava with the hostname of your server to start the client, or:
/usr/bin/killall synergys /usr/local/bin/synergysto start the server. Don't forget to remove any lines in your .xsession that try to start Synergy. For security reasons, some display managers (XDM and KDM, but not GDM) grab the keyboard and do not release it until the user logs in. This prevents a Synergy server from sharing the mouse and keyboard until the user logs in. It doesn't prevent a Synergy client from synthesizing mouse and keyboard input, though; log in to the server and then use Synergy to log in to the client.
Without the --no-camp option, the client tries connecting to the server every 60 seconds until it succeeds, so the client can start before the server. You can exploit this feature on a laptop: run the client on the laptop all the time. When it's attached to your home network, it'll connect to the Synergy server within 60 seconds. Then you can use the server's keyboard and mouse instead of the laptop's.
Finally, an important note about security. As of this writing, Synergy has no authentication and no encryption safeguards. Because it transmits all mouse and keyboard input, including passwords, do not use Synergy on or across untrusted networks. Future versions of Synergy will address this shortcoming.
- Readers' Choice Awards 2013
- IBM Will Minimize Impact of Future Disasters
- Mars Needs Women
- December 2013 Issue of Linux Journal: Readers' Choice
- Sublime Text: One Editor to Rule Them All?
- RSS Feeds
- Raspberry Pi: the Perfect Home Server
- Tech Tip: Really Simple HTTP Server with Python
- Linux Systems Administrator
- Senior Perl Developer
- Mixtapes Community
1 hour 30 min ago
- KDE is one true DE
2 hours 4 min ago
- Command Line Shells (Bash, Zsh, etc.) are 2nd place
2 hours 33 min ago
4 hours 28 min ago
- yes it's Jupiter Broadcasting
5 hours 47 min ago
- nice to see PClinuxOS finally
8 hours 21 min ago
- Personally, I am no longer a
9 hours 17 min ago
- It's Jupiter
23 hours 42 min ago
- GIMP is certainly a graphic
1 day 44 min ago
- Thanks For Your Sharing
1 day 5 hours ago