Thoughts to record and share

It took me a long time to think about a name

How I Setup My First Octopress Blog and Create My First Post

After playing around with Octopress’ official documentation. I finally got this blog setup and found this Octopress blogging tool is so awesome that fits all needs for a lazy developer like me. It gives me full control of all the source files in such an easy way(unlike Wordpress). And the deployment process is ridiculously easy:

1
2
rake generate
rake deploy

So if you would like to find an easy-to-use blogging system and you have some basic familarities with unix command line, Octopress is highly recommended.

Octopress’ official guideline is definitely quite helpful. However I still got some problems that’s not covered from their doc while I was going through.

I am on OSX terminal, after cloning the repo and typing in the following command:

1
gem install bundler

I got the following error

1
2
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

So I saw a stackoverflow question that solves this problem. The answer recommended a way to install tool that controls the ruby version. I spent like an hour but did not get my problem solved. And it was actually one of the comment under the question that solved my problem:

1
sudo gem install bundler

I am not quite sure about what sudo means, but right now, to me, it’s just like providing administrative access, and solves my access denied error.

After setting up all the requirements, the deployment process went pretty easy. I was deploying to Git pages. If this is the first time you are using git hosting service, you might need to wait for a few minutes for your blog to be available on Github’s server.

And, if you type in:

1
rake preview

You should be able to view your blog at localhost:4000

Furthermore, take a look at LiveReload if you got an extra monitor and would like to enjoy some cool stuff done by the real geeks.