netatalk2.2 on whitelight

Automatic install script

If you have no idea how to work with the shell you can try an automatic install script.

The only thing you have to do, is to enable ssh access in the mybook webinterface. If you don't know how, here's a small guide instead of putty use the Mac Terminal.

After you've logged in you only have to type in the following commands:

wget -O

Manual installation

I finally managed to compile netatalk2.2 for optware. First here are the files:

netatalk_2.2.0-1_arm.ipk (489.39 KB):

If anybody wants to compile it for themselfs follow this guide:

and replace those two files: (7.66 KB) (9.17 KB)

I spent quite much time finding out that, before compile libdb you have to start configure with this options set "—with-mutex=ARM/gcc-assembly".

Here's a dummy guide for installation of netatalk2.2:

First check that you have optware installed. If not follow this guide

Even if you already have installed optware you have to upgrade all packages to the latest version!!!

ipkg update
ipkg upgrade

Now download the two ipk files and copy them to the /root folder of your mybook. After that you have to enter the following commands:

To stop the running afpd

killall afpd

Install the ipk files

cd /root/
ipkg install libdb_4.8.30-1_arm.ipk netatalk_2.2.0-1_arm.ipk libgcrypt

Copy the config files and update them to use dhx2

rm /opt/etc/netatalk/AppleVolumes.default
ln /etc/netatalk/AppleVolumes.default /opt/etc/netatalk/AppleVolumes.default
cp /etc/netatalk/AppleVolumes.system /opt/etc/netatalk/
cp /etc/netatalk/netatalk.conf /opt/etc/netatalk/
cp /etc/netatalk/afpd.conf /opt/etc/netatalk/
sed -i 's/' /opt/etc/netatalk/afpd.conf
echo "/DataVolume/.timemachine WD_Backup options:usedots,upriv,tm" > /var/lib/timemachine/.AppleVolumes
chmod 644 /var/lib/timemachine/.AppleVolumes

If you want the new afpd to start on startup

mv /usr/sbin/afpd /usr/sbin/afpd.bck
ln -s /opt/sbin/afpd /usr/sbin/afpd

Delete the old cnid database. If you have more than the standard shares you have to delelte the .Apple* files also there. After that reboot

rm -rf /shares/.Apple*
rm -rf /DataVolume/.timemachine/.Apple*
while read inputline; do pfad="$(echo $inputline | cut -d" " -f1)"; rm -rf $pfad/.Apple*; done < /etc/netatalk/AppleVolumes.default

One person had the problem, that netatalk was unable to create a new .AppleDB. If you cant log with Lion after doing everything as i described up there, log in with
ssh and take a look at /var/log/messages

cat /var/log/messages

If there's something like cant't mkdir /shares/.AppleDB or something with mkdir and error, you could try the following commands

killall afpd
mkdir /shares/.AppleDB
chmod 777 /shares/.AppleDB
mkdir /DataVolume/.timemachine/.AppleDB
chmod 777 /DataVolume/.timemachine/.AppleDB

Try to log in again, and see if there's still this error…

If you have any more questions go to the forum thread:

For the brave of you…. i tried to reduce the encryption of the dhx2 module, so the login is faster. i have to confess that i dont know 100% on which points this changes the encryption, but as long as you use it only in your private network, this shouldn be a problem.

if somebody wants, you can try this file and give me a feedback if everything works at yours…

here the login process is now 5 to 10 times faster.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License