个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/WifiDocs/Device/NetgearMA111}} {{Languages|UbuntuHelp:WifiDocs/Device/NetgearMA111}} === Purpose === This howto will setup wireless networking u...)
 
第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}}
 
 
 
=== 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]] 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.  
 
 
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.  It cannot be configured like other wireless devices and must be done "by hand".
 
 
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 ===
 
 
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  
 
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  
 
 
<pre><nowiki>
 
<pre><nowiki>
 
$ lsmod | grep prism
 
$ lsmod | grep prism
第21行: 第14行:
 
</nowiki></pre>   
 
</nowiki></pre>   
 
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.
 
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
 
You can try to manually load the driver by issuing the following command
 
<pre><nowiki>
 
<pre><nowiki>
 
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 (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):
 
<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 (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
 
 
<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 (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.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install linux-wlan-ng
 
sudo apt-get install linux-wlan-ng
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Edit interfaces file ===
 
=== 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):
 
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):
 
<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
第58行: 第43行:
 
wlan_ng_authtype opensystem
 
wlan_ng_authtype opensystem
 
</nowiki></pre>
 
</nowiki></pre>
 
 
See screenshot:
 
See screenshot:
 
https://help.ubuntu.com/community/WifiDocs/Device/NetgearMA111?action=AttachFile&do=get&target=shot.png
 
https://help.ubuntu.com/community/WifiDocs/Device/NetgearMA111?action=AttachFile&do=get&target=shot.png
 
 
 
=== Ready to go ===
 
=== 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:
 
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:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ifup wlan0
 
sudo ifup wlan0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
This should ensure that you are connected to the network.
 
This should ensure that you are connected to the network.
 
 
=== Links ===
 
=== Links ===
 
* WirelessTroubleshootingGuide
 
* WirelessTroubleshootingGuide

2007年11月30日 (五) 22:19的版本

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. 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". 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 (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):

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 (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

sudo apt-cdrom add

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.

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