ubuntuのシステムアップデート
sudo apt-get update
sudo apt-get dist-upgrade
octopressを動作させるのに必要なパッケージをインストール
sudo apt-get install build-essential git libssl-dev nodejs
Rubyのセットアップ
mkdir ~/Downloads
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo '' >> ~/.profile
echo '# rbenv' >> ~/.profile
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile
type rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p0
rbenv local 1.9.3-p0
which ruby
ruby --version
Octopressのセットアップ
cd Downloads/
git clone git://github.com/imathis/octopress.git octopress
cd octopress
gem install bundler
gem install bundler
rbenv rehash
bundle install
Octopressの動作確認
rake install
rake preview