Iftop
From DD-WRT Wiki
Revision as of 07:51, 14 January 2006 (edit) 24.162.247.37 (Talk) ← Previous diff |
Revision as of 18:38, 16 January 2006 (edit) (undo) 84.163.108.61 (Talk) (→'''THIS IS BROKEN. Package no longer exists at openwrt. ''') Next diff → |
||
Line 1: | Line 1: | ||
- | + | 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'' | ||
Revision as of 18:38, 16 January 2006
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).