標籤:使用 os 檔案 io re c
聯想thinkpad E430 ,安裝上centos後,無線網卡一直無法使用,經曆了艱苦曲折到網卡驅動安裝過程,曆時2個晚上終於開心到用上無線網卡。
1.查看無線網卡到具體型號
[[email protected] local]# lspci
09:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
可見對應的驅動為:RTL8188CE
或者
[[email protected] local]# lspci |grep Network
09:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
相比較第二個比較方便尋找。直接lspci會把所有pci上到裝置都列出來,尋找起來比較麻煩。
2.下載
下載相應版本,我的是64位,看好自己到核心版本。然後選擇相應到版本驅動下載到本地
ftp://WebUser:[email protected]/cn/wlan/rtl8192ce_linux_2.6.0006.0321.2011.tar.gz
[[email protected] ~]# mkdir /usr/local/mayfio
[[email protected] ~]# cd /usr/local/mayfio/
[[email protected] mayfio]# wget ftp://WebUser:[email protected]/cn/wlan/rtl8192ce_linux_2.6.0006.0321.2011.tar.gz
[[email protected] mayfio]# chmod 777 rtl8192ce_linux_2.6.0006.0321.2011.tar.gz
[[email protected] mayfio]# tar -zxvf rtl8192ce_linux_2.6.0006.0321.2011.tar.gz
3.準備安裝包
[[email protected] mayfio]# yum install kernel-headers kernel-devel gcc
4.安裝
[[email protected] rtl8192ce_linux_2.6.0006.0321.2011]# make
這時候如果提示如下錯誤
make: *** /lib/modules/2.6.32-358.el6.x86_64/build: 沒有那個檔案或目錄。 停止。
make: *** [all] 錯誤 2
解決辦法
[[email protected] 2.6.32-358.el6.x86_64]# rm build -rf
[[email protected] 2.6.32-358.el6.x86_64]# ln -s /usr/src/kernels/2.6.32-358.6.1.el6.x86_64/ build
然後繼續make即可
[[email protected] mayfio]# make
make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.6.1.el6.x86_64′
[[email protected] mayfio]# make install
然後
# reboot
系統重啟後,就可以看到無線網卡啦。
[[email protected] ~]$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 802.11bgn ESSID:”nicai” Nickname:”rtl8192CE”
Mode:Managed Frequency=2.462 GHz Access Point: 84:C9:B2:32:01:8C
Bit Rate=72 Mb/s
Retry:on RTS thr:off Fragment thr:off
Power Management:off
Link Quality=100/100 Signal level=0 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