Difference between revisions of "Netatalk"

From ArchWiki
Jump to: navigation, search
(Enable Autodiscover)
(Enable Autodiscover)
Line 26: Line 26:
  
 
==Enable Autodiscover==
 
==Enable Autodiscover==
To enable Autodiscovery, we have to install avahi and nss-mdns
+
To enable Autodiscover (your netbook sees your netatalk-server in the finder), we have to install avahi and nss-mdns
  
 
#pacman -S avahi nss-mdns
 
#pacman -S avahi nss-mdns
Line 36: Line 36:
 
Create a new service configuration file ({{codeline|/etc/avahi/services/afpd.service}}):
 
Create a new service configuration file ({{codeline|/etc/avahi/services/afpd.service}}):
  
{{file|name=/etc/avahi/services/afpd.service|content=
 
 
  <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
 
  <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
 
  <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
 
  <!DOCTYPE service-group SYSTEM "avahi-service.dtd">

Revision as of 16:18, 13 August 2010

Netatalk is a free, open-source implementation of the AppleTalk suite of protocols. It allows Unix-like operating systems to serve as file, print and time servers for Macintosh computers.

Installation

There is a netatalk package available in AUR. But the PKGBUILD should be modified to allow the faster CDB backend to be used.

Add Template:Codeline to the Template:Codeline line.

Now run makepkg and install the package.

Configuration

Edit the afpd configuration File (Template:Codeline) and the follwing line to the very end of the file replacing the existing one:

Template:File

Configure shared volumes

To add a shared volume, we have to edit the Template:Codeline-Configuration file, add a line like this:

Template:File

Warning: Avoid nesting volumes, do not share directories, which are filed under already shared directories

Enable Time-Machine Support

To enable Time-Machine-Support just add Template:Codeline to the options for the volume in Template:Codeline.

Enable Autodiscover

To enable Autodiscover (your netbook sees your netatalk-server in the finder), we have to install avahi and nss-mdns

  1. pacman -S avahi nss-mdns

Now configure the nss service (Template:Codeline) and add Template:Codeline to the Template:Codeline-line so it looks like this:

{{file|name=/etc/nsswitch.conf|content=...
hosts: files dns mdns4 mdns
...}

Create a new service configuration file (Template:Codeline):

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
   <name replace-wildcards="yes">%h</name>
   <service>
      <type>_afpovertcp._tcp</type>
      <port>548</port>
   </service>
   <service>
      <type>_device-info._tcp</type>
      <port>0</port>
      <txt-record>model=Xserve</txt-record>
   </service>
</service-group>

}