Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'This is SOOOO cool!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
This is SOOOO cool!
Authored by: nick on Feb 02, '05 04:51:16AM
just tried this. i installed the client on my media-cube wich is hooked up to an lcd-tv in the livingroom. the server is installed on my powerbook.
i installed the client as a startupitem:
Synergy
|-- StartupParameters.plist
|-- Synergy
`-- synergyc

my Synergy-shellscript looks like this:
#!/bin/sh

StartService()
{
/Library/StartupItems/Synergy/synergyc Nikomat.local
}

StopService()
{
/usr/bin/killall synergyc
}

RestartService()
{
StopService
StartService
}

case $1 in
start) StartService;;
stop) StopService;;
restart) RestartService;;
esac


and the Startupitem.plist looks like this:
{
Description = "Synergy Client";
Provides = ("Synergy Client");
Requires = ("Core Graphics", "Resolver");
OrderPreference = "None";
Messages = {
restart = "Restarting Synergy Client for Nikomat";
start = "Starting Synergy Client for Nikomat";
stop = "Stopping Synergy Client";
};
}

on the serverside i start synergys with the f-option so i can stop it by CTRL-c it in the terminal.

[ Reply to This | # ]