新装了Ubuntu系统,但显示器很闪(虽然调了分辨率,但仍然没有改善),想起来需要装个驱动,然后在网上乱搜一通,资料很多,但最后还是很没装成功.
(1) 到NVIDIA官网上找到驱动:http://www.nvidia.com/object/linux_display_ia32_1.0-4363.html,细细地阅读了上面的readme.txt, 了解到NVIDIA的驱动使用的是一个包的模式(即一个包就支持所有出厂的显卡),这回省得去找显示的型号了,因为我的显示有点旧,找起来比较费劲.
(2) 要装所下载的驱动还得满足一个条件:退出xwindow模式,即要在终端模式下安装,由于对这个不了解,只能再百度了,找到两个方法: 1)到/etc/rc2.d下把S30gdm文件名改成s30gdm(即把S改成小写),这样启动的时候就直接能够启动到终端了,而不是桌面了; 2)使用sudo /etc/init.d/gdm stop把桌面停掉,需要时再使用sudo /etc/init.d/gdm start把桌面启动回来
(3) 根据网上提示,还需要删除一些原来默认有的驱动,具体的是参照:http://www.linuxeden.com/html/hardware/20071026/36553.html
(4) 启动到终端,然后运行:sh NVIDIA-Linux-x86-1.0-5336-pkg1.run,结果是没有装成功,log信息为:
[quote]nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Sep 21 11:41:06 2008
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com
Using: nvidia-installer ncurses user interface
-> License accepted.
-> 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: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
ERROR: The kernel header file
'/lib/modules/2.6.22-14-generic/build/include/linux/modversions.h' does
not exist. The most likely reason for this is that the kernel header
files in '/lib/modules/2.6.22-14-generic/build/include' have not been
configured.
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.[/quote]
(5) 虽然没有装成功,但感觉桌面好了一点,不知道是不是眼睛习惯了.而对linux还有待继续了解和学习,以后再回来解决这个问题.
(1) 到NVIDIA官网上找到驱动:http://www.nvidia.com/object/linux_display_ia32_1.0-4363.html,细细地阅读了上面的readme.txt, 了解到NVIDIA的驱动使用的是一个包的模式(即一个包就支持所有出厂的显卡),这回省得去找显示的型号了,因为我的显示有点旧,找起来比较费劲.
(2) 要装所下载的驱动还得满足一个条件:退出xwindow模式,即要在终端模式下安装,由于对这个不了解,只能再百度了,找到两个方法: 1)到/etc/rc2.d下把S30gdm文件名改成s30gdm(即把S改成小写),这样启动的时候就直接能够启动到终端了,而不是桌面了; 2)使用sudo /etc/init.d/gdm stop把桌面停掉,需要时再使用sudo /etc/init.d/gdm start把桌面启动回来
(3) 根据网上提示,还需要删除一些原来默认有的驱动,具体的是参照:http://www.linuxeden.com/html/hardware/20071026/36553.html
(4) 启动到终端,然后运行:sh NVIDIA-Linux-x86-1.0-5336-pkg1.run,结果是没有装成功,log信息为:
[quote]nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Sep 21 11:41:06 2008
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com
Using: nvidia-installer ncurses user interface
-> License accepted.
-> 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: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
ERROR: The kernel header file
'/lib/modules/2.6.22-14-generic/build/include/linux/modversions.h' does
not exist. The most likely reason for this is that the kernel header
files in '/lib/modules/2.6.22-14-generic/build/include' have not been
configured.
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.[/quote]
(5) 虽然没有装成功,但感觉桌面好了一点,不知道是不是眼睛习惯了.而对linux还有待继续了解和学习,以后再回来解决这个问题.