Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 4:00 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Mar 07, 2009 8:47 am 
Offline

Joined: Sat Sep 20, 2008 10:17 am
Posts: 20
Yubihome is my YubiKing 2009 project.

This is an implementation of using Yubikey to open front door of my house. You can find more information from http://wiki.yubico.com/wiki/index.php/A ... o_building.

Current implementation has USB extension cable from front door to my Home Control server which is running Windows. I have analyzed security threats in my system design blog http://smartpirtti-yubikey.blogspot.com ... ssues.html . I believe it's not easy to hack but I'm not happy with that.

To really solve this I'm planning of installing different PC for just reading keyboard and sending OTP's as a UDP broadcast to network, where my Home Control server can do authorization, open door, switch lights etc. More detailed plan is found from http://smartpirtti-yubikey.blogspot.com ... under.html.

My question is, what would be good Linux distribution for this kind of solution? It should be very light weighted, maybe fit into 128M USB-stick?

Or even better: Does anybody know any cheap router that has place for USB disk and internally runs linux? That would be ideal hardware to create new firmware to do this kind of simple task. I believe that could be used on many other projects too.
This could be good place to start digging: http://en.wikipedia.org/wiki/Linksys_WRT54G_series. Model WRTSL54GS has USB for "StorageLink"...
From there you can find link to small linux distro http://openwrt.org/ that can be embedded to Linksys firmware.
Maybe that's a good distro to start prototyping with?


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Sun Mar 08, 2009 10:00 pm 
Offline

Joined: Mon Mar 02, 2009 9:56 pm
Posts: 10
iipee wrote:
My question is, what would be good Linux distribution for this kind of solution? It should be very light weighted, maybe fit into 128M USB-stick?

I do not know them but here you can find a comparisation of linux os which are usefull for small systems http://lifehacker.com/5069054/battle-of-the-thumb-drive-linux-systems.

But I think openwrt seems to be a good start.

Cheers,
Jens


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 16, 2009 6:31 am 
Offline

Joined: Thu Apr 16, 2009 3:03 am
Posts: 5
You could consider the Ubiquiti RouterStation Pro. It runs OpenWRT and has USB and SDIO port for additional storage if needed. The Pro is very new and I think does not ship yet, but I see some sites selling it. For example http://www.streakwave.com/Itemdesc.asp?ic=RouterS%5FPro. You might want to give them a call.

If you can fit in the 16 MB on-board flash you can use the normal RouterStation, which is available from many sources at around $70, but I guess you need a USB port so this does not work.

You could also consider a full blown general purpose distro. For example you could install Debian or DSL in about 250 MB on a USB or Compact Flash. The benefit would be easier installation and ability to install any additional package you might need running on a normal x86 board. Disadvantage is hardware. Need to find some small board. I did something like that experimenting a while back on an embedded board from Advantech. Worked pretty well. These boards are generally pretty expensive, but I had one leftover from a different project. Now adays there are quite a few small boards that could work. Starting with VIA mini-ITX and the latest addition to the choices Atom based boards -
http://www.newegg.com/Product/ProductLi ... rder=PRICE

There are also some other low cost and small form factor x86 solutions (thin clients fall under this category). For example eBox-2300, ALIX boards from PC Engines, HP T5700, etc. You might be able to pickup something cheaply at eBay


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 17, 2009 5:55 am 
Offline

Joined: Thu Apr 16, 2009 3:03 am
Posts: 5
iipee wrote:
To really solve this I'm planning of installing different PC for just reading keyboard and sending OTP's as a UDP broadcast to network, where my Home Control server can do authorization, open door, switch lights etc. More detailed plan is found from http://smartpirtti-yubikey.blogspot.com ... under.html.


I don't quite understand why you want to do a UDP broadcast, but here is very simple shell script that should be completely sufficient to send the key you get in a UDP message using out-of-the-box tools

Code:
#!/bin/sh

PORT=9999            # port to send message to
DESTIP="127.0.0.1"      # IP address of destination machine

NETCAT_CMD="nc -w 1 -n -u $DESTIP $PORT"   # use UDP
#NETCAT_CMD="nc -w 1 $DESTIP $PORT"         # use TCP


while (true)
do
   read KEY
   echo "Got key $KEY"
   echo $KEY | $NETCAT_CMD
done


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 08, 2009 8:43 pm 
Offline

Joined: Tue Sep 08, 2009 3:55 pm
Posts: 1
I know this is an old thread, but take a look at http://www.marvell.com/products/embedde ... vaplug.jsp . It's essentially a computer that fits into a wall socket, and has ethernet and usb. Perfect for something like home automation and Yubikey, perhaps?

How did you end up doing it?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group