<?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/"
	>

<channel>
	<title>JayXie&#039;s blog &#187; GNU/Linux</title>
	<atom:link href="http://jayxie.com/category/gnulinux/feed" rel="self" type="application/rss+xml" />
	<link>http://jayxie.com</link>
	<description>Around emacs, linux, etc.</description>
	<lastBuildDate>Sat, 15 May 2010 13:37:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下通过USB用WM6手机的GPRS上网</title>
		<link>http://jayxie.com/2009/01/18/linux%e4%b8%8b%e9%80%9a%e8%bf%87usb%e7%94%a8wm6%e6%89%8b%e6%9c%ba%e7%9a%84gprs%e4%b8%8a%e7%bd%91.html</link>
		<comments>http://jayxie.com/2009/01/18/linux%e4%b8%8b%e9%80%9a%e8%bf%87usb%e7%94%a8wm6%e6%89%8b%e6%9c%ba%e7%9a%84gprs%e4%b8%8a%e7%bd%91.html#comments</comments>
		<pubDate>Sun, 18 Jan 2009 14:59:45 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jayxie.com/?p=196</guid>
		<description><![CDATA[
From <a href="http://wiki.xda-developers.com/index.php?pagename=Hermes_Modem_With_Linux">http://wiki.xda-developers.com/index.php?pagename=Hermes_Modem_With_Linux</a>
但并不是一定得用Hermes这个机器，我用的是Dopod D600，所谓的GENE，按照文中所述编译安装了usb-rndis-lite后，在手机上用Internet共享拨号连接后，NetworkManager就找到了一个新的网络设备，这时候就连接成功了

]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://wiki.xda-developers.com/index.php?pagename=Hermes_Modem_With_Linux">http://wiki.xda-developers.com/index.php?pagename=Hermes_Modem_With_Linux</a></p>
<p>但并不是一定得用Hermes这个机器，我用的是Dopod D600，所谓的GENE，按照文中所述编译安装了usb-rndis-lite后，在手机上用Internet共享拨号连接后，NetworkManager就找到了一个新的网络设备，这时候就连接成功了</p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2009/01/18/linux%e4%b8%8b%e9%80%9a%e8%bf%87usb%e7%94%a8wm6%e6%89%8b%e6%9c%ba%e7%9a%84gprs%e4%b8%8a%e7%bd%91.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>a google chrome like color schema for sawfish using mxflat theme</title>
		<link>http://jayxie.com/2009/01/06/a-google-chrome-like-color-schem-for-sawfish-using-mx-flat-theme.html</link>
		<comments>http://jayxie.com/2009/01/06/a-google-chrome-like-color-schem-for-sawfish-using-mx-flat-theme.html#comments</comments>
		<pubDate>Tue, 06 Jan 2009 02:39:46 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jayxie.com/?p=176</guid>
		<description><![CDATA[
mxflat theme can be found in sawfish-themes package in both ubuntu and debian.
I made a google chrome like color schema using this theme with settings below.
This is the sample image, the browser is swiftfox with chromifox theme.

Also you can make a shadow~


Here is the auto-generated configuration with sawfish-ui.

(custom-set-typed-variable (quote mxflat:fake-shadow) (quote ()) (quote boolean))
(custom-set-typed-variable (quote <a href="http://jayxie.com/2009/01/06/a-google-chrome-like-color-schem-for-sawfish-using-mx-flat-theme.html" class="more-link">More &#62;</a>
]]></description>
			<content:encoded><![CDATA[<p>mxflat theme can be found in sawfish-themes package in both ubuntu and debian.</p>
<p>I made a google chrome like color schema using this theme with settings below.</p>
<p>This is the sample image, the browser is swiftfox with chromifox theme.<br />
<a href="http://jayxie.com/wp-content/uploads/2009/01/sawfish-mxflat-chrome.png"><img src="http://jayxie.com/wp-content/uploads/2009/01/sawfish-mxflat-chrome-300x163.png" alt="sawfish-mxflat-chrome" title="sawfish-mxflat-chrome" width="300" height="163" class="alignnone size-medium wp-image-177" /></a></p>
<p>Also you can make a shadow~<br />
<a href="http://jayxie.com/wp-content/uploads/2009/01/sawfish-mxflat-chrome-shadow.png"><img src="http://jayxie.com/wp-content/uploads/2009/01/sawfish-mxflat-chrome-shadow-300x197.png" alt="sawfish-mxflat-chrome-shadow" title="sawfish-mxflat-chrome-shadow" width="300" height="197" class="alignnone size-medium wp-image-178" /></a></p>
<p><span id="more-176"></span></p>
<p>Here is the auto-generated configuration with sawfish-ui.</p>
<pre class="brush: cl;">
(custom-set-typed-variable (quote mxflat:fake-shadow) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:shadow-width) (quote 4) (quote (number 0 100)))
(custom-set-typed-variable (quote mxflat:shadow-light-distance) (quote 3) (quote (number 1 100)))
(custom-set-typed-variable (quote default-frame-style) (quote mxflat) (quote frame-style))
(custom-set-typed-variable (quote mxflat:show-corners) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:border-width-unmaximized) (quote 1) (quote (number 0 1000)))
(custom-set-typed-variable (quote mxflat:border-width-maximized) (quote 1) (quote (number 0 1000)))
(custom-set-typed-variable (quote mxflat:border-color-unfocused) (quote &quot;#587f84dcba8b&quot;) (quote color))
(custom-set-typed-variable (quote mxflat:border-color-focused) (quote &quot;#42427c7bc2c1&quot;) (quote color))
(custom-set-typed-variable (quote mxflat:border-offset) (quote 0) (quote (number -1000 1000)))
(custom-set-typed-variable (quote mxflat:titlebar-gradient-bgcolors) (quote (&quot;#605fa09ff0ef&quot; &quot;#3ac276ebbf1a&quot;)) (quote (list color &quot;titlebar background colors&quot;)))
(custom-set-typed-variable (quote mxflat:title-gradient) (quote t) (quote boolean))
(custom-set-typed-variable (quote mxflat:titlebar-bgcolor-unfocused) (quote &quot;#605fa09ff0ef&quot;) (quote color))
(custom-set-typed-variable (quote mxflat:titlebar-bgcolor-focused) (quote &quot;#49488f8fe3e2&quot;) (quote color))
(custom-set-typed-variable (quote mxflat:text-color-unfocused) (quote &quot;#ffffffffffff&quot;) (quote color))
(custom-set-typed-variable (quote mxflat:customize-border-colors) (quote t) (quote boolean))
(custom-set-typed-variable (quote mxflat:text-color-focused) (quote &quot;#ffffffffffff&quot;) (quote color))
(custom-set-typed-variable (quote mxflat:custom-border-focused) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:keep-borders-when-shaded) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:border-width-titlebar-contents) (quote 0) (quote (number 0 1000)))
(custom-set-typed-variable (quote mxflat:decoration-mode) (quote normal) (quote symbol))
(custom-set-typed-variable (quote mxflat:title-font) (quote (&quot;Pango&quot; . &quot;Tahoma 8&quot;)) (quote font))
(custom-set-typed-variable (quote mxflat:title-height) (quote 14) (quote (number 9 1000)))
(custom-set-typed-variable (quote mxflat:color-brightness) (quote 90) (quote (number 0 100)))
(custom-set-typed-variable (quote mxflat:color-hue) (quote 0) (quote (number 0 360)))
(custom-set-typed-variable (quote mxflat:titlebar-gradient-bgcolors-reverse) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:gradient-scale) (quote 3) (quote (number 1 20)))
(custom-set-typed-variable (quote mxflat:titlebar-gradient-color-mode) (quote custom) (quote symbol))
(custom-set-typed-variable (quote mxflat:customize-title-position) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:custom-title) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:customize-extended-text-colors) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:gradient-direction) (quote vertical) (quote symbol))
(custom-set-typed-variable (quote mxflat:custom-button-colors) (quote ()) (quote boolean))
(custom-set-typed-variable (quote mxflat:fake-shadow-focused-only) (quote ()) (quote boolean))
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2009/01/06/a-google-chrome-like-color-schem-for-sawfish-using-mx-flat-theme.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>用adsl时如何使用dnsmasq</title>
		<link>http://jayxie.com/2008/10/05/%e7%94%a8adsl%e6%97%b6%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8dnsmasq.html</link>
		<comments>http://jayxie.com/2008/10/05/%e7%94%a8adsl%e6%97%b6%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8dnsmasq.html#comments</comments>
		<pubDate>Sun, 05 Oct 2008 12:29:06 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://jayxie.com/?p=132</guid>
		<description><![CDATA[
前面写过一篇帖子，是关于用dnsmasq做dns缓存的，里面提到的dsl部分采用的是注释掉usepeerdns，这并不是很好用，因为无法获取运营商的dns server
简单的做法是在/etc/ppp/ip-up.d/0000usepeerdns里cat /etc/ppp/resolv.conf前加上一句echo &#8220;nameserver 127.0.0.1&#8243; 把那一段变成这样即可。

<ol><li>merge the new nameservers with the other options from the old configuration
</li></ol>
{

<pre>
 echo &#34;nameserver 127.0.0.1&#34;
 cat /etc/ppp/resolv.conf
 grep --invert-match '^nameserver[[:space:]]' &#34;$REALRESOLVCONF&#34; &#124;&#124; true
</pre>
} &#62; &#34;$REALRESOLVCONF.tmp&#34;


]]></description>
			<content:encoded><![CDATA[<p>前面写过一篇帖子，是关于用dnsmasq做dns缓存的，里面提到的dsl部分采用的是注释掉usepeerdns，这并不是很好用，因为无法获取运营商的dns server<br />
简单的做法是在/etc/ppp/ip-up.d/0000usepeerdns里cat /etc/ppp/resolv.conf前加上一句echo &#8220;nameserver 127.0.0.1&#8243; 把那一段变成这样即可。</p>
<pre class="brush: bash;">
# merge the new nameservers with the other options from the old configuration
{
  echo &quot;nameserver 127.0.0.1&quot;
  cat /etc/ppp/resolv.conf
  grep --invert-match '^nameserver[[:space:]]' &quot;$REALRESOLVCONF&quot; || true
} &gt; &quot;$REALRESOLVCONF.tmp&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2008/10/05/%e7%94%a8adsl%e6%97%b6%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8dnsmasq.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>msn-pecan pidgin的msn插件 期待离线消息功能</title>
		<link>http://jayxie.com/2008/05/19/msn-pean-pidgin%e7%9a%84msn%e6%8f%92%e4%bb%b6-%e6%9c%9f%e5%be%85%e7%a6%bb%e7%ba%bf%e6%b6%88%e6%81%af%e5%8a%9f%e8%83%bd.html</link>
		<comments>http://jayxie.com/2008/05/19/msn-pean-pidgin%e7%9a%84msn%e6%8f%92%e4%bb%b6-%e6%9c%9f%e5%be%85%e7%a6%bb%e7%ba%bf%e6%b6%88%e6%81%af%e5%8a%9f%e8%83%bd.html#comments</comments>
		<pubDate>Mon, 19 May 2008 08:39:31 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://jayxie.com/?p=125</guid>
		<description><![CDATA[
<a href="http://code.google.com/p/msn-pecan/">http://code.google.com/p/msn-pecan/</a>
作者是pidgin的msnp主要开发者，说是pidgin忽视msnp的开发，所以独立出来作为一个插件。
目前已经支持了personal-message 离线消息放在了milestone-0.1.0 目前版本为0.0.12
try it!

]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/msn-pecan/">http://code.google.com/p/msn-pecan/</a></p>
<p>作者是pidgin的msnp主要开发者，说是pidgin忽视msnp的开发，所以独立出来作为一个插件。<br />
目前已经支持了personal-message 离线消息放在了milestone-0.1.0 目前版本为0.0.12</p>
<p>try it!</p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2008/05/19/msn-pean-pidgin%e7%9a%84msn%e6%8f%92%e4%bb%b6-%e6%9c%9f%e5%be%85%e7%a6%bb%e7%ba%bf%e6%b6%88%e6%81%af%e5%8a%9f%e8%83%bd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>swiftfox, 让你的firefox不再慢如牛</title>
		<link>http://jayxie.com/2007/09/05/swiftfox-%e8%ae%a9%e4%bd%a0%e7%9a%84firefox%e4%b8%8d%e5%86%8d%e6%85%a2%e5%a6%82%e7%89%9b.html</link>
		<comments>http://jayxie.com/2007/09/05/swiftfox-%e8%ae%a9%e4%bd%a0%e7%9a%84firefox%e4%b8%8d%e5%86%8d%e6%85%a2%e5%a6%82%e7%89%9b.html#comments</comments>
		<pubDate>Wed, 05 Sep 2007 02:24:14 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://jayxie.com/2007/09/05/swiftfox-%e8%ae%a9%e4%bd%a0%e7%9a%84firefox%e4%b8%8d%e5%86%8d%e6%85%a2%e5%a6%82%e7%89%9b.html</guid>
		<description><![CDATA[
其实牛挺好的 呵呵
昨天和委员交流linux使用心得，一致对linux下firefox那个慢是深恶痛绝，回来以后就开始找找看有没有解决办法，因为我们一致认为，linux最大的好处就是没有解决不了的问题。
于是，就找到了swiftfox
<a href="http://getswiftfox.com">http://getswiftfox.com</a> 是官方站 目前是2.0.0.6和2.0.0.7pre 可以上去下载
debian系的可以这样做 在sources.list里添加一条
deb <a href="http://getswiftfox.com/builds/debian">http://getswiftfox.com/builds/debian</a> unstable non-free
然后根据你的cpu类型安装swiftfox-xxx 比如我是pentium-m我就装swiftfox-pentium-m
唯一遗憾就是没有源码 不知道是怎么样优化的
优化后的最直接的效果就是访问msn space不再是100%cpu卡上数秒了~~

]]></description>
			<content:encoded><![CDATA[<p>其实牛挺好的 呵呵</p>
<p>昨天和委员交流linux使用心得，一致对linux下firefox那个慢是深恶痛绝，回来以后就开始找找看有没有解决办法，因为我们一致认为，linux最大的好处就是没有解决不了的问题。</p>
<p>于是，就找到了swiftfox</p>
<p><a href="http://getswiftfox.com">http://getswiftfox.com</a> 是官方站 目前是2.0.0.6和2.0.0.7pre 可以上去下载</p>
<p>debian系的可以这样做 在sources.list里添加一条<br />
deb <a href="http://getswiftfox.com/builds/debian">http://getswiftfox.com/builds/debian</a> unstable non-free<br />
然后根据你的cpu类型安装swiftfox-xxx 比如我是pentium-m我就装swiftfox-pentium-m</p>
<p>唯一遗憾就是没有源码 不知道是怎么样优化的</p>
<p>优化后的最直接的效果就是访问msn space不再是100%cpu卡上数秒了~~</p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2007/09/05/swiftfox-%e8%ae%a9%e4%bd%a0%e7%9a%84firefox%e4%b8%8d%e5%86%8d%e6%85%a2%e5%a6%82%e7%89%9b.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNU screen</title>
		<link>http://jayxie.com/2007/07/10/%e5%90%91gnu-screen%e5%b1%88%e6%9c%8d.html</link>
		<comments>http://jayxie.com/2007/07/10/%e5%90%91gnu-screen%e5%b1%88%e6%9c%8d.html#comments</comments>
		<pubDate>Tue, 10 Jul 2007 01:54:25 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://jayxie.com/2007/07/10/%e5%90%91gnu-screen%e5%b1%88%e6%9c%8d.html</guid>
		<description><![CDATA[
一直以来都是term term term，N个term，刚看到screen的时候觉得多此一举，反正已经是term*N很容易的，都配成sawfish的快捷键了……
这儿有个how to start screen from .bashrc不过偶不喜欢，因为这样只能启动一个terminal，每次都会接管上一个screen。
于是配成了另一个sawfish的快捷键，目前我的快捷键如下：
Win+e 启动emacs或跳转到已启动的emacs
Win+t 启动thunderbird或跳转到已启动的thunderbird
Win+m 启动mlterm
Win+z 启动一个mlterm，在里头执行screen
Win+p 启动python解释器
Win+x 启动rox
Print 抓屏
Alt+Print 抓窗口
配置文件里这样写：


(when (require-try 'jump-or-exec)

<pre>
 (bind-keys global-keymap
            ;; emacs
            &#34;H-e&#34; `(jump-or-exec &#34;^.*Emacs@JayXie$&#34;
     815417267f76f6f460a4a61f9db75fdb%3Ca%20href%3D%22http%3A%2F%2Fjayxie.com%2F2007%2F07%2F10%2F%e5%90%91gnu-screen%e5%b1%88%e6%9c%8d.html%22%20class%3D%22more-link%22%3EMore%20%26gt%3B%3C%2Fa%3E%0A%3C%2Fpre%3E0fbd1776e1ad22c59a7080d35c7fd4db
]]></description>
			<content:encoded><![CDATA[<p>一直以来都是term term term，N个term，刚看到screen的时候觉得多此一举，反正已经是term*N很容易的，都配成sawfish的快捷键了……<br />
这儿有个<a href="http://www.mail-archive.com/screen-users@gnu.org/msg00920.html">how to start screen from .bashrc</a>不过偶不喜欢，因为这样只能启动一个terminal，每次都会接管上一个screen。<br />
于是配成了另一个sawfish的快捷键，目前我的快捷键如下：<br />
Win+e 启动emacs或跳转到已启动的emacs<br />
Win+t 启动thunderbird或跳转到已启动的thunderbird<br />
Win+m 启动mlterm<br />
Win+z 启动一个mlterm，在里头执行screen<br />
Win+p 启动python解释器<br />
Win+x 启动rox<br />
Print 抓屏<br />
Alt+Print 抓窗口</p>
<p>配置文件里这样写：<br />
<span id="more-112"></span></p>
<pre class="brush: cl;">
(when (require-try 'jump-or-exec)
  (bind-keys global-keymap
             ;; emacs
             &quot;H-e&quot; `(jump-or-exec &quot;^.*Emacs@JayXie$&quot;
                                  ,(lambda () (wy-run &quot;emacs &amp;&quot;)))
             ;; thunderbird
             &quot;H-t&quot; `(jump-or-exec &quot;^.*Thunderbird$&quot;
                                  ,(lambda ()(wy-run &quot;mozilla-thunderbird &amp;&quot;)))
             &quot;H-m&quot; `(wy-run &quot;mlterm &amp;&quot;)
             &quot;H-z&quot; `(wy-run &quot;mlterm -e screen -dR &amp;&quot;)
             &quot;H-p&quot; `(wy-run &quot;mlterm -e python &amp;&quot;)
             &quot;H-x&quot; `(wy-run &quot;rox &amp;&quot;)
             ;; capture screen
             &quot;Print&quot; '(wy-run &quot;shotfile=~/Screenshot_`date +%F_%T`.png;scrot $shotfile &amp;&amp; display $shotfile&quot;)
             ;; &quot;H-c&quot; '(wy-run &quot;shotfile=~/Region_`date +%F_%T`.png;scrot -s $shotfile &amp;&amp; display $shotfile&quot;)
             &quot;M-Print&quot; 'capture-this-window
             ))
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2007/07/10/%e5%90%91gnu-screen%e5%b1%88%e6%9c%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Gutsy</title>
		<link>http://jayxie.com/2007/07/06/ubuntu-gutsy.html</link>
		<comments>http://jayxie.com/2007/07/06/ubuntu-gutsy.html#comments</comments>
		<pubDate>Fri, 06 Jul 2007 04:50:18 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jayxie.com/2007/07/06/ubuntu-gutsy.html</guid>
		<description><![CDATA[
呃，升级了之后一直报错，device-manager dm-linear device lookup error.
据说是内核需要patch，ubuntu的bug list里有，所以等等吧，幸亏2.6.20的内核还在，用这个启动就行了，hoho
顺便要说的是，之前的dual head双显不行了，在recovery模式下X -configure重写了下xorg.conf，当然，最好是dpkg-reconfigure xserver-xorg
双显啊双显，啥时候才能用的很爽呢……

]]></description>
			<content:encoded><![CDATA[<p>呃，升级了之后一直报错，device-manager dm-linear device lookup error.<br />
据说是内核需要patch，ubuntu的bug list里有，所以等等吧，幸亏2.6.20的内核还在，用这个启动就行了，hoho<br />
顺便要说的是，之前的dual head双显不行了，在recovery模式下X -configure重写了下xorg.conf，当然，最好是dpkg-reconfigure xserver-xorg<br />
双显啊双显，啥时候才能用的很爽呢……</p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2007/07/06/ubuntu-gutsy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>好吧，接着写，关于i810的dual head</title>
		<link>http://jayxie.com/2007/06/21/%e5%a5%bd%e5%90%a7%ef%bc%8c%e6%8e%a5%e7%9d%80%e5%86%99%ef%bc%8c%e5%85%b3%e4%ba%8ei810%e7%9a%84dual-head.html</link>
		<comments>http://jayxie.com/2007/06/21/%e5%a5%bd%e5%90%a7%ef%bc%8c%e6%8e%a5%e7%9d%80%e5%86%99%ef%bc%8c%e5%85%b3%e4%ba%8ei810%e7%9a%84dual-head.html#comments</comments>
		<pubDate>Thu, 21 Jun 2007 03:58:00 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jayxie.com/2007/06/21/%e5%a5%bd%e5%90%a7%ef%bc%8c%e6%8e%a5%e7%9d%80%e5%86%99%ef%bc%8c%e5%85%b3%e4%ba%8ei810%e7%9a%84dual-head.html</guid>
		<description><![CDATA[
之前写过，但是用的很不方便，在/etc/X11/下放了两个xorg.conf 分别对应dual head和single head用脚本来切换
但是太麻烦了 得重启xwindow
于是把xinerama关了
但是问题就是sawfish只跑在主显示器上了
没法子 写了个脚本
DISPLAY=:0.1 sawfish &#038;
这样就不用每次都切换xorg.conf了
不过 再一个麻烦事又来了……
窗口不能随便拖了～～～～

]]></description>
			<content:encoded><![CDATA[<p>之前写过，但是用的很不方便，在/etc/X11/下放了两个xorg.conf 分别对应dual head和single head用脚本来切换<br />
但是太麻烦了 得重启xwindow<br />
于是把xinerama关了<br />
但是问题就是sawfish只跑在主显示器上了<br />
没法子 写了个脚本<br />
DISPLAY=:0.1 sawfish &#038;<br />
这样就不用每次都切换xorg.conf了</p>
<p>不过 再一个麻烦事又来了……<br />
窗口不能随便拖了～～～～</p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2007/06/21/%e5%a5%bd%e5%90%a7%ef%bc%8c%e6%8e%a5%e7%9d%80%e5%86%99%ef%bc%8c%e5%85%b3%e4%ba%8ei810%e7%9a%84dual-head.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>遭遇thunderbird丢失邮件</title>
		<link>http://jayxie.com/2007/06/07/%e9%81%ad%e9%81%87thunderbird%e4%b8%a2%e5%a4%b1%e9%82%ae%e4%bb%b6.html</link>
		<comments>http://jayxie.com/2007/06/07/%e9%81%ad%e9%81%87thunderbird%e4%b8%a2%e5%a4%b1%e9%82%ae%e4%bb%b6.html#comments</comments>
		<pubDate>Thu, 07 Jun 2007 08:16:40 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://jayxie.com/2007/06/07/%e9%81%ad%e9%81%87thunderbird%e4%b8%a2%e5%a4%b1%e9%82%ae%e4%bb%b6.html</guid>
		<description><![CDATA[
恩，写下来给其他人参考，如果也不幸遇到了的话，呵呵
找到你的邮件，比如Inbox 重命名为Inbox2
然后执行
sed '/^X-Mozilla-Status:/s/[0-9]*$/0000/' &#38;lt;Inbox2 &#62;Inbox
重置了邮件的状态，所以最后一次compact this folder后删除的邮件也回来了……

]]></description>
			<content:encoded><![CDATA[<p>恩，写下来给其他人参考，如果也不幸遇到了的话，呵呵<br />
找到你的邮件，比如Inbox 重命名为Inbox2<br />
然后执行</p>
<pre class="brush: bash;">sed '/^X-Mozilla-Status:/s/[0-9]*$/0000/' &amp;lt;Inbox2 &gt;Inbox</pre>
<p>重置了邮件的状态，所以最后一次compact this folder后删除的邮件也回来了……</p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2007/06/07/%e9%81%ad%e9%81%87thunderbird%e4%b8%a2%e5%a4%b1%e9%82%ae%e4%bb%b6.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vmware under feisty</title>
		<link>http://jayxie.com/2007/03/25/vmware-under-feisty.html</link>
		<comments>http://jayxie.com/2007/03/25/vmware-under-feisty.html#comments</comments>
		<pubDate>Sun, 25 Mar 2007 03:39:50 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jayxie.com/2007/03/25/vmware-under-feisty.html</guid>
		<description><![CDATA[
vmware-workstation的内核模块在2.6.20下编译不过，可能有解决方案，不过网上有现成的更好的办法，就是改用vmware-server
到vmware下载vmware-server，解压开来装上，问你是否执行vmware-config.pl的时候选no
然后开始cheat。
先 apt-get install vmware-server-kernel-modules
这个是ubuntu源里面别人编译好的vmware-server的内核模块，能够保持和内核的一致
然后sed -i -e "s/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/misc\/\$1.o\"/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/vmware-server\/\$1.ko\"/" /etc/init.d/vmware
这里和原文不一样，改的是vmware启动脚本里面关于加载内核模块的地方，原文是改成了modprobe一下，但是我不知道啥时候insmod，所以我就改成了这个，源里面针对2.6.20编译的内核是以ko结尾，而且是放在vmware-server下
再然后sed -i -e "s/sub configure_module {/sub configure_module {\n  return 'yes';/" /usr/bin/vmware-config.pl
这个是hack掉vmware-config.pl里面安装内核模块部分，vmware-server自带是没有2.6.20的，自己编译可能还有什么问题，所以用别人编译好的，这里直接return yes;最好
之后就全ok了， 跑一下vmware-config.pl吧
注：以上步骤都需要root权限
原文在<a href="http://www.ubuntuforums.org/showpost.php?p=2143833&#038;postcount=14">http://www.ubuntuforums.org/showpost.php?p=2143833&#038;postcount=14</a>

]]></description>
			<content:encoded><![CDATA[<p>vmware-workstation的内核模块在2.6.20下编译不过，可能有解决方案，不过网上有现成的更好的办法，就是改用vmware-server</p>
<p>到vmware下载vmware-server，解压开来装上，问你是否执行vmware-config.pl的时候选no</p>
<p>然后开始cheat。</p>
<p>先 <code>apt-get install vmware-server-kernel-modules</code></p>
<p>这个是ubuntu源里面别人编译好的vmware-server的内核模块，能够保持和内核的一致<br />
然后<code>sed -i -e "s/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/misc\/\$1.o\"/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/vmware-server\/\$1.ko\"/" /etc/init.d/vmware</code></p>
<p>这里和原文不一样，改的是vmware启动脚本里面关于加载内核模块的地方，原文是改成了modprobe一下，但是我不知道啥时候insmod，所以我就改成了这个，源里面针对2.6.20编译的内核是以ko结尾，而且是放在vmware-server下</p>
<p>再然后<code>sed -i -e "s/sub configure_module {/sub configure_module {\n  return 'yes';/" /usr/bin/vmware-config.pl</code></p>
<p>这个是hack掉vmware-config.pl里面安装内核模块部分，vmware-server自带是没有2.6.20的，自己编译可能还有什么问题，所以用别人编译好的，这里直接return yes;最好</p>
<p>之后就全ok了， 跑一下vmware-config.pl吧</p>
<p>注：以上步骤都需要root权限</p>
<p>原文在<a href="http://www.ubuntuforums.org/showpost.php?p=2143833&#038;postcount=14">http://www.ubuntuforums.org/showpost.php?p=2143833&#038;postcount=14</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2007/03/25/vmware-under-feisty.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>开始学写shell</title>
		<link>http://jayxie.com/2007/01/27/%e5%bc%80%e5%a7%8b%e5%ad%a6%e5%86%99shell.html</link>
		<comments>http://jayxie.com/2007/01/27/%e5%bc%80%e5%a7%8b%e5%ad%a6%e5%86%99shell.html#comments</comments>
		<pubDate>Sat, 27 Jan 2007 08:27:35 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://jayxie.com/2007/01/27/%e5%bc%80%e5%a7%8b%e5%ad%a6%e5%86%99shell.html</guid>
		<description><![CDATA[
磕磕碰碰的写完了一个预处理的脚本，很简单，用来对代码里面的#ifdef DEBUG &#8230; #else &#8230; #endif来做处理 如果脚本没带参数 就认为启用DEBUG 带参数就认为不启用DEBUG 弱的很 暴汗……
其实以前也写过shell脚本，简单的比如切换有线和无线，复杂的比如解决rar x的中文问题（不过新版本的rar貌似没这个问题了），但还是好多东东要学@.@ 还得在实践中一点一点的被lisp给侵蚀着 呵呵


!/bin/bash



Author: JayXie

Date: 2007-01-23

Email: oxwjo@163.com




E_BADARGS=65
E_NOFILE=66
E_NODIR=67
DEBUG_MACRO=1
STATUS=&#8221;NONE&#8221;
if [ $# -gt 0 ]
then
DEBUG_MACRO=0
fi
while read -r line
do
case $STATUS in
NONE)
IS_DEF=`echo $line &#124; awk &#8216;{if($1~/\#ifdef/) print $2}&#8217;`
if [ ! -z $IS_DEF ] &#038;&#038; [ $IS_DEF = "DEBUG" ]; then
if [ $DEBUG_MACRO -gt 0 ]; then
STATUS=&#8221;IF_OUT&#8221;
else
STATUS=&#8221;IF_RETAIN&#8221;
fi
else
echo &#8220;$line&#8221;
fi








IF_OUT)
IS_ELSE=`echo $line &#124; awk <a href="http://jayxie.com/2007/01/27/%e5%bc%80%e5%a7%8b%e5%ad%a6%e5%86%99shell.html" class="more-link">More &#62;</a>
]]></description>
			<content:encoded><![CDATA[<p>磕磕碰碰的写完了一个预处理的脚本，很简单，用来对代码里面的#ifdef DEBUG &#8230; #else &#8230; #endif来做处理 如果脚本没带参数 就认为启用DEBUG 带参数就认为不启用DEBUG 弱的很 暴汗……</p>
<p>其实以前也写过shell脚本，简单的比如切换有线和无线，复杂的比如解决rar x的中文问题（不过新版本的rar貌似没这个问题了），但还是好多东东要学@.@ 还得在实践中一点一点的被lisp给侵蚀着 呵呵<br />
<span id="more-98"></span></p>
<ol>
<li>!/bin/bash
</li>
<li>
</li>
<li>Author: JayXie
</li>
<li>Date: 2007-01-23
</li>
<li>Email: oxwjo@163.com
</li>
<li>
</li>
</ol>
<p>E_BADARGS=65<br />
E_NOFILE=66<br />
E_NODIR=67</p>
<p>DEBUG_MACRO=1<br />
STATUS=&#8221;NONE&#8221;</p>
<p>if [ $# -gt 0 ]<br />
then<br />
DEBUG_MACRO=0<br />
fi</p>
<p>while read -r line<br />
do<br />
case $STATUS in<br />
NONE)<br />
IS_DEF=`echo $line | awk &#8216;{if($1~/\#ifdef/) print $2}&#8217;`<br />
if [ ! -z $IS_DEF ] &#038;&#038; [ $IS_DEF = "DEBUG" ]; then<br />
if [ $DEBUG_MACRO -gt 0 ]; then<br />
STATUS=&#8221;IF_OUT&#8221;<br />
else<br />
STATUS=&#8221;IF_RETAIN&#8221;<br />
fi<br />
else<br />
echo &#8220;$line&#8221;<br />
fi</p>
<dl>
<dt>
<dl>
<dt>
</dt>
</dl>
</dt>
</dl>
<p>IF_OUT)<br />
IS_ELSE=`echo $line | awk &#8216;{if($1~/\#else/) print &#8220;true&#8221;}&#8217;`<br />
IS_END=`echo $line | awk &#8216;{if($1~/\#endif/) print &#8220;true&#8221;}&#8217;`<br />
if [ ! -z $IS_ELSE ] &#038;&#038; [ $IS_ELSE = "true" ]; then<br />
STATUS=&#8221;ELSE_RETAIN&#8221;<br />
elif [ ! -z $IS_END ] &#038;&#038; [ $IS_END = "true" ]; then<br />
STATUS=&#8221;NONE&#8221;<br />
else<br />
echo &#8220;$line&#8221;<br />
fi</p>
<dl>
<dt>
<dl>
<dt>
</dt>
</dl>
</dt>
</dl>
<p>ELSE_OUT)<br />
IS_END=`echo $line | awk &#8216;{if($1~/\#endif/) print &#8220;true&#8221;}&#8217;`<br />
if [ ! -z $IS_END ] &#038;&#038; [ $IS_END = "true" ]; then<br />
STATUS=&#8221;NONE&#8221;<br />
else<br />
echo &#8220;$line&#8221;<br />
fi</p>
<dl>
<dt>
<dl>
<dt>
</dt>
</dl>
</dt>
</dl>
<p>IF_RETAIN)<br />
IS_ELSE=`echo $line | awk &#8216;{if($1~/\#else/) print &#8220;true&#8221;}&#8217;`<br />
IS_END=`echo $line | awk &#8216;{if($1~/\#endif/) print &#8220;true&#8221;}&#8217;`<br />
if [ ! -z $IS_ELSE ] &#038;&#038; [ $IS_ELSE = "true" ]; then<br />
STATUS=&#8221;ELSE_OUT&#8221;<br />
elif [ ! -z $IS_END ] &#038;&#038; [ $IS_END = "true" ]; then<br />
STATUS=&#8221;NONE&#8221;<br />
fi</p>
<dl>
<dt>
<dl>
<dt>
</dt>
</dl>
</dt>
</dl>
<p>ELSE_RETAIN)<br />
IS_END=`echo $line | awk &#8216;{if($1~/\#endif/) print &#8220;true&#8221;}&#8217;`<br />
if [ ! -z $IS_END ] &#038;&#038; [ $IS_END = "true" ]; then<br />
STATUS=&#8221;NONE&#8221;<br />
fi</p>
<dl>
<dt>
<dl>
<dt>
</dt>
</dl>
</dt>
</dl>
<p>esac<br />
done</p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2007/01/27/%e5%bc%80%e5%a7%8b%e5%ad%a6%e5%86%99shell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu下用vpnc连入cisco vpn</title>
		<link>http://jayxie.com/2007/01/06/ubuntu%e4%b8%8b%e7%94%a8vpnc%e8%bf%9e%e5%85%a5cisco-vpn.html</link>
		<comments>http://jayxie.com/2007/01/06/ubuntu%e4%b8%8b%e7%94%a8vpnc%e8%bf%9e%e5%85%a5cisco-vpn.html#comments</comments>
		<pubDate>Sat, 06 Jan 2007 02:29:05 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.jayxie.com/2007/01/06/ubuntu%e4%b8%8b%e7%94%a8vpnc%e8%bf%9e%e5%85%a5cisco-vpn.html</guid>
		<description><![CDATA[
之前转载过一个cisco的vpnclient的帖子，是要自己编译安装的，所以一直没空尝试
昨天还是前天来着突然想到ubuntu源里面应该已经有现成的vpnclient了吧，找了找果然有个vpnc。
于是刚刚看着vpnc的long-help试了试就搞定了
首先需要的是windows下有个配好的cisco vpn client，或者你有group的密码
windows下vpn client下profiles里面是相应的配置文件
/etc/vpnc.conf文件里面照着现有相应的pcf文件写就行了
IPSec gateway [ Host in .pcf ]
IPSec ID [ GroupName in .pcf ]
IPSec obfuscated secret [ enc_GroupPwd in .pcf ]
Xauth username [ your user name ]
如果直接有group密码 那么把IPSec obfuscated secret换成IPSec secret然后写上你的密码 或者直接sudo vpnc-connect然后输入ip,group name,group pwd,user name,user pwd连接也就ok了

]]></description>
			<content:encoded><![CDATA[<p>之前转载过一个cisco的vpnclient的帖子，是要自己编译安装的，所以一直没空尝试</p>
<p>昨天还是前天来着突然想到ubuntu源里面应该已经有现成的vpnclient了吧，找了找果然有个vpnc。<br />
于是刚刚看着vpnc的long-help试了试就搞定了</p>
<p>首先需要的是windows下有个配好的cisco vpn client，或者你有group的密码<br />
windows下vpn client下profiles里面是相应的配置文件<br />
/etc/vpnc.conf文件里面照着现有相应的pcf文件写就行了</p>
<p>IPSec gateway [ Host in .pcf ]<br />
IPSec ID [ GroupName in .pcf ]<br />
IPSec obfuscated secret [ enc_GroupPwd in .pcf ]<br />
Xauth username [ your user name ]</p>
<p>如果直接有group密码 那么把IPSec obfuscated secret换成IPSec secret然后写上你的密码 或者直接sudo vpnc-connect然后输入ip,group name,group pwd,user name,user pwd连接也就ok了</p>
]]></content:encoded>
			<wfw:commentRss>http://jayxie.com/2007/01/06/ubuntu%e4%b8%8b%e7%94%a8vpnc%e8%bf%9e%e5%85%a5cisco-vpn.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
