• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Two Requests

Mk.558

Well-known member
I have 2.1.6 installed in the VM now, I'm going to do a test run to confirm anything before I push all throttles forward. Some more questions:

1) sudo update-rc.d netatalk defaults -- When is this supposed to be run? I ran it just after the install (sudo make install) and I get this:

Code:
floe@debian:~/Downloads/netatalk-2.1.6$ sudo update-rc.d netatalk defaults
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: netatalk stop runlevel arguments (0 1 6) do not match LSB Default-Stop values(1)
floe@debian:~/Downloads/netatalk-2.1.6$
From your earlier configuration files as shown here, which one is the /etc/default/netatalk? I'm not sure if any of the daemons in /etc/default/netatalk like ATALKD_RUN should be changed to "yes" or anything else.

EDIT: Finished, probably. Running sudo gedit /etc/init.d/netatalk restart results in an error: "45: eth1: not found". eth1 is how the Debian VM sees the ethernet port, and connects out to the web fine. eth0 in the config files doesn't work, replacing it with eth1 does nothing either.

 

protocol7

Well-known member
This is what I have in /etc/default/netatalk:

Code:
# Netatalk configuration
# Change this to increase the maximum number of clients that can connect:
AFPD_MAX_CLIENTS=20

# Change this to set the machine's atalk name and zone.
# NOTE: if your zone has spaces in it, you're better off specifying
#       it in afpd.conf
#ATALK_ZONE=@zone
ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`

# specify the Mac and unix charsets to be used
ATALK_MAC_CHARSET='MAC_ROMAN'
ATALK_UNIX_CHARSET='LOCALE'

# specify the UAMs to enable
# available options: uams_guest.so, uams_clrtxt.so, uams_randnum.so, 
# 		             uams_dhx.so, uams_dhx2.so
# AFPD_UAMLIST="-U uams_dhx.so,uams_dhx2.so"

# Change this to set the id of the guest user
AFPD_GUEST=nobody

# Set which daemons to run.
# If you need legacy AppleTalk, run atalkd.
# papd, timelord and a2boot are dependent upon atalkd.
# If you use "AFP over TCP" server only, run only cnid_metad and afpd.
ATALKD_RUN=yes
PAPD_RUN=no
TIMELORD_RUN=no
A2BOOT_RUN=no
CNID_METAD_RUN=yes
AFPD_RUN=yes

# Control whether the daemons are started in the background.
# If it is dissatisfied that atalkd starts slowly, set "yes".
ATALK_BGROUND=yes

# export the charsets, read form ENV by apps
export ATALK_MAC_CHARSET
export ATALK_UNIX_CHARSET

# config for cnid_metad. Default log config:
# CNID_CONFIG="-l log_note"
For the eth1: not found error I think you just add eth1 to the end of atalkd.conf and either restart netatalk or just restart the VM. Then it should end up looking something like mine. It's been a while since I did all this so it's a bit hazy.

 

Mk.558

Well-known member
I'm still getting a failure to locate eth0 in either a real Linux install or the VM. I've fired off an email to the netatalk-admin email crew and see what comes back. Seems weird.

http://i.imgur.com/d58XKBb.jpg

I did backup an image of the thumbdrive Linux install just in case.

 

protocol7

Well-known member
Did you just paste my eth settings into the end of /etc/default/netatalk changing eth0 for eth1? That's the wrong file anyway so you should remove that.

If it's not there already just add "eth1" to the end of atalkd.conf and restart netatalk.

 

Mk.558

Well-known member
Fixed!

Here is the Duo 2300cTB connected over MacTCP in 7.5.3:

34r6No9.jpg.0b86a07cd14de28920da66168bdc02f8.jpg


It also worked over the AFP bridge. I did some test files to measure the downlink/uplink rates. Such figures will be found in the next edition of the Guide!

The Avahi wasn't broadcasting the floe-thumbdrive volume in 10.5.8. No problem since I just entered afp://192.168.1.104 and all was well. The floe-thumbdrive volume is a 10.04.4LTS with full updates running on a thumbdrive off a PC. Boots the mini as well with rEFIt, works great.

I saved an image of the thumbdrive before I put 2.1.6 on it. I'm going to $ dd the image back on it and try 2.2.4 to see what happens. Apparently in the changelog, with 2.2alpha1 they disabled ddp by default. When I tried a 12.04 Precise image and did sudo apt-get netatalk for 2.2.2, the ddp feature was not available in /etc/default/netatalk. I'm guessing it -has- to be compiled from source to get the ddp feature, so the apt-get method won't work (I'm not sure if you can add flags like --enable-ddp to sudo apt-get install _______ commands).

 

Mk.558

Well-known member
Confirmed: 2.2.4 netatalk doesn't even show up in a MacTCP system's Chooser. In fact it didn't show up in a 7.6.1/OT 1.3/ASC 3.8.3's Chooser either -- only when I entered 192.168.1.106 did a connection begin.

So 2.1.6 it is. All the better. BTW when compiling 2.2.4 I noted errors at the beginning just before the fast-moving torrent of text began warning that --enable-ssl was not supported. Intrigued I ran ./configure --help and noted that the proper method is to use --with-ssl-path=/[DIRECTORY], like my case here:

Code:
./configure --enable-debian --enable-zeroconf --enable-ddp --enable-cups --sysconfdir=/etc --with-ssl-dir=/usr/lib/libssl --with-uams-path=/usr/lib/netatalk
For file sharing, I don't know if CUPS is really necessary, nor libssl, but we'll go along for the fun of it. libdb-dev and libavahi-client-dev are a really good idea. :)

I've thought about making a bootable thumbdrive that I can market for cheap. I'd need a stack of 8GB thumbdrives though. Only problem with that is I have a unusually strong attraction for GNOME2 and I don't like apt-get gnome-fallback hacks either...

 

protocol7

Well-known member
Sweet. Glad you got it up and running! And thanks for confirming that 2.2.4 is a no-go. I haven't ran into any issues with 2.1.6 here so it's a keeper for me.

I kept my VM as minimal as possible so it doesn't have any GUI. It just boots to a login prompt.

For avahi here's my notes. They're probably largely taken from that ubuntu guide I linked to earlier.

Code:
install:	avahi-daemon, libnss-mdns

edit /etc/nsswitch.conf adding mdns to end of hosts line

create /etc/avahi/services/afpd.service with following contents:

<?xml version="1.0" standalone='no'?>


%h

_afpovertcp._tcp
548


_device-info._tcp
0
model=Xserve
You can change the model from Xserve to any from /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist on a Mac.

 

Mk.558

Well-known member
yeah

I checked the changelogs and didn't see anything fancy in the REMOVE category for 2.2.x.

Check out this picture from installing netatalk from the repositories in 12.10:

http://i.imgur.com/QFjyZQ4.jpg

Some different libraries it references.

I'll confirm System 6 compatiblity when I get the LCII going. Not sure when that will happen but this next edition will hopefully clear up a lot of tasks to-do.

I'm making sure to build my bootable thumbdrive image (2GB FAT32 volume, 6GB 10.04LTS volume) before the backport-repositories expire. I can't stand any of the newer distros entirely. Using nothing but a command line interface would be interesting for keeping sizes down and simple VM stuff. Since it appears that Netatalk is a server only (wouldn't detect my 10.5.8 AFP broadcast or 7.5's file sharing active) then a command line only interface might be okay for some people.

 
Top