Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

筆記:在內顯正常的機器上裝 Ubuntu 14.04,卻被 N 卡與 USB 網卡各擋一次

這兩天在桌上型電腦上用 U 盤安裝 Ubuntu,一路波折不少,這篇做個大致記錄。我裝的是 14.04 LTS,用 U 盤開機安裝。

問題一:開機過程卡在黑屏

原因是 Nvidia 顯卡驅動尚未安裝。解法是在 grub 選單準備進入 installing Ubuntu 時按 e 編輯設定,在 no splash 後面加上 nomodeset,再按 F10 就能順利進入安裝程式。

安裝結束重開後黑屏又出現一次,同樣是驅動問題:重開時按住 shift 進入 grub,一樣按 e 編輯 Ubuntu 的啟動選項,在 no splash 後補上 nomodeset。

成功進系統後,要把 nomodeset 永久寫進 grub,做法是編輯設定檔:

sudo gedit /etc/default/grub

在 GRUB_CMDLINE_LINUX_DEFAULT 後面加上 nomodeset:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

然後更新 grub,黑屏問題就徹底解決:

sudo update-grub

問題二:USB 無線網卡一直斷線

這是 Ubuntu 對 USB 網卡驅動支援不佳造成的,典型症狀是 ping 內網路由器延遲高得離譜,動輒破百毫秒:

$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=7 ttl=63 time=201 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=63 time=198 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=63 time=12.7 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=63 time=296 ms
64 bytes from 192.168.1.1: icmp_seq=12 ttl=63 time=218 ms
64 bytes from 192.168.1.1: icmp_seq=13 ttl=63 time=203 ms
64 bytes from 192.168.1.1: icmp_seq=14 ttl=63 time=7.91 ms

解法是自己編譯驅動。先用 lsusb 查型號,我的卡是 RTL8192CU:

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter

驅動原始碼在某個 git 專案裡,所以先裝 git:

sudo install git

接著抓下專案並編譯安裝:

git clone https://github.com/lwfinger/rtlwifi_new
cd rtlwifi_new
make
sudo make install

重開機之後一切正常。

問題三:Linux 下的 Nvidia 顯卡驅動

用 Ubuntu 自帶的 apt-get 安裝時出現大量相依性問題,最後我是從 Nvidia 官網下載 CUDA 安裝程式完成驅動安裝的。過程中記得先停掉 X server,Ubuntu 下對應的服務是 lightdm:

service lightdm stop

裝完再把它拉回來即可。

Copyright © Linux教程網 All Rights Reserved