QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1015|回复: 2

debian nvidia显卡安装步骤

[复制链接]
发表于 2004-6-29 17:38:13 | 显示全部楼层 |阅读模式
英文原文:http://www.knoppix.net/forum/viewtopic.php?t=10314
原作者:3p0cHx
感谢 Hiweed GNU/Linuxhttp://www.hiweed.com/ hiweed

总结一下主要解决了几个问题:(以内核为2.6.5为例)

1.内核源码的问题
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.5.tar.bz2
cp linux-2.6.5.tar.bz2 /usr/src
tar jxvf linux-2.6.5.tar.bz2
rm -f linux
ln -s linux-2.6.5 linux
cp /boot/config-2.6.5 linux/.config
cd linux/include
ln -s asm-i386 asm
cd ..
make oldconfig
patch -p1 <../knoppix-kernel26.patch
make include/linux/version.h (bug in cleaning process of linux-2.6.5)


2.gcc版本的问题

cd /usr/bin
rm -f gcc
ln -s gcc-2.95 gcc


3.驱动程序问题

# export CC=/usr/bin/gcc-2.95
# sh NVIDIA-Linux-x86-1.0-5336-pkg1.run(nvidia官方可下载)

修改/etc/X11/XF86Config-4 文件:
Drivers Section段
替换"nv" with "nvidia"

Modules Section段
注释掉
# "dri"
# "GLCore"
添加
Load "glx"

原文部分引用
---------------------------------------------------------------------


Only after finding the the instructions below, was I able to get the drivers running okay (with an additional twist at the end -see below). The thread can be found here: http://www.knoppix.net/forum/viewtopic.php?t=10329 but I'll go ahead and include them anyway in case someone else finds their way to my thread. These instructions took a while to complete, but they work. Thanks kelmo!! _________________________________________________________ wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.5.tar.bz2
cp linux-2.6.5.tar.bz2 /usr/src
tar jxvf linux-2.6.5.tar.bz2
rm -f linux
ln -s linux-2.6.5 linux
cp /boot/config-2.6.5 linux/.config
cd linux/include
ln -s asm-i386 asm
cd ..
make oldconfig
patch -p1 <../knoppix-kernel26.patch
make include/linux/version.h (bug in cleaning process of linux-2.6.5)
cd /usr/bin
rm -f gcc
ln -s gcc-2.95 gcc
cd /usr/src
apt-get update
apt-get install nvidia-kernel-common
nvidia-kernel-source
tar zxvf nvidia-kernel-source
cd modules/nvidia-kernel
debian/rules KSRC=/usr/src/linux-2.6.5
KVERS=2.6.5 kdist_image
cd ..
dpkg -i nvidia-kernel-2.6.5_1.0.5336-9_i386.deb
apt-get install nvidia-glx
cd /usr/bin
rm -f gcc
ln -s gcc-3.3 gcc

Thats the building and installation procedure done, now to let xserver know what driver to use. Edit /etc/X11/XF86Config-4 with your fav text editor and make the following mods:-
Drivers Section
Replace "nv" with "nvidia"

Modules Section
Remove or comment out lines including "dri" and "GLCore" Ensure there is a line with Load "glx" __________________________________________________________
After running this install, I tried to run
# kdm
but the server failed to start. The logs weren't specific, but it said "nvidia" not found, failed to start server.

I then went back to the console and ran
# export CC=/usr/bin/gcc-2.95
# sh NVIDIA-Linux-x86-1.0-5336-pkg1.run

Drivers installed sucessfully

Edited /etc/X11/XF86Config-4 - made necessary changes

The installer finished sucessfully and I finally now have the nvidia drivers running.Yay!! Still the Postal2 demo won't install, I get a greyed-out "Begin Install" button, but oh well I can try to find a different OpenGL game to try.

I got sick of the nvidia logo so I added this line to the device section of XF86config-4:-

Option "NoLogo" "true"
发表于 2004-6-30 10:54:25 | 显示全部楼层
debian下有m-a这些工具都不用,而且一般都有内核对应的nvidia包。
回复

使用道具 举报

 楼主| 发表于 2004-6-30 13:45:42 | 显示全部楼层
m-a 试过了,一样是内核源码的问题,这种方法应该比较适合非官方的简化版
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-5 10:29 , Processed in 0.043054 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表