English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
First, prepare before installation
[a] Check the installation status of the wireless network card driver (check the installation status of the network interface to check)
Enter the following in the virtual terminal:
#> iwconfig
If the following information is displayed, it indicates that the wireless network card driver has not been installed
lo no wireless extensions. # Local loopback interface eth0 no wireless extensions. # Ethernet interface
If the following information is displayed, it indicates that the driver has been installed
lo no wireless extension. eth0 no wireless extension. wlan0 Nickname: Mode:Managed Frequency=2.462 GHz Access Point: 8C:21:0A:57:C8:CA Bit Rate=300 Mb/s Retry:on RTS thr:off Fragment thr:off Power Management period:0us mode:All packets received Link Quality=100/100 Signal level=-48 dBm Noise level=-120 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[b] Query wireless network card chip information
Enter the following in the virtual terminal:
#> lspci | grep -i network
You can get the wireless network card chip information, mine is RTL8191SEvB
Note:If you enter lspci | grep -i eth, the information obtained is the network card information of the Ethernet
[c] Query kernel version
Enter the following in the virtual terminal:
#> uname -r
We can get the kernel information, mine is2.6.32-431.el6.x86_64
After obtaining the above information, we can download the driver from the official website!
Second, install the driver
After unzipping the driver, executing make && make install will feedback "make:" *** /lib/modules/2.6.32-431.el6.x86_64/build: No such file or directory /lib/modules/2.6.32-431.el6.x86_64/ But I found that there is a build, so what happened? Through ls -l /lib/modules/2.6.32-431.el6.x86_64/ Find that build is a symbolic link pointing to/usr/src/kernels/2.6.32-358.el6.x86_64, but the current directory does not exist, so the installation fails.
Solution: Execute yum install kernel-headers kernel-devel gcc* , install it first, and then execute make clean and make && make install after installation, and then restart the system.
After restarting, you will find that the wireless network card has started, but can't find any hotspots. Restart once more at this time!
Three, Configure DNS
At this point, the driver is ready, but you still can't go online. Ping the Baidu didn't return an IP, that must be a DNS problem. Execute sudo vim /etc/resolv.conf, just add nameserver.
Four, Introduction to Related Knowledge
1. lo (loopback interface):
As a virtual network interface, it is created by the system or application and does not require driver control, used for sending and receiving data packets within the system. (Inter-process communication of the system)
2. linux-headers: Linux development header files
3. linux-devel: Includes Linux header files, link libraries, and configuration files, etc. Since the wireless network card driver calls some kernel functions, you need to use Linux when compiling the wireless network card driver (make && make install).-devel
Summary
Finally, I can go online, and it will be a bit easier to learn from now on. Or you may wonder, how did you download materials before? You can go online by using the phone as a wireless signal receiver and connecting it directly via USB. At this time, executing iwconfig will show you the network interface of usb0!