LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing a driver for a wireless adapter. (https://www.linuxquestions.org/questions/linux-newbie-8/installing-a-driver-for-a-wireless-adapter-4175495093/)

Enoch11 02-16-2014 02:27 AM

Installing a driver for a wireless adapter.
 
BackTrack on my laptop does not recognize the wireless adapter.
I've downloaded a file named: "iwlwifi-2030-6.ucode" which contains the appropriate driver. I tried to copy this file from my Disc-on-Key to /lib/firmware, but I keep getting a "cannot stat" error.
How to copy the file from my Disc-on-Key to /lib/firmware?
Thanks.

camorri 02-16-2014 10:29 AM

Quote:

iwlwifi-2030-6.ucode
This file is the firmware, not the driver. You need to see if the driver is loaded before the firmware will load into the hardware.

To answer the question you asked, you have to be root to copy that file to the location you specified.

As root user, the command 'cp /path/to/file/iwlwifi-6ucode /path/to/target/' will copy the file.

To know if the driver is loaded, as root, 'lsmod | grep iwlwifi' will list the module, if it is loaded. If nothing is returned, the module is not loaded. You can try as root 'modprobe iwlwifi.ko'. If you get no response, the module loaded. If you get an error, like "file not found", you may not have the driver installed.

For completeness, show the output of the command 'lspci' with your post. That will list the hardware on the pci bus on your system. Note, all commands I showed are typed without the quotes, just what is between them.

Enoch11 02-16-2014 10:49 AM

Thanks Cliff.

You wrote:
"the command 'cp /path/to/file/iwlwifi-6ucode /path/to/target/' will copy the file."

Therein lies my problem. How to find out the /path/to/ of the Disc-on-Key?

Enoch11 02-16-2014 06:04 PM

Quote:

Originally Posted by camorri (Post 5118708)
This file is the firmware, not the driver. You need to see if the driver is loaded before the firmware will load into the hardware.

To answer the question you asked, you have to be root to copy that file to the location you specified.

As root user, the command 'cp /path/to/file/iwlwifi-6ucode /path/to/target/' will copy the file.

To know if the driver is loaded, as root, 'lsmod | grep iwlwifi' will list the module, if it is loaded. If nothing is returned, the module is not loaded. You can try as root 'modprobe iwlwifi.ko'. If you get no response, the module loaded. If you get an error, like "file not found", you may not have the driver installed.

For completeness, show the output of the command 'lspci' with your post. That will list the hardware on the pci bus on your system. Note, all commands I showed are typed without the quotes, just what is between them.

OK, I was successful in coping 'iwlwifi-2030-6.ucode' to /lib/firmware.
Then run as follows:
'modprode -r iwlagn'
'modprobe iwlagn'
'ifconfig wlan0 up'

'lsmod | grep iwlwifi' produced the following list:
Iwlwifi 279554 0
Mac80211 410313 1 iwlwifi
Cfg8021 160399 2 iwlwifi,mac80211

I cannot save the output of 'lspci' to the Disc-on-Key, since I get a 'read-only file system' msg. Anyways it shows: 'Network controller: Intel Corp Device 0888 (rev c4)'

The problem now is that, when I run Airmon-ng, no Interface, no chipset and no Driver appear.

camorri 02-16-2014 06:35 PM

Quote:

Therein lies my problem. How to find out the /path/to/ of the Disc-on-Key?
What is a Disc on key? Is this a USB flashdrive? If yes, most system now mount such a device in /run/media/youruser/ ( your user is your user name ).

You do not need to save the output of lspci. Run the command, copy the output from a terminal and paste it in the thread. That will tell us what hardware you are using.

Quote:

The problem now is that, when I run Airmon-ng, no Interface, no chipset and no Driver appear.
This is anything but a standard tool for linux. Its a hackers tool. What are you trying to accomplish?

Enoch11 02-17-2014 01:46 AM

Quote:

Originally Posted by camorri (Post 5118927)
What is a Disc on key? Is this a USB flashdrive? If yes, most system now mount such a device in /run/media/youruser/ ( your user is your user name ).

You do not need to save the output of lspci. Run the command, copy the output from a terminal and paste it in the thread. That will tell us what hardware you are using.



This is anything but a standard tool for linux. Its a hackers tool. What are you trying to accomplish?

I am trying to hack my router, to see if my password is strong enough, and on the way to see what Linux is all about.

I run BackTrack live from a USB flashdrive. The USB flashdrive is in /media/cdrom/cdrom.
I tried to pipe the output of 'lspci' into a txt file and save that txt file to the USB flashdrive. But I could not find a way to save to the USB flashdrive as I get a 'read-only file system' msg. I used the following command:
'lspci > /media/cdrom/cdrom/[FileName].txt'.

I cannot paste the output of 'lspci' in the thread, since BackTrack does not identify the wireless adapter and I'm not connected to the internet via that computer.

cascade9 02-17-2014 04:21 AM

Backtrack is discontinued, you should be using Kali Linux.

http://www.kali.org/

As for help with running airmon-ng, sorry, I wont help with that. IMO in line with the LQ rules, a lot of the backtrack/airmon-ng thread should be closed, the ones created by people on 0 posts even more so.

Quote:

Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed.
http://www.linuxquestions.org/linux/rules.html


All times are GMT -5. The time now is 12:24 PM.