Konfigurera Netatalk

Mackan many at unx.se
Sat May 17 10:28:49 CEST 2008


15 maj 2008 kl. 15.11 skrev Tötterman, Petri:
>
> Hittade NetATalk som package och installerade, men har strul med  
> inställningarna. Råkar någon ha en enkel konfig-fil till NetATalk?  
> Behöver man lägga till något i kerneln också?
>
> Tacksam för alla tips!

Denna config galler for netatalk-2.0.3p1 i OpenBSD men bor vara  
valdigt lika i FreeBSD. Dessa ar mina installningar, som fungerar bra  
hos mig. Jag har inga skrivare, utan kor enbart med fildelning.


/etc/AppleVolumes.default:
~ options:noadouble


/etc/afpd.conf:
"OpenBSD AFP Fileserver" -noddp -uamlist uams_dhx.so -nodebug


/etc/netatalk.conf:
# Appletalk configuration
# Change this to increase the maximum number of clients that can  
connect:
AFPD_MAX_CLIENTS=50

# Change this to set the machine's atalk name and zone, the latter  
containing
# the '@' sign as first character -- compare with nbp_name(3) if in  
doubt
#
# NOTE: If Netatalk should register AppleTalk services in the standard  
zone
#       then you need not to specify a zone name here.
#
#       If your zone has spaces in it, you're better off specifying
#       it in afpd.conf if you realize that your distribution doesn't
#       handle spaces correctly in the startup script. Remember to use
#       quotes here if the zone name contains spaces.
#
#ATALK_ZONE="@some zone"
ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`

# specify the Mac and unix charsets to be used
ATALK_MAC_CHARSET='MAC_ROMAN'
ATALK_UNIX_CHARSET='LOCALE'

# specify this if you don't want guest, clrtxt, and dhx
# available options: uams_guest.so, uams_clrtxt.so, uams_dhx.so,
#                    uams_randnum.so
#AFPD_UAMLIST="-U uams_clrtxt.so,uams_dhx.so"

# Change this to set the id of the guest user
AFPD_GUEST=nobody

# Set which daemons to run (papd is dependent upon atalkd):
ATALKD_RUN=no
PAPD_RUN=no
CNID_METAD_RUN=no
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no

# Control whether the daemons are started in the background
ATALK_BGROUND=no

# export the charsets, read form ENV by apps
export ATALK_MAC_CHARSET
export ATALK_UNIX_CHARSET


Och, for att starta afpd vid boot:

/etc/rc.local:
#
# netatalk afpd
#
if [ -f /etc/netatalk/afpd.conf ]; then
         echo ' afpd'; /usr/local/sbin/afpd
fi

Det var faktiskt allt. Eftersom det nastan fungerade "out of the box"  
sa har jag inte fordjupat mig i NetATalk mera, det har fungerat fint  
sedan ett halvar tillbaka.


Mackan



More information about the BUS mailing list