Jump to content

Auto start on Linux before login


horst12

Recommended Posts

reviving this. I'm trying to get this auto starting, however it doesn't seem to be using the TLS encryption. I tried doing what Earwig mentioned to copy the TrustedServers.txt file to the /.synergy/SSL/Fingerprints folder, but on my synergy server, when the service is ran from the client i get a 

ERROR: tls error occurred (system call failure)
ERROR: failed to accept secure socket
WARNING: client connection may not be secure

below is my service file. I feel like i'm close, but not sure what to do. Running the app from the debian desktop works fine

[Unit]
Description=Synergy Service
After=network.target

[Service]
User=root
Group=root
Type=simple
Restart=always
RestartSec=3
ExecStart=/bin/bash -c "XAUTHORITY=/var/run/lightdm/root/:0 /usr/bin/synergyc --no-daemon -n CLIENTNAME IPADDRESS:24800"


[Install]
WantedBy=default.target

 

Link to comment
Share on other sites

  • 1 year later...
Quote
On 1/4/2023 at 3:15 PM, champ said:

reviving this. I'm trying to get this auto starting, however it doesn't seem to be using the TLS encryption. I tried doing what Earwig mentioned to copy the TrustedServers.txt file to the /.synergy/SSL/Fingerprints folder, but on my synergy server, when the service is ran from the client i get a 




ERROR: tls error occurred (system call failure)
ERROR: failed to accept secure socket
WARNING: client connection may not be secure

below is my service file. I feel like i'm close, but not sure what to do. Running the app from the debian desktop works fine




[Unit]
Description=Synergy Service
After=network.target

[Service]
User=root
Group=root
Type=simple
Restart=always
RestartSec=3
ExecStart=/bin/bash -c "XAUTHORITY=/var/run/lightdm/root/:0 /usr/bin/synergyc --no-daemon -n CLIENTNAME IPADDRESS:24800"


[Install]
WantedBy=default.target

 

 

You need to use the option "--enable-crytpo" to use TLS encryption, see below my working synergy-client.service file.

[Unit]
Description=Synergy Service
Requires=display-manager.service
After=display-manager.service

[Service]
Type=simple
Restart=always
RestartSec=3
ExecStartPre=/bin/bash -c "sleep 10; /bin/systemctl set-environment LIGHTDMXAUTH=/var/run/lightdm/root/:0"
ExecStart=/bin/bash -c "XAUTHORITY=${LIGHTDMXAUTH} /usr/bin/synergyc -f --enable-crypto -n CLIENT_NAME SERVER_ADDRESS"


[Install]
WantedBy=graphical.target

I managed to get it working with lightdm, but didn't have the same luck with sddm.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...