1. 程式人生 > >新人的LINUX手記--顯示卡安裝

新人的LINUX手記--顯示卡安裝

最近很是無聊,把本本拿出來換個系統換個心情。於是決定把越跑越慢的D版XP換掉。這次下載了FEDORA 12 X64,總是拿雙核64位的CPU來跑32位系統已經讓我不爽很久了。

系統裝好了以後發現有點不對勁,@ @

東西好大。看來是解析度的問題,系統-首選項-顯示......好像改不了.

PS:在linux下面不裝顯示卡是不能改解析度的

沒辦法,我的顯示卡是NVIDIA8400G M

去找吧 在官方網站:http://www.nvidia.cn/Download/index.aspx?lang=cn就可以找的到.

PS:到同意並下載的那一步推薦 右鍵-複製連結地址 應用程式-系統工具-終端 在裡面打wget -c [貼上剛才複製的地址]

少女祈禱中....

下載好了,安裝開始.

首先切換到字元MODE ALT+CTRL+F2  然後輸入使用者名稱,密碼

PS:這裡和WIN的區別,這裡不會顯示你輸入的字元,所以不要為了什麼也沒有而莫明奇妙,憑著感覺按下去敲ENTER就可以了

切換到ROOT,因為這裡要ROOT許可權才可以做su root

輸入密碼

INIT 2回車

sh [顯示卡檔名]

PS:不要為名字太長而煩惱,打幾個字母然後按TAB鍵就可以

進入嚮導式的東西.然後......

順利的話就會裝上,那恭喜你.要是不順利的話就會出現我這樣的問題

ERROR: Unable to find the development tool `cc` in your path; please make sure
that you have the package 'gcc' installed. If gcc is installed on your
system, then please check that `cc` is in your PATH.

意思就是沒有找到你的GCC.沒辦法被中止了安裝.

回到圖型介面 startx

不管它是沒有裝還是版本不對,再裝一下就解決了.開啟終端 yum install gcc

再切到字元 然後INIT 2

sh 驅動檔案

少女祈禱中.....

又報錯了

Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.

這個錯誤大概是要一些核心編譯檔案.而我們現在又沒有

再回到圖形下面,開啟終端 yum install kernel-devel

裝好後在 /usr/src/kernels/[你的核心版本號]下面剛才錯誤裡所說的--kernel-source-path 指的就是它

繼續回到字元,關掉X(init 2),sh 驅動名 --kernel=source-path=/usr/src/kernels/[版本號那個目錄]

少女祈禱中......

這次感覺比較好了,可以看到進度條了......

終於,又報錯了

ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.

大段大段的E文很煩,但是用LINUX就是不斷髮現問題解決問題的過程.這個問題引發的原因大概是因為你的核心和你剛才下載的KERNEL-DEVEL版本不一樣造成的.好了.我們繼續往返吧.反正這麼多次也不差這一回了

終端 yum update kernel

少女祈禱中......

裝好以後再到字元下關掉X,sh 驅動名 --kernel-source-path=/usr/src/kernels/[版本號資料夾]

少女祈禱中......

終於這次成功了,重啟我們的計算機出現了NVIDIA,登陸進去,很好.東西變小了.終於不礙眼了.

嘛~顯示卡的問題解決了.