Mark Walter
07-22-2004, 01:20 PM
I'm having difficulty (as others are) setting up a wireless network adapter under KNOPPIX. I am getting close: I can get Airsnort to recognize the adapter but only if I log in as root.
I'm using a D-Link DWL-122 wireless adapter. I've not tried rebuilding the kernel nor downloading new drivers: KNOPPIX V3.4 apparently has the Prism2 driver already available
My sequence of events is as follows:
First I boot up w/o the adapter in place. I log in as root by using su
Next based upon some postings from others I remove the Prism2 module
root@ttyp0[knoppix]# modprobe prism2_usb -r
I install the DWL-122 Wireless Network adapter into the usb port and still as root I re-install the Prism2 module and run the following commands:
root@ttyp0[knoppix]# modprobe prism2_usb prism2_doreset=1
root@ttyp0[knoppix]# wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
message=lnxreq_ifstate
ifstate=enable
resultcode=success
root@ttyp0[knoppix]# wlanctl-ng wlan0 lnxreq_autojoin ssid=MySSID authtype=opensystem
message=lnxreq_autojoin
ssid='MySSID'
authtype=opensystem
resultcode=success
(where MySSID) is the identification I've given my home network)
root@ttyp0[knoppix]# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0D:88:54:8A:F1
BROADCAST 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
root@ttyp0[knoppix]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:500 (500.0 b) TX bytes:500 (500.0 b)
root@ttyp0[knoppix]# ifconfig wlan0 up
root@ttyp0[knoppix]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:500 (500.0 b) TX bytes:500 (500.0 b)
wlan0 Link encap:Ethernet HWaddr 00:0D:88:54:8A:F1
UP BROADCAST RUNNING 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
The system thinks I'm all set, at least as the root operator. I go into AirSnort from the console as root operator and it comes up, finds the card, and starts logging packets.
If I log out of root and am running as knoppix and enter AirSnort the the system will not go into the monitor mode: apparently it does not recognize Wlan0 anymore.
Anyone have any hints/ideas where I go from here?
thanks
I'm using a D-Link DWL-122 wireless adapter. I've not tried rebuilding the kernel nor downloading new drivers: KNOPPIX V3.4 apparently has the Prism2 driver already available
My sequence of events is as follows:
First I boot up w/o the adapter in place. I log in as root by using su
Next based upon some postings from others I remove the Prism2 module
root@ttyp0[knoppix]# modprobe prism2_usb -r
I install the DWL-122 Wireless Network adapter into the usb port and still as root I re-install the Prism2 module and run the following commands:
root@ttyp0[knoppix]# modprobe prism2_usb prism2_doreset=1
root@ttyp0[knoppix]# wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
message=lnxreq_ifstate
ifstate=enable
resultcode=success
root@ttyp0[knoppix]# wlanctl-ng wlan0 lnxreq_autojoin ssid=MySSID authtype=opensystem
message=lnxreq_autojoin
ssid='MySSID'
authtype=opensystem
resultcode=success
(where MySSID) is the identification I've given my home network)
root@ttyp0[knoppix]# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0D:88:54:8A:F1
BROADCAST 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
root@ttyp0[knoppix]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:500 (500.0 b) TX bytes:500 (500.0 b)
root@ttyp0[knoppix]# ifconfig wlan0 up
root@ttyp0[knoppix]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:500 (500.0 b) TX bytes:500 (500.0 b)
wlan0 Link encap:Ethernet HWaddr 00:0D:88:54:8A:F1
UP BROADCAST RUNNING 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
The system thinks I'm all set, at least as the root operator. I go into AirSnort from the console as root operator and it comes up, finds the card, and starts logging packets.
If I log out of root and am running as knoppix and enter AirSnort the the system will not go into the monitor mode: apparently it does not recognize Wlan0 anymore.
Anyone have any hints/ideas where I go from here?
thanks