﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-先破后立，探索Java精髓-随笔分类-Linux</title><link>http://www.blogjava.net/jhyan/category/28922.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 17 May 2008 07:10:29 GMT</lastBuildDate><pubDate>Sat, 17 May 2008 07:10:29 GMT</pubDate><ttl>60</ttl><item><title>vim手册（转载）</title><link>http://www.blogjava.net/jhyan/archive/2008/05/17/201081.html</link><dc:creator>Joshua Yan</dc:creator><author>Joshua Yan</author><pubDate>Sat, 17 May 2008 05:21:00 GMT</pubDate><guid>http://www.blogjava.net/jhyan/archive/2008/05/17/201081.html</guid><wfw:comment>http://www.blogjava.net/jhyan/comments/201081.html</wfw:comment><comments>http://www.blogjava.net/jhyan/archive/2008/05/17/201081.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jhyan/comments/commentRss/201081.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jhyan/services/trackbacks/201081.html</trackback:ping><description><![CDATA[<font color="#000000">VIM 简介<span style="display: none;">FecLinux联盟</span><br />
<ul>VIM
    是 Unix 世界里极为普遍的全萤幕文书编辑器，几乎可以说任何一台 Unix 机器都会提供这套软体。熟悉 DOS 下的文书处理後，也许会感到
    VIM 并不好用；Unix 上也已经发展出许多更新、更好用的文书编辑器，但是并不一定每一台 Unix 机器上都会安装这些额外的软体。所以，学习
    VIM 的基本操作还是有好处，让你在各个不同的机器上得心应手。</ul>
    VIM 基本观念<span style="display: none;">FecLinux联盟</span><br />
    <ul>Unix
        提供一系列的 ex 编辑器，包括 ex, edit 和 VIM 。相对於全萤幕编辑器，现在可能很难想像如何使用 ex, edit
        这种行列编辑器（有人用过 DOS 3.3 版以前所附的 EDLIN 吗？）。 VIM 的原意是 "Vi
        IMproved"，它是一个所见所得的编辑程式，也就是说可以立刻看到操作结果。<span style="display: none;">FecLinux联盟</span><br />
        <span style="display: none;">FecLinux联盟</span><br />
        也由於 VIM 是全萤幕编辑器，所以它必须控制整个终端屏幕哪里该显示些什麽。而终端的种类有许多种，特性又不尽相同，所以 VIM
        有必要知道现在所使用的是哪一种终端。这是由 TERM 这个环境变数来设定，设定环境变数方面请查看所使用 shell 的说明。（除非执行 VIM
        的时候回应 unknow terminal type ，否则可以不用设定。）<span style="display: none;">FecLinux联盟</span><br />
        <span style="display: none;">FecLinux联盟</span><br />
        只要简单的执行 VIM 就可以进入 VIM 的编辑环境。在实际操作之前先对它有个概略的了解会比较好。VIM
        有两种模式，输入模式以及指令模式。输入模式即是用来输入文字资料，而指令模式则是用来下达一些编排文件、存档、以及离开 VIM
        等等的操作指令。当执行 VIM 後，会先进入指令模式，此时输入的任何字元都视为指令。</ul>
        进入与离开<span style="display: none;">FecLinux联盟</span><br />
        <ul>要
            进入 VIM 可以直接在系统提示下键入 VIM ＜档案名称＞，VIM 可以自动帮你载入所要编辑的文件或是开启一个新文件。进入 VIM
            后屏幕左方会出现波浪符号，凡是行首有该符号就代表此列目前是空的。要离开 VIM 可以在指令模式下键入 :q, :wq
            指令则是存档後再离开（注意冒号）。要切换到指令模式下则是用 [ESC] 键，如果不晓得现在是处於什麽模式， 可以多按几次
            [ESC]，系统会发出哔哔声以确定进入指令模式。</ul>
            VIM 输入模式<span style="display: none;">FecLinux联盟</span><br />
            <ul>要如何输入资料呢？有好几个指令可以进入输入模式：<span style="display: none;">FecLinux联盟</span><br />
                新增 (append)<span style="display: none;">FecLinux联盟</span><br />
                <ul>a 从光标所在位置后面开始新增资料，光标后的资料随新增资料向后移动。<span style="display: none;">FecLinux联盟</span><br />
                    A 从光标所在列最后面的地方开始新增资料。</ul>
                    <span style="display: none;">FecLinux联盟</span><br />
                    插入 (insert)
                    <ul>i 从光标所在位置前面开始插入资料，光标后的资料随新增资料向后移动。<span style="display: none;">FecLinux联盟</span><br />
                        I 从光标所在列的第一个非空白字元前面开始插入资料。</ul>
                        <span style="display: none;">FecLinux联盟</span><br />
                        开始 (open)
                        <ul>o 在光标所在列下新增一列并进入输入模式。<span style="display: none;">FecLinux联盟</span><br />
                            O 在光标所在列上方新增一列并进入输入模式。</ul>
                            也许文字叙述看起来有点繁杂，但是只要实际操作一下马上可以了解这些操作方式。实务很重要，尤其是电脑方面的东西随时可以尝试及验证结果。极力建议实际去
                            使用它而不要只是猛 Ｋ 文件，才有事半功倍的效用。（注：此段为废话。）<span style="display: none;">FecLinux联盟</span></ul>
                            VIM 基本编辑<span style="display: none;">FecLinux联盟</span><br />
                            <ul>配合一般键盘上的功能键，像是方向键、[Insert] 、[Delete] 等等，现在你应该已经可以利用 VIM 来处理文字资料了。当然 VIM 还提供其他许许多多功能让文字的处理更形方便，有兴趣的看倌请继续。<span style="display: none;">FecLinux联盟</span><br />
                                <span style="display: none;">FecLinux联盟</span><br />
                                在继续下去之前先来点 BCC 吧。电脑有许多厂牌，不同的硬体及作业系统。PC 也不是仅仅只有 IBM PC
                                及其相容品而已。事实上，包括键盘，终端机等等往往都有不同的规格。这代表什麽？<span style="display: none;">FecLinux联盟</span><br />
                                <span style="display: none;">FecLinux联盟</span><br />
                                在文书编辑软体上会遇这样的问题，某些电脑的键盘上没有特定的几个功能键！那麽不就有某些功能不能用了？这个问题在 Unix
                                系统上也一样，几乎各大电脑厂商都有自己的 Unix 系统，而 VIM 的操作方法也会随之有点出入。我们固然可以用 PC 的键盘来说明 VIM
                                的操作，但是还是得提一下这个问题。<span style="display: none;">FecLinux联盟</span><br />
                                <span style="display: none;">FecLinux联盟</span><br />
                                删除与修改
                                <ul>何
                                    谓编辑？在这里我们认为是文字的新增修改以及删除，甚至包括文字区块的搬移、复制等等。这里先介绍 VIM 的如何做删除与修改。（注意：在 VIM
                                    的原始观念里，输入跟编辑是两码子事。编辑是在指令模式下操作的，先利用指令移动光标来定位要进行编辑的地方，然后才下指令做编辑。）<span style="display: none;">FecLinux联盟</span><br />
                                    <span style="display: none;">FecLinux联盟</span><br />
                                    x 删除光标所在字元。<span style="display: none;">FecLinux联盟</span><br />
                                    dd 删除光标所在的列。<span style="display: none;">FecLinux联盟</span><br />
                                    r 修改光标所在字元，r 后接著要修正的字元。<span style="display: none;">FecLinux联盟</span><br />
                                    R 进入取代状态，新增资料会覆盖原先资料，直到按 [ESC] 回到指令模式下为止。<span style="display: none;">FecLinux联盟</span><br />
                                    s 删除光标所在字元，并进入输入模式。<span style="display: none;">FecLinux联盟</span><br />
                                    S 删除光标所在的列，并进入输入模式。</ul>
                                    其实呢，在 PC 上根本没有这麽麻烦！输入跟编辑都可以在输入模式下完成。例如要删除字元，直接按 [Delete]
                                    不就得了。而插入状态与取代状态可以直接用 [Insert]
                                    切换，犯不著用什麽指令模式的编辑指令。不过就如前面所提到的，这些指令几乎是每台终端机都能用，而不是仅仅在 PC 上。<span style="display: none;">FecLinux联盟</span><br />
                                    <span style="display: none;">FecLinux联盟</span><br />
                                    在指令模式下移动光标的基本指令是 h, j, k, l 。想来各位现在也应该能猜到只要直接用 PC
                                    的方向键就可以了，而且无论在指令模式或输入模式下都可以。多容易不是。 <span style="display: none;">FecLinux联盟</span><br />
                                    当然 PC 键盘也有不足之处。有个很好用的指令 u 可以恢复被删除的资料，而 U 指令则可以恢复光标所在列的所有改变。这与某些电脑上的
                                    [Undo] 按键功能相同。 <span style="display: none;">FecLinux联盟</span></ul>
                                    VIM 进阶应用
                                    <ul>相信现在对於 VIM 应该已经有相当的认识。处理文字也不会有什麽麻烦才对。如果有兴趣善用 VIM 的其它功能进一步简化操作过程，不妨继续看下去。<span style="display: none;">FecLinux联盟</span><br />
                                        <span style="display: none;">FecLinux联盟</span><br />
                                        移动光标<span style="display: none;">FecLinux联盟</span><br />
                                        <ul>由於许多编辑工作是藉由光标来定位，所以 VIM 提供许多移动光标的方式，这个我们列几张简表来说明（这些当然是指令模式下的指令）：<span style="display: none;">FecLinux联盟</span><br />
                                            <span style="display: none;">FecLinux联盟</span><br />
                                            <table border="1" cellpadding="2" cellspacing="2">
                                                <tbody>
                                                    <tr>
                                                        <td>指令</td>
                                                        <td>说明</td>
                                                        <td>功能键</td>
                                                    </tr>
                                                    <tr>
                                                        <td>0</td>
                                                        <td>移动到光标所在列的最前面</td>
                                                        <td>HOME</td>
                                                    </tr>
                                                    <tr>
                                                        <td>$</td>
                                                        <td>移动到光标所在列的最后面</td>
                                                        <td>END</td>
                                                    </tr>
                                                    <tr>
                                                        <td>^d</td>
                                                        <td>向下半页</td>
                                                        <td> <br />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>^f</td>
                                                        <td>向下一页</td>
                                                        <td>PageDown</td>
                                                    </tr>
                                                    <tr>
                                                        <td>^u</td>
                                                        <td>向上半页</td>
                                                        <td> <br />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>^b</td>
                                                        <td>向上一页</td>
                                                        <td>PageUp</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <table border="1" cellpadding="2" cellspacing="2">
                                                <tbody>
                                                    <tr>
                                                        <td>指令</td>
                                                        <td>说明</td>
                                                    </tr>
                                                    <tr>
                                                        <td>H</td>
                                                        <td>移动到视窗的第一列</td>
                                                    </tr>
                                                    <tr>
                                                        <td>M</td>
                                                        <td>移动到视窗的中间列</td>
                                                    </tr>
                                                    <tr>
                                                        <td>L</td>
                                                        <td>移动到视窗的最后列</td>
                                                    </tr>
                                                    <tr>
                                                        <td>b</td>
                                                        <td>移动到下个字的第一个字母</td>
                                                    </tr>
                                                    <tr>
                                                        <td>w</td>
                                                        <td>移动到上个字的第一个字母</td>
                                                    </tr>
                                                    <tr>
                                                        <td>e</td>
                                                        <td>移动到下个字的最后一个字母</td>
                                                    </tr>
                                                    <tr>
                                                        <td>^</td>
                                                        <td>移动到光标所在列的第一个非空白字元</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <table border="1" cellpadding="2" cellspacing="2">
                                                <tbody>
                                                    <tr>
                                                        <td>指令</td>
                                                        <td>说明</td>
                                                    </tr>
                                                    <tr>
                                                        <td>n-</td>
                                                        <td>减号移动到上一列的第一个非空白字元</td>
                                                    </tr>
                                                    <tr>
                                                        <td>n+</td>
                                                        <td>加号移动到下一列的第一个非空白字元</td>
                                                    </tr>
                                                    <tr>
                                                        <td>nG</td>
                                                        <td>直接用数字 n 加上大写 G 移动到第 n 列</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <table border="1" cellpadding="2" cellspacing="2">
                                                <tbody>
                                                    <tr>
                                                        <td>指令</td>
                                                        <td>说明</td>
                                                    </tr>
                                                    <tr>
                                                        <td>fx</td>
                                                        <td>往右移动到 x 字元上</td>
                                                    </tr>
                                                    <tr>
                                                        <td>Fx</td>
                                                        <td>往左移动到 x 字元上</td>
                                                    </tr>
                                                    <tr>
                                                        <td>tx</td>
                                                        <td>往右移动到 x 字元前</td>
                                                    </tr>
                                                    <tr>
                                                        <td>Tx</td>
                                                        <td>往左移动到 x 字元前</td>
                                                    </tr>
                                                    <tr>
                                                        <td>;</td>
                                                        <td>配合 f&amp;t 使用，重复一次</td>
                                                    </tr>
                                                    <tr>
                                                        <td>,</td>
                                                        <td>配合 f&amp;t 使用，反方向重复一次</td>
                                                    </tr>
                                                    <tr>
                                                        <td>/string</td>
                                                        <td>往右移动到有 string 的地方</td>
                                                    </tr>
                                                    <tr>
                                                        <td>?string</td>
                                                        <td>往左移动到有 string 的地方</td>
                                                    </tr>
                                                    <tr>
                                                        <td>n</td>
                                                        <td>配合 /&amp;? 使用，重复一次</td>
                                                    </tr>
                                                    <tr>
                                                        <td>N</td>
                                                        <td>配合 /&amp;? 使用，反方向重复一次</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <table border="1" cellpadding="2" cellspacing="2">
                                                <tbody>
                                                    <tr>
                                                        <td>指令</td>
                                                        <td>说明</td>
                                                        <td>备注</td>
                                                    </tr>
                                                    <tr>
                                                        <td>n(</td>
                                                        <td>左括号移动到句子的最前面，前面加上数字可以指定往前移动 n 个句子</td>
                                                        <td>句子是以 ! . ? 三种符号来界定</td>
                                                    </tr>
                                                    <tr>
                                                        <td>n)</td>
                                                        <td>右括号移动到下个句子的最前面，前面加上数字可以指定往后移动 n 个句子</td>
                                                        <td> <br />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>n{</td>
                                                        <td>左括弧移动到段落的最前面 ，前面加上数字可以指定往前移动 n 个段落</td>
                                                        <td>段落是以，段落间的空白列界定</td>
                                                    </tr>
                                                    <tr>
                                                        <td>n}</td>
                                                        <td>右括弧移动到下个段落的最前面，前面加上数字可以指定往后移动 n 个段落</td>
                                                        <td> <br />
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <span style="display: none;">FecLinux联盟</span><br />
                                            不要尝试背诵这些指令，否则后果自行负责。它们看起来又多又杂乱，事实上这是文字叙述本身的障碍。再强调一次，实际去使用它只要几次就可以不经大脑直接下
                                            达这些奇奇怪怪的指令，远比死记活背搞得模模糊糊强多了。（注：若真的不经大脑而误删资料与我无关。另，此段为废话。）<span style="display: none;">FecLinux联盟</span><br />
                                            <span style="display: none;">FecLinux联盟</span></ul>
                                            进阶编辑指令<span style="display: none;">FecLinux联盟</span><br />
                                            <span style="display: none;">FecLinux联盟</span><br />
                                            这些编辑指令非常有弹性，基本上可以说是由指令与范围所构成。例如 dw 是由删除指令 d 与范围 w 所组成，代表删除一个字 d(elete)
                                            w(ord) 。<span style="display: none;">FecLinux联盟</span><br />
                                            <span style="display: none;">FecLinux联盟</span><br />
                                            指令列表如下：<span style="display: none;">FecLinux联盟</span><br />
                                            <ul>d 删除(delete)<span style="display: none;">FecLinux联盟</span><br />
                                                y 复制(yank)<span style="display: none;">FecLinux联盟</span><br />
                                                p 放置(put)<span style="display: none;">FecLinux联盟</span><br />
                                                c 修改(change)<span style="display: none;">FecLinux联盟</span></ul>
                                                范围可以是下列几个：<span style="display: none;">FecLinux联盟</span><br />
                                                <ul>e 光标所在位置到该字的最后一个字母<span style="display: none;">FecLinux联盟</span><br />
                                                    w 光标所在位置到下个字的第一个字母<span style="display: none;">FecLinux联盟</span><br />
                                                    b 光标所在位置到上个字的第一个字母<span style="display: none;">FecLinux联盟</span><br />
                                                    $ 光标所在位置到该列的最后一个字母<span style="display: none;">FecLinux联盟</span><br />
                                                    0 光标所在位置到该列的第一个字母<span style="display: none;">FecLinux联盟</span><br />
                                                    ) 光标所在位置到下个句子的第一个字母<span style="display: none;">FecLinux联盟</span><br />
                                                    ( 光标所在位置到该句子的第一个字母<span style="display: none;">FecLinux联盟</span><br />
                                                    } 光标所在位置到该段落的最后一个字母<span style="display: none;">FecLinux联盟</span><br />
                                                    { 光标所在位置到该段落的第一个字母<span style="display: none;">FecLinux联盟</span></ul>
                                                    说实在的，组合这些指令来编辑文件有一点点艺术气息。不管怎麽样，它们提供更多编辑文字的能力。值得注意的一点是删除与复制都会将指定范围的内容放到暂存
                                                    区里，然后就可以用指令 p 贴到其它地方去，这是 VIM 用来处理区段拷贝与搬移的办法。<span style="display: none;">FecLinux联盟</span><br />
                                                    <span style="display: none;">FecLinux联盟</span><br />
                                                    某些 VIM 版本，例如 Linux 所用的 elVIMs
                                                    可以大幅简化这一坨指令。如果稍微观察一下这些编辑指令就会发现问题其实是定范围的方式有点杂，实际上只有四个指令罢了。指令 v 非常好用，只要按下
                                                    v 键，光标所在的位置就会反白，然后就可以移动光标来设定范围，接著再直接下指令进行编辑即可。<span style="display: none;">FecLinux联盟</span><br />
                                                    <span style="display: none;">FecLinux联盟</span><br />
                                                    对於整列操作， VIM 另外提供了更方便的编辑指令。前面曾经提到过删除整列文字的指令 dd 就是其中一个；cc 可以修改整列文字；而 yy
                                                    则是复制整列文字；指令 D 则可以删除光标到该列结束为止所有的文字。<span style="display: none;">FecLinux联盟</span><br />
                                                    <span style="display: none;">FecLinux联盟</span><br />
                                                    档案指令<span style="display: none;">FecLinux联盟</span><br />
                                                    <span style="display: none;">FecLinux联盟</span><br />
                                                    档案指令多以 : 开头，跟编辑指令有点区别。例如前面提到结束编辑的指令就是 :q。现在就简单说明一下作为本篇故事的结尾：<span style="display: none;">FecLinux联盟</span><br />
                                                    <ul>:q 结束编辑(quit)<span style="display: none;">FecLinux联盟</span><br />
                                                        如果不想存档而要放弃编辑过的档案则用 :q! 强制离开。<span style="display: none;">FecLinux联盟</span><br />
                                                        :w 存档(write)<span style="display: none;">FecLinux联盟</span><br />
                                                        其后可加所要存档的档名。<span style="display: none;">FecLinux联盟</span><br />
                                                        可以将档案指令合在一起，例如 :wq 即存档后离开。<span style="display: none;">FecLinux联盟</span><br />
                                                        zz 功能与 :wq 相同。<span style="display: none;">FecLinux联盟</span></ul>
                                                        另外值得一提的是 VIM 的部份存档功能。可以用 :n,mw filename 将第 n 行到第 m 行的文字存放的所指定的 filename
                                                        里去哩。时代在变，世界在变， VIM 也在变，不过大致上就这样。好了，但愿从此以后王子跟公主过著幸福快乐的生活。<br />
                                                        <br />
                                                    </ul>
                                                    出处： http://hi.baidu.com/ps3108/blog/item/f85ae80efe0789ce7acbe116.html
                                                    <ul><br />
                                                    </ul>
                                                    </font>
<img src ="http://www.blogjava.net/jhyan/aggbug/201081.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jhyan/" target="_blank">Joshua Yan</a> 2008-05-17 13:21 <a href="http://www.blogjava.net/jhyan/archive/2008/05/17/201081.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>fedora 9没有声音的解决方法</title><link>http://www.blogjava.net/jhyan/archive/2008/05/16/201017.html</link><dc:creator>Joshua Yan</dc:creator><author>Joshua Yan</author><pubDate>Fri, 16 May 2008 15:38:00 GMT</pubDate><guid>http://www.blogjava.net/jhyan/archive/2008/05/16/201017.html</guid><wfw:comment>http://www.blogjava.net/jhyan/comments/201017.html</wfw:comment><comments>http://www.blogjava.net/jhyan/archive/2008/05/16/201017.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jhyan/comments/commentRss/201017.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jhyan/services/trackbacks/201017.html</trackback:ping><description><![CDATA[安装fedora9后竟然发现没有声音，弄来好久也没有弄出来。<br />
<br />
后来终于在网上找到了解决办法，非常简单。<br />
<br />
打开声音的 &#8220;首选项&#8221;，然后把 surround选上，然后打开surround到声音开关就可以听到久违了的声音了<br />
<br />
<img src ="http://www.blogjava.net/jhyan/aggbug/201017.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jhyan/" target="_blank">Joshua Yan</a> 2008-05-16 23:38 <a href="http://www.blogjava.net/jhyan/archive/2008/05/16/201017.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>为什么在fedora下面不能安装新的nvidia驱动呢</title><link>http://www.blogjava.net/jhyan/archive/2008/03/08/184756.html</link><dc:creator>Joshua Yan</dc:creator><author>Joshua Yan</author><pubDate>Sat, 08 Mar 2008 14:25:00 GMT</pubDate><guid>http://www.blogjava.net/jhyan/archive/2008/03/08/184756.html</guid><wfw:comment>http://www.blogjava.net/jhyan/comments/184756.html</wfw:comment><comments>http://www.blogjava.net/jhyan/archive/2008/03/08/184756.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/jhyan/comments/commentRss/184756.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jhyan/services/trackbacks/184756.html</trackback:ping><description><![CDATA[我的显卡是Geforce8600GT，在fedora8下安装新的驱动（169.xx）后竟然无法进入系统。<br />
<br />
在显示登录界面前，屏幕变灰，然后在屏幕的中央出现一条垂直的黑色宽的竖条，登录界面根本就不显示。<br />
<br />
不知道什么原因，向nvidia报bug也没有回复。<br />
<br />
在ubuntu下竟然可以使用源里面的驱动，运行非常流畅。<br />
<br />
<img src ="http://www.blogjava.net/jhyan/aggbug/184756.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jhyan/" target="_blank">Joshua Yan</a> 2008-03-08 22:25 <a href="http://www.blogjava.net/jhyan/archive/2008/03/08/184756.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>解决fedora8下“Desktop effect ....not enabled”问题</title><link>http://www.blogjava.net/jhyan/archive/2008/01/14/175307.html</link><dc:creator>Joshua Yan</dc:creator><author>Joshua Yan</author><pubDate>Mon, 14 Jan 2008 13:56:00 GMT</pubDate><guid>http://www.blogjava.net/jhyan/archive/2008/01/14/175307.html</guid><wfw:comment>http://www.blogjava.net/jhyan/comments/175307.html</wfw:comment><comments>http://www.blogjava.net/jhyan/archive/2008/01/14/175307.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jhyan/comments/commentRss/175307.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jhyan/services/trackbacks/175307.html</trackback:ping><description><![CDATA[1. 修改/ect/X11/xorg.conf<br />
请在相应的section添加下面带有&#8220;＃&#8221;的行，如果已经有了就不用了添加了<br />
<br />
Section "ServerLayout"<br />
&nbsp;&nbsp; &nbsp;Identifier&nbsp;&nbsp;&nbsp;&nbsp; "single head configuration"<br />
&nbsp;&nbsp; &nbsp;Screen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; "Screen0" 0 0<br />
&nbsp;&nbsp; &nbsp;InputDevice&nbsp;&nbsp;&nbsp; "Keyboard0" "CoreKeyboard"<br />
&nbsp;&nbsp; &nbsp;InputDevice&nbsp;&nbsp;&nbsp; "Synaptics" "CorePointer"<br />
&nbsp;&nbsp; &nbsp;Option "AIGLX" "true" #<br />
EndSection<br />
<br />
Section "Files"<br />
EndSection<br />
<br />
Section "Module"<br />
&nbsp;&nbsp; &nbsp;Load&nbsp; "glx"<br />
&nbsp;&nbsp; &nbsp;Load "dbe"&nbsp; #<br />
&nbsp;&nbsp; &nbsp;Load "extmod" #<br />
EndSection<br />
<br />
Section "ServerFlags"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "AIGLX" "on"<br />
EndSection<br />
<br />
Section "InputDevice"<br />
&nbsp;&nbsp; &nbsp;Identifier&nbsp; "Keyboard0"<br />
&nbsp;&nbsp; &nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "kbd"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "XkbModel" "pc105"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "XkbLayout" "us+inet"<br />
EndSection<br />
<br />
Section "InputDevice"<br />
&nbsp;&nbsp; &nbsp;Identifier&nbsp; "Synaptics"<br />
&nbsp;&nbsp; &nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "synaptics"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "Device" "/dev/input/mice"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "Protocol" "auto-dev"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "Emulate3Buttons" "yes"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "LeftEdge" "120"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "RightEdge" "830"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "TopEdge" "120"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "BottomEdge" "650"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "FingerLow" "14"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "FingerHigh" "15"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "MaxTapMove" "110"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "VertScrollDelta" "20"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "HorizScrollDelta" "20"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "MinSpeed" "0.3"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "MaxSpeed" "0.75"<br />
EndSection<br />
<br />
Section "Monitor"<br />
&nbsp;&nbsp; &nbsp;Identifier&nbsp;&nbsp; "Monitor0"<br />
&nbsp;&nbsp; &nbsp;ModelName&nbsp;&nbsp;&nbsp; "LCD Panel 1280x800"<br />
&nbsp;&nbsp; &nbsp;HorizSync&nbsp;&nbsp;&nbsp; 31.5 - 50.0<br />
&nbsp;&nbsp; &nbsp;VertRefresh&nbsp; 56.0 - 65.0<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "dpms"<br />
EndSection<br />
<br />
Section "Device"<br />
&nbsp;&nbsp; &nbsp;Identifier&nbsp; "Videocard0"<br />
&nbsp;&nbsp; &nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "nvidia"<br />
&nbsp;&nbsp; &nbsp;Option "XAANoOffscreenPixmaps" "true" #<br />
&nbsp;&nbsp; &nbsp;Option "AllowGLXWithComposite" "true" #<br />
&nbsp;&nbsp; &nbsp;Option "TripleBuffer" "true" #<br />
&nbsp;&nbsp; &nbsp;Option "RenderAccel" "true" #<br />
EndSection<br />
<br />
Section "Screen"<br />
&nbsp;&nbsp; &nbsp;Identifier "Screen0"<br />
&nbsp;&nbsp; &nbsp;Device&nbsp;&nbsp;&nbsp;&nbsp; "Videocard0"<br />
&nbsp;&nbsp; &nbsp;Monitor&nbsp;&nbsp;&nbsp; "Monitor0"<br />
&nbsp;&nbsp; &nbsp;DefaultDepth&nbsp;&nbsp;&nbsp;&nbsp; 24<br />
&nbsp;&nbsp; &nbsp;SubSection "Display"<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Viewport&nbsp;&nbsp; 0 0<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Depth&nbsp;&nbsp;&nbsp;&nbsp; 24<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Modes&nbsp;&nbsp;&nbsp; "1280x800@60hz"<br />
&nbsp;&nbsp; &nbsp;EndSubSection<br />
&nbsp;&nbsp; &nbsp;Option "AddARGBGLXVisuals" "true"&nbsp; #<br />
EndSection<br />
<br />
Section "Extensions"<br />
&nbsp;&nbsp; &nbsp;Option&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; "Composite" "Enable"<br />
EndSection<br />
<br />
2. 重新启动x就应该可以了<br />
<br />
<img src ="http://www.blogjava.net/jhyan/aggbug/175307.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jhyan/" target="_blank">Joshua Yan</a> 2008-01-14 21:56 <a href="http://www.blogjava.net/jhyan/archive/2008/01/14/175307.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux上应用指纹识别(转载)</title><link>http://www.blogjava.net/jhyan/archive/2008/01/13/175029.html</link><dc:creator>Joshua Yan</dc:creator><author>Joshua Yan</author><pubDate>Sun, 13 Jan 2008 13:35:00 GMT</pubDate><guid>http://www.blogjava.net/jhyan/archive/2008/01/13/175029.html</guid><wfw:comment>http://www.blogjava.net/jhyan/comments/175029.html</wfw:comment><comments>http://www.blogjava.net/jhyan/archive/2008/01/13/175029.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jhyan/comments/commentRss/175029.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jhyan/services/trackbacks/175029.html</trackback:ping><description><![CDATA[我的本本是DELL xps1530 带有指纹识别，型号是Bus 003 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader<br />
<br />
<br />
下面的安装方法是从网上找到的，经验证可以应用，在登录的时候可以刷指纹进入系统了<br />
<br />
1. 安装thinkfinger<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp; 如果和我一样是fedora 8，那么你可以通过yum进行安装<br />
<br />
2. <br />
<p>装完之后可以使用tf-tool命令来使用指纹识别了。<br />
<br />
首先在终端输入 tf-tool --acquire 搜集指纹，刷三次就完成存档了。<br />
然后在终端输入 tf-tool --verify 验明正身。 <br />
</p>
<p>当然还得把自己的名字添加上去 tf-tool --add-user myname<br />
</p>
<p>最后把 /etc/pam.d/system-auth添加两行，不过要在pam_unix.so之前<br />
</p>
<p>
auth sufficient pam_thinkfinger.so<br />
auth required pam_unix.so nullok_secure try_first_pass<br />
保存，收工，重启。以后需要输入密码的时候也就会有一个swipe your finger的提示了</p>
<br />
不过我安装了boiapi和TFMESS_BSP_LIN_1.0，不知道如果不安装会不会有问题，呵呵<br />
<br />
上面这些完成就应该成功了<br />
<br />
如果还是有问题请看下面<br />
<p><br />
</p>
<br />
<p>完整请看：<br />
</p>
<p>http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger
</p>
<img src ="http://www.blogjava.net/jhyan/aggbug/175029.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jhyan/" target="_blank">Joshua Yan</a> 2008-01-13 21:35 <a href="http://www.blogjava.net/jhyan/archive/2008/01/13/175029.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>How to resovle "configure: error: C preprocessor "/lib/cpp" fails sanity check  "</title><link>http://www.blogjava.net/jhyan/archive/2008/01/12/174878.html</link><dc:creator>Joshua Yan</dc:creator><author>Joshua Yan</author><pubDate>Sat, 12 Jan 2008 11:51:00 GMT</pubDate><guid>http://www.blogjava.net/jhyan/archive/2008/01/12/174878.html</guid><wfw:comment>http://www.blogjava.net/jhyan/comments/174878.html</wfw:comment><comments>http://www.blogjava.net/jhyan/archive/2008/01/12/174878.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/jhyan/comments/commentRss/174878.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jhyan/services/trackbacks/174878.html</trackback:ping><description><![CDATA[When I compile the bioapi, i got " configure: error: C preprocessor "/lib/cpp" fails sanity check&nbsp; "<br />
<br />
How to resovle this problem?<br />
<br />
After google, it is easy to resovle it:&nbsp; just install "glibc-headers"<br />
<img src ="http://www.blogjava.net/jhyan/aggbug/174878.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jhyan/" target="_blank">Joshua Yan</a> 2008-01-12 19:51 <a href="http://www.blogjava.net/jhyan/archive/2008/01/12/174878.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>