Thursday, March 12, 2009

Wi-fi in Linux

The most common method of getting the wireless card to work in linux is to use ndiswrapper to install the drivers made for windows. The reason that getting wireless to work in linux distros is so difficult is because the vendors do not manufacture drivers for linux and hence there are no out of the box solutions but only hacks. Initially I encountered a lot of errors while installing wireless drivers on linux. However, after the initial struggle, I managed to compile a series of simple steps that have to be followed in order to get the wireless driver in linux without much head-ache.This served as a reference to me for installing them again and again and again. In this post, I am going to share with you these steps. They are presented in a simple, abstract manner that is the same across all distros and manufacturers (systems). However, the concrete steps to be taken may vary among distros (say debian and open suse) and among manufacturers (say hp and dell). Installation Sequence:
  1. Pre-requisites
    1. Kernel Headers and gcc
      • In order to install any non-trivial software on your system, you need to have the kernel headers and a gcc compiler installed. Please refer to my earlier post for that.

    2. Ndiswrapper
      • First download the ndiswrapper source code, here
      • Now, you need to extract the downloaded file somewhere, say your home folder.

    3. Specific windows driver
      • Next you need to download the specific windows driver for your system. Please note that this is system specific. For example for hp the windows wireless driver can be found by searching, here

    4. Cab extract
      • Open the terminal and type
            $cabextract --help
        
        if you get something like command not found then you need to install cabextract (next step) else you can skip to the actual installation given below.
      • Download cabextract from here
      • Install cabextract on the command line by typing in the following commands in the terminal
            $sudo ./configure
            $sudo make 
            $sudo make install
        
      • In regular usage, just enter cabextract and the name of the cabinet or executable file you want to extract. cabextract will extract all files in all cabinets to the current directory, preserving any internal directory structure, file permissions and file dates. For further details see here.


  2. Actual Installation
    1. Type in following commands for installing ndiswrapper
          $cd ndiswrapper<version>
          $make uninstall
          $make
          $make install
      
    2. The following commands installs the actual wi-fi driver
          $cd (into the folder that contains the extracted .exe file)
          $ndiswrapper -i filename.inf
          $ndiswrapper -l
      
    3. Final steps before you see the blinkenlights ;-).
          $depmod -a (if no error then continue)
          $modprobe -r b44
          $modprobe -r b43
          $modprobe -r b43legacy
          $modprobe -r ssb
          $modprobe -r ndiswrapper
          $modprobe ndiswrapper
      
    4. Adding an alias for ndiswrapper
          $ndiswrapper -m
      

28 comments:

Anonymous said...

I have dell inspiron 1440 with broadcom 4315 chip. I have followed the above steps, but it didn't worked. I am at lost what to do. Please help.

AAK said...

Hi,
What operating system are you using? And did you get the windows driver for your system? Maybe you can get it from the dell web site.

Hadoop Langi said...

Guiltless Compasinate 123 hp com envy Thanks for sharing, Hagiographic  Complex 123 hp com envy Thanks for sharing, Handsome Component 123 hp com oj Thanks for sharing, Hard-headed Consequence 123 hp com ojp Thanks for sharing, Harmonious Considerate 123 hp com dj Thanks for sharing

Evelyn Jesse said...

https://setup-wireless-printer.com/canon-imagerunner-advance-c250i-wireless-driver-mac/

Maria Love said...

hp officejet 9120 wireless driver mac

matthew john said...

Energy

Magdelin Linda said...

123.hp.com

hachiro sezhi said...

sponsor a child in india
sponsor a child in india
sponsor a child in india
sponsor a child in india
sponsor a child in india

jemeschristopher said...

123.hp.com/setup 3830,hp officejet 5200 driver, hp envy photo 7858 driver, hp envy photo 7155 driver,hp printer driver

gethu mon said...

123.hp.com/setup 3700123.hp.com/setup 3700123.hp.com/setup 3700123.hp.com/setup 3700123.hp.com/setup 3700

hiners soot said...

hp deskjet f4492 driverhp deskjet f4492 driverhp deskjet f4492 driverhp deskjet f4492 driverhp deskjet f4492 driver

hp printer setup said...

123.hp.com/setup, 123.hp.com/setup

Kastel Dru said...

It is really very helpful for us and I have gathered some important information from this blog.
123.hp.com/ENVY5055

teasy said...

If you have any doubt for printer setup, driver download, wireless setup, usb setup and troubleshooting follow this link123hp.com/setup 6475

buy damaged cars said...
This comment has been removed by the author.
Jockrobert said...

memkeepers.me

Unknown said...

los angeles seo consultant
search engine optimization firm
seo consultants in los angeles

Anonymous said...

mmorpg oyunlar
İnstagram Takipçi Satın Al
tiktok jeton hilesi
Tiktok jeton hilesi
Saç ekim antalya
referans kimliği nedir
İNSTAGRAM TAKİPÇİ SATIN AL
Metin2 Pvp Serverler
instagram takipçi satın al

jasminOlivia said...

Being a machinery device, different technical faults could arise during print jobs. There are so many general printer issues that multiple users may be confronting continuously and so need quick support to fix them. So, if you are a printer user and confront any error problem while printing the file, at such a point in time, you refer to visit the site 123.hp.com and study the right troubleshooting method.

Anonymous said...

perde modelleri
sms onay
Türk Telekom Mobil Ödeme Bozdurma
Nft Nasil Alinir
ANKARA EVDEN EVE NAKLİYAT
TRAFİK SİGORTASI
DEDEKTÖR
Websitesi kurma
ASK ROMANLARİ

Anonymous said...

smm panel
smm panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
Beyazesyateknikservisi.com.tr
Servis
tiktok jeton hilesi

Anonymous said...

maltepe vestel klima servisi
kadıköy vestel klima servisi
maltepe bosch klima servisi
kadıköy arçelik klima servisi
ümraniye samsung klima servisi
kartal mitsubishi klima servisi
ümraniye mitsubishi klima servisi
beykoz vestel klima servisi
ataşehir bosch klima servisi

website kurma said...

Congratulations on your article, it was very helpful and successful. ae4a8899344b72223b959bc60cff468b
sms onay
numara onay
website kurma

define dedektörü said...

Thank you for your explanation, very good content. ac5504907864858bb377a3b9f3dd7ab3
altın dedektörü

sportsbet said...

Good content. You write beautiful things.
taksi
vbet
mrbahis
sportsbet
hacklink
mrbahis
hacklink
vbet
korsan taksi

betturkey said...

Success Write content success. Thanks.
betpark
kralbet
deneme bonusu
betmatik
canlı slot siteleri
canlı poker siteleri
kıbrıs bahis siteleri

deniz said...

mardin
erzincan
kars
antep
çorum
EGO07

sude said...

https://saglamproxy.com
metin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
6MJQ

Post a Comment