[netatalk] Getting netatalk working

Problems with packages? Post here, using [tags] of the package name.

[netatalk] Getting netatalk working

Postby Berklee » Thu Dec 16, 2010 4:50 pm

I've been scouring the board and wiki for more information on getting Netatalk to work on my Pink Pogoplug. Long story short: add an apfd entry to /etc/hosts.allow.

You may have read the instructions for compiling netatalk on your own box with PKGBUILD, I'll replicate what I did here for clarity:

First I followed the instructions from this page: http://Arch Linux ARM.com/index.php5?title=De ... g_Packages

Installing the following packages:
Code: Select all
pacman -S kernel26-headers file base-devel abs


Then I followed the instructions from numanoid: viewtopic.php?f=9&t=93&p=3150&hilit=netatalk#p3103

And did the following things in my home directory on the Pogoplug:
Code: Select all
wget http://aur.archlinux.org/packages/netatalk/netatalk.tar.gz
tar xvzf netatalk.tar.gz
cd netatalk
vi PKGBUILD (or nano)


In the PKGBUILD file I changed the line:
Code: Select all
arch=('i686' 'x86_64')


to:
Code: Select all
arch=('arm' 'i686' 'x86_64')


And changed the line:
Code: Select all
./configure --prefix=/usr --with-ssl-dir=/usr --localstatedir=/var --enable-fhs --enable-zeroconf=/usr --disable-srvloc --without-xfs


to:
Code: Select all
./configure --prefix=/usr --with-ssl-dir=/usr --localstatedir=/var --enable-fhs --enable-zeroconf=/usr --disable-srvloc --without-xfs --with-cnid-cdb-backend


And saved it. Then I compiled it (still in the netatalk directory) with:
Code: Select all
makepkg -Acs --asroot


After a long time, it finished (without errors) and I proceeded to install it with:
Code: Select all
pacman -U netatalk-2.1.4-0-arm.pkg.tar.xz


After installation, you need to edit a few configuration files, most importantly you need to add a directory to share through netatalk. You can do that in /etc/netatalk/AppleVolumes.default. Simply edit it and add a line to it like this:
Code: Select all
/data/public "Public" cnidscheme:cdb options:usedots,upriv


If you run /etc/rc.d/afpd start now, it will run, but you cannot connect to it. It turns out you need to add the afpd service to /etc/hosts.allow, so do this:
Code: Select all
vi /etc/hosts.allow


And add this after the sshd entry:
Code: Select all
afpd: ALL


Not the most secure setup, but it will do for now.

Finally, you need to add afpd to the /etc/rc.conf daemons if you want to run it at startup.

There is but one problem with this setup: if you connect, netatalk requires a valid username/password. I haven't found a way to turn this off yet. If you know how, please let me know.
Berklee
 
Posts: 2
Joined: Tue Nov 16, 2010 11:07 am

Re: [netatalk] Getting netatalk working

Postby oddballhero » Tue Jan 04, 2011 10:46 am

There is but one problem with this setup: if you connect, netatalk requires a valid username/password. I haven't found a way to turn this off yet. If you know how, please let me know.

Have you tried in afpd.conf "-uamlist uams_guest.so" ?
oddballhero
 
Posts: 17
Joined: Tue Sep 28, 2010 7:59 am

Re: [netatalk] Getting netatalk working

Postby Berklee » Tue Jan 04, 2011 9:09 pm

Yes, I have, but that didn't do it either. Strangely enough, what did end up working was the following in afpd.conf:

Code: Select all
- -tcp -noddp -uamlist uams_randnum.so,uams_dhx.so,uams_guest.so -nosavepassword -advertise_ssh -guestname "guest"


With "guest" being a user on my Pogoplug with ownership of the directories that are shared over AFP. But thanks for the suggestion!
Berklee
 
Posts: 2
Joined: Tue Nov 16, 2010 11:07 am

Re: [netatalk] Getting netatalk working

Postby oddballhero » Sat Jan 08, 2011 6:10 pm

Berklee

Referenced your guide to netatalk in http://www.Arch Linux ARM.com/index.php5?titl ... me_Machine . Works really well.
oddballhero
 
Posts: 17
Joined: Tue Sep 28, 2010 7:59 am

Re: [netatalk] Getting netatalk working

Postby crimsonredmk » Thu Jan 27, 2011 2:07 am

And I added this to our new [aur] repository coming with the next big update, with the changes you made above, so it'll be installable through pacman soon!
Remember, Arch Linux ARM is completely donation-supported, and is totally awesome.
crimsonredmk
Site Admin
 
Posts: 433
Joined: Wed Dec 30, 2009 5:17 pm
Location: #archlinux-arm on irc.freenode.net

Re: [netatalk] Getting netatalk working

Postby kientran » Mon Mar 07, 2011 11:12 pm

Has anyone else tested the netatalk package on a Dockstar?

Following the setup instructions in the wiki, plus installing from pacman -S netatalk
http://Arch Linux ARM.com/index.php5/Application:Time_Machine

The wiki suggests that we can use a mounted smb share as the AFP volume, but I'm having trouble getting it to correctly deal with permissions on the share.

If I attempt to drop a file onto the mount, it requests my system password and fails. What were your fstab settings to mount the volume to make it work correctly? I am manually masking the folder as root else afpd can't seem to handle permissions otherwise.
kientran
 
Posts: 6
Joined: Tue Oct 05, 2010 9:16 pm

Re: [netatalk] Getting netatalk working

Postby oddballhero » Tue Mar 08, 2011 8:43 am

kientran wrote:Has anyone else tested the netatalk package on a Dockstar?

Following the setup instructions in the wiki, plus installing from pacman -S netatalk
http://Arch Linux ARM.com/index.php5/Application:Time_Machine

The wiki suggests that we can use a mounted smb share as the AFP volume, but I'm having trouble getting it to correctly deal with permissions on the share.

If I attempt to drop a file onto the mount, it requests my system password and fails. What were your fstab settings to mount the volume to make it work correctly? I am manually masking the folder as root else afpd can't seem to handle permissions otherwise.


I just used mount -t cifs -o rw,username=xxx,password=xxx to mount the samba share and made sure I could read/write if I was logged in as the afp user (not root). You have to make sure that the user and permissions span the 2 machines (make sure the uids and gids match). I was just showing how versatile afp/netatalk is so that an afp dockstar with a samba mounted pro-liant share can act as a gateway (I was bored and I could set up my pro-liant with netatalk and afp anyway). For most people just using a directory on a dockstar drive for the afp volume is enough and faster. This works well on my Arch Linux ARM install/optware/debian-squeeze machines.
oddballhero
 
Posts: 17
Joined: Tue Sep 28, 2010 7:59 am

Re: [netatalk] Getting netatalk working

Postby Parsa » Sun Mar 20, 2011 6:18 pm

I can confirm that I just installed netatalk using pacman on my pogoplug and followed the wiki guide and so far it's working surprisingly well!
PogoPlug v2 Pink
Parsa
 
Posts: 16
Joined: Tue Mar 15, 2011 8:38 am
Location: London, UK

Re: [netatalk] Getting netatalk working

Postby crimsonredmk » Tue Mar 22, 2011 3:19 pm

Or, in other words: Well, surprisingly, it works.
Remember, Arch Linux ARM is completely donation-supported, and is totally awesome.
crimsonredmk
Site Admin
 
Posts: 433
Joined: Wed Dec 30, 2009 5:17 pm
Location: #archlinux-arm on irc.freenode.net

Re: [netatalk] Getting netatalk working

Postby oddballhero » Fri Apr 29, 2011 12:02 am

With clean living everything always works. No surprises.
oddballhero
 
Posts: 17
Joined: Tue Sep 28, 2010 7:59 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 1 guest