Torombolo 0 Posted June 2, 2017 Share Posted June 2, 2017 Hello, after following 3 tutorials on how to try and make it to load on start up i have failed all of them. (right now i have a mouse to the pi just to doubleclick synergy) Can anyone help with making synergy auto start on the Raspberry pi 3 and start as a client. Thank you! Link to post Share on other sites
Paul Suarez 107 Posted June 2, 2017 Share Posted June 2, 2017 Have you checked Setup Synergy Client Autostart on adafruit? Link to post Share on other sites
Torombolo 0 Posted June 2, 2017 Author Share Posted June 2, 2017 34 minutes ago, Paul Suarez said: Have you checked Setup Synergy Client Autostart on adafruit? followed it step by step no go. Link to post Share on other sites
Paul Suarez 107 Posted June 3, 2017 Share Posted June 3, 2017 But have you been able to connect your Pi and your server? Also, have you set a static IP address for your server? Link to post Share on other sites
Torombolo 0 Posted June 3, 2017 Author Share Posted June 3, 2017 Just now, Paul Suarez said: But have you been able to connect your Pi and your server? Also, have you set a static IP address for your server? yea the pi connects to the server with no problem and i can use the mouse and keyboard on both flawlessly Link to post Share on other sites
Paul Suarez 107 Posted June 3, 2017 Share Posted June 3, 2017 Are you rebooting it while it's connected? Also, have you created a new autostart file for LXDE? or have you just added the script to an existing autostart file? Link to post Share on other sites
Torombolo 0 Posted June 3, 2017 Author Share Posted June 3, 2017 4 minutes ago, Paul Suarez said: Are you rebooting it while it's connected? Also, have you created a new autostart file for LXDE? or have you just added the script to an existing autostart file? created a new File, Rebooted while connected and not connected. Link to post Share on other sites
Popular Post Sklar 8 Posted July 20, 2018 Popular Post Share Posted July 20, 2018 I had to sort through old information to get method right and, as is usual in these cases, one small detail was holding me up. Here's what I did to get synergy 1.10 to start at boot on my Pi 3b+ running the latest Raspbian as of this date. Credit Nick Cullen for the script. 1) Make this script in /usr/bin and name it something descriptive like startsynergy. Or name it Bucephalus if you want. It worked for Alexander. It's usual to give scripts an extension like .sh, but not necessary. I didn't use an extension. Whatever you name it, use the full name in what follows. ===================================== #!/bin/bash killall synergyc # Kill all previous synergy clients sleep 1 # Wait 1 second /usr/bin/synergyc --name raspberrypi 192.168.1.5 # client name, server ip or name exit 0 # Exit gracefully # use full path to executable if synergy not installed by pkg manager. substitute your client name and server ip. # sunergyc = client, synergys = server ===================================== 2) Make the startsynergy script executable with --> sudo chmod +x /usr/bin/startsynergy 3) Add the following line to ~/.config/lxsession/LXDE-pi/autostart @lxterminal --command startsynergy Put this before the line that starts with @xscreensaver or else it will not run the script. Note: There are autostart files at /etc/xdg/lxsession/LXDE/autostart and at /etc/xdg/lxsession/LXDE-pi/autostart. Editing either of these will not run the script. You'll find people on line telling you to use one or the other of those but that is old information. Recent versions of Raspbian have per-user autostart files located in the home directory inside the hidden .config directory at the path in step 3. Use that one. Your script is correct if you can run it with the command startsynergy. The line you added in autostart will then do the same thing at boot - open a terminal and run the command. The terminal closes at the end of the script. Synergy will connect and run without opening the GUI that puts the little circle icon in the taskbar. This is fine for me as, once I've configured synergy the first time with the GUI, I never look at it. If you like the GUI to run, that takes one of about six other methods I've read about but not tried. 3 Link to post Share on other sites
PezUnion2004 0 Posted August 14, 2018 Share Posted August 14, 2018 Thanks Skylar! This method works for me. Link to post Share on other sites
PezUnion2004 0 Posted August 14, 2018 Share Posted August 14, 2018 Thanks Skylar! This method works for me. EDIT: So this is weird. When I open up a terminal, it boots my synergy session. Any thoughts? Link to post Share on other sites
Popular Post Sklar 8 Posted August 14, 2018 Popular Post Share Posted August 14, 2018 Doesn't happen for me so I'd just be guessing. I'd make sure the autostart file you edited is the correct one ---> ~/.config/lxsession/LXDE-pi/autostart and not one of the at least 3 autostart files located elsewhere in Raspbian. Editing this one will run the script when you log on as user Pi, or whatever user - whichever home directory you find the autostart file in that you add the startsynergy line into. There are ways to intentionally run a script every time you open any terminal, though I never do that and I'd have to look it up. So this is my best guess. I know this method runs flawlessly for me. 1 1 Link to post Share on other sites
GuyOxford 0 Posted January 30, 2019 Share Posted January 30, 2019 Not having any luck finding the directory ~/.config/lxsession/ The closest thing I have in .config is lxpanel and lxterminal, neither of which has an autostart file. I am running the latest, fully updated Pi 3 b+ Synergy runs fine when I start it manually. Anyone know where I am going wrong? Link to post Share on other sites
Johann Baron Lanteigne 0 Posted April 10, 2019 Share Posted April 10, 2019 (edited) Running the autostart.sh script that is supposed to launch synergyc (client) doesn't do anything for me. The script works fine when trying to run synergy but it doesn't properly input the server IP. I'm running the latest version of Rasbian Stretch and Synergy 1.10.1 Edited April 10, 2019 by Johann Baron Lanteigne Link to post Share on other sites
Popular Post Sklar 8 Posted August 2, 2019 Popular Post Share Posted August 2, 2019 Just got a Pi 4 running Raspbian 10 (buster). This startsynergy script runs fine but the place to add the command (@lxterminal --command startsynergy) to run it at boot has changed in buster. It's now at ----> /etc/xdg/lxsession/LXDE-pi/autostart <----. As before, add that line before the line that starts @xscreensaver. This autostart file has moved before and we should assume that it will move again I expect. 1 1 Link to post Share on other sites
Popular Post dbatting 2 Posted September 2, 2019 Popular Post Share Posted September 2, 2019 (edited) I also just got a Pi 4 and am running Raspbian 10 (Buster), running Synergy 1 Pro version 1.10.2-stable-8c010140 (build date May 9 2019). I used the change that Sklar said about using /etc/xdg/lxsession/LXDE-pi/autostart and that worked for me, but it wasn't connecting or working correctly. It was trying, but not quite making it. Here are the changes I made to get it working: In the script file, I used the following: #!/bin/bash killall synergyc sleep 1 synergyc --enable-crypto xxx.xxx.xxx.xxx exit 0 where xxx.xxx.xxx.xxx is your IP address. The reason it was crapping out was because the server was expecting TLSv1.2 and when it wasn't specified, it would throw an error on the server: ERROR: tls error occurred (system call failure) ERROR: failed to accept secure socket WARNING: client connection may not be secure and synergyc wouldn't start or connect properly on the Raspberry Pi, so I added --enable-crypto and presto! It connected, the server was happy, no mouse lag on the client and all is well. I had already connected previously with the GUI version and got both the server and client set up, so I didn't need the --name command because it already knew who the client was. Now, once I have synergyc running happily and silently in the background, how do I get the actual desktop app to load in the system tray instead of synergyc so I can visually see if it drops, click on it to bring it up, etc.? Like so: Edit /etc/xdg/lxsession/LXDE-pi/autostart and replace the @lxterminal --command startsynergy with: @synergy --client --debug INFO --name raspberrypi --enable-crypto xxx.xxx.xxx.xxx:24800 where xxx.xxx.xxx.xxx is your server's IP address. Also, if you've changed the port in the server, be sure to change 24800 to whatever you changed it to. This will no longer use the bash script you made earlier and will simply load the desktop app itself. Make sure synercyc isn't running at the same time or you'll run into problems. Also, this will start the app without it loading the terminal window and should auto-connect to your server. Edited September 2, 2019 by dbatting 1 1 Link to post Share on other sites
mikekarcic 0 Posted October 9, 2019 Share Posted October 9, 2019 On 8/1/2019 at 10:00 PM, Sklar said: Just got a Pi 4 running Raspbian 10 (buster). This startsynergy script runs fine but the place to add the command (@lxterminal --command startsynergy) to run it at boot has changed in buster. It's now at ----> /etc/xdg/lxsession/LXDE-pi/autostart <----. As before, add that line before the line that starts @xscreensaver. This autostart file has moved before and we should assume that it will move again I expect. This worked for me, however I am on Raspbian 9 Stretch. Odd. Link to post Share on other sites
Wilber54 0 Posted May 5, 2020 Share Posted May 5, 2020 Hi Guys with a mixture of both your suggestions mainly using dbatting method However when I reboot I get the GUI with the empty hostname and the alert telling me that the Hostname is empty. How do I resolve this guys? Thanks Link to post Share on other sites
Sklar 8 Posted May 7, 2020 Share Posted May 7, 2020 If I understand what you're describing correctly, I most recently installed Synergy to a laptop running Lubuntu 20.04. I observed this same behavior until I saved the Synergy configuration. After I saved it to the Home directory, naming it default but you could name it anything I bet and, probably, save it anywhere, Synergy knew where the server is on every reboot. Have you saved the configuration? Link to post Share on other sites
Wilber54 0 Posted May 7, 2020 Share Posted May 7, 2020 Hi Sklar, Yes I have saved the Synergy config file, and have cleared the cache and re-installed Synergy several times and implemented all the methods and instructions submitted by yourself and others and still to no avail. Everything works fine with my PC to PC windows 10 (The main computer) the other win7. The only problem I have is with the Pi with the latest Raspbian operating system on it. My Pi is a model 3 B+ It's driving me insane because it still means I have to clutter my desk with 2 keyboards and Mice. Link to post Share on other sites
Guest Posted May 8, 2020 Share Posted May 8, 2020 Unfortunately, auto-run on Linux, in general, is not fully supported, we are looking to add better support in a future release. For the time being, there is no workaround to this, sorry for the trouble. Link to post Share on other sites
Wilber54 0 Posted May 8, 2020 Share Posted May 8, 2020 Hi Alexey, Thank you for your honesty. It is disappointing to hear as it was one of the main reasons why I purchased the software in the first place was for my Raspberry pi. It is useful thankfully because I am using 2 PC’s also, otherwise I would have asked for a refund. Please can you or Symless keep me informed as soon as a work around to this problem is found. Link to post Share on other sites
chotaa 0 Posted May 18, 2020 Share Posted May 18, 2020 (edited) On 7/20/2018 at 5:19 PM, Sklar said: I had to sort through old information to get method right and, as is usual in these cases, one small detail was holding me up. Here's what I did to get synergy 1.10 to start at boot on my Pi 3b+ running the latest Raspbian as of this date. Credit Nick Cullen for the script. 1) Make this script in /usr/bin and name it something descriptive like startsynergy. Or name it Bucephalus if you want. It worked for Alexander. It's usual to give scripts an extension like .sh, but not necessary. I didn't use an extension. Whatever you name it, use the full name in what follows. ===================================== #!/bin/bash killall synergyc # Kill all previous synergy clients sleep 1 # Wait 1 second /usr/bin/synergyc --name raspberrypi 192.168.1.5 # client name, server ip or name exit 0 # Exit gracefully # use full path to executable if synergy not installed by pkg manager. substitute your client name and server ip. # sunergyc = client, synergys = server ===================================== 2) Make the startsynergy script executable with --> sudo chmod +x /usr/bin/startsynergy 3) Add the following line to ~/.config/lxsession/LXDE-pi/autostart @lxterminal --command startsynergy Put this before the line that starts with @xscreensaver or else it will not run the script. Note: There are autostart files at /etc/xdg/lxsession/LXDE/autostart and at /etc/xdg/lxsession/LXDE-pi/autostart. Editing either of these will not run the script. You'll find people on line telling you to use one or the other of those but that is old information. Recent versions of Raspbian have per-user autostart files located in the home directory inside the hidden .config directory at the path in step 3. Use that one. Your script is correct if you can run it with the command startsynergy. The line you added in autostart will then do the same thing at boot - open a terminal and run the command. The terminal closes at the end of the script. Synergy will connect and run without opening the GUI that puts the little circle icon in the taskbar. This is fine for me as, once I've configured synergy the first time with the GUI, I never look at it. If you like the GUI to run, that takes one of about six other methods I've read about but not tried. Thanks Sklar. This solution worked with only a minor correction, which actually have cost me almost a whole day, but at the end I've got a victory. With a Raspberry Pi 3 with almost a fresh install, it doesn't come with an "autostart" file at ~/.config/lxsession/LXDE-pi/ . So since most other solutions suggest you to create an autostart file from scratch with just your command, it halts your boot process. What actually worked for me was to COPY the "autostart" file from /etc/xdg/lxsession/LXDE-pi/ to ~/.config/lxsession/LXDE-pi/ then edit the content of the file as Sklar described. @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @lxterminal --command startsynergy @xscreensaver -no-splash If you don't have anything else going on on your Pi like me, this is what your autostart file should lool like. Edited May 18, 2020 by chotaa Link to post Share on other sites
Sklar 8 Posted July 2, 2020 Share Posted July 2, 2020 Quoting dbatting above: ========================= Edit /etc/xdg/lxsession/LXDE-pi/autostart and replace the @lxterminal --command startsynergy with: @synergy --client --debug INFO --name raspberrypi --enable-crypto xxx.xxx.xxx.xxx:24800 where xxx.xxx.xxx.xxx is your server's IP address. Also, if you've changed the port in the server, be sure to change 24800 to whatever you changed it to. This will no longer use the bash script you made earlier and will simply load the desktop app itself. Make sure synercyc isn't running at the same time or you'll run into problems. Also, this will start the app without it loading the terminal window and should auto-connect to your server. ========================== I'm now running another new pi board (the 8 gig pi 4) with with Raspbian 10 (or Raspios or whatever they now call it) (buster). This is the best solution I've found. I've ditched the script. The only thing I'd add is that, until you set the server IP and save the configuration for the first time, it won't find the server at startup. There's bound to be a switch in the command line to start it minimized. I have to look that up. This is strictly a grace note, though. Link to post Share on other sites
Pi of things 1 Posted August 12, 2020 Share Posted August 12, 2020 (edited) As of August 2020, I couldn't figure out how to start the GUI with correct server address (Using Synergy as client)... but, I did manage to get the service started silently and I can live with that. I think Synergy has a bug where it saves it's first config file in /tmp folder and thereafter it doesn't pick up the config file even if you save it multiple times. Or it doesn't pick up the config file for client starts at all. Anyway solution on Raspberry Pi 4 (4Gb running latest Raspberry Pi OS May 2020 with updates). Edit /etc/xdg/lxsession/LXDE-pi/autostart. Note the -pi in the folder name, because there is another one called LDXE which has an autostart as well and as far as I know that one doesn't work. Add the following at the second last line of the file. @synergyc xxx.xxx.xxx.xxx So your file will look something like @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @synergyc 192.168.1.37 @xscreensaver -no-splash The address of course is your server's IP address. Reboot after this. Your synergy client should have started now. To test try pgrep synergy It should give you a number which is the process ID. Now you can disconnect keyboard and mouse and go back to the server. No additional scripts required. Edited August 12, 2020 by Pi of things minor edit 1 Link to post Share on other sites
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now