Linux - NewbieThis 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
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.