[Rack] Building some new electronics to open the gate?

Jonathan Lassoff jof at thejof.com
Sun Nov 13 21:23:51 UTC 2011


Well, and the real way to be sure is to login to the Wyse box itself (
user at 172.30.0.31) and run /usr/local/bin/open-door which is the actual
binary that frobs the data lines on the parallel port.

Only then, if that breaks, would I call things "broken". The retardedness
with ssh and sshpass was one of the motivators for me writing the daemon --
SSHing in just to execute a tiny commands is super-crazy-elephant-gun-sized
overkill. The CPU on there isn't that fast, so if many people trigger it at
once it slows down.

That's why I'd like a little daemon that can be triggered with a UDP packet
(and a detent mechanism). It's fast, simple, and relatively hard to break,
and an interface to it is a simple invocation of netcat away.

I hope to be by and experiment with it tonight.

Cheers,
jof

On Sun, Nov 13, 2011 at 1:13 PM, miloh <froggytoad at gmail.com> wrote:

>
>
> The hardware isn't broken.
>
>
> Your software is broken.  I just tested it at noisebridge.  Did you read
> the thread on it?
> https://www.noisebridge.net/pipermail/rack/2011-November/001095.html
>
> using the sshpass utility with -fnq doesn't work, perhaps the utility
> doesn't work the same way it did after the system upgrades.
>
>
> pony% diff /usr/local/bin/opengate /usr/local/bin/bacngate | grep sshpass
> < sshpass -p 'live' ssh -fnq -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null user at 172.30.0.31 "bash -c 'open-door'" >
> /dev/null
> < USELOGIN="sshpass -p 'live'"
> > sshpass -p 'live' ssh -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null user at 172.30.0.31 "bash -c 'open-door'" >
> /dev/null &
> > sshpass -p 'live' ssh -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null user at 172.30.0.31 "bash -c 'if [ ! -f
> /usr/bin/beep ]; then sudo apt-get -y install beep ; fi ; beep -f 665.4064
> -l 200 -n -f 550 -l 200 -n -f 666 -l 100 -f 200 -l 50 -n -f 1093.00 -l 100
> -n -f 2186.01 -l 50 -n -f 65.4064 -l 100 -n -f 130.813 -l 100 -n -f 461.626
> -l 100 -n -f 423.251 -l 100 -n -f 446.50 -l 50 -n -f 873.00 -l 100 -n -f
> 1686.01 -l 300 -n -f 261.626 -l 200'" > /dev/null&
> > # sshpass -p 'live' ssh -fnq -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null user at 172.30.0.31 "bash -c 'aplay test.wav'"
> pony%
>
>
>
> _______________________________________________
> Rack mailing list
> Rack at lists.noisebridge.net
> https://www.noisebridge.net/mailman/listinfo/rack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.noisebridge.net/pipermail/rack/attachments/20111113/7cbf37aa/attachment.html>


More information about the Rack mailing list