LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1099|回复: 4

Debian ETCH 完全光盘安装,桌面与NVIDIA驱动问题

[复制链接]
发表于 2007-3-1 09:57:40 | 显示全部楼层 |阅读模式
Debian装的ETCH CD1#,完全光盘安装完成。据说基本桌面系统能够完成并可以使用了。但昨晚试了下。发现有如下几个问题不能解决。
1、完全光盘安装后,重新启动进入的是字符下的LOGIN,用ROOT登录后,#vim /etc/apt/sources.list,加上了
deb http://mirrors.geekbone.org/debian etch main non-free contrib
#apt-get update && apt-get upgrade自动更新安装了部分东西。
#dpkg-renconfigure locales ,选择us-,zh_cn GB3212,GBK,GB18300,默认为GBK字体。

#uname -a
发现内核是2.6.18-3-486,看了xorg.conf的内容,发现已经有GEFORCE FX 5200显卡,nv,应该是它识别了我的显卡并安装了驱动了吧?!在显示器方便有的怪怪的,那个ID...什么的,后面是“乱码”, 再下一行是DPSM,我的是液晶显示啊。搞不懂。
用LINBOM登录,试运行桌面,#startx,屏幕上显示是黑白相间条纹的水平游动,一闪一闪的,就是不见登录框。半天了就是只见屏幕上黑白相间条纹的闪动。不知是什么原因。按下CTRL+ALT+F1,CTRL+C,回到字符下再用ROOT登录,查看了字体目录,/usr/share下面没有fonts目录。就是进不了桌面。晕,怎么办啊?
想想,先不管先,试装下Nvidia驱动,参考置精华安装Nvidia驱动一节时,
如果你是NVIDIA的显卡。那么你现在可以安装它的驱动。当然你要现确定9746的驱动支持你的显示卡吗 ?
先安装必须的编译环境:apt-get install xserver-xorg-dev pkg-config build-essential linux-header-`uname -r` (注意` 是左面TAB键上面的那个键)
然后wget http://us.download.nvidia.com/XFree8...-9746-pkg1.run

运行安装编译环境这个命令时,linux-header-2.6.18-XXX找不到。再上网去找,好不容易才发现有人的自己的BLOG里有UBUTUN最新编的内核2.6.20的DEB包,适用一般机器,先DOWN下来linux-image-2.6.20-XXX和linux-header-2.6.20XXX,装上后,重启用新内核进入,这时应该不用再装linux-header2.6.20XXX了吧?#apt-get install xserver-xorg-dev pkg-config build-essential, 进入安装Nvidia,
sh NVIDIA-......-9746-pkg1.run,一路回车。结果什么鸟都装不上。再试一次,发现要kernel-source or kernel-devel rpm之类的意思,试下:#apt-get install kernel-source
kernel-devel,没有这个包。是不是要安装开发包啊?怎么安装开发包啊?哪里去找?安装系统时也没有开发包的选项啊。CD#1里有没有 啊?

笨鸟啊,真折腾。
 楼主| 发表于 2007-3-1 11:33:35 | 显示全部楼层

这是我的XORG.CONF

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/X11R6/lib/X11/fonts/misc"
        FontPath        "/usr/share/fonts/X11/cyrillic"
        FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
        FontPath        "/usr/share/fonts/X11/Type1"
        FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load        "ddc"
        Load        "extmod"
        Load        "freetype"
        Load        "glx"
        Load        "int10"
        Load        "vbe"
EndSection

Section "InputDevice"
        Identifier        "Generic Keyboard"
        Driver                "kbd"
        Option                "CoreKeyboard"
        Option                "XkbRules"        "xorg"
        Option                "XkbModel"        "pc105"
        Option                "XkbLayout"        "us"
        Option                "XkbOptions"        "pc105"
EndSection

Section "InputDevice"
        Identifier        "Configured Mouse"
        Driver                "mouse"
        Option                "CorePointer"
        Option                "Device"                "/dev/input/mice"
        Option                "rotocol"                "ImPS/2"
        Option                "Emulate3Buttons"        "true"
EndSection

Section "Device"
        Identifier        "nVidia Corporation NV34 [GeForce FX 5200]"
        Driver                "nv"
        BusID                "CI:2:0:0"
        VideoRam        128423
        Option                "UseFBDev"                "true"
EndSection

Section "Monitor"
        Identifier        "Generic Monitor"
        Option                "DPMS"
        HorizSync        28-51
        VertRefresh        43-60
EndSection

Section "Screen"
        Identifier        "Default Screen"
        Device                "nVidia Corporation NV34 [GeForce FX 5200]"
        Monitor                "Generic Monitor"
        DefaultDepth        24
        SubSection "Display"
                Depth                1
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                4
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                8
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                15
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                16
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                24
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

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

#Section "DRI"
#        Mode        0666
#EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-1 11:55:14 | 显示全部楼层

安装nvidia的信息如下:

参照安装好编译环境后.运行sh NVIDIA.......-9746.dkg1.run后,出现下列的东西:
接受协议后.
No precompiled kernel interface was found to match your kernel;would you like the installer to attempt to download a kernel interface for your from the NVIDIA  ftp site (ftp://download.nvidia.com)?
回车后出现的是
No matching precompiled kernel interface was found on the NVIDIA ftp site.This means that the installer will need to compile a kernel interface for your kernel.
再回车后出现的是
E: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 system.for example be sure you have the "kernel-source or kernel-devel" RPM installed.If you know the correct kernel source files are installed .you may specity the kernel source path with the "--kernel-source-path" command line option.
最后就退出了.
不知这里说的 kernel-source \ kernel-devel在DEBIAN下是怎么安装上去的.试过apt-get install kernel-source kernel-devel 但结果提示说没有这个包.
回复 支持 反对

使用道具 举报

发表于 2007-3-1 13:29:57 | 显示全部楼层
sudo apt-get install linux-headers-`uname -r`
回复 支持 反对

使用道具 举报

发表于 2007-3-2 20:55:52 | 显示全部楼层
Post by heejun
sudo apt-get install linux-headers-`uname -r`

这个header也害我好长时间,最后改为headers才得以解决。
回复 支持 反对

使用道具 举报

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

本版积分规则

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