Differences
This shows you the differences between the selected revision and the current version of the page.
howto:appletalk 2008/06/22 19:12 | howto:appletalk 2017/12/04 19:33 current | ||
---|---|---|---|
Line 9: | Line 9: | ||
[[AppleTalk]] is a networking protocol developed by Apple before TCP/IP was ubiquitous. It originally ran on Apple-proprietary cabling, but was later adopted to run over standard Ethernet cables, which is still possible. There is little advantage to using AppleTalk over TCP/IP today, but there are some legacy machines and applications that may require it. On Linux, AppleTalk is enabled by the "atalkd" daemon. | [[AppleTalk]] is a networking protocol developed by Apple before TCP/IP was ubiquitous. It originally ran on Apple-proprietary cabling, but was later adopted to run over standard Ethernet cables, which is still possible. There is little advantage to using AppleTalk over TCP/IP today, but there are some legacy machines and applications that may require it. On Linux, AppleTalk is enabled by the "atalkd" daemon. | ||
- | [[AFP]] (Apple Filing Protocol) on the other hand, is a file-sharing protocol analogous to [[SMB]] or [[NFS]], but with some features that make it more advantageous for Mac clients in some situations; for instance, AFP supports a wider character set than SMB, and has support for older Mac files with separate data and resource forks. AFP is supported on Linux by the "afpd" daemon. | + | [[wp>Apple_Filing_Protocol|AFP]] (Apple Filing Protocol) on the other hand, is a file-sharing protocol analogous to [[wp>Server_Message_Block|SMB]] or [[wp>Network_File_System_(protocol)|NFS]], but with some features that make it more advantageous for Mac clients in some situations; for instance, AFP supports a wider character set than SMB, and has support for older Mac files with separate data and resource forks. AFP is supported on Linux by the "afpd" daemon. |
Thus, if all you need is AFP and you are running Mac OS X clients, you do //not// need to configure or worry about atalkd at all! | Thus, if all you need is AFP and you are running Mac OS X clients, you do //not// need to configure or worry about atalkd at all! | ||
+ | |||
===== Step-By-Step Instruction (ffp 0.5/optware method)===== | ===== Step-By-Step Instruction (ffp 0.5/optware method)===== | ||
+ | |||
==== Step 1 - Preparation ==== | ==== Step 1 - Preparation ==== | ||
Set up [[telnet]] access, and either follow the [[ffp]] 0.5 or the [[optware]] guides to set up those package systems. | Set up [[telnet]] access, and either follow the [[ffp]] 0.5 or the [[optware]] guides to set up those package systems. | ||
+ | |||
==== Step 2 - Installing Appletalk/AFP ==== | ==== Step 2 - Installing Appletalk/AFP ==== | ||
[[Telnet]] or ssh into the box, if you want to use the [[ffp]] package type: | [[Telnet]] or ssh into the box, if you want to use the [[ffp]] package type: | ||
- | <code>cd /ffp/ | + | <code> |
- | rsync -av --delete inreto.de::dns323/fun-plug/0.5/packages . | + | mkdir /ffp/packages |
cd /ffp/packages | cd /ffp/packages | ||
- | /ffp/sbin/funpkg -i netatalk*</code> | + | |
+ | #rsync -av --delete inreto.de::dns323/fun-plug/0.5/packages . | ||
+ | #The location of netatalk has changed... | ||
+ | |||
+ | wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/All/netatalk-2.0.5-1.tgz | ||
+ | wget http://www.inreto.de/dns323/fun-plug/0.5/packages/db42-4.2.52-1.tgz | ||
+ | |||
+ | /ffp/sbin/funpkg -i netatalk* | ||
+ | /ffp/sbin/funpkg -i db42* </code> | ||
If you want to use the [[optware]] package type: | If you want to use the [[optware]] package type: | ||
<code>/opt/bin/ipkg install netatalk</code> | <code>/opt/bin/ipkg install netatalk</code> | ||
+ | |||
==== Step 3 - Configure your AFP ==== | ==== Step 3 - Configure your AFP ==== | ||
Line 29: | Line 42: | ||
Setting the home directories of the users is important. This can be done in the console or in the web GUI by setting the FTP access directory for each user. | Setting the home directories of the users is important. This can be done in the console or in the web GUI by setting the FTP access directory for each user. | ||
+ | |||
+ | OR, if you have an open configuration (no passwords/accounts) you can add the following to /ffp/etc/netatalk/AppleVolumes.default to export both of your drives (if you have 2) as Volume_1 and Volume_2. Note you can change the volume names to most any alphanumeric string. | ||
+ | |||
+ | /mnt/HD_a2 Volume_1 | ||
+ | /mnt/HD_b2 Volume_2 | ||
==== Step 4 - Finalizing the installation ==== | ==== Step 4 - Finalizing the installation ==== | ||
Now you should just be able to execute "afpd" and have access. You will probably want to add an "afpd" line to the fun_plug file, or the following script can be added to the [[ffp]] start directory so that it starts automatically when the unit boots. | Now you should just be able to execute "afpd" and have access. You will probably want to add an "afpd" line to the fun_plug file, or the following script can be added to the [[ffp]] start directory so that it starts automatically when the unit boots. | ||
+ | |||
**afpd.sh:**<code>#!/ffp/bin/sh | **afpd.sh:**<code>#!/ffp/bin/sh | ||
# PROVIDE: afpd | # PROVIDE: afpd | ||
- | # BEFORE: SERVERS | + | # BEFORE: |
- | # REQUIRE: rcS sarge | + | # REQUIRE: |
. /ffp/etc/ffp.subr | . /ffp/etc/ffp.subr | ||
Line 57: | Line 76: | ||
afpd_status() | afpd_status() | ||
{ | { | ||
- | ps -A | grep /ffp/sbin/afpd | + | ps -A | grep /ffp/sbin/afpd | grep -v grep |
} | } | ||
run_rc_command "$1"</code> | run_rc_command "$1"</code> | ||
+ | |||
+ | In order to ensure fun_plug will detect this script and start-up the afpd automatically at startup, be sure to modify the permissions to ensure afpd.sh is executable. The command is: | ||
+ | |||
+ | <code>chmod +x /ffp/start/afpd.sh</code> | ||
===== Step-By-Step Instruction (chroot debian method)===== | ===== Step-By-Step Instruction (chroot debian method)===== | ||
==== Step 1 - Preparation ==== | ==== Step 1 - Preparation ==== | ||
Set up [[telnet]] access, a minimal [[chroot_debian|Debian distro]], and the "busybox" commands so that you can chroot to it. This is all on the [[chroot_debian|wiki]]. Now for some reason I couldn't get this working with the "sarge" install, but with the "etch" install it went smoothly. By downloading the minimal "etch" distro, you do NOT need a separate x86 Debian box. | Set up [[telnet]] access, a minimal [[chroot_debian|Debian distro]], and the "busybox" commands so that you can chroot to it. This is all on the [[chroot_debian|wiki]]. Now for some reason I couldn't get this working with the "sarge" install, but with the "etch" install it went smoothly. By downloading the minimal "etch" distro, you do NOT need a separate x86 Debian box. | ||
+ | |||
==== Step 2 - Installing Appletalk/AFP ==== | ==== Step 2 - Installing Appletalk/AFP ==== | ||
Line 82: | Line 106: | ||
apt-get build-dep netatalk | apt-get build-dep netatalk | ||
cd netatalk-2.0.3 | cd netatalk-2.0.3 | ||
- | DEB_BUILD_OPTIONS=ssl debuild | + | export DEB_BUILD_OPTIONS=ssl |
+ | debuild | ||
dpkg -i ../netatalk_*.deb | dpkg -i ../netatalk_*.deb | ||
</code> | </code> | ||
+ | |||
Line 95: | Line 121: | ||
This allows you to connect to your home directory via port 12000 and encrypts the passwords. | This allows you to connect to your home directory via port 12000 and encrypts the passwords. | ||
+ | |||
+ | OR, if you have an open configuration (no passwords/accounts) you can add the following to /ffp/etc/netatalk/AppleVolumes.default to export both of your drives (if you have 2) as Volume_1 and Volume_2. Note you can change the volume names to most any alphanumeric string. | ||
+ | |||
+ | /mnt/HD_a2 Volume_1 | ||
+ | /mnt/HD_b2 Volume_2 | ||
+ | |||
+ | Also note, if your harddrives are mounted at a different location, you'll need to modify the "/mnt/HD_a2" string accordingly. The 'df' command will show you where all of the drives are mountd. | ||
==== Step 4 - Finalizing the installation ==== | ==== Step 4 - Finalizing the installation ==== |