{"id":120,"date":"2011-08-17T12:31:26","date_gmt":"2011-08-17T10:31:26","guid":{"rendered":"http:\/\/www.idoru.be\/notes\/?p=120"},"modified":"2011-08-17T12:31:26","modified_gmt":"2011-08-17T10:31:26","slug":"how-to-configure-rendezvousbonjourzeroconf-in-openbsd-with-avahi-deamon","status":"publish","type":"post","link":"http:\/\/www.idoru.be\/notes\/how-to-configure-rendezvousbonjourzeroconf-in-openbsd-with-avahi-deamon\/","title":{"rendered":"How to configure Rendezvous\/Bonjour\/ZeroConf in OpenBSD with avahi deamon"},"content":{"rendered":"<p>Since the howl package is no longer available, but the excellent avahi is, here&#8217;s how to install and configure it:<\/p>\n<p>(with an older OpenBSD system, you might want to check out:<\/p>\n<p>http:\/\/doink.org\/index.php?option=com_content&#038;task=view&#038;id=52&#038;Itemid=1)<\/p>\n<p>1. run a pkg_info on avahi:<\/p>\n<blockquote><p>Information for ftp:\/\/ftp.openbsd.org\/pub\/OpenBSD\/4.8\/packages\/i386\/avahi-0.6.27.tgz<\/p>\n<p>Comment:<br \/>\nframework for Multicast DNS Service Discovery<\/p>\n<p>Description:<br \/>\nAvahi is a free, standards-compliant implementation of the Zeroconf<br \/>\nprotocols Multicast DNS and DNS-SD.<br \/>\nIt is a system which facilitates service discovery on a local network.<br \/>\nThis means that you can plug your laptop or computer into a network and<br \/>\ninstantly be able to view other people who you can chat with, find<br \/>\nprinters to print to or find files being shared.\u00a0 This kind of<br \/>\ntechnology is already found in Apple MacOS X (branded Rendezvous,<br \/>\nBonjour and sometimes Zeroconf) and is very convenient.<\/p>\n<p>Maintainer: Antoine Jacoutot &lt;ajacoutot@openbsd.org&gt;<\/p>\n<p>WWW: http:\/\/www.avahi.org\/<\/p>\n<p>Install notice:<br \/>\nFor proper function, multicast(4) needs to be enabled. To do so, add the<br \/>\nfollowing line to \/etc\/rc.conf.local:<br \/>\nmulticast_host=YES<\/p>\n<p>To start avahi automatically, add the following to \/etc\/rc.local:<br \/>\n(after dbus-daemon but before Zeroconf-aware applications startup)<\/p>\n<p>if [ -x \/usr\/local\/sbin\/avahi-daemon ]; then<br \/>\necho -n &#8216; avahi-daemon&#8217;; \/usr\/local\/sbin\/avahi-daemon -D<br \/>\nfi<\/p>\n<p>Optionally to start the unicast DNS server configuration daemon, add<br \/>\nif [ -x \/usr\/local\/sbin\/avahi-dnsconfd ]; then<br \/>\necho -n &#8216; avahi-dnsconfd&#8217;; \/usr\/local\/sbin\/avahi-dnsconfd -D<br \/>\nfi<\/p><\/blockquote>\n<p>2. install the software<\/p>\n<p><em>pkg_add avahi<\/em><\/p>\n<p>* in case you run into the following, you haven&#8217;t got xbase etc&#8230; (see the openbsd install how to on the openbsd website to learn how to install this post install):<\/p>\n<p><em>Can&#8217;t install dbus-1.2.24p4 because of libraries<br \/>\n|library ICE.9.0 not found<br \/>\n| not found anywhere<br \/>\n|library SM.8.0 not found<br \/>\n| not found anywhere<br \/>\n|library X11.13.0 not found<br \/>\n| not found anywhere<br \/>\n|library Xau.9.0 not found<br \/>\n| not found anywhere<br \/>\n|library Xdmcp.10.0 not found<br \/>\n| not found anywhere<br \/>\n|library pthread-stubs.0.0 not found<br \/>\n| not found anywhere<br \/>\n|library xcb.2.1 not found<br \/>\n| not found anywhere<br \/>\nCan&#8217;t use string (&#8220;dbus-1.2.24p4&#8221;) as a HASH ref while &#8220;strict refs&#8221; in use at \/usr\/libdata\/perl5\/OpenBSD\/PkgAdd.pm line 883.<\/em><\/p>\n<p><em>if not, you&#8217;ll get another shot at some important info:<\/em><\/p>\n<blockquote><p>bash-4.1$ sudo pkg_add avahi<br \/>\navahi-0.6.27:libgamin-0.1.10p3: ok<br \/>\navahi-0.6.27:pcre-8.02p1: ok<br \/>\navahi-0.6.27:glib2-2.24.1p2: ok<br \/>\navahi-0.6.27:gdbm-1.8.3p0: ok<br \/>\navahi-0.6.27:dbus-1.2.24p4: ok<br \/>\navahi-0.6.27:libdaemon-0.13: ok<br \/>\navahi-0.6.27: ok<br \/>\n&#8212; +avahi-0.6.27 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nFor proper function, multicast(4) needs to be enabled. To do so, add the<br \/>\nfollowing line to \/etc\/rc.conf.local:<br \/>\nmulticast_host=YES<\/p>\n<p>To start avahi automatically, add the following to \/etc\/rc.local:<br \/>\n(after dbus-daemon but before Zeroconf-aware applications startup)<\/p>\n<p>if [ -x \/usr\/local\/sbin\/avahi-daemon ]; then<br \/>\necho -n &#8216; avahi-daemon&#8217;; \/usr\/local\/sbin\/avahi-daemon -D<br \/>\nfi<\/p>\n<p>Optionally to start the unicast DNS server configuration daemon, add<br \/>\nif [ -x \/usr\/local\/sbin\/avahi-dnsconfd ]; then<br \/>\necho -n &#8216; avahi-dnsconfd&#8217;; \/usr\/local\/sbin\/avahi-dnsconfd -D<br \/>\nfi<br \/>\n&#8212; +dbus-1.2.24p4 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nTo start systemwide message dbus daemon whenever the machine boots,<br \/>\nadd the following lines to \/etc\/rc.local:<\/p>\n<p>if [ -x \/usr\/local\/bin\/dbus-daemon ]; then<br \/>\ninstall -d -o _dbus -g _dbus \/var\/run\/dbus<br \/>\necho -n &#8216; dbus&#8217;; \/usr\/local\/bin\/dbus-daemon &#8211;system<\/p><\/blockquote>\n<p>3. add the last part to rc.local, after the avahi stuff you added in step 1<\/p>\n<p>4. change \/etc\/myname to someting .local<\/p>\n<p>5. edit \/etc\/avahi\/avahi-daemon.conf<\/p>\n<p>host-name=&lt;your-name&gt;<\/p>\n<p>use-ipv6=no<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the howl package is no longer available, but the excellent avahi is, here&#8217;s how to install and configure it: (with an older OpenBSD system, you might want to check out: http:\/\/doink.org\/index.php?option=com_content&#038;task=view&#038;id=52&#038;Itemid=1) 1. run a pkg_info on avahi: Information for ftp:\/\/ftp.openbsd.org\/pub\/OpenBSD\/4.8\/packages\/i386\/avahi-0.6.27.tgz Comment: framework for Multicast DNS Service Discovery Description: Avahi is a free, standards-compliant implementation [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-howto"],"_links":{"self":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":2,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":143,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/120\/revisions\/143"}],"wp:attachment":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}