Permalink
Browse files

Site updated at 2012-06-20 06:48:57 UTC

  • Loading branch information...
1 parent 0a7170a commit 95345ef6b13e526e8cabb36dd3ebae1d28268b45 @wongyouth committed Jun 20, 2012
View
@@ -4,7 +4,7 @@
<title><![CDATA[Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2012-06-19T17:23:58+08:00</updated>
+ <updated>2012-06-20T14:48:21+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
@@ -14,6 +14,74 @@
<entry>
+ <title type="html"><![CDATA[配置一个新的Ubuntu开发环境]]></title>
+ <link href="http://wongyouth.github.com/blog/2012/06/20/setup-new-ubuntu-environment/"/>
+ <updated>2012-06-20T14:09:00+08:00</updated>
+ <id>http://wongyouth.github.com/blog/2012/06/20/setup-new-ubuntu-environment</id>
+ <content type="html"><![CDATA[<p>今天刚申请到<a href="http://linode.com">linode</a>的<code>vps</code>主机,就迫不及待的安装了ubuntu,于是有要配置安装一大堆东西,
+在这里给总结一下。</p>
+
+<!-- more -->
+
+
+<h2>更新源</h2>
+
+<pre><code>sudo apt-get update
+</code></pre>
+
+<h2>安装系统包</h2>
+
+<pre><code>sudo apt-get -y install git-core curl zsh exuberant-ctags vim
+</code></pre>
+
+<h2>安装<code>oh-my-zsh</code>,如果你使用<code>bash</code>可以跳过此步骤</h2>
+
+<pre><code>curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
+</code></pre>
+
+<h2>切换到<code>zsh</code></h2>
+
+<pre><code>chsh -s `which zsh`
+</code></pre>
+
+<h2>配置主目录里面常用的dotfiles文件</h2>
+
+<pre><code>git clone git://github.com/wongyouth/dotfiles ~/.dotfiles
+cd ~/.dotfiles
+rake install
+</code></pre>
+
+<h2>设置<code>vim</code>文件,安装常用的<code>vim</code>插件</h2>
+
+<pre><code>curl https://raw.github.com/wongyouth/vimfiles/master/install.sh | bash
+</code></pre>
+
+<h2>安装<code>ruby</code>环境管理工具<code>rbenv</code></h2>
+
+<pre><code>curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
+rbenv bootstrap-ubuntu-12-04
+</code></pre>
+
+<h2>安装ruby1.9</h2>
+
+<pre><code>rbenv install 1.9.3-p194
+rbenv global 1.9.3-p194
+</code></pre>
+
+<h2>更新<code>gem</code> 并安装 <code>bundler</code> <code>rake</code></h2>
+
+<pre><code>gem update --system
+gem install bundler rake
+</code></pre>
+
+<h2>更新<code>rbenv</code>的<code>shim</code>,使<code>rake</code>, <code>bundle</code>命令可以直接使用</h2>
+
+<pre><code>rbenv rehash
+</code></pre>
+]]></content>
+ </entry>
+
+ <entry>
<title type="html"><![CDATA[tmall砸金蛋活动脚本]]></title>
<link href="http://wongyouth.github.com/blog/2012/06/18/tmall-za-jin-dan/"/>
<updated>2012-06-18T19:32:00+08:00</updated>
@@ -31,10 +99,10 @@
<p>运行环境 ruby</p>
<pre><code>gem install capybara # install capybara
-ruby zha.rb # zha.rb脚本
+ruby za.rb # za.rb脚本
</code></pre>
-<figure class='code'><figcaption><span>zha.rb</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<figure class='code'><figcaption><span>za.rb</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
@@ -143,7 +211,7 @@ ruby zha.rb # zha.rb脚本
</span><span class='line'> <span class="nb">sleep</span> <span class="mi">2</span>
</span><span class='line'><span class="k">end</span>
</span><span class='line'>
-</span><span class='line'><span class="k">def</span> <span class="nf">zha</span>
+</span><span class='line'><span class="k">def</span> <span class="nf">za</span>
</span><span class='line'> <span class="n">visit</span><span class="p">(</span><span class="s1">&#39;/&#39;</span><span class="p">)</span>
</span><span class='line'> <span class="mi">10000</span><span class="o">.</span><span class="n">downto</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">each</span> <span class="k">do</span>
</span><span class='line'> <span class="n">find</span><span class="p">(</span><span class="s1">&#39;#J_Vol_Brick_Btn&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">click</span>
@@ -155,7 +223,7 @@ ruby zha.rb # zha.rb脚本
</span><span class='line'><span class="k">end</span>
</span><span class='line'>
</span><span class='line'><span class="n">login</span>
-</span><span class='line'><span class="n">zha</span>
+</span><span class='line'><span class="n">za</span>
</span></code></pre></td></tr></table></div></figure>
@@ -282,6 +282,10 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2012/06/20/setup-new-ubuntu-environment/">配置一个新的Ubuntu开发环境</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
</li>
@@ -297,10 +301,6 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
<a href="/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/">用octopress来写博客并发布到Github上</a>
</li>
- <li class="post">
- <a href="/blog/2012/04/21/install-ruby-environment-on-ubuntu/">Ubuntu下安装ruby开发环境</a>
- </li>
-
</ul>
</section>
@@ -273,6 +273,10 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2012/06/20/setup-new-ubuntu-environment/">配置一个新的Ubuntu开发环境</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
</li>
@@ -288,10 +292,6 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
<a href="/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/">用octopress来写博客并发布到Github上</a>
</li>
- <li class="post">
- <a href="/blog/2012/04/21/install-ruby-environment-on-ubuntu/">Ubuntu下安装ruby开发环境</a>
- </li>
-
</ul>
</section>
@@ -233,6 +233,10 @@ <h1 class="entry-title">Git分支常用操作</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2012/06/20/setup-new-ubuntu-environment/">配置一个新的Ubuntu开发环境</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
</li>
@@ -248,10 +252,6 @@ <h1 class="entry-title">Git分支常用操作</h1>
<a href="/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/">用octopress来写博客并发布到Github上</a>
</li>
- <li class="post">
- <a href="/blog/2012/04/21/install-ruby-environment-on-ubuntu/">Ubuntu下安装ruby开发环境</a>
- </li>
-
</ul>
</section>
@@ -274,6 +274,10 @@ <h1 class="entry-title">Git标签常用操作</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2012/06/20/setup-new-ubuntu-environment/">配置一个新的Ubuntu开发环境</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
</li>
@@ -289,10 +293,6 @@ <h1 class="entry-title">Git标签常用操作</h1>
<a href="/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/">用octopress来写博客并发布到Github上</a>
</li>
- <li class="post">
- <a href="/blog/2012/04/21/install-ruby-environment-on-ubuntu/">Ubuntu下安装ruby开发环境</a>
- </li>
-
</ul>
</section>
@@ -109,10 +109,10 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<p>运行环境 ruby</p>
<pre><code>gem install capybara # install capybara
-ruby zha.rb # zha.rb脚本
+ruby za.rb # za.rb脚本
</code></pre>
-<figure class='code'><figcaption><span>zha.rb</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<figure class='code'><figcaption><span>za.rb</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
@@ -221,7 +221,7 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
</span><span class='line'> <span class="nb">sleep</span> <span class="mi">2</span>
</span><span class='line'><span class="k">end</span>
</span><span class='line'>
-</span><span class='line'><span class="k">def</span> <span class="nf">zha</span>
+</span><span class='line'><span class="k">def</span> <span class="nf">za</span>
</span><span class='line'> <span class="n">visit</span><span class="p">(</span><span class="s1">&#39;/&#39;</span><span class="p">)</span>
</span><span class='line'> <span class="mi">10000</span><span class="o">.</span><span class="n">downto</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">each</span> <span class="k">do</span>
</span><span class='line'> <span class="n">find</span><span class="p">(</span><span class="s1">&#39;#J_Vol_Brick_Btn&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">click</span>
@@ -233,7 +233,7 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
</span><span class='line'><span class="k">end</span>
</span><span class='line'>
</span><span class='line'><span class="n">login</span>
-</span><span class='line'><span class="n">zha</span>
+</span><span class='line'><span class="n">za</span>
</span></code></pre></td></tr></table></div></figure>
@@ -303,6 +303,8 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<a class="basic-alignment left" href="/blog/2012/04/26/git-branch/" title="Previous Post: Git分支常用操作">&laquo; Git分支常用操作</a>
+ <a class="basic-alignment right" href="/blog/2012/06/20/setup-new-ubuntu-environment/" title="Next Post: 配置一个新的Ubuntu开发环境">配置一个新的Ubuntu开发环境 &raquo;</a>
+
</p>
</footer>
</article>
@@ -322,6 +324,10 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2012/06/20/setup-new-ubuntu-environment/">配置一个新的Ubuntu开发环境</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
</li>
@@ -337,10 +343,6 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<a href="/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/">用octopress来写博客并发布到Github上</a>
</li>
- <li class="post">
- <a href="/blog/2012/04/21/install-ruby-environment-on-ubuntu/">Ubuntu下安装ruby开发环境</a>
- </li>
-
</ul>
</section>
Oops, something went wrong.

0 comments on commit 95345ef

Please sign in to comment.