[Freedombox-discuss] [Freedom Box] Finding your FB box on the network

Bjarni Rúnar Einarsson bre at beanstalks-project.net
Wed Oct 13 22:14:16 UTC 2010


Excellent ideas here.

On Wed, Oct 13, 2010 at 9:45 PM, Christian Brædstrup <
linuxchristian at gmail.com> wrote:

> Hey Guys,
>
> I have been hacking on the Debian live system the last couple of days and
> have something working I wanted to share. I have written a couple of Perl
> script to help computers on the LAN find the FB box. One is a primitive
> broadcast server running on the box and the other is a client you start on
> your local machine that grabs the packages from the server and opens Firefox
> to point at the box.


Have you looked at the zeroconf stuff? Both Apple and MS have done work in
this space - I think the Apple stuff is open source and not too horrible,
based on open protocols:

   http://en.wikipedia.org/wiki/Zero_configuration_networking

For maximum success, we'd probably like to be able to speak both protocols,
embrace, extend, etc. ;-)


>
> It still isn't perfect ex. the script runs for 120 sec on boot and shutdown
> (Haven't found a way only to run it on boot and only when it is needed) but
> it works. Also it can only handle eth0 but I should be able to fix that with
> time.
>

Take a look at the structure of some of the other scripts in /etc/init.d/ -
you will see that generally they have a switch statement checking what the
first argument is. On boot the argument "start" is present, on shutdown
"stop". You should be able to fix this with a little bit of copy-paste.

-- 
Bjarni R. Einarsson
Founder, CEO and janitor of the Beanstalks Project.

http://beanstalks-project.net/  ~  http://bre.klaki.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/freedombox-discuss/attachments/20101013/e5160c67/attachment.htm>


More information about the Freedombox-discuss mailing list