Wednesday, September 12, 2007

The Fender Lip Roller

Monday I finally got around to ordering my Fender Lip Roller and to my surprise it showed up today. Already have plans to fix blake's and my fenders so we stop chewing up our tires. He actually replaced his but alas I don't have that luxury to have another spare set of summer tires.

Tuesday, September 4, 2007

SynergyKM updated Bash Script and config

Well here is version 2 of the Synergy Startup script I am using. Just set the LOCAL_COMPUTER and REMOTE_COMPUTER variables with your computer hostnames and execute with start|stop. Also here is the Synergy server config I am using. Replace LOCAL_COMPUTER_ALIASES and REMOTE_COMPUTER_ALIASES tokens with your information. Also with the aliases its best to put in anything it could be known by including IP. By not doing this if you have to restart the client you may not regain access to it unless you do a reboot. Its a bug I ran into.

Synergy Config:
section: screens
server:
switchCorners = all
switchCornerSize = 25
client:
end
section: aliases
server:
LOCAL_COMPUTER_ALIASES (IP & HOSTNAME)
client:
REMOTE_COMPUTER_ALIASES (IP & HOSTNAME)
end
section: links
server:
left = client
client:
right = server
end


Bash Start/Stop Link Script:
#!/bin/bash
LOCAL_COMPUTER=
REMOTE_COMPUTER=

if [ "$LOCAL_COMPUTER" == "" -o "$REMOTE_COMPUTER" == "" ]; then
echo "Script has not been configured"
exit 0
fi;

PID=`ps -ax | grep "ssh -fnNT -R 24800:$LOCAL_COMPUTER:24800 $REMOTE_COMPUTER" | grep -v 'grep' | awk '{print $1}'`

case "$1" in
start)
echo "Starting Synergy Link"
if [ "$PID" == "" ]; then
ssh -fnNT -R 24800:$LOCAL_COMPUTER:24800 $REMOTE_COMPUTER
ssh $REMOTE_COMPUTER "net start \"Synergy Client\""
echo "Synergy Link Opened"
else
echo "Synergy Link already opened"
exit 0
fi;
;;

stop)
echo "Stopping Synergy Link"
if [ "$PID" != "" ]; then
ssh $REMOTE_COMPUTER "net stop \"Synergy Client\""
kill $PID
echo "Synergy Link Closed"
else
echo "Synergy Link already closed"
exit 0
fi;
;;

restart)
./$0 stop
./$0 start
;;

*)
echo "Usage (start|stop)"
;;
esac