前言:linux
爲了擺脫網線的束縛,我買了個無線網卡; widnows 上好用,易安裝。linux 上,按照自帶教程上去作,沒有成功。c++
後來在搜索了多篇 解決問題的文章。 再加上本身的方法,終於完成了。git
貌似信號還能夠。暫時沒有發現不穩定的情況。
github
正文:ubuntu
網卡品牌:EDUP EP-MS1578 【外話:作產品的,說好支持linux ,卻還讓用戶搞的這麼麻煩。】
less
系統:UBUNTU 15.0.4ui
無限網卡芯片:8192 CU;this
操做步驟:es5
1, 官網下載驅動包。spa
2,找到 install.sh
3, 爲該 文件增長 可執行權限。 chmod 771 install.sh
4, cd 當前目錄; 運行 : ./install.sh
此時會要求 輸入來嗯次 ROOT 權限密碼。
5,會提示失敗。 可是沒有關係。 下面開始進行修改。
上面的操做,僅僅是爲了 把driver 下的一些包解壓出來。
注意:以後 不能再使用 ./install.sh 了。
6, 添加了無限ID 號碼。
將USB 無線網卡插在電腦USB上。 使用命令行 lsusb 查看 對應的device id; 例如個人是abda:8178 (...RealTek)
修改文件:/home/cl-linux/Downloads/wifi/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/usb_intf.c
在文件中找到8192cu 在最後面增長這一條。 注意:根據你添加的位置 決定在上一行是否 須要添加 "\" 。 會寫makefile 的應該知道這是什麼意思。
{USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8178)},
若是這個文件有報錯,那麼就是這一行你添加的不對,執行檢查一下。其餘的文章上也有。
2, 下載這個文件並替換:
continue to compile:
find your driver directory , cd $driver directory
make
3,報錯:
/home/cl-linux/Downloads/wifi/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/usb_intf.c:1581:52: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
^
/home/cl-linux/Downloads/wifi/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/usb_intf.c:1581:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
看到這是兩個debug 行, 就直接block 了。
4,編譯經過,直接 make install
成功。
5,禁掉默認驅動: 很關鍵。
在命令行中輸入【 sudo gedit /etc/modprobe.d/blacklist.conf 】,在文件的最後添加上:
blacklist rtl8192cu blacklist rtl8192c_common blacklist rtlwifi
6,重啓。
恭喜: 您能夠使用無線網卡了。
----------------------------------
on ubuntu 14.04:
this works fine before i installed [
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
]
only after I bloked the balck list that The WIFI could continue working.
By removing the newly instations cant resolve the problem either.
And the speed is mush more slower than before.
No good solution foud yet.