View previous topic :: View next topic |
Author |
Message |
vmissouril n00b
Joined: 13 Dec 2005 Posts: 8
|
Posted: Fri Dec 23, 2005 6:49 pm Post subject: HOWTO Netatalk 2.0.3 (No Appletalk) |
|
|
Netatalk 2.0.3 Basic Settings (no Appletalk) Gentoo
This is for a Sparc64 Sever & Intel PIII Server with Guest Login for OS X 10.4.3 Clients, but should do well for others.
1. emerge netatalk
OPTIONAL: If you dont want x11 or cups installed use this instead
USE="-x11 -cups" emerge netatalk
2. add this script /etc/init.d/afpd
#!/sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting Apple File Sharing"
start-stop-daemon --start --quiet --exec /usr/sbin/afpd
eend $?
}
stop() {
ebegin "Stopping Apple File Sharing"
start-stop-daemon --stop --quiet --exec /usr/sbin/afpd
eend $?
}
3. chmod 755 /etc/init.d/afpd
4. rc-update add afpd default
5. netatalk.conf (/etc/netatalk/netatalk.conf)
#ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`
#ATALK_MAC_CHARSET='MAC_ROMAN'
#ATALK_UNIX_CHARSET='LOCALE'
AFPD_GUEST=nobody
ATALKD_RUN=no
PAPD_RUN=no
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no
ATALK_BGROUND=no
#export ATALK_MAC_CHARSET
#export ATALK_UNIX_CHARSET
6. afpd.conf (/etc/netatalk/afpd.conf)
- -noddp -uamlist uams_guest.so
7. AppleVolumes.default (/etc/netatalk/AppleVolumes.default)
~
/home/Houses/ Houses
/home/Archives/ Archives password:pantone
# Use any folder you want. These are just examples
8. /etc/init.d/afpd start
9. emerge howl
10. mkdir /etc/howl
11. mDNSResponder.conf (/etc/howl/mDNSResponder.conf)
GentooAFP _afpovertcp._tcp local. 548
# GentooAFP can be any name you want. This is just an example
12. /etc/init.d/mDNSResponder start
13. rc-update add mDNSResponder default
Edit (12/27/2005): Just made it a bit more clear on what to do.
Edit (02/03/2006): Added an optional procedure to step 1 and a few more clarifications |
|
Back to top |
|
|
cogitate n00b
Joined: 05 Dec 2003 Posts: 46 Location: Ontario, Canada
|
Posted: Wed Feb 15, 2006 10:22 pm Post subject: |
|
|
I can connect using Go->Connect to Server from the Mac, but the entry does not show up in the Finder under Network. I've got netatalk working fine (Connections from the mac work, can connect to all shares)
/etc/howl/mDNSResponder.conf contains: Code: | FileServer _afpovertcp._tcp local. 548 |
I've got no ideas as to what is causing it. I did notice that mDNSResponder supposedly starts fine, but if I try to stop it it fails and I have to issue a killall to stop it (it shows up in ps).
Code: | # /etc/init.d/mDNSResponder start
* Starting mDNSResponder ... [ ok ]
# /etc/init.d/mDNSResponder stop
* Stopping mDNSResponder ...
* Failed to stop mDNSResponder [ !! ]
# ps -ef | grep mDNSResponder
root 11741 1 0 17:15 ? 00:00:00 /usr/bin/mDNSResponder
root 11742 11741 0 17:15 ? 00:00:00 /usr/bin/mDNSResponder
root 11743 11742 0 17:15 ? 00:00:00 /usr/bin/mDNSResponder
root 11884 11248 0 17:17 pts/0 00:00:00 grep mDNSResponder
# mDNSResponder -d
mDNSResponder starting up...
[howl] registered interface 192.168.0.40 (11893)
[howl] starting up... (11893) |
It just sits there and I can cancel with Ctrl-C, after which, attempting to start again gives
Code: | # /etc/init.d/mDNSResponder start
* WARNING: "mDNSResponder" has already been started. |
Thanks for any help.
Edit: fixed typo
Last edited by cogitate on Thu Feb 16, 2006 12:31 pm; edited 1 time in total |
|
Back to top |
|
|
cogitate n00b
Joined: 05 Dec 2003 Posts: 46 Location: Ontario, Canada
|
Posted: Thu Feb 16, 2006 1:51 am Post subject: |
|
|
For anyone who has similar problems (this might also apply to iTunes Music Server problems), I managed to get the share to be discovered by unmerging howl and emerging avahi (another zeroconf implementation). Avahi is masked, so you'll have to unmask it.
Code: | emerge unmerge howl
echo "net-dns/avahi ~x86" >> /etc/portage/package.keywords
emerge -av avahi |
The configuration stuff is stored in /etc/avahi, and setting up a new service is quite simple (/etc/avahi/services). The package is working quite well, despite being masked. |
|
Back to top |
|
|
Crazor Tux's lil' helper
Joined: 23 Apr 2003 Posts: 131
|
Posted: Thu Feb 16, 2006 9:41 am Post subject: |
|
|
cogitate wrote: | /etc/howl/mDNSResponder.conf contains: Code: | FileServer _afpovertcp._top local. 548 |
|
I hope this typo wasn't in your actual config file. It should be _tcp not _top! |
|
Back to top |
|
|
cogitate n00b
Joined: 05 Dec 2003 Posts: 46 Location: Ontario, Canada
|
Posted: Thu Feb 16, 2006 12:32 pm Post subject: |
|
|
Stupid mistake. No, the typo was only in the posting. The config file did contain .tcp |
|
Back to top |
|
|
vmissouril n00b
Joined: 13 Dec 2005 Posts: 8
|
Posted: Fri Feb 17, 2006 3:51 pm Post subject: |
|
|
what version of howl are you using. 0.98 works fine....1.0.0 seems to be broken.
to get Howl to work for 1.0.0 I had to type this for it to show in the finder
$ mDNSPublish GentooAFP _afpovertcp._tcp local. 548
this output should show
GentooAFP _afpovertcp._tcp 0
publish reply: Started |
|
Back to top |
|
|
robinp n00b
Joined: 26 Feb 2005 Posts: 8
|
|
Back to top |
|
|
|