Pour installer la carte wifi atheros avec madwifi,il faut d'abord télécharger la bonne version de madwifi car une autre version ne fonctionnerait pas forcment. Tapez cette commande dans une console:
svn checkout http://svn.madwifi-project.org/madwifi/trunk madwifi
Rendez-vous dans le repertoire ainsi créé:
cd madwifiCompilez le programme avec ces commandes:
make clean make
L'installation se fait avec ces commandes:
su make install modprobe ath-pci
Tapez cette commande pour connaître le nom de l'interface wifi:
su iwconfigil faut éditer les fichiers /etc/rc.d/rc.inet1.conf et /etc/rc.d/rc.wireless.conf, en super-utilisateur:
su password:tapez le mot de asse root pico /etc/rc.d/rc.inet1.confModifiez les ligne corespondantes comme ceci:
IFNAME[4]="ath0" (le nom de l'interface wifi) IPADDR[4]="" NETMASK[4]="" USE_DHCP[4]="yes" #DHCP_HOSTNAME[4]="icculus-wireless" #DHCP_KEEPRESOLV[4]="yes" #DHCP_KEEPNTP[4]="yes" #DHCP_KEEPGW[4]="yes" #DHCP_IPADDR[4]="" WLAN_ESSID[4]=le nom de votre réseau wifi (ESSID) WLAN_MODE[4]=Managed WLAN_RATE[4]="54M auto" WLAN_CHANNEL[4]="auto" WLAN_KEY[4]="votre clé wep"ouvrez le fichier /etc/rc.d/rc.wireless.conf
$ su password: tapez le mot de passe root # pico /etc/rc.d/rc.wireless.confajouter un dièse (#) au début des lignes suivantes:
## NOTE : Comment out the following five lines to activate the samples below ... ## --------- START SECTION TO REMOVE ----------- ## Pick up any Access Point, should work on most 802.11 cards #*) # INFO="Any ESSID" # ESSID="any" # ;; ## ---------- END SECTION TO REMOVE ------------modifiez la dernière section du fichier:
# Generic example (describe all possible settings) *) INFO="Fill with your own settings..." # ESSID (extended network name) : My Network, any ESSID="le nom de votre réseau" # NWID/Domain (cell identifier) : 89AB, 100, off NWID="" # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto MODE="Managed" # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency) FREQ="" CHANNEL="" # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm) SENS="" # Bit rate : auto, 1M, 11M RATE="" # Encryption key : 4567-89AB-CD, s:password KEY="votre clé wep" # RTS threshold : off, 500 RTS="" # Fragmentation threshold : off, 1000 FRAG="" # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB IWCONFIG="" # iwspy parameters : + 01:23:45:67:89:AB IWSPY="" # iwpriv parameters : set_port 2, set_histo 50 60 IWPRIV=""activez les services réseau et wifi avec ces commandes:
su cd /etc/rc.d chmod a+x rc.inet1 rc.inet2 rc.inetd rc.wireless
Pour une connexion immédiate, tapez ces commandes:
su etc/rc.d/rc.inet1 restart
ajoutez "modprobe ath-pci" au fichier /etc/rc.d/rc.modules
echo "modprobe ath-pci">>/etc/rc.d/rc.modulesRevenir à l'accueil contact