old-www/LDP/lame/LAME/linux-admin-made-easy/netatalk-file-and-print.html

388 lines
7.8 KiB
HTML

<HTML
><HEAD
><TITLE
>Macintosh-style File and Print Services with Netatalk</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="HOME"
TITLE="Linux Administration Made Easy"
HREF="index.html"><LINK
REL="UP"
TITLE="Custom Configuration and Administration Issues"
HREF="custom-config.html"><LINK
REL="PREVIOUS"
TITLE="Windows-style File and Print Services with Samba"
HREF="samba-file-and-print.html"><LINK
REL="NEXT"
TITLE="Network File System (NFS) Services"
HREF="nfs-services.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux Administration Made Easy</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="samba-file-and-print.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 7. Custom Configuration and Administration Issues</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="nfs-services.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="NETATALK-FILE-AND-PRINT"
>7.5. Macintosh-style File and Print Services with Netatalk</A
></H1
><P
>Linux can also provide Appleshare services (eg. Macintosh-style network
file &#38; printer sharing), using the Netatalk package. This section will
describe how to configure shares, and how to access them from client
machines.</P
><P
>In order to use Netatalk, you will need to have Appletalk networking
support in your Linux kernel. Stock kernels from Red Hat usually already
include this support as a module, or you can compile your own custom
kernel with such support.</P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Note: </B
>Note: Make sure Appletalk support is compiled in as a
<EM
>module</EM
> and not included as part of the kernel (see
<A
HREF="linux-kernel-upgrades.html"
>Section 10.4</A
> for details on how to upgrade or
customize the Linux kernel). Otherwise you will have difficulties when
stopping and then restarting the Netatalk daemon.</P
></BLOCKQUOTE
></DIV
><P
>Once you have ensured your kernel is capable of supporting Appletalk, you
will need to install the Netatalk package. Because Netatalk is not
included with the Red Hat distribution, you will have to download and
install a copy. The Netatalk package can be found on Red Hat's
<SPAN
CLASS="QUOTE"
>"contrib"</SPAN
> site, at
<A
HREF="ftp://ftp.redhat.com/contrib/libc6/i386/"
TARGET="_top"
>ftp://ftp.redhat.com/contrib/libc6/i386/</A
>.</P
><P
>After Netatalk has been installed, you may need to modify one or
more configuration files in
``<TT
CLASS="LITERAL"
><TT
CLASS="FILENAME"
>/etc/atalk/</TT
></TT
>''. Most of the
files contain sample configuration examples, and therefore are at least
somewhat self-documenting. The files are:</P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>config</DT
><DD
><P
>This file contains configuration information for tuning
your Netatalk daemon. This information is specified in environment
variables, and this file is <SPAN
CLASS="QUOTE"
>"sourced"</SPAN
> (ie. read) by the
Netatalk start up script before the service is started. You can specify
the number of simultaneous connections, whether or not guest logins are
allowed, etc. You will almost certainly want to modify this file
according to your needs.</P
></DD
><DT
>atalk.conf</DT
><DD
><P
>This file contains information on which network interface
to use, as well as your Appletalk routing, name registration, and other
related information. You will likely not need to modify this file; the
required network information is detected and added to this file the first
time you start the Netatalk server. However, you may wish to add your
server name.</P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Note: </B
><EM
>Note: Type ``<TT
CLASS="LITERAL"
>man atalkd</TT
>'' for
more information on this file.</EM
></P
></BLOCKQUOTE
></DIV
></DD
><DT
>afpd.conf</DT
><DD
><P
>This file allows you to specify additional parameters
which are passed to Netatalk by means of command-line options. You can
specify which port or IP address you wish to run the Netatalk server on,
add a login message that is displayed to connecting users, as well as
other related options. You will likely not need to modify this file.</P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Note: </B
><EM
>Note: Type ``<TT
CLASS="LITERAL"
>man afpd</TT
>'' for more
information on this file.</EM
></P
></BLOCKQUOTE
></DIV
></DD
><DT
>papd.conf</DT
><DD
><P
>The file contains configuration information for enabling
Mac users to print to network printer shares. I haven't played with this
yet, so unfortunately I can't offer any advice on it.</P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Note: </B
><EM
>Note: Type ``<TT
CLASS="LITERAL"
>man papd</TT
>'' for more
information on this file.</EM
></P
></BLOCKQUOTE
></DIV
></DD
><DT
>AppleVolumes.default</DT
><DD
><P
>This file lists the available file shares that a Mac user
will see after logging in. To enable a share, enter the path to the file
directory, followed by a textual description of it. For example:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>~ "Home"
/archive/busdept "Business Department Common Files"</PRE
></TD
></TR
></TABLE
><P
>(The above will provide two shares to connecting Mac users: their
home directory, as well as a shared area for the business
department.)</P
><DIV
CLASS="TIP"
><BLOCKQUOTE
CLASS="TIP"
><P
><B
>Tip: </B
>Tip: A neat trick here is to set up shares with the same
file paths under Samba, which would provide your users with platform-
independent file shares for both your Mac as well as your Windows users.
See <A
HREF="samba-file-and-print.html"
>Section 7.4</A
> for details on using
Samba.</P
></BLOCKQUOTE
></DIV
></DD
><DT
>AppleVolumes.system</DT
><DD
><P
>This file also lists file shares just like
``<TT
CLASS="LITERAL"
><TT
CLASS="FILENAME"
>AppleVolumes.default</TT
></TT
>'' does, the
difference being that these shares will be made available to
<EM
>all</EM
> users, regardless of whether or not they log in.
This file also contains file-type mappings. You will likely not need to
modify this file unless you want to add general shares available to
anyone; this is probably a bad idea for most people.</P
></DD
></DL
></DIV
><P
>Once everything has been set up with appropriate configuration
information, you can start the Netatalk services manually by
typing:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="USERINPUT"
><B
>/etc/rc.d/init.d/atalk start</B
></TT
></PRE
></TD
></TR
></TABLE
><P
>(The services should start up automatically at system boot).</P
><P
>More information on Netatalk can be obtained from the Netatalk Home
Page at <A
HREF="http://www.umich.edu/~rsug/netatalk/"
TARGET="_top"
>http://www.umich.edu/~rsug/netatalk/</A
>. In addition, very helpful
configuration information is available in the Linux Netatalk HOWTO,
available at <A
HREF="http://thehamptons.com/anders/netatalk/"
TARGET="_top"
>http://thehamptons.com/anders/netatalk/</A
>.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="samba-file-and-print.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="nfs-services.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Windows-style File and Print Services with Samba</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="custom-config.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Network File System (NFS) Services</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>