新人的LINUX手记--显卡安装

来源:互联网 发布:java 停车场计费系统 编辑:程序博客网 时间:2024/06/16 20:32

最近很是无聊,把本本拿出来换个系统换个心情。于是决定把越跑越慢的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,登陆进去,很好.东西变小了.终于不碍眼了.

 

嘛~显卡的问题解决了.

原创粉丝点击