Skip to content

Instantly share code, notes, and snippets.

@jsok
Created September 28, 2012 03:46
Show Gist options
  • Save jsok/3797830 to your computer and use it in GitHub Desktop.
Save jsok/3797830 to your computer and use it in GitHub Desktop.
Octopress on Debian
Before doing the initial setup, grab the following from apt-get:
$ sudo apt-get install zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev git-core
Head over to:
http://octopress.org/docs/setup/
Install rbenv as described:
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
source ~/.bash_profile
Then:
rbenv install 1.9.3-p194
rbenv rehash
rbenv global 1.9.3-p194
ruby --version
Finally ready to start octopress install:
git clone git://github.com/imathis/octopress.git octopress
cd octopress
gem install bundler
rbenv rehash # If you use rbenv, rehash to be able to run the bundle command
bundle install
rake install
Fire it up:
rake generate
rake preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment