<?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>disgruntled-dutch.com &#187; afp</title>
	<atom:link href="http://www.disgruntled-dutch.com/tag/afp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.disgruntled-dutch.com</link>
	<description>The ins and outs of Yvo's life.</description>
	<lastBuildDate>Wed, 31 Mar 2010 02:47:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to get your Linux-based AFP server to show up correctly in Leopard&#8217;s new Finder</title>
		<link>http://www.disgruntled-dutch.com/2007/general/how-to-get-your-linux-based-afp-server-to-show-up-correctly-in-leopards-new-finder</link>
		<comments>http://www.disgruntled-dutch.com/2007/general/how-to-get-your-linux-based-afp-server-to-show-up-correctly-in-leopards-new-finder#comments</comments>
		<pubDate>Sat, 27 Oct 2007 00:06:02 +0000</pubDate>
		<dc:creator>Yvo</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[tech tips]]></category>
		<category><![CDATA[afp]]></category>
		<category><![CDATA[avahi]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[netatalk]]></category>

		<guid isPermaLink="false">http://www.disgruntled-dutch.com/2007/general/how-to-get-your-linux-based-afp-server-to-show-up-correctly-in-leopards-new-finder/</guid>
		<description><![CDATA[I upgraded to Leopard a day early, but in that day I have already found a new feature that required a change on my Linux server to make everything work peachy. Leopard&#8217;s new Finder now lists computers under the &#8220;Shared&#8221; section on the left hand panel. This is pretty snazzy. Not only can you manually [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded to Leopard a day early, but in that day I have already found a new feature that required a change on my Linux server to make everything work peachy. </p>
<p>Leopard&#8217;s new Finder now lists computers under the &#8220;Shared&#8221; section on the left hand panel. This is pretty snazzy. Not only can you manually mount a server via Apple + K (Connect to server), all local servers show up here. However it seems that if your Mac and/or Linux based machine doesn&#8217;t have some sort of zeroconf (aka Bonjour) service advertising AFP, then it shows up as a Samba (aka PC Server) under Shared. </p>
<p><strong>Assumption:<br />
I assume you have netatalk configured correctly, as in your rebuild it correctly with dhx support <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=191790">(not by default in Debian)</a>. </strong>. You can read more about that <a href="http://www.disgruntled-dutch.com/2007/general/download-install-the-netatalk-203-package-with-encryption-support-for-debian/">here</a>.<br />
So under Debian the fix is as follows:</p>
<p>1. sudo su &#8211; or su -<br />
2. aptitude install avahi-daemon<br />
3. echo &#8220;- -noddp -uamlist uams_randnum.so,uams_dhx.so&#8221; > /etc/netatalk/afpd.conf<br />
4. vi /etc/nsswitch<br />
change your hosts line to be like this:<br />
hosts:          files dns mdns4<br />
5. paste in (no quotes):<br />
&#8216;cd /etc/avahi/services; wget http://www.disgruntled-dutch.com/media/afpd.service&#8217;<br />
6. /etc/init.d/netatalk restart &#038;&#038; /etc/init.d/avahi-daemon restart &#038;&#038; tail -n70 /var/log/syslog</p>
<p>Check if it started up like for example:</p>
<pre>
<code>Oct 26 11:03:42 thenas afpd[26279]: Registering CNID module [last]
Oct 26 11:03:42 thenas afpd[26279]: Registering CNID module [cdb]
Oct 26 11:03:42 thenas afpd[26279]: Registering CNID module [dbd]
Oct 26 11:03:42 thenas afpd[26279]: Loading ConfigFile
Oct 26 11:03:42 thenas afpd[26279]: main: atp_open: Cannot assign requested address
Oct 26 11:03:42 thenas afpd[26279]: dsi_tcp: hostname 'thenas' resolves to loopback address
Oct 26 11:03:42 thenas afpd[26279]: dsi_tcp: '192.168.1.250' on interface 'eth1' will be used instead.
Oct 26 11:03:42 thenas afpd[26279]: ASIP started on 192.168.1.250:548(5) (2.0.3)
Oct 26 11:03:42 thenas afpd[26279]: Sucessfully registered afp://192.168.1.250/?NAME=thenas&amp;ZONE= with SRVLOC
Oct 26 11:03:42 thenas afpd[26279]: uam: loading (/usr/lib/netatalk/uams_dhx.so)
Oct 26 11:03:42 thenas afpd[26279]: uam: uams_dhx.so loaded
Oct 26 11:03:42 thenas afpd[26279]: uam: loading (/usr/lib/netatalk/uams_guest.so)
Oct 26 11:03:42 thenas afpd[26279]: uam: uams_guest.so loaded
Oct 26 11:03:42 thenas afpd[26279]: uam: loading (/usr/lib/netatalk/uams_clrtxt.so)
Oct 26 11:03:42 thenas afpd[26279]: uam: uams_clrtxt.so loaded
Oct 26 11:03:42 thenas afpd[26279]: uam: loading (/usr/lib/netatalk/uams_passwd.so)
Oct 26 11:03:42 thenas afpd[26279]: uam_load(uams_passwd.so): mod_symbol error for symbol uams_passwd
Oct 26 11:03:42 thenas afpd[26279]: uam: uams_passwd.so load failure
Oct 26 11:03:42 thenas afpd[26279]: uam: loading (/usr/lib/netatalk/uams_gss.so)
Oct 26 11:03:42 thenas avahi-daemon[26246]: Got SIGTERM, quitting.
Oct 26 11:03:42 thenas avahi-daemon[26246]: Leaving mDNS multicast group on interface eth1.IPv4 with address 192.168.1.250.
Oct 26 11:03:42 thenas afpd[26279]: uam: uams_gss.so loaded
Oct 26 11:03:42 thenas afpd[26279]: uam: "Client Krb v2" available
Oct 26 11:03:42 thenas afpd[26279]: uam: "Cleartxt Passwrd" available
Oct 26 11:03:42 thenas afpd[26279]: uam: "No User Authent" available
Oct 26 11:03:42 thenas afpd[26279]: uam: "DHCAST128" available
Oct 26 11:03:42 thenas afpd[26279]: main: dsi_init: Address already in use
Oct 26 11:03:42 thenas afpd[26279]: uam: loading (/usr/lib/netatalk/uams_randnum.so)
Oct 26 11:03:42 thenas afpd[26279]: uam: uams_randnum.so loaded
Oct 26 11:03:42 thenas afpd[26279]: uam: loading (/usr/lib/netatalk/uams_dhx.so)
Oct 26 11:03:42 thenas afpd[26279]: uam: uams_dhx.so loaded
Oct 26 11:03:42 thenas afpd[26279]: Finished parsing Config File
Oct 26 11:03:42 thenas avahi-daemon[26290]: Found user 'avahi' (UID 107) and group 'avahi' (GID 106).
Oct 26 11:03:42 thenas avahi-daemon[26290]: Successfully dropped root privileges.
Oct 26 11:03:42 thenas avahi-daemon[26290]: avahi-daemon 0.6.21 starting up.
Oct 26 11:03:42 thenas avahi-daemon[26290]: Successfully called chroot().
Oct 26 11:03:42 thenas avahi-daemon[26290]: Successfully dropped remaining capabilities.
Oct 26 11:03:42 thenas avahi-daemon[26290]: Loading service file /services/afpd.service.
Oct 26 11:03:42 thenas avahi-daemon[26290]: Joining mDNS multicast group on interface eth1.IPv4 with address 192.168.1.250.
Oct 26 11:03:42 thenas avahi-daemon[26290]: New relevant interface eth1.IPv4 for mDNS.
Oct 26 11:03:42 thenas avahi-daemon[26290]: Network interface enumeration completed.
Oct 26 11:03:42 thenas avahi-daemon[26290]: Registering new address record for fe80::213:d4ff:fe0a:2da8 on eth1.*.
Oct 26 11:03:42 thenas avahi-daemon[26290]: Registering new address record for 192.168.1.250 on eth1.IPv4.
Oct 26 11:03:42 thenas avahi-daemon[26290]: Registering HINFO record with values 'I686'/'LINUX'.
Oct 26 11:03:43 thenas avahi-daemon[26290]: Server startup complete. Host name is thenas.local. Local service cookie is 962578462.
Oct 26 11:03:44 thenas avahi-daemon[26290]: Service "thenas" (/services/afpd.service) successfully established.</code>
</pre>
<p>You are good to go!</p>
<p>EDIT: Had to escape the XML code.<br />
EDIT2: added a &#8216;wget step&#8217; due to mangled XML code on this blog. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.disgruntled-dutch.com/2007/general/how-to-get-your-linux-based-afp-server-to-show-up-correctly-in-leopards-new-finder/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
