<?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>XieWenjie&#039;s blog &#187; ubuntu</title>
	<atom:link href="http://xiewenjie.com/category/gnulinux/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://xiewenjie.com</link>
	<description>Around emacs, linux, etc.</description>
	<lastBuildDate>Sun, 22 May 2011 11:16:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Linux下通过USB用WM6手机的GPRS上网</title>
		<link>http://xiewenjie.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://xiewenjie.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://xiewenjie.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://xiewenjie.com/2009/01/06/a-google-chrome-like-color-schem-for-sawfish-using-mx-flat-theme.html</link>
		<comments>http://xiewenjie.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) <a href="http://xiewenjie.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://xiewenjie.com/2009/01/06/a-google-chrome-like-color-schem-for-sawfish-using-mx-flat-theme.html/feed</wfw:commentRss>
		<slash:comments>201</slash:comments>
		</item>
		<item>
		<title>Ubuntu Gutsy</title>
		<link>http://xiewenjie.com/2007/07/06/ubuntu-gutsy.html</link>
		<comments>http://xiewenjie.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://xiewenjie.com/2007/07/06/ubuntu-gutsy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>好吧，接着写，关于i810的dual head</title>
		<link>http://xiewenjie.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://xiewenjie.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://xiewenjie.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>vmware under feisty</title>
		<link>http://xiewenjie.com/2007/03/25/vmware-under-feisty.html</link>
		<comments>http://xiewenjie.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://xiewenjie.com/2007/03/25/vmware-under-feisty.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ubuntu下用vpnc连入cisco vpn</title>
		<link>http://xiewenjie.com/2007/01/06/ubuntu%e4%b8%8b%e7%94%a8vpnc%e8%bf%9e%e5%85%a5cisco-vpn.html</link>
		<comments>http://xiewenjie.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://xiewenjie.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>
		<item>
		<title>DualHead ubuntu下实现I810显卡的笔记本双显</title>
		<link>http://xiewenjie.com/2006/12/30/dualhead-ubuntu%e4%b8%8b%e5%ae%9e%e7%8e%b0i810%e6%98%be%e5%8d%a1%e7%9a%84%e7%ac%94%e8%ae%b0%e6%9c%ac%e5%8f%8c%e6%98%be.html</link>
		<comments>http://xiewenjie.com/2006/12/30/dualhead-ubuntu%e4%b8%8b%e5%ae%9e%e7%8e%b0i810%e6%98%be%e5%8d%a1%e7%9a%84%e7%ac%94%e8%ae%b0%e6%9c%ac%e5%8f%8c%e6%98%be.html#comments</comments>
		<pubDate>Sat, 30 Dec 2006 09:33:02 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.jayxie.com/2006/12/30/dualhead-ubuntu%e4%b8%8b%e5%ae%9e%e7%8e%b0i810%e6%98%be%e5%8d%a1%e7%9a%84%e7%ac%94%e8%ae%b0%e6%9c%ac%e5%8f%8c%e6%98%be.html</guid>
		<description><![CDATA[
忍不住想双显，数次的失败之后终于搞定了 xorg.conf里面这样写 先是Device Section &#34;Device&#34; Identifier &#34;Device&#34; Driver &#34;i810&#34; BusID &#34;PCI:0:2:0&#34; Screen 0 Option &#34;MonitorLayout&#34; &#34;CRT,LFP&#34; EndSection Section &#34;Device&#34; Identifier &#34;Device Ext&#34; Driver &#34;i810&#34; BusID &#34;PCI:0:2:0&#34; Screen 1 EndSection 然后是Monitor Section &#34;Monitor&#34; Identifier &#34;Monitor&#34; Option &#34;DPMS&#34; EndSection Section &#34;Monitor&#34; Identifier &#34;Monitor Ext&#34; Option &#34;DPMS&#34; HorizSync 30-53 VertRefresh 55-75 EndSection 然后是Screen Section &#34;Screen&#34; Identifier &#34;Screen&#34; Device <a href="http://xiewenjie.com/2006/12/30/dualhead-ubuntu%e4%b8%8b%e5%ae%9e%e7%8e%b0i810%e6%98%be%e5%8d%a1%e7%9a%84%e7%ac%94%e8%ae%b0%e6%9c%ac%e5%8f%8c%e6%98%be.html" class="more-link">More &#62;</a>
]]></description>
			<content:encoded><![CDATA[<p>忍不住想双显，数次的失败之后终于搞定了</p>
<p>xorg.conf里面这样写<span id="more-94"></span></p>
<p>先是Device</p>
<pre>Section &quot;Device&quot;
Identifier	&quot;Device&quot;
Driver		&quot;i810&quot;
BusID		&quot;PCI:0:2:0&quot;
Screen		0
Option          &quot;MonitorLayout&quot; &quot;CRT,LFP&quot;
EndSection

Section &quot;Device&quot;
Identifier	&quot;Device Ext&quot;
Driver		&quot;i810&quot;
BusID		&quot;PCI:0:2:0&quot;
Screen		1
EndSection</pre>
<p>然后是Monitor</p>
<pre>Section &quot;Monitor&quot;
Identifier      &quot;Monitor&quot;
Option          &quot;DPMS&quot;
EndSection

Section &quot;Monitor&quot;
Identifier	&quot;Monitor Ext&quot;
Option		&quot;DPMS&quot;
HorizSync 	30-53
VertRefresh 	55-75
EndSection</pre>
<p>然后是Screen</p>
<pre>Section &quot;Screen&quot;
Identifier	&quot;Screen&quot;
Device		&quot;Device&quot;
Monitor		&quot;Monitor&quot;
DefaultDepth	24
SubSection &quot;Display&quot;
Depth	16
Modes   “1024x768&quot;
EndSubSection
SubSection &quot;Display&quot;
Depth	24
Modes	&quot;1024x768&quot;
EndSubSection
EndSection

Section &quot;Screen&quot;
Identifier	&quot;Screen Ext&quot;
Device		&quot;Device Ext&quot;
Monitor		&quot;Monitor Ext&quot;
DefaultDepth	24
SubSection &quot;Display&quot;
Depth	16
Modes	&quot;1024x768&quot;
EndSubSection
SubSection &quot;Display&quot;
Depth	24
Modes	&quot;1024x768&quot;
EndSubSection
EndSection</pre>
<p>然后是ServerLayout</p>
<pre>Section &quot;ServerLayout&quot;
Identifier	&quot;Default Layout&quot;
Screen		0 &quot;Screen&quot; 0 0
Screen		1 &quot;Screen Ext&quot; RightOf &quot;Screen&quot;
...
Option		&quot;Xinerama&quot; &quot;On&quot;
EndSection</pre>
<p>最后一个Xinerama是选择两个显示器扩展一个桌面还是分别显示两个桌面</p>
<p>因为Monitor Ext的刷新率没写找了半天原因 汗……</p>
]]></content:encoded>
			<wfw:commentRss>http://xiewenjie.com/2006/12/30/dualhead-ubuntu%e4%b8%8b%e5%ae%9e%e7%8e%b0i810%e6%98%be%e5%8d%a1%e7%9a%84%e7%ac%94%e8%ae%b0%e6%9c%ac%e5%8f%8c%e6%98%be.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu下的DNS caching</title>
		<link>http://xiewenjie.com/2006/12/13/ubuntu%e4%b8%8b%e7%9a%84dns-caching.html</link>
		<comments>http://xiewenjie.com/2006/12/13/ubuntu%e4%b8%8b%e7%9a%84dns-caching.html#comments</comments>
		<pubDate>Wed, 13 Dec 2006 07:35:57 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.jayxie.com/2006/12/13/ubuntu%e4%b8%8b%e7%9a%84dns-caching.html</guid>
		<description><![CDATA[
我实在受不了了…… 每个请求都要到dns server上解析一下，太影响效率了…… 今天找了一下 原来非常简单 就是装一个dnsmasq 原文在这儿 然后把/etc/dnsmasq.conf里面把"listen-address=127.0.0.1"写上 再去/etc/dhcp3/dhclient.conf里头把&#8220;prepend domain-name-servers 127.0.0.1;&#8221;前面的注释去掉 再到/etc/resolv.conf里头在紧接着search后面加一行"nameserver 127.0.0.1&#8221; 最后sudo /etc/init.d/dnsmasq restart一下 就ok了 偶不是dsl用户 也不是dail-up 如果你是的话 自己看吧 呵呵 The following is ONLY for dsl customers Note: If you have a dsl connection, the following may work: Basically, the differences are in how the “conf” files are edited and used. Copy the <a href="http://xiewenjie.com/2006/12/13/ubuntu%e4%b8%8b%e7%9a%84dns-caching.html" class="more-link">More &#62;</a>
]]></description>
			<content:encoded><![CDATA[<p>我实在受不了了……</p>
<p>每个请求都要到dns server上解析一下，太影响效率了……</p>
<p>今天找了一下 原来非常简单 就是装一个dnsmasq <a title="原文在这儿" href="http://ubuntu.wordpress.com/2006/08/02/local-dns-cache-for-faster-browsing/">原文在这儿</a><br />
然后把/etc/dnsmasq.conf里面把<code>"listen-address=127.0.0.1"写上</code></p>
<p>再去/etc/dhcp3/<code>dhclient.conf里头把</code>&#8220;prepend domain-name-servers 127.0.0.1;&#8221;前面的注释去掉</p>
<p>再到<code>/etc/resolv.conf里头在紧接着search后面加一行</code><code>"nameserver 127.0.0.1</code>&#8221;</p>
<p>最后<code>sudo /etc/init.d/dnsmasq restart一下 就ok了</code><span id="more-93"></span></p>
<p>偶不是dsl用户 也不是dail-up 如果你是的话 自己看吧 呵呵<br />
<strong>The following is ONLY for dsl customers</strong><br />
Note: If you have a dsl connection, the following may work:<br />
Basically, the differences are in how the “conf” files are edited and used.<br />
Copy the /etc/resolv.conf file to /etc/resolv.dnsmasq.conf<br />
Then, edit the /etc/dnsmasq.conf file as follows:<br />
<code></p>
<ol>
<li>Change this line if you want dns to get its upstream servers from
</li>
<li>somewhere other that /etc/resolv.conf
</li>
</ol>
<p>resolv-file=/etc/resolv.dnsmasq.conf</code><br />
You also have to uncomment the line that says <code>listen-address=127.0.0.1</code><br />
Now, edit /etc/resolv.conf to have ONLY the following line in it:<br />
<code>nameserver 127.0.0.1</code><br />
Next, edit /etc/ppp/peers/dsl-provider and change the line:<br />
<code>usepeerdns</code> to<br />
<code>#usepeerdns</code><br />
(that is, comment out that line)<br />
The ppp client does not allow you to prepend the 127.0.0.1 entry to your /etc/resolv.conf file. So what we did in the above was to create a copy of your previous resolv.conf for dnsmasq to use for lookups, update the file to use a local cache, and then prevent the ppp client from overwriting the resolv.conf file the next time. Now you can restart the dnsmasq service as I explained above, and start enjoying faster name resolution.<br />
I don’t have a dsl connection, and so all the above is to the best of my knowledge.</p>
<p>To those of you still on dial-up &#8211; THANK YOU for visiting my blog! (I’m too ignorant to know how to change things to get dnsmasq to work on dial-up <img alt=":)" class="wp-smiley" src="file:///http://ubuntu.wordpress.com/wp-includes/images/smilies/icon_smile.gif" /> )</p>
]]></content:encoded>
			<wfw:commentRss>http://xiewenjie.com/2006/12/13/ubuntu%e4%b8%8b%e7%9a%84dns-caching.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

