Skip to main content
Home Forums Two Requests Two Requests
Thread

Two Requests

Two Requests Networking 48 posts May 18, 2013 — Jun 8, 2013
They say that it's required.

I spoke via email to the gent here on this page and he stated in an email that he "ignored the HOWTO" and instead followed something else online, but didn't state what that article was.

Given that the article was last updated in 2011, and 2.1.6 was around in 2011, I'll be under the assumption that he used the same or similar release.

Edit: I'm going to have to also install the other libraries like lib-dev-ssl via source because 9.10 is beyond the repository maintenance schedule.

See, I said I wasn't very linux literate. libdb-dev are the Berkeley DB libraries.

Also, I don't know if it has any bearing on the System 6 side of things, but neither of those compacts had ethernet. I had them connected via LocalTalk to a 7500 running LocalTalk Bridge.

This is getting real nerdy. First berkeleydb won't install because G++ isn't working. So in Typical Linux Fashion there's a big round-robin going around where this needs that and that needs that other thing which first requires this which ... :disapprove:

I have never felt the feeling, but I wonder what it's like to be an über Linux geek and just have Terminal commands and all that with a massive outflowing of superknowledge.

apt-get build-dep g++ should take care of that (according to this).

build-dep causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package.
For example if you want to compile gcc you will need all the build dependencies for successfully compiling gcc. So you use sudo apt-get build-dep gcc. This will install all the packages required to build gcc from source.
yeah

I was using Ubuntu 9.10, to see if it can be done in a 7 year old operating system without any issues. The answer is no. :) No repository support = you're on your own, just like the old days of writing your own BASIC programs because nothing was available.

I put Debian 6.0.7 Squeeze on a VM last night. That, should work fine. I'll have to lookup in the manual how to work with the shared folders in the VB. Another annoyance is the Guest Additions don't work under Debian. I'll update to the lastest version of VB and see what happens.

For what it is worth, AFP-over-Ethernet does indeed work for file transfer right up through Snow Leopard, although somewhat awkwardly. My IIci running 7.5.5/OT1.3/SharewayIP is mountable by my 10.6.8 desktop here: it can be a client to the very old server provided by the IIci. The old machine cannot see the new machines at all- Chooser sees nothing. The modern machine doesn't *see* the old machine in a browsing sense, either. But by using the Finder "Go>Connect to Server" mechanism in OS X, connection can be made to the old machine by manually specifying its AFP servername or IP address. You can then move files up and down, albeit horrifically slowly. It does work, and is my "backup backup" mechanism. I periodically stuff and binhex everything important, and then slurp the binhexed archive up onto the modern machines for safekeeping (an overnight or even multiday process), in addition to keeping a couple of up-to-date clones of the data on drives attached to the IIci.

I have been sporadically trying to get this to work under Lion as well. Apple killed off support for the oldest versions of the AFP protocol by default in 10.7 and up (for security reasons, apparently), but supposedly it is possible to restore access by munging the com.apple.AppleShareClient plist via defaults write: http://support.apple.com/kb/ht4700 . However, I haven't been able to make this work just yet. For some utterly perverse reason, the defaults write process doesn't seem to stick (even running logged in as root), and the plist reverts to its initial default state as soon as a connection attempt is made. Haven't had time to debug that yet, but someday I'll get around to it. Since I'm not currently planning on upgrading my desktop here beyond Snow Leopard, it hasn't become germane yet.

Yeah I'm on Squeeze here too. The VBox Additions do work (I'm using them), but you need to compile them (yay linux!) from the additions CD. Instructions are here. But here's how I did it (this is what I have in my notes):

remove virtualbox-ose-guest-x11 (this removes old 3.x additions)
dependencies: bzip2, linux-headers-$(uname -r), make

mount /media/cdrom

sh /media/cdrom/VBoxLinuxAdditions.run
Also I found out the version number of the AppleShare update to get System 6 write support. It's AppleShare Client 3.5.

I have got shared folders to work before without a hitch in VB but this time it's especially difficult.

I made a duplicate of the VM just before I ran ./configure so I can test out both 2.1.6 and 2.2.4 and report back.

I just added the folders in the Shared Folder section of the VM, set whether I wanted them readable or not and set them to automount. They then show up in the emulated Debian in the /media folder.

I have one folder (Shared Folder) that is writable but I can't overwrite or delete files from the Mac side. I get an error -50 every time. I don't know how to fix that. I just delete the files on the PC afterwards. I have no problem deleting files in the Essentials share which is in the VM so I guess it's related to VB's folder sharing.

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.

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.

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.

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.

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).

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...

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.

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.

mp.ls