一步一步解决centos6.5配置无线网卡的问题
2024-08-27 13:38:14
1、配置本地yum源
[local]
name=local
baseurl=file:///mnt/cdrom
enable=1
gpgcheck=0
2、安装libnl
rpm -ivh /mnt/cdrom/Packages/libnl-1.1.4-2.el6.x86_64.rpm
3、安装wpa_supplicant
rpm -ivh /mnt/cdrom/Packages/wpa_supplicant-0.7.3-4.el6_3.x86_64.rpm
4、修改wpa_supplicant配置文件
vim /etc/sysconfig/wpa_supplicant INTERFACES="-iwlan0" # Use the flag "-D" before each driver, like so:
# DRIVERS="-Dwext"
DRIVERS="-iDwext"
6、确定网卡类型
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)
7、确认是否有无线网卡驱动,如果输出如下,则证明没有无线网卡驱动
[root@test data]# iwconfig
lo no wireless extensions. eth0 no wireless extensions.
8、安装网卡驱动确定系统内核版本
[root@test rtl8192ce_linux_2.6.0005.1116.2010]# uname -r
2.6.32-431.el6.x86_64
9、下载对应的网卡驱动,编译安装
root@test rtl8192ce_linux_2.6.0005.1116.2010]# make
make: *** /lib/modules/2.6.32-431.el6.x86_64/build: No such file or directory. Stop.
make: *** [all] Error 2
10、如何输出上面的步骤,则需要安装kernel-devel
yum install kernel-devel -y
11、先做清理
make clean
12、安装gcc
[root@test rtl8192ce_linux_2.6.0005.1116.2010]# make
expr: syntax error
make[1]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
/usr/src/kernels/2.6.32-431.el6.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[1]: gcc: Command not found
13、再次编译make,输出如下,则编译通过
CC [M] /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/../../rtllib/rtllib_crypt_wep.o
LD [M] /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/r8192ce_pci.o
Building modules, stage 2.
MODPOST 1 modules
CC /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/r8192ce_pci.mod.o
LD [M] /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/r8192ce_pci.ko.unsigned
NO SIGN [M] /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/r8192ce_pci.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
14、编译安装
[root@test rtl8192ce_linux_2.6.0005.1116.2010]# make install
make[1]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
make[1]: Entering directory `/data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192'
make -C /lib/modules/2.6.32-431.el6.x86_64/build M=/data/rtl8192ce_linux_2.6.0005.1116.2010 CC=gcc modules
make[2]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
Building modules, stage 2.
MODPOST 0 modules
make[2]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
find /lib/modules/2.6.32-431.el6.x86_64 -name "r8192ce_*.ko" -exec ls -l {} \;
find /lib/modules/2.6.32-431.el6.x86_64 -name "r8192ce_*.ko" -exec rm {} \;
install -p -m 644 r8192ce_pci.ko /lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/net/wireless/
depmod -a
make[1]: Leaving directory `/data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192'
15、重启检查无线网卡已经ok
[root@test ~]# iwconfig
lo no wireless extensions. wlan0 802.11bgn ESSID:"HUAWEI-V4XJHU" Nickname:"rtl8192CE"
Mode:Managed Frequency=2.462 GHz Access Point: C8:14:51:A7:D2:18
Bit Rate=150 Mb/s
Retry:on RTS thr:off Fragment thr:off
Encryption key:C454-4CC5-9324-1F9D-AEF0-C306-5DE0-F0FC Security mode:open
Power Management:off
Link Quality=100/100 Signal level=-45 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 eth0 no wireless extensions.
最新文章
- [iOS]技巧集锦:UICollectionView内容下沉64像素原因和解决方案
- Mysql完全手册(笔记一,底层与内置函数)
- android studio学习之一
- BZOJ 4027 兔子与樱花
- [系统开发] Postfix 邮件管理系统
- Color About——First
- 使用摘要流获取文件的MD5
- php随机生成福彩双色球号码
- 行列的几种命名方式.line-.colume======.row-.col=========.tr-.td
- Ushare应用
- gallery 从最左边开始显示并且默认选中第一个
- 做SEO所要具备的四种能力
- java环境变量最佳配置
- SQL Server2008 安装失败后的解决办法
- Centos7 Jenkins日志过大
- Java基础--Eclipse使用
- 一篇文章彻底弄懂Base64编码原理
- RAND_MAX
- cx_Oracle读写clob
- android之RefBase