First, before the installation of the preparatory work
[A] Check the installation of the wireless network adapter driver (checked by viewing the installation of the network interface)
Under the virtual terminal, enter:
If the following information is displayed, the wireless card driver is not installed
Lo no wireless extensions. # Local Loopback interface eth0 no wireless extensions. # Ethernet Interface
If the following information is displayed, it indicates that the
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 Fr Agment 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 the wireless card chip information
Under the virtual terminal, enter:
#> Lspci | Grep-i Network
Can get to the wireless card chip information, my is Rtl8191sevb
Note: If input lspci | grep -i eth
, get the Ethernet network card information
[c] Query kernel version
Under the virtual terminal, enter:
You can get the kernel information, and mine is 2.6.32-431.el6.x86_64.
Get the above information, we can go to the official website download Drive!
Second, installation drive
After decompression drive, execution make && make install
will feedback " make: *** /lib/modules/2.6.32-431.el6.x86_64/build:没有那个文件或目录
", but ls /lib/modules/2.6.32-431.el6.x86_64/
found that there is a build, then what happened? The ls -l /lib/modules/2.6.32-431.el6.x86_64/
installation failed by discovering that the build is a symbolic link /usr/src/kernels/2.6.32-358.el6.x86_64
that points to, but does not currently have the directory.
solution : Execute yum install kernel-headers kernel-devel gcc*
, after the installation is completed and then executed make clean
and make && make install
after, reboot the system.
Reboot will find that the wireless network card has been started, but the search does not find any hot spots, then restart it again!
Third, configure DNS
At this time the drive has been fixed, but still not on the net, ping a degree Niang also did not return IP, that must be the problem of DNS. Execute sudo vim /etc/resolv.conf
, add the nameserver just fine.
Iv. Introduction to relevant knowledge
1. Lo (Loopback interface):
As a virtual network interface, there is a system or application creation without driver control, which is used for sending and receiving packets within the system. (interprocess communication between systems)
2. Linux-headers: Linux Development header File
3. Linux-devel: Contains Linux header files, link libraries and profiles, etc., because the wireless network card driver calls some of the kernel functions, so when compiling the wireless network card driver (make && make install), Need to use Linux-devel
Summarize
Finally can surf the internet, later study on a little easier. Or you may wonder, how did you download the data before that? Mobile phone when the wireless signal receiver, USB direct connection can be online. Then execute iwconfig will see USB0 network interface Oh!