Falla's Octopress

A blogging framework for hackers.

Hello Octopress!

A blogging framework for hackers.
win下装octopress的时候状况不断,换到linux下果然一路顺风就配置好了。
珍爱生命远离windows。
下面是记录:

安装

1
2
3
4
5
6
7
sudo apt-get install ruby1.9.3
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  # 这个过程可能会卡住很久,开VPN就好。
rake install

创建SSH Key

1
2
3
4
5
6
7
8
cd ~/.ssh
# Checks to see if there is a directory named ".ssh" in your user directory
ssh-keygen -t rsa -C "your_email@example.com"
# Creates a new ssh key, using the provided email as a label
sudo apt-get install xclip
# Downloads and installs xclip. If you don't have `apt-get`, you might need to use another installer (like `yum`)
xclip -sel clip < ~/.ssh/id_rsa.pub
# Copies the contents of the id_rsa.pub file to your clipboard

绑定Github pages

1
2
3
4
5
6
7
8
9
rake setup_github_pages
rake generate
rake deploy
git add .
git commit -m 'your message'
git push origin source
rake new_post["title"]
rake preview
rake deploy

Comments