安裝Nvidia Driver到Debian 5.0.3

  • user warning: Can't open file: 'sessions.MYI'. (errno: 145) query: SELECT COUNT(sid) AS count FROM sessions WHERE timestamp >= 1496071208 AND uid = 0 in /var/www/drupal-5.23/includes/database.mysql.inc on line 174.
  • user warning: Can't open file: 'sessions.MYI'. (errno: 145) query: SELECT DISTINCT u.uid, u.name, s.timestamp FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.timestamp >= 1496071208 AND s.uid > 0 ORDER BY s.timestamp DESC in /var/www/drupal-5.23/includes/database.mysql.inc on line 174.

各位,
我是Linux新手.昨晚在部舊電腦上安裝了Debian 5.0.3.但發現螢幕解像度祇有800*600和640*480,而更新頻率也祇有60Hz和54Hz.我上網找弓一些相關資料.有人話Debian安裝時不會安裝Nvidia的Driver.祇會安裝generic driver.要手動安裝Nvidia的Driver.
我也在網上找到相對應的Nvidia的Driver.
起初安裝時說gcc版本不對,我也安裝了相應的gcc版本.
但現在又出現以下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 and that they are properly configured; 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' command line option.
請問如何解決以上問題,令我可以安裝Nvidia Driver.

謝謝.

榮.

回應瀏覽選項

選擇你喜歡的顯示回應的模式,並點選「儲存設定」,以啟用你所做的變更。

Cebi

你好,Nvidia Driver要相關的kernel source做編譯,可試試以下方法︰

看看kernel version
# uname -a

找相關package
# apt-get update
# apt-cache -n search linux-headers

應該會有幾項 linux-headers-2.6.xx 的package,選擇相應的version安裝
# apt-get install linux-headers-2.6.xx

在debian lenny上,我是这样做的

#apt-get install build-essential linux-headers-$(uanme -r)
#cd /usr/src
#ln -s linux-headers-$(uname -r) linux
把NVidia的驱动复制到/usr/src
nvidia的驱动在其官方网站上有的下
然后ctrl + alt + f1进入tty1
#/etc/init.d/gdm stop
#cd /usr/src && sh Nvidia-Linux-XXXXX.run
#startx
系统-》首选项-》NVIDIA X SERVER SETTINGS—》save to X configuration file
重启计算机就好了。