Install a wireless NIC Driver in Linux to enable Linux wireless Internet access.

Source: Internet
Author: User

Due to the limitations of wired networks in our real life, we need to use wireless networks to access the Internet in certain situations. For the Linux system we use, if the wireless network card used is not recognized by the system, we have to install the wireless network card driver to implement the system's support for the wireless network card. We will use FASTFW150UM) to install an external usb wireless NIC Driver.

First, we plug the external usb Nic into the usb interface of the computer. in Linux, we use the lsusb command to view the connected usb device. If this usb device is not found, you can connect the usb device to the VM and disconnect it from the host.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0015D7-0.png "title =" 2013-08-12_130714.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0012H5-1.png "title =" 2013-08-12_131055.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G00125b-2.png "title =" 2013-08-12_131210.png "/>

From the lsusb command, we can see that the external usb wireless Nic chipset we connect is Realtek 8176. The following is how to find the Linux driver for this chipset. We have imported the downloaded Realtek 8176 for Linux driver into our Linux.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G00120J-3.png "title =" 2013-08-12_1320.3.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G00160V-4.png "title =" 2013-08-12_133317.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0011S2-5.png "title =" 2013-08-12_133622.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0014451-6.png "title =" 2013-08-12_133923.png "/>

The query shows that our driver module is not loaded into the system module.

# Lsmod | grep-I 8192

We can restart the system to check whether the module can be automatically loaded after the system is restarted.

[Root @ localhost ~] # Lsmod | grep-I 8192

8192cu 501824 0

After the system is restarted, the driver module we just installed is automatically loaded. If the system cannot automatically add modules, you must manually add them by modifying the/etc/modprobe. conf file.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G00164S-7.png "title =" 2013-08-12_140221.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0013528-8.png "title =" 2013-08-12_140848.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G00152V-9.png "title =" 2013-08-12_141100.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G00163W-10.png "title =" 2013-08-12_141700.png "/>

Go to the decompressed source code directory and check that there are many contents in the directory. If there is no config configuration file or Makefile, run make first, and then run make install to install the source code of the wireless tool.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0013325-11.png "title =" 2013-08-12_142223.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G001E15-12.png "title =" 2013-08-12_142621.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0013535-13.png "title =" 2013-08-12_143559.png "/>

We found a total of 28 wireless network signal lists, and 27 of them are our own wireless network signals. We can see a lot of information about this wireless network.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0012Q8-14.png "title =" 2013-08-12_141_5.png "/>

We have scanned many wireless networks, and most of them are encrypted and verified. We know that the password requires an authentication tool.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0012305-15.png "title =" 2013-08-12_144932.png "/>

Switch to the decompressed directory, view the content, execute make, and then execute make install.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G001M62-16.png "title =" 2013-08-12_145253.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0015229-17.png "title =" 2013-08-12_145609.png "/>

By viewing the man manual of the execution file, we can understand the usage of the tool.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0015316-18.png "title =" 2013-08-12_150258.png "/>

We cannot enter the password every time we connect for identity authentication. We can use the user manual to write the password into the wpa_supplicant.conf configuration file, common configuration files are stored in the/etc/directory of the system. We will redirect the key of the wireless network to be connected to this configuration file.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G001N39-19.png "title =" 2013-08-12_150922.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0012118-20.png "title =" 2013-08-12_151220.png "/>

The wpa support tool also generates an executable file wpa_supplicant, which is used to connect to the wireless network. You can use man to view the usage of this file.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0015619-21.png "title =" 2013-08-12_151808.png "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G00123F-22.png "title =" 2013-08-12_152517.png "/>

Our wireless network is connected. We want the wireless network card to use dhcp to obtain the ip address. We need to write a NIC configuration file in the/etc/sysconfig/network-scripts/directory, we copy a generated configuration file to modify the file, and then execute service network restart to restart the network.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G001H38-23.png "title =" 2013-08-12_153246.png "/>


Run ifconfig to view the network information. wlan0 obtains the IP address 192.168.1.149.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G0015B2-24.png "title =" 2013-08-12_154427.png "/>

For convenience, we can add the command for connecting to the wireless network to our boot script.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G001N19-25.png "title =" 2013-08-12_155030.png "/>

In this case, will we get an IP address when we restart the system? The answer is no, because we need to execute the script wpa connection after the boot, we will get the IP address after we restart the network using the service network restart after the boot, then, how can we solve this problem? We only need to add the command to restart the network in the boot script to start wpa to connect to the network and then restart the network to obtain the IP address.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1G001K28-26.png "title =" 2013-08-12_161338.png "/>

OK. Here, we can use FASTFW150UM to access the Internet using an external usb wireless Nic in Linux. You can also use this method to install the wireless NIC driver for the laptop's built-in Nic. You need to find the Linux system driver for the built-in Nic on the Internet.


This article is from the "Network CTO" blog, please be sure to keep this source http://7392072.blog.51cto.com/7382072/1271559

Related Article

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.