Wifi atheros card on linux
Most of laptops have the atheros wifi network adapter, but when you install some versions of linux like debian, the driver is not sometimes installed automatically.
These steps will help you for installing the wifi atheros driver:
The deposits
First of all you will have open the root command in admin mode
In a first step is to add the repositories in:
/etc/apt/source.list
nano /etc/apt/sources.list
For Debian 4.0 Etch
Deb http://security.debian.org/ etch/updates main contrib.
deb-src http://security.debian.org/ etch/updates main contrib
deb ftp://ftp.fr.debian.org/debian/ etch main non-free contrib
deb-src ftp://ftp.fr.debian.org/debian/ etch main non-free contrib
deb ftp://debian.marlow.dk/ sid madwifi
deb-src ftp://debian.marlow.dk/ sid madwifi
For Debian 5.0 Lenny
deb http://ftp.fr.debian.org/debian/ lenny main
deb-src http://ftp.fr.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main
deb http://ftp.fr.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ lenny main contrib non-free
Then recharge:
aptitude update
Linux headers
Installing the linux headers, to know the your version type:
uname –r
This is an example:
debian:~# uname -r
2.6.18-5-686
debian:~# aptitude install linux-headers-2.6.18-5-686
Madwifi tools
Then you have to install madwifi:
aptitude install madwifi-tools madwifi-source
Extract the downloaded files in
/usr/src
cd /usr/src
tar xvjf madwifi.tar.bz2
or
tar xzvf madwifi.tar.gz
You can delete this archive:
rm -vfR madwifi.tar.bz2
or
rm -vfR madwifi.tar.gz
To install madwifi:
/usr/src/local/madwifi
cd /usr/src/modules/madwifi
make
make install
Observation
By default, debian do not have the
gcc pack. T
o install it type:
aptitude install gcc
Loading the Modules
Y
ou just have to load these modules:
update-modules
modprobe ath_pci
Verification
To verify if the wifi card is properly installed type:
Iwconfig
Then you will notice:
debian:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
sit0 no wireless extensions.
wifi0 no wireless extensions.
ath0 IEEE 802.11g ESSID:""
Mode:Managed Frequency:2.457 GHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:9 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
All you have to do now is to configure your internet connection.