How to install any Wifi on GNU/Linux

Device ManagerHas it ever happened to you that you went to install Ubuntu for example and when you started to try it out, you realised that does not recognise some thingsHere I bring you a tutorial so that you can know how to install correctlyat least, almost any Wifi card.

For the lazy ones, this is not the first option, first of all look if your drivers exist for Linux (with this you will avoid unnecessary bugs) and if finally you don't find them, then use this trick, which for the case is just as good.

Basically the function of this trick, is clearly to make work a Wifi card that doesn't have drivers in Linux, but how, is very easy, what it does is to take the Windows drivers and change them to make them work in Linux.

The trick is as simple as that:

1- Installation of ndiswrapper

From the repositories...

The installation of this program is quite simple, since it can be found in the repositories of almost all distributions. In Ubuntu or Debian, just run the command:

# aptitude install ndiswrapper

If you use Arch Linux:

# pacman -S ndiswrapper

From the sources...

If you wish, you can install it from source code. Just download it from the official website, unzip it, compile it and install it:

# tar zvfx ndiswrapper-1.53.tar.gz
# cd ndiswrapper-1.53/
# make
# make install

2- Use of ndiswrapper...

Since ndiswrapper you need the Windows drivers to install them on Linux, you need to know where they are located (if they are in the Windows partition) or download them. Once we have the drivers, we need the file whose extension is .inf. Once identified we execute the command:

# ndiswrapper -i ARCHIVO.inf

Once this is done, the driver is installed and we only need to create an alias to load the module:

# ndiswrapper -m
# modprobe ndiswrapper
Please note! Default ndiswrapper creates the file /etc/modprobe.d/ndiswrapper which contains this: alias wlan0 ndiswrapper. Note that it says wlan0So, if you already have a wireless network card it would give you problems. So, if you have more than one card you should change the file and put something like this: alias wlan1 ndiswrapper.

Once you have done this, you will be able to check what drivers you have installed and if the card is connected, using the command:

# ndiswrapper -l

So you get something like this:

wusb54g : driver installed
device (5041:2235) present (alternate driver: p54usb)

If you want to remove the driver, simply identify the driver name and run ndiswrapper with the -r option. For example, to remove the driver in the above example, the command would be:

# ndiswrapper -r wusb54g

3- ndisgtkgraphical interface for ndiswrapper

If you are not very console friendly, then you should try to learn... in any case, and while you are studying, you can use ndisgtka fairly simple tool written in Python (pygtk), with which you can easily manage the drivers of your Wifi cards.

Its installation on Ubuntu (because it is not in the Arch Linux repositories) is:

# aptitude install ndisgtk

To use it you go to System -> Administration -> Driver for Windows wireless networks, and you'll see something like this:

To install a driver, click on the button Install new driverand select the file .inf.

This is all set up and we can connect to our favourite wireless connection without any problems.

0 thoughts on “Como instalar cualquier Wifi en GNU/Linux”

  1. HOLA, TENGO UN PROBLEMA A LA HORA DE CONTECTAR UN PEN VODAFONE DE INTERNET EN EL ORDENADOR DEL COLE PUES ME PIDE LA CLAVE PARA DESBLOQUEAR EL ANILLO PREDETERMIDO Y EN EL SERVICIO DE VODAFONE DICEN QUE NO PUEDEN AYUDARME PORQUE EL SISTEMA OPERATIVO DEL PORTATIL ES LINUX Y ES MUY COMPLICADO QUE CONSULTE A UN INFORMATICO. IF YOU KNOW HOW TO SOLVE THIS I WOULD BE GRATEFUL IF YOU COULD HELP ME AS I CAN'T CONSULT ANYTHING ON THE INTERNET TO BE ABLE TO DO MY HOMEWORK. THANK YOU

Leave a Comment

Your email address will not be published.

en_GBEnglish
Scroll to Top