<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Challenge everything! &#187; GNU/Linux</title>
	<atom:link href="http://blogs.gnome.org/raywang/category/gnulinux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/raywang</link>
	<description>Ray Wang&#039;s notes</description>
	<lastBuildDate>Mon, 30 May 2011 03:11:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>		<item>
		<title>Linux&#8217;s Magic key (转)</title>
		<link>http://blogs.gnome.org/raywang/2009/08/11/linuxs-magic-key-%e8%bd%ac/</link>
		<comments>http://blogs.gnome.org/raywang/2009/08/11/linuxs-magic-key-%e8%bd%ac/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 04:10:54 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/raywang/?p=30018</guid>
		<description><![CDATA[转自 http://li2z.cn/2009/08/10/linux_magic-key/ 自从我换成了开源的A卡驱动以后，我的电脑就时不时地崩溃。现象是：突然之间，整个画面就冻结了，鼠标也不能动了，几乎所有的按键也都失效了，ctrl+alt+F1 和 ctrl+alt+backspace 都无效。这种情况一般发生在有不规则形状的窗口出现的时候，比如gnome-osd的透明文字，但也不是很一定的，发生的概率也不高，一般几天才会有一次。我想，要彻底解决的话，也只能等待驱动的改进了。 不过，每次崩溃都强行按电源的话，还是有点心痛的。幸好办法还是有的，因为驱动程序其实也只是一个程序而已，这时候即使驱动死掉了，鼠标键盘不能动，linux内核还是在正常运行的（按理如果我开了sshd的话，其他机器还是能ssh上来的）。而且，内核还是能处理一些键盘事件的，比如本文要说的：Magic System Request Key 以下按键，一般情况下不建议使用，除非是ctrl+alt+F1都失效了，才用。 使用Magic SysRq key的前提是CONFIG_MAGIC_SYSRQ这个内核选项被打开，并且没有在/proc/sys/kernel/sysrq里禁用掉，也就是 cat 这个文件的时候，出来的是 1 （或其他某些非0值）。其实这两个条件，在一般的linux发行版里都是满足的。下面就来介绍一下几个键的具体作用，其中SysRq指的是右上角的 “Print Screen”键。 ALT-SysRq-b 立即重启系统，不卸载分区和同步文件。 ALT-SysRq-c 调用kexec内核函数来重启，可以生成个crashdump。 ALT-SysRq-d 显示所有的“锁”，如果开了X的话，估计基本看不到。 ALT-SysRq-e 给除了init以外的所有进程发送SIGTERM信号，可以试图正常结束所有进程。 ALT-SysRq-f 调用oom_kill函数来干掉占用了很大内存的进程。 ALT-SysRq-g 内核调试相关的（好像新内核已经没了？）。 ALT-SysRq-h 显示其他key的帮助，同样，如果开了X的话，估计基本看不到。 ALT-SysRq-i 给除了init以外的所有进程发送SIGKILL信号。 ALT-SysRq-k 结束当前虚拟终端的所有进程。 ALT-SysRq-l 显示所有活动CPU的栈跟踪信息。 &#8230; <a href="http://blogs.gnome.org/raywang/2009/08/11/linuxs-magic-key-%e8%bd%ac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>转自 http://li2z.cn/2009/08/10/linux_magic-key/</p>
<p>自从我换成了开源的A卡驱动以后，我的电脑就时不时地崩溃。现象是：突然之间，整个画面就冻结了，鼠标也不能动了，几乎所有的按键也都失效了，ctrl+alt+F1 和 ctrl+alt+backspace 都无效。这种情况一般发生在有不规则形状的窗口出现的时候，比如gnome-osd的透明文字，但也不是很一定的，发生的概率也不高，一般几天才会有一次。我想，要彻底解决的话，也只能等待驱动的改进了。<br />
不过，每次崩溃都强行按电源的话，还是有点心痛的。幸好办法还是有的，因为驱动程序其实也只是一个程序而已，这时候即使驱动死掉了，鼠标键盘不能动，linux内核还是在正常运行的（按理如果我开了sshd的话，其他机器还是能ssh上来的）。而且，内核还是能处理一些键盘事件的，比如本文要说的：Magic System Request Key<br />
以下按键，一般情况下不建议使用，除非是ctrl+alt+F1都失效了，才用。<br />
使用Magic SysRq key的前提是CONFIG_MAGIC_SYSRQ这个内核选项被打开，并且没有在/proc/sys/kernel/sysrq里禁用掉，也就是 cat 这个文件的时候，出来的是 1 （或其他某些非0值）。其实这两个条件，在一般的linux发行版里都是满足的。下面就来介绍一下几个键的具体作用，其中SysRq指的是右上角的 “Print Screen”键。</p>
<blockquote><p>
    ALT-SysRq-b 立即重启系统，不卸载分区和同步文件。<br />
    ALT-SysRq-c 调用kexec内核函数来重启，可以生成个crashdump。<br />
    ALT-SysRq-d 显示所有的“锁”，如果开了X的话，估计基本看不到。<br />
    ALT-SysRq-e 给除了init以外的所有进程发送SIGTERM信号，可以试图正常结束所有进程。<br />
    ALT-SysRq-f 调用oom_kill函数来干掉占用了很大内存的进程。<br />
    ALT-SysRq-g 内核调试相关的（好像新内核已经没了？）。<br />
    ALT-SysRq-h 显示其他key的帮助，同样，如果开了X的话，估计基本看不到。<br />
    ALT-SysRq-i 给除了init以外的所有进程发送SIGKILL信号。<br />
    ALT-SysRq-k 结束当前虚拟终端的所有进程。<br />
    ALT-SysRq-l 显示所有活动CPU的栈跟踪信息。<br />
    ALT-SysRq-m 显示内存状态。<br />
    ALT-SysRq-n<br />
    ALT-SysRq-o 可能的话，关机。<br />
    ALT-SysRq-p 显示当前的寄存器状态和标志位。<br />
    ALT-SysRq-r 关闭键盘的raw模式。<br />
    ALT-SysRq-s 同步内存里的数据到硬盘。<br />
    ALT-SysRq-t 显示当前的任务信息。<br />
    ALT-SysRq-u 以只读模式重新挂载所有分区。<br />
    ALT-SysRq-v<br />
    ALT-SysRq-w 显示不可中断的任务<br />
    ALT-SysRq-x<br />
    ALT-SysRq-z<br />
    ALT-SysRq-数字键 调整日志输出级别
</p></blockquote>
<p>    另外，除了物理的按键以外，其实还可以把某个键的值用root权限写到 /proc/sysrq-trigger 文件里（这个文件是个只写不读的怪文件，哈哈），比如</p>
<p>    echo t > /proc/sysrq-trigger</p>
<p>    ，来触发Magic SysRq key。 </p>
<p>以上内容可以在内核源码的 Documentation/sysrq.txt 里找到英文原文，但是即便是这个官方文档，也似乎不是每个按键都有效的，可能是某些只有在特定的硬件条件下才有效，又或者文档没更新？<br />
在万一遇到程序崩溃的时候，你可能需要按的键是： ALT-SysRq-r e i s u b 来安全地重启机器~</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2009/08/11/linuxs-magic-key-%e8%bd%ac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mono UIA Packages Preview</title>
		<link>http://blogs.gnome.org/raywang/2009/07/30/mono-uia-packages-preview/</link>
		<comments>http://blogs.gnome.org/raywang/2009/07/30/mono-uia-packages-preview/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 02:28:46 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[uia]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/raywang/?p=30013</guid>
		<description><![CDATA[Recently, I was working on pushing Mono UIA stuff into debian/ubuntu, but being accepted is a really long way to go. The packages need to be reviewed by Debian Mono Group hackers, and they were mostly working on geting Mono &#8230; <a href="http://blogs.gnome.org/raywang/2009/07/30/mono-uia-packages-preview/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently, I was working on pushing <a href="http://www.mono-project.com/Accessibility">Mono UIA</a> stuff into debian/ubuntu, but being accepted is a really long way to go. The packages need to be reviewed by Debian Mono Group hackers, and they were mostly working on geting Mono 2.4.2 uploaded, UIA stuff are not in a high priority. </p>
<p>For those who wants to use Winforms apps on GNU/Linux, you can get packages as deb or rpm without compiling by yourself. Currently we have <a href="http://www.mono-project.com/Accessibility:_Release_Notes_1.0">1.0 release</a>. You can get:</p>
<p>RPM:</p>
<blockquote><p>http://download.opensuse.org/repositories/Mono://UIA/MonoOpenSUSE_11.1/ (for openSUSE 11.1)</p></blockquote>
<p>you will need to install <strong>mono-uia, mono-winfxcore, uiaatkbridge, uiautomationwinforms</strong> in order. </p>
<p>DEB:</p>
<blockquote><p>https://edge.launchpad.net/~raywang/+archive/uia2atk</p></blockquote>
<p>you have to add my PPA to your /etc/apt/sources.list, import key and get refreshed, and install <del datetime="2009-09-29T02:00:58+00:00">libmono-uia3.0-cil, libmono-winfxcore3.0-cil, libmono-uiaatkbridge1.0, libmono-uiautomationwinforms1.0-cil</del> <strong>libmono-uia3.0-cil, libmono-windowsbase3.0-cil, libmono-uia-atkbridge1.0-cil, libmono-uia-winforms1.0-cil</strong> in order.</p>
<p>Feel free to contact me if there are problems/questions/concerns etc</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2009/07/30/mono-uia-packages-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux System Programming 学习笔记</title>
		<link>http://blogs.gnome.org/raywang/2009/03/20/linux-system-programming-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/</link>
		<comments>http://blogs.gnome.org/raywang/2009/03/20/linux-system-programming-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 06:13:43 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[lsp]]></category>

		<guid isPermaLink="false">http://raywang.yo2.cn/?p=28024</guid>
		<description><![CDATA[the sector is the smallest addressable unit on a block deviice. the block is the smallest addressable unit on a file system. the page size is the smallest unit addressable by the memory management unit. sector = 512 bytes block &#8230; <a href="http://blogs.gnome.org/raywang/2009/03/20/linux-system-programming-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><code>the <strong>sector</strong> is the smallest addressable unit on a block deviice.<br />
the <strong>block</strong> is the smallest addressable unit on a file system.<br />
the <strong>page size</strong> is the smallest unit addressable by the memory management unit.</code></p>
<p><code><br />
<strong>sector</strong> = 512 bytes<br />
<strong>block</strong> = sector * 2(power 0, 1, 4) = 512 bytes, 1 KB, 4 KB<br />
sector &lt;= block &lt;= page size</code></p>
<p><strong>process</strong><br />
<code><br />
|------ data<br />
|------ resources<br />
|------ state<br />
|------ virtualized computer</code></p>
<p><strong>ELF section</strong><br />
<code><br />
text section: executable code, readonly data<br />
data section: C variables with values, readable and writable<br />
bss section: uninitialized global data</code></p>
<p><code><br />
<strong>real uid</strong> is always that of the user who started the process.<br />
<strong>effective uid</strong> may change under various rules to allow a process to execute with the rights of different users.<br />
<strong>saved uid</strong> stores the original effective uid, its value is used in deciding what effective uid values the user may switch to.<br />
<strong>filesystem uid</strong> which is usually equal to the effective uid, is used for verifying file system access.<br />
</code><br />
<code><strong><br />
real gid<br />
effective gid<br />
save gid<br />
filesystem gid</strong></code></p>
<p><strong>IPC</strong> mechanism supported by Linux:<br />
<code><br />
pipes<br />
named pipes<br />
semaphores<br />
message queues<br />
shared memory<br />
futexes<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2009/03/20/linux-system-programming-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>看图学VCS</title>
		<link>http://blogs.gnome.org/raywang/2009/01/04/%e7%9c%8b%e5%9b%be%e5%ad%a6vcs/</link>
		<comments>http://blogs.gnome.org/raywang/2009/01/04/%e7%9c%8b%e5%9b%be%e5%ad%a6vcs/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 10:37:00 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://raywang.yo2.cn/articles/%e7%9c%8b%e5%9b%be%e5%ad%a6vcs.html</guid>
		<description><![CDATA[&#60;br&#62; <a href="http://blogs.gnome.org/raywang/2009/01/04/%e7%9c%8b%e5%9b%be%e5%ad%a6vcs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>http://www.ruanyifeng.com/blog/2008/12/a_visual_guide_to_version_control.html</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2009/01/04/%e7%9c%8b%e5%9b%be%e5%ad%a6vcs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20 Great Quotes from Richard M. Stallman</title>
		<link>http://blogs.gnome.org/raywang/2008/12/29/20-great-quotes-from-richard-m-stallman/</link>
		<comments>http://blogs.gnome.org/raywang/2008/12/29/20-great-quotes-from-richard-m-stallman/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 05:55:00 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://raywang.yo2.cn/articles/20-great-quotes-from-richard-m-stallman.html</guid>
		<description><![CDATA[&#60;br&#62; <a href="http://blogs.gnome.org/raywang/2008/12/29/20-great-quotes-from-richard-m-stallman/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>from http://www.junauza.com/2008/06/20-great-quotes-from-richard-m-stallman.html</p>
<div style="text-align: justify"><a href="http://bp1.blogger.com/_UqUwVPikChs/SFzi1sptxmI/AAAAAAAAEM8/qrY9Cyy5szg/s1600-h/stallman.jpg"><img border="0" src="http://bp1.blogger.com/_UqUwVPikChs/SFzi1sptxmI/AAAAAAAAEM8/qrY9Cyy5szg/s400/stallman.jpg" style="margin: 0px auto 10px;text-align: center"></a>I have here a collection of 20 of my favorite quotes from the famous free software evangelist and living legend Richard M. Stallman. I hope you will all like this one. Here it goes:</div>
<p>
1- &quot;I could have made money this way, and perhaps amused myself writing code. But I knew that at the end of my career, I would look back on years of building walls to divide people, and feel I had spent my life making the world a worse place.&quot;</p>
<p>2- &quot;When I do this, some people think that it&#8217;s because I want my ego to be fed, right? Of course, I&#8217;m not asking you to call it &quot;Stallmanix&quot;!&quot;</p>
<p>3- &quot;I&#8217;m always happy when I&#8217;m protesting.&quot;</p>
<p>4- &quot;Geeks like to think that they can ignore politics, you can leave politics alone, but politics won&#8217;t leave you alone.&quot;</p>
<p>5- &quot;People sometimes ask me if it is a sin in the Church of Emacs to use vi. Using a free version of vi is not a sin; it is a penance. So happy hacking.&quot;</p>
<p>6- &quot;If programmers deserve to be rewarded for creating innovative programs, by the same token they deserve to be punished if they restrict the use of these programs.&quot;</p>
<p>7- &quot;Fighting patents one by one will never eliminate the danger of software patents, any more than swatting mosquitoes will eliminate malaria.&quot;</p>
<p>8- &quot;People said I should accept the world. Bullshit! I don&#8217;t accept the world.&quot;</p>
<p>9- &quot;Giving the Linus Torvalds Award to the Free Software Foundation is a bit like giving the Han Solo Award to the Rebel Alliance.&quot;</p>
<p>10- &quot;Would a dating service on the net be &lsquo;frowned upon&rsquo; . . . ? I hope not. But even if it is, don&rsquo;t let that stop you from notifying me via net mail if you start one.&quot;</p>
<p>11- &quot;Once GNU is written, everyone will be able to obtain good system software free, just like air.&quot;</p>
<p>12- &quot;If you want to accomplish something in the world, idealism is not enough&#8211;you need to choose a method that works to achieve the goal. In other words, you need to be &quot;pragmatic.&quot;</p>
<p>13- &quot;No person, no idea, and no religion deserves to be illegal to insult, not even the Church of Emacs.&quot;</p>
<p>14- &quot;Today many people are switching to free software for purely practical reasons. That is good, as far as it goes, but that isn&#8217;t all we need to do! Attracting users to free software is not the whole job, just the first step.&quot;</p>
<p>15- &quot;If in my lifetime the problem of non-free software is solved, I could perhaps relax and write software again. But I might instead try to help deal with the world&#8217;s larger problems. Standing up to an evil system is exhilarating, and now I have a taste for it.&quot;</p>
<p>16- &quot;I see nothing unethical in the job it does. Why shouldn&#8217;t you send a copy of some music to a friend?&quot;</p>
<p>17- &quot;&#8217;Free software&#8217; is a matter of liberty, not price. To understand the concept, you should think of &#8216;free&#8217; as in &#8216;free speech,&#8217; not as in &#8216;free beer&#8217;.&quot;</p>
<p>18- &quot;For personal reasons, I do not browse the web from my computer. (I also have not net connection much of the time.) To look at page I send mail to a demon which runs wget and mails the page back to me. It is very efficient use of my time, but it is slow in real time.&quot;</p>
<p>19- &quot;Playfully doing something difficult, whether useful or not, that is hacking.&quot;</p>
<p>20- &quot;Copying all or parts of a program is as natural to a programmer as breathing, and as productive. It ought to be as free.&quot;</p>
<p><span style="font-weight: bold">If you have a favorite Richard M. Stallman quote, feel free to share it to us.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2008/12/29/20-great-quotes-from-richard-m-stallman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH login without password</title>
		<link>http://blogs.gnome.org/raywang/2008/12/25/ssh-login-without-password/</link>
		<comments>http://blogs.gnome.org/raywang/2008/12/25/ssh-login-without-password/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 06:02:00 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://raywang.yo2.cn/articles/ssh-login-without-password.html</guid>
		<description><![CDATA[&#60;br&#62; <a href="http://blogs.gnome.org/raywang/2008/12/25/ssh-login-without-password/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>摘自：http://linuxproblem.org/art_9.html</p>
<h2>Your aim</h2>
<p>You want to use Linux and OpenSSH to automize your tasks. Therefore you need an <strong>automatic</strong> login from host A / user a to Host B / user b. You don&#8217;t want to enter any passwords, because you want to call <tt>ssh</tt> from a within a shell script.</p>
<h2>How to do it</h2>
<p>First log in on A as user a and generate a pair of authentication keys.  Do not enter a passphrase:</p>
<pre><font color="#800080">a@A:~&gt; ssh-keygen -t rsa<br />Generating public/private rsa key pair.<br />Enter file in which to save the key (/home/a/.ssh/id_rsa): <br />Created directory '/home/a/.ssh'.<br />Enter passphrase (empty for no passphrase): <br />Enter same passphrase again: <br />Your identification has been saved in /home/a/.ssh/id_rsa.<br />Your public key has been saved in /home/a/.ssh/id_rsa.pub.<br />The key fingerprint is:<br />3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A</font></p>
<p>Now use <tt>ssh</tt> to create a directory <tt>~/.ssh</tt> as user b on B. (The directory may already exist, which is fine):</p>
<pre><font color="#800080">a@A:~&gt; ssh b@B mkdir -p .ssh<br />b@B's password: </font></p>
<p>Finally append a's new public key to <tt>b@B:.ssh/authorized_keys</tt> and enter b's password one last time:</p>
<pre><font color="#800080">a@A:~&gt; cat .ssh/id_rsa.pub | ssh b@B 'cat &gt;&gt; .ssh/authorized_keys'<br />b@B's password: </font></p>
<p>From now on you can log into B as b from A as a without password:</p>
<pre><font color="#800080">a@A:~&gt; ssh b@B hostname<br />B</font></p>
<p><strong>A note</strong> from one of our readers:  Depending on your version of SSH you might also have to do the following changes:</p>
<ul>
<li>Put the public key in <tt>.ssh/authorized_keys2</tt></li>
<li>Change the permissions of <tt>.ssh</tt> to <tt>700</tt></li>
<li>Change the permissions of <tt>.ssh/authorized_keys2</tt> to <tt>640</tt></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2008/12/25/ssh-login-without-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在OBS上增加一些额外的 repository</title>
		<link>http://blogs.gnome.org/raywang/2008/09/19/%e5%9c%a8obs%e4%b8%8a%e5%a2%9e%e5%8a%a0%e4%b8%80%e4%ba%9b%e9%a2%9d%e5%a4%96%e7%9a%84-repository/</link>
		<comments>http://blogs.gnome.org/raywang/2008/09/19/%e5%9c%a8obs%e4%b8%8a%e5%a2%9e%e5%8a%a0%e4%b8%80%e4%ba%9b%e9%a2%9d%e5%a4%96%e7%9a%84-repository/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 09:48:00 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://raywang.yo2.cn/articles/%e5%9c%a8obs%e4%b8%8a%e5%a2%9e%e5%8a%a0%e4%b8%80%e4%ba%9b%e9%a2%9d%e5%a4%96%e7%9a%84-repository.html</guid>
		<description><![CDATA[&#60;br&#62; <a href="http://blogs.gnome.org/raywang/2008/09/19/%e5%9c%a8obs%e4%b8%8a%e5%a2%9e%e5%8a%a0%e4%b8%80%e4%ba%9b%e9%a2%9d%e5%a4%96%e7%9a%84-repository/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>在  osc meta pkj home:rawang -e 里增加红色行</p>
<p>&lt;project name=&quot;home:rawang&quot;&gt;<br />
  &lt;title&gt;Ray Wang&#8217;s Home Project&lt;/title&gt;<br />
  &lt;description&gt;Hope to contribute all my efforts to the community, and make this distribution even better.&lt;/description&gt;<br />
  &lt;person role=&quot;maintainer&quot; userid=&quot;AvengerMoJo&quot;/&gt;<br />
  &lt;person role=&quot;maintainer&quot; userid=&quot;allau&quot;/&gt;<br />
  &lt;person role=&quot;maintainer&quot; userid=&quot;decriptor&quot;/&gt;<br />
  &lt;person role=&quot;maintainer&quot; userid=&quot;rawang&quot;/&gt;<br />
  &lt;person role=&quot;bugowner&quot; userid=&quot;rawang&quot;/&gt;<br />
  &lt;build&gt;<br />
&lt;enable repository=&#8217;Fedora_9&#8242;/&gt;<br />
&lt;enable repository=&#8217;openSUSE_11.0&#8242;/&gt;<br />
&lt;enable repository=&#8217;xUbuntu_8.04&#8242;/&gt;<br />
<font color="#ff0000">&lt;disable repository=&#8217;openSUSE11.0_GNOME_Factory&#8217;/&gt;</font><br />
  &lt;/build&gt;<br />
  &lt;publish&gt;<br />
&lt;enable repository=&#8217;Fedora_9&#8242;/&gt;<br />
&lt;enable repository=&#8217;openSUSE_11.0&#8242;/&gt;<br />
&lt;enable repository=&#8217;xUbuntu_8.04&#8242;/&gt;<br />
&lt;enable repository=&#8217;openSUSE11.0_Factory&#8217;/&gt;<br />
  &lt;/publish&gt;<br />
  &lt;repository name=&quot;Fedora_9&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;path repository=&quot;standard&quot; project=&quot;Fedora:9&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;arch&gt;i586&lt;/arch&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;arch&gt;x86_64&lt;/arch&gt;<br />
  &lt;/repository&gt;<br />
<font color="#ff0000">  &lt;repository name=&quot;openSUSE11.0_GNOME_Factory&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;path repository=&quot;standard&quot; project=&quot;openSUSE:11.0&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;path repository=&quot;openSUSE_Factory&quot; project=&quot;GNOME:Factory&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;arch&gt;i586&lt;/arch&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;arch&gt;x86_64&lt;/arch&gt;<br />
  &lt;/repository&gt;</font><br />
&lt;repository name=&quot;openSUSE_11.0&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;path repository=&quot;standard&quot; project=&quot;openSUSE:11.0&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;arch&gt;i586&lt;/arch&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;arch&gt;x86_64&lt;/arch&gt;<br />
  &lt;/repository&gt;<br />
  &lt;repository name=&quot;xUbuntu_8.04&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;path repository=&quot;standard&quot; project=&quot;Ubuntu:8.04&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;arch&gt;i586&lt;/arch&gt;<br />
&nbsp;&nbsp;&nbsp;  &lt;arch&gt;x86_64&lt;/arch&gt;<br />
  &lt;/repository&gt;<br />
&lt;/project&gt;</p>
<p>然后在需要额外 repository的包里增加红色行<br />
osc meta pkg home:rawang orca -e</p>
<p>&lt;package name=&quot;orca&quot; project=&quot;home:rawang&quot;&gt;<br />
  &lt;title&gt;A screen reader that provides access to the GNOME desktop by people with visual impairments&lt;/title&gt;<br />
  &lt;description&gt;A flexible, scriptable, extensible screen reader for the GNOME platform<br />
that provides access via speech synthesis, braille, and magnification.&lt;/description&gt;<br />
  &lt;person role=&quot;maintainer&quot; userid=&quot;rawang&quot;/&gt;<br />
  &lt;build&gt;<br />
<font color="#ff0000">&lt;enable repository=&#8217;openSUSE11.0_GNOME_Factory&#8217;/&gt;</font><br />
  &lt;/build&gt;<br />
&lt;/package&gt;</p>
<p>就可以了</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2008/09/19/%e5%9c%a8obs%e4%b8%8a%e5%a2%9e%e5%8a%a0%e4%b8%80%e4%ba%9b%e9%a2%9d%e5%a4%96%e7%9a%84-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autotools 学习笔记</title>
		<link>http://blogs.gnome.org/raywang/2008/07/11/autotools-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/</link>
		<comments>http://blogs.gnome.org/raywang/2008/07/11/autotools-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 07:20:00 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://raywang.yo2.cn/articles/autotools-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0.html</guid>
		<description><![CDATA[&#60;br&#62; <a href="http://blogs.gnome.org/raywang/2008/07/11/autotools-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>随便写了个hello程序练习：<br />
hello/<br />
|&#8211; Makefile.am<br />
`&#8211; src<br />
&nbsp;&nbsp;&nbsp;     |&#8211; Makefile.am<br />
&nbsp;&nbsp;&nbsp;     `&#8211; main.c<br />
<strong><br />
<font size="3" color="#ff0000">几个文件的内容：</font></strong><br />
<strong><u>hello/Makefile.am:</u><br />
</strong>SUBDIRS = src<strong><br />
</strong><u><br />
<strong>hello/src/Makefile.am</strong>:</u><br />
bin_PROGRAMS = hello<br />
hello_SOURCES = main.c<br />
<u><br />
<strong>hello/src/main.c:</strong></u><br />
#include &lt;config.h&gt;<br />
#include &lt;stdio.h&gt;</p>
<p>int<br />
main (void)<br />
{<br />
&nbsp;&nbsp;&nbsp;     puts (&quot;hello, world\n&quot;);<br />
&nbsp;&nbsp;&nbsp;     puts (&quot;This is &quot;  PACKAGE_STRING &quot;.&quot;);<br />
&nbsp;&nbsp;&nbsp;     return 0;<br />
}</p>
<p><u><strong>hello/configure.in:</strong></u><br />
AC_PREREQ(2.61)<br />
AC_INIT([hello],[0.1],[bug@report.com])<br />
AM_INIT_AUTOMAKE([-Wall -Werror])<br />
AC_CONFIG_SRCDIR([src/main.c])<br />
AC_CONFIG_HEADER([config.h])<br />
AC_PROG_CC<br />
AC_CONFIG_FILES([Makefile<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     src/Makefile])<br />
AC_OUTPUT<br />
<font color="#ff0000"><br />
<strong><font size="3">如果一步一步来：</font></strong><br />
</font>1. autoscan<br />
2. modify configure.scan<br />
3. rename configure.scan to configure.in<br />
4. aclocal<br />
5. autoheader<br />
6. autoupdate<br />
7. touch NEWS README AUTHORS ChangeLog COPYING<br />
8. automake &#8211;add-missing<br />
9. autoconf</p>
<p><font size="3" color="#ff0000"><strong>如果为了简单：</strong></font><br />
1. touch NEWS README AUTHORS ChangeLog COPYING<br />
2. autoreconf &#8211;install</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2008/07/11/autotools-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>make some sound concepts clear</title>
		<link>http://blogs.gnome.org/raywang/2008/06/06/make-some-sound-concepts-clear/</link>
		<comments>http://blogs.gnome.org/raywang/2008/06/06/make-some-sound-concepts-clear/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 10:26:00 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://raywang.yo2.cn/articles/make-some-sound-concepts-clear.html</guid>
		<description><![CDATA[&#60;br&#62; <a href="http://blogs.gnome.org/raywang/2008/06/06/make-some-sound-concepts-clear/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>[17:12] &lt;raywang&gt; juhovh: i have a question<br />
[17:13] &lt;raywang&gt; juhovh: what&#8217;s the relationship between gsteamer and pulseaudio?<br />
[17:13] &lt;juhovh&gt; there&#8217;s no relationship as far as I know<br />
[17:13] &lt;juhovh&gt; except that gstreamer has a pulseaudio output plugin<br />
[17:14] &lt;juhovh&gt; if I could just make any sense out of gstreamer APIs I would probably rewrite their ASF parser<br />
[17:14] &lt;raywang&gt; juhovh: there are too much audio related softwares, PulseAudio, Esound, Gstreamer, Xine. I can&#8217;t figure out their relationship<br />
[17:15] &lt;juhovh&gt; pulseaudio is an esound replacement<br />
[17:15] &lt;juhovh&gt; it works between the kernel audio interface and applications<br />
[17:15] &lt;juhovh&gt; gstreamer and xine are both libraries for demuxing/decoding/mixing etc. audio and video streams<br />
[17:16] &lt;juhovh&gt; they can output directly to the kernel interfaces (ALSA, OSS) or to pulseaudio, esd, jack etc<br />
[17:16] &lt;juhovh&gt; the benefit of having something like pulseaudio in the middle is more control<br />
[17:16] &lt;juhovh&gt; and you can for example stream all output over network to another pulseaudio daemon<br />
[17:16] &lt;juhovh&gt; direct output to the kernel doesn&#8217;t make that possible<br />
[17:17] &lt;juhovh&gt; then there&#8217;s the horrible thing of ALSA that in addition to kernel API includes a userspace library to make accessing it more simple<br />
[17:17] &lt;juhovh&gt; but I don&#8217;t like ALSA that much<br />
[17:17] &lt;juhovh&gt; alsa and oss mainly work inside the kernel<br />
[17:17] &lt;juhovh&gt; and provide a consistent api that will work with all sound cards<br />
[17:17] &lt;juhovh&gt; otherwise you would have to write drivers for each sound card separately<br />
[17:17] &lt;juhovh&gt; like in the DOS days<br />
[17:18] &lt;juhovh&gt; I&#8217;m xmms2 developer myself, so I haven&#8217;t done that much with the gstreamer and xine and stuff except read their code<br />
[17:19] &lt;raywang&gt; juhovh: could i sum up it as &quot;alsa and oss are kernel audio APIs, and PulseAudio and Esound coordinate with them and Gsteamer and Xine?&quot;<br />
[17:20] &lt;juhovh&gt; yeah, alsa and oss are kernel audio APIs, pulseaudio and esound are userspace audio daemons, gstreamer and xine are audio/video players/recorders/whatever<br />
[17:20] &lt;juhovh&gt; and they have a graphical frontend that is usually separate<br />
[17:22] &lt;raywang&gt; juhovh: what&#8217;s the sound server in nowadays, is it essential in a distro?<br />
[17:23] &lt;juhovh&gt; sound server is exactly the daemons like pulseaudio<br />
[17:23] &lt;juhovh&gt; it&#8217;s not essential, but can make things easier<br />
[17:25] &lt;raywang&gt; juhovh: so the sound server don&#8217;t need to start until to make thing easied?<br />
[17:25] &lt;juhovh&gt; raywang: for example some sound cards (many cheap ones) only accept one audio stream, so you can only use one application that outputs sound at the same time<br />
[17:26] &lt;juhovh&gt; raywang: there are some workarounds for this in alsa, but the easiest way is to set up a sound server and make all applications output audio into it<br />
[17:26] &lt;juhovh&gt; and it will do the mixing and forward the sound to alsa<br />
[17:40] &lt;raywang&gt; juhovh: the applications could talk to kernel diectly thought alsa or oss, but lack some features?<br />
[17:40] &lt;juhovh&gt; they don&#8217;t really lack features<br />
[17:41] &lt;juhovh&gt; but the goal of drivers in kernel spaces is to be as minimal as possible<br />
[17:41] &lt;juhovh&gt; to keep the kernel maintainable<br />
[17:41] &lt;juhovh&gt; so there&#8217;s just more things you can do in userspace<br />
[17:41] &lt;juhovh&gt; OSS4 is quite interesting audio API, but that&#8217;s not in kernel, at least not yet<br />
[17:41] &lt;juhovh&gt; I would kind of like to see a move from ALSA back to OSS&#8230;<br />
[17:42] &lt;juhovh&gt; bad experience from alsa config files<br />
[17:42] &lt;raywang&gt; juhovh: ah alsa and oss  behave as a abstract layer?<br />
[17:43] &lt;juhovh&gt; that&#8217;s what kernel APIs do :p<br />
[17:43] &lt;juhovh&gt; abstract the hardware from vendor specific details<br />
[17:43] &lt;juhovh&gt; but added functionality should be in user space<br />
[17:44] &lt;raywang&gt; understand<br />
[17:44] &lt;raywang&gt; juhovh: nowadays, oss was replaced by alsa, and esound was replaced by PulseAudio?<br />
[17:44] &lt;juhovh&gt; brings us to the microkernel discussion :p<br />
[17:44] &lt;juhovh&gt; yeah<br />
[17:44] &lt;juhovh&gt; and the new OSS (OSS4) was a proprietary sound driver system<br />
[17:44] &lt;juhovh&gt; but they recently released it as GPL<br />
[17:44] &lt;raywang&gt; cool<br />
[17:45] &lt;juhovh&gt; and from what I know it seems better than ALSA<br />
[17:45] &lt;juhovh&gt; no one just wants to make another big change<br />
[17:45] &lt;juhovh&gt; when the OSS-&gt;ALSA switch was just finished :p<br />
[17:45] &lt;raywang&gt; yeah<br />
[17:45] &lt;juhovh&gt; and the whole reason for OSS4 to become GPLed was that ALSA developers started promoting making ALSA-only applications<br />
[17:46] &lt;juhovh&gt; the business idea of OSS4 was to make all Linux sound applications work on other *nix systems like Solaris, AIX etc.<br />
[17:46] &lt;juhovh&gt; but if Linux applications are ALSA-only they will be obsolete<br />
[17:46] &lt;juhovh&gt; bad for business<br />
[17:47] &lt;raywang&gt; alsa mean advanced linux sound architeture, that&#8217;s why alsa will dominate the Linux market. lol<br />
[17:47] &lt;juhovh&gt; so by GPL release they&#8217;re trying bringing up-to-date OSS system and try to keep applications supporting OSS<br />
[17:47] &lt;juhovh&gt; yeah, the old OSS in Linux (FreeOSS) was outdated<br />
[17:47] &lt;juhovh&gt; therefore compared to that ALSA is advanced<br />
[17:48] &lt;juhovh&gt; but the proprietary OSS was developed internally and has pretty much comparable features<br />
[17:48] &lt;raywang&gt; juhovh: so you must be a kernel hacker. <img src='http://blogs.gnome.org/raywang/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> <br />
[17:48] &lt;juhovh&gt; no, I&#8217;m not really<br />
[17:48] &lt;juhovh&gt; I like my kernel to just work<br />
[17:49] &lt;juhovh&gt; other people are paid to do that :p<br />
[17:49] &lt;raywang&gt; juhovh: I was wondering why there is not any sound server appear when i type &quot;ps ax&quot;, now i have a sense of it. , thanks you <img src='http://blogs.gnome.org/raywang/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> <br />
[17:50] &lt;raywang&gt; juhovh: you open my mind, and make me clear of that.<br />
[17:51] &lt;raywang&gt; that&#8217;s the top issue confused me a lot. <img src='http://blogs.gnome.org/raywang/wp-content/mu-plugins/tango-smilies/tango/face-smile-big.png' alt=':D' class='wp-smiley' /> <br />
[17:51] &lt;juhovh&gt; for me there is<br />
[17:51] &lt;juhovh&gt; 7049 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Sl&nbsp;&nbsp;&nbsp;&nbsp;  0:15 /usr/bin/pulseaudio &#8211;log-target=syslog<br />
[17:52] &lt;juhovh&gt; but I&#8217;m running pretty plain ubuntu these days<br />
[17:52] &lt;raywang&gt; there is not any in my opensuse<br />
[17:52] &lt;juhovh&gt; then it probably uses alsa<br />
[17:52] &lt;juhovh&gt; with correct configuration one doesn&#8217;t need a sound server<br />
[17:53] &lt;raywang&gt; juhovh: do you mean my application talk to kernel directlly without a sound server?<br />
[17:53] &lt;juhovh&gt; yeah, although in case of ALSA probably through libalsa :p<br />
[17:54] &lt;juhovh&gt; to make things more complicated<br />
[17:54] &lt;juhovh&gt; but libalsa doesn&#8217;t count as a sound server, because it&#8217;s just loaded to the application<br />
[17:54] &lt;raywang&gt; make sense!<br />
[17:56] &lt;raywang&gt; juhovh: anything else to add or explain?  do you mind i post what we talk in my blog, i hope i could save those important words. <img src='http://blogs.gnome.org/raywang/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> <br />
[17:57] &lt;juhovh&gt; I just remembered this <a href="http://insanecoding.blogspot.com/2007/05/sorry-state-of-sound-in-linux.html" target="_blank">http://insanecoding.blogspot.com/2007/05/sorry-state-of-sound-in-linux.html</a><br />
[17:57] &lt;juhovh&gt; it somewhat lists all the libraries and stuff in linux :p<br />
[17:57] &lt;juhovh&gt; but skips stuff like pulseaudio<br />
[17:57] &lt;juhovh&gt; and is somewhat biased<br />
[17:57] &lt;juhovh&gt; so should be taken with a grain of salt :p<br />
[17:58] &lt;raywang&gt; grain of salt? it&#8217;s a slang, i don&#8217;t understand <img src='http://blogs.gnome.org/raywang/wp-content/mu-plugins/tango-smilies/tango/face-raspberry.png' alt=':P' class='wp-smiley' /> <br />
[17:59] &lt;juhovh&gt; <a href="http://en.wikipedia.org/wiki/Grain_of_salt" target="_blank">http://en.wikipedia.org/wiki/Grain_of_salt</a><br />
[17:59] &lt;juhovh&gt; wikipedia to the resque <img src='http://blogs.gnome.org/raywang/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> <br />
[17:59] &lt;raywang&gt; haha , thank you<br />
[18:00] &lt;raywang&gt; juhovh: so do you mind i post what we talk in my blog? <img src='http://blogs.gnome.org/raywang/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> <br />
[18:00] &lt;juhovh&gt; it will be embarrassing if I made some mistakes :p<br />
[18:01] &lt;juhovh&gt; but you can<br />
[18:01] &lt;raywang&gt; hehe, thank you <img src='http://blogs.gnome.org/raywang/wp-content/mu-plugins/tango-smilies/tango/face-smile-big.png' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2008/06/06/make-some-sound-concepts-clear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rxvt 美化</title>
		<link>http://blogs.gnome.org/raywang/2008/03/10/rxvt-%e7%be%8e%e5%8c%96/</link>
		<comments>http://blogs.gnome.org/raywang/2008/03/10/rxvt-%e7%be%8e%e5%8c%96/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 01:28:00 +0000</pubDate>
		<dc:creator>raywang</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://raywang.yo2.cn/articles/rxvt-%e7%be%8e%e5%8c%96.html</guid>
		<description><![CDATA[&#60;br&#62; <a href="http://blogs.gnome.org/raywang/2008/03/10/rxvt-%e7%be%8e%e5%8c%96/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>rxvt-unicode 应该是支持unicode的xterm，想以后可能会用到，先把这篇文章转下来：<br />
http://www.leninlee.cn/?p=316</p>
<p>&nbsp;&nbsp;  rxvt是个快速且节省内存的模拟终端，原版rxvt对中文等非字母语言的支持不好，所以它有许多修改版，rxvt-unicode-ml是比较适合中国人使用的rxvt修改版。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; rxvt轻量但不简单，它有许多设置选项和启动参数，用户可以在命令行使用&ldquo;<font color="#036803">rxvt -help</font>&rdquo;查看其常用启动参数，使用&ldquo;<font color="#036803">rxvt &ndash;help</font>&rdquo;查看更为详细的启动参数。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 通过修改用户主目录下的&ldquo;<font color="#a73800">.Xresources</font>&rdquo;文件可以配置urxvt的行为，从而不必每次都加启动参数，我的&rdquo;<font color="#a73800">.Xresources</font>&ldquo;文件内容如下：</p>
<blockquote>
<p><font color="#036803">Rxvt.background:white<br />
Rxvt.foreground:black<br />
Rxvt.colorBD:yellow<br />
Rxvt.colorUL:green<br />
Rxvt.multichar_encoding:gb2312<br />
Rxvt.scrollBar:Fault<br />
Rxvt.scrollBar_right:True<br />
Rxvt.scrollBar_floating: True<br />
Rxvt.scrollstyle: next<br />
Rxvt.saveLines:10000<br />
Rxvt.color0:black<br />
Rxvt.color1:red3<br />
Rxvt.color2:springgreen<br />
Rxvt.color3:wheat3<br />
Rxvt.color4:navy<br />
Rxvt.color5:magenta4<br />
Rxvt.color6:steelblue1<br />
Rxvt.color7:gray85<br />
Rxvt.color8:gray10<br />
Rxvt.color9:SkyBlue3<br />
Rxvt.color10:chartreuse3<br />
Rxvt.color11:lightgoldenrod2<br />
Rxvt.color12:SkyBlue1<br />
Rxvt.color13:pink1<br />
Rxvt.color14:lightblue1<br />
Rxvt.color15:#dbeff9<br />
Rxvt.font:xft:Vera Sans YuanTi Mono :size=10,xft:Monospace:size=10<br />
Rxvt.menu:/etc/X11/rxvt.menu<br />
Rxvt.preeditType:Root<br />
Rxvt.geometry:192×174<br />
Rxvt.transparency:255</font></p>
</blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 这个配置文件是白底黑字，当然可以修改为全透明或者半透明，不过，只要在启动时加入启动参数就可以实现全透明：</p>
<blockquote>
<p><font color="#036803">urxvt -tr</font></p>
</blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 也可以实现半透明：</p>
<blockquote>
<p><font color="#036803">urxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr</font></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/raywang/2008/03/10/rxvt-%e7%be%8e%e5%8c%96/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  blogs.gnome.org/raywang/category/gnulinux/feed/ ) in 1.45173 seconds, on Feb 11th, 2012 at 8:04 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 9:04 pm UTC -->
