<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>derzeit namenlos &#187; howto</title>
	<atom:link href="http://blog.lostpackets.de/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lostpackets.de</link>
	<description></description>
	<lastBuildDate>Mon, 05 Dec 2011 19:33:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>FreeBSD im Apple Netz (mit TimeMachine) [update 4]</title>
		<link>http://blog.lostpackets.de/2008/10/06/freebsd-im-apple-netz/</link>
		<comments>http://blog.lostpackets.de/2008/10/06/freebsd-im-apple-netz/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 19:53:02 +0000</pubDate>
		<dc:creator>Christian Geier</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://blog.lostpackets.de/?p=240</guid>
		<description><![CDATA[<img src="http://blog.lostpackets.de/wp-content/uploads/icons/FreeBSD.png" width="45" height="47" alt="" title="FreeBSD" /><img src="http://blog.lostpackets.de/wp-content/uploads/icons/mac.png" width="41" height="45" alt="" title="mac" /><br/>[letztes update vom 15.06.2010] afpd mit mDNS/zeroconf/Bonjour auf FreeBSD 8 (aber genauso auf FreeBSD 7 bzw 7.1 ) netatalk-2.1.1_1,1 als AFP Server avahi-0.6.24 für den mDNS Broadcoast nss_mdns-0.10_1 als mDNS Resolver neuen Kernel kompilen mit options NETATALK Mag zwar nicht wirklich nötig sein, denn afp läuft auch ohne, aber dann taucht in /var/log/messages bei jedem [...]]]></description>
			<content:encoded><![CDATA[<img src="http://blog.lostpackets.de/wp-content/uploads/icons/FreeBSD.png" width="45" height="47" alt="" title="FreeBSD" /><img src="http://blog.lostpackets.de/wp-content/uploads/icons/mac.png" width="41" height="45" alt="" title="mac" /><br/><p>[letztes update vom 15.06.2010]<br />
afpd mit mDNS/zeroconf/Bonjour auf FreeBSD 8 (aber genauso auf FreeBSD 7 bzw 7.1 )</p>
<p><span class="mono">netatalk-2.1.1_1,1</span> als AFP Server<br />
<span class="mono">avahi-0.6.24</span> für den mDNS Broadcoast<br />
<span class="mono">nss_mdns-0.10_1</span> als mDNS Resolver</p>
<p><span id="more-240"></span><br />
neuen Kernel kompilen mit<br />
<em>options NETATALK </em><br />
Mag zwar nicht wirklich nötig sein, denn afp läuft auch ohne, aber dann taucht in <em>/var/log/messages</em> bei jedem Start ein <em>Mar 21 11:13:52 brutus afpd[1127]: main: atp_open: Protocol not supported</em> auf.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /usr/ports/net/netatalk<br />
# make install clean<br />
# cd /usr/ports/dns/nss_mdns<br />
# make install clean</div></div>
<p>avahi ist Vorraussetzung für nss_mdns, wird also direkt mitinstalliert, default Konfiguration bis auf [X] LIBDNS.<br />
in <em>/etc/rc.conf</em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dbus_enable=&quot;YES&quot;<br />
avahi_daemon_enable=&quot;YES&quot;<br />
cnid_metad_enable=&quot;YES&quot; # cnid backend für afpd<br />
netatalk_enable=&quot;YES&quot;<br />
afpd_enable=&quot;YES&quot;</div></div>
<p><em>/usr/local/etc/netatalk.conf</em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ATALKD_RUN=no # kein AppleTalk<br />
PAPD_RUN=no<br />
AFPD_RUN=yes</div></div>
<p>Für jeden zu veröffentlichenden Dienst ist in <em>/usr/local/etc/avahi/services</em> eine XML-Datei nachfolgendem Schema anzulegen, hier ein Beispiel für afp, Name der Datei z.B. <em>afp.service</em>:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt; ?xml version=&quot;1.0&quot; standalone='no'?&amp;gt;&lt;!--*-nxml-*--&gt;<br />
&amp;lt; !DOCTYPE service-group SYSTEM &quot;avahi-service.dtd&quot;&amp;gt;<br />
<br />
%h<br />
<br />
_afpovertcp._tcp<br />
548</div></div>
<p>Alle (?) Service Types sind hier beschrieben: <a href="http://www.dns-sd.org/ServiceTypes.html">http://www.dns-sd.org/ServiceTypes.html</a></p>
<p>Wer in der Findersidebar gerne einen anderes Bild als das standard Apple Display sehen möchte, fügt noch direkt über &lt;/service-group&gt; ein:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">_device-info._tcp<br />
model=bsd<br />
0</div></div>
<p>Statt <em>model=Xserve</em> sind noch mehrere andere Modelle möglich.</p>
<p>Damit auch <em>hostname.local</em> aufgelöst wird die Zeile <em>host: </em> in <em>/etc/nsswitch.conf</em> bearbeiten:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">hosts: files mdns_minimal [NOTFOUND=return] dns mdns</div></div>
<p>Die zu exportierenden Volumes hier eintragen:<br />
<em>/usr/local/etc/AppleVolumes.default</em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/data allow:user1,user2,@group1, @group2 dbpath:/var/AppleDB options:usedot,noadouble,nohex</div></div>
<p><span class="mono">/data</span> wird geshared<br />
die Benutzer <span class="mono">user1</span> und <span class="mono">user</span>, sowie die Gruppen (bzw deren. Mitglieder) <span class="mono">group1</span> und <span class="mono">group2</span> haben Zugriff.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dbpath:/var/AppleDB</div></div>
<p>verlegt den .AppleDB Ordner<br />
für weiter optionen siehe: <a href="http://netatalk.sourceforge.net/2.0/htmldocs/AppleVolumes.default.5.html">AppleVolumes.default</a></p>
<p>ein &#8220;~&#8221; in einer Zeile shared die Home-Verzeichnisse.</p>
<p>Die Optiontmstellt das Volumen Time Machine zur Verfügung.</p>
<p>hat man mehr als ein Network Interface evtl. noch <em>/usr/local/etc/afpd.conf</em> editieren.</p>
<p>will man nicht neustarten:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># /usr/local/etc/rc.d/netatalk start<br />
# /usr/local/etc/rc.d/dbus start<br />
# /usr/local/etc/rc.d/avahi-daemon start</div></div>
<p>In <em>/var/log/messages</em> tauchen ein paar Warnungen auf:<br />
<em>“WARNING: No NSS support for mDNS detected, consider installing nss-dns!”</em><br />
trotz installiertem (und funktionierendem!) nss-dns. Nunja.</p>
<p><del datetime="2010-06-15T18:51:23+00:00">Und mehr oder weniger regelmäßig im Betrieb:<br />
<em>Mar 18 21:44:16 brutus afpd[pid]: bad function 4C</em><br />
<em>Mar 18 21:46:12 brutus afpd[pid]: bad function 4E</em><br />
<em>Mar 18 21:46:18 brutus afpd[pid]: bad function 4F</em></del><br />
unter netatalk 2.1 tauchen diese Fehlermeldungen nicht mehr auf und sind evtl implementiert.</p>
<p>Diese Funktionen sind bisher undokumentierte Änderungen im AFP Protokoll, siehe hier: <a href="http://lists.apple.com/archives/filesystem-dev/2008/Apr/msg00031.html"><br />
http://lists.apple.com/archives/filesystem-dev/2008/Apr/msg00031.html</a> (4C in hex ist 76 dezimal, 4E 78 und 4F 79.)</p>
<p>76 ist ein Spotlight Kommando. 78 und 79 werden für Timemachine Backups auf den AFP-Volumen benötigt, unter anderem sicher gehen, dass die Daten auch wirklich auf der Platte sind und nicht noch im Cache liegen. Wann und ob diese Funktionen von netatalk bereitgestellt werden, scheint noch nicht festzustehen.</p>
<p><del datetime="2010-06-15T18:51:23+00:00"><br />
Wer unbedingt möchte, kann natürlich auch schon jetzt TimeMachine Backups auf den AFP Server machen ( <a href="http://www.macosxhints.com/article.php?story=20071028173642747">http://www.macosxhints.com/article.php?story=20071028173642747</a> ), besonders sicher scheint dies aber nicht zu sein.</del></p>
<p><del datetime="2009-10-10T08:29:43+00:00">[update2 17.6.2009]<br />
TimeMachine Unterstützung ist bereits in HEAD und wird wohl mit netatalk 2.1 released werden (<a href="http://marc.info/?l=netatalk-devel&amp;m=124414449730140&amp;w=2">Re: [Netatalk-devel] Development Roadmap</a>)</del></p>
<p>[update 3 10.10.2009] Time Machine Unterstützung kommt schon mit Netatalk 2.0.5, der zweite Release Canditade ist schon veröffentlicht, siehe: <a href="http://www.netafp.com/node/4">http://www.netafp.com/node/4</a></p>
<p>[update1 20.03.2009] Umstieg von howl auf avahi, mehr Informationen zu undokumentieten Funktionen</p>
</p><p class="technocrati">Technorati Tags: <a href="http://technorati.com/tag/FreeBSD" rel="tag">FreeBSD</a>, <a href="http://technorati.com/tag/Apple" rel="tag"> Apple</a>, <a href="http://technorati.com/tag/OSX" rel="tag"> OSX</a>, <a href="http://technorati.com/tag/afpd" rel="tag"> afpd</a>, <a href="http://technorati.com/tag/netatalk" rel="tag"> netatalk</a>, <a href="http://technorati.com/tag/bonjour" rel="tag"> bonjour</a>, <a href="http://technorati.com/tag/zeroconf" rel="tag"> zeroconf</a>, <a href="http://technorati.com/tag/mDNS" rel="tag"> mDNS</a>, <a href="http://technorati.com/tag/howto" rel="tag"> howto</a>, <a href="http://technorati.com/tag/lang%3Ade" rel="tag"> lang:de</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lostpackets.de/2008/10/06/freebsd-im-apple-netz/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

