Subject: Re: Where is the netatalk dir?
To: Frederick Bruckman <fredb@immanent.net>
From: Daniel R. Killoran,Ph.D. <drk@shore.net>
List: netbsd-help
Date: 07/18/2001 11:23:41
Frederick Bruckman wrote:
>On Tue, 17 Jul 2001, Daniel R. Killoran,Ph.D. wrote:
>
>>  Frederick Bruckman wrote:
>>  >Rebooting isn't going to start netatalk. You need to set up
>>  >/etc/netalk
>>
>>  I didn't find this file mentioned in the docs, and it doesn't exist
>>  on my system.
>>  Can you point me at some instructions about setting it up?
>
>Sure it is (it's a directory). "man atalkd", "man afpd".

So I did:
MacIIvx# find  /  -name  "netatalk*"  -print

and got:

/usr/include/netatalk
/usr/src/sys/netatalk
/usr/pkgsrc/net/netatalk
/usr/pkgsrc/net/netatalk-asun
/usr/pkgsrc/distfiles/netatalk
/usr/pkgsrc/distfiles/netatalk/share/examples/netatalk
/usr/pkg/etc/rc.d/netatalk.sh
/usr/pkg/include/netatalk
/usr/pkg/share/examples/netatalk
/usr/pkg/share/examples/netatalk/netatalk.pamd
/var/db/pkg/netatalk-asun-2.1.3nb4
/usr1/netatalk-asun-2.1.3nb4.tgz
/usr1/netatalk-umich-19990130nb2.tgz

Which one is it?

The man for it says:

"It first reads from its configura-
        tion file, /etc/netatalk/atalkd.conf.  If there is no con-
        figuration  file,  atalkd  will  attempt  to configure all
        available interfaces and will create a configuration file."

but it didn't create the file.

The copy under examples gives its format as:

interface  [  -seed ] [ -phase number ] [ -net net-range ] [ -addr 
address ] [ -zone zonename ]

but gives no indication of what "interface" should be, and the 
example is not illuminating (apparently it isn't a IP number).


>  > >and run /usr/pkg/etc/rc.d/netatalk.sh, or arrange to have
>>  >it run as root.

I tried starting it manually, and got:
MacIIvx# /usr/pkg/etc/rc.d/netatalk.sh
starting appletalk daemons:atalkd is already running (pid = 200), or 
the lock file is st
ale.
  atalkdnbp_rgstr: Network is unreachable
Can't register MacIIvx:Workstation@*
nbp_rgstr: Network is unreachable
Can't register MacIIvx:netatalk@*
  nbprgstr papdJul 18 10:58:37 MacIIvx papd[282]: No such printer: lp
Jul 18 10:58:37 MacIIvx papd[282]: No such printer: lp
Jul 18 10:58:37 MacIIvx papd[282]: printcap problem: lp
Jul 18 10:58:37 MacIIvx papd[282]: printcap problem: lp
Jul 18 10:58:37 MacIIvx papd[282]: can't register MacIIvx:LaserWriter@*
Jul 18 10:58:37 MacIIvx papd[282]: can't register MacIIvx:LaserWriter@*
  afpd.
MacIIvx# Jul 18 10:58:39 MacIIvx afpd[284]: Can't register MacIIvx:AFPServer@*
Jul 18 10:58:39 MacIIvx afpd[284]: Can't register MacIIvx:AFPServer@*

(looping at this point)

>  > >I think that's a problem, there. You've set up a NIS domainname, but
>>  >there's no NIS server. Usually you just set "hostname" to an FQDN in
>>  >/etc/rc.conf (or /etc/myname), not "domainname".
>>
>  > I did this at the instance of the "walk through" docs on the website
>  > - it didn't make sense to me either!

Ok, I changed "shore.net"(which is the name of my ISP) to "cogco.lan" 
which makes more sense.

Here is some of the relevant data:

MacIIvx# cat /etc/hosts
#       $NetBSD: hosts,v 1.5.4.1 2000/08/15 14:37:19 itojun Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# It is used only for "ifconfig" and other operations
# before the nameserver is started.
#
#
::1                     localhost
127.0.0.1               localhost  localhost.cogco.lan
#
# RFC 1918 specifies that these networks are "internal".
# 10.0.0.0      10.255.255.255
# 172.16.0.0    172.31.255.255
# 192.168.0.0   192.168.255.255
#
# Computers in CogCo local net:
192.168.3.1   MacIIvx   MacIIvx.cogco.lan
192.168.3.2   MacIIx    MacIIx.cogco.lan
192.168.3.3   9500-233  9500-233.cogco.lan
192.168.3.4   iMac      iMac.cogco.lan
192.168.3.5   9500-120  9500-120.cogco.lan

I didn't change the following. Should I?:
MacIIvx# cat networks
#       $NetBSD: networks,v 1.5 1998/07/10 06:22:15 fair Exp $
#       from: @(#)networks      8.1 (Berkeley) 6/9/93
#
# Your Local Networks Database
# See networks(5) and hostname(7)
#
#your-net       127                             # your comment
#your-netmask   255.255.255                     # subnet mask for your-net

#
# Your subnets
#
#subnet1        127.0.1         alias1          # comment 1
#subnet2        127.0.2         alias2          # comment 2
#
loopback        127     # UNIX loopback interface network number
#


Sorry to have so many questions, but setting up a net like this is 
apparently an art form!

Dan Killoran