<?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>Mr. 21</title>
	<atom:link href="http://mr21.in/feed" rel="self" type="application/rss+xml" />
	<link>http://mr21.in</link>
	<description>KunMing &#124; System Administrator &#124; Blogger &#124; G Fans &#124; OS X</description>
	<lastBuildDate>Sun, 22 Aug 2010 13:34: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>
	<atom:link rel='hub' href='http://mr21.in/?pushpress=hub'/>
		<item>
		<title>MacBook Pro &#8211; Fan Control</title>
		<link>http://mr21.in/2010-08/macbook-pro-fan-control.html</link>
		<comments>http://mr21.in/2010-08/macbook-pro-fan-control.html#comments</comments>
		<pubDate>Sun, 22 Aug 2010 13:33:01 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Fan]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[MBP]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=365</guid>
		<description><![CDATA[这篇文章主要介绍了在Mac OS X、Ubuntu Lucid和Windows 7三个系统平台下对MacBook Pro（以下简称：MBP）的风扇控制，因为不知道为什么的原因，我个人和不少人的MBP都表现出风扇调速迟钝的问题，通常... ]]></description>
			<content:encoded><![CDATA[<p>这篇文章主要介绍了在Mac OS X、Ubuntu Lucid和Windows 7三个系统平台下对MacBook Pro（以下简称：MBP）的风扇控制，因为不知道为什么的原因，我个人和不少人的MBP都表现出风扇调速迟钝的问题，通常都是2000RPM左右，然后等到机器超过90摄氏度后风扇开始提速到6000RPM进行散热，但这个肯定不是我们需要的效果，我们要的是，要么自己控制，要么自动调整。</p>
<h3>Mac OS X</h3>
<div class="imgdivimg2"><a href="http://www.zooomr.com/photos/cmb/9406199/" title="Photo Sharing"><img src="http://static.zooomr.com/images/9406199_0937fd75d4_m.jpg" width="240" height="81" /></a></div>
<p>这个身为MBP原生的，与硬件契合度最高的系统同样存在风扇自动调整的问题，至少在我重置了N次SMC的情况依然还是只能达到90度附近才会提速，于是只能用软件来对付了，我个人觉得效果比较好的是<strong>Fan Control</strong>。</p>
<p>名称：Fan Control<br />
系统：Leopard, Snow Leopard<br />
下载：<a href="http://www.lobotomo.com/products/FanControl/">http://www.lobotomo.com/products/FanControl/</a></p>
<p>安装之后，会在“系统偏好设置”里面增加一个叫“Fan Control”的设置面板。<br />
<img src="http://www.lobotomo.com/products/FanControl/images/screenshot.gif" alt="" /><br />
进去之后三项设置，<br />
Base Speed，初始速度，系统默认是2000RPM，系统启动之后会以这个初始速度为基准；<br />
Lower Threshold，温度下限阀值，这个是配合Base Speed工作的，在这个温度下，转速是Base Speed；<br />
Upper Threshold，温度上限阀值，这个是值达到时系统将以最高转速跑风扇，我的MBP 13是6200。<br />
风扇的转速会自动在Lower和Upper之间自动调整。<span id="more-365"></span></p>
<h3>Ubuntu Lucid (10.04)</h3>
<p>遇到Linux有个好处，直接修改配置文件就行，可以省掉软件了，但是这个没法进行曲线调速了，所以通常我都是直接把速度一步到位直接上到5500RPM，喜欢6000RPM的也行，反正风扇的作用就是处理积热嘛，往高处提一下没有坏处的~</p>
<p>操作如下：<br />
开启终端（Terminal），输入以下指令，之后需要输入你当前用户的密码，然后回车，</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td 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;">sh</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;echo 5000 &gt; /sys/devices/platform/applesmc.768/fan1_min&quot;</span></pre></td></tr></table></div>

<p>通过修改fan1_min中的数字“1”，可以调整各个不同风扇的转速，因为MBP 13只有一个风扇，所以也只有fan1，像MBP 15这一类的，可以分别调整fan1和fan2的转速等。并且每次开机的话系统都会自动重置，所以如果需要每次开机都保持一个转速的话，可以自行修改rc脚本。</p>
<h3>Windows 7</h3>
<p>在Windows下也是需要依靠第三方软件的，据说是有类似于OSX下Fan Control那样的自动调速软件，不过我个人还是比较喜欢把速度调整到5500左右，一次性解决问题。软件叫“Mac/SMC Fan Control for Windows (+ Temp) ”。</p>
<p>名称：Mac/SMC Fan Control for Windows (+ Temp)<br />
平台：32-bit MS Windows (NT/2000/XP), 64-bit MS Windows, Vista, WinXP.<br />
下载：<a href="http://sourceforge.net/projects/macfan/">http://sourceforge.net/projects/macfan/</a></p>
<p>官方没有提到Win7，但是我的Win7-64bit也没有问题的。这是一个基于CLI（CommandLine Interface，命令行界面）的程序，而且同时还需要管理员权限，还要带参数，使用起来稍微有点麻烦，我个人是这么处理的：</p>
<ol>
<li>首先将解压缩后的文件放在\windows\mf目录；</li>
<li>同时在目录里面增加一个批处理文件<strong>mf.cmd</strong>，内容如下：

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="txt" style="font-family:monospace;">@echo off
@echo Input the fan speed (2000-6200): 
set /p speed=
C:\Windows\mf\MacFanx64.exe %speed%</pre></td></tr></table></div>

</li>
<li>之后按住Alt键，把<strong>mf.cmd</strong>拖到桌面上，之后在mf.cmd上右键，选择“属性”，选择“快捷方式”页面，点击“高级”，之后把“以管理员权限运行”勾上。</li>
<li>双击桌面上的“mf.cmd &#8211; 快捷方式”，之后输入你想要调整的风扇转速，回车即可。</li>
</ol>
<p>因为我的是MBP 13，只有一个风扇，所以只需要提供一个参数，如果有多个风扇的话，请依据自己的需要进行修改，按照Mac/SMC Fan Control for Windows (+ Temp) 的说明文件提到的，用法大概如下：</p>
<ul>MacFan.exe &lt;Desired RPM for Fan 1> &lt;Desired RPM for Fan 2 (if applicable)> &lt;Desired RPM for Fan 3 (if applicable)> &lt;Desired RPM for Fan 4 (if applicable)></ul>
<p>基本上，还是不太建议在MBP上使用其它系统，毕竟efi现在还是不能被其它系统较好地支持。不过像我这种爱折腾的人和不少披着MBP的皮WIN的心的人，这样的速度调整还是有必要的，希望这篇文章能帮到你。</p>
<p>引用参考：<br />
Fan Control: <a href="http://www.lobotomo.com/products/FanControl/">http://www.lobotomo.com/products/FanControl/</a><br />
MacFan: <a href="http://sourceforge.net/projects/macfan/">http://sourceforge.net/projects/macfan/</a><br />
Ubuntu Forum: <a href="http://ubuntuforums.org/showthread.php?t=1378663">http://ubuntuforums.org/showthread.php?t=1378663</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-08/macbook-pro-fan-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何重置Mac OS X的网络配置</title>
		<link>http://mr21.in/2010-08/reset-mac-os-x-network-configuration-factory-default.html</link>
		<comments>http://mr21.in/2010-08/reset-mac-os-x-network-configuration-factory-default.html#comments</comments>
		<pubDate>Tue, 03 Aug 2010 02:23:42 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[網際網路]]></category>
		<category><![CDATA[MBP]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Reset]]></category>
		<category><![CDATA[重置]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=363</guid>
		<description><![CDATA[由于Mac OS X的智能化，大多数情况我们是不需要对系统配置进行过多的干涉的，但是当我们的网络设备及各种网络接口配置不断增加的时候（例如我除了自带的Airport、以太网之外，还有3个VPN，... ]]></description>
			<content:encoded><![CDATA[<p>由于Mac OS X的智能化，大多数情况我们是不需要对系统配置进行过多的干涉的，但是当我们的网络设备及各种网络接口配置不断增加的时候（例如我除了自带的Airport、以太网之外，还有3个VPN，两个PPPoE，一个Modem over Serial Port及一个Kindle USBNetwork的接口），而不同的配置多了有可能会导致一些奇怪的网络问题，这个时候我们可以选择将Mac OS X的网络配置重置到出厂设置的状态（其实就是系统自动检测设备并重新生成配置），这样你的网络配置部分就跟全新的Mac OS X电脑一样了。</p>
<p>很简单，只需要重命名以下这个文件，然后重启即可。<br />
将</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Preferences<span style="color: #000000; font-weight: bold;">/</span>SystemConfiguration<span style="color: #000000; font-weight: bold;">/</span>preferences.plist</pre></div></div>

<p>改成</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Preferences<span style="color: #000000; font-weight: bold;">/</span>SystemConfiguration<span style="color: #000000; font-weight: bold;">/</span>preferences.plist.bk</pre></div></div>

<p>然后重启。</p>
<p>具体操作流程如下：<br />
选择Dock上的“应用程序”->“实用工具”->“终端”，然后输入以下命令</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">MBP:~ <span style="color: #000000;">21</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Preferences<span style="color: #000000; font-weight: bold;">/</span>SystemConfiguration<span style="color: #000000; font-weight: bold;">/</span>preferences.plist <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Preferences<span style="color: #000000; font-weight: bold;">/</span>SystemConfiguration<span style="color: #000000; font-weight: bold;">/</span>preferences.plist.bk
Password: （此处输入你当前的密码，无显示，输完回车即可。）</pre></td></tr></table></div>

<p>回车后输入你当前用户的密码，回车，然后重启你的Mac OS X即可。</p>
<p><strong>请注意，你的网络配置会因此丢失，如果有什么特殊的配置，请自行记录。<br />
提示：这个办法无法解决部分OS X通过Airport连接VPN但是无法访问内网的情况。</strong></p>
<p>引用来源：<br />
Steve Jamesson | <a href="http://stevejamesson.com/2008/10/01/reset-mac-os-x-network-configuration-factory-default-airport-interface-disappeared/">Reset Mac OS X network configuration to factory default</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-08/reset-mac-os-x-network-configuration-factory-default.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>答疑：域名不能添加A记录（国内）</title>
		<link>http://mr21.in/2010-07/qa-domain-control-panel-can-not-add-new-record-in-china.html</link>
		<comments>http://mr21.in/2010-07/qa-domain-control-panel-can-not-add-new-record-in-china.html#comments</comments>
		<pubDate>Wed, 21 Jul 2010 07:48:39 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[網際網路]]></category>
		<category><![CDATA[BlogBus]]></category>
		<category><![CDATA[CNNIC]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=362</guid>
		<description><![CDATA[以后我会根据偶尔搜索引擎过来的关键词进行特别的回答，这是第一篇，请多指教！ Q: 我在国内的注册的域名，为什么最近莫名其妙的不能在域名的控制面板里面添加新的记录了？ A: 好吧，还... ]]></description>
			<content:encoded><![CDATA[<p>以后我会根据偶尔搜索引擎过来的关键词进行特别的回答，这是第一篇，请多指教！</p>
<blockquote><p><strong>Q:</strong> 我在国内的注册的域名，为什么最近莫名其妙的不能在域名的控制面板里面添加新的记录了？<br />
<strong style="float:left; height:33pt; margin-right:4pt;">A:</strong> 好吧，还是那个经典的话“建设具有中国特色的社会主义网络”，于是我们有一个东西叫“<strong>备案</strong>”，简单的说，只要是在国内工商注册过的域名/互联网服务商就必须遵守国内的游戏规则，所以，如果出现以上情况，请联系你的注册商客服/代理，询问需要提供什么资料才能恢复使用。
</p></blockquote>
<p>就我个人在易名网的体验来说，目前CN域名想要正常使用需要满足以下条件：</p>
<ol>
<li>域名的主办人不允许为“个人”；</li>
<li>向域名注册商提交资料备案，包括营业执照副本复印件、联络人身份证复印件、备案申请单；</li>
<li>进行域名的ICP备案，也就说你需要买一个国内的空间。</li>
</ol>
<p>我的一个CN域名由于缺少第三个条件，目前的情况为“<strong>该域名已被注册管理机构暂停解析</strong>”。</p>
<p>一般来说，第一步是禁用你的域名控制面板的使用，也就说不能添加记录了，第二步是CNNIC停用你的域名，例如《<a href="http://mr21.in/2010-01/blogbus-banned-emergency-solution.html">BlogBus被封应急方案</a>》里面遇到的那种情况 …… 也许情况不都是这样，但是我的确实如此。</p>
<p>所以，Mr. 21一直建议，不要注册CN域名，不要在国内注册域名。域名注册有风险，入行须谨慎。</p>
<p>延伸阅读：<br />
《<a href="http://mr21.in/2009-12/recommendations-about-domain-name-registration-in-china.html">关于域名注册的建议</a>》<br />
《<a href="http://mr21.in/2010-01/the-virtual-host-guide-no-3-domain-transfer.html">虚拟主机答疑之「域名转移」</a>》</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-07/qa-domain-control-panel-can-not-add-new-record-in-china.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>解决SSH断线后的会话恢复</title>
		<link>http://mr21.in/2010-07/using-screen-when-connecting-to-linux-servers-with-ssh.html</link>
		<comments>http://mr21.in/2010-07/using-screen-when-connecting-to-linux-servers-with-ssh.html#comments</comments>
		<pubDate>Fri, 09 Jul 2010 06:48:46 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=358</guid>
		<description><![CDATA[最近从vpsee\酷胖等博客看到的信息，购买了好几个廉价的VPS在学习，于是就产生了不少基于SSH的困扰，而掉线重连的会话丢失算是一个 …… 感谢GG大神的帮助，我找到了这个工具：screen。 简单... ]]></description>
			<content:encoded><![CDATA[<p>最近从<a href="http://www.vpsee.com/">vpsee</a>\<a href="http://www.whcoupon.com/">酷胖</a>等博客看到的信息，购买了好几个廉价的VPS在学习，于是就产生了不少基于SSH的困扰，而掉线重连的会话丢失算是一个 ……</p>
<p>感谢GG大神的帮助，我找到了这个工具：<strong>screen</strong>。<br />
简单的说，就是这个工具会接管你当前的console会话，然后当前控制台显示的输入/输出就由它负责，如果你掉线后，只要重新启用screen，就是恢复到之前的状态。大概的操作流程如下：</p>
<ol>
<li>以SSH的方式连接你的服务器</li>
<li>安装Screen；<br />
	<strong>debian/ubuntu:</strong> apt-get install screen<br />
	<strong>fedora/centos:</strong> yum install screen</li>
<li>输入<strong style="color:blue;">screen</strong>接管当前会话；</li>
<li>进行自己需要的任何操作；</li>
<li>SSH掉线；</li>
<li>重连SSH并输入<strong style="color:blue;">screen -r</strong>恢复会话；</li>
<li>可以在.bash_profile里加一行<br />
<span style="color:blue;">alias r=&#8217;screen -d `screen -ls |grep Attached|cut -f2|cut -f1 -d&#8221;.&#8221;`;screen -r `screen -ls |grep Detached|cut -f2|cut -f1 -d&#8221;.&#8221;`&#8217;</span><br />
能够方便的切回screen窗口（假设只开了一个screen）。</li>
</ol>
<p>恩，不是啥复杂的东西，但是能解决不小的困扰。</p>
<p>内容引用参考：<br />
雨中的高速公路 &#8211; 《<a href="http://www.rainway.org/2008/05/22/using-screen-when-connecting-to-linux-servers/">在ssh终端下如何解决断线带来的困扰</a>》。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-07/using-screen-when-connecting-to-linux-servers-with-ssh.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>可信的公用DNS</title>
		<link>http://mr21.in/2010-06/reliable-public-dns.html</link>
		<comments>http://mr21.in/2010-06/reliable-public-dns.html#comments</comments>
		<pubDate>Sun, 20 Jun 2010 05:10:47 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[網際網路]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[GoogleDNS]]></category>
		<category><![CDATA[Hosts]]></category>
		<category><![CDATA[NortonDNS]]></category>
		<category><![CDATA[OpenDNS]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=356</guid>
		<description><![CDATA[从Mr. 21博客里面为数不多的几篇关于Hosts文件应用的文章（《DropBox》、《BlogBus被封应急方案》等）来看，我们的网络是充满刺激和不明真相的，随时都不知道自己访问的网站到底存不存在，也... ]]></description>
			<content:encoded><![CDATA[<p>从Mr. 21博客里面为数不多的几篇关于Hosts文件应用的文章（《<a href="http://mr21.in/2010-05/dropbox.html">DropBox</a>》、《<a href="http://mr21.in/2010-01/blogbus-banned-emergency-solution.html">BlogBus被封应急方案</a>》等）来看，我们的网络是充满刺激和不明真相的，随时都不知道自己访问的网站到底存不存在，也不太敢确定自己看到的是不是真的，于是我们需要一些手段来解决，其中之一就是使用<strong>可信的公用DNS（Public DNS）</strong>。</p>
<p>下面列举目前网上流行的比较可靠的三个DNS，使用哪个，看个人爱好了：</p>
<ul style="height:60px;">
<div style="float:left;">
<li>Google Public DNS </li>
<li>Open DNS </li>
<li>Norton DNS </li>
</div>
<div style="float:left; margin-left:9pt;">
|  <strong>8.8.8.8 / 8.8.4.4</strong><br />
|  <strong>208.67.222.222 / 208.67.220.220</strong><br />
|  <strong>198.153.192.1 / 198.153.194.1</strong>
</div>
</ul>
<p>但是，我们知道另外有种方式叫“DNS污染”，就是在你获得电脑获取正确的域名解析结果前，墙先把一个假的结果反馈给你，于是电脑便会忽略了那个来得比较慢的正确结果，也就说，我们单纯使用一些可信的公用DNS还是不够的，于是还需要一些修改过的小程序来解决这样的问题。</p>
<ul>
程序名称：Anti Dns Pollution<br />
程序作者：Ying David ( <a href="http://www.google.com/profiles/lehui99">http://www.google.com/profiles/lehui99</a> )<br />
开发语言：JAVA<br />
授权方式：开源<br />
下载地址：<a href="http://www.williamlong.info/archives/2184.html">http://www.williamlong.info/archives/2184.html</a></p>
<p>下面说一下这个小程序的具体工作流程：首先程序启动后，会从文本文件dnsfilter.properties中读取配制，然后去一个不存在的DNS服务器——但这个IP地址却是国外的——中进行DNS查询被劫持的域名，然后返回的IP地址就是被劫持的IP，被记录下来，之后正常的DNS查询中，就自动把这些IP地址过滤了。这个程序以后会不定期更新，或许也会出.NET版本，请在我的Google Reader上关注更新。</p>
<blockquote><p>
对于高级用户，可以手动用文本编辑器修改配置文件dnsfilter.properties：</p>
<ul>
BindToIP：小程序启动后作为DNS服务期绑定53端口，这里指定绑定的IP地址<br />
DnsServer：国外的DNS服务器，可以设置为OpenDNS或Google DNS服务器的IP地址<br />
ResponseTimeout：DNS查询返回超时的时间（毫秒）<br />
TestDnsServer：测试DNS服务器，请指定一个不存在的DNS服务期，但要求IP是国外的<br />
TestRespTimeout：测试DNS服务器的查询返回超时时间（毫秒），也就是DNS劫持的旁路回复超时时间<br />
TestCount：测试DNS服务器的次数，为了得到所有被劫持的IP地址，需要一定的测试次数<br />
小程序的执行文件和源代码在同一个压缩包内，请点上面的链接下载（含源代码）。</ul>
</blockquote>
</ul>
<p>好吧，看到这里，基本上应该是可以保持一个稍微正常的网络使用环境了。</p>
<p>部分内容引用自：</p>
<div style="height:90px;">
<div style="float:left; width:140px;">
月光博客<br />
Google Public DNS<br />
Open DNS<br />
Norton DNS
</div>
<div>
<a href="http://www.williamlong.info/archives/2184.html">http://www.williamlong.info/archives/2184.html</a><br />
<a href="http://code.google.com/speed/public-dns/">http://code.google.com/speed/public-dns/</a><br />
<a href="http://www.opendns.com/">http://www.opendns.com/</a><br />
<a href="http://www.nortondns.com/">http://www.nortondns.com/</a>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-06/reliable-public-dns.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 发布</title>
		<link>http://mr21.in/2010-06/wordpress-3-0-release.html</link>
		<comments>http://mr21.in/2010-06/wordpress-3-0-release.html#comments</comments>
		<pubDate>Sat, 19 Jun 2010 15:59:42 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[业界时讯]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=354</guid>
		<description><![CDATA[近日WordPress的大版本3.0发布了，大概有如下改进（特性描述引用自：我爱水煮鱼博客）： WordPress 和 WordPress MU 已经合并，现在一个 WordPress 的安装就能多个用户多个博客。 WordPress 3.0 新推出了 ... ]]></description>
			<content:encoded><![CDATA[<p>近日WordPress的大版本3.0发布了，大概有如下改进（特性描述引用自：<a href="http://fairyfish.net/2010/06/19/wordpress-30/">我爱水煮鱼博客</a>）：</p>
<ul>
<li>WordPress 和 WordPress MU 已经合并，现在一个 WordPress 的安装就能多个用户多个博客。</li>
<li>WordPress 3.0 新推出了 “Twenty Ten” 的默认主题，它包含了现在 WordPress 所有的功能。</li>
<li>新的菜单管理系统，可以让你创建包含由日志，页面，分类，标签和其他链接组成的完全自定义菜单。</li>
<li>自定义 header和背景颜色或者图片的 API。</li>
<li>WordPress 后台每个界面的帮助标签下都有上下文帮助。</li>
<li>现在全新安装的 WordPress 可以自定义帐号和密码。</li>
<li>在编辑主题的时候会自动进入维护模式</li>
<li>支持短连接。</li>
<li>支持和改进了自定义日志类型和自定义分类系统。</li>
<li>一个更轻快颜色的后台，让你更加关注你的内容。</li>
<li>补充：刚刚发现Login页面输错密码居然会像苹果那样左右地摇头晃脑~</li>
</ul>
<p>Mr. 21博客升级后，遇到了一点小问题，在New Post的时候，因为21使用的单栏的编辑布局，Publish模块没有出来，21还以为是做了什么特殊的改进，结果切换一下两栏布局后再切换回来就好了。</p>
<p>目前我使用的主题和插件均没有遇到什么问题，基本上按照WP的指示升级到最新版本就可以了。<br />
我使用的插件列表如下，列出仅供参考：<br />
<span id="more-354"></span></p>
<ul>
<li><a href="http://akismet.com/" target="_blank" title="Visit plugin homepage">Akismet</a> v2.3.0</li>
<li><a href="http://www.mittineague.com/dev/co.php" target="_blank" title="Visit plugin homepage">Clean Options</a> v1.3.2</li>
<li><a href="http://www.arnebrachhold.de/redir/sitemap-home/" target="_blank" title="Visit plugin homepage">Google XML Sitemaps</a> v3.2.4</li>
<li><a href="http://yanfeng.org/blog/wordpress/kit" target="_blank" title="Visit plugin homepage">中文 WordPress 工具箱</a> v1.2</li>
<li><a href="http://mobilepress.co.za" target="_blank" title="Visit plugin homepage">MobilePress</a> v1.1.5</li>
<li>PuSHPress v0.1.6</li>
<li><a href="http://www.wiso.cz/2006/09/20/my-first-wordpress-plugin-wp-plugin-list-10/" target="_blank" title="Visit plugin homepage">Plugin List</a> v2.3</li>
<li><a href="http://www.geekwithlaptop.com/projects/clean-archives/" target="_blank" title="Visit plugin homepage">SRG Clean Archives</a> v4.3</li>
<li><a href="http://txfx.net/code/wordpress/subscribe-to-comments/" target="_blank" title="Visit plugin homepage">Subscribe To Comments</a> v2.1.2</li>
<li><a href="http://redmine.beapi.fr/projects/show/simple-tags" target="_blank" title="Visit plugin homepage">Simple Tags</a> v1.8</li>
<li><a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank" title="Visit plugin homepage">WP-Syntax</a> v0.9.8</li>
<li><a href="http://wordpress.org/extend/plugins/wp-time-machine/" target="_blank" title="Visit plugin homepage">wp Time Machine</a> v1.9.12</li>
<li><a href="http://www.elvery.net/drzax/more-things/wordpress-footnotes-plugin/" target="_blank" title="Visit plugin homepage">WP-Footnotes</a> v4.2</li>
<li><a href="http://fairyfish.net/2007/09/12/wordpress-23-related-posts-plugin/" target="_blank" title="Visit plugin homepage">WordPress Related Posts</a> v1.2</li>
<li><a href="http://www.ilfilosofo.com/blog/wp-db-backup" target="_blank" title="Visit plugin homepage">WordPress Database Backup</a> v2.2.2</li>
<li><a href="http://wordpress.org/extend/plugins/wp-pagenavi/" target="_blank" title="Visit plugin homepage">WP-PageNavi</a> v2.73</li>
<li><a href="http://lesterchan.net/portfolio/programming/php/" target="_blank" title="Visit plugin homepage">WP-PostViews</a> v1.50</li>
</ul>
<p>对于近期没有更新21表示非常抱歉！<br />
学习的越多才发现自己知道的越少，以至于都不太有勇气下笔写点什么了，真是没办法，只能尽力调整了，再加上工作上的一些比较繁杂的事情堆积到一起所以导致没有更新，抱歉了，我的访客们。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <strong>Update: Jun 26th, 2010</strong> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
呃，不知道为什么我的中文 WordPress 工具箱比较与众不同，不知道是被神改过还是我自己无意中以前搞定了，实际上中文 WordPress 工具箱需要有如下的修改才能在WP3.0中正常工作，请跳转：<br />
阿辛的网志：《<a href="http://xinple.org/?p=391">中文WordPress工具箱在3.0下失效的修复方法</a>》<br />
顺便附带我的工具箱文件供大家参考：<a href="http://mr21.in/wp-content/plugins/mulberrykit.php.source">http://mr21.in/wp-content/plugins/mulberrykit.php.source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-06/wordpress-3-0-release.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>DropBox</title>
		<link>http://mr21.in/2010-05/dropbox.html</link>
		<comments>http://mr21.in/2010-05/dropbox.html#comments</comments>
		<pubDate>Sat, 15 May 2010 15:35:41 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[網際網路]]></category>
		<category><![CDATA[DropBox]]></category>
		<category><![CDATA[Hosts]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=352</guid>
		<description><![CDATA[多的不用说，你明白的。 Windows，使用记事本（WinXP以上，请找到“记事本”然后右键，用管理员方式运行），然后选择“文件->打开”，输入 1 %windir%\system32\drivers\etc\hosts Unix/Linux，请打开Termina... ]]></description>
			<content:encoded><![CDATA[<p>多的不用说，你明白的。</p>
<p>Windows，使用记事本（WinXP以上，请找到“记事本”然后右键，用管理员方式运行），然后选择“文件->打开”，输入</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">%windir%\system32\drivers\etc\hosts</pre></td></tr></table></div>

<p>Unix/Linux，请打开Terminal（终端），输入</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">sudo nano /etc/hosts</pre></td></tr></table></div>

<p>苹果Mac OS X，打开“实用工具”，点击“终端”，输入</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts</pre></td></tr></table></div>

<p>然后，在你打开的文件的最末尾，输入下面一行，可以暂时解决这个问题</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">174.36.30.71    www.dropbox.com dropbox.com</pre></td></tr></table></div>

<p>目前暂时发现的替代品，按我的条件筛选 － 需要满足Mac OS X和Windows之间跨平台，有以下服务：</p>
<blockquote><p>
SpiderOAK &#8211; <a href="http://spideroak.com">http://spideroak.com</a> &#8211; 行规免费2G，我喜欢这样风格的Page，且支持众多Linux发行版。<br />
MozyHome &#8211; <a href="https://mozy.com/home/free">https://mozy.com/home/free</a> &#8211; 行规免费2G，据说跟大佬EMC有一腿，上传速度不错。<br />
SugarSync &#8211; <a href="https://www.sugarsync.com">https://www.sugarsync.com</a> &#8211; 行规免费2G，跨平台跨到手机上去了……
</p></blockquote>
<p>以上链接均<strong>不包含</strong>推介，原汁原味，放心点击。Btw, idrive.com的服务慎用，跨平台的同时，连帐号都是分立的。</p>
<p>这是一个跟互联网作对的国度。</p>
<p>延伸阅读：<br />
《<a href="http://www.williamlong.info/archives/2173.html">Dropbox无法访问</a>》 － 月光博客<br />
《<a href="http://www.williamlong.info/archives/2174.html">纪念Dropbox君</a>》 － 月光博客</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-05/dropbox.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Name的邮件回复</title>
		<link>http://mr21.in/2010-04/mail-reply-from-name-com-about-promo-code.html</link>
		<comments>http://mr21.in/2010-04/mail-reply-from-name-com-about-promo-code.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 06:24:14 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[个人感官]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Domain Name]]></category>
		<category><![CDATA[Godaddy]]></category>
		<category><![CDATA[Name.com]]></category>
		<category><![CDATA[Promo]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=349</guid>
		<description><![CDATA[在四月优惠码的PO里面，我提到了我会发邮件向name说明我国人民无法访问推特和脸书，希望他们能在邮件里面提供一些优惠码给我，然后今天他们回邮了，告诉我说本月没有任何优惠码，以下... ]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://mr21.in/2010-04/name-com-promo-code-april-2010.html">四月优惠码</a>的PO里面，我提到了我会发邮件向name说明我国人民无法访问推特和脸书，希望他们能在邮件里面提供一些优惠码给我，然后今天他们回邮了，告诉我说本月没有任何优惠码，以下是整个过程的邮件对话并会持续更新直到问题解决（英文水平不是很好，请多包涵）：</p>
<p><strong>Update: Apr 5th</strong>, 请<a href="http://mr21.in/2010-04/mail-reply-from-name-com-about-promo-code.html#up45">点击</a>。<br />
<strong>Update: Apr 9th</strong>, 回答访客<a href="http://www.vsisi.com/">Vsisi</a>提到的一些疑问，同时也说明我这次「找茬」的理由，请<a href="http://mr21.in/2010-04/mail-reply-from-name-com-about-promo-code.html#up49">点击</a>。</p>
<blockquote><p>
RE: Get Promo Code. [ ref:00D8csHM.50089VlG3:ref ]‏<br />
From: 	no-reply@salesforce.com on behalf of Name.com Support (support@name.com)<br />
Sent: 	Saturday, April 03, 2010 3:56:21 PM<br />
To: 	live21@msn.com (live21#msn.com)</p>
<p>Hello,</p>
<p>Thank you for contacting us. We do not have any promotional codes available yet this month.  Please check back with us in a couple of weeks.</p>
<p>Thank you for choosing Name.com<br />
Erika<br />
Name.com</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212; Original Message &#8212;&#8212;&#8212;&#8212;&#8212;<br />
From: Benny Chen [live21#msn.com]<br />
Sent: 4/2/2010 7:07 PM<br />
To: support@name.com<br />
Subject: RE: Get Promo Code.    [ ref:00D8csHM.50089VlG3:ref ]</p>
<p>Hello Zach,</p>
<p>I&#8217;m sorry for I can&#8217;t visit twitter and facebook in our country, I think you know it, I&#8217;m in China, so Can you give me some promo code for domain name registrations in this mail?</p>
<p>Thanks a lot!</p>
<p>- Benny</p>
<p>> Date: Fri, 2 Apr 2010 14:52:48 +0000<br />
> From: support@name.com<br />
> To: live21#msn.com<br />
> Subject: RE: Get Promo Code.    [ ref:00D8csHM.50089VlG3:ref ]<br />
><br />
> Hello:<br />
><br />
> The best way to find out information on upcoming promotions or specials is to follow us on Facebook or Twitter:<br />
><br />
> Facebook: http://www.facebook.com/pages/Namecom/40529942806<br />
><br />
> Twitter: http://twitter.com/namedotcom<br />
><br />
> Please let us know if you have any further questions and thank you for choosing Name.com!<br />
><br />
> Regards,<br />
> Zach<br />
> Name.com<br />
> support@Name.com<br />
><br />
> &#8212;&#8212;&#8212;&#8212;&#8212; Original Message &#8212;&#8212;&#8212;&#8212;&#8212;<br />
> From: Benny Chen [live21#msn.com]<br />
> Sent: 4/1/2010 9:22 PM<br />
> To: support@name.com<br />
> Subject: Get Promo Code.<br />
><br />
> Hi, -<br />
><br />
> Can you give me some promo code for domains register in Name.com at this month?<br />
><br />
> Thanks a lot!<br />
><br />
> &#8211; Benny
</p></blockquote>
<p>相比GoDaddy每次都不遗余力的给客户SPAM优惠码，NAME的态度在我看来现在是非常的傲慢了，明明是有公布优惠码的，但是因为我不能访问Twitter和Facebook而告诉我没有任何优惠，这样欺骗用户的用心何在？费解。<br />
我已经继续发邮件质问他们为什么骗我了，请静候更新。</p>
<p>P.S, Blogfocus.net转入GD成功。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<span id="more-349"></span><br />
<strong>Update: Apr 5th, 2010</strong><a name="up45"></a><br />
给我回邮件了，这次说不是要骗我，而是优惠码刚刚生效，多得不说了，请自行<a href="http://twitter.com/namedotcom/status/11448868896">查看这里</a>（需翻墙）和以下邮件。<br />
一定程度上来说，Name这样的行为让我降低了对他们的信任，以后持米还是要多围观一下。</p>
<blockquote><p>
RE: Get Promo Code. [ ref:00D8csHM.50089VlG3:ref ]‏<br />
From: 	no-reply@salesforce.com on behalf of Name.com Support (support@name.com)<br />
Sent: 	Sunday, April 04, 2010 3:34:25 PM<br />
To: 	live21@msn.com (live21@msn.com)</p>
<p>Hello,</p>
<p>Thank you for your reply.  I apologize for the inconvenience.  I did not mean to lie to you, the promotional codes were not available yesterday but they are now, Please take advantage of the current promotional code we have available:  </p>
<p>ALLABOUTU</p>
<p>$7.99 .ME registration<br />
$14.99 .ME renewal<br />
$14.99 .ME transfer</p>
<p>Please do not hesitate to contact us if you have additional questions or concerns. We’re happy to help.</p>
<p>Thank you for choosing Name.com,<br />
Erika<br />
Name.com<br />
support@name.com</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212; Original Message &#8212;&#8212;&#8212;&#8212;&#8212;<br />
From: Benny Chen [live21@msn.com]<br />
Sent: 4/4/2010 12:19 AM<br />
To: support@name.com<br />
Subject: RE: Get Promo Code.    [ ref:00D8csHM.50089VlG3:ref ]</p>
<p>Hello,</p>
<p>Yesterday,<br />
My friend (He is at US now) tell me you&#8217;re have a promo code for .me regs/trans/renew, why you lie to me?</p>
<p>- Benny
</p></blockquote>
<p>Twitter的内容我截图了，上文连接仅供追溯，请围观下图，注意日期。</p>
<blockquote><p><a href="http://www.zooomr.com/photos/cmb/9042916/" title="Photo Sharing"><img src="http://static.zooomr.com/images/9042916_eac183aa31.jpg" width="500" height="253" alt="屏幕快照 2010-04-05 上午09.00.49" /></a></p></blockquote>
<p>我已经提供了截图回邮了，希望他们提供一个合理的解释。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>Update: Apr 9th, 2010</strong><a name="up49"></a><br />
访客Vsisi在留言中提到以下意见：</p>
<blockquote>
<ol>
<li>name.com优惠的确是很少，但是和GD各有各的有时，胡戈戈有一篇文章写过对比</li>
<li>不知道为什么你在索要promotional code的时候重点说明因为在中国无法访问Twitter，和你要promotion code关系不大。最后你又翻墙截图Twitter，说明还是可以上的。</li>
<li>其实你可以以试试翻墙所看到的Promotional code，只要能用。并不能说明name.com对中国用户有歧视。</li>
</ol>
</blockquote>
<p>21的完整答复如下：</p>
<blockquote>
<ol>
	@vsisi:</p>
<li>这个不怪他们，我选择name的时候就知道它优惠少了。只是牢骚一下而已。</li>
<li>不是我「在索要的时候重点说明不能访问推特和脸书」，而是「之前的一封邮件name建议我通过推特和脸书来获取优惠码」，而事实上我确实无法正常访问这两者。<br />
同时，我想要的是一个通用的途径解决这样的问题，mail算一个，blog算一个，newsletter算一个，name是有自己的blog的，但是name推荐我访问的推特和脸书在正常情况下大多数人不都是懂得翻墙去访问的。你我不能无视这群人的存在。</li>
<li>我不认为他们对中国用户有特别的歧视，但是在我声明中国无法正常访问推特和脸书的情况下，name告诉我本月没有优惠码，我认为他们是基于「我无法访问推特和脸书」的情况下对我有可能的隐瞒（也可能如老卫说的该客服不清楚优惠码相关），我认为这就是一种歧视。</li>
<li>你不能要求一个没有手的残障人士拿筷子吃饭，你也不能要求一个没有脚的残障人士来跑110m 跨栏，是这么回事儿，对吧，而我们的互联网就是一个残障的互联网，而我们就是那「残疾人」。我们不能因为可以将就就无视壁垒的存在，而是要时刻提醒自己，它一直都在那儿。翻墙是一种被人为逼迫出来的能力，不能他们逼你背井离乡你就觉得自己应该背井离乡，你不能将它作为一种常态来看待，它是不正常的。</li>
<li>很抱歉使用残障人士举例，我的目的仅仅是举例，没有任何其它意思，请海涵。</li>
</ol>
</blockquote>
<p>欢迎提问批评。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-04/mail-reply-from-name-com-about-promo-code.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Name.com Promo Code &#124; April 2010</title>
		<link>http://mr21.in/2010-04/name-com-promo-code-april-2010.html</link>
		<comments>http://mr21.in/2010-04/name-com-promo-code-april-2010.html#comments</comments>
		<pubDate>Sat, 03 Apr 2010 01:08:53 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[特惠快讯]]></category>
		<category><![CDATA[Name.com]]></category>
		<category><![CDATA[Promo]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=347</guid>
		<description><![CDATA[2010年4月优惠码 Promo Code &#124; April ALLABOUTU &#124; $8.25 .ME registrations, $14.99 .ME renewals and transfers. (we just have the .ME promo.) ALLABOUTU &#124; 以$8.25注册、$14.99续费和转入 .me 域名。（是的，这个月只有ME的... ]]></description>
			<content:encoded><![CDATA[<p>2010年4月优惠码</p>
<blockquote><p>
<strong>Promo Code | April</strong></p>
<p><strong>ALLABOUTU</strong> | $8.25 .ME registrations, $14.99 .ME renewals and transfers. (<a href="http://twitter.com/namedotcom/status/11460075342">we just have the .ME promo.</a>)<br />
<strong>ALLABOUTU</strong> | 以$8.25注册、$14.99续费和转入 .me 域名。（是的，这个月只有ME的）
</p></blockquote>
<blockquote><p><strong>Previous one<br />
<a href="http://mr21.in/2010-03/name-com-promo-code-march-2010.html">Name.com Promo Code | March 2010</a></strong></p>
<p><strong>MARCH825</strong> | $8.25 .COM .NET .ME registrations //以$8.25的价格注册com/net/me域名
</p></blockquote>
<p>Name.com目前的趋势看来，优惠是越来越少，并且从这个月开始Name已经不从邮件上回复“索取优惠码”的请求，转而要求你关注他们的<a href="http://twitter.com/namedotcom">Twitter</a>和<a href="http://www.facebook.com/pages/Namecom/40529942806">Facebook</a>。重视社会化营销是一个好办法，至少能节约一定的成本，但是直接无视了某国人民的重重障碍我觉得，恩，这个……我试试告诉他们我无法访问推特和脸书，看看他们怎么说。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-04/name-com-promo-code-april-2010.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>21看Paypal与银联的合作</title>
		<link>http://mr21.in/2010-03/21-viewpoint-paypal-to-partner-with-china-unionpay.html</link>
		<comments>http://mr21.in/2010-03/21-viewpoint-paypal-to-partner-with-china-unionpay.html#comments</comments>
		<pubDate>Mon, 29 Mar 2010 06:04:17 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[二一视点]]></category>
		<category><![CDATA[Alipay]]></category>
		<category><![CDATA[Godaddy]]></category>
		<category><![CDATA[Paypal]]></category>
		<category><![CDATA[Unionpay]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=345</guid>
		<description><![CDATA[今天阅读到Mr. 6的文章里面提及了「Paypal于中国银联的合作」，我也留言发表了一些自己的看法，不过目前没有显示出来（估计是在待审清单里面），因此我在自己的博客上发表一下我的见解。... ]]></description>
			<content:encoded><![CDATA[<p><u>今天阅读到Mr. 6的<a href="http://mr6.cc/?p=4220">文章里面提及了「Paypal于中国银联的合作」</a>，我也留言发表了一些自己的看法，不过目前没有显示出来（估计是在待审清单里面），因此我在自己的博客上发表一下我的见解。</u></p>
<p>我非常看好<a href="http://www.paypal.com">Paypal</a><sup>[<a href="http://mr21.in/2010-03/21-viewpoint-paypal-to-partner-with-china-unionpay.html#footnote_0_345" id="identifier_0_345" class="footnote-link footnote-identifier-link" title="注意，这个说的不是针对中国的「贝宝」，而是全球版的Paypal">1</a>]</sup>和<a href="http://www.chinaunionpay.com">中国银联</a>的合作，原因是基于以下几点：</p>
<ol>
<li>大陆居民的双币信用卡普及度实际上是不够的，很多无法进行Paypal美元支付只能求助于「网路代购」；</li>
<li>目前海外支持支付宝的有GoDaddy和IXWebhosting等，相比Paypal商户数量少；</li>
<li>大陆银行业者对于信用卡的监管不力和索赔流程的繁琐，致使大多数人不敢直接使用信用卡进行海外购物；</li>
<li>通过支付宝使用信用卡消费存在一定的限制（例如招行信用卡每笔充值最高499.99）；</li>
<li>淘宝支付宝体系的一些奢侈品消费、代购，还有数码产品的消费等，大多数人其实更倾向于选择海外产品。</li>
</ol>
<p>总得来说，其实Paypal在大陆的网购者、 Blogger、站长中还是非常有地位的，鉴于目前大陆的网路管控政策，大多数人不屑于（同时也是不敢）将自己的网路资源安放在大陆的服务商手上，而是大量通过Paypal选择海外SP。而与我同业的网络业者也非常关注支持Paypal支付的主机服务商（Hosting）、域名注册商（Domain），同时因为大陆银行业对于信用卡的管理不力，导致大多数人对于信用卡直付心存担忧，选择Paypal是他们的不二法门，并且鉴于大陆服务业的服务态度（例如GoDaddy通过Alipay支付出错，通常客服的建议是让你找GoDaddy支持），我相信大多数人更喜欢选择通过Paypal支付来购买自己的需要。</p>
<p>但Paypal的「认证」政策和「信用卡消费」模式导致缺乏信用卡的大多数国内消费者无法选择满意的海外服务。同时大陆人经常有「一等商品卖欧美，二等商品卖日韩，三等商品卖大陆东南亚」的意识，加上部分商品的高额关税等等（比如我的MacBook Pro是购自香港的代购），因此也很喜欢选择海外的一些直购方式（毕竟海关是抽检的），而这些目前来说都需要信用卡的支援（基于 Paypal）。虽然我相信支付宝也会一直在努力开扩海外的市场，但毕竟接受Paypal的网络商店是足够丰富的，同时支付宝作为一家境内的网络公司，我们参考以往发生的各种网络事件和政府的工作习惯就知道，海外商户选择支付宝作为支付接口是存在很大风险的。</p>
<p>虽然Mr. 6提到了Paypal无意于支付宝竞争，但实际上就整体的网络消费环境来说，加上我身为IT业者所感受到的，我认为PP与支付宝的直面碰撞不是它们之间的问题，而是网民选择的问题。</p>
<p>我们拥有数量庞大的个人网站、博客、围脖、论坛（电子公告版）等等受到管制的服务需求，同时拥有大批量的奢侈品爱好者，还有很多「崇洋媚外」的消费者，还有很多境内政策的不确定因素等，这些都是境外消费的动力，基于对信用卡安全性的担忧、消费纠纷处理的担忧等等，在国内这些问题都能在合理的营销手段下转化为Paypal的业务量，一旦Paypal和银联的合作开始，支持「银联」通路CNY结算，那么势必会带来一股相当强劲的海外网购热潮，能参与到Paypal消费的人群会因为他们的合作而无比庞大，加上网路业者的辐射面，还有规避外贸交易的汇率风险等等，我想不需要三年，增长会十分明显的。</p>
---------------------------------------<ol class="footnotes"><li id="footnote_0_345" class="footnote">注意，这个说的不是针对中国的「贝宝」，而是全球版的Paypal</li></ol>]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-03/21-viewpoint-paypal-to-partner-with-china-unionpay.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>21看GoDaddy欲停止.CN域名注册</title>
		<link>http://mr21.in/2010-03/godaddy-to-stop-registering-domain-names-in-china.html</link>
		<comments>http://mr21.in/2010-03/godaddy-to-stop-registering-domain-names-in-china.html#comments</comments>
		<pubDate>Thu, 25 Mar 2010 02:59:59 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[二一视点]]></category>
		<category><![CDATA[.CN]]></category>
		<category><![CDATA[.IN]]></category>
		<category><![CDATA[CNNIC]]></category>
		<category><![CDATA[Domain Name]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Godaddy]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Private]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=343</guid>
		<description><![CDATA[今天看到两条消息， 1. 「In response to new rules, GoDaddy to stop registering domain names in China」 2. 「GoDaddy计划停止.cn域名注册」 算是继Google离开之后的一点小火花，Godaddy宣称要停止接受.CN这个国家域的... ]]></description>
			<content:encoded><![CDATA[<p>今天看到两条消息，</p>
<ul>1. 「<a href="http://www.washingtonpost.com/wp-dyn/content/article/2010/03/24/AR2010032401543.html">In response to new rules, GoDaddy to stop registering domain names in China</a>」<br />
2. 「<a href="http://internet.solidot.org/internet/10/03/25/008258.shtml">GoDaddy计划停止.cn域名注册</a>」</ul>
<p>算是继Google离开之后的一点小火花，Godaddy宣称要停止接受.CN这个国家域的注册请求，追根究底的原因是CNNIC要求注册者提供更多的包括照片在内的资料。</p>
<p>我想，这下那些某人士应该又傻眼了，前两天轰轰烈烈的为「Godaddy非法揽客」论造势，今天人家GD不鸟你了，这也为那些「美企感觉在华不受欢迎」的言论增加了更好的论据，并且GD还是一家没有正式进入中国市场的公司。我们知道互联网无国界，一个服务商被动接受客户的订单（至少不会对无关人士SPAM嘛），居然被称之为「非法揽客」，那我就好奇了，上海切手指后是被舆论封锁了还是怎么着了？或者60年来我天朝的字典里就没有「教训」二字？也不想想当年决定照搬西方经济模式的时候，玩的不都是人家美帝吃剩下的么，「XX特色」？你吓唬谁呀。</p>
<p>其实在早前从<a href="http://mr21.in/2009-08/name-com-changes-related-to-private-whois-with-in-and-cn.html">NAME取消.IN和.CN的隐私保护</a>的决策我们就可以看出一些端倪来了，因为不在印度也不好对.IN的决策说什么，但是身在国内的我对CN方面的东西还是知道一些的。</p>
<p>当时距离大扫荡已经没多少时间了，CN域名开始收紧，首先取消了隐私保护，然后又蹦出来再次声明不接受个人注册，之后要求域名持有人提供实名资料，最后在12月CCAV强烈抨击并制造了「<strong>黄色WAP网站之所以盛行是因为域名注册快捷方便</strong>」的观点，不得不说我们D找外因的业务水平是一等一的，同时我意识到长期以往如影随形的GFW并不满足于现状，它想要公开化合法化了！致使当时的我写下了「<a href="http://mr21.in/2009-12/recommendations-about-domain-name-registration-in-china.html">关于域名注册的建议</a>」呼吁大家减持.CN域名和国内空间（不过人轻言微啦，没几个人知道就是了），不久之后，轰轰烈烈的「互联网大作战」便开始了。</p>
<p>CNNIC一直都在宣称CN域名注册量已经达到了Top 1，恩，是很不错的成绩，但是在这光芒的背后我们都知道怎么回事儿：一元促销域名、默许个人注册（「法律」上是不允许的）等，以低价倾销的方式（我甚至怀疑CNNIC自己不收钱，对国内的DSP还有注册量补贴）来争取巨大的注册量，加上咱们的人口基数，要凭借「总量」拿世界第一是很容易的，比如说网民总数量、消费市场总潜力、域名总注册量、还有GDP等等，但是人均那就……我们知道是怎么回事儿的。</p>
<p>我觉得这个不论是人还是什么机构还是什么社会团体，总要有点自知之明的，有自信是好事儿，但是不能让自信变成自负了，真以为全世界少了你就不行了，要说贫穷的廉价的第三世界国家那还是很多的，你折腾自己人也就算了，家丑不外扬嘛，但是你以为外面的人都跟自己辖下屁民一样<a href="http://blog.sina.com.cn/s/blog_4701280b0100hcf6.html">乖巧可爱听话老实</a>，那只能说，咱走着瞧吧。</p>
<p>「<a href="http://it.solidot.org/it/10/03/24/1345227.shtml">Tom说不用Google引擎</a>」了，「<a href="http://it.solidot.org/it/10/03/25/025254.shtml">联通说要从手机上移除Google搜索</a>」了，把商业问题上升到政治问题，再把政治问题上升到民族高度强压于商业，以国家机器举国之力以各种手段政策来对付一个商业公司，不觉自降身份么？你自恃是有五千年文化的泱泱大国，连这点风范都没有，也不怕贻笑大方。</p>
<p>我建议，赶紧加紧立法吧，这样那些美帝的所谓「不作恶的公司」就无话可说了，反正这个法不用我们表决也会通过的，你们现在老是搞犹抱琵琶半遮面遮遮掩掩羞答答的跟一大闺女似的，人家美帝200多岁了肯定要可劲儿的调戏你这60来岁的黄花大闺女（你有5000多岁么？你真没有~），赶紧立牌坊吧，拜托了！</p>
<p>Google说：谷歌已死，有事烧纸~</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-03/godaddy-to-stop-registering-domain-names-in-china.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>21看谷歌退出中国市场</title>
		<link>http://mr21.in/2010-03/about-google-cn-escape.html</link>
		<comments>http://mr21.in/2010-03/about-google-cn-escape.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 01:40:20 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[二一视点]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[FeedBurner]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Talk]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=341</guid>
		<description><![CDATA[长话短说。 在2006年之前我就是Google的忠实拥趸了（除了搜MP3），当年亲眼看着网易邮箱由100M变成10M然后在Google的刺激下变成1G，这个影响对大多数人来说是深远的，当时的我们从未想象过会有... ]]></description>
			<content:encoded><![CDATA[<p>长话短说。</p>
<p>在2006年之前我就是Google的忠实拥趸了（除了搜MP3），当年亲眼看着网易邮箱由100M变成10M然后在Google的刺激下变成1G，这个影响对大多数人来说是深远的，当时的我们从未想象过会有如此慷慨的服务商。而当Gmail提供了超越各种VIP的服务之后我一直都觉得国内的Email-SP必死，虽然到现在还没死确实是个遗憾，但是不得不说Google很多业务的出现为中国市场带来了一些竞争和发展，于是邮箱都是G级了，大家都知道应该在推出免费服务之上以增值服务的方式来获得收入（不过国内有些还是做得比较损，例如Yupoo不仅限流量还在外链图片上加广告）。</p>
<p>在Google没有出现之前，大多数国内的网站都是爷，可以在没有任何协商或者告知的情况下任意调整你使用的服务，比如说100M变成10M，美其名曰：VIP、大多数人都够用。但是Google如同春风一般的免费服务吓倒了很多人，也是用户开始变成爷，服务商想方设法弄一些稀奇古怪的玩意儿吸引用户，比如网易邮箱的集邮了。我还记得很早以前网易的Yeah有一个域名转向服务，甚至还有个支持FTP的小得可怜的HTML空间，不过现在都没有了，人民币升值好呀，既缩小了我国群众于美帝人民之间的贫富差距还让大多数人都买得起美帝的网络资源用得起美帝的网络服务了。</p>
<p>总得来说我是怀旧居多，一开始Google进入中国市场我就不太理解，我认为那是完全没有必要的，不过进来也就进来吧，毕竟06年那会儿还没有像现在这样风声鹤唳草木皆兵。现在好了，受不了折腾了，其实我也受不了，走了好呀，压在Google头上的N座无形的大山终于可以丢弃了。</p>
<p>Google，一个有思想的公司，我敬佩，它是一家商业公司没错，但是它生存的目的不像大多数的公司和流氓 集团一样仅仅是为了搂钱。人可以活得没有目的，但是不能盲目，不能谁说什么你都听，特别是某些喉舌。我可以在经济上贫穷，但是我决不让自己的思想堕落。<br />
同时，声援<u>可能吧</u> 「<a href="http://www.kenengba.com/post/2836.html">我们还在继续</a>」，订阅：http://feeds.feedburner.com/kenengbarss。</p>
<p>我在使用的Google服务：<span id="more-341"></span><br />
<strong>Analytics  http://analytics.google.com<br />
Apps  http://www.google.com/a<br />
Blogger  http://www.blogger.com<br />
Calendar  http://calendar.google.com<br />
Chrome  http://chrome.google.com<br />
Docs  http://docs.google.com<br />
FeedBurner  http://www.feedburner.com<br />
GAE  http://apps.google.com<br />
Gmail  http://www.gmail.com<br />
Maps  http://maps.google.com<br />
Reader  http://reader.google.com<br />
Picasa  http://picasaweb.google.com<br />
Talk  http://talk.google.com<br />
Voice  http://voice.google.com<br />
Wave  http://www.googlewave.com<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-03/about-google-cn-escape.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>2010-03-22 小记</title>
		<link>http://mr21.in/2010-03/2010-03-22-note.html</link>
		<comments>http://mr21.in/2010-03/2010-03-22-note.html#comments</comments>
		<pubDate>Mon, 22 Mar 2010 16:10:19 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[个人感官]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Kloxo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=339</guid>
		<description><![CDATA[前几天手闲买了两个256M VPS用于学习VPS的配置，这两天有所心得，小记一下。 不好意思啦，长篇大论太辛苦了，以后要走简洁风的。 注：两个VPS分别是CenOS 5.4 32bit, Debian 5 32bit. 1. Kloxo安装脚本... ]]></description>
			<content:encoded><![CDATA[<p>前几天手闲买了两个256M VPS用于学习VPS的配置，这两天有所心得，小记一下。<br />
不好意思啦，长篇大论太辛苦了，以后要走简洁风的。</p>
<p>注：两个VPS分别是<a href="http://www.centos.org">CenOS</a> 5.4 32bit, <a href="http://www.debian.org">Debian</a> 5 32bit.</p>
<h3>1. Kloxo安装脚本太傻瓜了，傻瓜到出错都不会stop</h3>
<p>其中一个VPS购买的时候我选择了预置<a href="http://lxlabs.com/software/kloxo/">Kloxo</a>，但是主机商说内存没有512M所以不予部署，好吧，我手闲自己安装一下试试就是了。下载了那个脚本之后，<strong>./<a href="http://download.lxlabs.com/download/kloxo/production/kloxo-install-master.sh">kloxo-install-master.sh</a></strong>，开始安装。</p>
<p>由于是通过SSH的方式，我开着以后就没管了，从早上9点多一直到下午4点多，SSH里面一直很活跃地展现着《骇客帝国》的数字雨画面效果，我受不了了，Ctrl+C之后发现，滚屏上的文字一直都在重复，眼睛瞟到一个写着error的信息，看了一下，原来是某个PHP的模块没有卸掉，所以……很遗憾的是，我没有记下来那个没模块叫什么。</p>
<p>但是我比较不明白的是，为什么它error之后就一直Try again，而不是Stop让用户看看错误信息，所以那个Kloxo的安装脚本，我运行了整整6个小时，还好，主机商方面没有什么提示。其实为什么我会等这么长时间呢？因为很久很久以前，我经常连续花几天时间编译安装Gentoo Linux，这让我面对CLI的时候有足够的耐心，嘿嘿嘿~</p>
<p>还有，我参照的是<a href="http://nutcracker.cn/internet/centos-kloxo-installation-setup.html">这篇教程</a>，感谢作者。</p>
<p><strong>Tips: </strong>要是你安装Kloxo超过30mins（国内可能不好说），请检查滚屏文字是否包含error。</p>
<h3>2. 主机商没错，256M的VPS别装Kloxo</h3>
<p>恩，这个确实是教训，在上面花了6个小时之后，我卸掉那个PHP模块，只用了短短几分钟Kloxo就部署好了，然后是……从VPS面板上我看到，256M的内存一直在60%~89%之间徘徊，然后Kloxo感觉一点都不快，VPS的主机CPU是4核的XEON E5520。</p>
<p><strong>Tips:</strong> 服务商不一定都是忽悠你的。</p>
<h3>3. 搞定Apache2单独用户权限配置</h3>
<p>好吧，我承认在高中的时候朋友熊哥借过我一本Apache配置指南并且我一直都没还，但是也一直都没怎么看，基于两个VPS内存过低的原因，我开始自己配置服务器。以前的我算是轻微入门，这次又轻轻入了一点点，慢慢来咯。</p>
<p>今天遇到的问题就是Apache2+PHP5目录写入权限。<br />
之前我在使用<a href="http://www.Dreamhost.com">Dreamhost</a>的时候，/home/user/public_html 755是写入可行的，但是我的VPS上表现为无法PHP写入文件，好吧，我将real_user加入apache运行组www-data后修改权限为775之后是可以的，但是我不甘心，并且同组写入在商业化虚拟机上是不可行的，并且DH上面确实是755，于是研究。</p>
<p>利用DH的SSH我登录上去在有限的权限内我开始翻系统的文件，我考虑到了用户组混搭<sup>[<a href="http://mr21.in/2010-03/2010-03-22-note.html#footnote_0_339" id="identifier_0_339" class="footnote-link footnote-identifier-link" title="灵感来自犀利哥，嘿嘿，开玩笑的~">1</a>]</sup>方面的问题，于是我实验了一个办法，并且通过了：</p>
<blockquote><p><strong>把用户 www-data<sup>[<a href="http://mr21.in/2010-03/2010-03-22-note.html#footnote_1_339" id="identifier_1_339" class="footnote-link footnote-identifier-link" title="Debian里面的Apache2默认以此用户名/组运行">2</a>]</sup> 加入 &lt;user-private-group></strong></p></blockquote>
<p>但是，反过来把 real_user 添加到组 www-data 并不能实现real_user的权限对www-data开放，除非文件的隶属组是www-data。不过问题在于，不可能主机商会让apache2的run_user加入每一个用户的私有组<sup>[<a href="http://mr21.in/2010-03/2010-03-22-note.html#footnote_2_339" id="identifier_2_339" class="footnote-link footnote-identifier-link" title="private group，私有组，用户创建时一同添加的同名组。">3</a>]</sup>，乍一看是没什么安全问题，单向继承权限嘛，但是如果我们一些特定的文件只让Apache读取的时候，问题就来了，这肯定不适用于生产环境的。</p>
<p>于是我又开始GG，找到一个办法，<strong>SuExec</strong>，但是这个办法有限制：只对CGI和SSI有效，那么PHP就要以CGI的方式运行。但是，同一篇文章提到了一个模块：<strong>apache2-mpm-itk</strong>，据说效果跟效率要比SuExec好，而且配置也不复杂，在&lt;VirtualHost>部分就可以为每个虚拟机单独配置一个读写用户。</p>
<p>于是在自己的Debian VPS上测试通过，~/public_html的权限为755即可，同时在相关的<strong>VirualHost</strong>配置部分加入</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">AssignUserId {user} {group}</pre></td></tr></table></div>

<p>配置即可。<br />
这也同时解决了我长久以来的一个疑惑：这个Apache2用一个用户/组来跑所有虚拟主机不是很危险么？不过以前没想过要认真解决掉……</p>
<p>请跳转参阅：<br />
1. <a href="http://www.zhouzhou.net/2009/06/use-mpm-peruser-apache-for-safe.html">使用mpm-peruser为apache的虚拟主机提供一个绝对安全的单用户进程访问机制</a><br />
2. <a href="http://www.debianadmin.com/running-vhosts-with-apache2-mpm-itk-on-debian.html">Running Vhosts With Apache2 mpm-itk On Debian</a></p>
<p><strong>Tips:</strong> 恩，Google是个好东西。</p>
<h3>4. 几个关键词</h3>
<p>gpasswd -a, useradd, id, a2enmod, /etc/skel, /etc/default/useradd.<br />
mysql -u[user] -p -h[host] database &lt;&lt; (zcat database.sql.gz)</p>
<p><strong>以后以笔记类博文为主，这样写起来没有压力，请各位见谅~</strong></p>
<p>延伸阅读：<br />
1. <a href="http://linuxtoy.org/archives/top-10-one-liners.html">10 个最酷的 Linux 单行命令</a><br />
2. <a href="http://www.banyue.net/html/y2008/95.html">Debian下为Apache启用rewrite模块（htaccess）</a><br />
3. <a href="http://httpd.apache.org/docs/2.0/misc/rewriteguide.html">URL Rewriting Guide</a></p>
---------------------------------------<ol class="footnotes"><li id="footnote_0_339" class="footnote">灵感来自犀利哥，嘿嘿，开玩笑的~</li><li id="footnote_1_339" class="footnote">Debian里面的Apache2默认以此用户名/组运行</li><li id="footnote_2_339" class="footnote">private group，私有组，用户创建时一同添加的同名组。</li></ol>]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-03/2010-03-22-note.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自制RHEL5 DVD安装盘</title>
		<link>http://mr21.in/2010-03/making-rhel-5-dvd-iso.html</link>
		<comments>http://mr21.in/2010-03/making-rhel-5-dvd-iso.html#comments</comments>
		<pubDate>Sun, 21 Mar 2010 10:44:11 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[CD]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=338</guid>
		<description><![CDATA[最近在学习Red Hat方面的管理，一般来说我们比较容易获取的是RHEL(Red Hat Enterprise Linux)的CD版介质（比如国内的Lupaworld镜像），不过一共6CD安装起来的替换也是很麻烦，我找到一个教程与大家共... ]]></description>
			<content:encoded><![CDATA[<p>最近在学习Red Hat方面的管理，一般来说我们比较容易获取的是RHEL(Red Hat Enterprise Linux)的CD版介质（比如国内的<a href="http://mirror.lupaworld.com/rhel/5/">Lupaworld镜像</a>），不过一共6CD安装起来的替换也是很麻烦，我找到一个教程与大家共享。</p>
<p>文章来源：<a href="http://www.mind-download.com/2007/07/making-rhel-5-dvd-iso.html">Mind Download</a><br />
本教程是基于Linux shell的操作，Unix-like通用，Windows请看文后简述。</p>
<p><strong>一、首先下载6张CD，（借用lupaworld）</strong></p>
<blockquote><p>
32位安装盘<br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc1.iso">rhel-server-5.3-i386-disc1.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc2.iso">rhel-server-5.3-i386-disc2.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc3.iso">rhel-server-5.3-i386-disc3.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc4.iso">rhel-server-5.3-i386-disc4.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc5.iso">rhel-server-5.3-i386-disc5.iso</a><br />
64位安装盘<br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc1.iso">rhel-server-5.3-x86_64-disc1.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc2.iso">rhel-server-5.3-x86_64-disc2.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc3.iso">rhel-server-5.3-x86_64-disc3.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc4.iso">rhel-server-5.3-x86_64-disc4.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc5.iso">rhel-server-5.3-x86_64-disc5.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc6.iso">rhel-server-5.3-x86_64-disc6.iso</a>
</p></blockquote>
<p><strong>二、建立6个临时目录，同时挂载6个ISO文件。</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc1.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc2.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc3.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc4.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc5.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc6.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6</pre></td></tr></table></div>

<p><strong>三、修改相关的光盘配置文件</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>isolinux <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>.discinfo .
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +<span style="color: #c20cb9; font-weight: bold;">w</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat</pre></td></tr></table></div>

<p>编辑复制过来的当前目录的.discinfo文件（<strong>nano .discinfo</strong>或<strong>gedit .discinfo</strong>），效果如下（不一定完全一样）：</p>
<blockquote><p>
1170972087.594754<br />
Red Hat Enterprise Linux Client 5<br />
i386<br />
1,2,3,4,5,6 &lt;-主要是修改这里的<strong>1</strong>为现在的<strong>1,2,3,4,5,6</strong><br />
Client/<br />
VT/<br />
Workstation/
</p></blockquote>
<p><strong>四、合并6个CD镜像并写入新的配置文件，生成DVD ISO镜像，红色的是卷标名称，请自定义。</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">mkisofs <span style="color: #660033;">-v</span> <span style="color: #660033;">-pad</span> <span style="color: #660033;">-o</span> RHEL5-x86_64-DVD.iso <span style="color: #660033;">-V</span> <span style="color: #ff0000;">&quot;RHEL5-x86_64-DVD&quot;</span> <span style="color: #660033;">-b</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin <span style="color: #660033;">-c</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat <span style="color: #660033;">-no-emul-boot</span> <span style="color: #660033;">-boot-load-size</span> <span style="color: #000000;">4</span> <span style="color: #660033;">-boot-info-table</span> <span style="color: #660033;">-r</span> <span style="color: #660033;">-R</span> <span style="color: #660033;">-T</span> <span style="color: #660033;">-m</span> TRANS.TBL <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>.discinfo <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>isolinux <span style="color: #660033;">-graft-points</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1 .discinfo=.discinfo isolinux<span style="color: #000000; font-weight: bold;">/</span>=isolinux <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6<span style="color: #000000; font-weight: bold;">/</span>Server</pre></td></tr></table></div>

<p><strong>五、扫尾工作</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> .discinfo</pre></td></tr></table></div>

<p><strong>六、Windows怎么办？</strong><br />
呃，实际上我没有试过，但是我推断，只要把所有的ISO解压后复制到同一目录下（可覆盖同名文件），然后编辑.discinfo文件（如第三步那样），然后用WinISO或者UltraISO创建一个DVD文件，引导文件使用文件目录下的“isolinux/isolinux.bin”文件，并删除“isolinux/boot.cat”文件，然后保存ISO，应该可以，不过，建议尽量使用linux。</p>
<p><strong>七、其它</strong><br />
实际上，RedHat官方就提供了DVD文件，只要注册一个RHN试用30天的帐户就可以下载，这个仅供大家参考。<br />
同时，原作者提供了一个bash脚本用来处理这个过程，只要跟几个镜像放在同一目录下执行就是，文件内容如下：<span id="more-338"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc1.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc2.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc3.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc4.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc5.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc6.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>isolinux <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>.discinfo .
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +<span style="color: #c20cb9; font-weight: bold;">w</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/1$/1,2,3,4,5,6/g'</span> .<span style="color: #000000; font-weight: bold;">/</span>.discinfo <span style="color: #000000; font-weight: bold;">&gt;</span> .<span style="color: #000000; font-weight: bold;">/</span>.discinfo
mkisofs <span style="color: #660033;">-v</span> <span style="color: #660033;">-pad</span> <span style="color: #660033;">-o</span> RHEL5-x86_64-DVD.iso <span style="color: #660033;">-V</span> <span style="color: #ff0000;">&quot;RHEL5-x86_64-DVD&quot;</span> <span style="color: #660033;">-b</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin <span style="color: #660033;">-c</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat <span style="color: #660033;">-no-emul-boot</span> <span style="color: #660033;">-boot-load-size</span> <span style="color: #000000;">4</span> <span style="color: #660033;">-boot-info-table</span> <span style="color: #660033;">-r</span> <span style="color: #660033;">-R</span> <span style="color: #660033;">-T</span> <span style="color: #660033;">-m</span> TRANS.TBL <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>.discinfo <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>isolinux <span style="color: #660033;">-graft-points</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1 .discinfo=.discinfo isolinux<span style="color: #000000; font-weight: bold;">/</span>=isolinux <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6<span style="color: #000000; font-weight: bold;">/</span>Server
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> .discinfo</pre></td></tr></table></div>

<p>保存为sh文件后，使用<strong>sh 脚本名称</strong>，或者<strong>./脚本名称</strong>的方式执行即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-03/making-rhel-5-dvd-iso.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
