OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

Few ProFTPD and Samba Issues...

 
Learn about scoring Download Discussion's Raw Score: 154596.0
October 13, 2010 03:50 PM
Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Dart00

Member

I just pluged in a FAT 1GB pendrive in to my WNR3500L and setup USB support:

Core USB Support: Enable
USB 1.1 Support (UHCI): Enable
USB 1.1 Support (OHCI): Enable
USB 2.0 Support: Enable
USB Storage Support: Enable
FAT File System Support: Enable
Automatic Drive Mount: Enable
Disk Mount Point: /mnt

Saved and applied my settings and rebooted. It recognized my drive. :)
I then configured ProFTPD Support:
ProFTPD: Enable
Server Port: 11111
Files Directory: /mnt
Allow Write: Enable
UserPassword List: meow
I then configured Samba Support:
Sambe: Enable
Server String: Drive
WorkGroup: WORKGROUP
Public Share: Enable
I also went to Administration and setup and formatted /jffs
-------------------------------------------------------------
After I get all that setup...I go to my Ubuntu computer and open Nauitlus and go to "Entire Network" and browse to WORKGROUP and open my router and I see "Public". I open that and see my /jffs directory! not my /mnt???
I loggied in SSH and went to /mnt and saw all my stuff on my pen drive so I know its there....and went to /jffs and saw the stuff i put there....
I then used nautilus to connect to FTP (192.168.1.1:11111 Username: root Password: meow) and it said wrong password? I then went into the router and enable readonly ananumus access and that worked out great...just I couldnt save anything. (hence Readonly hehe)
So....
1. How do i access my /mnt directory from Samba?
2. How do i get Nautilus to accept my password?
I also tried connecting to the public share on a Windows box and found myself in /jffs too! :(
====================================================
EDIT: Well I answered my own questions.....
1. You put the passwords in the format <username> <password> with a space between them. worked like a charm. :)
2. Also i found the Samba config file in /tmp and I guess i could put that in the custom samba config file and modify it....
But also ProFTPD says it can use MD5 hashed password? how? I tried puttin a MD5 hash and it did not convert it to a password when i tried to login?

Discussion:    Add a Comment | Comments 1-4 of 4 | Latest Comment

October 13, 2010 5:46 PM

Yes up to now the default public path was /jffs. In the next build this can be changed in a textfield.

For the md5 passwd. You probably used some md5 generator, but that's not a linux style md5 passwd, you need to use for example:

mkpasswd -m md5 test

which will give you a password that looks like:

$1$93EJ3qod$gh0qbEAnMMca1yTQpf7sp.

October 13, 2010 9:29 PM updated: October 13, 2010 9:29 PM

Thats sounds great. Also I suggest making a option to specify your own custom config file for the ProFTPD like you offer for Samba.

Also, do you have a noob guide you recommend for setting up SWAP on a external HD? the WNR3500L says 3% ram after a huge FTP file transfer :(

Also a opt-ware guide would be nice too. I found some online, but couldn't get any of them to work...

October 14, 2010 7:31 AM

I have to check about swap support, there was a commit recently that added swap support to the kernel. But the 3% ram issue is no problem unless its 3% ram and no cached or buffered data. This means if you transfer large files the router will buffer lots of it and then give it free once another app needs some ram. Moreover latest builds have a setting to prevent apps eating up all the ram causing lock ups for already running apps.

As for optware as soon as I have my build system setup to use the same toolchain I use for the firmware I'll add the download list in the firmware, then it will be firly easy to install any apps through optware.

October 14, 2010 12:42 PM

Well i found this:

http://www.dd-wrt.com/wiki/index.php/Linux_SWAP

and found this bit of info it:
----------------------------------------------------------------------
I've installed swap (on a CIFS share, but it should work on a USB device the same way)
without needing optware by using this method - why install an entire second busybox
when all you need is the swap-utils ipkg (and optionally kmod-loop and kmod-ext2 if you're
going to access the swap via a CIFS share):


ipkg install swap-utils
ipkg install kmod-loop
ipkg install kmod-ext2
insmod /jffs/lib/modules/2.4.30/loop.o
insmod /jffs/lib/modules/2.4.30/ext2.o
dd if=/dev/zero of=/tmp/smbshare/swap.ext2 bs=1 seek=64M echo y | mke2fs -L optware /tmp/smbshare/swap.ext2
mkdir /tmp/swap
mount -o loop /tmp/smbshare/swap.ext2 /tmp/swap
dd if=/dev/zero of=/tmp/swap/swapfile bs=1024 count=65535
mkswap /tmp/swap/swapfile
swapon -p1 /tmp/swap/swapfile

Test if the swap is working with swapon -s

------------------------------------------------------------

I think im to afraid to try anything cuase I dont want to break it lol. Would this work? If I plugged in a powered hub and a 512MB SDHC hard (in a reader) Could I dedicate that as swap?

As for the other comment, does that mean "ipkg-opt" will be built in the firmware? From what iv read you MUST use a ext2/3 formated HD for optware to work in the first place...I need my FAT HD for my network :(

Discussion:    Add a Comment | Comments 1-4 of 4 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window