个人工具

“UbuntuHelp:WifiDocs/Device/NetgearMA111”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的4个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/WifiDocs/Device/NetgearMA111}}
 
{{From|https://help.ubuntu.com/community/WifiDocs/Device/NetgearMA111}}
 
{{Languages|UbuntuHelp:WifiDocs/Device/NetgearMA111}}
 
{{Languages|UbuntuHelp:WifiDocs/Device/NetgearMA111}}
 +
''Warning: This page is mostly obsolete, see [[UbuntuHelp:WifiDocs/Driver/prism2_usb|WifiDocs/Driver/prism2_usb]] instead.''
 
=== Purpose ===
 
=== Purpose ===
This howto will setup wireless networking using the Netgear MA111 wireless USB adapter or many other wireless USB adapters which use the [[UbuntuHelp:WifiDocs/Driver/prism2_usb]] driver. This card is now pretty easy to setup on Ubuntu 5.10 (Breezy) and 6.06 (Dapper), as the driver module is present in the kernel.  
+
This howto will setup wireless networking using the Netgear MA111 wireless USB adapter or many other wireless USB adapters which use the [[UbuntuHelp:WifiDocs/Driver/prism2_usb|WifiDocs/Driver/prism2_usb]] driver. This card is pretty easy to setup since Ubuntu 5.10, as the driver module is present in the kernel.  
The Prism2 chipset was one of the first wireless devices to work in linux.  Unfortunately, that means that it never became part of the wireless tools infrastructure that was being developed at the same time and does not work in the same way as all the other wireless cards.  It cannot be configured like other wireless devices and must be done "by hand".
+
The Prism2 chipset was one of the first wireless devices to work in linux.  Unfortunately, that means that it never became part of the wireless tools infrastructure that was being developed at the same time and does not work in the same way as all the other wireless cards.
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconNote.png There are apparently two versions of the card floating around, this method will work only with the v1 (or no version number) of the Netgear MA111 card. See the [http://kbserver.netgear.com/products/MA111.asp vendor product page].
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconNote.png There are apparently two versions of the card floating around, this method will work only with the v1 (or no version number) of the Netgear MA111 card. See the [http://kbserver.netgear.com/products/MA111.asp vendor product page].
 
=== Check driver is loaded ===
 
=== Check driver is loaded ===
第18行: 第19行:
 
sudo modprobe prism2_usb
 
sudo modprobe prism2_usb
 
</nowiki></pre>
 
</nowiki></pre>
If you do indeed have a prism2_usb device that is not automatically enabled, alias the wlan0 to the prism2_usb device. In Ubuntu 5.10 (Breezy), do this by adding the following to /etc/modprobe.conf. In Ubuntu 6.06 (Dapper) do this by adding the following to /etc/modprobe.d/wlan (only if needed):
+
If you do indeed have a prism2_usb device that is not automatically enabled, alias the wlan0 to the prism2_usb device. In Ubuntu 5.10, do this by adding the following to /etc/modprobe.conf. In Ubuntu 6.06, do this by adding the following to /etc/modprobe.d/wlan (only if needed):
 
<pre><nowiki>
 
<pre><nowiki>
 
alias wlan0 prism2_usb
 
alias wlan0 prism2_usb
 
</nowiki></pre>
 
</nowiki></pre>
 
=== Install needed package ===
 
=== Install needed package ===
Since the driver does not support wireless extensions completely, we have to install the following package. You will find this package on the install cd. If you installed from the Ubuntu 6.06 (Dapper) Desktop (live) cd, you will have to add the repository on that cd to your package manager's list. It is as simple as inserting the cd and clicking on the box that appears on your ubuntu desktop to do this. Alternatively, from the command line, you can run
+
Since the driver does not support wireless extensions completely, we have to install the following package. You will find this package on the install cd. If you installed from the Ubuntu 6.06 Desktop (live) CD, you will have to add the repository on that CD to your package manager's list. It is as simple as inserting the CD and clicking on the box that appears on your Ubuntu desktop to do this. Alternatively, from the command line, you can run
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-cdrom add
 
sudo apt-cdrom add
 
</nowiki></pre>  
 
</nowiki></pre>  
If you installed your ubuntu system from the Ubuntu 6.06 (Dapper) alternate (install) cd, these packages are already part of your repository list, and you do not have to add them to your list again.
+
If you installed your Ubuntu system from the Ubuntu 6.06 Alternate (install) CD, these packages are already part of your repository list, and you do not have to add them to your list again.
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install linux-wlan-ng
 
sudo apt-get install linux-wlan-ng
第35行: 第36行:
 
<pre><nowiki>
 
<pre><nowiki>
 
auto wlan0 # Remove or comment out if you don't want it to start at boot
 
auto wlan0 # Remove or comment out if you don't want it to start at boot
 +
 
iface wlan0 inet dhcp # If you want dhcp for wireless. Otherwise replace "dhcp" by "static" and see "man interfaces"
 
iface wlan0 inet dhcp # If you want dhcp for wireless. Otherwise replace "dhcp" by "static" and see "man interfaces"
wireless_mode managed
+
    wireless_mode managed
wireless_essid your_essid
+
    wireless_essid your_essid
 
# Comment out the lines below if you don't have wireless encryption. See /usr/share/doc/linux-wlan-ng/README.Debian
 
# Comment out the lines below if you don't have wireless encryption. See /usr/share/doc/linux-wlan-ng/README.Debian
wireless_enc on
+
    wireless_enc on
wlan_ng_key0 xx:xx:xx:xx:xx
+
    wlan_ng_key0 xx:xx:xx:xx:xx
wlan_ng_authtype opensystem
+
    wlan_ng_authtype opensystem
 
</nowiki></pre>
 
</nowiki></pre>
 
See screenshot:
 
See screenshot:
第52行: 第54行:
 
This should ensure that you are connected to the network.
 
This should ensure that you are connected to the network.
 
=== Links ===
 
=== Links ===
* WirelessTroubleshootingGuide
+
* [[UbuntuHelp:WifiDocs/WiFiTroubleshooting|WifiDocs/WiFiTroubleshooting]]
* [[UbuntuHelp:WifiDocs/Driver/prism2_usb]] has a lot more info on this driver
+
* [[UbuntuHelp:WifiDocs/Driver/prism2_usb|WifiDocs/Driver/prism2_usb]] has a lot more and updated info on this driver
 
----
 
----
[[category:CategoryDocumentation]] [[category:CategoryNetworking]]
+
[[category:CategoryHardware]] [[category:CategoryNetworking]] [[category:CategoryWireless]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月20日 (一) 01:11的最新版本

Warning: This page is mostly obsolete, see WifiDocs/Driver/prism2_usb instead.

Purpose

This howto will setup wireless networking using the Netgear MA111 wireless USB adapter or many other wireless USB adapters which use the WifiDocs/Driver/prism2_usb driver. This card is pretty easy to setup since Ubuntu 5.10, as the driver module is present in the kernel. The Prism2 chipset was one of the first wireless devices to work in linux. Unfortunately, that means that it never became part of the wireless tools infrastructure that was being developed at the same time and does not work in the same way as all the other wireless cards. IconsPage?action=AttachFile&do=get&target=IconNote.png There are apparently two versions of the card floating around, this method will work only with the v1 (or no version number) of the Netgear MA111 card. See the vendor product page.

Check driver is loaded

First, plug in your MA111 USB wireless card and see if it is detected and the appropriate modules are loaded. Open up a terminal and execute the following command

$ lsmod | grep prism
prism2_usb    xxxxx           0
ieee80211     xxxxx           1 prism2_usb
usbcore       xxxxx           3 prism2_usb,ohci_hcd

If you see an output similiar to this, your card has been detected and appropriate modules loaded. If not, you probably have a card with a different chipset than prism2_usb. You can try to manually load the driver by issuing the following command

sudo modprobe prism2_usb

If you do indeed have a prism2_usb device that is not automatically enabled, alias the wlan0 to the prism2_usb device. In Ubuntu 5.10, do this by adding the following to /etc/modprobe.conf. In Ubuntu 6.06, do this by adding the following to /etc/modprobe.d/wlan (only if needed):

alias wlan0 prism2_usb

Install needed package

Since the driver does not support wireless extensions completely, we have to install the following package. You will find this package on the install cd. If you installed from the Ubuntu 6.06 Desktop (live) CD, you will have to add the repository on that CD to your package manager's list. It is as simple as inserting the CD and clicking on the box that appears on your Ubuntu desktop to do this. Alternatively, from the command line, you can run

sudo apt-cdrom add

If you installed your Ubuntu system from the Ubuntu 6.06 Alternate (install) CD, these packages are already part of your repository list, and you do not have to add them to your list again.

sudo apt-get install linux-wlan-ng

Edit interfaces file

Open up the file /etc/network/interfaces in your favorite text editor. Add the following lines to it (replace your_essid and xx:xx:xx:xx:xx with your network name and WEP key):

auto wlan0 # Remove or comment out if you don't want it to start at boot

iface wlan0 inet dhcp # If you want dhcp for wireless. Otherwise replace "dhcp" by "static" and see "man interfaces"
     wireless_mode managed
     wireless_essid your_essid
# Comment out the lines below if you don't have wireless encryption. See /usr/share/doc/linux-wlan-ng/README.Debian
     wireless_enc on
     wlan_ng_key0 xx:xx:xx:xx:xx
     wlan_ng_authtype opensystem

See screenshot: NetgearMA111?action=AttachFile&do=get&target=shot.png

Ready to go

Unplug/replug your wireless card or reboot your system. After it boots up, check if your wireless works. The network connection should be made automatically every time you insert the device. You may try to enable the connection by hand by issuing the following commands:

sudo ifup wlan0

This should ensure that you are connected to the network.

Links