Difference between revisions of "Netatalk"

From 68kMLA Wiki
Jump to: navigation, search
m
(header and command formatting, wikilinks)
Line 1: Line 1:
 
This is a WIP, I'm also new to wikis... So... I'll work on the formatting.  [[User:PowerPup|PowerPup]] ([[User talk:PowerPup|talk]]) 00:46, 3 March 2014 (UTC)
 
This is a WIP, I'm also new to wikis... So... I'll work on the formatting.  [[User:PowerPup|PowerPup]] ([[User talk:PowerPup|talk]]) 00:46, 3 March 2014 (UTC)
  
[http://netatalk.sourceforge.net/ Netatalk] is an Open Source implementation of Apple's AFP server. The 2.x series of Netatalk supports AFP over AppleTalk, which is useful for remote storage for aging vintage Macs. This page will eventually contain tutorials on how to setup Netatalk on different *nix distros as I test on each of them.
+
[http://netatalk.sourceforge.net/ Netatalk] is an Open Source implementation of Apple's AFP server. The 2.x series of Netatalk supports AFP over [[AppleTalk]], which is useful for remote storage for aging vintage Macs. This page will eventually contain tutorials on how to setup Netatalk on different *nix distros as I test on each of them.
  
= Setting up Netatalk (2.2.2) on Ubuntu 13.10 Saucy =
+
== Setting up Netatalk (2.2.2) on Ubuntu 13.10 Saucy ==
 
Since the AppleTalk protocol is already compiled as a kernel module in Ubuntu, there's no need to recompile the kernel. So we just install netatalk from the Ubuntu repositories:
 
Since the AppleTalk protocol is already compiled as a kernel module in Ubuntu, there's no need to recompile the kernel. So we just install netatalk from the Ubuntu repositories:
  
 
<code>sudo apt-get install netatalk</code>
 
<code>sudo apt-get install netatalk</code>
  
== Enable AppleTalk: /etc/default/[http://netatalk.sourceforge.net/2.2/htmldocs/netatalk.conf.5.html netatalk] ==
+
=== Enable AppleTalk: /etc/default/[http://netatalk.sourceforge.net/2.2/htmldocs/netatalk.conf.5.html netatalk] ===
 
Use a text editor to uncomment and change the line "ATALKD_RUN" from "no" to "yes"
 
Use a text editor to uncomment and change the line "ATALKD_RUN" from "no" to "yes"
  
<code>ATALKD_RUN=yes</code>
+
<kbd>ATALKD_RUN=yes</kbd>
  
== Enable AFP Server: /etc/netatalk/[http://netatalk.sourceforge.net/2.2/htmldocs/afpd.conf.5.html afpd.conf] ==
+
=== Enable AFP Server: /etc/netatalk/[http://netatalk.sourceforge.net/2.2/htmldocs/afpd.conf.5.html afpd.conf] ===
 
Using a text editor, add the following (or use it as a reference) to the end of the file:  
 
Using a text editor, add the following (or use it as a reference) to the end of the file:  
  
<code>"AppleTalkServer" -ddp -notcp -uamlist uams_guest.so</code>
+
<kbd>"AppleTalkServer" -ddp -notcp -uamlist uams_guest.so</kbd>
  
You can change <code>-ddp -notcp</code> to <code>-transall</code> for both tcp and ddp(AppleTalk) support.
+
You can change <kbd>-ddp -notcp</kbd> to <kbd>-transall</kbd> for both tcp and ddp(AppleTalk) support.
  
== Configure AppleTalk Interface(s): /etc/netatalk/[http://netatalk.sourceforge.net/2.2/htmldocs/atalkd.conf.5.html atalkd.conf] ==
+
=== Configure AppleTalk Interface(s): /etc/netatalk/[http://netatalk.sourceforge.net/2.2/htmldocs/atalkd.conf.5.html atalkd.conf] ===
 
Use a text editor to add at the end of the file the device you want to have AppleTalk use: (eg; eth0, wlan0, etc)
 
Use a text editor to add at the end of the file the device you want to have AppleTalk use: (eg; eth0, wlan0, etc)
  
 
I'll add info about routing here when I know how to... [http://netatalk.sourceforge.net/2.0/htmldocs/configuration.html#id4074370 Configuration info here]
 
I'll add info about routing here when I know how to... [http://netatalk.sourceforge.net/2.0/htmldocs/configuration.html#id4074370 Configuration info here]
  
== Adding shares for guest: /etc/netatalk/[http://netatalk.sourceforge.net/2.2/htmldocs/AppleVolumes.default.5.html AppleVolumes.default] ==
+
=== Adding shares for guest: /etc/netatalk/[http://netatalk.sourceforge.net/2.2/htmldocs/AppleVolumes.default.5.html AppleVolumes.default] ===
 
Create a directory with read/write permissions for everyone:
 
Create a directory with read/write permissions for everyone:
  
<code>sudo mkdir /AppleShare -m 777</code>
+
<kbd>sudo mkdir /AppleShare -m 777</kbd>
  
 
Add a line to "/etc/netatalk/AppleVolumes.default" pointing to the directory and allow guests:
 
Add a line to "/etc/netatalk/AppleVolumes.default" pointing to the directory and allow guests:
Line 34: Line 34:
 
/AppleShare "Shared Folder" allow:guest
 
/AppleShare "Shared Folder" allow:guest
  
== Reboot Netatalk service ==
+
=== Reboot Netatalk service ===
<code>sudo service netatalk restart</code>
+
<kbd>sudo service netatalk restart</kbd>
  
 
Now you should be able to find "AppleTalkServer" under Chooser, connect as guest, mount "Shared Folder" and copy away!
 
Now you should be able to find "AppleTalkServer" under Chooser, connect as guest, mount "Shared Folder" and copy away!
  
 
I still need to test if I can connect with Mac OS 8 and under. I will edit this when I have confirmed that it does.
 
I still need to test if I can connect with Mac OS 8 and under. I will edit this when I have confirmed that it does.

Revision as of 09:42, 3 March 2014

This is a WIP, I'm also new to wikis... So... I'll work on the formatting. PowerPup (talk) 00:46, 3 March 2014 (UTC)

Netatalk is an Open Source implementation of Apple's AFP server. The 2.x series of Netatalk supports AFP over AppleTalk, which is useful for remote storage for aging vintage Macs. This page will eventually contain tutorials on how to setup Netatalk on different *nix distros as I test on each of them.

Setting up Netatalk (2.2.2) on Ubuntu 13.10 Saucy

Since the AppleTalk protocol is already compiled as a kernel module in Ubuntu, there's no need to recompile the kernel. So we just install netatalk from the Ubuntu repositories:

sudo apt-get install netatalk

Enable AppleTalk: /etc/default/netatalk

Use a text editor to uncomment and change the line "ATALKD_RUN" from "no" to "yes"

ATALKD_RUN=yes

Enable AFP Server: /etc/netatalk/afpd.conf

Using a text editor, add the following (or use it as a reference) to the end of the file:

"AppleTalkServer" -ddp -notcp -uamlist uams_guest.so

You can change -ddp -notcp to -transall for both tcp and ddp(AppleTalk) support.

Configure AppleTalk Interface(s): /etc/netatalk/atalkd.conf

Use a text editor to add at the end of the file the device you want to have AppleTalk use: (eg; eth0, wlan0, etc)

I'll add info about routing here when I know how to... Configuration info here

Adding shares for guest: /etc/netatalk/AppleVolumes.default

Create a directory with read/write permissions for everyone:

sudo mkdir /AppleShare -m 777

Add a line to "/etc/netatalk/AppleVolumes.default" pointing to the directory and allow guests:

/AppleShare "Shared Folder" allow:guest

Reboot Netatalk service

sudo service netatalk restart

Now you should be able to find "AppleTalkServer" under Chooser, connect as guest, mount "Shared Folder" and copy away!

I still need to test if I can connect with Mac OS 8 and under. I will edit this when I have confirmed that it does.