Discussion in 'DD-WRT Firmware' started by XCOM7, Apr 15, 2005.
Ok I have the info in place now where can I acces the share?
from the console /tmp/smbshare
from the web http://x.x.x.x/smb
Whats the IP I need?
I try all internals IP and all I get is 404...
Thanks for the Reply!
you get only 404 if the samba share isnt on or not working cause of security (passwort/user) issues, or the document just wasnt found
OK I got...
Now the computer name is at-root-office-server but M$ shorted the netbios name to at-root-office-
Could that be the prob?
Also the "Shared" is a folder not a drive.
I am sure I got it right still not working...
Than I go http://192.168.15.1/smb
and I get 404
Ok I give up I just can not get it to work.
I have no idea what I am doing wrong.
I have try switching everything arround still dont work!
am I missing a switch?
I mean what is it that I am doing wrong?
I am using a WRT54G v3 could that be the prob?
I doubt it because mounting a drive is related to the OS running the WRT is not hardware related besides the mem that it uses...
Can some body post there config to see what I am doing wrong?
Also How they have there share in windows set.
i cant get it going either
Have you seen this ???
yea i have seen it i posted in it
All I am trying to do is mount the Folder so I can see the content in it.
Is it possible or not?
Do I have to run a web server so it can work?
ok all respect to keloke for this one. it shows how to setup a smaba share on the WRT54G/gs using ddwrt foirmware.
The Samaba Fs Option on the WRT is so that you can Connect to a windows computer that is sharing the folder with the files you will like to be able to access from the WRT.
So you setup the WRT to Access the files on the windows machine and then once the WRT is able to access the files it can share them via the
HTTPD via the URL http://routerIP/smb/
Just remember that you will need to use the entire path for the URL or you will not be able to see the files.
Step By Step
For this sample your router's IP is 10.0.0.1
The name of your windows computer that will be sharing the folder will be "PulsarComputer" without the ""
Go to your windows machine AKA PulsarComputer.
Setup a static IP (for this sample will use 10.0.0.100)
Lest Make believe that the only user account on that windows machine is "Pulsar" and the passsword is "PulsarPassword" without the "" for the user/password.
To make it easier you we will share the folder with all the WebPages.(that way the pages are not in subfolders)
Ok you find the "cisco_wrt54g_en" folder on your windows computer.
Right Click and Share the folder.
use the default option that it gives you.
Now to confirm that the folder "cisco_wrt54g_en" is being share do the following
Open "My Computer"
on the address bar type "\\10.0.0.100\" without the ""
you should see that the "cisco_wrt54g_en" folder is being share.|
Open the folder and you should see all the files.
OK so the sharing of the files is complete
Now we have to go to the WRT
Go to the Administration>Management page.
Scroll till you find the Samba FS Options
Select "Enable" for the SMBFS enabled
for the Share
for the User
for the Password
Leave the Startscript empty.
To check that is working.
Click on Run
On the Command Shell Pop-up
You are looking to see something like this
//10.0.0.100/cisco_wrt54g_en XXXXXXXX ??% /tmp/smbshare
the XX is the size of the drive that the folder that is being share on your computer and the ??% is the % of free space on that drive.
Once you see that you will know that the WRT has Mounted the windows share.
Now go back to your computer and Open your web browser.
Type in the address bar
you should have your page.
Thanks a lot Toxic that works just fine but what I am trying to do is see the files within the mounted folder.
I check if the folder is mounted and it is but when I go
192.168.15.1/smb/ all I see is the info page all broken.
Now if I go 192.168.15.1/smb/info.htm I see a white page. I know the instructions refer to a web server but my point is typing that I get a blank page everything else is ether 404 or the info page broken.
Theorecally speaking if the folder is mounted you should see the content of that folder.
And in my case I see nothing.
no. folder listing isnt supported and will never be, since a folder listing is just a generated html. i never implemented this feature since it was never needed. you have to create your own index file
Right when I figure it out I come back to post and there is my answer!
Thanks a lot pople I just thought it will autogenerate!
These is an awesome forum as well ver coOl peepz!
Thanks every body!
I got the share to connect to the share but it does not show on http://192.168.1.1/smb/
However, when i turn on SSH and type cd /tmp/smbshare
Then, I type find it saids:
/tmp/smbshare # find
find: .: Stale NFS file handle
Does that mean NTFS does not work?
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 2752 2752 0 100% /
/dev/mtdblock/4 320 320 0 100% /jffs
//192.168.1.100/webpage 10241280 8679936 1561344 85% /tmp/smbshare
(using Prefinal 3.2)
You have to create a index page it will not show content by itself
Any sample page or source page for that ?
my index. page is here
Thank's but I was looking for a page that autogenerate de content of the folder... (like a FTP in web mode)
an other question... Does it support .HTACCESS to put some security in this environement ?
i dont think so.
but here are some interseting stats. of how many hits i got on my page:
Simple answer to a simple question.
Please understand that generating an index page based on the file list of a folder is a complicated task. Many high percormance webservers (e.g. Apache) do this and have various tools built into them to personalize the page, but this all is memory costly and needs much bigger executables than the simple implementation of a HTTP server that is built into dd-wrt. IMHO This will never be a goal to implement such a server into dd-wrt. dd-rt only servers web pages that are static - nor has it support to any PHP like scripting language (that would be your next need i guess). Someone has built a package to OpenWRT with PHP support but this took some 4 MB space on its own. So no such possibility either.
So you have to create your pages yourself. Sample would be index.htm file with a content : <h1> Hello world</h1>. Save this in your samba share folder and see how the text is written to you browser.
I personally just redirect web traffic to my LAN PC port 80 and have all the PHP support and file listing done by Apache. There is no need for the dd-wrt server i think because you will not see the page anyway when you LAN PC is shut down. So better use a descent server in LAN PC and all your problems are solved.
dd-wrt server is handy when you need to server something really small and it is written to the jffs filesystem itself - then you can access it even if all LAN PCs are a sleep.
I use SSH to acces the content of my SMB mount works grate.
great if you do - I was talking here about web server.
Did I directly reply to you?!?
Did I quoted YOUR reply?!?
No.. right! so...
I was comenting as a solution for the original post.
No need to get offended.
Well thank's for the advise, but I will soon be using an IDE NAS from SYNOLOGY that will give me acces to my file while my pc are down.
I'm looking for a way to acces them while are pc are asleep.
That's why I was asking the question.
Thank's to but SSH doesn't pass the firewall at the office. Office => Home Port 22 is filtre.
Maybe an FTP deamon in dd-wrt ?
i already asked brainslyer if he could do this he said no.
Well I'm so stu**d, I will use de FTP of the file server...
Sorry for disturbing you guys.
My 2 cents, if you want to run a server (doesn't matter what ftp, http, ntp etc.) try the Linksys NSLU2. It will save you on electricity costs (if concerned) and make the challenge rewarding. Not that this device is powerful either but it has as much space available as you add (i.e 250GB ext. HD) and has loads of packages available using IPKG. I got one to learn Linux (still n00b green) but enjoy every success I have had. Check out the NSLU forum or look at http://www.nslu2-linux.org/ site. I'm sure a few of you may be tempted by the things you can do with it.