From DD-WRT Wiki

Revision as of 19:21, 15 May 2006 by Gerrys (Talk | contribs)
Jump to: navigation, search

The source information below is dated. Actually, you can still get this package from here http://www.fungible.com/openwrt/packages/ - Thanks Tim Freeman (http://www.fungible.com/openwrt/index.html). Additionally you'll have to skip the ipkg install terminfo and ipkg install ncurses ncurses-term part. I just installed the libs, added the export TERMINFO=/jffs/usr/share/terminfo and that's all. Axel

I got iftop working on my DD-WRT (WRT54GS) and this is my Dakshina to the DD-WRT/OpenWRT Gurus and Community - Thanks.

OpenWRT Tracker - very good list of available packages for OpenWRT - since OpenWRT and DD-WRT are in the process of merging, this list should only get more and more useful.

ipkg install iftop (or iftop-bangless if you wish)
ipkg install libpcap libncurses libpthread
ipkg install terminfo
ipkg install ncurses ncurses-term

This will install all the necessary packages to run iftop. All these packages may not be needed, but I am listing it here exactly the way I did it.

These packages will install under /jffs, so you need to inform your system about the location of these newly-installed libraries in these non-standard paths. Under /jffs/, I created a file named set_path, which contains the following:

#!/usr/bin/env sh

export LD_LIBRARY_PATH=`cat /etc/ld.so.conf  | tr '\012' ':'`
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/jffs/lib:/jffs/usr/lib"

export TERMINFO=/jffs/usr/share/terminfo

I've made it executable, but it's probably not necessary

/jffs # ls -al set_path
-rwxr-xr-x    1 root     root          192 Oct 13 17:26 set_path

Every time you log in, you need to source this file as follows

. /jffs/set_path

and you should now be able to run iftop on the interface of your choice. (For me, vlan1 is WAN and br0 is LAN+WLAN).