Results 1 to 2 of 2
The Issue: I would like to be able to turn on my linux machine and have the synergy client automatically connect to my synergy server that is constantly running on ...
- 01-17-2012 #1
Synergy, connecting to a server without ahving a user logged on.
The Issue: I would like to be able to turn on my linux machine and have the synergy client automatically connect to my synergy server that is constantly running on my Windows machine.
As of right now, whenever I want to start the synergy client on my linux machine (OpenSUSE 12.1), I have to grab the keyboard and mouse from behind the additional monitor and manually log in and run "synergyc -f XXXXX".
I have tried to run the command through putty while not logged in but it just refuses the connection.
Is there any way that I can be able to run this command using putty while the linux machine is sitting at the login screen?
EDIT: I understand that I can have a user automatically log in and have the command run automatically once logged in. My goal though is to be able to have it up and running at the login screen so that I can still just use the server's mouse/keyboard.
Thanks!Last edited by paveway; 01-17-2012 at 11:04 PM.
- 01-18-2012 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,838
Perhaps you can put your connection command in /etc/rc.d/rc.local - the contents of this file are executed after the system is done booting up.
E.g., your rc.local file might look like:
You might also want to look into running it in a screen session. screen is a special program that is a pseudo-terminal which can be backgrounded and have programs (that want to interact with a terminal) running in it. you could run it like:Code:#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. # start my client /path/to/synergyc -f XXXXX
you could then list screens running with:Code:screen -S MyClient -dm /path/to/program prog_args
then re-attach to a screen listed with:Code:screen -ls
Code:screen -r <PID>


Reply With Quote