Chinaunix首页 | 论坛 | 博客
  • 博客访问: 700272
  • 博文数量: 771
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4910
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-18 11:35
文章分类

全部博文(771)

文章存档

2011年(1)

2008年(770)

我的朋友

分类:

2008-09-18 11:43:47

我的系统是Ubuntu7.10,其他UBUNTU发行版请参考安装。

 

1、下载驱动

在下下载的就是NVIDIA-Linux-x86-100.14.23-pkg1.run这个文件

2、删除原驱动包

sudo apt-get --purge remove nvidia-glx

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

再检查一下。

/etc/init.d/nvidia-glx

/etc/init.d/nvidia-kernel

这两个文件是否存在,删除。

 

3、安装要用到的软体

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

安装编译包

 

4、备份

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

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

 

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

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

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

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

 

6、停止GDM进程

sudo /etc/init.d/gdm stop

按Ctrl+Alt+F1,登录后。

 

7、进入下好的驱动所在目录(用ls命令确认文件在不在)

sudo sh NVIDIA-Linux-x86-100.14.23-pkg1.run

安装过程中,

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

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

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

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

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

 

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

sudo /etc/init.d/gdm restart

 

ok了,当看到NV的logo后,安装成功。

 

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

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

 

如:

Section "Device"

Identifier "通用显示卡"

Driver "nvidia"

Option "NoLogo" "True"

EndSection


--------------------next---------------------

阅读(317) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~