After installing the Linux system, the first step is to install the NIC driver. if it is a wired Nic, Linux can identify it by itself, but for users who use a USB wireless Nic, it's time to get stuck. After installing the CentOS6.5 (64bit) system, I successfully installed the driver of the USB wireless network card with the help of the following blog. Http://www.linuxdiyf.com/viewarticle.php? Id = 81347 the following record is that after I install the USB wireless network card drive and install the Linux system, the first step is to install the driver of the network card. if it is a wired network card, Linux can identify it by itself, however, users who use a USB wireless Nic will have to worry about it.
After installing the CentOS6.5 (64bit) system, I successfully installed the driver of the USB wireless network card with the help of the following blog.
Http://www.linuxdiyf.com/viewarticle.php? Id = 81347
The following describes how to install the USB Wireless NIC driver. I hope it will be helpful to anyone who is new to Linux or who has encountered similar problems:
------------------------------------- Split line -------------------------------
I installed a Wireless NIC driver on a desktop with CentOS 6.5 (64-bit). The desktop version is GNOME 2.28.2. The newly installed Linux system comes with a browser. you can also see "add/delete software" under System> management ".
Part 1 preparations
1. if the development environment (gcc, g ++) has not been installed in Linux, you need to move your computer to a place where you can access the Internet through a wired network.
2. to begin.
3. prepare the NIC driver for Windows. Generally, when purchasing a USB wireless network card, merchants will put these drivers in the attached CD. The driver suffix is. inf, and they can also be copied to the USB disk.
Part 2 installation
1. if the gcc and g ++ development environments are not installed, install the development environment first. Check whether the command for installing the development environment is gcc -- version. if the gcc version information is displayed, it indicates that the development environment has been installed. skip this step.
(A) access the network through a wired network
(B) use the shortcut key Ctrl + Alt + F2 to switch to another task window and log on with the root account and password. the root account username is root and the password is set by yourself.
(C) use the yum groupinstall "Development Tools" command to install the Development environment
(D) use gcc -- version to check whether the installation is correct.
2. the shortcut key Ctrl + Alt + F1 can be switched back to the desktop. in the system-> Management-> add/delete software area, you can search for the kernel and install or update it, depending on whether it is updated or not.
The following commands must be run as the root account. because the root account cannot be used for logon on the desktop, the shortcut key Ctrl + Alt + F2 is used to switch and then the root account is used to log on to the command line.
3. unzip the tar-zxvf ndiswrapper-1.59.tar.gz
4. ndiswrapper-1.59: cd ndiswrapper-1.59
5. Compile: make // I have $ path $/proc. c: 64: error: redefinition of the error message of 'pde _ data', set proc. no error is reported after the name of PDE_DATA in file c is changed to PDE_DATA1.
6. Installation: make install // if the default installation path is not used, you can use. configure -- prefix = "/etc/local" to specify the installation directory. // This directory is self-built.
7. view the installed version ndiswrapper-v // I have successfully installed it. the displayed information includes version: 1.59.
8. go to the driver directory for Windows: cd $ path $/drivers
9. install the Wireless NIC driver: ndiswrapper-I netathuwx. inf // I have successfully installed a 64-bit Windows XP driver. if not, try a few more. try Win7 and Vista. Drivers of different NICs have different file names.
10. check whether the driver is installed: ndiswrapper-l // I have a message "netathuwx: driver installed", indicating that the driver is successfully installed. Although there are still several pieces of information: "netathur: invalid driver !" But they do not affect your use.
11. write the configuration file and run the following three commands in sequence:
Ndiswrapper-m
Ndiswrapper-ma
Ndiswrapper-mi
12. automatically load the module after startup: modprobe ndiswrapper
Part 3 configuration
1. configure the wpa_supplicant.conf file:
Vi/etc/wpa_supplicant/wpa_supplicant.conf
Set the file content:
Ctrl_interface =/var/run/wpa_supplicant Ctrl_interface_group = wheel Network = { Ssid = "any" Key_mgmt = NONE } |
2. configure the wpa_supplicant file:
Vi/etc/sysconfig/wpa_supplicant
Set the file content:
# Wlan0 and wifi0 # INTERFACES = "-iwlan0-iwifi0" INTERFACES = "-iwlan0" # Ndiswrapper and prism # DRIVERS = "-Dndiswrapper-Dprism" DRIVERS = "-Dndiswrapper" |
3. scan your AP with iwlist scanning // A lot of information appears in my successful configuration
4. after system-> Management-> service-> NetworkManager starts it, its icon is displayed in the upper right corner.
5. click this icon to list your AP and select it for connection. during the connection process, enter the encryption password of the AP (sometimes twice ).
This is complete. The encryption type of your AP is automatically detected. If WEP is used, select a few more options for wireless security.