找回密码
 注册
查看: 699|回复: 0

Debian Sid装2.6.0内核和nvidia驱动

[复制链接]
发表于 2004-1-10 02:58:41 | 显示全部楼层 |阅读模式
安装kernel:
先apt-cache search kernel-image看看哪个是适合自己的kernel
然后安装
apt-get install kernel-image-2.6.0-1-6-k7
安装NV驱动:
编辑/etc/apt/sources.list,加入
[code:1]deb http://acm2.ustc.edu.cn/~roger/files/2.6 ./[/code:1]
然后安装:
apt-get update
apt-get install nvidia-glx nvidia-kernel-common nvidia-kernel-2.6.0-1-k7
或者是nvidia-kernel-2.6.0-1-686
加载modules:
编辑/etc/modules
加入nvidia
如果用的是PS/2鼠标还要加入psmouse模块鼠标才能使用。
修改/etc/X11/XF86Config-4:
# Load "GLcore"
# Load  "dri"
加入Load  "glx"
把Driver      "nv"改为Driver      "nvidia"
2.6的内核鼠标速度会比较快,可以删除一套鼠标配置。如我的XF86Config-4:

Section "InputDevice"
        Identifier        "Configured Mouse"
        Driver                "mouse"
        Option                "CorePointer"
        Option                "Device"                "/dev/psaux"
        Option                "Protocol"                "ImPS/2"
        Option                "ZAxisMapping"                "4 5"
EndSection

Section "InputDevice"
        Identifier        "Generic Mouse"
        Driver                "mouse"
        Option                "SendCoreEvents"        "true"
        Option                "Device"                "/dev/input/mice"
        Option                "Protocol"                "ImPS/2"
        Option                "ZAxisMapping"                "4 5"
EndSection

......

Section "ServerLayout"
        Identifier        "Default Layout"
        Screen                "Default Screen"
        InputDevice        "Generic Keyboard"
        InputDevice        "Configured Mouse"
        InputDevice        "Generic Mouse"
EndSection

把红色的部分删除。
使用新内核(grub):
修改/boot/grub/grub.conf,加入新内核的引导
title Debian (kernel 2.6.0)
        root (hd0,9)
        kernel /boot/vmlinuz-2.6.0-1-k7 ro root=/dev/hda10
        initrd /boot/initrd.img-2.6.0-1-k7
如果启动时出现以下内容:
[code:1]RAMDISK:image too big!
VFS:Cannot open root device "hda10" or unknow-block(0,0)
Please append a correct "root=" boot option[/code:1]
而不能进入系统。
可以修改/boot/grub/grub.conf的kernel行,加上ramdisk_size=8192:
kernel /boot/vmlinuz-2.6.0-1-k7 ramdisk_size=8192 ro root=/dev/hda10
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-12 08:41 , Processed in 0.044827 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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