个人工具

“UbuntuHelp:Router/Madwifi”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:Router/Madwifi}}
 
{{Languages|UbuntuHelp:Router/Madwifi}}
 
~+''This guide is only applicable for '''server''' installations of Ubuntu. If you are running a '''desktop''' installation of Ubuntu, try [[UbuntuHelp:WifiDocs/Driver/Madwifi]] and the [http://madwifi.org/wiki/ MadWifi wiki] for more information.''+~
 
~+''This guide is only applicable for '''server''' installations of Ubuntu. If you are running a '''desktop''' installation of Ubuntu, try [[UbuntuHelp:WifiDocs/Driver/Madwifi]] and the [http://madwifi.org/wiki/ MadWifi wiki] for more information.''+~
 
 
== Checking For Atheros Chipsets ==
 
== Checking For Atheros Chipsets ==
 
 
First, verify that your wireless network adapter requires the madwifi device drivers.
 
First, verify that your wireless network adapter requires the madwifi device drivers.
 
 
Issue the following command:
 
Issue the following command:
 
<pre><nowiki>sudo lspci | grep Atheros
 
<pre><nowiki>sudo lspci | grep Atheros
第14行: 第11行:
 
</nowiki></pre>
 
</nowiki></pre>
 
If there is no output, try looking through [http://madwifi.org/wiki/Compatibility] to see if your network adapter is supported.
 
If there is no output, try looking through [http://madwifi.org/wiki/Compatibility] to see if your network adapter is supported.
 
 
== Installation ==
 
== Installation ==
 
 
Navigate to [http://madwifi.org/] and download and extract the latest version of the madwifi drivers (0.9.3.1 at the time of this writing)
 
Navigate to [http://madwifi.org/] and download and extract the latest version of the madwifi drivers (0.9.3.1 at the time of this writing)
 
<pre><nowiki>wget http://umn.dl.sourceforge.net/sourceforge/madwifi/madwifi-0.9.3.1.tar.gz
 
<pre><nowiki>wget http://umn.dl.sourceforge.net/sourceforge/madwifi/madwifi-0.9.3.1.tar.gz
 
tar -xvzf madwifi-0.9.3.1.tar.gz
 
tar -xvzf madwifi-0.9.3.1.tar.gz
 
cd madwifi-0.9.3.1</nowiki></pre>
 
cd madwifi-0.9.3.1</nowiki></pre>
 
 
Download the necessary tools, compile and install the module
 
Download the necessary tools, compile and install the module
 
<pre><nowiki>sudo apt-get install build-essential linux-headers-server
 
<pre><nowiki>sudo apt-get install build-essential linux-headers-server
 
make
 
make
 
sudo make install</nowiki></pre>
 
sudo make install</nowiki></pre>
 
 
<u>'''NOTE'''</u>: If you are plan on using this wireless network adapter in "master" mode (i. e. for the purposes of setting up a wireless router), create the file `/etc/modprobe.d/madwifi` and add the following to it:
 
<u>'''NOTE'''</u>: If you are plan on using this wireless network adapter in "master" mode (i. e. for the purposes of setting up a wireless router), create the file `/etc/modprobe.d/madwifi` and add the following to it:
 
<pre><nowiki>options ath_pci autocreate=ap
 
<pre><nowiki>options ath_pci autocreate=ap
 
</nowiki></pre>
 
</nowiki></pre>
 
This will tell madwifi to set your wireless device (ath0) to master mode.
 
This will tell madwifi to set your wireless device (ath0) to master mode.
 
 
Finally, load the module
 
Finally, load the module
 
<pre><nowiki>sudo modprobe ath_pci
 
<pre><nowiki>sudo modprobe ath_pci
 
</nowiki></pre>
 
</nowiki></pre>
 
 
== Sources ==
 
== Sources ==
* [http://madwifi.org/wiki/UserDocs/FirstTimeHowTo MadWifi 'First Time User' HOWTO]
+
# [http://madwifi.org/wiki/UserDocs/FirstTimeHowTo MadWifi 'First Time User' HOWTO]
* [http://madwifi.org/wiki/UserDocs/Distro/Ubuntu MadWifi Ubuntu Notes]
+
# [http://madwifi.org/wiki/UserDocs/Distro/Ubuntu MadWifi Ubuntu Notes]
* [http://madwifi.org/wiki/UserDocs/autocreate VAP Autocreation Upon modprobe ath_pci]
+
# [http://madwifi.org/wiki/UserDocs/autocreate VAP Autocreation Upon modprobe ath_pci]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 21:20的版本

~+This guide is only applicable for server installations of Ubuntu. If you are running a desktop installation of Ubuntu, try UbuntuHelp:WifiDocs/Driver/Madwifi and the MadWifi wiki for more information.+~

Checking For Atheros Chipsets

First, verify that your wireless network adapter requires the madwifi device drivers. Issue the following command:

sudo lspci | grep Atheros

If there is any output similar to that below, you should definitely install madwifi.

00:0e.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)

If there is no output, try looking through [1] to see if your network adapter is supported.

Installation

Navigate to [2] and download and extract the latest version of the madwifi drivers (0.9.3.1 at the time of this writing)

wget http://umn.dl.sourceforge.net/sourceforge/madwifi/madwifi-0.9.3.1.tar.gz
tar -xvzf madwifi-0.9.3.1.tar.gz
cd madwifi-0.9.3.1

Download the necessary tools, compile and install the module

sudo apt-get install build-essential linux-headers-server
make
sudo make install

NOTE: If you are plan on using this wireless network adapter in "master" mode (i. e. for the purposes of setting up a wireless router), create the file `/etc/modprobe.d/madwifi` and add the following to it:

options ath_pci autocreate=ap

This will tell madwifi to set your wireless device (ath0) to master mode. Finally, load the module

sudo modprobe ath_pci

Sources

  1. MadWifi 'First Time User' HOWTO
  2. MadWifi Ubuntu Notes
  3. VAP Autocreation Upon modprobe ath_pci