我的机器是AMD Athlon x2 4000,显卡nVidia Geforce 7600GS,
到nvidia官方网站下载驱动NVIDIA-Linux-x86-260.19.36.run放到/usr/src(目录随便只要你记得就行)
Ctrl+Alt+F1 切换到tty1
debian login:root
password:*******
root@www.linuxidc.com:~# /etc/init.d/gdm stop(停止gdm)
root@www.linuxidc.com:~# apt-get update
root@www.linuxidc.com:~# apt-get install build-essential linux-headers-$(uname -r)
root@www.linuxidc.com:~# cd /usr/src && sh NVIDIA-Linux-x86-260.19.36.run
Verifying archive integrity… OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 260.19.36………………………………………………………………………………………………………
nvidia-installer: Error opening log file ‘/var/log/nvidia-installer.log’ for writing (Permission denied); disabling logging.
安装过程中会有出错信息保存在/var/log/nvidia-installer.log
经常的错误提示是编译kernel的cc版本与debian默认的cc版本不同
root@www.linuxidc.com:~# ls -l /usr/bin/gcc*
lrwxrwxrwx 1 root root 16 2月 3 23:54 /usr/bin/gcc -> /usr/bin/gcc-4.4
-rwxr-xr-x 1 root root 208232 9月 21 21:44 /usr/bin/gcc-4.3
-rwxr-xr-x 1 root root 217068 11月 14 20:31 /usr/bin/gcc-4.4
-rwxr-xr-x 1 root root 2018 7月 11 2010 /usr/bin/gccmakedep
这里我安装的gcc有4.3和4.4两个版本,/usr/bin/gcc指向的是gcc-4.4
我的错误提示(/var/log/nvidia-installer.log)要使用gcc-4.3
还有很多错误信息看下nvidia-installer.log来应对就ok.
root@www.linuxidc.com:~# ln -sf /usr/bin/gcc-4.3 /usr/bin/gcc
root@www.linuxidc.com:~# /etc/init.d/gdm start
happy@debian:~$ sudo nvidia-settings (一定要以root运行)
找到 XServer Display Configuration项
点击 Save to X Configuration file
happy@debian:~$ sudo reboot