DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-03-07 11:30:04

liske
Member
Registered: 2007-03-02
Posts: 9

Trying to Install Netatalk

I think I have debian going. I successfully have telnet going. Not bad for a linux NOOB as of getting this 323. I am doing this through the terminal in osx, and ftp transfers.

I get this error.. any thoughts? [when trying to configure netatalk.]
[http://netatalk.sourceforge.net/2.0/htmldocs/installation.html#id2837727]


# ./configure --help
sed: No such file or directory
sed: No such file or directory
configure: error: cannot create configure.lineno; rerun with a POSIX shell

Last edited by liske (2007-03-07 11:32:59)

Offline

 

#2 2007-03-07 16:21:45

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: Trying to Install Netatalk

Try

apt-get install netatalk

No need to compile unless you want to. But it will require more pkgs to be installed.

Offline

 

#3 2007-03-09 00:31:19

dcrosby
Member
Registered: 2007-03-09
Posts: 25

Re: Trying to Install Netatalk

"apt-get install netatalk" works, but note that on Debian, it will be missing the uams_dhx.so file needed for 128-bit password security. There are instructions for compiling a version with that security here:

http://ubuntuforums.org/showpost.php?p= … stcount=16

Offline

 

#4 2007-03-12 01:11:55

mklx01
Member
Registered: 2007-01-24
Posts: 23

Re: Trying to Install Netatalk

What does your afpd.conf file look like? I tried the default option but I'm unable to log on, even as nobody...

Code:

# default:
- -g -transall -uamlist uams_clrtxt.so,uams_dhx.so -nosavepassword

Thanks!

Offline

 

#5 2007-03-12 02:40:15

dcrosby
Member
Registered: 2007-03-09
Posts: 25

Re: Trying to Install Netatalk

mklx01 wrote:

What does your afpd.conf file look like? I tried the default option but I'm unable to log on, even as nobody...

Here's mine. It sets up a server on the default port with "guest" access, that logs in as "media." (the original idea was to store mpgs etc there, so my friends can log in when they're here and download stuff, but I haven't actually implemented that.) Then it sets up a sever called "Personal" that requires a login, on port 12000.

Note that because I used uams_dhx.so, the second line will only work if you compiled netatalk yourself, using the instructions I posted elsewhere. If you run "apt-get install netatalk", everything will seem to work, but since uams_dhx.so is not present, you will get an error when you try to connect from the Mac side.

Also, just to be clear: you need to have added a user to the etch or sarge setup to log in as. I created the "media" user and one for myself.

Code:

"Guest Server" -uamlist uams_guest.so -guestname media -loginmesg "Welcome!"
"Personal" -uamlist uams_dhx.so -port 12000

Offline

 

#6 2007-03-12 03:57:59

mklx01
Member
Registered: 2007-01-24
Posts: 23

Re: Trying to Install Netatalk

That helped me one step further.  I've established an afp connection with the Mac as indicated by a bunch of Mac files that got dumped in the home directory of the guest account on the NAS. The problem I have now is that files I copy to the guest's home directory on the NAS don't show up on the Mac. Likewise, files that I drag&drop into the network folder on the Mac seem to disappear even though they show up in the home directory on the NAS. I suppose I still need to set another option, but reading through the AppleVolumes.default file doesn't give me any clues...

Offline

 

#7 2007-03-12 04:05:24

dcrosby
Member
Registered: 2007-03-09
Posts: 25

Re: Trying to Install Netatalk

mklx01 wrote:

That helped me one step further.  I've established an afp connection with the Mac as indicated by a bunch of Mac files that got dumped in the home directory of the guest account on the NAS. The problem I have now is that files I copy to the guest's home directory on the NAS don't show up on the Mac. Likewise, files that I drag&drop into the network folder on the Mac seem to disappear even though they show up in the home directory on the NAS. I suppose I still need to set another option, but reading through the AppleVolumes.default file doesn't give me any clues...

Bah. You know what: I had the same issue originally, and when I got the "uams_dhx.so" problem fixed by compiling netatalk myself, that problem went away too. I had entirely forgotten about that. Sorry. :\

So going through the compile procedure might help. Another possibility (and this is a guess): Is the directory you're dumping files into set to universal read? Maybe you don't have privileges to view the files? Weird that you'd be able to write but not read, but hmmm...

Offline

 

#8 2007-03-12 04:25:17

mklx01
Member
Registered: 2007-01-24
Posts: 23

Re: Trying to Install Netatalk

I had already checked the permissions and played with the -transall option but to no avail. That's why I was asking if there were any other options to set. Anyway, thanks for your help, but I don't think I want to go through the effort of cross-compiling netatalk myself since I already got an smb connection working pretty well. The only one thing I would be interested in at this point is how to configure automount on the Mac side to recognize the NAS so you don't have to connect to a server manually.

Offline

 

#9 2007-03-12 04:49:54

dcrosby
Member
Registered: 2007-03-09
Posts: 25

Re: Trying to Install Netatalk

mklx01 wrote:

I had already checked the permissions and played with the -transall option but to no avail. That's why I was asking if there were any other options to set. Anyway, thanks for your help, but I don't think I want to go through the effort of cross-compiling netatalk myself since I already got an smb connection working pretty well. The only one thing I would be interested in at this point is how to configure automount on the Mac side to recognize the NAS so you don't have to connect to a server manually.

That I can help you with. Just go to System Preferences->Accounts-><your account>->Login Items, and select the drive. As long as the password is saved in your keychain, it will automatically mount when you login. I've done this both with the SMB and the AFP share, and both work.

Offline

 

#10 2007-03-12 07:08:39

mklx01
Member
Registered: 2007-01-24
Posts: 23

Re: Trying to Install Netatalk

That's perfect! Thanks for the tip!

Offline

 

#11 2007-05-28 12:56:17

Pingu
Member
Registered: 2007-04-07
Posts: 7

Re: Trying to Install Netatalk

Hi all

I have managed to compile and install netatalk but can't find the uams_dhx.so

Here what I did:

Code:

sudo aptitude install devscripts cracklib2-dev dpkg-dev libssl-dev
apt-get source netatalk
sudo apt-get build-dep netatalk
cd netatalk-2.0.3
DEB_BUILD_OPTIONS=ssl sudo dpkg-buildpackage -us -uc
debi

This should have compiled netatalk with ssl support and installed it.. So then I make a small test:

Code:

root@bluelink:/home/joao/netatalk/netatalk-2.0.3# afpd -v
afpd 2.0.3 - Apple Filing Protocol (AFP) daemon of Netatalk

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version. Please see the file COPYING for further information and details.

afpd has been compiled with support for these features:

      AFP3.1 support: Yes
      Transport layers: TCP/IP DDP
      CNID backends: cdb dbd last 

  afpd.conf: /etc/netatalk/afpd.conf
  AppleVolumes.system: /etc/netatalk/AppleVolumes.system
  AppleVolumes.default: /etc/netatalk/AppleVolumes.default
  UAM search path: /usr/lib/netatalk/

Looks good?
So then the moment of truth... on the MAc Apple+K and: "The application cannot be completed because one or more items cannot be found Error code 35" ..... :-(


Having a look at the configuration under /etc/netatalk/

Code:

afpd.conf
# - -transall -uamlist uams_clrtxt.so,uams_dhx.so -nosavepassword
-noddp "Bluelink" -uamlist uams_dhx.so 

atalkd.conf
#
egiga0

and the AppleVolumes.default
# By default all users have access to their home directories.
~/                      "Home Directory"


So then I go and look into: /usr/lib/netatalk/ and cannot find any uams_dhx.so

etc2ps.sh  ifwmpap     ofpap    tfmpap     tfwmpaprev      uams_gss.la    uams_krb4.a   uams_pam.so
ifmpap     ifwmpaprev  ofwmpap  tfmpaprev  tfwpap          uams_gss.so    uams_krb4.la  uams_passwd.a
ifmpaprev  ifwpap      ofwpap   tfpap      tfwpaprev       uams_guest.a   uams_krb4.so  uams_passwd.la
ifpap      ifwpaprev   psa      tfpaprev   uams_clrtxt.so  uams_guest.la  uams_pam.a    uams_passwd.so
ifpaprev   ofmpap      psf      tfwmpap    uams_gss.a      uams_guest.so  uams_pam.la

Is uams_dhx.so somewhere else?

Thanks
Pingu

Offline

 

#12 2007-05-29 08:12:48

Pingu
Member
Registered: 2007-04-07
Posts: 7

Re: Trying to Install Netatalk

Hi

Somehow I managed to install it... Was probably some dependency missing.
I'll be posting the instructions online later but if someone is really in a hurry you can probably just dowloand my version:
http://www.ithinkea.org/tests/dns323/
Pingu

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB