LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2014, 03:27 AM   #1
Enoch11
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 02-16-2014, 11:29 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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.
 
Old 02-16-2014, 11:49 AM   #3
Enoch11
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-16-2014, 07:04 PM   #4
Enoch11
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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.
 
Old 02-16-2014, 07:35 PM   #5
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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?
 
Old 02-17-2014, 02:46 AM   #6
Enoch11
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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.
 
Old 02-17-2014, 05:21 AM   #7
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
airlink 101 usb wireless adapter's driver not installing georgecyros Linux - Wireless Networking 4 07-10-2012 03:01 PM
Installing Downloaded IOGear Linux Wireless Adapter Driver julianvb Linux - Wireless Networking 2 05-17-2012 08:13 PM
Problems Installing Driver for DWL-G122 Wireless USB Adapter xsnyperx Linux - Wireless Networking 5 12-19-2007 08:02 AM
need help installing linksys driver for my wireless adapter randell6564 Linux - Software 2 11-28-2005 01:36 PM


All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration