Pages

DD-WRT ipkg

Router: ASUS RT-N16
Firmware: DD-WRT v24-sp2 (06/12/10) mega

cd /jffs
mkdir -p /jffs/tmp/ipkg
ipkg update
ipkg list


IPKG Update (nov 2013)
# mkdir /jffs/etc
# cp /etc/ipkg.conf /jffs/ipkg.conf
# vi /jffs/ipkg.conf

Change the line that reads
src backports http://downloads.openwrt.org/backports/rc5
To read
src backports http://downloads.openwrt.org/backports/0.9
src nlsu2 http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/stable

Basic vi commands
* :x<Return> quit vi, writing out modified file to file named in original invocation
  :wq<Return> quit vi, writing out modified file to file named in original invocation
  :q<Return> quit (or exit) vi
* :q!<Return> quit vi even though latest changes have not been saved for this vi call
* dd delete entire current line

# export IPKG_CONF_DIR=/jffs/

Now lets try the update again
# ipkg update


Install libs
root@WRT:~#  ipkg install libpcap libncurses libpthread
Downloading http://downloads.openwrt.org/whiterussian/packages/libpcap_0.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libpcap...Done.
Configuring libpcap...Done.

Downloading http://downloads.openwrt.org/whiterussian/packages/libncurses_5.2-7_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libncurses...Done.
Configuring libncurses...Done.

Downloading http://downloads.openwrt.org/whiterussian/packages/libpthread_0.9.27-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libpthread...Done.
Configuring libpthread...Done.
#


WRT:~# ipkg -force-depends install lft

WRT:~# ipkg -force-depends install mtr

Downloading http://downloads.openwrt.org/whiterussian/packages/libncurses_5.2-7_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libncurses...Done.
Configuring libncurses...Done.

Downloading http://downloads.openwrt.org/backports/0.9/mtr_0.69-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
ipkg_install_file: Warning: mtr depends on the following uninstalled programs:  libncurses
Unpacking mtr...Done.
Configuring mtr...Done.


#  ipkg -force-depends install iftop

Downloading http://downloads.openwrt.org/whiterussian/packages/libncurses_5.2-7_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libncurses...Done.
Configuring libncurses...Done.

Downloading http://downloads.openwrt.org/whiterussian/packages/libpcap_0.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libpcap...Done.
Configuring libpcap...Done.

Downloading http://downloads.openwrt.org/whiterussian/packages/libpthread_0.9.27-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libpthread...Done.
Configuring libpthread...Done.

Downloading http://downloads.openwrt.org/backports/0.9/iftop_0.17-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
ipkg_install_file: Warning: iftop depends on the following uninstalled programs:  libncurses libpcap libpthread
Unpacking iftop...Done.
Configuring iftop...Done.
WRT:~#