CentOS6.4 compile and install the Wireless NIC driver
Source: Internet
Author: User
CentOS6.4 the wireless network card driver was first exposed to CentOS, and the system disk burned by the DVD1 image was downloaded. to get familiar with CentOS as soon as possible, the system was installed in minimal format. after the system was successfully installed, the first problem to be solved is the network problem... in CentOS 6.4, the Wireless NIC driver was first exposed to CentOS, and the system disk burned by the DVD1 image was downloaded. in order to get familiar with CentOS as soon as possible, the system disk was installed in the form of minimal; after the system is successfully installed, the first problem to be solved is the network problem. The network environment of the sub-host is a wireless network, so it is the first task to run the wireless network card. The following describes how to compile and install the NIC driver. 1. to minimize the installation of the compilation driver, install the gcc and linux header files before Compilation. These software packages are all installed on the burned CD; you can install them through rpm, however, this is troublesome, because the installation of some packages depends on the installation of other packages, and the installation should follow the instructions of rpm. if it is quick, you should still use the yum tool, before that, modify/etc/yum. d/CentOS6.4-Media. the bashrc in the repo is used to mount the disc or Packages. (if you copy Packages from the disc to a local disk, you must also copy the repo. data File); then install with # yun -- disablerepo = \ * -- enablerepo = c6-media install **, which is in CentOS6.4-Media. the repo file is described in. If the driver is compiled, there will be no problem. if there is a problem, it will also be a small problem such as the inclusion path of the linux header file. The problem I encountered is incomplete type, that is, the type is not defined: tx_power_setting; after reading the driver source code, we found that it is related to the linux kernel version. in the included linux header file, we found that the definition is nl802_tx_power_setting; comment out the related # if # else compilation control macro, finally, it is compiled. In this case, it is best to strip-g the debugging information, and then remove *. copy ko to/lib /... /kernel/modules/net/wireless/has forgotten the specific path. there is ike802.ko in this path. you can find-name extension 802 to find this path. then, depmod (I will execute modprobe, however, if the mounting fails, I don't know why. please kindly ask Daniel to express it. I don't know if it is related to some files not loaded during startup, because kernel-devel was installed later.) Finally, reboot, let him mount it on his own; after reboot, lsmod finds that the Mount is successful; then ifconfig wlan0 iwlist... and so on. 2. wpa_supplicant configurations the wireless network is generally encrypted in the WPA mode. This requires the support of the wpa_supplicant service. The software package is in the DVD1 disc, and the rpm is OK; the next step is to configure him. Now, assume that the SSID of the AP server you want to connect to is "wl" password is "123456", step 1: modify the wpa_supplicant configuration file/etc/wpa_supplicant/wpa_supplicant.conf; execute: # wpa_passphrase wl 123456>/etc/wpa_supplicant/wpa_supplicant.conf; this command is actually used to encrypt wl and password in the wpa_supplicant configuration file. of course, you can also manually modify them, however, in that case, your password is recorded in the file in plain text. of course, wpa will still be encrypted during use. Step 2: modify the/etc/wpa_supplicant file to tell wpa_supplicant which wireless network adapter and driver type to use, if the driver type is used, run the following man wpa_supplicant command and enter the corresponding value based on the driver information you compiled. Step 3: enable the wpa_supplicant service, # service wpa_supplicant start; use static ip, and use iwconfig or ifconfig to configure one; if the dynamic ip address is used, run # dhclient wlan0 (the Nic code running) to obtain the IP address.
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.