LinuxSir.cn,穿越时空的Linuxsir!

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

问个白痴问题

[复制链接]
发表于 2005-12-26 14:47:24 | 显示全部楼层 |阅读模式
我的主板是集成显卡的PM800的,要编译显卡驱动要用到内核源码
不知道怎么用apt-get来载源码回来,看帮助知道是apt-get source 但哪个包名应该写什么呢?
用的是2.6的内核

如果能顺便帮我看下怎么装这个驱动更好了。显卡驱动地址
http://www.viaarena.com/default. ... 60&SubCatID=110
发表于 2005-12-26 15:08:43 | 显示全部楼层
apt-get kernel-source
回复 支持 反对

使用道具 举报

发表于 2005-12-26 15:26:17 | 显示全部楼层
不用安装所有的源码,只用安装内核头文件就可以了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-26 15:27:35 | 显示全部楼层
如果只是安装头文件,又打什么呢?
回复 支持 反对

使用道具 举报

发表于 2005-12-26 15:39:49 | 显示全部楼层
  1. aptitude install kernel-headers-`uname -r`
复制代码

如果不对,就用这个
  1. aptitude install linux-headers-`uname -r`
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-26 17:36:52 | 显示全部楼层
好的,明天试试。
谢谢楼上的几位朋友
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-27 15:25:37 | 显示全部楼层
又有问题了,源码载了
显卡驱动中说2.6的话要
make menconfig
来选个模块上去的,
make menconfig 之后说缺少个N***什么的驱动啊
而且到显卡驱动下面make说找不到内核源码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-27 15:29:30 | 显示全部楼层
这段是显卡安装说明里面的,还有就是我的fcitx不能用Ctrl+空格来换输入法的,fcitx是运行了的。


[PHP]Building and loading viafb device driver for Linux kernel 2.6
---------------------------------------------------------------------------
Building fbcon console module.
    Step 1: Change to folder /usr/src/linux-2.6.
            # cd /usr/src/linux-2.6.
              The linux-2.6 directory depend on your kernel version, so if your kernel version is
              2.6.5-1.358, you should type "/usr/src/linux-2.6.5-1.358".
    Step 2: Configuring the kernel module
            # make menuconfig
    Step 3: Select fbcon item to module.
            -> Device Drivers->Graphics support->Console display driver support->
               <M> Framebuffer Console support
    Step 4: Save the current setting and quit.
    Step 5: Make fbcon module.
            # make modules
              Note that if no any error, this step will be produced "fbcon.ko" in
              /usr/src/linux-2.6./drivers/video/console folder.
    Step 6: Copy fbcon.ko to lib folder.
            # cp /usr/src/linux-2.6./drivers/video/console/fbcon.ko  \
              /lib/modules/2.6./kernel/drivers/video

---------------------------------------------------------------------------
Building viafb as a module. (for Linux kernel 2.6)
    Make sure you have the kernel sources in /usr/src/linux-2.6.
    Change to the viafb directory, and then following below steps:
   
    Step 1: change to folder /usr/src/linux-2.6.
            # cd /usr/src/linux-2.6.
              The linux-2.6 directory depend on your kernel version, so if your kernel version is
              2.6.5-1.358, you should type "/usr/src/linux-2.6.5-1.358".
    Step 2: copy viafb folder in current directory.
            # cp -rf .../viafb ./
    Step 3: change to viafb directory
            # cd /viafb
    Step 4: Clear all object file.
            # make clean
    Step 5: Make source code
            # make
              Note that if no any error, this step will be produced an object file "viafb.ko".
    Step 6: Install viafb.ko framebuffer driver
            # make install[/PHP]
回复 支持 反对

使用道具 举报

发表于 2005-12-27 16:04:16 | 显示全部楼层
关于fcitx的问题,论坛里面好多哦,不过我也不清楚到底是怎么回事,反正我的fcitx一直是正常的,我情况是这样的:
[PHP]
$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
[/PHP]
[PHP]
$ cat /etc/X11/Xsession.d/95im-launch
export XMODIFIERS=@im=fcitx
fcitx
[/PHP]
另外,我的.fcitx/config文件是gb2312编码的,可能是因为我以前locale用的是zh_CN.GB2312,后来改成zh_CN.UTF-8的,还有我执行“dpkg-reconfigure locales”时,只选中了一个zh_CN.UTF-8,别的都没选。

嗯,我的情况就是这样的了,不知道能否给你提供帮助。
ps: 呵呵,第一次发贴用这个“PHP”标签,彩色的挺漂亮。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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