<?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>Zeddicus Blog</title>
	<atom:link href="http://zeddicus.com/feed" rel="self" type="application/rss+xml" />
	<link>http://zeddicus.com</link>
	<description>设计 - 生活 - 技术 - 感悟 - 杂谈 - 分享</description>
	<lastBuildDate>Tue, 24 Apr 2012 19:33:59 +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>腾讯啊，你到底想干嘛呢？</title>
		<link>http://zeddicus.com/articles/2012/04/17/what-the-fuck.html</link>
		<comments>http://zeddicus.com/articles/2012/04/17/what-the-fuck.html#comments</comments>
		<pubDate>Mon, 16 Apr 2012 17:01:18 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[生活随笔]]></category>
		<category><![CDATA[qq]]></category>
		<category><![CDATA[异常]]></category>
		<category><![CDATA[腾讯]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=1021</guid>
		<description><![CDATA[好吧，有一个六位的QQ我忘记了密码。唔……申诉了几十次，和客服好说歹说地，最终终于还是没有通过申诉。OK……我认了。过了很久很久，当我都差点要忘掉那个QQ的时候，我收到一封QQ安全中心的邮件，说点击此设置新密码。我确认那是腾讯给我发来的，因为首先链接没问题，其次他提示了我QQ的第一位和最后以为，最后我还看了邮件的原始内容确定不是伪造的。 然后就有问题了，我就根本没提交过重置密码的申请。况且，腾讯已经不能像N年前那样直接重置密码了。现在重置密码必须通过 回答密码保护问题/手机验证码/申诉 来进行。而我却在没有进行任何操作的情况下，无缘无故收到了可以直接重置密码的邮件。 好吧，那我只好访问一下那个链接，尝试重置密码了。结果是提示系统繁忙，也就是无法修改成功。 那这个邮件你还发个毛线啊？？OK。被这邮件挑起了我的怒火，于是决定申诉一下。申诉完之后一个更离奇的事情发生了。之前我的另一个QQ，送给了朋友，当时是一代密码保护，我直接把密保问题全部给了朋友。我朋友也更改了所有资料，同时申请了二代密保，当然也改了密保邮箱。 然而，我居然受到这个被改了密保邮箱的QQ密码重置邮件。尼玛啊，这邮箱早800年就改了，为啥重置邮件的信件还会发送到我的EMAIL里？ 这尼玛也太神奇了吧亲。按理说就算是程序员在调试，也不可能三更半夜的来搞吧？ 这到底是哥我的幻觉，还是你TX被黑了…… 这如果是后者，应该会是继老酸奶和重金属胶囊之后另一个碉堡了的新闻吧日。]]></description>
			<content:encoded><![CDATA[<p>好吧，有一个六位的QQ我忘记了密码。唔……申诉了几十次，和客服好说歹说地，最终终于还是没有通过申诉。OK……我认了。过了很久很久，当我都差点要忘掉那个QQ的时候，我收到一封QQ安全中心的邮件，说点击此设置新密码。我确认那是腾讯给我发来的，因为首先链接没问题，其次他提示了我QQ的第一位和最后以为，最后我还看了邮件的原始内容确定不是伪造的。</p>
<p>然后就有问题了，我就根本没提交过重置密码的申请。况且，腾讯已经不能像N年前那样直接重置密码了。现在重置密码必须通过 回答密码保护问题/手机验证码/申诉 来进行。而我却在没有进行任何操作的情况下，无缘无故收到了可以直接重置密码的邮件。</p>
<p>好吧，那我只好访问一下那个链接，尝试重置密码了。结果是提示系统繁忙，也就是无法修改成功。</p>
<p>那这个邮件你还发个毛线啊？？OK。被这邮件挑起了我的怒火，于是决定申诉一下。申诉完之后一个更离奇的事情发生了。之前我的另一个QQ，送给了朋友，当时是一代密码保护，我直接把密保问题全部给了朋友。我朋友也更改了所有资料，同时申请了二代密保，当然也改了密保邮箱。</p>
<p>然而，我居然受到这个被改了密保邮箱的QQ密码重置邮件。尼玛啊，这邮箱早800年就改了，为啥重置邮件的信件还会发送到我的EMAIL里？</p>
<p>这尼玛也太神奇了吧亲。按理说就算是程序员在调试，也不可能三更半夜的来搞吧？</p>
<p>这到底是哥我的幻觉，还是你TX被黑了……</p>
<p>这如果是后者，应该会是继老酸奶和重金属胶囊之后另一个碉堡了的新闻吧日。</p>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2012/04/17/what-the-fuck.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google SpreadSheet 里面加入超链接</title>
		<link>http://zeddicus.com/articles/2012/01/04/google-spreadsheet-%e9%87%8c%e9%9d%a2%e5%8a%a0%e5%85%a5%e8%b6%85%e9%93%be%e6%8e%a5.html</link>
		<comments>http://zeddicus.com/articles/2012/01/04/google-spreadsheet-%e9%87%8c%e9%9d%a2%e5%8a%a0%e5%85%a5%e8%b6%85%e9%93%be%e6%8e%a5.html#comments</comments>
		<pubDate>Wed, 04 Jan 2012 09:09:23 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[经验分享]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[SpreadSheet]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=1012</guid>
		<description><![CDATA[话说不知不觉，已经成为 Google 重度使用者很多年了。现在的一切，都交给 Google 了。用 Google Doc 实在是太方便了，只要有网络，我就能写东西，也能用来做便签。 今天的主题是 Google SpreadSheet 里面的超链接，说到这里，我认为 Google Doc 还是需要有改进的，那就是加上一个可以直接添加超链接的功能，而不需要像这样的操作： 双击一个单元格 键入 =HYPERLINK( “www.zeddicus.com” ; “Zeddicus Blog” )]]></description>
			<content:encoded><![CDATA[<p>话说不知不觉，已经成为 Google 重度使用者很多年了。现在的一切，都交给 Google 了。用 Google Doc 实在是太方便了，只要有网络，我就能写东西，也能用来做便签。</p>
<p>今天的主题是 Google SpreadSheet 里面的超链接，说到这里，我认为 Google Doc 还是需要有改进的，那就是加上一个可以直接添加超链接的功能，而不需要像这样的操作：</p>
<ul>
<li>双击一个单元格</li>
<li>键入 =HYPERLINK( “www.zeddicus.com” ; “Zeddicus Blog” )</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2012/01/04/google-spreadsheet-%e9%87%8c%e9%9d%a2%e5%8a%a0%e5%85%a5%e8%b6%85%e9%93%be%e6%8e%a5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>去掉WHMCS的版权信息</title>
		<link>http://zeddicus.com/articles/2011/12/12/remove-whm-brand.html</link>
		<comments>http://zeddicus.com/articles/2011/12/12/remove-whm-brand.html#comments</comments>
		<pubDate>Mon, 12 Dec 2011 15:01:53 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[经验分享]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[whmcs]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=1008</guid>
		<description><![CDATA[为了去掉 WHMCS 的版权信息，你可能需要花费更多的美刀，但是用 jQuery ，我们可以直接去掉。 打开 include/jscript/jquery.js ，在最后加入： $&#40;function&#40;&#41;&#123;$&#40;'p:has(a[href*=whmcs\.com])'&#41;.hide&#40;&#41;&#125;&#41;; $(function(){$('p:has(a[href*=whmcs\.com])').hide()});]]></description>
			<content:encoded><![CDATA[<p>为了去掉 WHMCS 的版权信息，你可能需要花费更多的美刀，但是用 jQuery ，我们可以直接去掉。</p>
<p>打开 include/jscript/jquery.js ，在最后加入：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">$<span class="br0">&#40;</span><span class="kw1">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>$<span class="br0">&#40;</span><span class="st_h">'p:has(a[href*=whmcs\.com])'</span><span class="br0">&#41;</span>.hide<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#125;</span><span class="br0">&#41;</span>;</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">$(function(){$('p:has(a[href*=whmcs\.com])').hide()});</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2011/12/12/remove-whm-brand.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>唔……我换了个主题～</title>
		<link>http://zeddicus.com/articles/2011/10/30/theme-changed.html</link>
		<comments>http://zeddicus.com/articles/2011/10/30/theme-changed.html#comments</comments>
		<pubDate>Sat, 29 Oct 2011 17:55:20 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[生活随笔]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[半成品]]></category>
		<category><![CDATA[新主题]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=991</guid>
		<description><![CDATA[这个主题是大概一个月前打算换的，不过仍然是个半成品，比方说搜索还没弄，评论也还没弄。都是因为最近太忙了。欢迎大家来抓虫，发现一些比较变态的东西就直接留言在这里告诉我吧！ 还有就是那个 Apache 规则转 Nginx 规则的脚本，上回那个脚本放的服务器挂了，一直没修复，这回我直接整合到 WordPress 里面，希望对大家有帮助： http://zeddicus.com/apache-nginx-rewrite-rules-for-conversion]]></description>
			<content:encoded><![CDATA[<p>这个主题是大概一个月前打算换的，不过仍然是个半成品，比方说搜索还没弄，评论也还没弄。都是因为最近太忙了。欢迎大家来抓虫，发现一些比较变态的东西就直接留言在这里告诉我吧！</p>
<p>还有就是那个 Apache 规则转 Nginx 规则的脚本，上回那个脚本放的服务器挂了，一直没修复，这回我直接整合到 WordPress 里面，希望对大家有帮助：</p>
<p><a title="Apache Nginx 规则转换" href="http://zeddicus.com/apache-nginx-rewrite-rules-for-conversion" target="_blank">http://zeddicus.com/apache-nginx-rewrite-rules-for-conversion</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2011/10/30/theme-changed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级到 Lion 之后 Homebrew 失效的解决方法</title>
		<link>http://zeddicus.com/articles/2011/09/10/homebrew-lion-failure-after-upgrading-to-the-solution.html</link>
		<comments>http://zeddicus.com/articles/2011/09/10/homebrew-lion-failure-after-upgrading-to-the-solution.html#comments</comments>
		<pubDate>Sat, 10 Sep 2011 03:46:28 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[Mac相关]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[损坏]]></category>
		<category><![CDATA[解决]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=972</guid>
		<description><![CDATA[直接升级到 Lion 没怎么注意，后来发现之前装的 wget 没了。执行 brew install wget 发现总是提示要先 brew install git。Google 了一下发现原来 Snow Leopard 升级到 Lion 之后  Homebrew 会失效。同时也找到了解决方法，因此在这里备注一下。以下步骤： 1.登录到App Store，然后下载 xcode 4 2.在 Application 里面执行 Install Xcode 3.然后就可以了 需要注意的是网上的 4.0.2 不能用于 Lion，流传的 4.1 是 DP 版，因此在 App Store 上下载最好（尽管速度慢了一些）。黑苹果用户要 App Store 帐号的话去Google一下流传已久的教程即可免信用卡申请到。 哦对了，当然是要brew install wget一下]]></description>
			<content:encoded><![CDATA[<p>直接升级到 Lion 没怎么注意，后来发现之前装的 wget 没了。执行 brew install wget 发现总是提示要先 brew install git。Google 了一下发现原来 Snow Leopard 升级到 Lion 之后  Homebrew 会失效。同时也找到了解决方法，因此在这里备注一下。以下步骤：</p>
<p>1.登录到App Store，然后下载 xcode 4</p>
<p>2.在 Application 里面执行 Install Xcode</p>
<p>3.然后就可以了</p>
<p>需要注意的是网上的 4.0.2 不能用于 Lion，流传的 4.1 是 DP 版，因此在 App Store 上下载最好（尽管速度慢了一些）。黑苹果用户要 App Store 帐号的话去Google一下流传已久的教程即可免信用卡申请到。</p>
<p>哦对了，当然是要brew install wget一下</p>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2011/09/10/homebrew-lion-failure-after-upgrading-to-the-solution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>主流服务商开始放弃Site5，你们还在挣扎吗？</title>
		<link>http://zeddicus.com/articles/2011/09/06/site5-sucks.html</link>
		<comments>http://zeddicus.com/articles/2011/09/06/site5-sucks.html#comments</comments>
		<pubDate>Mon, 05 Sep 2011 19:01:16 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[互联网事]]></category>
		<category><![CDATA[gegehost]]></category>
		<category><![CDATA[Homezz]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[主流]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=969</guid>
		<description><![CDATA[近期，Gegehost 和 HomeZZ 都开始放弃 Site5 ，这两个服务商的老板（胡戈戈和东哥）都在自己的博客发表文章，分别是《不靠谱的site5》和《垃圾的site5 》（后者更直接哈）。不管是《不靠谱的site5》还是《垃圾的site5 》，都向我们传达了关于Site5不稳定、不靠谱、不再适合中国人使用的讯息。 据了解，Gegehost 和 HomeZZ 都已经基本上完成了将原Site5用户转移到其他机房，原因一方面是Site5服务近期极不稳定，而另一方面相信则是由于Site5的不稳定，导致有大量用户出现无法访问的情况。个人认为，服务商愿意帮助用户迁移机房，是十分负责任的表现，只有负责任并且具有一定技术实力的服务商，才有能力以及愿意协助用户迁移数据。（有些服务商只懂夸大宣传，而没有半点实力，实在让我嗤之以鼻。） Site5 已经不靠谱了，但是相信还有许多朋友的主机还在水深火热的 Site5 。如果你发现最近主机不稳定，就问问你的服务商吧，如果是 Site5 的，就赶紧让服务商给你换吧（如果他们不肯换，你就得考虑是不是把他们给换了。）～]]></description>
			<content:encoded><![CDATA[<p>近期，<a href="http://gegehost.com" target="_blank">Gegehost</a> 和 <a href="http://homezz.com" target="_blank">HomeZZ</a> 都开始放弃 Site5 ，这两个服务商的老板（<a href="http://hugege.com" target="_blank">胡戈戈</a>和<a href="http://storyday.com" target="_blank">东哥</a>）都在自己的博客发表文章，分别是《<a title="不靠谱的site5" href="http://hugege.com/2011/09/04/no-site5/" rel="bookmark">不靠谱的site5</a>》和《<a title="Permanent Link to 垃圾的site5" href="http://www.storyday.com/html/y2011/3041_garbage-site5.html" rel="bookmark">垃圾的site5 </a>》（后者更直接哈）。不管是《<a title="不靠谱的site5" href="http://hugege.com/2011/09/04/no-site5/" rel="bookmark">不靠谱的site5</a>》还是《<a title="Permanent Link to 垃圾的site5" href="http://www.storyday.com/html/y2011/3041_garbage-site5.html" rel="bookmark">垃圾的site5 </a>》，都向我们传达了关于Site5不稳定、不靠谱、不再适合中国人使用的讯息。</p>
<p>据了解，<a href="http://gegehost.com" target="_blank">Gegehost</a> 和 <a href="http://homezz.com" target="_blank">HomeZZ</a> 都已经基本上完成了将原Site5用户转移到其他机房，原因一方面是Site5服务近期极不稳定，而另一方面相信则是由于Site5的不稳定，导致有大量用户出现无法访问的情况。个人认为，服务商愿意帮助用户迁移机房，是十分负责任的表现，只有负责任并且具有一定技术实力的服务商，才有能力以及愿意协助用户迁移数据。（有些服务商只懂夸大宣传，而没有半点实力，实在让我嗤之以鼻。）</p>
<p>Site5 已经不靠谱了，但是相信还有许多朋友的主机还在水深火热的 Site5 。如果你发现最近主机不稳定，就问问你的服务商吧，如果是 Site5 的，就赶紧让服务商给你换吧（如果他们不肯换，你就得考虑是不是把他们给换了。）～</p>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2011/09/06/site5-sucks.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Lion的两个蛋疼之处</title>
		<link>http://zeddicus.com/articles/2011/08/18/lion-of-the-pain-of-two-eggs-at.html</link>
		<comments>http://zeddicus.com/articles/2011/08/18/lion-of-the-pain-of-two-eggs-at.html#comments</comments>
		<pubDate>Wed, 17 Aug 2011 16:55:32 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[Mac相关]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[单词拼写]]></category>
		<category><![CDATA[蛋疼]]></category>
		<category><![CDATA[鼠标滚轮]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=959</guid>
		<description><![CDATA[升级Lion有一段时间了，对于黑苹果用户来说，Lion要比Leopard更优秀，因为之前10.6.8的时候我有零星的五国的情况，但是升级到Lion之后就不会了，系统运行感觉更加平稳与可靠。 不过呢，还是有两个地方让我感到有点蛋疼的。第一个就是鼠标滚轮，升级后发现好不习惯，因为当我往上推的时候网页内容会往下走，反之亦然。第二个就是单词拼写修正，在写代码的时候给他自动纠正真是一个灾难。 1.解决鼠标滚轮的问题 System Preferences -&#62; Mouse -&#62; 把 Move content in the direction of finger movement when scrolling or navigating 前面的勾勾去掉 2.取消单词拼写纠正 System Preferences -&#62; Language &#38; Text -&#62; Text -&#62; 把 Correct spelling automatically 前面的勾勾去掉 完事……]]></description>
			<content:encoded><![CDATA[<p>升级Lion有一段时间了，对于黑苹果用户来说，Lion要比Leopard更优秀，因为之前10.6.8的时候我有零星的五国的情况，但是升级到Lion之后就不会了，系统运行感觉更加平稳与可靠。</p>
<p>不过呢，还是有两个地方让我感到有点蛋疼的。第一个就是鼠标滚轮，升级后发现好不习惯，因为当我往上推的时候网页内容会往下走，反之亦然。第二个就是单词拼写修正，在写代码的时候给他自动纠正真是一个灾难。</p>
<p>1.解决鼠标滚轮的问题</p>
<p>System Preferences -&gt; Mouse -&gt; 把 Move content in the direction of finger movement when scrolling or navigating 前面的勾勾去掉</p>
<p>2.取消单词拼写纠正</p>
<p>System Preferences -&gt; Language &amp; Text -&gt; Text -&gt; 把 Correct spelling automatically 前面的勾勾去掉</p>
<p>完事……</p>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2011/08/18/lion-of-the-pain-of-two-eggs-at.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Xen手动重置DomU的root密码</title>
		<link>http://zeddicus.com/articles/2011/07/21/xen-domu-manually-reset-the-root-password.html</link>
		<comments>http://zeddicus.com/articles/2011/07/21/xen-domu-manually-reset-the-root-password.html#comments</comments>
		<pubDate>Thu, 21 Jul 2011 15:12:00 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[经验分享]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[solusvm]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=954</guid>
		<description><![CDATA[SolusVM有时候挺奇怪，用户和超级管理员在后台改root密码后都会提示成功但是修改不生效。此时需要直接修改。 首先SSH到宿主，关闭正在运行的DomU，以 vm123 为例 xm shutdown vm123 xm shutdown vm123 有时候DomU可能在忙，可以强制关闭 xm destroy vm123 xm destroy vm123 然后 mount 出 vm123 的分区 mkdir /tmp/vm123 mount /dev/vps/vm123_img /tmp/vm123 mkdir /tmp/vm123 mount /dev/vps/vm123_img /tmp/vm123 接着chroot，并且更改密码，然后退出 chroot /tmp/vm123 passwd ******** exit chroot /tmp/vm123 passwd ******** exit 接着 umount 一下 umount /tmp/vm123 umount /tmp/vm123 最后就可以启动该DomU了 xm create /etc/xen/auto/vm123.cfg xm [...]]]></description>
			<content:encoded><![CDATA[<p>SolusVM有时候挺奇怪，用户和超级管理员在后台改root密码后都会提示成功但是修改不生效。此时需要直接修改。</p>
<p>首先SSH到宿主，关闭正在运行的DomU，以 vm123 为例</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">xm shutdown vm123</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">xm shutdown vm123</pre></div></div>

<p>有时候DomU可能在忙，可以强制关闭</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">xm destroy vm123</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">xm destroy vm123</pre></div></div>

<p>然后 mount 出 vm123 的分区</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1"><span class="kw2">mkdir</span> <span class="sy0">/</span>tmp<span class="sy0">/</span>vm123</div></li>
<li class="li2"><div class="de2"><span class="kw2">mount</span> <span class="sy0">/</span>dev<span class="sy0">/</span>vps<span class="sy0">/</span>vm123_img <span class="sy0">/</span>tmp<span class="sy0">/</span>vm123</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">mkdir /tmp/vm123
mount /dev/vps/vm123_img /tmp/vm123</pre></div></div>

<p>接着chroot，并且更改密码，然后退出</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1"><span class="kw2">chroot</span> <span class="sy0">/</span>tmp<span class="sy0">/</span>vm123</div></li>
<li class="li2"><div class="de2"><span class="kw2">passwd</span> <span class="sy0">********</span></div></li>
<li class="li1"><div class="de1"><span class="kw3">exit</span></div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">chroot /tmp/vm123
passwd ********
exit</pre></div></div>

<p>接着 umount 一下</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1"><span class="kw2">umount</span> <span class="sy0">/</span>tmp<span class="sy0">/</span>vm123</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">umount /tmp/vm123</pre></div></div>

<p>最后就可以启动该DomU了</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">xm create <span class="sy0">/</span>etc<span class="sy0">/</span>xen<span class="sy0">/</span>auto<span class="sy0">/</span>vm123.cfg</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">xm create /etc/xen/auto/vm123.cfg</pre></div></div>

<p>如无意外，root密码此时已经生效。当然也有例外，就是在这种情况下 root 密码依然不生效，此时极有可能是 IP 的问题，可以尝试给 DomU 更换IP。更换IP可以在 SolusVM上直接进行，也可以先关掉 DomU 然后手动修改配置文件，再启动。</p>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2011/07/21/xen-domu-manually-reset-the-root-password.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>用SolusVM对VPS增加磁盘空间不生效的解决方法</title>
		<link>http://zeddicus.com/articles/2011/07/03/with-solusvm-increase-disk-space-for-vps-solutions-are-not-effective.html</link>
		<comments>http://zeddicus.com/articles/2011/07/03/with-solusvm-increase-disk-space-for-vps-solutions-are-not-effective.html#comments</comments>
		<pubDate>Sat, 02 Jul 2011 18:04:08 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[经验分享]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[increase]]></category>
		<category><![CDATA[lv]]></category>
		<category><![CDATA[solusvm]]></category>
		<category><![CDATA[磁盘空间]]></category>
		<category><![CDATA[解决方法]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=929</guid>
		<description><![CDATA[话说这并不常见，不过如果出现了，可以手动搞。 首先在SolusVM里面找一下VPS的ID，比方说vm123，然后进宿主（母机），把他关掉（或者直接在SolusVM里面把他关掉也可以）： xm shutdown vm123 xm shutdown vm123 运行xentop，确认vm123是否真的关掉了。是的话，要找到vm123的磁盘： cat /etc/xen/auto/vm123.cfg&#124;grep disk cat /etc/xen/auto/vm123.cfg&#124;grep disk 我这里是 /dev/vps/vm123_img，然后给他增加磁盘空间(给他加10G)： lvextend /dev/vps/vm123_img -L +10G lvextend /dev/vps/vm123_img -L +10G 最好fsck一下： e2fsck -f /dev/vps/vm123_img e2fsck -f /dev/vps/vm123_img 然后resize文件系统： resize2fs /dev/vps/vm123_img resize2fs /dev/vps/vm123_img 然后就可以启动VPS了]]></description>
			<content:encoded><![CDATA[<p>话说这并不常见，不过如果出现了，可以手动搞。</p>
<p>首先在SolusVM里面找一下VPS的ID，比方说vm123，然后进宿主（母机），把他关掉（或者直接在SolusVM里面把他关掉也可以）：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">xm shutdown vm123</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">xm shutdown vm123</pre></div></div>

<p>运行xentop，确认vm123是否真的关掉了。是的话，要找到vm123的磁盘：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1"><span class="kw2">cat</span> <span class="sy0">/</span>etc<span class="sy0">/</span>xen<span class="sy0">/</span>auto<span class="sy0">/</span>vm123.cfg<span class="sy0">|</span><span class="kw2">grep</span> disk</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">cat /etc/xen/auto/vm123.cfg|grep disk</pre></div></div>

<p>我这里是 /dev/vps/vm123_img，然后给他增加磁盘空间(给他加10G)：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">lvextend <span class="sy0">/</span>dev<span class="sy0">/</span>vps<span class="sy0">/</span>vm123_img <span class="re5">-L</span> +10G</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">lvextend /dev/vps/vm123_img -L +10G</pre></div></div>

<p>最好fsck一下：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">e2fsck -f <span class="sy0">/</span>dev<span class="sy0">/</span>vps<span class="sy0">/</span>vm123_img</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">e2fsck -f /dev/vps/vm123_img</pre></div></div>

<p>然后resize文件系统：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">resize2fs <span class="sy0">/</span>dev<span class="sy0">/</span>vps<span class="sy0">/</span>vm123_img</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">resize2fs /dev/vps/vm123_img</pre></div></div>

<p>然后就可以启动VPS了</p>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2011/07/03/with-solusvm-increase-disk-space-for-vps-solutions-are-not-effective.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>更改Leopard截图的保存位置和图片格式</title>
		<link>http://zeddicus.com/articles/2011/07/02/change-the-location-to-save-the-leopard-screenshots-and-image-formats.html</link>
		<comments>http://zeddicus.com/articles/2011/07/02/change-the-location-to-save-the-leopard-screenshots-and-image-formats.html#comments</comments>
		<pubDate>Sat, 02 Jul 2011 14:41:51 +0000</pubDate>
		<dc:creator>zed</dc:creator>
				<category><![CDATA[Mac相关]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[修改]]></category>
		<category><![CDATA[截图]]></category>

		<guid isPermaLink="false">http://zeddicus.com/?p=927</guid>
		<description><![CDATA[不多说了，直达主题吧，更改Leopard截图的保存位置和图片格式，只需要两句命令： 首先是更改Leopard截图的保存位置： defaults write com.apple.screencapture location defaults write com.apple.screencapture location 这里的location就是具体的位置，比方说我的 /Users/Zed/Desktop/ScreenShots 则就是 mkdir /Users/Zed/Desktop/ScreenShots defaults write com.apple.screencapture location /Users/Zed/Desktop/ScreenShots mkdir /Users/Zed/Desktop/ScreenShots defaults write com.apple.screencapture location /Users/Zed/Desktop/ScreenShots 而更改Leopard截图的默认格式则是： defaults write com.apple.screencapture type defaults write com.apple.screencapture type 只支持 png gif jpg 和 pdf，比方说我改成默认是jpg的话就是： defaults write com.apple.screencapture type jpg defaults write com.apple.screencapture type jpg 当然这一切的一切，都要在console里面进行～]]></description>
			<content:encoded><![CDATA[<p>不多说了，直达主题吧，更改Leopard截图的保存位置和图片格式，只需要两句命令：</p>
<p>首先是更改Leopard截图的保存位置：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">defaults <span class="kw2">write</span> com.apple.screencapture location</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">defaults write com.apple.screencapture location</pre></div></div>

<p>这里的location就是具体的位置，比方说我的 /Users/Zed/Desktop/ScreenShots 则就是</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1"><span class="kw2">mkdir</span> <span class="sy0">/</span>Users<span class="sy0">/</span>Zed<span class="sy0">/</span>Desktop<span class="sy0">/</span>ScreenShots</div></li>
<li class="li2"><div class="de2">defaults <span class="kw2">write</span> com.apple.screencapture location <span class="sy0">/</span>Users<span class="sy0">/</span>Zed<span class="sy0">/</span>Desktop<span class="sy0">/</span>ScreenShots</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">mkdir /Users/Zed/Desktop/ScreenShots
defaults write com.apple.screencapture location /Users/Zed/Desktop/ScreenShots</pre></div></div>

<p>而更改Leopard截图的默认格式则是：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">defaults <span class="kw2">write</span> com.apple.screencapture <span class="kw3">type</span></div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">defaults write com.apple.screencapture type</pre></div></div>

<p>只支持 png gif jpg 和 pdf，比方说我改成默认是jpg的话就是：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"><div class="bwp-syntax-control"><a href="javascript:;" class="bwp-syntax-source-switch" title="View Source Code"></a></div></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="bash"><ol><li class="li1"><div class="de1">defaults <span class="kw2">write</span> com.apple.screencapture <span class="kw3">type</span> jpg</div></li>
</ol></div></div>
<div class="bwp-syntax-source"><pre class="no-parse">defaults write com.apple.screencapture type jpg</pre></div></div>

<p>当然这一切的一切，都要在console里面进行～</p>
]]></content:encoded>
			<wfw:commentRss>http://zeddicus.com/articles/2011/07/02/change-the-location-to-save-the-leopard-screenshots-and-image-formats.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

