I now have a samba that comes back up after reboot of the router automatically -- hurray! Only problem is my Windows 7 PC cant seem to ever list files/folders on the share. I use the all capitals method that works on mac but no go on win7, anyone have ideas?
The way i have it working right now I basically have to mount a drive in windows using the login all caps.
Also make sure to do that windows 7 fix thing at the end of the article.
Though mine is not really working any more, seems like my router for some reason refuses to release used ram that should now be free. aka if i kill a process its ram is not freed up to be used by something else. my router fills up its ram (30 megs free) in about 5 seconds of transfer before i have 2% ram available and everything basically locks up.
My other problem with samba is the consistent mapping of the share seems to have serious problems. frustrating to say the least.
I was just able to get it to work on windows 7 (lists files and folders now via the mapped share as a network drive)! I believe I didn't copy the secrets.tdb last time or something.
I'm seeing 5% memory usage (3MB) and 75% CPU for smbd. I can write to the usb drive at 10.6MB/sec and read at 11.5MB/sec! Currently I have about 1.7MB free of memory on the router with 40MB cached.
Wonder if there is a way to get swapon to work with the swap partition I have on the usb drive:
root@DD-WRT share $ swapon /dev/discs/disc0/part2
swapon: /dev/discs/disc0/part2: Function not implemented
@uiaa Any chance you can add a Netatalk / AFPD section to your tutorial for Time Machine backups?
So far I can see opkg installed the binaries:
- netatalk (2.0.5-3) installed in root is up to date.
and I now have /opt/etc/netatalk/afpd.conf, AppleVolumes.default to configure and a init script at /opt/etc/init.d/afpd
If I start the file with "afpd -F /opt/etc/netatalk/afpd.conf -P /var/run/afpd.pid -c 7" I receive a password prompt but nothing I enter works. Trying to get the afppasswd to generate me users now. I'm also hearing that 2.0.5 netatalk may be a little too old as 2.1 is out and it supports the latest appletalk protos.
Here's how far I got with Time Machine.. basically can go into Finder - Connect to server - afp://10.0.0.1 and it prompts me for login or guest. I can watch /var/log/messages outputted from afpd of the progress. It accepts my login and outputs "There are no shares available or you are not allowed to access them on server.."
Can launch afpd with the following command:
/opt/usr/sbin/afpd -d -F /opt/etc/netatalk/afpd.conf -g nobody -c 50 -n "Time Machine"
I was just able to get it to work on windows 7 (lists files and folders now via the mapped share as a network drive)! I believe I didn't copy the secrets.tdb last time or something.
I have realized this problem myself. The ONLY way i can access shares on a windows 7 box is to map the drive with a user name. Windows xp can access shares public and not, just fine. but neither of my 7 machines will list contents of shares (aka bad login or such problem) even wih every guest option on that i can find.
This would be ok except that I need to use the drive as a windows backup location and it refuses to work because of the problem.
anyone have any ideas?
Is 3.0.24 the latest version we can get of samba?
looks like it was released some time in 2007 and the latest releases seem to fix all the windows 7 issues.
Last edited by ccdoggy on Thu Jul 15, 2010 22:56; edited 1 time in total
I just looked at your site briefly. But what I gather is this WZR-HP-G300NH can run a web server. Correct? I have a DNS323 NAS with lighttpd web server running. Haven't done anything with it in a long time though.
So with lighttpd on this router. Can you save the lighttpd server on a usb jump drive in the usb port? And could you also save the web pages on that as well?
And as another use. Could a usb drive be used as a FTP server to save/read/write files to across the internet? Something like a music server as well?
Hmm...if this is possible. I will have to get a powered usb hub and use some spare usb jump drives to set up web, FTP, and music server(s). That way I can restore my DNS323 NAS and just use it for file storage.
For the longest time windows 7 would not list the contents of drives if i did not have them mapped. which basically breaks the windows backup access and for people i want to have general anonymous access to some files.
I believe because its trying to do this 'Microsoft Distributed File System' MSDS thing which is causing the shares to actually point anonymous people to an incorrect location.
Here is the fix to let all Windows 7 computers view the shares. Under Global add
Code:
host msdfs = no
I added a ton of stuff to my config and am 90% sure thats what fixed it.
My only problem right now is that it fails login attempts unless the drive is mapped. which is not as big of a deal.
Confirmed as the fix by netslayer.
Last edited by ccdoggy on Wed Jul 21, 2010 23:33; edited 1 time in total
Not sure if anyone has seen this before, I got this error when I try to download and install ntfs-3g using opkg:
...
Configuring kmod-fuse.
/opt//usr/lib/opkg/info/kmod-fuse.postinst: .: line 3: can't open /etc/functions.sh
...
It seems functions.sh is in openwrt fw but is indeed missing in dd-wrt? Where can I find the script?
I am interested in getting this going also, figure it will come in handy.
Have you installed fuse? (i know nothing about installing either)
I'm not familiar either.
Is fuse = kmod-fuse? I believe kmod-fuse is one of the dependent module by ntfs-3g so when I install ntfs-3g it also automatically downloads kmod-fuse. And when it is trying to configure kmod-fuse it shows the error.
I figured out uShare and am willing to do a quick writeup for the site if people are interested. its really not hard just a little picky.
hidoggy wrote:
Not sure if anyone has seen this before, I got this error when I try to download and install ntfs-3g using opkg:
...
Configuring kmod-fuse.
/opt//usr/lib/opkg/info/kmod-fuse.postinst: .: line 3: can't open /etc/functions.sh
...
It seems functions.sh is in openwrt fw but is indeed missing in dd-wrt? Where can I find the script?
I just installed ntfs-3g and gave no errors. I cannot mount anything right now as the drive i hook up to it crashes my usb hub so i gotta figure that out first.
Code:
opkg install ntfs-3g
did it for me. i guess it has fuse integrated into it.
Not sure if anyone has seen this before, I got this error when I try to download and install ntfs-3g using opkg:
...
Configuring kmod-fuse.
/opt//usr/lib/opkg/info/kmod-fuse.postinst: .: line 3: can't open /etc/functions.sh
...
It seems functions.sh is in openwrt fw but is indeed missing in dd-wrt? Where can I find the script?
Right now i can't reach my router so i cant test the install myself, but opkg is looking for the script in /opt, have you got your /opt linked to /jffs ?
otherwise you can take the bits and pieces about getting /opt linked from http://www.dd-wrt.com/phpBB2/viewtopic.php?t=74424&highlight=