Web page service discover announcement is missing. (Bug #161)


Added by Eric Hildum almost 2 years ago. Updated almost 2 years ago.


Status:New Start date:12/17/2015
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-

Description

As shipped, the Debian releases contain an active http server serving the pages for documentation. The system is also configured to generate a multicast DNS name of beaglebone.local; however, it does not also announce the http server via DNS Service Discovery. Many IoT devices, for example, all network printers, make these announcements to make configuration easy. The self hosted Beagle web site should also announce itself in this manner to make discovery of this web site easy.


History

Updated by Eric Hildum almost 2 years ago

There seems to be a problem attaching files to bug reports. At any rate, the fix is as follows:

Create a file named http.service in the directory /etc/avahi/services.
The file contents should be:
<!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">

<!-- See avahi.service(5) for more information about this configuration file -->

<service-group>

&lt;name replace-wildcards="yes"&gt;Bone 101 web site for %h&lt;/name&gt;
&lt;service&gt;
&lt;type&gt;_http._tcp&lt;/type&gt;
&lt;port&gt;80&lt;/port&gt;
&lt;/service&gt;

</service-group>

Updated by Robert Nelson almost 2 years ago

Yeah files are an issue with this interface..

can you upload that to gist.github.com or pastebin and i'll add it to target customization script:

https://github.com/RobertCNelson/omap-image-builder/blob/master/target/chroot/beagleboard.org-jessie.sh

Regards,

Updated by Eric Hildum almost 2 years ago

Okay, I think I managed to add it here: [[https://gist.github.com/eric1138/a65e88648be35316deb7]]

Updated by Eric Hildum almost 2 years ago

Come to think of it, it might also make sense to add a similar file for the Cloud 9 IDE. It is at [[https://gist.github.com/eric1138/870a46de37e7c517a09c]]

Updated by Eric Hildum almost 2 years ago

I have added both files to my beagle board and tested. After placing the files in the /etc/avahi/services directory, execute the following to reload avahi:

sudo avahi-daemon --reload

If you have Safari, you should see the pages listed as Websites under the Bonjour favorite (you may have to enable it to see it). Chrome has it available in the API, but I have no idea how to get that in a usable form on the favorites or toolbar.

This is very handy and really makes the IoT service discovery easy.

Updated by Eric Hildum almost 2 years ago

Thank you.

Also available in: Atom PDF