1

I have a Red Had Enterprise Linux 5 and a CentOS 5 box, both of which I am trying to configure to automatically connect to a synergy server on startup. I have followed the guide at http://synergy2.sourceforge.net/autostart.html and configured them the same way I configured previous Ubuntu 7.10 boxes, and this only seems to get me half way there. Currently, synergy connects at the login screen, but once I login, it doesn't come back up.

I added the following lines to /etc/gdm/{Init,PostLogin,PreSession}/Default :

/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc fried-chicken # Init,PreSession only

All files are owned by root:root with 755 permissions, I'm just not sure what I'm missing here.

4

4 回答 4

3

试试Synergy Autostart wiki 页面

于 2009-07-28T18:45:51.013 回答
0

Just want to add: when following Matt's advice about putting a call to /usr/bin/synergyc in /etc/gdm/Init/Default, ensure you don't use the -f option there or the script will never exit and you won't be able to log in.

于 2010-06-07T16:58:28.820 回答
0

我在 RHEL 5.4 上使用以下添加到 /etc/gdm/{Init,PostLogin,PreSession}/Default

/usr/bin/killall synergyc
while [ $(pgrep -x synergyc) ]; do sleep 0.1; done
/usr/bin/synergyc fully.qualified.hostname

在所有情况下,将脚本添加到任何现有脚本之后,但“exit 0”之前。这对我有用。我认为只要您使用默认 X 会话,它就应该可以工作,如果使用任何自定义会话,您可能必须将脚本移动到适当的位置。

于 2010-07-07T10:48:04.890 回答
0

尝试wall 'test'在脚本中添加类似的内容,看看是否会出现在控制台上。如果是这样,您知道脚本正在被调用,但这是协同作用的问题。如果没有,则根本不会调用脚本。

于 2009-07-21T19:31:11.233 回答