In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to set up a wireless network card under the command line of Centos 6.464-bit version". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to set up a wireless network card under the command line of Centos 6.464-bit version".
Recently, I set up a server on my desktop and installed the latest version of Centos 6.4. the latest 64-bit version. Because I don't want to use a network cable, I bought a PCI-E wireless card and used a wireless connection. The wireless network card model is: TENDA W311P 150m PCI wireless card
At first, it was thought that it might be necessary to install a driver under Linux to identify the network card, and Tengda also provided the Linux driver for the network card. But I compiled for a long time but did not compile in the past, very depressed. Finally, Centos 6.4supports this type of network card. Can be directly activated to use. Because through the desktop installation system, as long as you set the appropriate account and password, you can connect to the wireless. Indicates that there is no need to install the driver.
Because I installed a server, I chose the minimum installation. This requires setting up the wireless network card under the command line.
Because my router uses WAP/WAP2 mode. I searched the Internet and found that none of them could solve the problem. Finally, I found a wpa_supplicant tool, which is very easy to use. First: see if wpa_supplicant is installed, and if not, install it with yum install wpasupplicant. After the installation is successful, see if NetworkManager allows it, and if so, close it. / etc/init.d/NetworkManager stop then use wpa_supplicant to generate your account and key file wpapassphrase ssid password, you will see generate your account information
The code is as follows:
Network= {
Ssid= "yeestation"
# psk= "xxxxxxx"
Psk=471b1b8078ce952e9c9ed70d19fa8b4fbca67673ee881c7806a9a7458a4f640d
}
Copy the text to the end of / etc/wpasupplicant/wpasupplicant.conf and start wpasupplicant-iwlan0-B-c / etc/wpasupplicant/wpa_supplicant.conf to get IP:dhclient wlan0 automatically.
At this time, you will find that your wireless is connected.
If you need to start automatically, you can write a simple BASH script for $vim wlan0.sh
The code is as follows:
#! / bin/bash
Wpa_supplicant-iwlan0-B-c / etc/wpa_supplicant/wpa_supplicant.conf
Dhclient wlan0
Then add sh PATH/wlan0.sh to / etc/rc.local
In this way, the system will automatically connect to the wireless when it starts.
Thank you for your reading. The above is the content of "how to set up a wireless network card under the command line of Centos 6.464-bit version". After the study of this article, I believe you have a deeper understanding of how to set up a wireless network card under the command line of Centos 6.464-bit version, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.