Installation and use of wireless network card under Linux

Source: Internet
Author: User

Installation and use of wireless card

in recent years, the use of wireless network more and more, in Windows using a wireless network card under the Linux How to use it?

One: First to be able to clearly use what kind of excuse type of wireless card, common interface type has PCI (desktop), USB (desktop, notebook) Carbus/pcmcia (Notebooks).

Second: What kind of chip the wireless network card uses, and download the corresponding driver to the related website use the following command to view the chip type

LSUSB USB Interface

LSPCI PCI Interface

below to Realtek of the RTL89CU For example, in + bit of centos6.4 system to install the wireless card

650) this.width=650; "src=" http://note.youdao.com/yws/res/58/D9E80B7F014840CBB40F0F4B597F5683 "width=" 553 "height= "Style=" "border:0px", "alt=" d9e80b7f014840cbb40f0f4b597f5683 "/>

Three: Install the driver

take the driver down from the official website 8192 Copy to /root/ after the expansion, found no Config file But there are Makefile file

650) this.width=650; "src=" Http://note.youdao.com/yws/res/53/563B295D42084DE186A94DB0CDE929E3 "width=" 554 "height= "194" style= "border:0px;" alt= "563b295d42084de186a94db0cde929e3"/>

directly Make and the Make Install to install the driver

650) this.width=650; "src=" http://note.youdao.com/yws/res/69/081CBF70669349EFAAD2D706D8CEEDF1 "width=" 553 "height= "Style=" border:0px; "alt=" 081cbf70669349efaad2d706d8ceedf1 "/>

Here we can see the /lib/modules/2.6.32-431.el6.i686/kernel/drivers/net/wireless/

a directory is installed under the 8192cu.ko the kernel module

650) this.width=650; "src=" Http://note.youdao.com/yws/res/63/BB4E9D3D687A443F8B276D5065BA5E3B "width=" 553 "height= "Style=" border:0px; "alt=" bb4e9d3d687a443f8b276d5065ba5e3b "/>

You can see the installed kernel modules in this directory

650) this.width=650; "src=" http://note.youdao.com/yws/res/61/CB96697628E34BC48A9832A97B884311 "width=" 554 "height= "Style=" "border:0px", "alt=" cb96697628e34bc48a9832a97b884311 "/>

load the module to drive the hardware, you can use the command Insmod "full path, cannot resolve dependencies"

                                                                  modprobe 

Here we use modprobe , and use Lsmod after filtering, we found 8192CU

650) this.width=650; "src=" Http://note.youdao.com/yws/res/62/E4B9A584AF8943C8BF0B34B463F69A4F "width=" 550 "height= "Style=" "border:0px", "alt=" e4b9a584af8943c8bf0b34b463f69a4f "/>

Use Ifconfig–a can see Wlan0

650) this.width=650; "src=" http://note.youdao.com/yws/res/54/0F1C65FFC6454C7C92C6525E049DF851 "width=" 553 "height= "228" style= "border:0px;" alt= "0f1c65ffc6454c7c92c6525e049df851"/>

Use Yum installation Wireless Tools

650) this.width=650; "src=" http://note.youdao.com/yws/res/68/0B9937D01B584C47BC886B310ED31E10 "width=" 553 "height= "Style=" border:0px; "alt=" 0b9937d01b584c47bc886b310ed31e10 "/>

Activate Wlan0

650) this.width=650; "src=" http://note.youdao.com/yws/res/67/7B3059815CFB4322879AF8403A4CED71 "width=" 428 "height= "Style=" border:0px "alt=" 7b3059815cfb4322879af8403a4ced71 "/>

scan around wireless networks and discover two of networks Yangzong and the php-1

650) this.width=650; "src=" Http://note.youdao.com/yws/res/60/E94EC39D9D6F4B6F8F7580A58B7F5D5A "width=" 534 "height= "Style=" "border:0px", "alt=" e94ec39d9d6f4b6f8f7580a58b7f5d5a "/>650" this.width=650; "src=" http:// Note.youdao.com/yws/res/65/70a5fe4fa86042ba8698265410709e82 "width=" 493 "height=" "style=" border:0px; "alt=" 70a5fe4fa86042ba8698265410709e82 "/>

installation WPA Tools

Yum--disablerepo=\*--enablerepo=c6-media Install wpa_supplicant-y

use wpa_passphrase to generate secret keys to connect to php-1 with Wpa_supplicant On

650) this.width=650; "src=" http://note.youdao.com/yws/res/64/C1F267C1AE4043038298AAAACCCCD418 "width=" 553 "height= "Style=" border:0px; "alt=" c1f267c1ae4043038298aaaaccccd418 "/>

650) this.width=650; "src=" http://note.youdao.com/yws/res/55/D35B5D4288C247E0BD0C7A4CEC385A20 "width=" 553 "height= "169" style= "border:0px;" alt= "d35b5d4288c247e0bd0c7a4cec385a20"/>

using DHCP to obtain an IP address automatically

650) this.width=650; "src=" http://note.youdao.com/yws/res/66/ABE885F9146541E7851D5E288E4FDE77 "width=" 554 "height= "Style=" "border:0px", "alt=" abe885f9146541e7851d5e288e4fde77 "/> 650" this.width=650; "src=" http:// Note.youdao.com/yws/res/56/9a8711241ee24564acbcb8b938a84ad6 "width=" 554 "height=" 119 "style=" border:0px; "alt=" 9a8711241ee24564acbcb8b938a84ad6 "/>

Here you can see Ping wireless router. IP address and get the default route

650) this.width=650; "src=" http://note.youdao.com/yws/res/59/1890D5E60E7C44CFB240AA56D45C56F9 "width=" 553 "height= "Style=" "border:0px", "alt=" 1890d5e60e7c44cfb240aa56d45c56f9 "/> 650" this.width=650; "src=" http:// NOTE.YOUDAO.COM/YWS/RES/57/4400EDB1334B42D9A94E7DB77D5424CB "width=" 553 "height=" "style=" border:0px; "alt=" 4400EDB1334B42D9A94E7DB77D5424CB "/>

Because the above configuration will not be automatically run the next time you need to manually configure this is certainly not what we want to see, so we have to write them into a boot script, so that the next boot can automatically run.

[Email protected] packages]# echo "Modprobe 8192cu" >>/etc/rc.d/rc.local

[[email protected]] #echo "wpa_supplicant-b-i wlan0-c/etc/wpa_supplicant/wpa_supplicant.conf-d wext" >>/etc/ Rc.d/rc.local

[Email protected] packages]# echo "Dhclient wlan0" >>/etc/rc.d/rc.local

Once again, you can find the wireless card automatically connected to the

650) this.width=650; "src=" http://note.youdao.com/yws/res/52/D6EF6A38EB8A409D9A3150DB586EC2C7 "width=" 553 "height= "278" style= "border:0px;" alt= "D6ef6a38eb8a409d9a3150db586ec2c7"/>


This article is from the "CL's blog" blog, so be sure to keep this source http://changlinlin.blog.51cto.com/7353999/1569385

Installation and use of wireless network card under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.