Saturday, December 28, 2013

在Ubuntu上安裝Edimax usb adapter驅動

0

2013-12-28

昨天衝動的買了顆Micron Crucial M500 ,僅為了安裝Ubuntu,想嘗試看看完全擺脫M$,會有這樣的想法是前陣學習Ubunut無力時看到《完全用Linux工作》,剛好這陣子頗有時間,Let's do it!

簡單備份過資料,開始擔心裝置的driver問題,以往安裝完Windows後還需要安裝chipset、網卡、graphical card等的driver,可以預想在Linux下應該需要設定更多細節,令我訝異的是安裝進行到一半時Ubuntu有抓到Edimax網卡,可是很不穩定,稍微查詢了一下,好像是Ubuntu會把一些chipset的driver編入kernel,但更新不如原廠頻繁,故對硬體來說僅是"堪用"而已。

我所使用的這顆Edimax EW-7811Un是使用RealTek 8188cus chipset,Ubuntu內建對應的driver有以下幾種:

  • rtl8192cu
  • rtl8192c_common
  • rtlwifi

知道問題後解決步驟如下:
  • 下載對應驅動
  • 把原生驅動加入blacklist,使之無法載入

    sudo gedit /etc/modprobe.d/blacklist.conf

    並在檔案最後加上
    # Blacklist native RealTek 8188CUs drivers
    blacklist rtl8192cu
    blacklist rtl8192c_common
    blacklist rtlwifi

    The blacklist command will blacklist a module so that it will not be loaded automatically, but the module may be loaded if another non-blacklisted module depends on it or if it is loaded manually.
    However, there is a workaround for this behaviour; the install command instructs modprobe to run a custom command instead of inserting the module in the kernel as normal, so you can force the module to always fail loading

  • 解壓縮下載的驅動程式,開啟終端機切換到解壓後的目錄裡,裡頭應該會有一個,install.sh檔,執行:
    sudo bash install.sh
  • log-out and log-in,收工!

Refence


0 comments :

Post a Comment