• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to install Octopress in CentOS 6 and RHEL 6

January 12, 2014 by Sharad Chhetri Leave a Comment

In this tutorial we will learn,how to install Octopress in CentOS 6 and RHEL 6 (Red Hat).
Octopress is a framework for Jekyll.It is designed by Brandon Mathis. Octopress is easy to go setup.Like jekyll,you do not have to write your HTML templates,Javascripts,CSS and set up the configuration.

Requirement: Ruby 1.9.3 or greater

To install Octopress,follow the given below steps

Step 1: Install ruby in the system.If you already have Ruby 1.9.3 or greater then skip this step. I have already written a post on How to easily install ruby 2.1.0 in CentOS and RHEL.For more details read the post.

Below commands are, to install ruby version 2.1.0 by RVM

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

Step 2: Install git in the system

yum install git 

Step 3: We are cloning the Octopress source code from github in /opt .You can change the path as per your requirement

cd /opt

git clone git://github.com/imathis/octopress.git octopress

Below is the reference

[root@localhost opt]# git clone git://github.com/imathis/octopress.git octopress
Initialized empty Git repository in /opt/octopress/.git/
remote: Reusing existing pack: 10953, done.
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 10970 (delta 3), reused 3 (delta 0)
Receiving objects: 100% (10970/10970), 2.86 MiB | 431 KiB/s, done.
Resolving deltas: 100% (5197/5197), done.
[root@localhost opt]#

Step 4: Now install dependencies.

cd /opt/octopress

gem install bundler

bundle install

Below is the reference

[root@localhost octopress]# gem install bundler
Fetching: bundler-1.5.2.gem (100%)
Successfully installed bundler-1.5.2
Parsing documentation for bundler-1.5.2
Installing ri documentation for bundler-1.5.2
Done installing documentation for bundler after 3 seconds
1 gem installed
[root@localhost octopress]# 
[root@localhost octopress]# bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Installing rake (0.9.2.2)
Installing RedCloth (4.2.9)
Installing chunky_png (1.2.5)
Installing fast-stemmer (1.0.1)
Installing classifier (1.3.3)
Installing fssm (0.2.9)
Installing sass (3.2.9)
Installing compass (0.12.2)
Installing directory_watcher (1.4.1)
Installing haml (3.1.7)
Installing kramdown (0.13.8)
Installing liquid (2.3.0)
Installing syntax (1.0.0)
Installing maruku (0.6.1)
Installing posix-spawn (0.3.6)
Installing yajl-ruby (1.1.0)
Installing pygments.rb (0.3.4)
Installing jekyll (0.12.0)
Installing rack (1.5.2)
Installing rack-protection (1.5.0)
Installing rb-fsevent (0.9.1)
Installing rdiscount (2.0.7.3)
Installing rubypants (0.2.0)
Installing sass-globbing (1.0.0)
Installing tilt (1.3.7)
Installing sinatra (1.4.2)
Installing stringex (1.4.0)
Using bundler (1.5.2)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
[root@localhost octopress]# 

Step 5: Install the default theme

rake install

Below is the reference

[root@localhost octopress]# rake install
## Copying classic theme into ./source and ./sass
mkdir -p source
cp -r .themes/classic/source/. source
mkdir -p sass
cp -r .themes/classic/sass/. sass
mkdir -p source/_posts
mkdir -p public
[root@localhost octopress]# 

Step 6: Now start the Octopress

cd /opt/octopress
rake preview

OR To keep running in background

nohup rake preview &

Note: Check the iptable because it runs on port no. 4000 by-default.Port 4000 must be allowed in IPTABLE.

Step 7: Open the Web browser and type http://ip-address-or-domain-name:4000
eg. http://192.168.56.101:4000 or http://example.com:4000

Octopress

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to install Octopress on Ubuntu 14.04 LTS
  2. How to change Port number for Octopress rake preview
  3. show post excerpt in atoms feed of octopress
  4. Print double hyphen sign simultaneously in post of Octopress
  5. Octopress : Could not find a JavaScript runtime
  6. Configure Nginx for Jekyll / Octopress / pelican based static website
  7. Install ruby 2.1.0 in CentOS and RHEL by using RVM
  8. Install pagespeed module ( mod_pagespeed ) on Apache Web Server : CentOS / RHEL
  9. Install MariaDB Server 10 on CentOS 7 and RHEL 7 by using yum
  10. How to install Mariadb 10.4 server on CentOS 8 / RHEL 8

Filed Under: Linux Tagged With: Octopress

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Show visitor ip address php code

WordPress host IP changed not able to open wp-admin and site page looks scattered

error command ‘gcc’ failed with exit status 1 in Ubuntu

Nagios HTTP WARNING: HTTP/1.1 403 Forbidden

curl command to check the http status

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server

4 Different commands to find system uptime in linux

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy