What to do when our wifi device only has drivers for Windows?

I have decided to address this issue since Wi-Fi networks are becoming quite popular in study centers and in many work centers, but what to do when the Wi-Fi device of our PC only has Windows drivers?

When this situation occurs to us, Linux users should not fear, there is an application called ndiswrapper that allows us to operate the device with the Windows driver.

The way to do it using Debian 6 and its derivatives is:

1: Install the ndiswrapper

$ sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9 wireless-tools

2: Copy the files .INF y .SYS that come on the CD in a folder on your PC for example / home / tu_user

3: Install the driver

$ sudo ndiswrapper -i nombre-driver.inf

Then verify that the driver has been installed correctly

$ ndiswrapper -l

Finally install the ndiswrapper driver

$ sudo modprobe ndiswrapper

If when executing this command it gives an error saying that it does not have the ndiswrapper module (it usually happens when we have the bigmem kernel installed, it happened to me recently)

$ sudo apt-get install module-assistant

$ sudo m-a a-i ndiswrapper

With this option we will recompile the module (or driver for the kernel that we are using).

Then

$ sudo modprobe ndiswrapper

To verify that the device is working properly

$ sudo iwconfig

and something like this should appear on the screen:

lo no wireless extensions. eth0 no wireless extensions. wlan0 IEEE 802.11bgn ESSID: off / any Mode: Managed Access Point: Not-Associated Tx-Power = 20 dBm Retry long limit: 7 RTS thr: off Fragment thr: off Encryption key: off Power Management: on pan0 no wireless extensions.

Now that everything is fine, we make the ndiswrapper driver load when the system starts.

$ sudo ndiswrapper -m

To activate the wireless interface

$ sudo ifconfig wlan0 up

The latter must be done every time if you start the system, unless we make it automatic.

NOTE: if you have Linux X64, the drivers must also be for X64 architecture

The ndiswrapper program is designed for drivers of wireless WIFI devices that can be USB or PCI but in some other documentation it says that the same can also be done for winmodems and other hardware, I have not tried that and I leave that field open to the readers.

And now to enjoy the wireless network, but you have to install the programs to detect networks, for example the Wifi Radar, but that is another article.

Article taken from GUTL.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Oscar said

    Will this solution work on Wheezy too?

  2.   Blaire pascal said

    Very good. Fortunately, my WiFi card has not given me so much pain, I only change NetworkManager for Wicd, unfortunately the drivers do not work optimally.

  3.   elynx said

    Thanks for the tip!

  4.   B1tBlu3 said

    Thank you, it will be useful!

  5.   elendilnarsil said

    Only once did I have to resort to this procedure, and it was with Mandriva 2011, and I was going hard.

  6.   Carlos-Xfce said

    My October 2006 Sony Vaio laptop has a switch for Wi-fi. It turns out that such a switch, on both Sony Vaio and Toshiba models, is a mess that is easily damaged and damages your Wi-fi. How it made me suffer!

    I recently purchased an adapter for Wifi, model DWA-125N from the D-Link brand. And the fucking switch disabled the network by default! I suffered a lot, but found how to fix it.

    Nowadays. Thanks to this Wi-fi adapter, I can enjoy an excellent wireless connection without using proprietary drivers, as the D-Link brand offers drivers for Linux. 🙂

  7.   truko22 said

    Interesting, saving the info when you need it 😀 thank you very much.

  8.   geek said

    I have also used this alternative before with a broadcom 4318 that are a bit conflicting in some distros but the drivers that it accepted had to be compatible with windows xp.

    Now that I know a little bit more, I just install firmware-b43-installer connecting via cable to download the package and voila!

  9.   rainbow_fly said

    Hmm, would this be valid in Arch too?

  10.   msx said

    But ... is there modern HW wifi that is not supported by the kernel?

  11.   Nila said

    Hello! Quick question that's entirely off topic. Do you know how to make your site mobile friendly? My site looks weird when viewing from my iphone. I'm trying to find a theme or plugin that might be able to fix this issue.

    If You Have Any recommendations, please share.

    Many thanks!

  12.   Carlos-Xfce said

    Elav, where are you? Since I don't have Facebook, Twitter, or Google+, this is the only way I could think of to contact you.

    Something weird just happened to me with Thunar: his eyelashes came out! But the weird thing is that for a while (last year) I have not updated anything on my Xubuntu 12.10. It feels really weird, especially when I click the mouse wheel.

    Could you do an article about it?

    Thank you very much and happy new year.

    1.    elav said

      Hahahaha, does Thunar really have eyelashes? Ohh !! I didn't know hahahaha .. Sorry my friend, I have to install a Virtual Machine to continue writing about Xfce because KDE trapped me in Conqi's cave and won't let me out ..

      1.    Carlos-Xfce said

        Hi. Thanks for responding, Elav. Hey, something weird is going on, my eyelashes don't come out on Thunar anymore. And something weirder still: in the Iron browser now it looks like the old YouTube interface while in Firefox I see the new one. I do not understand.

        Well, don't worry about what I asked of you. I imagine that KDE is bringing you a new and interesting world. I have not yet given it a chance because this laptop I use is from 2006 and with Xfce it works like a charm for me.

        Until next time! I hope to read you again soon in a new article.

        1.    elav said

          Well yes, everything is strange, right? 😕

  13.   Helvert Camacho said

    hi i'm new to linux but i get the following error when i go to install the driver $ sudo ndiswrapper -i net8192cu.inf
    couldn't open net8192cu.inf: The file or directory at /usr/sbin/ndiswrapper-1.9 line 162 does not exist.