Optware, the right way

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 98, 99, 100 ... 157, 158, 159  Next
Author Message
forza.stiinta
DD-WRT Novice


Joined: 30 Jun 2010
Posts: 40

PostPosted: Sun Dec 19, 2010 6:20    Post subject: Reply with quote
I am using optware the right way, ddwrt v24-sp2 mega. I activated ProFTPD from the router's admin page, the server works fine - I can connect and transfer files, but the big problem is that it reports wrong filesizes for big files.
I have a usb hdd attached, properly formated, and for big files (mainly hd movied) i get filesized like 300mb, 400mb for files around 4GB.
Samba is working fine, files are not corrupted.
Sponsor
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Dec 19, 2010 7:36    Post subject: Reply with quote
It's a limitation of DD-WRT's proftpd. It's compiled without LFS (Large File Support).
You need to create a ticket for it just like I have to.

If you use Optware's proftpd it will probably work fine. I have not (yet) created startup scripts for it.

Just install it and try to get it working. If you have issues, explain them and I will try to sort them out.

I did something with vsftpd, but it could be on another platform (Playon!HD).

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Dec 19, 2010 7:42    Post subject: Reply with quote
_NemO_ wrote:
What happens if to use optware and a big build? There are NTFS in both.
I have feedback that all things are working now (I don't use/need NTFS myself). I needed to do some special handling for it.

When DD-WRT natively supports ntfs-3g, automount will use the native ntfs-3g binary and load the native NTFS-module.

It will use the downloaded module (k26 from DD-WRT.com and K24 from wd.mirmana.com) in combination with optware's NTFS-3g otherwise.


BTW:
DD-WRT itself doesn't load the NTFS-module if it isn't mounted by DD-WRT.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Dec 19, 2010 12:10    Post subject: Reply with quote
Today I added a new tool in OTRW intended to be used later on in conjunction with Zabbix.

It's a DNSBL tool
Code:
http://www.dnsbl.info/


DNSBL sounds complicated, but it isn't really. You can do a DNS-request for that DNSBL combined with your IP and if you get a 127.0.0.0/8 address as an answer, it means you are listed.

Anti-spam software (like ASSP I'm using) can do a quick lookup on these servers and can decide if they want to pass you or not.

If you are sending mail directly to the recipient's mailservers (not using your ISP's SMTP-server) you don't want to be on such a list.

That's where this script comes in. It will enable you to query almost 50 servers to see if you are listed.

If used with Zabbix, you can do an automated check every hour and get informed when something's wrong.....

I will post some more info later about zabbix integration.

For this to work you need to turn on rebinding again in DNSMasq as it otherwise doesn't work with these blocklists. Not even for your local linux box.

So "No Rebind" should be set to "disable" (can't this be changed in the webif?)

The damage will be limited as the script uses 8.8.8.8 as the DNS-server to query. Some servers (at least spamhaus.org) has that blocked.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
forza.stiinta
DD-WRT Novice


Joined: 30 Jun 2010
Posts: 40

PostPosted: Sun Dec 19, 2010 15:22    Post subject: Reply with quote
frater wrote:
It's a limitation of DD-WRT's proftpd. It's compiled without LFS (Large File Support).
You need to create a ticket for it just like I have to.

If you use Optware's proftpd it will probably work fine. I have not (yet) created startup scripts for it.

Just install it and try to get it working. If you have issues, explain them and I will try to sort them out.

I did something with vsftpd, but it could be on another platform (Playon!HD).


I installed proftpd from optware, but it does not start - error is: Socket operation on non-socket
RenRenRen
DD-WRT User


Joined: 24 Jan 2008
Posts: 212
Location: England

PostPosted: Sun Dec 19, 2010 15:46    Post subject: Reply with quote
When updating DD-WRT, do I just run the optware install script again, or do I need to do something else?
_________________
Netgear R7800, 46885 (05/06/2021)
Linksys WRT1900ACS, 46885 (05/06/2021)
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Dec 19, 2010 17:13    Post subject: Reply with quote
forza.stiinta wrote:
I installed proftpd from optware, but it does not start - error is: Socket operation on non-socket
I'm too busy with other things at the moment. I can probably look at it in a few days. Try to solve it yourself for now. It will teach you a lot....
_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
buddee
DD-WRT Guru


Joined: 06 Feb 2010
Posts: 7401
Location: Little Rock

PostPosted: Sun Dec 19, 2010 17:19    Post subject: Reply with quote
RenRenRen wrote:
When updating DD-WRT, do I just run the optware install script again, or do I need to do something else?


For updating dd-wrt, just flash whatever build you are updating to, re-enable USB, and you should be good to go, just check 'service' from the shell to make sure everything re-initialized.

For updating OTRW, just re-run frater's script, it'll go through and update what needs it.

_________________
Wireless N Config | Linking Routers | DD-WRT Wiki | DD-WRT Builds | Peacock - Broadcom FAQ

Having problems with port forwarding? Check out Port Forward Troubleshooting for more info.
Dark_Shadow
DD-WRT Guru


Joined: 31 Aug 2009
Posts: 2448
Location: Third Rock from the Sun

PostPosted: Sun Dec 19, 2010 19:43    Post subject: Reply with quote
http://infodepot.wikia.com/wiki/OTRW_Package_Tutorial
_________________
Peacock Thread-FAQ -- dd-wrt Wiki

Testing Multiple Routers -- Bootloader Collection Project -- My Wiki
_NemO_
DD-WRT User


Joined: 27 Sep 2009
Posts: 86
Location: Ukraine, Kiev

PostPosted: Mon Dec 20, 2010 23:18    Post subject: Reply with quote
Quote:
root@RT-N16:~# mount /dev/discs/disc1/part1 /mnt
mount: unknown filesystem type 'vfat'

What's wrong?

DD-WRT v24-sp2 (12/19/10) big - build 15943M NEWD-2 K2.6 Eko
latest optware
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Tue Dec 21, 2010 0:28    Post subject: Reply with quote
_NemO_ wrote:
Quote:
root@RT-N16:~# mount /dev/discs/disc1/part1 /mnt
mount: unknown filesystem type 'vfat'

What's wrong?

DD-WRT v24-sp2 (12/19/10) big - build 15943M NEWD-2 K2.6 Eko
latest optware

It would seem to me the 'vfat' module has not been "inserted" into the kernel. Without the appropriate file system module, the file system will not mount.

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Tue Dec 21, 2010 7:16    Post subject: Reply with quote
_NemO_ wrote:
Quote:
root@RT-N16:~# mount /dev/discs/disc1/part1 /mnt
mount: unknown filesystem type 'vfat'

What's wrong?

DD-WRT v24-sp2 (12/19/10) big - build 15943M NEWD-2 K2.6 Eko
latest optware
On older versions DD-WRT loads all the modules you tell it to in the webif.

The newer versions only loads the FS-module of the partition it mounts. As it only mounts 1 partition, it will only load 1 FS-module.

As automount is able to mount more than 1 partition it bumps into this when loading a filesystem other than the first partition (which is ext if you properly set it up).

Because loading the NTFS-module has always been the task of automount, you will not have this problem. I did need to patch it, because it's better to load the native module instead of the downloaded one...

You can get it working for now by inserting the vfat module manually...

Code:

/sbin/insmod /lib/modules/`uname -r`/kernel/fs/fat/fat.ko
/sbin/insmod /lib/modules/`uname -r`/kernel/fs/vfat/vfat.ko



I tested it on 1 router which worked and the other router didn't. I have no time to sort this out further because I have to get into the snow and ride to work.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
_NemO_
DD-WRT User


Joined: 27 Sep 2009
Posts: 86
Location: Ukraine, Kiev

PostPosted: Tue Dec 21, 2010 7:32    Post subject: Reply with quote
frater,
Thanks a lot!
jprez1980
DD-WRT User


Joined: 07 Apr 2010
Posts: 108

PostPosted: Tue Dec 21, 2010 16:59    Post subject: Reply with quote
Frater/Anyone:

I've followed the Optware the right way process (very easy and elegant btw) but one question still persists and it appears there may be some confusion for others....with regards to turning on JFFS in the Admin Panel or not.

Can someone take a look at the issue I posted here and provide an answer?

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=84519

Thanks!

_________________
Asus RT-N66U 64K NVRAM
siuside
DD-WRT Novice


Joined: 22 Mar 2007
Posts: 13

PostPosted: Thu Dec 23, 2010 18:51    Post subject: Reply with quote
If you formatted according to the wiki (3rd partition for jffs), just run these commands one time. OTRW takes care of it after subsequent restarts.

Code:

service automount umount /tmp/c
mount -n /dev/sda3 /jffs

_________________
WRTSL54GS V1.1 -> BrainSlayer 08-12-10-r14929

ASUS RT-N16 -> Eko 12-19-10-svn15943

BUFFALO WZR-HP-G300NH -> BrainSlayer 12-24-10-r15962
Goto page Previous  1, 2, 3 ... 98, 99, 100 ... 157, 158, 159  Next Display posts from previous:    Page 99 of 159
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum