View Full Version : [lubuntu] Synergy auto-start before login in LXDE

November 22nd, 2010, 02:09 PM
I'd like Synergy to auto-start before and after login. After login is fine, but I can't find instructions for getting it to start before login (ie: so I can use synergy to enter user id/password). The Synergy docs don't cover LXDE. :(

Anyone done this before?

November 24th, 2010, 02:20 PM

January 13th, 2011, 12:58 AM
Wow, I can't believe I'm not the only one needing to know this as well. I thought the Ubuntu steps might work but they don't.

Can anyone shed some light on this?

January 18th, 2011, 01:01 AM
Here's the closest I've got so far...

Add this line:
Syneryc xxx.xxx.x.xx (ip address)

to the following file: /etc/xdg/lxsession/Lubuntu/autostart

Still trying to find a solution to start on boot.

January 18th, 2011, 01:52 AM
Solution Found!

From the terminal, type sudo gedit /etc/init.d/rc.local

At the end of the file, add synergyc <your ip address> save and close.

I reboot and synergy started on boot.

Let me know if it works for you.

January 18th, 2011, 08:57 AM
Nice one. Thanks.

February 27th, 2012, 05:13 AM
I am running a minimal install of 11.10 on an Asus eeepc 701 2g surf, with a 4 gig SDHC holding the entire OS, and LXDE. Since I keep this plugged into a monitor when I'm not away, I have the monitor settings at 800x480 for the LCD on the netbook, and 1024 x 768 on the monitor.

Though the above instructions did start synergyc at the login screen, I couldn't get the system to recognise the working area of the monitor's resolution. Everything worked just like it says on the box, but still runs in the upper right of the screen.

I know this works in Gnome by modifying the file lightdm.conf. I will try to find a solution to my problem as well, and am not as good with Linux as I'd like to be...

January 6th, 2013, 05:39 AM
I just installed Lubuntu 12.10 and cannot for the life of me get synergyc to start at boot (before login).

The farthest I've got is by creating synergyc.conf in /etc/init/ with the following contents:

start on login-session-start
exec /usr/bin/synergyc

However, it doesn't work. I can see that it's being called via the syslog, but the error returned is:

WARNING: cannot open secondary screen: unable to open screen#012#011/build/buildd/synergy-1.3.8/src/cmd/synergyc/synergyc.cpp,346

What am I doing wrong? I'd LOVE to accomplish this!

January 6th, 2013, 05:49 AM
Nevermind! I was able to accomplish this by following the instructions found here:


Add the following line at the end of /etc/lightdm/lightdm.conf:

greeter-setup-script=/usr/bin/synergyc <SERVER HOSTNAME>

Where <SERVER HOSTNAME> is the name/IP of the server you are connecting to.

January 28th, 2013, 04:41 AM
As a side note (for when I actually need this data again on the next hard drive failure driven reinstall)

if you use arandr to setup a dual/multi monitor system and save the configuration then use synergy in the lightdm.conf file without configuring lightdm for dual screen with the same script, you get really wonky synergy driven mouse behaviour with locking on whichever single monitor had the lightdm login on it.

To stop this from happening you need to configure lightdm for proper dual screen and configure your desktop from lightdm as well.

I added the following to my /etc/lightdm/lightdm.conf file to get it to work flawlessly:

#for the login screen
#for my desktop session
greeter-setup-script=/usr/bin/synergyc -n serverv3

Where dual.sh is my saved arandr dual screen config.