jump to navigation

Ndiswrapper in Fedora Core 5 May 8, 2006

Posted by chandanthewhiz in wireless networks.
trackback

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/kernels/Fedora/FC5/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/

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

Comments»

1. aerhtrytuy - August 9, 2006

Here are some links that I believe will be interested

2. Etien - December 12, 2007

I follow steps 1-5 as listed above to setup my wireless card, and the connection seems to be there, however, my laptop crashes as soon as I attempt to browse.

I noticed that when I run dhclient wlan0 there are a couple of lines specifying that “configuration for wlan0 not found.” however, it does obtain an IP address. As much as I searched for a fix to this problem, I have not been able to find a solution. Any ideas? Thanks!

Etien

3. Chandan - January 5, 2008

If you get configuration for wlan0 not found or device wlan0 does not exist then try the following steps –

1.
#cd /etc/sysconfig/network-scripts

2.
Create a file ifcfg-wlan0, i.e,
#cat > ifcfg-wlan0
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
WIRELESS_MODE=Managed
WIRELESS_ESSID=any
NEEDHOSTNAME=yes
(Cntl D to end file)

3.
#chmod 775 ./ifcfg-wlan0

This should give the file appropiate permissions and it should run when you boot the machine hopefully showing
interface wlan0 OK
Good luck!!! Wireless does work with a little perseverance.

Hope This was helpful. Sorry to Answer a bit late, didnt come online for a while. Planning to update my blog with new stuff soon.

Regards,
Chandan