Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Cause of work, i has long time didn't update this blog.

In last week, i need to install an project management system redmine. redmine develop in ruby on rails, so i try to install ruby on rails in ubuntu server.

Please follow below step use root account.

1. Install curl.
apt-get install curl

2. Install RVM with ruby.
\curl -L https://get.rvm.io | bash -s stable --ruby

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

3. Load rvm source
source [path your install rvm]/rvm

4. Install dependancies
rvm requirements

after this command, will showing the dependeices package you need to install

5. Install Ruby 1.9.3
rvm install 1.9.3

6. Set defualt ruby version
rvm use 1.9.3 --default

7. Install RubyGems
rvm rubygems current

RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem").

8. Install Rails
rvm 1.9.3 do gem install rails

When finish all step, now we can start develop our ror projects.

由於在小筆電上開Apache Web Server 做學校Project Demo的時候發現好Lag ... , 所以就想試試 傳說中超快的 Nginx .


花了一點時間架好了 Nginx , 跑 php 和 apache 有點不一樣他是經過 fastcgi 來跑 php 的. 另外就是 rewrite 方式有點不一樣. ( 教學夜點寫 懶散 ~ )

然後以 Apache 內建的 ab 跑一下壓力測試 ( 小筆電表示快爆炸了 )


測試環境為 :
Lenovo S205 | AMD E350 APU | 4GB RAM | 5400 rpm HHD 
Apache2 + php5 + google pagespeed 優化
Nginx 1.0.5 + php5-fpm
cakePHP 2.1.1

最後吃飽沒事做就想裝裝Gnome3看看

Gnome3 連結

在Ubuntu 終端輸入 sudo apt-get install gnome-shell

接下來會安裝大約 80 MB 的東西

安裝好後登出 在登入畫面選擇用 gnome


用起來感覺比Unity順手, 只是資源佔用比較多.
開啟 Terminal , 輸入

sudo apt-get install update
sudo apt-get install apache2