openWRT ipkg optware installing to wrong location

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
That Guy
DD-WRT Novice


Joined: 09 May 2008
Posts: 11

PostPosted: Sun Aug 10, 2008 6:13    Post subject: openWRT ipkg optware installing to wrong location Reply with quote
Router Setup:

Router model: Linksys WRT54g-TM
Firmware version: DD-WRT v24-sp1 ( 07/27/08 ) std - build 10011
Router running in client mode with SD/MMC mod
Currently has mount --bind /mmc/jffs /jffs and mount -o bind /jffs/opt /opt saved as startup script.

Hello, I am currently trying to install the aircrack-ng suite found here: http://ftp.iasi.roedu.net/pub/mirrors/openwrt.org/kamikaze/packages/mipsel/ . I tried running the following command while telneting with the router:

Code:
/opt/bin/ipkg-opt install http://ftp.iasi.roedu.net/pub/mirrors/openwrt.org/kamikaze/packages/mipsel/aircrack-ng_0.9.1-1_mipsel.ipk


And it displayed the following output:

Code:
Downloading http://ftp.iasi.roedu.net/pub/mirrors/openwrt.org/kamikaze/packages/mipsel/aircrack-ng_0.9.1-1_mipsel.ipk
Installing aircrack-ng (0.9.1-1) to /opt/...
ipkg: /usr/bin/aircrack-ng: Read-only file system
ipkg: /usr/bin/airdecap-ng: Read-only file system
ipkg: /usr/bin/packetforge-ng: Read-only file system
ipkg: /usr/bin/ivstools: Read-only file system
ipkg: /usr/bin/kstats: Read-only file system
ipkg: /usr/sbin/aireplay-ng: Read-only file system
ipkg: /usr/sbin/airodump-ng: Read-only file system
ipkg: /usr/sbin/airmon-ng: Read-only file system
Configuring aircrack-ng
Successfully terminated.



The files are neither in the locations that ipkg tries to install them to, nor are they located at /opt/bin. I have tried using http://downloads.openwrt.org/backports/0.9 by placing it into my ipkg.conf and updating, but the same thing happens. I have tried installing optware from http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ and the optware that I have tried (ncftp and transmission) both work, but why don't the OpenWRT packages from the links listed above work? I have followed both the ipkg and optware wikis, and have also search the forums, but I couldn't find any way to get it to install to the correct directory.

If someone knows of a solution that could help me, or even a theory, please reply. Thanks in advance!
Sponsor
That Guy
DD-WRT Novice


Joined: 09 May 2008
Posts: 11

PostPosted: Sun Aug 10, 2008 9:11    Post subject: Reply with quote
Ok this is weird, I just tried typing in airodump and the list of valid commands came up like it was installed, even though I ipkg says that it isn't installed. I tried using

Code:
wget http://downloads.openwrt.org/backports/rc5/aircrack_2.41-1_mipsel.ipk
ipkg install aircrack_2.41-1_mipsel.ipk


maybe thats what did it. I tried running the following in terminal

Code:
find / -name aircrack -print


which displays that aircrack is located at /jffs/usr/bin/aircrack and /mmc/jffs/usr/bin/aircrack. Should it be at /opt/bin instead of /user/bin? Also, what interface do I use for airodump?
That Guy
DD-WRT Novice


Joined: 09 May 2008
Posts: 11

PostPosted: Sun Aug 10, 2008 19:08    Post subject: airodump wont run Reply with quote
Hmm, I still dont know what interface to use for airodump. I tried prism0, but the router doesn't acknowledge it as a valid network interface. I ran ifconfig in the terminal which gave me a list of network interfaces:


Code:
br0       Link encap:Ethernet  HWaddr 00:1A:70:E1:C8:C1 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2952 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2888 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:175388 (171.2 KiB)  TX bytes:601099 (587.0 KiB)

br0:0     Link encap:Ethernet  HWaddr 00:1A:70:E1:C8:C1 
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 00:1A:70:E1:C8:C1 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2944 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2883 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:240286 (234.6 KiB)  TX bytes:623855 (609.2 KiB)
          Interrupt:4

eth1      Link encap:Ethernet  HWaddr 00:1A:70:E1:C8:C3 
          inet addr:192.168.0.187  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:735
          TX packets:12 errors:3 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2219 (2.1 KiB)  TX bytes:1941 (1.8 KiB)
          Interrupt:2 Base address:0x5000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING MULTICAST  MTU:16436  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1452 (1.4 KiB)  TX bytes:1452 (1.4 KiB)

vlan0     Link encap:Ethernet  HWaddr 00:1A:70:E1:C8:C1 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2954 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2888 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:187860 (183.4 KiB)  TX bytes:612651 (598.2 KiB)

vlan1     Link encap:Ethernet  HWaddr 00:1A:70:E1:C8:C1 
          UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


I tried running airodump with each of the following, but none have worked:


Code:
root@DD-WRT:~# airodump br0 cap 6 1   
ioctl(SIOCSIWMODE) failed: Operation not supported

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead.  Make sure RFMON is enabled:
run 'ifconfig br0 up; iwconfig br0 mode Monitor channel <#>'

root@DD-WRT:~# airodump br0:0 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead.  Make sure RFMON is enabled:
run 'ifconfig br0:0 up; iwconfig br0:0 mode Monitor channel <#>'

root@DD-WRT:~# airodump eth0 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead.  Make sure RFMON is enabled:
run 'ifconfig eth0 up; iwconfig eth0 mode Monitor channel <#>'

root@DD-WRT:~# airodump eth1 cap 6 1
ioctl(SIOCSIWMODE) failed: Invalid argument

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead.  Make sure RFMON is enabled:
run 'ifconfig eth1 up; iwconfig eth1 mode Monitor channel <#>'

root@DD-WRT:~# airodump lo cap 6 1 
ioctl(SIOCSIWMODE) failed: Operation not supported

Unsupported hardware link type  772 - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead.  Make sure RFMON is enabled:
run 'ifconfig lo up; iwconfig lo mode Monitor channel <#>'

root@DD-WRT:~# airodump vlan0 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead.  Make sure RFMON is enabled:
run 'ifconfig vlan0 up; iwconfig vlan0 mode Monitor channel <#>'

root@DD-WRT:~# airodump vlan1 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead.  Make sure RFMON is enabled:
run 'ifconfig vlan1 up; iwconfig vlan1 mode Monitor channel <#>'


Am I using the wrong interfaces, or do I simply have to run a few extra commands before trying the program? Any suggestions and/or comments would be appreciated. Thanks!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum 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