CENTOS7 Wireless network adapter-driven installation and configuration of wireless networks

Source: Internet
Author: User
CENTOS7 Wireless network adapter-driven installation and configuration of wireless networks

The model of my wireless card is: Mercury Mercury

Linux-enabled driver packages are: rtl8188eus_usb_linux_v3.4.4_4749.20121105

Part of the Content Reference link: http://www.centoscn.com/image-text/config/2013/0910/1596.html

1. Check the information of the NIC first Lsusb



2. Decompression Drive

Tar zxvf rtl8188eu.tar.gz




3. Enter Rtl8188eu/rtl8188eu-master to change root rights, execute make and make Iinstall

The general Linux kernel will automatically load the newly installed modules, which are found to be not loaded, what is the reason. The reason is that, when the system reinstall the driver module, the system will normally be loaded after reboot, if not loaded, we can use the instructions: Insmod + specific path and module or directly use Modprobe No need to indicate the path or copy the generated 8188eu.ko to/lib/ Modules/3.10.0-327.el7.x86_64/kernel/drivers/net/wireless.

After we reboot, see if the system can load the module automatically (the download is on):



4. Use Ifconfig to see if no useful ifconfig-a view (PS: This is why.) Originally is Ifconfig view is the activated network card, ifconfig-a view all, at this time we only need to activate the Wlp0s29u1u6;
Activate with ifconfig wlp0s29u1u6 up)

5. Enter Rtl8188eu/wireless_tools

We'll disassemble the package again in the/USR/LOCAL/SRC directory.

TAR-ZXVF wireless_tools.30.rtl.tar.gz-c/usr/local/src/into the disassembly directory

Switch root to execute make and make Iinstall

We entered the/usr/local/sbin directory: (Next http://www.centoscn.com/image-text/config/2013/0910/1596.html)


6. Then we use iwlist scanning to list the surrounding wireless networks:



7. Of course, there is no use of light search to the wireless network, because these wireless networks are encrypted, we have to verify the tool for key verification, we go to the RTL8188EU/WPA_SUPPLICANT_HOSTAPD directory

Extract wpa_supplicant_hostapd-0.8_rtw_20120803.zip into/wpa_supplicant_hostapd-0.8/wpa_supplican execute make and make install


8. We enter the/usr/local/sbin directory: (next reference to http://www.centoscn.com/image-text/config/2013/0910/1596.html)

At this point, we can connect to our wireless network:


For security reasons, we need to remove the plaintext password

9.

Now that our driver module and key file are formed, we are now connected to the wireless network:

Wpa_supplicant-i wlp0s29u1u6-c/etc/wpa_supplicant/wpa_supplicant.conf-d Wext–b

Meaning of each parameter:-I indicates a connected NIC

-C indicates where the key file is stored

-D indicates that the drive type is generic

-B put in background run

We use Iwconfig to view the connection status of the wireless card:

10.

Then restart the Network service

Service Network restart

Now let's see if our wlp0s29u1u6 can get the IP address successfully:


11. Executive Dhclient

Dhclient is a direct control ETH for network operations to obtain IP.

12 but that's not going to work, because as soon as our machine is restarted, we have to do it again.

Wpa_supplicant-i wlp0s29u1u6-c/etc/wpa_supplicant/wpa_supplicant.conf-d Wext–b

, service network Restart and dhclient These three instructions, is very troublesome ah. But what's the solution? Last time I was in the system kernel troubleshooting also told everyone the system's boot process, system startup, to carry out the system initialization, execution initialization script, initialization script is/etc/rc.d/rc.local. To meet our requirements, we can execute the three instructions above when the system is initialized:


Then we'll see if our environment variable joins the/usr/local/sbin directory, otherwise the system will not be able to recognize our wpa_supplicant directive. echo "$PATH":

OK, so we can use the wireless internet conveniently.

This article is from the "Night Wind" blog, please be sure to keep this source http://jiangkun08.blog.51cto.com/6266992/1284327



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.