Install Octopress on a CentOS 6 VPS

Leave reply

octopress vpsOctopress is a static blogging framework built on top of Jekyll. In order to start blogging with Jekyll, you have to write your own HTML templates, CSS, Javascripts and set up your configuration. But with Octopress all of that is already taken care of. It uses scripts to build static files to be deployed to a server. You can run locally, or even on your server and it will generate an entirely static web site for you. You can even rsync it to where you’re hosting from.

This blog article will guide you through the installation of Octopress on a Centos 6 VPS

Login to your Centos 6 virtual private server as user ‘root’ and make sure that all packages are updated:

yum update
yum install libyaml-devel

Install ruby version 2.1.2 with RVM. 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.

 curl -L | bash -s stable
 source /etc/profile.d/
 rvm requirements
 rvm install 2.1.2
 rvm use 2.1.2 --default
 ruby -v

Install GIT in the system:

yum install git

Next we need to clone the Octopress source code from github in /opt .You can change the path according to your needs.

cd /opt
git clone git:// octopress

After this, we will install the dependencies:

cd octopress/
gem install bundler
bundle install

Install the default theme:

rake install

Start Octopress:

rake preview

If you want for Octopress to run in the background enter :

nohup rake preview &

The installation is complete. You can open your favorite web browser and navigate to

Of course you don’t have to do any of this if you use one of our Linux VPS services, in which case you can simply ask our expert Linux admins to install Octopress for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Leave a Reply