<?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>知易行难,知行合一 (Walk the Talk) &#187; linux</title>
	<atom:link href="http://blog.alwayst.info/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.alwayst.info</link>
	<description>Blocked in China since Jan 6, 2011</description>
	<lastBuildDate>Mon, 12 Dec 2011 07:07:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</title>
		<link>http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox</link>
		<comments>http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox#comments</comments>
		<pubDate>Sun, 21 Aug 2011 16:22:40 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[pentadactyl]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1549</guid>
		<description><![CDATA[First of all, if you don&#8217;t have any idea what Pentadactyl is, then this post maybe not worth your time. Secondly, I should tell you about my system environments: Ubuntu 11.04; Firefox 6.0. If yours are differ from mine, I suppose it will still be ok, in most of the cases, they share the same [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, if you don&#8217;t have any idea what <a href="http://dactyl.sourceforge.net/pentadactyl/" target="_blank"><strong>Pentadactyl</strong></a> is, then this post maybe not worth your time.</p>
<p>Secondly, I should tell you about my system environments: Ubuntu 11.04; Firefox 6.0. If yours are differ from mine, I suppose it will still be ok, in most of the cases, they share the same steps.</p>
<p>Now, let&#8217;s start.</p>
<ol>
<li><strong>Why use Firefox?</strong> It&#8217;s the only browser what can have Pentadactyl as the add-on.</li>
<li><strong>Why use Pentadactyl?</strong> It&#8217;s vim-like add-on, designed for some keyboard addicted users to make life easier and more efficiently. If you ever heard about vim, you should know how powerful it is.</li>
<li><strong>Why bother to use encrypted google search engine?</strong> It&#8217;s really something personal, I like it, because I like it. If you insist to ask, I think the main reason is I don&#8217;t want my search queries to be intercepted. Besides, it makes me cool and different.</li>
</ol>
<p>In Pentadactyl, when you want search something, just type &#8220;o&#8221;(open the results in current tab) or &#8220;t&#8221;(open the results in new tab) followed the search words. By default, Pentadactyl use google as the search engine, <strong>Not</strong> google ssl. So how to change it? Add it as a bookmark will be the first step. Since we use Pentadactyl, let&#8217;s do it in some cool way:</p>
<ol>
<li>Press &#8220;<strong>:</strong>&#8221; to begin to typing command.<br />
<blockquote><p><code> <strong>bmark -keyword gssl https://encrypted.google.com/search?sclient=psy&amp;hl=en&amp;safe=off&amp;site=webhp&amp;source=hp&amp;q=%s&amp;pbx=1&amp;oq=&amp;aq=&amp;aqi=&amp;aql=&amp;gs_sm=&amp;gs_upl=</strong></code></p></blockquote>
</li>
<li>Press &#8220;Enter&#8221; to execute the command. And now you add it to your bookmark. Then press &#8220;<strong>:</strong>&#8221; again to type another command.<code><br />
</code></p>
<blockquote><p><code><strong>set defsearch=gssl</strong></code></p></blockquote>
</li>
<li>Job done!</li>
</ol>
<p><strong>Command no.1:</strong> &#8220;-keyword&#8221; is an option for you to name a search engine which will be used in the second command. The url I provided maybe only functional in my system environment, I&#8217;m not sure. But if it doesn&#8217;t work, you could find it by yourself. <strong>AND it&#8217;s more easier.</strong></p>
<ol>
<li>Open <a href="https://encrypted.google.com" target="_blank">https://encrypted.google.com</a></li>
<li>Right click of the search box</li>
<li>Choose &#8220;Add a Keyword for this Search&#8230;&#8221;</li>
<li>Name a keyword as you like, in my case it will be &#8220;gssl</li>
</ol>
<p>It&#8217;s exactly the same result as command no.1. You will find the url when you check this bookmark&#8217;s property.</p>
<p><strong>Command no.2:</strong> is used to set the default search engine. I really try hard to find this option of Pentadactyl&#8230;</p>
<p>Well, over&#8230;</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/how-to-change-the-hints-settings-of-pentadactyl" title="How to change the hints settings of Pentadactyl 2011.08.25">How to change the hints settings of Pentadactyl</a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu" title="How to fix the problem when Firefox cannot launch in Ubuntu 2011.03.26">How to fix the problem when Firefox cannot launch in Ubuntu</a>(2)</li>
<li><a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10" title="How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10] 2011.03.23">How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</a>(0)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/how_to_use_https_for_google_search" title="https and Google search 2010.03.31">https and Google search</a>(6)</li>
<li><a href="http://blog.alwayst.info/how-do-i-enable-sidewiki" title="如何启用Sidewiki 2009.11.11">如何启用Sidewiki</a>(6)</li>
<li><a href="http://blog.alwayst.info/the-problem-of-google-calendar" title="the Problem of Google Calendar 2009.09.28">the Problem of Google Calendar</a>(0)</li>
<li><a href="http://blog.alwayst.info/something-about-omnibar" title="Omnibar的其他应用 2011.01.5">Omnibar的其他应用</a>(4)</li>
<li><a href="http://blog.alwayst.info/use-i-feel-lucky-function-in-omnibar" title="在Chrome浏览器地址栏(Omnibar)中使用"I Feel Lucky" 2010.12.29">在Chrome浏览器地址栏(Omnibar)中使用"I Feel Lucky"</a>(0)</li>
<li><a href="http://blog.alwayst.info/let-omnibar-send-you-to-the-right-country-redirection" title="更改Chrome浏览器地址栏(Omnibar)的默认搜索引擎 2010.12.28">更改Chrome浏览器地址栏(Omnibar)的默认搜索引擎</a>(1)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2011. |
<a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox">Permalink</a> |
<a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox#comments">No comment</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/code" rel="tag">code</a>, <a href="http://blog.alwayst.info/tag/firefox" rel="tag">firefox</a>, <a href="http://blog.alwayst.info/tag/google" rel="tag">google</a>, <a href="http://blog.alwayst.info/tag/https" rel="tag">https</a>, <a href="http://blog.alwayst.info/tag/pentadactyl" rel="tag">pentadactyl</a>, <a href="http://blog.alwayst.info/tag/ssl" rel="tag">ssl</a>, <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix the problem when Firefox cannot launch in Ubuntu</title>
		<link>http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu</link>
		<comments>http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu#comments</comments>
		<pubDate>Fri, 25 Mar 2011 16:26:30 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1474</guid>
		<description><![CDATA[I&#8217;ve encountered such problems for several times. I don&#8217;t know why, but it just happens. Bad luck, maybe. First of all, let me describer the syndrome, actually there are two syndromes: After launching the Firefox, the browser returns an error message: firefox is already running, but is not responding&#8230; After launching the Firefox, there&#8217;s totally [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve encountered such problems for several times. I don&#8217;t know why, but it just happens. Bad luck, maybe.</p>
<p>First of all, let me describer the syndrome, actually there are two syndromes:</p>
<ol>
<li>After launching the Firefox, the browser returns an error message:<br />
<blockquote><p><strong>firefox is already running, but is not responding&#8230;</strong></p></blockquote>
</li>
<li>After launching the Firefox, there&#8217;s totally no feedback. At first, the icon will show up, and after a short while, it disappears.</li>
</ol>
<div style="line-height: 150%;">
<h3><strong>So the point is:</strong><strong> how to fix it?</strong></h3>
<p>Of course, everyone knows that you should check the answers which you get from Google. But this time I got no luck, either those guys problems are differ from mine or the answers didn&#8217;t work for me. But at least, you can have a try.</p>
</div>
<div style="line-height: 90%;">
<h4>Solution One:</h4>
<p>Open Terminal (Applications&#8211;Accessories&#8211;Terminal or simply hit Ctrl+Alt+T), enter</p>
<blockquote><p><strong><code>killall firefox-bin</code></strong></p></blockquote>
<p>or</p>
<blockquote><p><strong><code>killall firefox</code></strong></p></blockquote>
<p>then reboot your Firefox.</p>
</div>
<div style="line-height: 120%;">
<h4>Solution Two:</h4>
<p>Unfortunately, solution one didn&#8217;t apply to my problem. So I have to find another one.</p>
<p>Open<strong> Home Folder</strong> (Places&#8211;How Folder), <strong>show all the hidden folders </strong>(you can do it by hit Ctrl+H), find folder named &#8220;<strong>.mozllia</strong>&#8220;, find its sub-folder named &#8220;<strong>firefox</strong>&#8220;, <strong>delete it</strong> and try again.</p>
</div>
<p>Solution Two worked for me, So I hope it will also works for you. Good luck.</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10" title="How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10] 2011.03.23">How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</a>(0)</li>
<li><a href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox" title="Dropbox扩容详尽指南 2010.11.2">Dropbox扩容详尽指南</a>(14)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu" title="在ubuntu内关闭没有响应的程序 2010.09.14">在ubuntu内关闭没有响应的程序</a>(2)</li>
<li><a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu" title="ubuntu9.10下安装dropbox出现的一个问题 2010.07.9">ubuntu9.10下安装dropbox出现的一个问题</a>(1)</li>
<li><a href="http://blog.alwayst.info/some_simple_introductions_of_how_to_fuckgfw" title="崂山道士之术 2010.07.7">崂山道士之术</a>(3)</li>
<li><a href="http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu" title="How to Install .bin Files in Ubuntu 2010.06.1">How to Install .bin Files in Ubuntu</a>(0)</li>
<li><a href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu" title="(译文)如何设置Ubuntu的swap区 2010.05.24">(译文)如何设置Ubuntu的swap区</a>(4)</li>
<li><a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" title="安装Ubuntu和XP双系统 2010.05.24">安装Ubuntu和XP双系统</a>(9)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu#comment-923" title="View the entire comment by T" >@依云 ok, I'll try this next time.</a></li>
<li><a class="commentor" href="http://lilydjwg.is-programmer.com/" >依云</a> : <a class="comment_content" href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu#comment-922" title="View the entire comment by 依云" >Solution Three (I guess): Delete .parentlock (and ...</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2011. |
<a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu">Permalink</a> |
<a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu#comments">2 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/firefox" rel="tag">firefox</a>, <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</title>
		<link>http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10</link>
		<comments>http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10#comments</comments>
		<pubDate>Wed, 23 Mar 2011 01:25:24 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1458</guid>
		<description><![CDATA[Source: How To Install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10] Now Firefox 4 (stable) has finally released, I cannot wait to have a try. Though I use Chrome quite a lot nowadays, Firefox was once my favorite. Somehow it&#8217;s a little bit slow, but it can highly customize, that win my heart, besides, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Source: <a href="http://digitizor.com/2011/03/23/install-firefox-4-ubuntu-2/" target="_blank">How To Install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</a></strong></p>
<p>Now Firefox 4 (stable) has finally released, I cannot wait to have a try. Though I use Chrome quite a lot nowadays, Firefox was once my favorite. Somehow it&#8217;s a little bit slow, but it can highly customize, that win my heart, besides, I&#8217;m quite indulge in&#8221;<a href="http://www.google.com/url?sa=t&amp;source=web&amp;cd=2&amp;ved=0CBwQFjAB&amp;url=https%3A%2F%2Faddons.mozilla.org%2Fen-US%2Ffirefox%2Faddon%2Fpentadactyl%2F&amp;rct=j&amp;q=firefox%20Pentadactyl&amp;ei=v0GJTfu5MMH4cYPoracM&amp;usg=AFQjCNGOylboLaTd01zoIt2IUldT6-rq1A&amp;sig2=GavlLrEcfeUeqM8IFq1Ueg" target="_blank">Pentadactyl</a>&#8220;, an add-on to emulate vim in the browser. Of course, Chrome has the similar extension, &#8220;<a href="https://chrome.google.com/extensions/detail/dbepggeogbaibhgnhhndojpepiihcmeb" target="_blank">Vimium</a>&#8220;, but I suppose  &#8221;<a href="http://www.google.com/url?sa=t&amp;source=web&amp;cd=2&amp;ved=0CBwQFjAB&amp;url=https%3A%2F%2Faddons.mozilla.org%2Fen-US%2Ffirefox%2Faddon%2Fpentadactyl%2F&amp;rct=j&amp;q=firefox%20Pentadactyl&amp;ei=v0GJTfu5MMH4cYPoracM&amp;usg=AFQjCNGOylboLaTd01zoIt2IUldT6-rq1A&amp;sig2=GavlLrEcfeUeqM8IFq1Ueg" target="_blank">Pentadactyl</a>&#8220; is better.</p>
<p>If your OS is other than Ubuntu, you can probably find Firefox installer in <a href="http://www.mozilla.com/en-US/firefox/all.html" target="_blank">this page</a>, download it, click and install, simple and easy. And if you happened to use Ubuntu like me, then follow these steps:</p>
<ol style="line-height: 200%;">
<li> If you are using the development version of Firefox, remove it with the command,<br />
<code><strong>sudo apt-get remove firefox-4.0</strong></code><br />
If you are not using the development version, skip this step.</li>
<li> Now add the Firefox stable PPA.<br />
<code><strong>sudo add-apt-repository ppa:mozillateam/firefox-stable</strong></code></li>
<li>Now update the software list<br />
<code><strong>sudo apt-get update</strong></code></li>
<li> Finally install Firefox 4 with the command.<br />
<code><strong>sudo apt-get install firefox</strong></code><br />
After installation, you will find Firefox under <strong>Applications &gt; Internet &gt; Firefox Web Browser</strong>.</li>
</ol>
<p>Some of the add-ons are not compatible with Firefox 4, such as &#8220;Autoproxy&#8221;, I don&#8217;t know how to fix it now, but I&#8217;m sure with the help Almighty Google, you can find your way.</p>
<p>O.k., let&#8217;s surf.</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu" title="How to fix the problem when Firefox cannot launch in Ubuntu 2011.03.26">How to fix the problem when Firefox cannot launch in Ubuntu</a>(2)</li>
<li><a href="http://blog.alwayst.info/under-ubuntu-shortcut-keys-ctrl-s" title="ubuntu下的快捷键--ctrl+s 2009.10.15">ubuntu下的快捷键--ctrl+s</a>(13)</li>
<li><a href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox" title="Dropbox扩容详尽指南 2010.11.2">Dropbox扩容详尽指南</a>(14)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu" title="在ubuntu内关闭没有响应的程序 2010.09.14">在ubuntu内关闭没有响应的程序</a>(2)</li>
<li><a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu" title="ubuntu9.10下安装dropbox出现的一个问题 2010.07.9">ubuntu9.10下安装dropbox出现的一个问题</a>(1)</li>
<li><a href="http://blog.alwayst.info/some_simple_introductions_of_how_to_fuckgfw" title="崂山道士之术 2010.07.7">崂山道士之术</a>(3)</li>
<li><a href="http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu" title="How to Install .bin Files in Ubuntu 2010.06.1">How to Install .bin Files in Ubuntu</a>(0)</li>
<li><a href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu" title="(译文)如何设置Ubuntu的swap区 2010.05.24">(译文)如何设置Ubuntu的swap区</a>(4)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2011. |
<a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10">Permalink</a> |
<a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10#comments">No comment</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/firefox" rel="tag">firefox</a>, <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a>, <a href="http://blog.alwayst.info/tag/vim" rel="tag">vim</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropbox扩容详尽指南</title>
		<link>http://blog.alwayst.info/enlarge-the-capacity-of-dropbox</link>
		<comments>http://blog.alwayst.info/enlarge-the-capacity-of-dropbox#comments</comments>
		<pubDate>Tue, 02 Nov 2010 14:00:09 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[gSTM]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[翻墙]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1349</guid>
		<description><![CDATA[写在最前面的话： 本文的方法实质上是在欺骗Dropbox，思想低劣，手法庸俗，实在是付不起钱不得已而为之。如果你有一定的财力，请一定购买付费服务，毕竟一个优质的软件是需要资金维持才能生存下去的！ 关于这个话题已经有人详尽地写过，具体在这里。但是我在折腾的过程中又碰到了很多不可预见的问题，所以还是写一下和大家分享。 首先Dropbox作为一个被GFW光荣认证的服务，其质量的优质性不容质疑，这也是我坚定不移使用它的原因。（题外话：ubuntu下的ubuntu one也是个不错的选择。）但被墙的服务使用起来终归有些麻烦，要为其扩容更要点折腾的精神，所以我觉得你至少要知道以下一些概念：翻墙、虚拟机、ubuntu。都明白不？明白就接着看下去，不明白就走酱油通道。 申请帐号 首先当你有了自己的Dropbox以后会有邀请码，别人用你的邀请码注册Dropbox，你们双方就是多250m的Dropbox空间。先利用你的邀请码，翻墙注册n个帐号。Dropbox是不检查帐号的真实性的，你完全可以瞎填，只要方便自己记忆即可。 安装虚拟机和镜像 用这些帐号直接安装Dropbox是不会给你扩容的，因为Dropbox会检查操作系统和网卡的MAC。正因为这样，所以我们要用到虚拟机virtualbox和ubuntu的iso镜像来欺骗Dropbox造成我们在多台机器上安装Dropbox的假象。 首先下载virtualbox和ubuntu的iso镜像，在virtualbox里创建ubuntu虚拟机。（创建什么系统并不重要，只要你自己熟悉就好，我觉得ubuntu的live cd比较好，如此而已。你当然也可以用Windows PE，不过我没有试过，原理上讲是一样的。） From Drop Box 注意，在storage标签页里加载ubuntu的iso镜像，确定之后点击&#8221;Start&#8221;就可以顺利进入ubuntu虚拟机 From Drop Box 选择&#8221;Try Ubuntu&#8220;即可，不必安装，我们只是走走过场。 From Drop Box 连接ssh 进入到ubuntu之后第一步就是连接你的ssh，一般最方便的就是直接用Terminal（终端），可以在下图的位置找到或者直接按快捷键Ctrl+Alt+T From Drop Box 然后输入： ssh -D 7070  -p port -l user yourserver.com 这里的port为你远端主机的端口名，一般为22或443，有变动的话一般空间商会告知你，user为你自己的用户名，yourserver.com为你ssh服务器域名或IP 我很不幸，自己的ssh每天准时在我折腾Dropbox扩容的时候down掉，只好用1984.org提供的ssh，偏偏他们不提供shell，说要在命令行中加 -N 参数，否则在Terminal（终端）下一连接上就断开。这个我到最后都没有搞定，只能放弃，改用图形化程序gSTM。这个程序可以在Ubuntu Software Center里找到。 From Drop Box 在搜索框里搜索&#8221;gstm&#8221; From Drop Box From Drop Box From Drop Box [...]]]></description>
			<content:encoded><![CDATA[<h4><strong>写在最前面的话：</strong></h4>
<p><strong><span style="color: #ff0000;">本文的方法实质上是在欺骗Dropbox，思想低劣，手法庸俗，实在是付不起钱不得已而为之。如果你有一定的财力，请一定购买付费服务，毕竟一个优质的软件是需要资金维持才能生存下去的！</span></strong></p>
<hr />关于这个话题已经有人详尽地写过，具体在<a href="http://www.open2l.com/dropbox-expansion.html" target="_blank">这里</a>。但是我在折腾的过程中又碰到了很多不可预见的问题，所以还是写一下和大家分享。</p>
<p>首先Dropbox作为一个被GFW光荣认证的服务，其质量的优质性不容质疑，这也是我坚定不移使用它的原因。（题外话：ubuntu下的ubuntu one也是个不错的选择。）但被墙的服务使用起来终归有些麻烦，要为其扩容更要点折腾的精神，所以我觉得你至少要知道以下一些概念：<span style="color: #ff0000;"><strong><span style="color: #000000;">翻墙、虚拟机、ubuntu</span></strong></span>。都明白不？明白就接着看下去，不明白就走酱油通道。</p>
<ol>
<h4>
<li> 申请帐号</li>
</h4>
<p>首先当你有了自己的Dropbox以后会有邀请码，别人用你的邀请码注册Dropbox，你们双方就是多250m的Dropbox空间。先利用你的邀请码，翻墙注册n个帐号。Dropbox是不检查帐号的真实性的，你完全可以瞎填，只要方便自己记忆即可。</p>
<h4>
<li> 安装虚拟机和镜像</li>
</h4>
<p>用这些帐号直接安装Dropbox是不会给你扩容的，因为Dropbox会检查操作系统和网卡的MAC。正因为这样，所以我们要用到虚拟机virtualbox和ubuntu的iso镜像来欺骗Dropbox造成我们在多台机器上安装Dropbox的假象。</p>
<p>首先下载<a href="http://www.virtualbox.org/wiki/Downloads" target="_blank">virtualbox</a>和<a href="http://d35x5jwfquk1wr.cloudfront.net/ubuntu-10.10-desktop-i386.iso" target="_blank">ubuntu的iso镜像</a>，在virtualbox里创建ubuntu虚拟机。（创建什么系统并不重要，只要你自己熟悉就好，我觉得ubuntu的live cd比较好，如此而已。你当然也可以用Windows PE，不过我没有试过，原理上讲是一样的。）</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/FGzuHMbwZ75hQHoisoCLKY5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_L_QZlOiI/AAAAAAAAOPE/kX5WNPT86hU/s512/enlarger_dropbox_01.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>注意，在storage标签页里<strong>加载ubuntu的iso镜像</strong>，确定之后点击&#8221;Start&#8221;就可以顺利进入ubuntu虚拟机</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/ChLCoph22MJz2iyc9gMcZY5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_MB-uf_wI/AAAAAAAAOPY/PQJn2bHhy08/s512/enlarger_dropbox_02.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>选择&#8221;<strong>Try Ubuntu</strong>&#8220;即可，不必安装，我们只是走走过场。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/GGNH2k_061M_80mOrftWzY5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh4.ggpht.com/_L1J-lJWR4To/TM_MCk_iXbI/AAAAAAAAOPc/En7gNjpylPU/s512/enlarger_dropbox_03.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<h4>
<li> 连接ssh</li>
</h4>
<p>进入到ubuntu之后第一步就是连接你的ssh，一般最方便的就是直接用Terminal（终端），可以在下图的位置找到或者直接按快捷键Ctrl+Alt+T</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/3YaGATHNsHx6jii1tw3JxY5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_L_ymrNBI/AAAAAAAAOPI/LqJOTfyGBTw/s512/enlarger_dropbox_04.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>然后输入：</p>
<blockquote><p><code>ssh -D 7070  -p <strong>port</strong> -l <strong>user </strong><strong>yourserver.com</strong></code></p>
</blockquote>
<p>这里的<span style="font-weight: bold;"><span style="font-weight: normal;">port</span></span>为你远端主机的端口名，一般为22或443，有变动的话一般空间商会告知你，<span style="font-weight: bold;"><span style="font-weight: normal;">user</span></span>为你自己的用户名，<span style="font-weight: bold;"><span style="font-weight: normal;">yourserver.com</span></span>为你ssh服务器域名或IP</p>
<p>我很不幸，自己的ssh每天准时在我折腾Dropbox扩容的时候down掉，只好用<a href="https://1984bbs.org/" target="_blank">1984.org</a>提供的ssh，偏偏他们不提供shell，说要在命令行中加 -N 参数，否则在Terminal（终端）下一连接上就断开。这个我到最后都没有搞定，只能放弃，改用图形化程序<strong>gSTM</strong>。这个程序可以在Ubuntu Software Center里找到。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/ku0OpXaDAwobCspU2jqIS45cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_MAssYCKI/AAAAAAAAOPM/MrU1vkRZ49o/s512/enlarger_dropbox_05.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>在搜索框里搜索&#8221;gstm&#8221;</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/q8--f2OsR5D9KhoTkHu0PY5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_MBKRao3I/AAAAAAAAOPQ/NeHOGoW3AWM/s512/enlarger_dropbox_06.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/LgugEY6Pe4FKiiXhrG0qRY5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh3.ggpht.com/_L1J-lJWR4To/TM_MDJOzy7I/AAAAAAAAOPg/77S6P_uSGao/s512/enlarger_dropbox_07.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/dgv1PiLJQ7isbxNQ807EVI5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh3.ggpht.com/_L1J-lJWR4To/TM_MD1HoY8I/AAAAAAAAOPk/4laecfb15vA/s512/enlarger_dropbox_08.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>安装完成后在Application&#8211;Internet中打开&#8221;gSTM&#8221;，点击&#8221;Add&#8221;</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/ySFK33PM35SVfSZ-cXHUIo5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh5.ggpht.com/_L1J-lJWR4To/TM_L-4iWrzI/AAAAAAAAOPA/W4LEzZqC6Jk/s512/enlarger_dropbox_10.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>在下图相应位置处填入信息：Name 随意；Host为ssh服务器域名或IP；Login为你的用户名；Port为端口号，一般为22或443。然后再点击&#8221;Add&#8221;，类型选&#8221;Dynamic&#8221;，端口填7070，其他默认。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/vAS7PmYFXQpLnWpH0cs5FY5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh4.ggpht.com/_L1J-lJWR4To/TM_L4sV2MjI/AAAAAAAAOOc/-2JOATdR9gE/s512/enlarger_dropbox_11.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<h4>
<li> 安装Dropbox</li>
</h4>
<p>这里有两种方法：<strong>一种直接在虚拟机中下载；一种在宿主机中先下载完成，再共享到虚拟机。</strong></p>
<p>我觉得后一种方法更好，省去了每次在虚拟机中下载的麻烦。虚拟机中要配置，要下载，效率上肯定是比不过宿主机的。不过这里还是一并说明一下：</p>
<p><strong>一、直接在虚拟机中下载</strong>：依次打开Firefox&#8211;Edit&#8211;Preferences&#8211; Advanced&#8211;Network&#8211;Settings，出现如下图所示：选择Manual proxy configurations，Socks Host填127.0.0.1 Port填7070，确认关闭即可。现在Firefox就全局用ssh代理了，直接去Dropbox的网站下载相应安装程序即可。当然，有人可能知道autoproxy插件，用来甄别是否需要ssh代理，毕竟很多网站并没有被墙，走ssh反而慢。不过在这里本来就不需要开多少网站，安装autoproxy插件，我认为反而麻烦了，走走全局代理即可。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/D2F3sZEoWDIzBNZkycwe1Y5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh3.ggpht.com/_L1J-lJWR4To/TM_L5abKihI/AAAAAAAAOOg/42wGj3W12oY/s512/enlarger_dropbox_12.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p><strong>二、在宿主机中先下载完成，再共享到虚拟机</strong>：现在宿主机中下载好相应的安装程序，放入一个文件夹然后共享出来，接着在ubuntu虚拟机中依次点击Places&#8211;Connect to server，出现如下图所示。Service type根据自己的情况选择，一般大家的宿主机都是Windows吧，那么就选&#8221;Windows share&#8221;；Server填自己宿主机的IP。然后点&#8221;Connect&#8221;连接到宿主机，选择相应共享目录下的安装文件拷贝到虚拟机来安装。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/w9l9RtvA-eOSBD5dfQgM245cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_L6ATGtEI/AAAAAAAAOOo/5D90JNcEwgA/s512/enlarger_dropbox_14.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p><strong>但Dropbox的安装很奇怪，也许是因为被墙的原因，大家应该都会碰到，就是安装完成后无法启动Dropbox的问题，我在</strong><a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu" target="_blank"><strong>以前的博</strong></a><a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu" target="_blank"><strong>文</strong></a><strong>里也有讲到。</strong>虽然不会很明白问题是如何产生的，也不知道解决问题的原理，但大家只要照做就行了。</p>
<blockquote><p>下载Dropbox daemon：32bit <a href="http://www.dropbox.com/download?plat=lnx.x86" target="_blank">这里</a>；64bit <a href="http://www.dropbox.com/download?plat=lnx.x86_64" target="_blank">这里</a><br />
<a href="http://www.dropbox.com/download?plat=lnx.x86_64" target="_blank"></a>解压文件，解压出来的是隐藏文件，所以你可能看不到。<br />
进入Terminal（终端），切换到你解压文件所在的位置。然后键入:<br />
<code>.dropbox-dist/dropboxd</code></p>
</blockquote>
<h4>
<li> 调校Dropbox</li>
</h4>
<p>Terminal（终端）中键入命令后应该会出现如下界面，这时候还是连不上Dropbox，那是肯定的，永远别忘了Dropbox被墙了。这时候要选择&#8221;Connection Options&#8221;进行代理设置。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/oPOrK0aPt_OO8wFwk72p7Y5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_L6yvj3xI/AAAAAAAAOOs/eZ981IVqN64/s512/enlarger_dropbox_15.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>如果没有的话，也可以右键Dropbox图标，点击&#8221;Preference&#8221;</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/6qMVycZ8944JFo3xZCG2m45cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_L7jnQ8WI/AAAAAAAAOOw/9wbS4UvuunU/s512/enlarger_dropbox_16.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>然后按图中所示填入信息：选择Manually proxy settings，Proxy Type选SOCKS5，Server填127.0.0.1，Port填7070。确认后关闭即可。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/zJDnHkKFPhdWykSTpu_wNo5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh3.ggpht.com/_L1J-lJWR4To/TM_L8aFCfVI/AAAAAAAAOO0/Nu7sizKkxkA/s512/enlarger_dropbox_17.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>然后跳出Setup界面，选择&#8221;I already have Dropbox account&#8221;。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/phELNSI5qWgxCd_84Zf09o5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_L8_3j0_I/AAAAAAAAOO4/-X4sa_6vuN8/s512/enlarger_dropbox_18.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>现在就要用到你文章一开始注册的那些Dropbox帐号了，将其中一个填入下图相应位置。</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/-MUphF4Ln4NsGn9EwGrKj45cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TM_L9tbAiwI/AAAAAAAAOO8/QxuDJF6mP0g/s512/enlarger_dropbox_19.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>最后一路Forward完成即可。</p>
<p><strong><span style="color: #ff0000;">O.K.! Done! Your Dropbox&#8217;s Capacity Has Been Enlarged!</span></strong></p>
<h4>
<li> 重新再跑一遍虚拟机。</li>
</h4>
<p><strong><span style="color: #ff0000;">关键是不要忘了去改虚拟机的MAC地址，不然是无效的！</span></strong>virtualbox里提供修改的位置如下图所示：</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/F-bdwKb2aJY7dR36FhY5eY5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh4.ggpht.com/_L1J-lJWR4To/TM_PgfnLkeI/AAAAAAAAOQA/62feLAGAPS0/s512/enlarger_dropbox_20.JPG" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
</ol>
<p><strong>补充说明1</strong> : 在使用Dropbox的时候记得去改系统的hosts文件（不同的操作系统，这个文件的位置也各不相同，ubuntu下好像需要sudo一下才能修改。），增加这么一段：</p>
<blockquote><p>174.36.30.67 dropbox.com<br />
174.36.30.71 www.dropbox.com<br />
75.101.129.115 dl.dropbox.com</p>
</blockquote>
<p>然后Dropbox的设置改成No proxy server。现在就可以无代理正常使用Dropbox软件的同步功能，网页的话好像还是缺样式表，看上去很糟糕。不过无所谓，大家都很少登陆网页版的吧？如果这个方法失效了那就只能走ssh代理了，比较凄惨，所以尽量在Dropbox里以放小文件为主，电影什么的也走ssh代理就有些痛苦了。</p>
<p><strong>补充说明2</strong> : 如果你有edu邮箱，那么去Dropbox认证一下，你的邀请码每邀请一人<strong>可以增加500m空间</strong>。这个也很给力，让我们扩容更省力。大家可以试一试下面这个，我测试过，有效：</p>
<p><a href="https://domains.live.com/members/signup.aspx?domain=mspil.edu.cn" target="_blank">@ mspil.edu.cn 教育部-微软(中国) </a>。另外Dropbox的edu邮箱认证地址：<a href="https://www.dropbox.com/edu" target="_blank">这里</a>。</p>
<p><strong>总结: </strong></p>
<p>文章有些长，图有些乱，如果你已经头昏眼花了，我这里先简单地给你理理思路。</p>
<p><strong>先用你Dropbox的邀请码申请账号，然后在虚拟机中用这些账号去安装Dropbox，然后利用虚拟机不停变换操作系统特征和网卡的MAC使Dropbox始终认为你在不同的电脑上用不同的账号在安装Dropbox，从而达到扩容的目的。</strong></p>
<p><strong>其中的难点在于：</strong></p>
<ol>
<li><strong>Dropbox自身被墙，要在虚拟机中翻墙连接Dropbox服务器。</strong></li>
<li><strong> </strong><strong>Dropbox在ubuntu下的古怪安装程序，需要辅助措施才能安装完成。</strong></li>
</ol>
<hr /><strong><span style="color: #ff0000;">p.s :</span></strong> 如果有朋友确实有困难，又想扩容，我这里可以视情况提供帮助（人太多我就不能为力了），<strong>当然一定记得留下你们的邀请码</strong>。</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/some_simple_introductions_of_how_to_fuckgfw" title="崂山道士之术 2010.07.7">崂山道士之术</a>(3)</li>
<li><a href="http://blog.alwayst.info/ubuntu-achieve-ssh-automatic-re-connection" title="ubuntu下实现ssh自动重连 2009.12.19">ubuntu下实现ssh自动重连</a>(15)</li>
<li><a href="http://blog.alwayst.info/ubuntu-using-ssh" title="Ubuntu下使用SSH 2009.11.10">Ubuntu下使用SSH</a>(5)</li>
<li><a href="http://blog.alwayst.info/troubleshoot-about-tor" title="Troubleshoot : about tor 2009.07.27">Troubleshoot : about tor</a>(2)</li>
<li><a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu" title="ubuntu9.10下安装dropbox出现的一个问题 2010.07.9">ubuntu9.10下安装dropbox出现的一个问题</a>(1)</li>
<li><a href="http://blog.alwayst.info/837" title="VirtualBox的全屏显示问题 2009.11.12">VirtualBox的全屏显示问题</a>(5)</li>
<li><a href="http://blog.alwayst.info/ucweb-e8-8b-b1-e6-96-87-e7-89-88" title="ucweb英文版 2009.09.2">ucweb英文版</a>(2)</li>
<li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu" title="How to fix the problem when Firefox cannot launch in Ubuntu 2011.03.26">How to fix the problem when Firefox cannot launch in Ubuntu</a>(2)</li>
<li><a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10" title="How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10] 2011.03.23">How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox#comment-931" title="View the entire comment by T" >@小本 查收。看看增加了没？</a></li>
<li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox#comment-930" title="View the entire comment by T" >@小本 ok, 下个星期吧，有空的时候我会弄一下的，耐心等候，^_^</a></li>
<li><a class="commentor" href="" >小本</a> : <a class="comment_content" href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox#comment-929" title="View the entire comment by 小本" >看着晕乎乎的...看不懂.. 
我的放了几十首歌 都过半了 2G不够用 ..博主可否帮忙扩充 灰常...</a></li>
<li><a class="commentor" href="" >pob</a> : <a class="comment_content" href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox#comment-865" title="View the entire comment by pob" >@海涛 
先用教育网邮箱激活，用虚拟机装一个xp，精简版的就成，然后新建用户，每个新用户安装登录一...</a></li>
<li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox#comment-864" title="View the entire comment by T" >@海涛  我说的是邀请码。登录你的dropbox，在https://www.dropbox.com/...</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox">Permalink</a> |
<a href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox#comments">14 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/dropbox" rel="tag">dropbox</a>, <a href="http://blog.alwayst.info/tag/gstm" rel="tag">gSTM</a>, <a href="http://blog.alwayst.info/tag/software" rel="tag">software</a>, <a href="http://blog.alwayst.info/tag/ssh" rel="tag">ssh</a>, <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a>, <a href="http://blog.alwayst.info/tag/virtualbox" rel="tag">virtualbox</a>, <a href="http://blog.alwayst.info/tag/%e7%bf%bb%e5%a2%99" rel="tag">翻墙</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/enlarge-the-capacity-of-dropbox/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Fix the Problem which Ubuntu Cannot Root Itself</title>
		<link>http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself</link>
		<comments>http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself#comments</comments>
		<pubDate>Sat, 16 Oct 2010 17:07:46 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[e2fsck]]></category>
		<category><![CDATA[ubnutu]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1341</guid>
		<description><![CDATA[先说说今天的Ubuntu Release Party。我因为坐错了车所以去晚了，结果反而坐在了第一排，说实话，以我的视力坐后面几排还真看不清楚，会严重影响我听讲的效果。我觉得这个活动举办得很成功，看到了不少大牛，听到了不少经验。交流了一下就解决了我输入法的大问题，这个前文也有提到。而且又接触到了一个叫Ubuntu-Tweak的软件，那是相当得给力啊。今天这样的活动一定要继续跟进。 今天一回家就开始折腾Ubuntu10.10，结果我那台陈旧的台式机，在调试的时候突然给我来了个死机，无法启动了。我以为废了，要重装，不过老天毕竟还没有绝我之路啊，一般这样的情况在Windows底下我就放弃了。但今天我看了一下错误代码，大致如下（具体的当然记得没那么清楚，但有一句提示我Try passing init=bootarg）： &#8230; kinit: name_to_dev_t (/dev/disk/by-uuid/84effa58-ee21-420d-9c45-233a552636af) = dev(8,2) kinit: trying to resume from /dev/disk/by-uuid/84effa58-ee21-420d-9c45-233a552636af) kinit: no resume imgae, doing normal boot&#8230;. mount: mounting /dev/disk/bu-uuid/ac67818a-4afa-4a75-b78a-b53758624b2b on /root failed:invalid argument mount: mounting /root/dev on /dev/.static/dev failed: no such file or directory mount: mounting /sys on root/sys failed: no such file or directory Taget [...]]]></description>
			<content:encoded><![CDATA[<p>先说说今天的Ubuntu Release Party。我因为坐错了车所以去晚了，结果反而坐在了第一排，说实话，以我的视力坐后面几排还真看不清楚，会严重影响我听讲的效果。我觉得这个活动举办得很成功，看到了不少大牛，听到了不少经验。交流了一下就解决了我输入法的大问题，这个<a href="http://blog.alwayst.info/some-ubuntu-tips" target="_blank">前文</a>也有提到。而且又接触到了一个叫<a href="http://ubuntu-tweak.com/" target="_blank">Ubuntu-Tweak</a>的软件，那是相当得给力啊。今天这样的活动一定要继续跟进。</p>
<p>今天一回家就开始折腾Ubuntu10.10，结果我那台陈旧的台式机，在调试的时候突然给我来了个死机，无法启动了。我以为废了，要重装，不过老天毕竟还没有绝我之路啊，一般这样的情况在Windows底下我就放弃了。但今天我看了一下错误代码，大致如下（具体的当然记得没那么清楚，但有一句提示我<strong>Try passing init=bootarg</strong>）：</p>
<blockquote><p>&#8230;</p>
<div id="_mcePaste">kinit: name_to_dev_t (/dev/disk/by-uuid/84effa58-ee21-420d-9c45-233a552636af) = dev(8,2)</div>
<div id="_mcePaste">kinit: trying to resume from /dev/disk/by-uuid/84effa58-ee21-420d-9c45-233a552636af)</div>
<div id="_mcePaste">kinit: no resume imgae, doing normal boot&#8230;.</div>
<div id="_mcePaste">mount: mounting /dev/disk/bu-uuid/ac67818a-4afa-4a75-b78a-b53758624b2b on /root failed:invalid argument</div>
<div id="_mcePaste">mount: mounting /root/dev on /dev/.static/dev failed: no such file or directory</div>
<div id="_mcePaste">mount: mounting /sys on root/sys failed: no such file or directory</div>
<div id="_mcePaste">Taget file system doesn&#8217;t have /sbin/init</div>
<div id="_mcePaste">no init found, Try passing init=bootarg</div>
<div id="_mcePaste">Busybox v1.10.2 (ubuntu 1:1.10.2-1 ubuntu7) built in shell (ash) Enter &#8216;help&#8217; for a list of built in commands</div>
<div id="_mcePaste">(initramfs)</div>
</blockquote>
<p>我觉得好像不像是致命错误，应该有救，查了一下果然有办法。</p>
<ol>
<li>找一张Live CD. （我千辛万苦翻出一张Ubuntu9.04的，lucky~）</li>
<li>进入Ubuntu系统，打开终端(Terminal)</li>
<li>输入命令<br />
<blockquote><p><code><strong>sudo e2fsck -C0 -p -f -v /dev/sda1</strong></code></p></blockquote>
</li>
</ol>
<p>e2fsck是一个用于检测和修复ext文件系统的命令。(e2fsck is the program for checking and repairing ext series file systems.)其中的/dev/sda1就是你Ubuntu所在的分区，这个参数根据个人不同的情况进行修改。如果不清楚的话可以用下面的命令来察看。</p>
<blockquote><p><code><strong>sudo fdisk -l</strong></code></p></blockquote>
<p><code> </code></p>
<p>重新开机就终于又顺利地进到了Ubuntu10.10. OH, yes!</p>
<hr /><strong><span style="color: #ff0000;">p.s: </span></strong>情不自禁地要提一下Ubuntu10.10下的字体实在太漂亮了，无论是中文还是英文，这样连写博客都能让人写得那么地愉悦。</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/how-to-change-the-hints-settings-of-pentadactyl" title="How to change the hints settings of Pentadactyl 2011.08.25">How to change the hints settings of Pentadactyl</a>(0)</li>
<li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress" title="几个关于WordPress里留言回复的邮件通知的问题 2010.10.11">几个关于WordPress里留言回复的邮件通知的问题</a>(8)</li>
<li><a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" title="安装Ubuntu和XP双系统 2010.05.24">安装Ubuntu和XP双系统</a>(9)</li>
<li><a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions" title="How to Delete WordPress Post Revisions  2010.01.12">How to Delete WordPress Post Revisions </a>(2)</li>
<li><a href="http://blog.alwayst.info/ubuntu-achieve-ssh-automatic-re-connection" title="ubuntu下实现ssh自动重连 2009.12.19">ubuntu下实现ssh自动重连</a>(15)</li>
<li><a href="http://blog.alwayst.info/google-toolabar-the-problem-can-not-be-synchronized" title="google toolabar无法同步的问题 2009.11.22">google toolabar无法同步的问题</a>(1)</li>
<li><a href="http://blog.alwayst.info/ubuntu-under-the-phenomenon-of-a-loss-of-input" title="Ubuntu下输入法丢失现象一则 2009.11.20">Ubuntu下输入法丢失现象一则</a>(4)</li>
<li><a href="http://blog.alwayst.info/837" title="VirtualBox的全屏显示问题 2009.11.12">VirtualBox的全屏显示问题</a>(5)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://yuanyong.net" >Yin</a> : <a class="comment_content" href="http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself#comment-818" title="View the entire comment by Yin" >字体漂亮？截张图看看嘛。</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself">Permalink</a> |
<a href="http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself#comments">One comment</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/boot" rel="tag">boot</a>, <a href="http://blog.alwayst.info/tag/code" rel="tag">code</a>, <a href="http://blog.alwayst.info/tag/e2fsck" rel="tag">e2fsck</a>, <a href="http://blog.alwayst.info/tag/linux" rel="tag">linux</a>, <a href="http://blog.alwayst.info/tag/ubnutu" rel="tag">ubnutu</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Some Ubuntu Tips</title>
		<link>http://blog.alwayst.info/some-ubuntu-tips</link>
		<comments>http://blog.alwayst.info/some-ubuntu-tips#comments</comments>
		<pubDate>Fri, 15 Oct 2010 17:29:50 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[ibus]]></category>
		<category><![CDATA[li]]></category>
		<category><![CDATA[scim]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1325</guid>
		<description><![CDATA[Ubuntu版本更新 Ubuntu10.10已经发布，但现在还没办法从旧版本直接自动更新到新版本。我们可以通过在终端（terminal）键入命令来实现： update-manager --devel-release 这下就可以看到10.10的upgrade按钮了。关于Ubuntu10.10今天因为刚开始用，谈不上什么心得，直观的感受就是字体变了。和以往的Ubuntu风格一样，新字体还是那么的简洁大方、赏心悦目，我从Ubuntu身上倒是看到了前端设计是多么的重要，多么得能黏住用户。 不过在更新的时候最好不要有其他操作，这篇博文就是在我更新的时候写的，我两台电脑同时更新，几乎都因为chrome的浏览器上写博客导致速度异常缓慢，基本无法接受。 SCIM输入法的bug 每次升级我都会遇到SCIM输入法的bug，具体说来就是打中文时如果按了方向键或者退位键就再也打不出中文了，一定要再切换一次中英文输入法才行。而打字时方向键或者退位键的使用频率是极高的，所以这个bug严重影响使用。我至今也搞不清原因。 解决办法只能是删除重装，不过要注意：在Synaptic Package Manager的选中SCIM后一定要Mark for Complete Removal，然后重启后再重装。别问我为什么，我就是这么搞成功的。对了重装的时候别忘了勾选scim-pinyin，勾选scim的时候默认是不装的。 update1: 测试了一下，还是不行，很奇怪，在浏览器里就是无法使用方向键或者退位键，在gedit里就木有问题。哼，妈了个巴子。 update2: 今天参加了Ubuntu Release Party，询问了一下别人，开始改用ibus-sunpinyin，好像还不错。 Ubuntu和Windows双系统下调整开机菜单的默认选项。 关于﻿Ubuntu和Windows双系统的安装可以参考我的这篇文章。 要修改﻿Ubuntu和Windows双系统开机菜单的默认选项就要修改grub，其相关文件位于/etc/default/grub。首先用管理员权限打开 sudo gedit /etc/default/grub 修改GRUB_DEFAULT=x（举例来说如果你希望的启动项是第5项，就把GRUB_DEFAULT改为4）。有人还提到可以添加了GRUB_GFXMODE=1024×768，来提高Grub界面的分辨率。我试 了一下，不是很好用，还不如没有这一行的效果好，遂放弃。 最后在保存了这个文件之后，还需要执行 sudo update-grub 这个在刚才的文件里也有提示。 Ubuntu下gedit中无法正确显示中文的问题 这个问题是偶然发现的。因为要修改一些html文件，结果无论是gedit还是vim都无法正确显示文件中的中文。解决办法： Alt-F2后键入gconf-editor，打开“配置编辑器”。展开左边的树节点，找到 /apps/gedit-2/preferences/encodings 节点并单击它。双击右边的 auto_detected 键，打开“编辑键”对话框。单击列表右边的“添加”按钮，输入“GB18030”，单击确定按钮。 列表的最底部新增加了一个“GB18030”。单击选中它，并单击右边的 “Up” 按钮直到 “GB18030” 位于列表的顶部为止。 单击确定按钮，关闭配置编辑器。 p.s: 最后情不自禁地推荐两个学习Ubuntu的好地方，Ubuntu中文论坛和WOW! Ubuntu，你能想到的问题几乎都能在这里找到，实在太给力了！ Related PostsFix the Problem which Ubuntu Cannot [...]]]></description>
			<content:encoded><![CDATA[<ol>
<h4>
<li> Ubuntu版本更新</li>
</h4>
<p>Ubuntu10.10已经发布，但现在还没办法从旧版本直接自动更新到新版本。我们可以通过在终端（terminal）键入命令来实现：</p>
<blockquote><p><code>update-manager --devel-release </code></p></blockquote>
<p>这下就可以看到10.10的upgrade按钮了。关于Ubuntu10.10今天因为刚开始用，谈不上什么心得，直观的感受就是字体变了。和以往的Ubuntu风格一样，新字体还是那么的简洁大方、赏心悦目，我从Ubuntu身上倒是看到了前端设计是多么的重要，多么得能黏住用户。</p>
<p><strong><span style="color: #ff0000;">不过在更新的时候最好不要有其他操作，这篇博文就是在我更新的时候写的，我两台电脑同时更新，几乎都因为chrome的浏览器上写博客导致速度异常缓慢，基本无法接受。</span></strong></p>
<h4>
<li>SCIM输入法的bug</li>
</h4>
<p>每次升级我都会遇到SCIM输入法的bug，具体说来就是打中文时如果按了方向键或者退位键就再也打不出中文了，一定要再切换一次中英文输入法才行。而打字时方向键或者退位键的使用频率是极高的，所以这个bug严重影响使用。我至今也搞不清原因。</p>
<p>解决办法只能是删除重装，不过要注意：<strong>在Synaptic Package Manager的选中SCIM后一定要Mark for Complete Removal，然后重启后再重装。</strong>别问我为什么，我就是这么搞成功的。对了重装的时候别忘了勾选scim-pinyin，勾选scim的时候默认是不装的。</p>
<p><span style="color: #ff0000;"><strong>update1: </strong></span>测试了一下，还是不行，很奇怪，在浏览器里就是无法使用方向键或者退位键，在gedit里就木有问题。哼，妈了个巴子。</p>
<p><span style="color: #ff0000;"><strong>update2: </strong></span>今天参加了Ubuntu Release Party，询问了一下别人，开始改用ibus-sunpinyin，好像还不错。</p>
<h4>
<li>Ubuntu和Windows双系统下调整开机菜单的默认选项。</li>
</h4>
<p>关于﻿Ubuntu和Windows双系统的安装可以参考我的<a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" target="_blank">这篇文章</a>。</p>
<p>要修改﻿Ubuntu和Windows双系统开机菜单的默认选项就要修改grub，其相关文件位于/etc/default/grub。首先用管理员权限打开</p>
<blockquote><p><code>sudo gedit /etc/default/grub</code></p></blockquote>
<p>修改GRUB_DEFAULT=x（举例来说如果你希望的启动项是第5项，就把GRUB_DEFAULT改为4）。有人还提到可以添加了GRUB_GFXMODE=1024×768，来提高Grub界面的分辨率。我试 了一下，不是很好用，还不如没有这一行的效果好，遂放弃。</p>
<p>最后在保存了这个文件之后，还需要执行</p>
<blockquote><p><code>sudo update-grub</code></p></blockquote>
<p>这个在刚才的文件里也有提示。</p>
<h4>
<li>Ubuntu下gedit中无法正确显示中文的问题</li>
</h4>
<p>这个问题是偶然发现的。因为要修改一些html文件，结果无论是gedit还是vim都无法正确显示文件中的中文。解决办法：</p>
<div id="_mcePaste">Alt-F2后键入gconf-editor，打开“配置编辑器”。展开左边的树节点，找到 /apps/gedit-2/preferences/encodings 节点并单击它。双击右边的 auto_detected 键，打开“编辑键”对话框。单击列表右边的“添加”按钮，输入“GB18030”，单击确定按钮。</div>
<div id="_mcePaste">列表的最底部新增加了一个“GB18030”。单击选中它，并单击右边的 “Up” 按钮直到 “GB18030” 位于列表的顶部为止。</div>
<div id="_mcePaste">单击确定按钮，关闭配置编辑器。</div>
</ol>
<hr /><span style="color: #ff0000;"><strong>p.s:</strong></span> 最后情不自禁地推荐两个学习Ubuntu的好地方，<a href="http://forum.ubuntu.org.cn/" target="_blank">Ubuntu中文论坛</a>和<a href="http://wowubuntu.com/" target="_blank">WOW! Ubuntu</a>，你能想到的问题几乎都能在这里找到，实在太给力了！</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself" title="Fix the Problem which Ubuntu Cannot Root Itself 2010.10.17">Fix the Problem which Ubuntu Cannot Root Itself</a>(1)</li>
<li><a href="http://blog.alwayst.info/ubuntu-under-the-phenomenon-of-a-loss-of-input" title="Ubuntu下输入法丢失现象一则 2009.11.20">Ubuntu下输入法丢失现象一则</a>(4)</li>
<li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" title="安装Ubuntu和XP双系统 2010.05.24">安装Ubuntu和XP双系统</a>(9)</li>
<li><a href="http://blog.alwayst.info/ubuntu-achieve-ssh-automatic-re-connection" title="ubuntu下实现ssh自动重连 2009.12.19">ubuntu下实现ssh自动重连</a>(15)</li>
<li><a href="http://blog.alwayst.info/837" title="VirtualBox的全屏显示问题 2009.11.12">VirtualBox的全屏显示问题</a>(5)</li>
<li><a href="http://blog.alwayst.info/ubuntu-using-ssh" title="Ubuntu下使用SSH 2009.11.10">Ubuntu下使用SSH</a>(5)</li>
<li><a href="http://blog.alwayst.info/to-talk-about-the-typing-and-to-talk-about-dvorak" title="谈谈打字，兼谈Dvorak 2009.10.18">谈谈打字，兼谈Dvorak</a>(13)</li>
<li><a href="http://blog.alwayst.info/under-ubuntu-shortcut-keys-ctrl-s" title="ubuntu下的快捷键--ctrl+s 2009.10.15">ubuntu下的快捷键--ctrl+s</a>(13)</li>
<li><a href="http://blog.alwayst.info/%e8%b0%88%e8%b0%88%e5%af%b9ubuntu%e7%9a%84%e4%b8%8d%e9%80%82" title="谈谈对ubuntu的不适 2009.05.15">谈谈对ubuntu的不适</a>(7)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://lifeandbeyondlife.com/member.php?136008-Himbikiscuimi" >Clark Zeminski</a> : <a class="comment_content" href="http://blog.alwayst.info/some-ubuntu-tips#comment-933" title="View the entire comment by Clark Zeminski" >Hey there I am so thrilled I found your blog, I re...</a></li>
<li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/some-ubuntu-tips#comment-805" title="View the entire comment by T" >@小邪 wubi吗？一直听说，但我没用这个装过Ubuntu，不熟悉。</a></li>
<li><a class="commentor" href="http://www.evlos.org" >小邪</a> : <a class="comment_content" href="http://blog.alwayst.info/some-ubuntu-tips#comment-804" title="View the entire comment by 小邪" >wubi安装一定要安装在根目录，有点小纠结 ~ 嘿嘿 ~</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/some-ubuntu-tips">Permalink</a> |
<a href="http://blog.alwayst.info/some-ubuntu-tips#comments">4 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/boot" rel="tag">boot</a>, <a href="http://blog.alwayst.info/tag/code" rel="tag">code</a>, <a href="http://blog.alwayst.info/tag/encoding" rel="tag">encoding</a>, <a href="http://blog.alwayst.info/tag/gedit" rel="tag">gedit</a>, <a href="http://blog.alwayst.info/tag/ibus" rel="tag">ibus</a>, <a href="http://blog.alwayst.info/tag/li" rel="tag">li</a>, <a href="http://blog.alwayst.info/tag/linux" rel="tag">linux</a>, <a href="http://blog.alwayst.info/tag/scim" rel="tag">scim</a>, <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/some-ubuntu-tips/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>在ubuntu内关闭没有响应的程序</title>
		<link>http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu</link>
		<comments>http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu#comments</comments>
		<pubDate>Mon, 13 Sep 2010 18:11:11 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1260</guid>
		<description><![CDATA[ubuntu很少碰到程序失去响应的情况，可正因为如此，一旦碰到了就束手无策。传统windows下的ctrl+alt+del无用，被我强关了几次以后发现还是要学习一下。正确的做法是： ctrl+alt+d 切回到桌面 ctrl+alt+t 调用出Terminal 输入 ps -aux 在长长的进程表中找出需要关闭的程序的PID，下面的命令里要用到。进程表很长，不好找？失去响应的程序一定占用了cpu和memery，看看哪个的%CPU和%MEM高就可以了 输入 kill PID（第四步里找到的那个数字） 另外，有人说ctrl+alt+f1可以调出Console，为什么我从来没有成功过？ update (2011.3.30): 有一个更快捷的方法，用命令行注销账户： 调出terminal, 键入 gnome-session-save &#8211;kill &#8211;silent Related PostsSet SSL Google as the Default Search Engine when using Pentadactyl in Firefox(0) How to fix the problem when Firefox cannot launch in Ubuntu(2) How to install Firefox 4 (Stable) In Ubuntu [10.04 [...]]]></description>
			<content:encoded><![CDATA[<p>ubuntu很少碰到程序失去响应的情况，可正因为如此，一旦碰到了就束手无策。传统windows下的ctrl+alt+del无用，被我强关了几次以后发现还是要学习一下。正确的做法是：</p>
<ol>
<li>ctrl+alt+d 切回到桌面</li>
<li>ctrl+alt+t 调用出Terminal</li>
<li>输入 <code>ps -aux</code></li>
<li>在长长的进程表中找出需要关闭的程序的PID，下面的命令里要用到。进程表很长，不好找？失去响应的程序一定占用了cpu和memery，看看哪个的%CPU和%MEM高就可以了</li>
<li>输入 <code>kill PID</code>（第四步里找到的那个数字）</li>
</ol>
<p>另外，有人说ctrl+alt+f1可以调出Console，为什么我从来没有成功过？</p>
<p><span style="color: #ff0000;"><strong>update (2011.3.30):</strong></span> 有一个更快捷的方法，用命令行注销账户： 调出terminal, 键入</p>
<blockquote><p><strong>gnome-session-save &#8211;kill &#8211;silent</strong></p></blockquote>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu" title="How to fix the problem when Firefox cannot launch in Ubuntu 2011.03.26">How to fix the problem when Firefox cannot launch in Ubuntu</a>(2)</li>
<li><a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10" title="How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10] 2011.03.23">How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</a>(0)</li>
<li><a href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox" title="Dropbox扩容详尽指南 2010.11.2">Dropbox扩容详尽指南</a>(14)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu" title="ubuntu9.10下安装dropbox出现的一个问题 2010.07.9">ubuntu9.10下安装dropbox出现的一个问题</a>(1)</li>
<li><a href="http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu" title="How to Install .bin Files in Ubuntu 2010.06.1">How to Install .bin Files in Ubuntu</a>(0)</li>
<li><a href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu" title="(译文)如何设置Ubuntu的swap区 2010.05.24">(译文)如何设置Ubuntu的swap区</a>(4)</li>
<li><a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" title="安装Ubuntu和XP双系统 2010.05.24">安装Ubuntu和XP双系统</a>(9)</li>
<li><a href="http://blog.alwayst.info/ubuntu-achieve-ssh-automatic-re-connection" title="ubuntu下实现ssh自动重连 2009.12.19">ubuntu下实现ssh自动重连</a>(15)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://www.thonion.org" >thonion</a> : <a class="comment_content" href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu#comment-708" title="View the entire comment by thonion" >ctrl+alt+F1~F6都可以啊，至少我的ubuntu 10.04可以。掉出来的是字符控制台，需...</a></li>
<li><a class="commentor" href="http://lilydjwg.is-programmer.com/" >依云</a> : <a class="comment_content" href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu#comment-707" title="View the entire comment by 依云" >pkill 部分程序名</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu">Permalink</a> |
<a href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu#comments">2 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ubuntu9.10下安装dropbox出现的一个问题</title>
		<link>http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu</link>
		<comments>http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu#comments</comments>
		<pubDate>Fri, 09 Jul 2010 11:49:41 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1229</guid>
		<description><![CDATA[昨天在ubuntu9.10下安装dropbox出了问题：安装完后启动dropbox，提示我&#8221;in order to use dropbox you must download propritary daemon&#8220;，我没有管他直接按了&#8221;ok&#8221;，紧接着有蹦出一条错误&#8221;Trouble connecting to Dropbox servers. Maybe your internet connection is down, or you need to set your http_proxy environment variable.&#8220;然后dropbox就启动不起来了，很奇怪的毛病，以前好像没碰到过，但既然有提示己跟着提示走。查了查资料，还确实有人和我碰到一样的情况。最后参考了一下这里的文章，把问题解决了。写在这里公大家参考，顺便做个笔记。 按着提示下载Dropbox daemon： 32bit: 这里 64bit: 这里 解压文件，解压出来的是隐藏文件，所以你可能看不到。 进入shell命令行，切换到你解压文件所在的位置。然后键入: /.dropbox-dist/dropboxd 好了，现在就ok了，可以顺利在ubuntu9.10下打开dropbox了。家里电脑比较陈旧所以我装的是9.10，在单位我装的是10.04，貌似就没碰到过类似问题，是ubuntu版本号陈旧遗留下的问题吗？迷惑ing&#8230; p.s: 如果你觉得dropbox不错，可以通过这个链接，注册下载使用dropbox，好处是你我都多250m的空间。（虽然没什么效果，但是不写出来还是有些不爽。） Related PostsDropbox扩容详尽指南(14) Set SSL Google as the Default Search Engine when using Pentadactyl in [...]]]></description>
			<content:encoded><![CDATA[<p>昨天在ubuntu9.10下安装dropbox出了问题：安装完后启动dropbox，提示我&#8221;<strong>in order to use dropbox you must download propritary daemon</strong>&#8220;，我没有管他直接按了&#8221;ok&#8221;，紧接着有蹦出一条错误&#8221;<strong>Trouble connecting to Dropbox servers. Maybe your internet connection is down, or you need to set your http_proxy environment variable.</strong>&#8220;然后dropbox就启动不起来了，很奇怪的毛病，以前好像没碰到过，但既然有提示己跟着提示走。查了查资料，还确实有人和我碰到一样的情况。最后参考了一下<a href="http://danielschultz.wordpress.com/2009/11/09/dropbox-behind-a-proxy/" target="_blank">这里</a>的文章，把问题解决了。写在这里公大家参考，顺便做个笔记。</p>
<div id="_mcePaste">
<ul>
<li>按着提示下载Dropbox daemon：<br />
32bit: <a href="http://www.dropbox.com/download?plat=lnx.x86" target="_blank">这里<br />
</a>64bit: <a href="http://www.dropbox.com/download?plat=lnx.x86_64" target="_blank">这里</a></li>
<li><a href="http://www.dropbox.com/download?plat=lnx.x86_64" target="_blank"></a>解压文件，解压出来的是隐藏文件，所以你可能看不到。</li>
<li>进入shell命令行，切换到你解压文件所在的位置。然后键入:<br />
<blockquote><p><code>/.dropbox-dist/dropboxd</code></p></blockquote>
</li>
</ul>
</div>
<div id="_mcePaste">好了，现在就ok了，可以顺利在ubuntu9.10下打开dropbox了。家里电脑比较陈旧所以我装的是9.10，在单位我装的是10.04，貌似就没碰到过类似问题，是ubuntu版本号陈旧遗留下的问题吗？迷惑ing&#8230;</div>
<div></div>
<hr />p.s: 如果你觉得dropbox不错，可以通过这个<a href="https://www.dropbox.com/referrals/NTEyMDcwMDg5" target="_blank">链接</a>，注册下载使用dropbox，好处是你我都多250m的空间。（虽然没什么效果，但是不写出来还是有些不爽。）</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox" title="Dropbox扩容详尽指南 2010.11.2">Dropbox扩容详尽指南</a>(14)</li>
<li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu" title="How to fix the problem when Firefox cannot launch in Ubuntu 2011.03.26">How to fix the problem when Firefox cannot launch in Ubuntu</a>(2)</li>
<li><a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10" title="How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10] 2011.03.23">How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</a>(0)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu" title="在ubuntu内关闭没有响应的程序 2010.09.14">在ubuntu内关闭没有响应的程序</a>(2)</li>
<li><a href="http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu" title="How to Install .bin Files in Ubuntu 2010.06.1">How to Install .bin Files in Ubuntu</a>(0)</li>
<li><a href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu" title="(译文)如何设置Ubuntu的swap区 2010.05.24">(译文)如何设置Ubuntu的swap区</a>(4)</li>
<li><a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" title="安装Ubuntu和XP双系统 2010.05.24">安装Ubuntu和XP双系统</a>(9)</li>
<li><a href="http://blog.alwayst.info/ubuntu-achieve-ssh-automatic-re-connection" title="ubuntu下实现ssh自动重连 2009.12.19">ubuntu下实现ssh自动重连</a>(15)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu">Permalink</a> |
<a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu#comments">One comment</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/dropbox" rel="tag">dropbox</a>, <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Install .bin Files in Ubuntu</title>
		<link>http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu</link>
		<comments>http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu#comments</comments>
		<pubDate>Tue, 01 Jun 2010 14:45:56 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1203</guid>
		<description><![CDATA[随手记录下，免得忘了。好像挺简单的，可不会的时候就是不会，一点也木有办法。 打开terminal(终端)，进到.bin文件所在的目录下，输入以下两条命令： chmod a+x name_of_file.bin sudo ./name_of_file.bin Related PostsSet SSL Google as the Default Search Engine when using Pentadactyl in Firefox(0) How to fix the problem when Firefox cannot launch in Ubuntu(2) How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10](0) Dropbox扩容详尽指南(14) Some Ubuntu Tips(4) 在ubuntu内关闭没有响应的程序(2) ubuntu9.10下安装dropbox出现的一个问题(1) (译文)如何设置Ubuntu的swap区(4) 安装Ubuntu和XP双系统(9) ubuntu下实现ssh自动重连(15) Recent Comments © [...]]]></description>
			<content:encoded><![CDATA[<p>随手记录下，免得忘了。好像挺简单的，可不会的时候就是不会，一点也木有办法。</p>
<p>打开terminal(终端)，进到.bin文件所在的目录下，输入以下两条命令：</p>
<blockquote><p><code>chmod a+x name_of_file.bin</code></p></blockquote>
<blockquote><p><code>sudo ./name_of_file.bin</code></p></blockquote>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu" title="How to fix the problem when Firefox cannot launch in Ubuntu 2011.03.26">How to fix the problem when Firefox cannot launch in Ubuntu</a>(2)</li>
<li><a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10" title="How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10] 2011.03.23">How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</a>(0)</li>
<li><a href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox" title="Dropbox扩容详尽指南 2010.11.2">Dropbox扩容详尽指南</a>(14)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu" title="在ubuntu内关闭没有响应的程序 2010.09.14">在ubuntu内关闭没有响应的程序</a>(2)</li>
<li><a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu" title="ubuntu9.10下安装dropbox出现的一个问题 2010.07.9">ubuntu9.10下安装dropbox出现的一个问题</a>(1)</li>
<li><a href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu" title="(译文)如何设置Ubuntu的swap区 2010.05.24">(译文)如何设置Ubuntu的swap区</a>(4)</li>
<li><a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" title="安装Ubuntu和XP双系统 2010.05.24">安装Ubuntu和XP双系统</a>(9)</li>
<li><a href="http://blog.alwayst.info/ubuntu-achieve-ssh-automatic-re-connection" title="ubuntu下实现ssh自动重连 2009.12.19">ubuntu下实现ssh自动重连</a>(15)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu">Permalink</a> |
<a href="http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu#comments">No comment</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(译文)如何设置Ubuntu的swap区</title>
		<link>http://blog.alwayst.info/how_to_add_swap_in_ubuntu</link>
		<comments>http://blog.alwayst.info/how_to_add_swap_in_ubuntu#comments</comments>
		<pubDate>Mon, 24 May 2010 15:54:36 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[翻译]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1193</guid>
		<description><![CDATA[接着上一篇文章，来讲一讲如何设置Ubuntu的swap区。在ubuntu社区里找到这样一篇文章，点击此处，这里只节选一段翻译供大家学习。 如何添加swap？ swap一般都在一个专有的swap区里，这可能是因为在安装的时候系统会提示你创建一个swap区。但实际上任何文件都可以被用作swap(交换设备)，无论是一个分区或是一个简单的文件。尽管如此，为了更好的体验效果和感应速度，还是建议使用大容量的内存，而不是依赖swap。可以通过添加一个swap文件来增加swap。 共分四步 创建一个你预设好大小的文件。 将该文件格式化成swap(交换设备)。 将swap添加到现有系统中。 在系统里作一个永久性变更。 要添加一个512M的swap 创建一个512M的文件: 我们会在 /mnt/512Mb.swap 上创建一个swap文件。 sudo dd if=/dev/zero of=/mnt/512Mb.swap bs=1M count=512 代码中的 count=512 的意思是我们要创建文件，其中包含了512个 bs=1M(bs = block size 区块大小; 1M＝1mebibyte 一兆 ＝1048576 bytes 字节) 的区块。 请注意*不要*使用 dd of=/mnt/512Mb.swap bs=1M seek=512 count=0 这条命令。虽然文件会马上增长到512Mb，但是这是有漏洞的，可能会造成无法使用。 格式化文件，使之成为swap(交换设备): sudo mkswap /mnt/512Mb.swap 将swap加入到现有系统中: sudo swapon /mnt/512Mb.swap 现在新增的swap可以通过&#8221;cat /proc/meminfo&#8220;命令看到。 做永久性变更: 编辑 /etc/fstab 文件: gksudo gedit /etc/fstab 在文件末尾加上如下一行: /mnt/512Mb.swap [...]]]></description>
			<content:encoded><![CDATA[<p>接着<a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" target="_blank">上一篇文章</a>，来讲一讲如何设置Ubuntu的swap区。在ubuntu社区里找到这样一篇文章，点击<a href="https://help.ubuntu.com/community/SwapFaq#How%20do%20I%20add%20more%20swap?" target="_blank">此处</a>，这里只节选一段翻译供大家学习。</p>
<hr />
<h4>如何添加swap？</h4>
<p>swap一般都在一个专有的swap区里，这可能是因为在安装的时候系统会提示你创建一个swap区。但实际上任何文件都可以被用作swap(交换设备)，无论是一个分区或是一个简单的文件。尽管如此，为了更好的体验效果和感应速度，还是建议使用大容量的内存，而不是依赖swap。可以通过添加一个swap文件来增加swap。</p>
<h5>共分四步</h5>
<ol>
<li>创建一个你预设好大小的文件。</li>
<li>将该文件格式化成swap(交换设备)。</li>
<li>将swap添加到现有系统中。</li>
<li>在系统里作一个永久性变更。</li>
</ol>
<p>要添加一个512M的swap</p>
<ul>
<li>创建一个512M的文件:</li>
</ul>
<p>我们会在 /mnt/512Mb.swap 上创建一个swap文件。</p>
<pre>sudo dd if=/dev/zero of=/mnt/512Mb.swap bs=1M count=512</pre>
<p>代码中的 <strong>count=512 </strong>的意思是我们要创建文件，其中包含了512个 <strong>bs=1M</strong>(bs = block size 区块大小; 1M＝1mebibyte 一兆 ＝1048576 bytes 字节) 的区块。 请注意<strong>*不要*</strong>使用 <em><strong>dd of=/mnt/512Mb.swap bs=1M seek=512 count=0</strong></em> 这条命令。虽然文件会马上增长到512Mb，但是这是有漏洞的，可能会造成无法使用。</p>
<ul>
<li>格式化文件，使之成为swap(交换设备):</li>
</ul>
<pre>sudo mkswap /mnt/512Mb.swap</pre>
<ul>
<li>将swap加入到现有系统中:</li>
</ul>
<pre>sudo swapon /mnt/512Mb.swap</pre>
<p>现在新增的swap可以通过&#8221;<strong>cat /proc/meminfo</strong>&#8220;命令看到。</p>
<ul>
<li>做永久性变更:</li>
</ul>
<p>编辑 /etc/fstab 文件:</p>
<pre>gksudo gedit /etc/fstab</pre>
<p>在文件末尾加上如下一行:</p>
<pre>/mnt/512Mb.swap  none  swap  sw  0 0</pre>
<p>保存并重启。</p>
<h5>一个swap文件的示例</h5>
<p>如下的例子展现了在一台没有swap分区的电脑上创建和使用swap。</p>
<pre>user@computer:~$ sudo dd if=/dev/zero of=/mnt/512Mb.swap bs=1M count=512
Password:
512+0 records in
512+0 records out
536870912 bytes (537 MB) copied, 35.3802 seconds, 15.2 MB/s
user@computer:~$ sudo mkswap /mnt/512Mb.swap
Setting up swapspace version 1, size = 536866 kB
no label, UUID=dd6a01c8-93f0-41e0-9b7a-306956d8821b
user@computer:~$ sudo swapon /mnt/512Mb.swap
user@computer:~$ cat /proc/meminfo
MemTotal:       499496 kB
MemFree:          9156 kB
Buffers:          4748 kB
Cached:         233140 kB
SwapCached:        724 kB
Active:         254432 kB
Inactive:       157920 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       499496 kB
LowFree:          9156 kB
SwapTotal:      524280 kB
SwapFree:       523556 kB
Dirty:             128 kB
Writeback:           0 kB
Mapped:         243420 kB
Slab:            20672 kB
CommitLimit:    774028 kB
Committed_AS:   648680 kB
PageTables:       2224 kB
VmallocTotal:   524280 kB
VmallocUsed:      5708 kB
VmallocChunk:   518176 kB
user@computer:~$ gksudo gedit /etc/fstab
user@computer:~$ free
             total       used       free     shared    buffers     cached
Mem:        499496     479488      20008          0       8256     215892
-/+ buffers/cache:     255340     244156
Swap:       524280       3856     520424
#####Then, after running a few more programs...
user@computer:~$ free
             total       used       free     shared    buffers     cached
Mem:        499496     492768       6728          0       1240     142336
-/+ buffers/cache:     349192     150304
Swap:       524280      53384     470896

#####Next, reboot to make sure it will work consistently.
user@computer:~$ free
             total       used       free     shared    buffers     cached
Mem:        499496     493136       6360          0       7528     174700
-/+ buffers/cache:     310908     188588
Swap:       524280      17148     507132</pre>
<p>撤销你的变更 :</p>
<p>基本上只要将刚才所做的再反过来做一遍就好了。</p>
<pre>gksudo gedit /etc/fstab</pre>
<p>删除刚才添加的最末一行</p>
<pre>/mnt/512Mb.swap  none  swap  sw  0 0</pre>
<p>在现有系统中删除swap并删除创建的swap文件。</p>
<pre>sudo swapoff /mnt/512Mb.swap &amp;&amp; sudo rm /mnt/512Mb.swap</pre>
<p>无需重启。</p>
<hr /><strong>当然，所有例子都不能生搬硬套。</strong>如果按<a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" target="_blank">上一篇文章</a>的方法安装双系统，我们就可以把swap区设置在扩展分区里，就是我们说的ubuntu和windows共用的storage区，<strong>相应的目录也应该从刚才提到的/mnt/512Mb.swap 改成 /media/xxx/512Mb.swap，xxx每个人都不一样，这取决于你是如何给自己的扩展分区命名的。</strong></p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-fix-the-problem-when-firefox-cannot-launch-in-ubuntu" title="How to fix the problem when Firefox cannot launch in Ubuntu 2011.03.26">How to fix the problem when Firefox cannot launch in Ubuntu</a>(2)</li>
<li><a href="http://blog.alwayst.info/how-to-install-firefox-4-stable-in-ubuntu-10-04-and-10-10" title="How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10] 2011.03.23">How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]</a>(0)</li>
<li><a href="http://blog.alwayst.info/enlarge-the-capacity-of-dropbox" title="Dropbox扩容详尽指南 2010.11.2">Dropbox扩容详尽指南</a>(14)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/kill_the_processes_that_do_not_respond_in_ubuntu" title="在ubuntu内关闭没有响应的程序 2010.09.14">在ubuntu内关闭没有响应的程序</a>(2)</li>
<li><a href="http://blog.alwayst.info/troubleshoot_the_problem_of_install_dropbox_into_ubuntu" title="ubuntu9.10下安装dropbox出现的一个问题 2010.07.9">ubuntu9.10下安装dropbox出现的一个问题</a>(1)</li>
<li><a href="http://blog.alwayst.info/how_to_install_-bin_files_in_ubuntu" title="How to Install .bin Files in Ubuntu 2010.06.1">How to Install .bin Files in Ubuntu</a>(0)</li>
<li><a href="http://blog.alwayst.info/dual_boot_ubuntu_and_xp" title="安装Ubuntu和XP双系统 2010.05.24">安装Ubuntu和XP双系统</a>(9)</li>
<li><a href="http://blog.alwayst.info/carnivorous_plants" title="(译文)Carnivorous Plants 2010.05.6">(译文)Carnivorous Plants</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu#comment-607" title="View the entire comment by T" >@依云  
好，一会就去看看。</a></li>
<li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu#comment-606" title="View the entire comment by T" >@依云  
哈哈，是吧？我想当然了。邮件回复问题我也发现了，试了几个插件都不行，就搁置着不管了，T...</a></li>
<li><a class="commentor" href="http://lilydjwg.is-programmer.com/" >依云</a> : <a class="comment_content" href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu#comment-604" title="View the entire comment by 依云" >知道那个hole是什么意思了，维基sparse file条目有解释。</a></li>
<li><a class="commentor" href="http://lilydjwg.is-programmer.com/" >依云</a> : <a class="comment_content" href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu#comment-601" title="View the entire comment by 依云" >dd命令那里，it will have holes that makes it unusable。这...</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu">Permalink</a> |
<a href="http://blog.alwayst.info/how_to_add_swap_in_ubuntu#comments">4 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/swap" rel="tag">swap</a>, <a href="http://blog.alwayst.info/tag/ubuntu" rel="tag">ubuntu</a>, <a href="http://blog.alwayst.info/tag/%e7%bf%bb%e8%af%91" rel="tag">翻译</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/how_to_add_swap_in_ubuntu/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

