<?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>Linux . Spy</title>
	<atom:link href="http://www.isspy.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.isspy.com</link>
	<description></description>
	<lastBuildDate>Wed, 14 Dec 2011 07:55:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>新版 Fedora 软件维护者指南</title>
		<link>http://www.isspy.com/%e6%96%b0%e7%89%88-fedora-%e8%bd%af%e4%bb%b6%e7%bb%b4%e6%8a%a4%e8%80%85%e6%8c%87%e5%8d%97/</link>
		<comments>http://www.isspy.com/%e6%96%b0%e7%89%88-fedora-%e8%bd%af%e4%bb%b6%e7%bb%b4%e6%8a%a4%e8%80%85%e6%8c%87%e5%8d%97/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 18:05:10 +0000</pubDate>
		<dc:creator>liangsuilong</dc:creator>
				<category><![CDATA[业界资讯]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[packager]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=868</guid>
		<description><![CDATA[拖了近一年的时间，终于有时间有精力更新这一篇文档。 本次更新包含的内容主要有： 因应自 Fedora 14 以来的改变，汇入 SRPM 包部分和更新已有软件包部分的内容从 CVS 改成 Git。 增加 RPM Fusion Packager 的相关内容。 修正格式和用字不当。 原文地址请点击此处，如有错漏，请不吝指教。 原文地址请点击&#60;a href=”https://fedoraproject.org/wiki/Fedora_%E6%96%B0%E8%BD%AF%E4%BB%B6%E7%BB%B4%E6%8A%A4%E8%80%85%E6%8C%87%E5%8D%97&#8243; target=”_blank”&#62;此处&#60;/a&#62;，如有错漏，请不吝指教。]]></description>
			<content:encoded><![CDATA[拖了近一年的时间，终于有时间有精力更新这一篇文档。

本次更新包含的内容主要有：
<ul>
	<li>因应自 Fedora 14 以来的改变，汇入 SRPM 包部分和更新已有软件包部分的内容从 CVS 改成 Git。</li>
	<li>增加 RPM Fusion Packager 的相关内容。</li>
	<li>修正格式和用字不当。</li>
</ul>
原文地址请点击<a href="https://fedoraproject.org/wiki/Fedora_%E6%96%B0%E8%BD%AF%E4%BB%B6%E7%BB%B4%E6%8A%A4%E8%80%85%E6%8C%87%E5%8D%97" target="_blank">此处</a>，如有错漏，请不吝指教。
原文地址请点击&lt;a href=”https://fedoraproject.org/wiki/Fedora_%E6%96%B0%E8%BD%AF%E4%BB%B6%E7%BB%B4%E6%8A%A4%E8%80%85%E6%8C%87%E5%8D%97&#8243; target=”_blank”&gt;此处&lt;/a&gt;，如有错漏，请不吝指教。<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2F%25e6%2596%25b0%25e7%2589%2588-fedora-%25e8%25bd%25af%25e4%25bb%25b6%25e7%25bb%25b4%25e6%258a%25a4%25e8%2580%2585%25e6%258c%2587%25e5%258d%2597%2F&title=%E6%96%B0%E7%89%88+Fedora+%E8%BD%AF%E4%BB%B6%E7%BB%B4%E6%8A%A4%E8%80%85%E6%8C%87%E5%8D%97" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/%e6%96%b0%e7%89%88-fedora-%e8%bd%af%e4%bb%b6%e7%bb%b4%e6%8a%a4%e8%80%85%e6%8c%87%e5%8d%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 的 fcitx 计划</title>
		<link>http://www.isspy.com/fedora-%e7%9a%84-fcitx-%e8%ae%a1%e5%88%92/</link>
		<comments>http://www.isspy.com/fedora-%e7%9a%84-fcitx-%e8%ae%a1%e5%88%92/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 19:10:03 +0000</pubDate>
		<dc:creator>liangsuilong</dc:creator>
				<category><![CDATA[业界资讯]]></category>
		<category><![CDATA[fcitx]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=866</guid>
		<description><![CDATA[刚刚应 CSSlayer 和 Aron Xu 的要求，把 Fedora 的 fcitx 细分成多个 sub package，最主要的是把各个码表分离开。 以前的做法是把码表一并放在 fcitx 这个 sub package 里面，但是很多人并不是需要安装所有码表，因此现在的做法是增加多个 sub package 以打包各种码表。 fcitx-table-bingchan 是冰蟾的码表，fcitx-table-erbi 则是二笔的码表，fcitx-table-cangjie 则是仓颉的码表，fcitx-table-dianbaoma 是电报码的码表，fcitx-table-wanfeng 是万峰的码表，fcitx-table-wubi 是五笔的码表，fcitx-table-wbpy 是五笔-拼音的码表，fcitx-table-ziranma 是自然码的码表。所以现在安装新版 fcitx，就只能自带拼音输入法的码表，其他码表需要自行安装。 细分下来，实际上是挺多，spec 文件已经超过 300 行了。以后或许会默认加入更多的码表，spec 文件的行数也会不断得增加。你很难想象维护一个输入法要维护一个超过 500 行的 spec 文件。如果我放弃维护这个软件包了，一个如此长的 spec 文件让别人接手也是一个很大的问题。 同样在 fcitx-4.1 分支中，CSSlayer 增加了 fcitx 的 gtk2、gtk3 和 qt4 的模块，以后可能会加入 m17n 的支持，如果还在包所有的东西包在同一个源代码包里面的话，写 spec [...]]]></description>
			<content:encoded><![CDATA[刚刚应 CSSlayer 和 Aron Xu 的要求，把 Fedora 的 fcitx 细分成多个 sub package，最主要的是把各个码表分离开。

以前的做法是把码表一并放在 fcitx 这个 sub package 里面，但是很多人并不是需要安装所有码表，因此现在的做法是增加多个 sub package 以打包各种码表。

fcitx-table-bingchan 是冰蟾的码表，fcitx-table-erbi 则是二笔的码表，fcitx-table-cangjie 则是仓颉的码表，fcitx-table-dianbaoma 是电报码的码表，fcitx-table-wanfeng 是万峰的码表，fcitx-table-wubi 是五笔的码表，fcitx-table-wbpy 是五笔-拼音的码表，fcitx-table-ziranma 是自然码的码表。所以现在安装新版 fcitx，就只能自带拼音输入法的码表，其他码表需要自行安装。

细分下来，实际上是挺多，spec 文件已经超过 300 行了。以后或许会默认加入更多的码表，spec 文件的行数也会不断得增加。你很难想象维护一个输入法要维护一个超过 500 行的 spec 文件。如果我放弃维护这个软件包了，一个如此长的 spec 文件让别人接手也是一个很大的问题。

同样在 fcitx-4.1 分支中，CSSlayer 增加了 fcitx 的 gtk2、gtk3 和 qt4 的模块，以后可能会加入 m17n 的支持，如果还在包所有的东西包在同一个源代码包里面的话，写 spec 也够辛苦了，说不定是会变成一个有 1000 行的 spec。而且码表、m17n 和图形库的输入法接口未必需要跟着输入法主程序一直同步更新。很多时候主程序更新多次以后码表和 m17n 也不用更新也可以直接用，同样图形库的接口也一样。所以我希望在源代码分包是 fcitx 主程序和相关的库组成一个源代码包 fcitx，中文码表一个源代码包 fcitx-table，图形库接口一个源代码包 fcitx-bridge，另外以后的 m17n 一个源代码包 fcitx-m17n。上述猜想还得和 CSSlayer 商量。<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2Ffedora-%25e7%259a%2584-fcitx-%25e8%25ae%25a1%25e5%2588%2592%2F&title=Fedora+%E7%9A%84+fcitx+%E8%AE%A1%E5%88%92" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/fedora-%e7%9a%84-fcitx-%e8%ae%a1%e5%88%92/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ubuntu 下快速安装交叉编译工具</title>
		<link>http://www.isspy.com/ubuntu-%e4%b8%8b%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85%e4%ba%a4%e5%8f%89%e7%bc%96%e8%af%91%e5%b7%a5%e5%85%b7/</link>
		<comments>http://www.isspy.com/ubuntu-%e4%b8%8b%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85%e4%ba%a4%e5%8f%89%e7%bc%96%e8%af%91%e5%b7%a5%e5%85%b7/#comments</comments>
		<pubDate>Sun, 08 May 2011 03:05:36 +0000</pubDate>
		<dc:creator>zwxie</dc:creator>
				<category><![CDATA[业界资讯]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[crosstool]]></category>
		<category><![CDATA[toolchain]]></category>
		<category><![CDATA[交叉环境]]></category>
		<category><![CDATA[交叉编译]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=859</guid>
		<description><![CDATA[开始做嵌入式开发的朋友都在前期配置交叉编译工具而烦恼，网上的交叉编译工具的教程很多，但是要么很繁琐要么就是资料不全。那么怎么样快速而又简单地配置交叉编译工具呢，我们现在就用ubuntu里面的apt-get工具快速安装交叉编译工具。 1，添加一个源到/etc/apt/sources.list里， sudo gedit /etc/apt/sources.list deb http://www.emdebian.org/debian/ stable main 保存关闭;更新一下源列表 sudo apt-get install emdebian-archive-keyring sudo apt-get update 3.更新成功后;我们开始安装arm 交叉编译环境 sudo apt-get install gcc-4.4-arm-linux-gnueabi sudo apt-get install gcc-4.4-arm-linux-gnueabi-base sudo apt-get install gcc-4.3-arm-linux-gnueabi sudo apt-get install gcc-4.3-arm-linux-gnueabi-base sudo apt-get install libc6-dev-armel-cross sudo apt-get install binutils-arm-linux-gnueabi 4.测试,输入arm，然后会出现自动补全，就证明环境变量起效了，再补全输入 arm-linux-gnueabi-gcc -v 出现如下面这样，就证明安装成功了: Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure [...]]]></description>
			<content:encoded><![CDATA[     开始做嵌入式开发的朋友都在前期配置交叉编译工具而烦恼，网上的交叉编译工具的教程很多，但是要么很繁琐要么就是资料不全。那么怎么样快速而又简单地配置交叉编译工具呢，我们现在就用ubuntu里面的apt-get工具快速安装交叉编译工具。

1，添加一个源到/etc/apt/sources.list里，


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">           <span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list
           deb http:<span style="color: #000000; font-weight: bold;">//</span>www.emdebian.org<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span> stable main</pre></div></div>




    保存关闭;更新一下源列表


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">         <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> emdebian-archive-keyring
         <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>




3.更新成功后;我们开始安装arm 交叉编译环境


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">        <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gcc-<span style="color: #000000;">4.4</span>-arm-linux-gnueabi
        <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gcc-<span style="color: #000000;">4.4</span>-arm-linux-gnueabi-base
        <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gcc-<span style="color: #000000;">4.3</span>-arm-linux-gnueabi
        <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gcc-<span style="color: #000000;">4.3</span>-arm-linux-gnueabi-base
        <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libc6-dev-armel-cross
        <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> binutils-arm-linux-gnueabi</pre></div></div>



 
4.测试,输入arm，然后会出现自动补全，就证明环境变量起效了，再补全输入


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">        arm-linux-gnueabi-gcc <span style="color: #660033;">-v</span></pre></div></div>




   出现如下面这样，就证明安装成功了:


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">       Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ..<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">-v</span> <span style="color: #660033;">--with-pkgversion</span>=<span style="color: #ff0000;">'Debian 4.3.5-4'</span> <span style="color: #660033;">--with-bugurl</span>=<span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>gcc-<span style="color: #000000;">4.3</span><span style="color: #000000; font-weight: bold;">/</span>README.Bugs <span style="color: #660033;">--enable-languages</span>=c,<span style="color: #c20cb9; font-weight: bold;">c++</span>,objc,obj-c++ <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--enable-multiarch</span> <span style="color: #660033;">--enable-linker-build-id</span> <span style="color: #660033;">--with-system-zlib</span> <span style="color: #660033;">--libexecdir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib <span style="color: #660033;">--without-included-gettext</span> <span style="color: #660033;">--enable-threads</span>=posix <span style="color: #660033;">--enable-nls</span> <span style="color: #660033;">--with-gxx-include-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>arm-linux-gnueabi<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>c++<span style="color: #000000; font-weight: bold;">/</span>4.3.5 <span style="color: #660033;">--program-suffix</span>=-<span style="color: #000000;">4.3</span> <span style="color: #660033;">--enable-clocale</span>=gnu <span style="color: #660033;">--enable-libstdcxx-debug</span> <span style="color: #660033;">--enable-objc-gc</span> <span style="color: #660033;">--disable-sjlj-exceptions</span> <span style="color: #660033;">--enable-checking</span>=release <span style="color: #660033;">--program-prefix</span>=arm-linux-gnueabi- <span style="color: #660033;">--includedir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>arm-linux-gnueabi<span style="color: #000000; font-weight: bold;">/</span>include <span style="color: #660033;">--build</span>=x86_64-linux-gnu <span style="color: #660033;">--host</span>=x86_64-linux-gnu <span style="color: #660033;">--target</span>=arm-linux-gnueabi
Thread model: posix
<span style="color: #c20cb9; font-weight: bold;">gcc</span> version 4.3.5 <span style="color: #7a0874; font-weight: bold;">&#40;</span>Debian 4.3.5-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>




    
     
补充：在sudo apt-get install gcc-4.4-arm-linux-gnueabi时，遇到了这样的问题：

    ubuntu:~$ sudo apt-get install gcc-4.3-arm-linux-gnueabi
        Reading package lists&#8230; Done
        Building dependency tree      
        Reading state information&#8230; Done
        You might want to run `apt-get -f install&#8217; to correct these:
        The following packages have unmet dependencies:
        gcc-4.3-arm-linux-gnueabi: Depends: gcc-4.3-arm-linux-gnueabi-base (= 4.3.5-4) but it is not going to be installed
                             Depends: cpp-4.3-arm-linux-gnueabi (= 4.3.5-4) but it is not going to be installed
                             Depends: binutils-arm-linux-gnueabi (>= 2.19.1) but it is not going to be installed
                             Recommends: libc6-dev-armel-cross (>= 2.5) but it is not going to be installed
        libmpfr4: Depends: libgmp10 but it is not installable
    E: Unmet dependencies. Try &#8216;apt-get -f install&#8217; with no packages (or specify a solution).

解决办法：

ubuntu:~$ sudo apt-get install libc6-dev-armel-cross

ubuntu:~$ sudo apt-get install binutils-arm-linux-gnueabi

安装libmpfr4，下载地址：http://www.anheng.com.cn/debian/pool/main/m/mpfr4/libmpfr4_3.0.0-9_i386.deb

ubuntu:~$sudo dpkg -i libmpfr4_3.0.0-9_i386.deb

ubuntu:~$ sudo apt-get install cpp-4.3-arm-linux-gnueabi  

安装libgmp10，下载地址：http://www.anheng.com.cn/debian/pool/main/g/gmp/libgmp10_5.0.1+dfsg-7_i386.deb

ubuntu:~$sudo dpkg -i libgmp10_5.0.1+dfsg-7_i386.deb

ubuntu:~$ sudo apt-get install gcc-4.3-arm-linux-gnueabi-base

ubuntu:~$sudo apt-get install gcc-4.4-arm-linux-gnueabi


<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2Fubuntu-%25e4%25b8%258b%25e5%25bf%25ab%25e9%2580%259f%25e5%25ae%2589%25e8%25a3%2585%25e4%25ba%25a4%25e5%258f%2589%25e7%25bc%2596%25e8%25af%2591%25e5%25b7%25a5%25e5%2585%25b7%2F&title=ubuntu+%E4%B8%8B%E5%BF%AB%E9%80%9F%E5%AE%89%E8%A3%85%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E5%B7%A5%E5%85%B7" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/ubuntu-%e4%b8%8b%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85%e4%ba%a4%e5%8f%89%e7%bc%96%e8%af%91%e5%b7%a5%e5%85%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>怎样将Ubuntu Linux变成Windows 7的模样</title>
		<link>http://www.isspy.com/%e6%80%8e%e6%a0%b7%e5%b0%86ubuntu-linux%e5%8f%98%e6%88%90windows-7%e7%9a%84%e6%a8%a1%e6%a0%b7/</link>
		<comments>http://www.isspy.com/%e6%80%8e%e6%a0%b7%e5%b0%86ubuntu-linux%e5%8f%98%e6%88%90windows-7%e7%9a%84%e6%a8%a1%e6%a0%b7/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 08:04:00 +0000</pubDate>
		<dc:creator>zwxie</dc:creator>
				<category><![CDATA[趣味分享]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows7]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=846</guid>
		<description><![CDATA[Ubuntu具备相当不错的桌面主题系统、视觉效果和养眼程序，不过你或许还是喜欢Windows 7 Aero的精美、透明度和开始菜单。今日我们将为你展示怎样将Ubuntu转换为Windows 7的模样。 当然，这不会是一模一样，不过两者足够接近，乍一看去，许多人都会以为这就是Windows 7。继续阅读，看看该怎么做吧。 我们先来输入一些命令，只需打开终端窗口并输入以下内容： cd ~/ sudo wget http://web.lib.sun.ac.za/ubuntu/files/help/theme/gnome/win7-setup.sh sudo chmod 0755 ~/win7-setup.sh 这将下载一个脚本文件以备后面使用，该文件告知计算机该下载哪些文件来完成Win7主题包的安装。一旦完成，会弹出一个窗口，告知你安装现在即将开始，只需点击OK就好了。 点击OK，然后返回终端，输入： setup-win7-theme 该命令会安装Win7主题，你的电脑会立即转换为Windows风格。等待几秒钟，你会见到一个窗口要求你注销，那么注销再重新登录，下面就是你将见到的： 现在你的Ubuntu和Windows看上去几乎没啥两样。祝贺你！现在你有了WinBuntu！你甚至可以右击开始按钮并选择“属性”来定制开始菜单。 如果需要，你可以为Firefox安装IE风格的主题。你还可以在桌面上使用Windows 7墙纸，如此会给你完全的Windows 7感觉。下载链接在本文末。 在Win 7主题脚本安装中，会备份以前的Gnome设置，并保存于你的home目录下，这样如果你厌倦了该主题，可以卸载它，回滚到之前的Gnome状态。唯一的不足是，没有自动的卸载程序。 卸载并不困难。打开你的home目录，这儿会有一个叫做“win7-uninstall.tar.gz”的文件，用你的档案管理器打开它，你会找到你的home目录，然后双击它，你就会看到你的用户名，再次双击它。应该会有一个“.gconf”文件，把该文件解开到你的home目录。 注销并再次登录，这就好了。你的主题又回到正常的Gnome，仿佛什么都没发生过。挺酷的，不是么？ 有些情形下，你在尝试卸载主题时可能没有卸载干净，遗留下一些Windows 7图标或者桌面墙纸。这些情形下，你必须靠手工删除文件来移除主题，不过用不着担心，这比你想象的简单。只需打开一个终端窗口并输入以下命令，再点击回车即可。 rm -rf .gnome .gnome2 .gconf .gconfd .metacity &#160; 注意：这会将你的Gnome外观设置恢复到第一次安装Ubuntu时的默认情形。 Firefox的Vista-aero主题 [通过Mozilla Firefox] Windows 7墙纸[通过Win Customize] &#160; 新闻源 &#160;]]></description>
			<content:encoded><![CDATA[<a href="http://www.isspy.com/wp-content/uploads/2011/04/20110417200445_77345.jpg" rel="lightbox[846]"><img class="aligncenter size-full wp-image-852" title="20110417200445_77345" src="http://www.isspy.com/wp-content/uploads/2011/04/20110417200445_77345-500x406.jpg" alt="" width="500" height="406" /></a>
<div>Ubuntu具备相当不错的桌面主题系统、视觉效果和养眼程序，不过你或许还是喜欢Windows 7 Aero的精美、透明度和开始菜单。今日我们将为你展示怎样将Ubuntu转换为Windows 7的模样。</div>
<div>当然，这不会是一模一样，不过两者足够接近，乍一看去，许多人都会以为这就是Windows 7。继续阅读，看看该怎么做吧。</div>
<div>我们先来输入一些命令，只需打开终端窗口并输入以下内容：</div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>web.lib.sun.ac.za<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>help<span style="color: #000000; font-weight: bold;">/</span>theme<span style="color: #000000; font-weight: bold;">/</span>gnome<span style="color: #000000; font-weight: bold;">/</span>win7-setup.sh
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> 0755 ~<span style="color: #000000; font-weight: bold;">/</span>win7-setup.sh</pre></div></div>



这将下载一个脚本文件以备后面使用，该文件告知计算机该下载哪些文件来完成Win7主题包的安装。一旦完成，会弹出一个窗口，告知你安装现在即将开始，只需点击OK就好了。<span id="more-846"></span>

<a href="http://www.isspy.com/wp-content/uploads/2011/04/20110417200441_72160.jpg" rel="lightbox[846]"><img class="aligncenter size-full wp-image-850" title="20110417200441_72160" src="http://www.isspy.com/wp-content/uploads/2011/04/20110417200441_72160-500x155.jpg" alt="" width="500" height="155" /></a>

点击OK，然后返回终端，输入：


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">setup-win7-theme</pre></div></div>



该命令会安装Win7主题，你的电脑会立即转换为Windows风格。等待几秒钟，你会见到一个窗口要求你注销，那么注销再重新登录，下面就是你将见到的：

<a href="http://www.isspy.com/wp-content/uploads/2011/04/20110417200444_55816.jpg" rel="lightbox[846]"><img class="aligncenter size-full wp-image-851" title="20110417200444_55816" src="http://www.isspy.com/wp-content/uploads/2011/04/20110417200444_55816-500x406.jpg" alt="" width="500" height="406" /></a>
<div>现在你的Ubuntu和Windows看上去几乎没啥两样。祝贺你！现在你有了WinBuntu！你甚至可以右击开始按钮并选择“属性”来定制开始菜单。</div>
<div>如果需要，你可以为Firefox安装IE风格的主题。你还可以在桌面上使用Windows 7墙纸，如此会给你完全的Windows 7感觉。下载链接在本文末。</div>
<div>在Win 7主题脚本安装中，会备份以前的Gnome设置，并保存于你的home目录下，这样如果你厌倦了该主题，可以卸载它，回滚到之前的Gnome状态。唯一的不足是，没有自动的卸载程序。</div>
<div>卸载并不困难。打开你的home目录，这儿会有一个叫做“win7-uninstall.tar.gz”的文件，用你的档案管理器打开它，你会找到你的home目录，然后双击它，你就会看到你的用户名，再次双击它。应该会有一个“.gconf”文件，把该文件解开到你的home目录。</div>
<div><a href="http://www.isspy.com/wp-content/uploads/2011/04/20110417200414_50076.jpg" rel="lightbox[846]"><img class="aligncenter size-full wp-image-849" title="20110417200414_50076" src="http://www.isspy.com/wp-content/uploads/2011/04/20110417200414_50076-500x406.jpg" alt="" width="500" height="406" /></a></div>
<div>注销并再次登录，这就好了。你的主题又回到正常的Gnome，仿佛什么都没发生过。挺酷的，不是么？</div>
<div>有些情形下，你在尝试卸载主题时可能没有卸载干净，遗留下一些Windows 7图标或者桌面墙纸。这些情形下，你必须靠手工删除文件来移除主题，不过用不着担心，这比你想象的简单。只需打开一个终端窗口并输入以下命令，再点击回车即可。</div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> .gnome .gnome2 .gconf .gconfd .metacity</pre></div></div>



&nbsp;
<div>注意：这会将你的Gnome外观设置恢复到第一次安装Ubuntu时的默认情形。</div>
<div>

<a href="https://addons.mozilla.org/en-US/firefox/addon/vista-aero/">Firefox的Vista-aero主题</a> [通过<a href="http://www.mozilla.com/en-US/firefox/?ref=logo">Mozilla Firefox</a>]

<a href="http://www.wincustomize.com/explore/wallpapers/40179/">Windows 7</a>墙纸[通过<a href="http://www.wincustomize.com/">Win Customize</a>]

&nbsp;

<a href="http://article.yeeyan.org/view/163202/185139">新闻源</a>

&nbsp;

</div><p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2F%25e6%2580%258e%25e6%25a0%25b7%25e5%25b0%2586ubuntu-linux%25e5%258f%2598%25e6%2588%2590windows-7%25e7%259a%2584%25e6%25a8%25a1%25e6%25a0%25b7%2F&title=%E6%80%8E%E6%A0%B7%E5%B0%86Ubuntu+Linux%E5%8F%98%E6%88%90Windows+7%E7%9A%84%E6%A8%A1%E6%A0%B7" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/%e6%80%8e%e6%a0%b7%e5%b0%86ubuntu-linux%e5%8f%98%e6%88%90windows-7%e7%9a%84%e6%a8%a1%e6%a0%b7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>一些桌面美化的资源,Conky,Wallpaper,Icon</title>
		<link>http://www.isspy.com/%e4%b8%80%e4%ba%9b%e6%a1%8c%e9%9d%a2%e7%be%8e%e5%8c%96%e7%9a%84%e8%b5%84%e6%ba%90conkywallpapericon/</link>
		<comments>http://www.isspy.com/%e4%b8%80%e4%ba%9b%e6%a1%8c%e9%9d%a2%e7%be%8e%e5%8c%96%e7%9a%84%e8%b5%84%e6%ba%90conkywallpapericon/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 06:30:51 +0000</pubDate>
		<dc:creator>zwxie</dc:creator>
				<category><![CDATA[趣味分享]]></category>
		<category><![CDATA[Conky]]></category>
		<category><![CDATA[Icon]]></category>
		<category><![CDATA[Wallpaper]]></category>
		<category><![CDATA[图标]]></category>
		<category><![CDATA[桌面]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=834</guid>
		<description><![CDATA[1.壁纸 4张   下载地址 &#160; 2漂亮的Conky主题 2.1 Conky Meet Faenza 2.2 Conky Launchpad 2.3Conky Ken &#160; 3.仿MAC的图标      KDE下载地址 Gnome下载地址 &#160; &#160;]]></description>
			<content:encoded><![CDATA[1.壁纸 4张   <a href="http://www.isspy.com/wp-content/uploads/2011/04/Wallpaper20110406.zip" target="_blank">下载地址</a>

<a href="http://www.isspy.com/wp-content/uploads/2011/04/ubname4x3.png" rel="lightbox[834]">
</a>
<a href="http://www.isspy.com/wp-content/uploads/2011/04/2011_typographic_wallpaper.png" rel="lightbox[834]"><img class="aligncenter size-full wp-image-841" title="2011_typographic_wallpaper" src="http://www.isspy.com/wp-content/uploads/2011/04/2011_typographic_wallpaper-500x297.png" alt="" width="500" height="297" /></a>

&nbsp;

2漂亮的Conky主题

2.1 <a href="http://gnome-look.org/content/show.php/conky%7Emeet%7Efaenza?content=133086" target="_blank">Conky Meet Faenza </a>

<a href="http://www.isspy.com/wp-content/uploads/2011/04/Conky-Meet-Faenza.png" rel="lightbox[834]"><img class="aligncenter size-medium wp-image-836" title="Conky Meet Faenza" src="http://www.isspy.com/wp-content/uploads/2011/04/Conky-Meet-Faenza-300x253.png" alt="" width="300" height="253" /></a>
2.2 <a href="http://gnome-look.org/content/show.php/Conky+Launchpad?content=134620" target="_blank">Conky Launchpad</a>

<a href="http://www.isspy.com/wp-content/uploads/2011/04/Conky-Launchpad.png" rel="lightbox[834]"><img class="aligncenter size-medium wp-image-837" title="Conky Launchpad" src="http://www.isspy.com/wp-content/uploads/2011/04/Conky-Launchpad-300x47.png" alt="" width="300" height="47" /></a>

2.3<a href="http://gnome-look.org/content/show.php/Conky_Ken?content=134705" target="_blank">Conky Ken</a><a href="http://www.isspy.com/wp-content/uploads/2011/04/129008-1.jpg" rel="lightbox[834]">
</a>

<a href="http://www.isspy.com/wp-content/uploads/2011/04/Conky-Ken.jpg" rel="lightbox[834]"><img class="aligncenter size-medium wp-image-838" title="Conky Ken" src="http://www.isspy.com/wp-content/uploads/2011/04/Conky-Ken-300x187.jpg" alt="" width="300" height="187" /></a>

&nbsp;

3.仿MAC的图标      <a href="http://kde-look.org/content/show.php/Faenza-Cupertino+Kde?content=133534" target="_blank">KDE下载地址 </a> <a href="http://thedeviantmars.deviantart.com/#/d30f04b" target="_blank">Gnome下载地址</a>

<a href="http://www.isspy.com/wp-content/uploads/2011/04/129008-1.jpg" rel="lightbox[834]"><img class="aligncenter size-medium wp-image-839" title="129008-1" src="http://www.isspy.com/wp-content/uploads/2011/04/129008-1-300x208.jpg" alt="" width="300" height="208" /> </a>

&nbsp;

<a href="http://www.isspy.com/wp-content/uploads/2011/04/133534-1.jpg" rel="lightbox[834]"><img class="aligncenter size-medium wp-image-840" title="133534-1" src="http://www.isspy.com/wp-content/uploads/2011/04/133534-1-300x187.jpg" alt="" width="300" height="187" /></a>

&nbsp;<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2F%25e4%25b8%2580%25e4%25ba%259b%25e6%25a1%258c%25e9%259d%25a2%25e7%25be%258e%25e5%258c%2596%25e7%259a%2584%25e8%25b5%2584%25e6%25ba%2590conkywallpapericon%2F&title=%E4%B8%80%E4%BA%9B%E6%A1%8C%E9%9D%A2%E7%BE%8E%E5%8C%96%E7%9A%84%E8%B5%84%E6%BA%90%2CConky%2CWallpaper%2CIcon" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/%e4%b8%80%e4%ba%9b%e6%a1%8c%e9%9d%a2%e7%be%8e%e5%8c%96%e7%9a%84%e8%b5%84%e6%ba%90conkywallpapericon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用wp-super-cache插件静态缓冲的nginx rewrite规则</title>
		<link>http://www.isspy.com/nginx-rewrite-rules-for-wp-super-cache/</link>
		<comments>http://www.isspy.com/nginx-rewrite-rules-for-wp-super-cache/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 06:21:03 +0000</pubDate>
		<dc:creator>BOY PT</dc:creator>
				<category><![CDATA[快速教程]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=815</guid>
		<description><![CDATA[Wordpress的缓冲插件wp-super-cache默认支持apahce的缓冲方式，在生成了静态页面数据后，通过.htaccess的规则直接让apache读取静态文件，完全不经过PHP，可以很大的提高博客的页面性能。 但是Nginx的改写规则就没这么容易让代码来配置了，虽然wp-super-cache的第二种缓存方式就是为这种使用环境设计，但实际上是用了PHP来提供静态数据了，在使用apache benchmark压力的时候，php-cgi依然占很高的CPU占有率。 通过编写nginx的rewrite规则还是可以让nginx直接读取静态文件，参考来自Code Exchange: nginx rewrite rules for WordPress + WP Super Cache，这里的配置被很多地方引用过，但实际尝试使用过程看到那里面的代码还需要微调。 server &#123; listen 80; server_name apt-blog.net; root /var/www/pt-sites/wordpress; index index.html index.htm index.php; location / &#123; # enable search for precompressed files ending in .gz # nginx needs to be complied using –-with-http_gzip_static_module # for this to work, comment out if using [...]]]></description>
			<content:encoded><![CDATA[Wordpress的缓冲插件wp-super-cache默认支持apahce的缓冲方式，在生成了静态页面数据后，通过.htaccess的规则直接让apache读取静态文件，完全不经过PHP，可以很大的提高博客的页面性能。

但是Nginx的改写规则就没这么容易让代码来配置了，虽然wp-super-cache的第二种缓存方式就是为这种使用环境设计，但实际上是用了PHP来提供静态数据了，在使用apache benchmark压力的时候，php-cgi依然占很高的CPU占有率。

通过编写nginx的rewrite规则还是可以让nginx直接读取静态文件，参考来自<a href="http://forum.slicehost.com/comments.php?DiscussionID=2087">Code Exchange: nginx rewrite rules for WordPress + WP Super Cache</a>，这里的配置被很多地方引用过，但实际尝试使用过程看到那里面的代码还需要微调。


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">    server <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        listen          <span style="color: #000000;">80</span>;
        server_name     apt-blog.net;
        root    <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>pt-sites<span style="color: #000000; font-weight: bold;">/</span>wordpress;
        index   index.html index.htm index.php;
        location <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                <span style="color: #666666; font-style: italic;"># enable search for precompressed files ending in .gz</span>
                <span style="color: #666666; font-style: italic;"># nginx needs to be complied using –-with-http_gzip_static_module</span>
                <span style="color: #666666; font-style: italic;"># for this to work, comment out if using nginx from aptitude</span>
                gzip_static on;
&nbsp;
                <span style="color: #666666; font-style: italic;"># if the requested file exists, return it immediately</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>-f <span style="color: #007800;">$request_filename</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                        <span style="color: #7a0874; font-weight: bold;">break</span>;
                <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">$supercache_file</span> <span style="color: #ff0000;">''</span>;
                <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">$supercache_uri</span> <span style="color: #007800;">$request_uri</span>;
&nbsp;
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$request_method</span> = POST<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                        <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">$supercache_uri</span> <span style="color: #ff0000;">''</span>;
                <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
                <span style="color: #666666; font-style: italic;"># Using pretty permalinks, so bypass the cache for any query string</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$query_string</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                        <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">$supercache_uri</span> <span style="color: #ff0000;">''</span>;
                <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$http_cookie</span> ~<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #ff0000;">&quot;comment_author_|wordpress|wp-postpass_&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                        <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">$supercache_uri</span> <span style="color: #ff0000;">''</span>;
                <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
                <span style="color: #666666; font-style: italic;"># !!!! IMPORTANT</span>
                <span style="color: #666666; font-style: italic;"># if we haven't bypassed the cache, specify our supercache file</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$supercache_uri</span> ~ ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.+<span style="color: #7a0874; font-weight: bold;">&#41;</span>$<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                        <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">$supercache_file</span> <span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>cache<span style="color: #000000; font-weight: bold;">/</span>supercache<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$http_host</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>index.html;
                <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
                <span style="color: #666666; font-style: italic;"># only rewrite to the supercache file if it actually exists</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>-f <span style="color: #007800;">$document_root</span><span style="color: #007800;">$supercache_file</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                        rewrite ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>$ <span style="color: #007800;">$supercache_file</span> <span style="color: #7a0874; font-weight: bold;">break</span>;
                <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
                <span style="color: #666666; font-style: italic;"># all other requests go to Wordpress</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span>-e <span style="color: #007800;">$request_filename</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                        rewrite ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>$ <span style="color: #000000; font-weight: bold;">/</span>index.php?<span style="color: #007800;">q</span>=<span style="color: #007800;">$1</span> <span style="color: #c20cb9; font-weight: bold;">last</span>;
                <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span>
        location ~ \.php$ <span style="color: #7a0874; font-weight: bold;">&#123;</span>
              include        fastcgi_params;
              fastcgi_pass   127.0.0.1:<span style="color: #000000;">9000</span>;
              fastcgi_index  index.php;
              fastcgi_param  SCRIPT_FILENAME  <span style="color: #007800;">$document_root</span><span style="color: #007800;">$fastcgi_script_name</span>;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span>
    <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>



<strong>需要重点关注的是<code>set $supercache_uri</code>这一行，这里的路径是wp-super-cache生成静态文件的路径，配置文件起作用的时候，这个路径会和$document_root组成最终静态文件的绝对路径，最终输出文件。所以如果这个路径不对的话，最终还是交给了<code>index.php</code>，缓冲就不起作用了。</strong>

wp-super-cache在wordpress目录<code>/wp-content/cache/supercache/$http_host/</code>下生成了各个请求url的目录，目录下是一个index.html静态文件，可以在wordpress工作时候，在这个目录下用命令<code>watch find</code>观察（在缓冲不多的情况下），总之小心的把这个路径写好，因为估计每个博客的permanent link的样式都不一样，wp-super-cache生成的目录也不一样，需要仔细调试一下。

完成后用apache benchmark压一下，Request per second应该很容易上百，而且php-cgi应该不会出现在top的列表前面了，CPU应该集中在nginx的子进程上，而且都是个位数CPU占有率，系统的load非常低。

顺便说一下，如果仅使用ab测试压力，用不着安装整个apache2，只需要<code>apt-get install apache2-utils</code>。<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2Fnginx-rewrite-rules-for-wp-super-cache%2F&title=%E4%BD%BF%E7%94%A8wp-super-cache%E6%8F%92%E4%BB%B6%E9%9D%99%E6%80%81%E7%BC%93%E5%86%B2%E7%9A%84nginx+rewrite%E8%A7%84%E5%88%99" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/nginx-rewrite-rules-for-wp-super-cache/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>搭建企业级邮件系统 iRedMail</title>
		<link>http://www.isspy.com/%e6%90%ad%e5%bb%ba%e4%bc%81%e4%b8%9a%e7%ba%a7%e9%82%ae%e4%bb%b6%e7%b3%bb%e7%bb%9f-iredmail/</link>
		<comments>http://www.isspy.com/%e6%90%ad%e5%bb%ba%e4%bc%81%e4%b8%9a%e7%ba%a7%e9%82%ae%e4%bb%b6%e7%b3%bb%e7%bb%9f-iredmail/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 08:08:30 +0000</pubDate>
		<dc:creator>zwxie</dc:creator>
				<category><![CDATA[快速教程]]></category>
		<category><![CDATA[iRedMail]]></category>
		<category><![CDATA[邮件]]></category>
		<category><![CDATA[邮件系统]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=809</guid>
		<description><![CDATA[一 软件环境 最近负责一个公司网站和邮件系统的搭建，以前自己一直没有仔细的研究过邮件系统的从零开始搭建工作，趁现在工作之余也同时将文档整理一次； 主要针对快捷高效搭建，简单实用为主，基本够一个人数50-100的小型公司使用。 操作系统：CentOS release 5.3 (Final) x86_64 数据库：mysql Ver 14.12 Distrib 5.0.45 php：php 5.2 up 邮件系统：postfix 2.5.6 + iredmail 0.4.0 webmail：RoundCube 1.0.2 iRedMail 0.4.0 下载地址：这里 二 安装过程 因许多软件涉及到yum安装，这里我给出国内一个非常快的Centos镜像，请 这里下载 1. 数据库和邮件系统安装 mysql 安装和postfix 安装 全部采取yum安装 $ yum install -y mysql mysql-server mysql-devel $ yum install -y postfix 2.php安装 $ yum install -y php [...]]]></description>
			<content:encoded><![CDATA[一 软件环境
最近负责一个公司网站和邮件系统的搭建，以前自己一直没有仔细的研究过邮件系统的从零开始搭建工作，趁现在工作之余也同时将文档整理一次；
主要针对快捷高效搭建，简单实用为主，基本够一个人数50-100的小型公司使用。

操作系统：CentOS release 5.3 (Final) x86_64
数据库：mysql  Ver 14.12 Distrib 5.0.45
php：php 5.2 up
邮件系统：postfix 2.5.6 + iredmail 0.4.0
webmail：RoundCube 1.0.2

iRedMail 0.4.0 下载地址：<a href="http://iredmail.googlecode.com/files/iRedMail-0.4.0.tar.bz2">这里</a>

二 安装过程
因许多软件涉及到yum安装，这里我给出国内一个非常快的Centos镜像，请<a href="http://www.hiadmin.com/download/CentOS-Base.repo"> 这里</a>下载
1. 数据库和邮件系统安装
mysql 安装和postfix 安装 全部采取yum安装


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> mysql mysql-server mysql-devel
$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> postfix</pre></div></div>



2.php安装


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> php php-ldap php-gd php-imap php-mysql php-pear php-mbstring</pre></div></div>



3.iredmail 安装
下载解压 iRedMail-0.4.0.tar.bz2
安装指令：


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>iRedMail-x.y.z<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #7a0874; font-weight: bold;">cd</span> pkgs<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">sh</span> get_all.sh
$ <span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">sh</span> iRedMail.sh</pre></div></div>



安装过程详细介绍请参看：<a href="http://code.google.com/p/iredmail/wiki/Installation">戳这里</a>
注：
a：安装之前请先行设定mysql的root帐号和密码；空密码不被接受；
b：其中数据库只需选择mysql即可；
c：webprogrem选择RoundCube即可，其他默认；
d：请记住设定的mail admin的帐号和密码。

三 配置过程
因为iRedMail的高度整合，使得配置过程异常的简单。甚至可以不需要对postfix进行多余设定；
注意修改以下基本配置：<strong>iRedmail安装过程中已经增加的这部分设定，请在配置文件的最末尾处修改</strong>；

1． myorigin
myorigin参数指明发件人所在的域名。如果你的用户的邮件地址为user@domain.com,则该参数指定@后面的域名。缺省 地，postfix使用本地主机名作为myorigin，但是建议你最好使用你的域名，因为这样更具有可读性。比如：安装postfix的主机为  mail.domain.com则我们可以这样指定myorigin:
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">myorigin = domain.com
当然我们也可以引用其他参数，如：
myorigin = <span style="color: #007800;">$mydomain</span></pre></div></div>



</div>
2． mydestination
mydestination参数指定postfix接收邮件时收件人的域名，换句话说，也就
是你的postfix系统要接收什么样的邮件。比如：你的用户的邮件地址为user@domain.com, 也就是你的域为domain.com,  则你就需要接收所有收件人为user_name@domain.com的邮件。与myorigin一样，缺省地，postfix使用本地主机名作为  mydestination。如：
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mydestination = <span style="color: #007800;">$mydomain</span>
mydestination = domain.com</pre></div></div>



</div>
3． notify_classes
在postfix系统中，必须指定一个postfix系统管理员的别名指向一个用户，
只有这样，在用户遇到问题时才有报告的对象，postfix也才能将系统的问题报告给管理员。notify_classes参数就是用来指定向postfix管理员报告错误时的信息级别。共有以下几种级别：
<div>bounce：将不可以投递的邮件的拷贝发送给postfix管理员。出于个人隐私的缘故，该邮件的拷贝不包含信头。</div>
2bounce：将两次不可投递的邮件拷贝发送给postfix管理员。

delay：将邮件的投递延迟信息发送给管理员，仅仅包含信头。

policy：将由于UCE规则限制而被拒绝的用户请求发送给postfix管理员，包含整个SMTP会话的内容。

protocol：将协议的错误信息或用户企图执行不支持的命令的记录发送给postfix管理员。同样包含整个SMTP会话的内容。

resource：将由于资源错误而不可投递的错误信息发送给postfix管理员，比如：队列文件写错误等等。

software：将由于软件错误而导致不可投递的错误信息发送给postfix管理员。

缺省值为：
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">notify_classes = resource, software</pre></div></div>



</div>
4．myhostname
myhostname 参数指定运行postfix邮件系统的主机的主机名。缺省地，该值被设定为本地机器名。你也可以指定该值，需要注意的是，要指定完整的主机名。如：
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">myhostname = mail.domain.com</pre></div></div>



</div>
5．mydomain
mydomain参数指定你的域名，缺省地，postfix将myhostname的第一部分删除而作为mydomain的值。你也可以自己指定该值，如：
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mydomain = domain.com</pre></div></div>



</div>
6．mynetworks
mynetworks 参数指定你所在的网络的网络地址，postfix系统根据其值来区别用户是远程的还是本地的，如果是本地网络用户则允许其访问。你可以用标准的A、B、C类网络地址，也可以用CIDR（无类域间路由）地址来表示,如：
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">192.168.1.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span>
192.168.1.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">26</span></pre></div></div>



</div>
7．inet_interfaces
inet_interfaces 参数指定postfix系统监听的网络接口。缺省地，postfix监听
所有的网络接口。如果你的postfix运行在一个虚拟的ip地址上，则必须指定其监听的地址。如：
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">inet_interfaces = all
inet_interface = 192.168.1.1</pre></div></div>



</div>
关于postfix的配置详细介绍可参看<a href="http://bbs.chinaunix.net/viewthread.php?tid=97071">戳这里</a>
需要注意的是dovecat配置在main.cf中的和master.cf的端口一致；否则会导致邮件发送失败；


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#main.cf</span>
content_filter = smtp-amavis:<span style="color: #7a0874; font-weight: bold;">&#91;</span>127.0.0.1<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">10024</span>
<span style="color: #666666; font-style: italic;">#master.cf</span>
127.0.0.1:<span style="color: #000000;">10024</span>  inet n  –   –   –   –  smtpd
<span style="color: #660033;">-o</span> <span style="color: #007800;">content_filter</span>=
<span style="color: #660033;">-o</span> <span style="color: #007800;">local_recipient_maps</span>=
<span style="color: #660033;">-o</span> <span style="color: #007800;">relay_recipient_maps</span>=
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_restriction_classes</span>=
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_delay_reject</span>=no
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_client_restrictions</span>=permit_mynetworks,reject
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_helo_restrictions</span>=
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_sender_restrictions</span>=
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_recipient_restrictions</span>=permit_mynetworks,reject
<span style="color: #660033;">-o</span> <span style="color: #007800;">mynetworks_style</span>=host
<span style="color: #660033;">-o</span> <span style="color: #007800;">mynetworks</span>=127.0.0.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span>
<span style="color: #660033;">-o</span> <span style="color: #007800;">strict_rfc821_envelopes</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_error_sleep_time</span>=<span style="color: #000000;">0</span>
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_soft_error_limit</span>=<span style="color: #000000;">1001</span>
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_hard_error_limit</span>=<span style="color: #000000;">1000</span>
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_client_connection_count_limit</span>=<span style="color: #000000;">0</span>
<span style="color: #660033;">-o</span> <span style="color: #007800;">smtpd_client_connection_rate_limit</span>=<span style="color: #000000;">0</span>
<span style="color: #660033;">-o</span> <span style="color: #007800;">receive_override_options</span>=no_header_body_checks,no_unknown_recipient_checks</pre></div></div>



以上设定完成后，确认启动postfix、policyd、dovecot、httpd、mysqld；

四、测试过程
1. 访问：http://your_server/mail/
<img class="aligncenter size-full wp-image-812" title="webmail1" src="http://www.isspy.com/wp-content/uploads/2011/03/webmail1.jpg" alt="" width="416" height="210" />
以上设定正确，请登录测试发送邮件是否正常；

2. 增加邮件用户和邮箱容量大小配额设定
a.首先登录mysql；
b.依次执行以下指令：


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; use vmail;
Database changed
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; INSERT INTO mailbox <span style="color: #7a0874; font-weight: bold;">&#40;</span>username, password, name, maildir, quota, domain, active<span style="color: #7a0874; font-weight: bold;">&#41;</span>
-<span style="color: #000000; font-weight: bold;">&amp;</span>gt;     VALUES <span style="color: #7a0874; font-weight: bold;">&#40;</span>‘testuser<span style="color: #000000; font-weight: bold;">@</span>hiadmin.com’,  ‘<span style="color: #007800;">$1</span><span style="color: #007800;">$W</span>.UWoG.0<span style="color: #007800;">$Bnq8mcbsi1UhFVpiJ2jvY0</span>′, ‘testuser’,  ‘hiamdin.com<span style="color: #000000; font-weight: bold;">/</span>testuser<span style="color: #000000; font-weight: bold;">/</span>’, ’<span style="color: #000000;">2048</span>′, ‘hiadmin.com’, ’<span style="color: #000000;">1</span>′<span style="color: #7a0874; font-weight: bold;">&#41;</span>;
Query OK, <span style="color: #000000;">1</span> row affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>



注：
#在mailbox生成用户帐号、密码、以及邮箱容量quota 2048为2GB
#其中password字段值，可以使用 openssl passwd -1 testuser生成；


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; INSERT INTO <span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>address, goto, domain, active<span style="color: #7a0874; font-weight: bold;">&#41;</span>
-<span style="color: #000000; font-weight: bold;">&amp;</span>gt;     VALUES <span style="color: #7a0874; font-weight: bold;">&#40;</span>‘testuser<span style="color: #000000; font-weight: bold;">@</span>hiadmin.com’, ‘testuser<span style="color: #000000; font-weight: bold;">@</span>hiadmin.com’, ‘hiadmin.com’, ’<span style="color: #000000;">1</span>′<span style="color: #7a0874; font-weight: bold;">&#41;</span>;
Query OK, <span style="color: #000000;">1</span> row affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>



注：
#alias 中生成别名；

c.也可以用iRedmail的tools 脚本；

———————————————-


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>iRedMail-0.4.0<span style="color: #000000; font-weight: bold;">/</span>tools</pre></div></div>



#该目录下有个create_mail_user_MySQL.sh的脚本，可以为你生成增加用户的sql语句；
#执行脚本前实现生成userlist.txt


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$echo</span> testuser <span style="color: #000000; font-weight: bold;">&amp;</span>gt;userlist.txt</pre></div></div>



#每行一个用户名即可


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$sh</span> create_mail_user_MySQL.sh userlist.txt</pre></div></div>



#生成output.sql
#登录到mysql，在vmail库中执行


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>output.sql</pre></div></div>



d.设定自己域名的mx记录，再登录RoundCube测试能否收发邮件！

<a href="http://www.isspy.com/%E6%90%AD%E5%BB%BA%E4%BC%81%E4%B8%9A%E7%BA%A7%E9%82%AE%E4%BB%B6%E7%B3%BB%E7%BB%9F-iredmail/">源文</a><p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2F%25e6%2590%25ad%25e5%25bb%25ba%25e4%25bc%2581%25e4%25b8%259a%25e7%25ba%25a7%25e9%2582%25ae%25e4%25bb%25b6%25e7%25b3%25bb%25e7%25bb%259f-iredmail%2F&title=%E6%90%AD%E5%BB%BA%E4%BC%81%E4%B8%9A%E7%BA%A7%E9%82%AE%E4%BB%B6%E7%B3%BB%E7%BB%9F+iRedMail" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/%e6%90%ad%e5%bb%ba%e4%bc%81%e4%b8%9a%e7%ba%a7%e9%82%ae%e4%bb%b6%e7%b3%bb%e7%bb%9f-iredmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim中写WordPress博客 &#8211; VimRepress</title>
		<link>http://www.isspy.com/vim%e4%b8%ad%e5%86%99wordpress%e5%8d%9a%e5%ae%a2-vimrepress/</link>
		<comments>http://www.isspy.com/vim%e4%b8%ad%e5%86%99wordpress%e5%8d%9a%e5%ae%a2-vimrepress/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 14:58:02 +0000</pubDate>
		<dc:creator>BOY PT</dc:creator>
				<category><![CDATA[趣味分享]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[vimpress]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=805</guid>
		<description><![CDATA[WordPress的客户端其实不少，从live writter到scribefire，用户都不少。但是有时候我们只需要一篇博客包含简洁的HTML，这时候这些所见所得编辑器出来的结果都不一定都让人那么满意，经常需要登录到博客后台去编辑源码。 实际上最适合的还是方法还是先用markdown/reStructed/Tex/WikiText之类的语法写成，然后编译成HTML，再发布到博客。 Vim有个vimpress插件可以直接在Vim当中编辑博客，相当适合这个任务。不过由于官方页面上的vimpress已经久无人维护已经不能用了，之前对vimpress的代码做了 一些改写重构，而且得到外国网友的关注 ，而且冠名 VimRepress ，现在正式发布一个VimRepressed的版本。 比起原版的Vimpress，VimRepress有了更友好的错误提示，带了上传图片等的功能，改善了几个命令的可用性： BlogList &#60;count&#62; 列表文章，可以用参数定义列出多少篇文章。默认最近30篇。 BlogNew 新文章命令，会将当前的buffer内容作为文章的内容。 BlogOpen &#60;id&#62; 打开文章，需要手动输入post id. BlogSave &#60;draft&#124;publish&#62; 保存文章，可以保存为草稿、或者直接发布。 BlogPreview &#60;draft&#124;publish&#62; 预览文章，实际和BlogSave命令相同，之后会打开浏览器窗口预览文章。但如果你是保存成草稿的，还得在浏览器登录才能看到。 BlogUpload &#60;file&#62; 可上传图片等文件到博客。自动添加链接代码到光标后。 BlogCode &#60;code type&#62; 代码片段，添加一个&#60;pre&#62;元素的块，对程序博客特别有用，目前默认用wp-syntax插件的高亮模式。 下载: From Google Code SVN 版本: svn co http://ptcoding.googlecode.com/svn/trunk/vimpress/ 安装： 下载以上.zip文件，解压到~/.vim目录: cd ~/.vim unzip /where/you/downlaod/vimpress-1.x.x.zip 配置： 编辑 ~/.vim/plugin/blog.vim, 查找Settings，将会找到如下的一块代码： ##################### # Settings # ##################### [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress的客户端其实不少，从live writter到scribefire，用户都不少。但是有时候我们只需要一篇博客包含简洁的HTML，这时候这些所见所得编辑器出来的结果都不一定都让人那么满意，经常需要登录到博客后台去编辑源码。</p>

<p>实际上最适合的还是方法还是先用markdown/reStructed/Tex/WikiText之类的语法写成，然后编译成HTML，再发布到博客。</p>

<p>Vim有个vimpress插件可以直接在Vim当中编辑博客，相当适合这个任务。不过由于官方页面上的vimpress已经久无人维护已经不能用了，之前对vimpress的代码做了<a href="http://apt-blog.net/an-improved-vimpress"> 一些改写重构，而且得到外国网友的关注 </a>，而且冠名<a href="http://fzysqr.com/2010/12/12/vimrepressed/"> VimRepress </a>，现在正式发布一个VimRepressed的版本。</p>

<p>比起原版的Vimpress，VimRepress有了更友好的错误提示，带了上传图片等的功能，改善了几个命令的可用性：</p>

<ul>
<li><code>BlogList &lt;count&gt;</code> 列表文章，可以用参数定义列出多少篇文章。默认最近30篇。</li>
<li><code>BlogNew</code> 新文章命令，会将当前的buffer内容作为文章的内容。</li>
<li><code>BlogOpen &lt;id&gt;</code> 打开文章，需要手动输入post id.</li>
<li><code>BlogSave &lt;draft|publish&gt;</code> 保存文章，可以保存为草稿、或者直接发布。</li>
<li><code>BlogPreview &lt;draft|publish&gt;</code> 预览文章，实际和<code>BlogSave</code>命令相同，之后会打开浏览器窗口预览文章。但如果你是保存成草稿的，还得在浏览器登录才能看到。</li>
<li><code>BlogUpload &lt;file&gt;</code> 可上传图片等文件到博客。自动添加链接代码到光标后。</li>
<li><code>BlogCode &lt;code type&gt;</code> 代码片段，添加一个&lt;pre&gt;元素的块，对程序博客特别有用，目前默认用<code>wp-syntax</code>插件的高亮模式。</li>
</ul>

<p><strong>下载</strong>: <a href="http://code.google.com/p/ptcoding/downloads/detail?name=vimpress-1.1.2-r45.zip">From Google Code</a></p>

<p><strong>SVN 版本</strong>: <code>svn co http://ptcoding.googlecode.com/svn/trunk/vimpress/</code></p>

<p><strong>安装：</strong></p>

<p>下载以上.zip文件，解压到<code>~/.vim</code>目录: </p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">  <span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>.vim
  <span style="color: #c20cb9; font-weight: bold;">unzip</span> <span style="color: #000000; font-weight: bold;">/</span>where<span style="color: #000000; font-weight: bold;">/</span>you<span style="color: #000000; font-weight: bold;">/</span>downlaod<span style="color: #000000; font-weight: bold;">/</span>vimpress-<span style="color: #000000;">1</span>.x.x.zip</pre></div></div>




<p><strong>配置：</strong></p>

<p>编辑 <code>~/.vim/plugin/blog.vim</code>, 查找<code>Settings</code>，将会找到如下的一块代码：</p>


<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#####################</span>
<span style="color: #808080; font-style: italic;">#      Settings     #</span>
<span style="color: #808080; font-style: italic;">#####################</span>
&nbsp;
blog_username = <span style="color: #483d8b;">'user'</span>
blog_password = <span style="color: #483d8b;">'pass'</span>
blog_url = <span style="color: #483d8b;">'http://yourblog.com'</span></pre></div></div>




<p>填入你的用户名、密码、博客地址，保存即可。</p>

<p>然后重新打开一个Vim，就可以敲<code>:BlogList</code>命令试试了。</p>

BY BOYPT <a href="http://apt-blog.net/release-of-vimrepress_cn">http://apt-blog.net/release-of-vimrepress_cn</a><p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2Fvim%25e4%25b8%25ad%25e5%2586%2599wordpress%25e5%258d%259a%25e5%25ae%25a2-vimrepress%2F&title=Vim%E4%B8%AD%E5%86%99WordPress%E5%8D%9A%E5%AE%A2+-+VimRepress" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/vim%e4%b8%ad%e5%86%99wordpress%e5%8d%9a%e5%ae%a2-vimrepress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora LiveCD 换用 XZ 压缩格式</title>
		<link>http://www.isspy.com/fedora-livecd-%e6%8d%a2%e7%94%a8-xz-%e5%8e%8b%e7%bc%a9%e6%a0%bc%e5%bc%8f/</link>
		<comments>http://www.isspy.com/fedora-livecd-%e6%8d%a2%e7%94%a8-xz-%e5%8e%8b%e7%bc%a9%e6%a0%bc%e5%bc%8f/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 18:14:35 +0000</pubDate>
		<dc:creator>liangsuilong</dc:creator>
				<category><![CDATA[业界资讯]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[xz]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=801</guid>
		<description><![CDATA[Fedora 开发者邮件列表宣布，即日起来 Nightly Compose 改用户 XZ 压缩格式，以提高压缩率，容纳更多的软件。 据了解，改用新的压缩格式以后，LiveCD 可以额外腾出多达 130MB 空间。因此有开发者提议集成 LibreOffice，因为办公套件大部分用户都是需要的，而且可以减轻软件源服务器的负担。可是这 130MB 的空间未必足够的，可能还是要移除更多的软件才行。 XZ 压缩格式原本是计划在 Fedora 14 引入的，但是内核迟迟没有引入稳定的 LZMA 压缩支持所以才推迟到 Fedora 15。可以预期的是 Fedora 15 是一个激动人心的版本，因为还有万众期待的 systemd。]]></description>
			<content:encoded><![CDATA[<p>Fedora 开发者邮件列表宣布，即日起来 Nightly Compose 改用户 XZ 压缩格式，以提高压缩率，容纳更多的软件。</p>
<p>据了解，改用新的压缩格式以后，LiveCD 可以额外腾出多达 130MB 空间。因此有开发者提议集成 LibreOffice，因为办公套件大部分用户都是需要的，而且可以减轻软件源服务器的负担。可是这 130MB 的空间未必足够的，可能还是要移除更多的软件才行。</p>
<p>XZ 压缩格式原本是计划在 Fedora 14 引入的，但是内核迟迟没有引入稳定的 LZMA 压缩支持所以才推迟到 Fedora 15。可以预期的是 Fedora 15 是一个激动人心的版本，因为还有万众期待的 systemd。</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2Ffedora-livecd-%25e6%258d%25a2%25e7%2594%25a8-xz-%25e5%258e%258b%25e7%25bc%25a9%25e6%25a0%25bc%25e5%25bc%258f%2F&title=Fedora+LiveCD+%E6%8D%A2%E7%94%A8+XZ+%E5%8E%8B%E7%BC%A9%E6%A0%BC%E5%BC%8F" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/fedora-livecd-%e6%8d%a2%e7%94%a8-xz-%e5%8e%8b%e7%bc%a9%e6%a0%bc%e5%bc%8f/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>较Cool的Conky主题</title>
		<link>http://www.isspy.com/%e8%be%83cool%e7%9a%84conky%e4%b8%bb%e9%a2%98/</link>
		<comments>http://www.isspy.com/%e8%be%83cool%e7%9a%84conky%e4%b8%bb%e9%a2%98/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 08:42:00 +0000</pubDate>
		<dc:creator>zwxie</dc:creator>
				<category><![CDATA[趣味分享]]></category>

		<guid isPermaLink="false">http://www.isspy.com/?p=793</guid>
		<description><![CDATA[这是5个很酷的Conky主题，使用它们不需要输入任何东西，只要下载、安装、运行就行。 Circles of imagination by ~clanlordus89 Suuuuny-conky by ~BigRZA Conky Popup by ~FezVrasta Conky Tiles by ~BigRZA]]></description>
			<content:encoded><![CDATA[<h2>这是5个很酷的Conky主题，使用它们不需要输入任何东西，只要下载、安装、运行就行。</h2>
<h2><a href="http://clanlordus89.deviantart.com/art/Circles-of-imagination-192930609" target="_blank">Circles of imagination</a><small> by ~<a href="http://clanlordus89.deviantart.com/" target="_blank">clanlordus89</a></small></h2>
<p style="text-align: center;"><a href="http://www.isspy.com/wp-content/uploads/2011/01/Suuuuny_conky_by_BigRZA.png.jpeg" rel="lightbox[793]"><img class="aligncenter size-full wp-image-794" title="Suuuuny_conky_by_BigRZA.png" src="http://www.isspy.com/wp-content/uploads/2011/01/Suuuuny_conky_by_BigRZA.png.jpeg" alt="" width="679" height="424" /></a></p>

<h2><a href="http://bigrza.deviantart.com/art/Suuuuny-conky-153331007" target="_blank">Suuuuny-conky</a> <small>by ~<a href="http://bigrza.deviantart.com/" target="_blank">BigRZA</a></small></h2>
<a href="http://www.isspy.com/wp-content/uploads/2011/01/conky-popup-500x312.png" rel="lightbox[793]"><img class="aligncenter size-full wp-image-795" title="conky-popup-500x312" src="http://www.isspy.com/wp-content/uploads/2011/01/conky-popup-500x312.png" alt="" width="500" height="312" /></a>
<h2><a href="http://fezvrasta.deviantart.com/art/Conky-Popup-Fixed-193970985" target="_blank">Conky Popup</a><small> by ~<a href="http://fezvrasta.deviantart.com/" target="_blank">FezVrasta</a></small></h2>
<a href="http://www.isspy.com/wp-content/uploads/2011/01/Screenshot2-500x312.png" rel="lightbox[793]"><img class="aligncenter size-full wp-image-796" title="Screenshot2-500x312" src="http://www.isspy.com/wp-content/uploads/2011/01/Screenshot2-500x312.png" alt="" width="500" height="312" /></a>
<h2><a href="http://bigrza.deviantart.com/art/conky-tiles-164294018" target="_blank">Conky Tiles</a><small> by ~<a href="http://bigrza.deviantart.com/" target="_blank">BigRZA</a></small></h2>
<a href="http://www.isspy.com/wp-content/uploads/2011/01/circles_of_imagination_by_clanlordus89-d36v67l.png" rel="lightbox[793]"><a href="http://www.isspy.com/wp-content/uploads/2011/01/circles.png" rel="lightbox[793]"><img class="aligncenter size-full wp-image-798" title="circles" src="http://www.isspy.com/wp-content/uploads/2011/01/circles.png" alt="" width="374" height="622" /></a>
</a><p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.isspy.com%2F%25e8%25be%2583cool%25e7%259a%2584conky%25e4%25b8%25bb%25e9%25a2%2598%2F&title=%E8%BE%83Cool%E7%9A%84Conky%E4%B8%BB%E9%A2%98" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.isspy.com/%e8%be%83cool%e7%9a%84conky%e4%b8%bb%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

