Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
It took some effort but AFP is working. Except not with the "-port 12000" option as mentioned in the wiki. It does work without the -port option or with "-port 548". I compiled netatalk, so files are visible in the mounted directory.
I also have avahi running. Some instructions:
http://gentoo-wiki.com/HOWTO_Share_Directories_via_AFP
http://avahi.org/
But it doesn't do anything usefull for me. "mDNS -B _afpovertcp._tcp" show the AFP drive and "mDNS -B _ssh._tcp" shows the ssh service.......wow. I should type about all my problems here. Again, doublechecking if everything I type is true revealed that avahi is working! HA!
Ok, now only the question remains: What is the problem with port 12000? Is this supposed to be the ssl port for AFP? I use the mac wirelessly and prefer not to send plaintext passwords. Or is it already encrypted because of the option "uams_dhx.so" and the missing option "uams_clrtxt.so"? If that is the case, why use port 12000?
Oh, and AFP is working with special characters, éõë! But to be honest I didn't really investigate encoding yet. I don't know if it is UTF-8 at the moment. But in any case it is an improvement over samba.
Offline
Which files? :-)
I followed directions from the wiki: http://dns323.kood.org/howto:appletalk
Everything in chrooted debian BTW.
Then did an "apt-get install avahi-utils" Put the next lines in a file "afpd.service" in the /etc/avahi/services:
--
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!-- $Id: afp.service 995 2005-11-17 15:26:53Z lennart $ -->
<!--
This file is part of avahi.
avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
avahi is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with avahi; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
-->
<!-- See avahi.service(5) for more information about this configuration file -->
<service-group>
<name replace-wildcards="yes">AFP on %h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
</service-group>
--
You can check this stuff on the gentoo link in the 1st post.
in /etc/netatalk/afpd.conf I have this line:
"personal" -uamlist uams_dhx.so -port 548
The -port option isn't nessecary, 12000 didn't work for me.
I had some issues with the funplug script for debian. so, I changed that a bit for personal use. I don't know if this is because of me or if it is outdated on the wiki. For instance, I don't have a busybox3 application and I couldn't find it anywhere on the wiki(downloads). All the mkdirs are not nessecary as soon as you have the etch.tar installed. Then there are some issues with the environment parameters. I changed a few by hand. So, the funplug.d dir must go and the funplug.d/lib dir too. Now I think of it, the debian funplug script is ok, as long as you don't have the funplug stuff from fonz. Anyway, my debian funplug script: (still a work in progress, I am not yet using it after booting)
--
#!/bin/sh
# Root DISK1
export DISK1=/mnt/HD_a2
# Second disk
export DISK2=/mnt/HD_b2
#export PATH=$PATH:$DISK1/lnx_bin:
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
export LD_LIBRARY_PATH=/lib:/usr/lib
cd $DISK1
# Start Telnet - from KRH
if [ -f starttelnet.sh ]
then
./starttelnet.sh
fi
# Bind mount disk1
#mkdir etch/$DISK1
mount --bind $DISK1 etch/$DISK1
# Bind mount disk2
#mkdir etch/$DISK2
mount --bind $DISK2 etch/$DISK2
# Bind mount rootfs
#mkdir etch/mnt/root
mount --bind / etch/mnt/root
# Bind mount etch/dev
#mkdir etch/dev
mount --bind /dev etch/dev
# Bind mount etch/sys
#mkdir etch/sys
#mkdir etch/sys/crfs
mount --bind /sys etch/sys
mount --bind /sys/crfs etch/sys/crfs
# Bind mount etch/web
#mkdir etch/web
mount --bind /web etch/web
# Bind mount etch/proc
#mkdir etch/proc
mount --bind /proc etch/proc
#
# Mounts
cp -f /proc/mounts etch/etc/mtab
busybox rm -f etch/etc/fstab
busybox touch etch/etc/fstab
# Copy resolv.conf
busybox cp -f /etc/resolv.conf etch/etc
# Set hostname to disk
busybox hostname disk
busybox hostname >etch/etc/hostname
# Copy hosts
busybox cp -f /etc/hosts etch/etc
/mnt/HD_a2/fun_plug.d/bin/chroot /mnt/HD_a2/etch
--
Okay, what else is needed? Oh, /etc/default/netatalk: the option "hostname --short" doesn't work for me. So, I changed it to hostname only. This probably because my DNS-323 doesn't have a decent hostname yet.
I am only starting with this, so this is not usable as a final install. I didn't look at userid's for instance.
Last edited by krid (2007-10-27 20:19:51)
Offline
No, but I saw the afp kernel module somewhere. But I think chroot debian will be easier. I want to authenticate with ldap too. I don't know how I could get that working on the DNS-323. From within debian it will be a lot easier.
Offline