Markland

HOWTO: CentOS 7 install

2 posts in this topic

Posted (edited)

Hi everyone!

I didn't find any good documentation on how to install Synergy on a CentOS 7 machine so I figured I'd drop a few lines describing what I did - perhaps it might help someone else!

Prerequisites:
I will assume you have CentOS 7 installed with the latest updates. In my case I am using Gnome desktop environment and thus running GDM as login manager.

Steps:
1. Ensure that you have the epel repository enabled. For more information on EPEL click here.
 

sudo yum --enablerepo=extras install epel-release

2. Install Synergy from the EPEL repository.
 

sudo yum install synergy

3. Login to your desktop environment in CentOS if you aren't already logged in.

4. Start Synergy by (if running standard Gnome) pressing WIN-key and typing in Synergy and pressing ENTER.
If you cannot find Synergy this way, you can open a terminal and run /usr/bin/synergy directly.

5. Configure Synergy as you normally would.
5a. Enter your license key.
5b. Enter the server information (or setup the server-config if running as server).

6. Create a systemd startup file.
6a. Client version:

sudo echo >> /etc/systemd/system/synergy.service << EOF
[Unit]
Description=Synergy Client Daemon
After=network.target

[Service]
ExecStart=/usr/bin/synergyc --no-daemon <SERVER IP HERE>
Restart=always
RestartSec=3

[Install]
WantedBy=default.target
EOF

6b. Server version:
 

sudo echo >> /etc/systemd/system/synergy.service << EOF
[Unit]
Description=Synergy Client Daemon
After=network.target

[Service]
ExecStart=/usr/bin/synergys &
Restart=always
RestartSec=3

[Install]
WantedBy=default.target
EOF

7. Reload systemctl daemon.
 

sudo systemctl daemon-reload

8. Enable Synergy to run at boot.
 

sudo systemctl enable synergy.service

9. If you previously closed Synergy after making the initial configuration, you can now use systemd to start it. If you reboot it will also start automatically.
 

sudo systemctl start synergy

 

And that's it! Hope it helps someone. :)

Edited by Markland

Share this post


Link to post
Share on other sites

Super set of instructions. Thanks so much for posting -- this is a great tutorial!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now