I got it working with AFP (Netatalk).
Apparently you (the original poster) are trying to use it through Samba, which I haven't got working.
However I wanted to use some more direct mechanism that wasn't limited by Windows conventions, and got some connection with FTP from the Finder: Command-K and use "ftp://192.168.1.1/" will mount the drive. The problem is that in my case it disconnects after a while.
I also tried NFS, and got it working only unreliably, with disconnections after a while like with FTP. Apart from that, you have to mount it from the shell with a rather ugly command.
Just now I got AFP working through netatalk, which is why I'm writing this reply.
The problem I had was that it did not accept my login.
In the log files I've seen that Netatalk (afpd) was refusing to let the root user to login, so I created a new user, set the password, and with those it works.
I'm using Oleg's firmware, version 1.9.2.7-8 (the current one as I write this), and installed the package netatalk.
I'm afraid this is not easy to do, so perhaps it's not what you want, but if it works I think it's the best way to connect from MacOS X.
What I did was to set things up as specified in this thread:
http://wl500g.info/showthread.php?t=10307
Once you can install things in /opt (your USB hard disk) with ipkg, you can install netatalk.
There is more information about this here:
http://wl500g.info/showthread.php?t=...light=netatalk
http://netatalk.sourceforge.net/2.0/...default.5.html
I removed avahi as it did not work anyway and it caused some conflicts because it needs the library libssp.so.0, which AFAIK can only be installed with the package buildroot that conflicts with other packages I wanted.
I guess that it would work after solving the main issue as explained below.
Apparently Netatalk only supports plain text passwords, and Leopard requires encrypted passwords:
http://www.blackmac.de/archives/58-M...OS-X-10.5.html
As noted there, the way to make Leopard accept plain text passwords is:
Code:
defaults write com.apple.AppleShareClient afp_cleartext_allow -bool true
I would really prefer if this was not necessary. You might want to try first without it, and if it works please tell us here.
I just tried to set it back to disallow plain text passwords with:
Code:
defaults write com.apple.AppleShareClient afp_cleartext_allow -bool false
and it seems to work fine. So if you try to follow this, please try first without setting this property and tell me if it worked.
The final thing I had to do was to create the new user that could log in through AFP.
For that I installed the package adduser, but since /home is read-only anyway, it could be enough to add a line to /etc/passwd like:
Code:
normaluser:x:1000:1000:Linux User,,,:/home/normaluser:/bin/sh
and then set the password with "passwd normaluser" from root. The user name "normaluser" is of course arbitrary: you can use other name and it would work the same.
If you want the volume to mount a specific directory of your hard disk instead of the home directory of the user (which I think would not work at all as the directory does not exist), replace the last line (the tilde) of the file /opt/etc/netatalk/AppleVolumes.default with:
Code:
#~
/tmp/harddisk "Disco"
You can put any volume name you want instead of "Disco".
Now, I can mount my USB disk at /tmp/harddisk by hitting Command-K in the Finder, using "afp://192.168.1.1/" as the server address, and logging in as "normaluser".
mDNSProxy/rendezvous package for wl-500gp, Oleg fw
I want to run a rendezvous/bonjour proxy on wl-500gp so I can connect from my home itunes to the itunes share running in my office (something like this but on asus wl-500gp instead on PC or Mac).
Do anyone know about the mDNSProxy/rendezvous/bonjour package for ASUS wl-500gp with olegs firmware?
Updated Jun 2008
I found the package avahi. But it does not work with my Asus. You can try to install it
but I end up with the error message
Code:
ipkg avahi
/opt/sbin/avahi-daemon: can't load library 'libssp.so.0'
I found this solution but avahi is still failing. I installed buildroot, created missing user avahi and finally obtained following error:
Code:
avahi-daemon
Found user 'avahi' (UID 1002) and group 'avahi' (GID 1002).
Successfully dropped root privileges.
avahi-daemon 0.6.22 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
dbus_bus_get_private(): Failed to connect to socket /opt/var/run/dbus/system_bus_socket: Connection refused
WARNING: Failed to contact D-Bus daemon.
[admin@my root]$ avahi-daemon --debug -D
Timeout reached while wating for return value
Could not receive return value from daemon process.
But my ipkg does not know nss-mdns: I found it by http://ipkgfind.nslu2-linux.org/ but not in the oleg's optware section.
Trying to run a binary file
I've installed the package netatalk, which provide the binary afpd. But when I try to run this binary, I get the message -sh: afpd: not found. Even if I use the full path, I get the same message. This happens with almost all binaries provided by this package.
Anybody knows what is the problem and/or hot to solve it?
Thanks.
Create a startup script for avahi
For those who want to start avahi when the device start I have wrote this little startup script.
Create startup script by typing:
Quote:
nano -w /opt/etc/init.d/S90avahi-daemon
and paste this:
Quote:
#!/bin/sh
#
# Startup script for avahi-daemon
case $1 in
start)
/opt/sbin/avahi-daemon -D
;;
stop)
/opt/sbin/avahi-daemon -k
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
esac
Save the file by closing nano.
Make it executable and start it:
Quote:
chmod 755 /opt/etc/init.d/S90avahi-daemon
/opt/etc/init.d/S90avahi-daemon start
Avahi is now running, you can check the process with:
Quote:
ps ax | grep avah[i]
If you have follow the part 5 of this How to, the post-mount script will automaticaly call this script at start.
Easier fix - for me anyway
Rather than have Your Mac send unencrypted passswords, edit your samba config to allow encrypted passwords.
$ nano /etc/smb.conf
$ cat /etc/smb.conf
[global]
interfaces = br0
bind interfaces only = yes
workgroup = Workgroup
server string = WLHDD
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = yes
log level = 1
max log size = 100
encrypt passwords = yes
preserve case = yes
short preserve case = yes
[share]
path = /opt/share/share
writable = yes
force user = admin
$ flashfs save && flashfs commit && flashfs enable
Installing Netatalk - need help
Quote:
Originally Posted by
Barron
just install the package "ipkg install netatalk"
I tried this, but got this error:
Code:
[Du@PooWL700gE /]$ sudo ipkg install netatalk
Installing netatalk (2.0.3-5) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/netatalk_2.0.3-5_mipsel.ipk
Installing libdb (4.2.52-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libdb_4.2.52-3_mipsel.ipk
Configuring libdb
Configuring netatalk
Configuring vsftpd
You'll need to add line like
echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc/inetd.conf
to your /unslung/rc.xinetd file -- see the wiki at http://www.nslu2-linux.org for more info
postinst script returned status 1
ERROR: vsftpd.postinst returned 1
Successfully terminated.
May s.o. pleeeaase help me :-)
THANK U!
EDIT: Got it working, but how to delete this posting?