红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Debian

Debian显卡安装

发布时间:2007-07-16 16:36:23来源:红联作者:nguin
编译加载成功,多谢。

我的源是
deb http://debian.cn99.com/debian/ testing main contrib non-free
deb-src http://debian.cn99.com/debian/ testing main contrib non-free

deb http://mirrors.geekbone.org/debian/ testing main contrib non-free
deb-src http://mirrors.geekbone.org/debian/ testing main contrib non-free

deb http://security.debian.org/ testing/updates main

能找到这些包。

我的步骤整理如下:
1.安装内核相对应的 kernel-headers
# apt-get install kernel-headers-$(uname -r)

2,安装 nvidia-kernel-source,安装 nvidia-kernel-common
# apt-get install nvidia-kernel-source nvidia-kernel-common

3,进入/usr/src,将nvidia-kernel-source解压
# cd /usr/src
# tar xzf nvidia-kernel-source.tar.gz

4,设变量
# cd modules/nvidia-kernel
# export KVERS=$(uname -r)
# export KSRC=/usr/src/kernel-headers-$KVERS

5.编译模块
# cd /usr/src/modules/nvidia-kernel
# debian/rules binary_modules

6.安装生成的deb包
# dpkg -i /usr/src/modules/nvidia-kernel-*.deb

7.安装NVIDIA glx
# apt-get install nvidia-glx

8.修改X配置
# editor /etc/X11/XF86Config-4

"Module" section
Load "glx"

删除"dri" "GLCore"模块的加载

"Device" section
Driver "nvidia"

9.添加video用户组
# addgroup --system video
# adduser $USER video

$USER 是用来看影视的用户名
系统似乎已经建立过video用户组了。

10.确保nvidia模块在内核启动时加载
# grep -q ^nvidia /etc/modules || echo nvidia >> /etc/modules
文章评论

共有 0 条评论