SlackwareThis Forum is for the discussion of Slackware 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.
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.
I have been trying for the past two weeks to solve this problem but no success as i am completely new to linux slackware. I have a gateway netbook running backtrack 3 usb, (about to install backtrack 4) but i cannot get the wifi working. It is an atheros ar5b95 wifi card that should be compatible with the Madwifi driver. I have tried both compiling my own source and installing a pre made package. I followed the tutorial on hxxp://madwifi-project.org/wiki/UserDocs/FirstTimeHowTo
Self-compiled:
Code:
bt Desktop # cd madwifi-0.9.4
bt madwifi-0.9.4 # ls
BuildCaps.inc* Makefile.inc* ath_rate/ hal/ kernelversion.c* readme* scripts/
COPYRIGHT* ath/ contrib/ include/ net80211/ regression/ thanks*
Makefile* ath_hal/ docs/ install* patches/ release.h* tools/
bt madwifi-0.9.4 # sudo make
Checking requirements... ok.
Checking kernel configuration... ok.
...
...
...
gcc -o athdebug -g -O2 -Wall -I. -I../hal -I.. athdebug.c
gcc -o 80211debug -g -O2 -Wall -I. -I../hal -I.. 80211debug.c
gcc -o wlanconfig -g -O2 -Wall -I. -I../hal -I.. wlanconfig.c
gcc -o ath_info -g -O2 -Wall ath_info.c
make[1]: Leaving directory `/root/Desktop/madwifi-0.9.4/tools'
bt madwifi-0.9.4 # make install
sh scripts/find-madwifi-modules.sh 2.6.21.5
for i in ath/ ath_hal/ ath_rate/ net80211/; do \
make -C $i install || exit 1; \
done
make[1]: Entering directory `/root/Desktop/madwifi-0.9.4/ath'
test -d //lib/modules/2.6.21.5/net || mkdir -p //lib/modules/2.6.21.5/net
...
...
...
for i in amrr/ onoe/ sample/ minstrel/; do \
make -C $i install || exit 1; \
done
make[2]: Entering directory `/root/Desktop/madwifi-0.9.4/ath_rate/amrr'
test -d //lib/modules/2.6.21.5/net || mkdir -p //lib/modules/2.6.21.5/net
...
...
...
wlan_xauth.o wlan_scan_sta.o wlan_scan_ap.o; do \
f=`basename $i .o`; \
install $f.ko //lib/modules/2.6.21.5/net; \
done
make[1]: Leaving directory `/root/Desktop/madwifi-0.9.4/net80211'
(export KMODPATH=/lib/modules/2.6.21.5/net; /sbin/depmod -ae 2.6.21.5)
make -C ./tools install || exit 1
make[1]: Entering directory `/root/Desktop/madwifi-0.9.4/tools'
install -d /usr/local/bin
for i in athstats 80211stats athkey athchans athctrl athdebug 80211debug wlanconfig ath_info; do \
install $i /usr/local/bin/$i; \
strip /usr/local/bin/$i; \
done
install -d /usr/local/man/man8
install -m 0644 man/*.8 /usr/local/man/man8
make[1]: Leaving directory `/root/Desktop/madwifi-0.9.4/tools'
bt madwifi-0.9.4 # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
And the pre-compiled package:
Code:
bt~#installpkg Desktop/madwifi-0.9.4_2.6.21.5_smp-i486-1-.tgz
Installing package madwifi-0.9.4_2.6.21.5_smp-i486-1-...
Package Description:
madwifi: madwifi (driver for atheros based wireless a/b/g cards)
...
...
...
...
Executing install script for madwifi-0.9.4_2.6.21.5_smp-i486-1-...
bt~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
Did I miss a step after anything? As I said I am completely new to slackware but I will do anything to get the wifi working, even if i have to use something like ndiswrapper.
First, is the wireless NIC on? I know that sounds like a stupid question, but sometimes, the on/off button for the wireless cards can be easy to "bump" when you move the laptop around.
If it is on, did you load the modules after compiling/installing??
Do an "lsmod" and look for ath_pci. If it isn't there than you need to do a:
Code:
modprobe ath_pci
You also have to create a wlan device for the first time after compiling/installing like this:
Code:
wlanconfig ath0 create wlandev wifi0 wlanmode sta
ifconfig ath0 up
That command will create ath0 and put it in station mode which is what you want. You should then be able to pass standard iwconfig and ifconfig commands right to ath0 just like it is a regular eth0 interface.
My last suggestion if none of the above works would to NOT use their official released drivers and grab the nightly snapshot. I have had constant problems with downloading their "stable" drivers and always use SVN now to grab the lastest code. Do a:
Try compiling and installing that. Just make sure you uninstall the previous installation of Madwifi by doing a "make uninstall" in the original 0.9.4 source directory you tried earlier.
What am i supposed to do after? And I also tried lsmod and it just says Usage: lsmod.
At the moment i do not have any network on the bt machine, ethernet or wifi.
Can i somehow download them on a mac, pc, or ubuntu machine and bring them over to the
bt machine?
Since backtrack (sounds like it's for crackers) is based off Ubuntu,
why are Slackware tools/packages supposed to work on it? Or why are
you inquiring in the Slackware forum, and not the Ubuntu forum, or
the Linux - Wireless Networking forum?
Since backtrack (sounds like it's for crackers) is based off Ubuntu,
why are Slackware tools/packages supposed to work on it? Or why are
you inquiring in the Slackware forum, and not the Ubuntu forum, or
the Linux - Wireless Networking forum?
Not trying to be rude, just wondering out loud.
Ha well, just responding out loud. Yes backtrack is ment for pen testing. It is based off of slackware though, and mabye a little of ubuntu, im not sure. Like i said im not experienced with linux in general, and am looking to start. Thanks for the help Do you think i should move it over to a different thread?
Last edited by MadHatter21; 07-19-2009 at 10:56 PM.
You also have to create a wlan device for the first time after compiling/installing like this:
Code:
wlanconfig ath0 create wlandev wifi0 wlanmode sta
ifconfig ath0 up
That command will create ath0 and put it in station mode which is what you want. You should then be able to pass standard iwconfig and ifconfig commands right to ath0 just like it is a regular eth0 interface.
Biggen,
So when i tried the wlanconfig command, the bash gave me a command not found error. Not sure what that means but it isnt there.
Backtrack 3 is based on slax which is based on slackware long ago.
Backtrack 4 is based on ubuntu and not slax/slackware.
What kernel are you running?
If it has support for ath5k and your card doesn't work with that module then you might need to blacklist the module to be able to use madwifi.
So when i tried the wlanconfig command, the bash gave me a command not found error. Not sure what that means but it isnt there.
I would problem be in agreement with Bruce, if Backtrack isn't fully Slackware-like, than you may want to ask these questions in a more pertinent forum as they may be more familiar with your platform.
What kernel are you running?
If it has support for ath5k and your card doesn't work with that module then you might need to blacklist the module to be able to use madwifi. http://forums.remote-exploit.org/
I am running 2.6.21.5 kernel. What do you mean blacklist? I came across that yesterday in a wiki but thought it was nothing. How would i go about doing it if i need to?
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. Your duplicate threads have been closed. You are warned for crossposting. Please do not do that again. Do read and understand the LQ Rules before continuing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.