[SOLVED] Enabling Wireless Networking on BackTrack 4 RC2
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
-----------------------------------------------------------------------------------
Here is how I successfully enabled wireless networking on BackTrack 4 RC2:
In the Shell Konsole, I ran
Code:
wicd start
wicd-curses
then pressed the right arrow key for Config, and in the Configuring preferences, I ignored the first two options (Use Static IPs, Use Static DNS). I choose the third option (Use DHCP Hostname), changed the DHCP Hostname (which was "bt", to something I made up) and selected "Automatically connect to this network". I entered the router's passphrase (Preshared Key) and F10 to save! Thanks Peacedog!
-----------------------------------------------------------------------------------
Original question:
Hi,
I am new to Linux, but have managed to successfully instal Back Track 4 RC2 on one primary partition on my desktop's harddrive, with Windows XP Pro on the other primary partition. Man, I am loving being able to select which OS to boot with, and Linux in general.
I have a Nexxt Solutions 54m wireless PCI adapter (RTL8185L, nw122nxt12) installed which works great on the Windows side. I've configured it to automatically connect to my internet when it is in range. Our landlord's router is set as a gateway, providing internet access to all of the apartments in my building.
However, I was unsuccessful in getting networking to work on the BackTrack side with the dhclient eth0 command (please see below). I've searched Google, this forum and the backtrack forums but have not found the solution to my problem as yet. Any assistance will be greatly appreciated. Thanks in advance.
Code:
root@bt:~# /sbin/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: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)
root@bt:~# dhclient eth0
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:1c:c0:dc:be:ce
Sending on LPF/eth0/00:1c:c0:dc:be:ce
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
root@bt:~# /sbin/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: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)
Update: After I took out the wireless card to record it name and serial number, I replace it and rebooted into windows and noticed it stopped working. There was no wireless icon in the system tray and the LEDs did not light up. I powereddown the PC again, reseated the wireless card and tried again - no change. I am not sure why my wireless card stopped working. Any ideas why?
Last edited by 01010011; 04-13-2011 at 06:42 PM.
Reason: To explain how to enable wireless networking on BackTrack 4
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,209
Rep:
Hi 01010011, welcome to LQ. It would be an odd coincidence that the card has stopped working, but it does happen. Have you tried toggling the wifi switch?
On the Linux side, just issuing dhclient isn't likely to work unless you've already associated the card with the access point. Did you start networking? I believe Backtrack has networking turned off by default.
Code:
# /etc/init.d/networking start
To associate with an access point you can use the cli tools iwconfig or WICD from the gui.
Try running lspci and searching the output to find out what is kind of chip is inside your wireless card--that's more important than the brand name/model.
Hi 01010011, welcome to LQ. It would be an odd coincidence that the card has stopped working, but it does happen. Have you tried toggling the wifi switch?
On the Linux side, just issuing dhclient isn't likely to work unless you've already associated the card with the access point. Did you start networking? I believe Backtrack has networking turned off by default.
Code:
# /etc/init.d/networking start
To associate with an access point you can use the cli tools iwconfig or WICD from the gui.
Good luck. ;-)
Thanks very much for your helpful reply Peacedog and the commands to start networking.
After I reseated the wireless adapter card and reinstalled the drivers, it wireless card's power and activity LEDs bagan to work, it saw my network and tried to connect, but displayed the limited connectivity message along with the yellow exclamation mark.
Anyway, when I restarted, I got this message:
Windows could not start because the following file is missing or corrupt: <Windows root>\system32\ntoskrnl.exe. Please re-install a copy of the above file. I am not sure whether I should just get rid of BT4RC2 or what
Quote:
Originally Posted by frankbell
Try running lspci and searching the output to find out what is kind of chip is inside your wireless card--that's more important than the brand name/model.
If lspci doesn't turn it up, try running dmesg; it is not restricted to pci devices. It produces much lengthier output.
Post the results here.
Thanks a lot. I will do that as soon as I fix this missing ntoskrnl.exe mess
Update:
I restarted windows again, and it booted successfully without the "missing ntoskrnl.exe" error message. I guess all of this is happening because I installed a RC2? However, I am still getting the "Limited or no connectivity" error message. My other computer is connected to the internet just fine.
Update 2: Ok, I finally got my internet connectivity back on the Windows side. The router was not assigning my computer a valid DHCP IP address. Anyway that is resolved now. Now I can resume with enabling networking on BT side.
Update 3: On the BT side i ran the following successfully:
Try running lspci and searching the output to find out what is kind of chip is inside your wireless card--that's more important than the brand name/model.
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,209
Rep:
Let's go back to the start and see if we can get all of the information in one place to analyze since you had the possible hardware issue and this is a Broadcom chip, so you may have to install the proper modules and firmware. Please post the output from the following:
Ok, here are the results: (sorry I was not able to display the following code properly because I got this silly message: You have included 7 images in your message. .)
Code:
root@bt:~# lsmod | grep b43
root@bt:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1c:c0:dc:be:ce
UP 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)
Interrupt:43 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 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)
wlan0 Link encap:Ethernet HWaddr 08:10:74:2f:c1:9b
UP 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@bt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Last edited by 01010011; 03-20-2011 at 12:52 AM.
Reason: Error message: You are limited to using 6 images so please go back and correct the problem and then continue again
I'm still not seeing what I'm looking for. Let's just look at all of the loaded modules.
Code:
# lsmod
Peacedog, thanks a lot for your patience, I really appreciate this. I've been researching every command you have given me so far and I must admit its a bit of a steep learning curve but its fun.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.