LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration

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 access 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.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

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.

Go Back   LinuxQuestions.org > Linux Answers > Networking
User Name
Password

By kayoss717 at 2006-03-25 04:41
To install and run ndiswrapper on Fedora Core 5, it take a little tweaking above and beyond what is in the official installation wiki. The first think you need to do is go to http://people.redhat.com/davej/kerne...5/RPMS.kernel/ and get the latest kernel AND kernel-devel. If you are using firefox, when you click on the download, just open them with the default package installer, and they will be installed. Otherwise, save them and install them with yum. Be sure that you are using the most recent kernel when you start installing ndiswrapper. IMPORTANT: Make sure you have the right kernel-devel file installed for whatever kernel you are using!!!

1. Now, create a directory in your home folder called Ndiswrapper. (mkdir Ndiswrapper)

2. Now, download the latest stable Ndiswrapper release from http://sourceforge.net/projects/ndiswrapper/
Note: if you have already tried to install it, just change to the directory where you unzipped it and run: make uninstall

3. Move the tar file into your Ndiswrapper directory and unzip it (tar -xzfv (filename))

4. Change to the new ndiswrapper directory and run: make distclean

5. If there are no errors, type:
make install KSRC=/usr/bin/kernels/<kernel version here>

6. Open the file /etc/modprobe.conf in a text editor (kwrite /etc/modprobe.conf, or gedit /etc/modprobe.conf) and add the line:
alias wlan0 ndiswrapper
to the top of the file. Make sure there is a blank line at the end of the file, save it, and exit the editor.

7. Now you need to find your window's driver (it is a .inf file). Copy this file into your ndiswrapper directory with all of the rest of the files.

8. Type: ndiswrapper -l
If there are any drivers listed, remove them with: ndiswrapper -e (driver name)
Now, type: ndiswrapper -i (driver name).inf

9. Do ndiswrapper -l and check to make sure that it lists your driver and says "driver installed, hardware present"

10. Type: depmod -a

11. Type: modprobe ndiswrapper

Now you should be ready to set up your wireless card
To do that:
1. ifconfig eth0 down (to make sure your comp is forced to use the wireless card)
2. ifconfig wlan0 up
3. iwconfig wlan0 key (key type, i.e. open) (key here)
4. iwconfig wlan0 essid (network name here)
5. dhclient wlan0

Troubleshooting:

1. I get the error message:

make -C driver install
make[1]: Entering directory `/home/stroh/Desktop/ndiswrapper-1.10/driver'
Can't find kernel sources in /lib/modules/2.6.15-1.2054_FC5/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/stroh/Desktop/ndiswrapper-1.10/driver'
make: *** [install] Error 2

when I try make install
Solution:
it is looking in the wrong place for your kernel sources. FC5 puts the kernel sources in /usr/src/kernels, so be sure and follow step 5 above.

2. It says I have an "invaid module format" when I type modprobe ndiswrapper
Solution:
You do not have the proper kernel-devel file installed for the kernel that you are using. Type uname -r to get your kernel version and go to http://people.redhat.com/davej/kerne...5/RPMS.kernel/
and download the corresponding kernel-devel file and install it.

3. I get the message "invalid driver" when I ndiswrapper -l
Solution:
You have the wrong driver. This is most common with the bcmwl5.inf driver. Be sure to note that there is a bcmwl5 and a bcmwl5a driver. My card takes the bcmwl5a.inf file to work correctly (Dell TruMobile 1450). Also, be sure that you aren't using a .ini file.

Good luck
89 comments

read full thread



Add LQ To Your Yahoo Add LQ To Your Google Add LQ To Your MSN Add LQ To Your Blog
All times are GMT -5. The time now is 07:19 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration