N卡官方驱动没装上,进了X用不了鼠标键盘。

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
yescookie
帖子: 172
注册时间: 2008-09-19 17:59

N卡官方驱动没装上,进了X用不了鼠标键盘。

#1

帖子 yescookie » 2009-03-13 23:34

郁闷,按着论坛安装N卡官方驱动的教程.出来这样的错误

代码: 全选

No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
ERROR: 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; on Red Hat Linux systems, for example, be sure you have the
   'kernel-source' rpm installed.   If you know the correct kernel source
   files are installed, you may specify the kernel source path with the
   '--kernel-source-path' commandline option.
ERROR: Installation has failed.   Please see the file
   '/var/log/nvidia-installer.log' for details.   You may find suggestions
   on fixing installation problems in the README available on the Linux
   driver download page at www.nvidia.com.
然后google下,说要这样

代码: 全选

sudo apt-get install build-essential pkg-config xserver-xorg-dev linux-headers-`uname -r`
给照做了,还是老样子的错误。
现在进到X,鼠标用不了,键盘也用不了。
怎么办。。。。
实在没办法只有再重装了。。。
pengliang
帖子: 9
注册时间: 2008-11-02 21:11

Re: N卡官方驱动没装上,进了X用不了鼠标键盘。

#2

帖子 pengliang » 2009-03-14 12:32

建议你到http://myubuntu.dreamhosters.com下载myUbuntuV2(中文加强版,集成了一些常用软件,包括 java build-essential pkg-config xserver-xorg-dev linux-headers-`uname -r` 等),再按照论坛安装N卡驱动的方法安装,应该不会出现问题

1.到nvidia官网下载最新驱动,我下载的是NVIDIA-Linux-x86-180.29-pkg1.run

2、删除原驱动包

sudo apt-get --purge remove nvidia-glx nvidia-glx-new

然后删除 /lib/linux-restricted-modules/2.6.22-14-generic/文件夹下面带有nvidia字样的内容,这里是内核自带的驱动


再检查一下这两个文件是否存在,/etc/init.d/nvidia-glx /etc/init.d/nvidia-kernel 如果存在,删除掉。


3、安装要用到的软件(myUbuntuV2里已经有了,但最好还是运行一下)

sudo apt-get install build-essential pkg-config xserver-xorg-dev linux-headers-`uname -r`


安装编译包。


4、备份(可以略过这步)

备份文件是一个好习惯。

sudo cp /etc/default/linux-restricted-modules-common ~/linux-restricted-modules-common.backup

sudo cp /etc/X11/xorg.conf ~/xorg.conf.backup


5、禁止系统使用默认的驱动

sudo gedit /etc/default/linux-restricted-modules-common

在最后的双引号中添加nv nvidia_new,即把文件中的“”,改成“nv nvidia_new”

如果前面第二步删除完整了其实也可以不用执行这一步。


6、将后面的操作记录在纸上,因为后面会完全在终端字符界面下操作。


7、停止GDM进程

sudo /etc/init.d/gdm stop

按Ctrl+Alt+F1,登录后进入第7步。


8、安装驱动

进入下好的驱动所在目录

执行:sudo sh NVIDIA-Linux-x86-173.08-pkg1.run


安装过程中


如果提示有旧驱动,询问是否删除旧驱动,选Yes;

如果提示缺少某某模块(modules),询问是否上网下载,选no;

如果提示编译模块,询问是否进行编译,选ok;

如果提示将要修改Xorg.conf,询问是否允许,选Yes;


接下来就是等待安装完成。


9、安装完成就回到终端,重启GDM

sudo /etc/init.d/gdm restart


如果失败,就重启机子:sudo shutdown -r now


好了,当看到NV的logo后,才表示安装成功。


如果不想看NVIDIA的LOGO,可以修改 /etc/X11/xorg.conf

在Section "Device"中添加Option "NoLogo" "True"


如:

Section "Device"

Identifier "通用显示卡"

Driver "nvidia"

Option "NoLogo" "True"

EndSection


10.显示高级设置

如果想进行显示方面的高级设置,在终端下输入:nvidia-settings命令。


左边第二项是设置分辨率(server display configuration),从右边的resolution中选择分辨率,再点击apply,预览一下,不好取消就行了。


至此,安装完毕。
回复