个人工具

“UbuntuHelp:WifiDocs/Driver/RalinkRT2500”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示2个用户的7个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/WifiDocs/Driver/RalinkRT2500}}
 
{{From|https://help.ubuntu.com/community/WifiDocs/Driver/RalinkRT2500}}
 
{{Languages|UbuntuHelp:WifiDocs/Driver/RalinkRT2500}}
 
{{Languages|UbuntuHelp:WifiDocs/Driver/RalinkRT2500}}
 
+
''' WARNING!'''
== WARNING! ==
+
'''In Ubuntu 7.10 (Gutsy Gibbon) everything should work out of the box, using newer built-in driver, so the information posted below are not relevant to this version. There are many reports about WPA connections not working, though. [http://ubuntuforums.org/showpost.php?p=3595458&postcount=6 This post] describes how to make them work by going back to the legacy serialmonkey driver. The issue was reported in the [https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/134962 bug #134962].'''
 
+
== About the guide ==
The /etc/network/interface changes described on this page will break wifi in [[UbuntuWiki:FeistyUpgrades|Feisty]]. See [https://lists.ubuntu.com/archives/ubuntu-devel/2007-April/023537.html this post] for more details.
+
 
+
--------
+
 
+
 
+
 
+
 
This guide explains how to set up and configure a wireless network card based on the RT2500 chipset, which is manufactured by Ralink and incorporated in many wireless network cards.
 
This guide explains how to set up and configure a wireless network card based on the RT2500 chipset, which is manufactured by Ralink and incorporated in many wireless network cards.
 
 
You will need for this guide; your access point's ESSID (case-sensitive); the key (case-sensitive) used to access the access-point; the encryption used for the key.
 
You will need for this guide; your access point's ESSID (case-sensitive); the key (case-sensitive) used to access the access-point; the encryption used for the key.
 
 
== Driver Information ==
 
== Driver Information ==
 
If you are unsure whether your wireless card is based on the RT2500 chipset, visit [http://ralink.rapla.net this page] for a list of cards based on the chipset.
 
If you are unsure whether your wireless card is based on the RT2500 chipset, visit [http://ralink.rapla.net this page] for a list of cards based on the chipset.
 
+
Since Ubuntu 5.10 (Breezy Badger) the rt2500 driver is installed out of the box, so your wireless card should be visible as "ra0" if you open the Networking utility found under the '''System->Administration->Networking''' menu. If your wireless network uses no encryption, just click "Properties", enter your wireless access point's ESSID, and click OK. Once you click the "Activate" button, you should be connected to your wireless network [http://custom-paper-writing.com/editing-services service essays]. If your network requires [[UbuntuHelp:[WEP|WEP]]] or [[UbuntuHelp:[WPA|WPA]]] encryption, continue to the appropriate section. If you would like to have Ubuntu automatically connect to your wireless network when your computer starts up, follow [[UbuntuHelp:[auto|these]]] steps.
Since Ubuntu 5.10 (Breezy Badger) the rt2500 driver is installed out of the box, so your wireless card should be visible as "ra0" if you open the Networking utility found under the '''System->Administration->Networking''' menu. If your wireless network uses no encryption, just click "Properties", enter your wireless access point's ESSID, and click OK. Once you click the "Activate" button, you should be connected to your wireless network. If your network requires [[WEP WEP]] or [[WPA WPA]] encryption, continue to the appropriate section. If you would like to have Ubuntu automatically connect to your wireless network when your computer starts up, follow [[auto these]] steps.
+
If you run an older version of Ubuntu, or the instruction on this page for setting up WPA or WEP encryptions don't work for you, then you may have to compile the driver and/or one of the RaConfig or RutilT utilities as described [[UbuntuHelp:[compile|here]]].
 
+
* Driver Name: rt2500
If you run an older version of Ubuntu, or the instruction on this page for setting up WPA or WEP encryptions don't work for you, then you may have to compile the driver and/or one of the RaConfig or RutilT utilities as described [[compile here]].
+
* Module Name: rt2500.ko
 
+
 
+
** Driver Name: rt2500
+
** Module Name: rt2500.ko
+
 
+
 
+
 
+
 
== Support Channels ==
 
== Support Channels ==
 
* [http://forums.fedoraforum.org/showthread.php?t=60081&page=3 FedoraForums discussion of WPA] on which this description is based
 
* [http://forums.fedoraforum.org/showthread.php?t=60081&page=3 FedoraForums discussion of WPA] on which this description is based
第33行: 第18行:
 
* [http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page Rt2x00 wiki]
 
* [http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page Rt2x00 wiki]
 
* [http://ralink.rapla.net/ List of wireless cards based on Rt2500]
 
* [http://ralink.rapla.net/ List of wireless cards based on Rt2500]
 +
* [http://essaywritingservices.org/custom-essay-writing.php essay writing companies]
 
* Someone who has found [http://www.livejournal.com/~stinerman/81697.html problems with the native WPA support]
 
* Someone who has found [http://www.livejournal.com/~stinerman/81697.html problems with the native WPA support]
 
* [http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access Wikipedia on WPA]
 
* [http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access Wikipedia on WPA]
 
+
<<Anchor(WEP)>>
[[Anchor(WEP)]]
+
 
=== WEP info ===
 
=== WEP info ===
 
If your wireless network is not protected by the WPA encryption method (i.e. if it's open or protected by the WEP encryption method) follow these steps:
 
If your wireless network is not protected by the WPA encryption method (i.e. if it's open or protected by the WEP encryption method) follow these steps:
 
 
1. Plug in your card.  
 
1. Plug in your card.  
 
 
2. Open '''System->Administration->Networking''' in the menu.
 
2. Open '''System->Administration->Networking''' in the menu.
 
 
3. Click "Properties"
 
3. Click "Properties"
 
 
4. Enter your wireless access point's ESSID and WEP Key (if appropriate), and click OK.
 
4. Enter your wireless access point's ESSID and WEP Key (if appropriate), and click OK.
 
 
5. Click the "Activate" button. You should now be connected to your wireless network!
 
5. Click the "Activate" button. You should now be connected to your wireless network!
  
[[Anchor(auto)]]
+
<<Anchor(auto)>>
 
In the future, all you'll need to do is click the Activate button to connect to the wireless network. If you would like to have Ubuntu automatically connect to your wireless network when your computer starts up, follow these steps:
 
In the future, all you'll need to do is click the Activate button to connect to the wireless network. If you would like to have Ubuntu automatically connect to your wireless network when your computer starts up, follow these steps:
 
 
1. Open a "Terminal" window.
 
1. Open a "Terminal" window.
 
 
2. Type:  
 
2. Type:  
  
<pre><nowiki>gksudo gedit /etc/network/interfaces
+
<pre><nowiki>
 +
gksudo gedit /etc/network/interfaces
 
</nowiki></pre>
 
</nowiki></pre>
 
 
3. In the text editor window that opened search for a stanza beginning with "iface ra0".
 
3. In the text editor window that opened search for a stanza beginning with "iface ra0".
 
 
4. Add the following line to the beginning of the stanza:
 
4. Add the following line to the beginning of the stanza:
  
<pre><nowiki>auto ra0
+
<pre><nowiki>
 +
auto ra0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
5. Save the file and close the editor.
 
5. Save the file and close the editor.
  
[[Anchor(WPA)]]
+
<<Anchor(WPA)>>
 
=== WPA info ===
 
=== WPA info ===
 
If your wireless network uses the WPA encryption method, follow these steps:
 
If your wireless network uses the WPA encryption method, follow these steps:
 
 
1. Open a "Terminal" window.
 
1. Open a "Terminal" window.
 
 
2. Type:  
 
2. Type:  
  
<pre><nowiki>gksudo gedit /etc/network/interfaces
+
<pre><nowiki>
 +
gksudo gedit /etc/network/interfaces
 
</nowiki></pre>
 
</nowiki></pre>
 
 
3. In the text editor window that opened add the following stanza:  
 
3. In the text editor window that opened add the following stanza:  
  
<pre><nowiki>iface ra0 inet dhcp
+
<pre><nowiki>
 +
iface ra0 inet dhcp
 
         pre-up ifconfig ra0 up
 
         pre-up ifconfig ra0 up
 
         pre-up ifconfig ra0 down
 
         pre-up ifconfig ra0 down
第93行: 第69行:
 
         pre-up iwpriv ra0 set WPAPSK="A shared key"
 
         pre-up iwpriv ra0 set WPAPSK="A shared key"
 
         pre-up ifconfig ra0 up</nowiki></pre>
 
         pre-up ifconfig ra0 up</nowiki></pre>
 
 
You should replace "myssid" with the SSID of your network, and "A shared key" with your network's WPA pre-shared key (in hex format, not ASCII plain text; use wpa_passphrase to generate the key if your AP software allows you to specify only plain text). If your network uses the AES encryption type, replace "TKIP" with "AES". If your network operates a mode other than Managed, replace "Managed" with the appropriate mode - but notice that some modes are not supported by the driver, or may not be fully functional.
 
You should replace "myssid" with the SSID of your network, and "A shared key" with your network's WPA pre-shared key (in hex format, not ASCII plain text; use wpa_passphrase to generate the key if your AP software allows you to specify only plain text). If your network uses the AES encryption type, replace "TKIP" with "AES". If your network operates a mode other than Managed, replace "Managed" with the appropriate mode - but notice that some modes are not supported by the driver, or may not be fully functional.
 
 
If you wish Ubuntu to connect to the network on startup, add the following line to the beginning of the stanza:  
 
If you wish Ubuntu to connect to the network on startup, add the following line to the beginning of the stanza:  
 
+
<pre><nowiki>
<pre><nowiki>auto ra0
+
auto ra0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
If you want to use a static IP address rather than DHCP, you should replace the first line of the stanza above with something like
 
If you want to use a static IP address rather than DHCP, you should replace the first line of the stanza above with something like
 
+
<pre><nowiki>
<pre><nowiki>iface ra0 inet static
+
iface ra0 inet static
 
         address 192.168.1.45
 
         address 192.168.1.45
 
         netmask 255.255.255.0
 
         netmask 255.255.255.0
 
         gateway 192.168.1.1</nowiki></pre>
 
         gateway 192.168.1.1</nowiki></pre>
 
(Use the address, netmask and gateway appropriate for your network's settings)
 
(Use the address, netmask and gateway appropriate for your network's settings)
 
 
 
5. In the terminal window, type:
 
5. In the terminal window, type:
  
<pre><nowiki>sudo ifup ra0
+
<pre><nowiki>
 +
sudo ifup ra0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
You should now be connected to your wireless network!
 
You should now be connected to your wireless network!
 
 
{i} If the above did not work for you, try one of the following stanzas instead (the same notes apply to these stanzas as well):
 
{i} If the above did not work for you, try one of the following stanzas instead (the same notes apply to these stanzas as well):
 
+
<pre><nowiki>
<pre><nowiki>iface ra0 inet dhcp
+
iface ra0 inet dhcp
 
         pre-up iwpriv ra0 auth 3
 
         pre-up iwpriv ra0 auth 3
 
         pre-up iwpriv ra0 enc 3
 
         pre-up iwpriv ra0 enc 3
第125行: 第95行:
 
         pre-up iwpriv ra0 wpapsk A shared key
 
         pre-up iwpriv ra0 wpapsk A shared key
 
         pre-up iwconfig ra0 essid myssid </nowiki></pre>
 
         pre-up iwconfig ra0 essid myssid </nowiki></pre>
 
+
<pre><nowiki>
<pre><nowiki>auto ra0
+
auto ra0
 
iface ra0 inet dhcp
 
iface ra0 inet dhcp
 
pre-up iwconfig ra0 essid " myssid "
 
pre-up iwconfig ra0 essid " myssid "
第135行: 第105行:
 
pre-up iwpriv ra0 set WPAPSK="A shared key"
 
pre-up iwpriv ra0 set WPAPSK="A shared key"
 
pre-up iwpriv ra0 set TxRate=0</nowiki></pre>
 
pre-up iwpriv ra0 set TxRate=0</nowiki></pre>
 
+
{i} If you need WPA support and the native method described here doesn't work, you may have to download and compile R''''''aConfig or R''''''utilT as described [[UbuntuHelp:[Raconfig|here]]]. It's not necessary to compile the driver if that's already working out of the box.
{i} If you need WPA support and the native method described here doesn't work, you may have to download and compile R''''''aConfig or R''''''utilT as described [[Raconfig here]]. It's not necessary to compile the driver if that's already working out of the box.
+
 
+
 
== Ubuntu Release Specific Info ==
 
== Ubuntu Release Specific Info ==
 
 
 
=== Hoary 5.04 ===
 
=== Hoary 5.04 ===
 
+
Ubuntu Hoary users should follow the [[UbuntuHelp:[compile|compiling insturctions]]]
Ubuntu Hoary users should follow the [[compile compiling insturctions]]
+
 
+
 
=== Breezy 5.10 and Dapper 6.06 ===
 
=== Breezy 5.10 and Dapper 6.06 ===
 +
Users of the Breezy release or any newer one have the driver installed out of the box.  If the above instructions for the configuration of the driver do not work for you, follow to the [[UbuntuHelp:[Raconfig|configuration application installation insructions]]]. Or, if for some reason you wish to install a newer version of the driver follow the [[UbuntuHelp:[compile|'Compile Newer Driver']]] section. In both cases please note all of these specific instructions in addition:
 +
1. Apart from the packages listed on the [[UbuntuHelp:[apt|third step]]] of the driver compilation instructions, you will also need to install gcc-3.4 instead of (or along with) the default gcc-4 using the following command:''
  
Users of the Breezy release or any newer one have the driver installed out of the box.  If the above instructions for the configuration of the driver do not work for you, follow to the [[Raconfig configuration application installation insructions]]. Or, if for some reason you wish to install a newer version of the driver follow the [[compile 'Compile Newer Driver']] section. In both cases please note all of these specific instructions in addition:
 
 
1. Apart from the packages listed on the [[apt third step]] of the driver compilation instructions, you will also need to install gcc-3.4 instead of (or along with) the default gcc-4 using the following command:''
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install gcc-3.4
 
sudo apt-get install gcc-3.4
 
</nowiki></pre>
 
</nowiki></pre>
 
 
''Note if this doesn't work because it's complaining about
 
''Note if this doesn't work because it's complaining about
 
<pre><nowiki>
 
<pre><nowiki>
 
E: Couldn't find package gcc-3.4
 
E: Couldn't find package gcc-3.4
 
</nowiki></pre>
 
</nowiki></pre>
 
 
'' then you need to add the main repository to your apt sources. The easiest way of doing this is:
 
'' then you need to add the main repository to your apt sources. The easiest way of doing this is:
 
+
*  by launching the System -> Administration -> Synaptic Package Management program,
**  by launching the System -> Administration -> Synaptic Package Management program,
+
*  clicking the Settings -> Repositories menu,  
**  clicking the Settings -> Repositories menu,  
+
* clicking Add, selecting the "Ubuntu 5.10 Breezy Badger" repository,
** clicking Add, selecting the "Ubuntu 5.10 Breezy Badger" repository,
+
* checking the "Community Maintained (Universe)" box  
** checking the "Community Maintained (Universe)" box  
+
* clicking OK and OK again.
** clicking OK and OK again.
+
 
+
 
Then you should quit the Synaptic program and try the install command again.
 
Then you should quit the Synaptic program and try the install command again.
 
+
2. To the packages installed on the [[UbuntuHelp:[apt2|the first step]]] of the R''''''aconfig installatio add libqt3-mt-dev by typing at the terminal:
2. To the packages installed on the [[apt2 the first step]] of the R''''''aconfig installatio add libqt3-mt-dev by typing at the terminal:
+
  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install libqt3-mt-dev
 
sudo apt-get install libqt3-mt-dev
 
</nowiki></pre>
 
</nowiki></pre>
 
+
3. Before finalizing the installation as described [[UbuntuHelp:[end|here]]], type this at the terminal:
3. Before finalizing the installation as described [[end here]], type this at the terminal:
+
  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo rm -r /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2500
 
sudo rm -r /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2500
 
</nowiki></pre>
 
</nowiki></pre>
 
+
=== Feisty 7.04 ===
[[Anchor(compile)]]
+
You will need to blacklist the SerialMonkey driver, add ndiswrapper to /etc/modules, and get the correct ndiswrapper setup, then make sure wpa_supplicant is installed. Then add this to you /etc/interfaces
 +
""iface ra0 inet dhcp
 +
wpa-driver wext
 +
wpa-ssid your-ssid
 +
wpa-ap-scan 1
 +
wpa-proto RSN WPA
 +
wpa-pairwise CCMP TKIP
 +
wpa-group CCMP TKIP
 +
wpa-key-mgmt WPA-PSK
 +
wpa-psk your-wpa-psk""
 +
Then disable the wireless card in [[UbuntuHelp:NetworkManager|NetworkManager]] and do a sudo ifup ra0.
 +
<<Anchor(compile)>>
 
=== Compile Newer Driver ===
 
=== Compile Newer Driver ===
 
This section describes how to download, compile and install the open source wireless drivers for R''''''aLink Rt2500-based wi-fi cards.  
 
This section describes how to download, compile and install the open source wireless drivers for R''''''aLink Rt2500-based wi-fi cards.  
 
+
<!>'''Note: This is only needed for users of Ubuntu 5.04. Ubuntu 5.10 and 6.06 have these drivers already installed. If your use one of the latter and wish to compile the driver anyway, note these [[UbuntuHelp:[brezzy|release specific instructions]]]'''
<!>'''Note: This is only needed for users of Ubuntu 5.04. Ubuntu 5.10 and 6.06 have these drivers already installed. If your use one of the latter and wish to compile the driver anyway, note these [[brezzy release specific instructions]]'''
+
 
+
 
Please note you will need to have an active internet connection for these instructions to work, so you may need to hook up via ethernet temporarily.
 
Please note you will need to have an active internet connection for these instructions to work, so you may need to hook up via ethernet temporarily.
 
 
==== Get Driver and RaConfig ====
 
==== Get Driver and RaConfig ====
 
1. Download RT2500 Beta or RT2500 CVS (the Beta Release is considered more stable, but for packet injection mode, which tools like [http://www.cr0.net:8040/code/network/ Aircrack] require, the CVS Version is necessary).
 
1. Download RT2500 Beta or RT2500 CVS (the Beta Release is considered more stable, but for packet injection mode, which tools like [http://www.cr0.net:8040/code/network/ Aircrack] require, the CVS Version is necessary).
第195行: 第160行:
 
* For downloading the Beta Release follow the "Latest BETA rt2500 driver" download link.
 
* For downloading the Beta Release follow the "Latest BETA rt2500 driver" download link.
 
* For downloading the CVS Release follow the "rt2500 nightly CVS tarball" download link.
 
* For downloading the CVS Release follow the "rt2500 nightly CVS tarball" download link.
 
 
2. Open a Terminal window (found under the "System Tools" group, in the "Applications" menu). Most of the work will be done through the Terminal. Now go into the directory where you downloaded the driver and type:
 
2. Open a Terminal window (found under the "System Tools" group, in the "Applications" menu). Most of the work will be done through the Terminal. Now go into the directory where you downloaded the driver and type:
  
第201行: 第165行:
 
tar -xzf <driver name>
 
tar -xzf <driver name>
 
</nowiki></pre>
 
</nowiki></pre>
 
 
to unpack it.
 
to unpack it.
 
+
<<Anchor(apt)>>
[[Anchor(apt)]]
+
 
3. At the Terminal Type:
 
3. At the Terminal Type:
  
第210行: 第172行:
 
sudo apt-get install build-essential linux-headers-$(uname -r)
 
sudo apt-get install build-essential linux-headers-$(uname -r)
 
</nowiki></pre>
 
</nowiki></pre>
 
 
This will install necessary packages for the compilation, after typing your password.
 
This will install necessary packages for the compilation, after typing your password.
 
 
==== Installing the Driver ====
 
==== Installing the Driver ====
 
The first step is to compile and install the driver:
 
The first step is to compile and install the driver:
 
 
1. Now type:
 
1. Now type:
  
第221行: 第180行:
 
cd ./rt2500*/Module
 
cd ./rt2500*/Module
 
</nowiki></pre>
 
</nowiki></pre>
 
 
This will bring you into the driver folder. If you extracted it somewhere else, adjust the address accordingly.
 
This will bring you into the driver folder. If you extracted it somewhere else, adjust the address accordingly.
 
 
2. Type:
 
2. Type:
  
第229行: 第186行:
 
make
 
make
 
</nowiki></pre>
 
</nowiki></pre>
 
 
3. The module is now built. Before we install it, let's test it. Type:
 
3. The module is now built. Before we install it, let's test it. Type:
  
第235行: 第191行:
 
sudo insmod rt2500.ko
 
sudo insmod rt2500.ko
 
</nowiki></pre>
 
</nowiki></pre>
 +
4. Now, you can set up your device as described in the [[UbuntuHelp:[WEP|WEP]]] and [[UbuntuHelp:[WPA|WAP]]] sections according to your encryption needs. After you complete your configuration, continue to [[UbuntuHelp:[end|finalize the installation]]]. If the above instructions for the configuration of the driver do not work for you, continue to the [[UbuntuHelp:[Raconfig|next]]] section that will install R''''''aconfig or R''''''utilT.
  
4. Now, you can set up your device as described in the [[WEP WEP]] and [[WPA WAP]] sections according to your encryption needs. After you complete your configuration, continue to [[end finalize the installation]]. If the above instructions for the configuration of the driver do not work for you, continue to the [[Raconfig next]] section that will install R''''''aconfig or R''''''utilT.
+
<<Anchor(Raconfig)>>
 
+
[[Anchor(Raconfig)]]
+
 
==== Installing RaConfig/RutilT, and using it ====
 
==== Installing RaConfig/RutilT, and using it ====
 
 
You can chose to install the GUI application provided with the driver, R''''''aconfig, or another GUI application for the driver instead called [http://cbbk.free.fr/bonrom/ RutilT]. The developers of the driver intend to replace R''''''aconfig with this tool, and discontinue the developement of the former. At this point RutilT is still under heavy developement (RutilT v0.14, latest update 17-04-2007) and in comparison to R''''''aConfig it has the following advantages/disadvantages:
 
You can chose to install the GUI application provided with the driver, R''''''aconfig, or another GUI application for the driver instead called [http://cbbk.free.fr/bonrom/ RutilT]. The developers of the driver intend to replace R''''''aconfig with this tool, and discontinue the developement of the former. At this point RutilT is still under heavy developement (RutilT v0.14, latest update 17-04-2007) and in comparison to R''''''aConfig it has the following advantages/disadvantages:
 
* It supports several R''''''alink chipsets and not only Rt2500 (they're going to implement all R''''''aLink chipsets).
 
* It supports several R''''''alink chipsets and not only Rt2500 (they're going to implement all R''''''aLink chipsets).
第247行: 第201行:
 
* Users are going to be able to run this tool as non-root user (not implemented yet).
 
* Users are going to be able to run this tool as non-root user (not implemented yet).
 
* It doesn't support WPA yet.
 
* It doesn't support WPA yet.
So choose accordingly: [[InstallRaconfig Install Raconfig]] or [[InstallRutilT Install RutilT]]
+
So choose accordingly: [[UbuntuHelp:[InstallRaconfig|Install Raconfig]]] or [[UbuntuHelp:[InstallRutilT|Install RutilT]]]
 
+
<<Anchor(InstallRaConfig)>>
[[Anchor(InstallRaConfig)]]
+
 
==== Installing RaConfig ====
 
==== Installing RaConfig ====
 
+
<<Anchor(apt2)>>
[[Anchor(apt2)]]
+
 
1. To install the utility, you'll need to download and install the kdebase and qt3 development  packages. Type:
 
1. To install the utility, you'll need to download and install the kdebase and qt3 development  packages. Type:
  
第258行: 第210行:
 
sudo apt-get install kdebase
 
sudo apt-get install kdebase
 
</nowiki></pre>
 
</nowiki></pre>
 
 
note that if you're using Kubuntu, you need not install this package.
 
note that if you're using Kubuntu, you need not install this package.
 
 
Also type:
 
Also type:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install qt3-dev-tools
 
sudo apt-get install qt3-dev-tools
 
</nowiki></pre>
 
</nowiki></pre>
 
If qt3-dev-tools fails to install, you might try libqt3-mt-dev.
 
If qt3-dev-tools fails to install, you might try libqt3-mt-dev.
 
 
2. Go here: http://rt2x00.serialmonkey.com/wiki/index.php/Downloads and download the driver package for your chipset. RaConfig is contained in these packages so even if you don't need new drivers you still need to download them. Use some program to extract the files. You may need to type this is a terminal to get root access to extract the files:  
 
2. Go here: http://rt2x00.serialmonkey.com/wiki/index.php/Downloads and download the driver package for your chipset. RaConfig is contained in these packages so even if you don't need new drivers you still need to download them. Use some program to extract the files. You may need to type this is a terminal to get root access to extract the files:  
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
gksudo file-roller
 
gksudo file-roller
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Remember where it is that you extracted the files because you will need that information later.
 
Remember where it is that you extracted the files because you will need that information later.
 
 
2. Now change to the Utilitys folder in the directory that you extracted the rt2500 drivers to. What you need to type here may be different depending on where you saved the drivers. If you extracted the driver package into your /etc directory it may look something like this:
 
2. Now change to the Utilitys folder in the directory that you extracted the rt2500 drivers to. What you need to type here may be different depending on where you saved the drivers. If you extracted the driver package into your /etc directory it may look something like this:
  
第280行: 第227行:
 
cd /etc/rt2500-1.1.0-b4/Utilitys
 
cd /etc/rt2500-1.1.0-b4/Utilitys
 
</nowiki></pre>
 
</nowiki></pre>
 
 
3. Now type:
 
3. Now type:
  
第286行: 第232行:
 
sudo qmake -o Makefile raconfig2500.pro
 
sudo qmake -o Makefile raconfig2500.pro
 
</nowiki></pre>
 
</nowiki></pre>
 
 
4. Then type:
 
4. Then type:
  
第292行: 第237行:
 
make
 
make
 
</nowiki></pre>
 
</nowiki></pre>
 
 
After typing make it appears that nothing happens. Don't worry, everything is still going according to plan.  
 
After typing make it appears that nothing happens. Don't worry, everything is still going according to plan.  
 
 
5. Activate your wireless card if you haven't already. Under System -> Administration you will find networking. Your Ralink card will be listed there. Activate it.
 
5. Activate your wireless card if you haven't already. Under System -> Administration you will find networking. Your Ralink card will be listed there. Activate it.
 
 
6. Now we need that directory where you saved the drivers. It may look like /etc/rt2500-1.1.0-b4/Utilitys/RaConfig. This may be different if you saved it somewhere else. In the Terminal, type:
 
6. Now we need that directory where you saved the drivers. It may look like /etc/rt2500-1.1.0-b4/Utilitys/RaConfig. This may be different if you saved it somewhere else. In the Terminal, type:
  
第302行: 第244行:
 
sudo cp <path to RaConfig2500 executable> /usr/local/bin
 
sudo cp <path to RaConfig2500 executable> /usr/local/bin
 
</nowiki></pre>
 
</nowiki></pre>
 
 
7. Launch RaConfig by typing in console:
 
7. Launch RaConfig by typing in console:
  
第308行: 第249行:
 
RaConfig2500
 
RaConfig2500
 
</nowiki></pre>
 
</nowiki></pre>
 
 
8. The present wireless networks will be listed. Pick the one you want to connect to, click "Add Profile." Fill in the correct details for wireless security (WPA, WEP, etc) if you need to. Save the profile, click connect. Voila! You should have RaConfig set up correctly using your connection with WPA security enabled.   
 
8. The present wireless networks will be listed. Pick the one you want to connect to, click "Add Profile." Fill in the correct details for wireless security (WPA, WEP, etc) if you need to. Save the profile, click connect. Voila! You should have RaConfig set up correctly using your connection with WPA security enabled.   
  
[[Anchor(InstallRutilT)]]
+
<<Anchor(InstallRutilT)>>
 
==== Installing RutilT ====
 
==== Installing RutilT ====
 
+
'''NOTE: Starting from gutsy, rutilt is now in the official Ubuntu repositories.'''
 
1. First we're going to download the tool. Visit the tool's homepage at http://cbbk.free.fr/bonrom/ and download the newest version.
 
1. First we're going to download the tool. Visit the tool's homepage at http://cbbk.free.fr/bonrom/ and download the newest version.
 
 
2. Now to solve the dependencies:
 
2. Now to solve the dependencies:
  
第321行: 第260行:
 
sudo apt-get install libgtk2.0-dev
 
sudo apt-get install libgtk2.0-dev
 
</nowiki></pre>
 
</nowiki></pre>
 
 
and, if you haven't already done this before,
 
and, if you haven't already done this before,
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install build-essential linux-headers-$(uname -r)
 
sudo apt-get install build-essential linux-headers-$(uname -r)
 
</nowiki></pre>
 
</nowiki></pre>
 
 
3. We need to unpack the archive you downloaded, so open a console and go into the directory where you downloaded the archive.  Type
 
3. We need to unpack the archive you downloaded, so open a console and go into the directory where you downloaded the archive.  Type
  
第333行: 第269行:
 
tar -xzf <archive name>
 
tar -xzf <archive name>
 
</nowiki></pre>
 
</nowiki></pre>
 
 
4. After unpacking the archive we will open the new folder:
 
4. After unpacking the archive we will open the new folder:
  
第339行: 第274行:
 
cd <path to folder>
 
cd <path to folder>
 
</nowiki></pre>
 
</nowiki></pre>
 
 
5. Now, we're going to compile the application:
 
5. Now, we're going to compile the application:
  
第346行: 第280行:
 
make
 
make
 
</nowiki></pre>
 
</nowiki></pre>
 
 
If you want to compile it with packet injection mode type:
 
If you want to compile it with packet injection mode type:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
make SUPPORT=RFMONTX
 
make SUPPORT=RFMONTX
 
</nowiki></pre>
 
</nowiki></pre>
 
 
instead. (note: If you want to compile it with packet injection mode, you must use the CVS driver version, otherwise R''''''uTilt won't work)
 
instead. (note: If you want to compile it with packet injection mode, you must use the CVS driver version, otherwise R''''''uTilt won't work)
 
 
6. In order to install the executable in /usr/bin type:
 
6. In order to install the executable in /usr/bin type:
  
第360行: 第290行:
 
sudo make install
 
sudo make install
 
</nowiki></pre>
 
</nowiki></pre>
 
 
7. Under System -> Administration you will find networking. Your Ralink card will be listed there. Activate it.
 
7. Under System -> Administration you will find networking. Your Ralink card will be listed there. Activate it.
 
 
8. You can now run the RutilT by typing "rutilt" in console.
 
8. You can now run the RutilT by typing "rutilt" in console.
  
 
==== Finalizing the Install ====
 
==== Finalizing the Install ====
[[Anchor(end)]]
+
<<Anchor(end)>>
 
1. First, disconnect - click Deactivate in the Networking window, or use the Terminal:
 
1. First, disconnect - click Deactivate in the Networking window, or use the Terminal:
  
第372行: 第300行:
 
sudo ifdown ra0
 
sudo ifdown ra0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
3. Type:
 
3. Type:
  
第378行: 第305行:
 
sudo cp ~/rt2500-cvs-daily/Module/rt2500.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
 
sudo cp ~/rt2500-cvs-daily/Module/rt2500.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
 
</nowiki></pre>
 
</nowiki></pre>
 
 
4. Type:
 
4. Type:
  
第384行: 第310行:
 
echo "alias ra0 rt2500" | sudo tee /etc/modprobe.d/rt2500
 
echo "alias ra0 rt2500" | sudo tee /etc/modprobe.d/rt2500
 
</nowiki></pre>
 
</nowiki></pre>
 
 
5. Type:
 
5. Type:
  
第390行: 第315行:
 
sudo depmod
 
sudo depmod
 
</nowiki></pre>
 
</nowiki></pre>
 
 
6. That's it! The driver's installed! You can now erase the unpacked rt2500 folder and the archive itself.
 
6. That's it! The driver's installed! You can now erase the unpacked rt2500 folder and the archive itself.
  
 
=== Specific Release Notes ===
 
=== Specific Release Notes ===
[[category:CategoryNetworking]] [[category:CategoryDocumentation]]
+
----
 +
[[category:CategoryNetworking]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月20日 (四) 00:56的最新版本

WARNING! In Ubuntu 7.10 (Gutsy Gibbon) everything should work out of the box, using newer built-in driver, so the information posted below are not relevant to this version. There are many reports about WPA connections not working, though. This post describes how to make them work by going back to the legacy serialmonkey driver. The issue was reported in the bug #134962.

About the guide

This guide explains how to set up and configure a wireless network card based on the RT2500 chipset, which is manufactured by Ralink and incorporated in many wireless network cards. You will need for this guide; your access point's ESSID (case-sensitive); the key (case-sensitive) used to access the access-point; the encryption used for the key.

Driver Information

If you are unsure whether your wireless card is based on the RT2500 chipset, visit this page for a list of cards based on the chipset. Since Ubuntu 5.10 (Breezy Badger) the rt2500 driver is installed out of the box, so your wireless card should be visible as "ra0" if you open the Networking utility found under the System->Administration->Networking menu. If your wireless network uses no encryption, just click "Properties", enter your wireless access point's ESSID, and click OK. Once you click the "Activate" button, you should be connected to your wireless network service essays. If your network requires [[UbuntuHelp:[WEP|WEP]]] or [[UbuntuHelp:[WPA|WPA]]] encryption, continue to the appropriate section. If you would like to have Ubuntu automatically connect to your wireless network when your computer starts up, follow [[UbuntuHelp:[auto|these]]] steps. If you run an older version of Ubuntu, or the instruction on this page for setting up WPA or WEP encryptions don't work for you, then you may have to compile the driver and/or one of the RaConfig or RutilT utilities as described [[UbuntuHelp:[compile|here]]].

  • Driver Name: rt2500
  • Module Name: rt2500.ko

Support Channels

<<Anchor(WEP)>>

WEP info

If your wireless network is not protected by the WPA encryption method (i.e. if it's open or protected by the WEP encryption method) follow these steps: 1. Plug in your card. 2. Open System->Administration->Networking in the menu. 3. Click "Properties" 4. Enter your wireless access point's ESSID and WEP Key (if appropriate), and click OK. 5. Click the "Activate" button. You should now be connected to your wireless network!

<<Anchor(auto)>> In the future, all you'll need to do is click the Activate button to connect to the wireless network. If you would like to have Ubuntu automatically connect to your wireless network when your computer starts up, follow these steps: 1. Open a "Terminal" window. 2. Type:

gksudo gedit /etc/network/interfaces

3. In the text editor window that opened search for a stanza beginning with "iface ra0". 4. Add the following line to the beginning of the stanza:

auto ra0

5. Save the file and close the editor.

<<Anchor(WPA)>>

WPA info

If your wireless network uses the WPA encryption method, follow these steps: 1. Open a "Terminal" window. 2. Type:

gksudo gedit /etc/network/interfaces

3. In the text editor window that opened add the following stanza:

iface ra0 inet dhcp
        pre-up ifconfig ra0 up
        pre-up ifconfig ra0 down
        pre-up ifconfig ra0 up
        pre-up ifconfig ra0 down
        pre-up iwconfig ra0 essid "myssid"
        pre-up iwconfig ra0 mode Managed
        pre-up iwpriv ra0 set AuthMode=WPAPSK
        pre-up iwpriv ra0 set EncrypType=TKIP
        pre-up iwpriv ra0 set WPAPSK="A shared key"
        pre-up ifconfig ra0 up

You should replace "myssid" with the SSID of your network, and "A shared key" with your network's WPA pre-shared key (in hex format, not ASCII plain text; use wpa_passphrase to generate the key if your AP software allows you to specify only plain text). If your network uses the AES encryption type, replace "TKIP" with "AES". If your network operates a mode other than Managed, replace "Managed" with the appropriate mode - but notice that some modes are not supported by the driver, or may not be fully functional. If you wish Ubuntu to connect to the network on startup, add the following line to the beginning of the stanza:

auto ra0

If you want to use a static IP address rather than DHCP, you should replace the first line of the stanza above with something like

iface ra0 inet static
        address 192.168.1.45
        netmask 255.255.255.0
        gateway 192.168.1.1

(Use the address, netmask and gateway appropriate for your network's settings) 5. In the terminal window, type:

sudo ifup ra0

You should now be connected to your wireless network! {i} If the above did not work for you, try one of the following stanzas instead (the same notes apply to these stanzas as well):

iface ra0 inet dhcp
        pre-up iwpriv ra0 auth 3
        pre-up iwpriv ra0 enc 3
        pre-up iwconfig ra0 essid myssid
        pre-up iwpriv ra0 wpapsk A shared key
        pre-up iwconfig ra0 essid myssid 
auto ra0
iface ra0 inet dhcp
pre-up iwconfig ra0 essid " myssid "
pre-up iwconfig ra0 mode managed
pre-up iwpriv ra0 set Channel=11
pre-up iwpriv ra0 set AuthMode=WPAPSK
pre-up iwpriv ra0 set EncrypType=TKIP
pre-up iwpriv ra0 set WPAPSK="A shared key"
pre-up iwpriv ra0 set TxRate=0

{i} If you need WPA support and the native method described here doesn't work, you may have to download and compile R'aConfig or R'utilT as described [[UbuntuHelp:[Raconfig|here]]]. It's not necessary to compile the driver if that's already working out of the box.

Ubuntu Release Specific Info

Hoary 5.04

Ubuntu Hoary users should follow the [[UbuntuHelp:[compile|compiling insturctions]]]

Breezy 5.10 and Dapper 6.06

Users of the Breezy release or any newer one have the driver installed out of the box. If the above instructions for the configuration of the driver do not work for you, follow to the [[UbuntuHelp:[Raconfig|configuration application installation insructions]]]. Or, if for some reason you wish to install a newer version of the driver follow the [[UbuntuHelp:[compile|'Compile Newer Driver']]] section. In both cases please note all of these specific instructions in addition: 1. Apart from the packages listed on the [[UbuntuHelp:[apt|third step]]] of the driver compilation instructions, you will also need to install gcc-3.4 instead of (or along with) the default gcc-4 using the following command:

sudo apt-get install gcc-3.4

Note if this doesn't work because it's complaining about

E: Couldn't find package gcc-3.4

then you need to add the main repository to your apt sources. The easiest way of doing this is:

  • by launching the System -> Administration -> Synaptic Package Management program,
  • clicking the Settings -> Repositories menu,
  • clicking Add, selecting the "Ubuntu 5.10 Breezy Badger" repository,
  • checking the "Community Maintained (Universe)" box
  • clicking OK and OK again.

Then you should quit the Synaptic program and try the install command again. 2. To the packages installed on the [[UbuntuHelp:[apt2|the first step]]] of the R'aconfig installatio add libqt3-mt-dev by typing at the terminal:

sudo apt-get install libqt3-mt-dev

3. Before finalizing the installation as described [[UbuntuHelp:[end|here]]], type this at the terminal:

sudo rm -r /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2500

Feisty 7.04

You will need to blacklist the SerialMonkey driver, add ndiswrapper to /etc/modules, and get the correct ndiswrapper setup, then make sure wpa_supplicant is installed. Then add this to you /etc/interfaces ""iface ra0 inet dhcp wpa-driver wext wpa-ssid your-ssid wpa-ap-scan 1 wpa-proto RSN WPA wpa-pairwise CCMP TKIP wpa-group CCMP TKIP wpa-key-mgmt WPA-PSK wpa-psk your-wpa-psk"" Then disable the wireless card in NetworkManager and do a sudo ifup ra0. <<Anchor(compile)>>

Compile Newer Driver

This section describes how to download, compile and install the open source wireless drivers for R'aLink Rt2500-based wi-fi cards. <!>Note: This is only needed for users of Ubuntu 5.04. Ubuntu 5.10 and 6.06 have these drivers already installed. If your use one of the latter and wish to compile the driver anyway, note these [[UbuntuHelp:[brezzy|release specific instructions]]] Please note you will need to have an active internet connection for these instructions to work, so you may need to hook up via ethernet temporarily.

Get Driver and RaConfig

1. Download RT2500 Beta or RT2500 CVS (the Beta Release is considered more stable, but for packet injection mode, which tools like Aircrack require, the CVS Version is necessary).

You can find the Rt2500 download page on http://rt2x00.serialmonkey.com/wiki/index.php/Downloads

  • For downloading the Beta Release follow the "Latest BETA rt2500 driver" download link.
  • For downloading the CVS Release follow the "rt2500 nightly CVS tarball" download link.

2. Open a Terminal window (found under the "System Tools" group, in the "Applications" menu). Most of the work will be done through the Terminal. Now go into the directory where you downloaded the driver and type:

tar -xzf <driver name>

to unpack it. <<Anchor(apt)>> 3. At the Terminal Type:

sudo apt-get install build-essential linux-headers-$(uname -r)

This will install necessary packages for the compilation, after typing your password.

Installing the Driver

The first step is to compile and install the driver: 1. Now type:

cd ./rt2500*/Module

This will bring you into the driver folder. If you extracted it somewhere else, adjust the address accordingly. 2. Type:

make

3. The module is now built. Before we install it, let's test it. Type:

sudo insmod rt2500.ko

4. Now, you can set up your device as described in the [[UbuntuHelp:[WEP|WEP]]] and [[UbuntuHelp:[WPA|WAP]]] sections according to your encryption needs. After you complete your configuration, continue to [[UbuntuHelp:[end|finalize the installation]]]. If the above instructions for the configuration of the driver do not work for you, continue to the [[UbuntuHelp:[Raconfig|next]]] section that will install R'aconfig or R'utilT.

<<Anchor(Raconfig)>>

Installing RaConfig/RutilT, and using it

You can chose to install the GUI application provided with the driver, R'aconfig, or another GUI application for the driver instead called RutilT. The developers of the driver intend to replace R'aconfig with this tool, and discontinue the developement of the former. At this point RutilT is still under heavy developement (RutilT v0.14, latest update 17-04-2007) and in comparison to R'aConfig it has the following advantages/disadvantages:

  • It supports several R'alink chipsets and not only Rt2500 (they're going to implement all R'aLink chipsets).
  • It's based on GTK, so Ubuntu users don't have to install kdebase.
  • The new R't2X00 Driver is supported, which is a complete new driver and supports all R'aLink chipsets (this driver is still very unstable).
  • Users are going to be able to run this tool as non-root user (not implemented yet).
  • It doesn't support WPA yet.

So choose accordingly: [[UbuntuHelp:[InstallRaconfig|Install Raconfig]]] or [[UbuntuHelp:[InstallRutilT|Install RutilT]]] <<Anchor(InstallRaConfig)>>

Installing RaConfig

<<Anchor(apt2)>> 1. To install the utility, you'll need to download and install the kdebase and qt3 development packages. Type:

sudo apt-get install kdebase

note that if you're using Kubuntu, you need not install this package. Also type:

sudo apt-get install qt3-dev-tools

If qt3-dev-tools fails to install, you might try libqt3-mt-dev. 2. Go here: http://rt2x00.serialmonkey.com/wiki/index.php/Downloads and download the driver package for your chipset. RaConfig is contained in these packages so even if you don't need new drivers you still need to download them. Use some program to extract the files. You may need to type this is a terminal to get root access to extract the files:

gksudo file-roller

Remember where it is that you extracted the files because you will need that information later. 2. Now change to the Utilitys folder in the directory that you extracted the rt2500 drivers to. What you need to type here may be different depending on where you saved the drivers. If you extracted the driver package into your /etc directory it may look something like this:

cd /etc/rt2500-1.1.0-b4/Utilitys

3. Now type:

sudo qmake -o Makefile raconfig2500.pro

4. Then type:

make

After typing make it appears that nothing happens. Don't worry, everything is still going according to plan. 5. Activate your wireless card if you haven't already. Under System -> Administration you will find networking. Your Ralink card will be listed there. Activate it. 6. Now we need that directory where you saved the drivers. It may look like /etc/rt2500-1.1.0-b4/Utilitys/RaConfig. This may be different if you saved it somewhere else. In the Terminal, type:

sudo cp <path to RaConfig2500 executable> /usr/local/bin

7. Launch RaConfig by typing in console:

RaConfig2500

8. The present wireless networks will be listed. Pick the one you want to connect to, click "Add Profile." Fill in the correct details for wireless security (WPA, WEP, etc) if you need to. Save the profile, click connect. Voila! You should have RaConfig set up correctly using your connection with WPA security enabled.

<<Anchor(InstallRutilT)>>

Installing RutilT

NOTE: Starting from gutsy, rutilt is now in the official Ubuntu repositories. 1. First we're going to download the tool. Visit the tool's homepage at http://cbbk.free.fr/bonrom/ and download the newest version. 2. Now to solve the dependencies:

sudo apt-get install libgtk2.0-dev

and, if you haven't already done this before,

sudo apt-get install build-essential linux-headers-$(uname -r)

3. We need to unpack the archive you downloaded, so open a console and go into the directory where you downloaded the archive. Type

tar -xzf <archive name>

4. After unpacking the archive we will open the new folder:

cd <path to folder>

5. Now, we're going to compile the application:

./configure.sh
make

If you want to compile it with packet injection mode type:

make SUPPORT=RFMONTX

instead. (note: If you want to compile it with packet injection mode, you must use the CVS driver version, otherwise R'uTilt won't work) 6. In order to install the executable in /usr/bin type:

sudo make install

7. Under System -> Administration you will find networking. Your Ralink card will be listed there. Activate it. 8. You can now run the RutilT by typing "rutilt" in console.

Finalizing the Install

<<Anchor(end)>> 1. First, disconnect - click Deactivate in the Networking window, or use the Terminal:

sudo ifdown ra0

3. Type:

sudo cp ~/rt2500-cvs-daily/Module/rt2500.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/

4. Type:

echo "alias ra0 rt2500" | sudo tee /etc/modprobe.d/rt2500

5. Type:

sudo depmod

6. That's it! The driver's installed! You can now erase the unpacked rt2500 folder and the archive itself.

Specific Release Notes