Install Jekyll on Ubuntu 16.10 (Xenial Xerus) Server

Sponsored Link
Jekyll is a simple, blog-aware, static site generator. It takes a template directory containing raw text files in various formats, runs it through a converter (like Markdown) and our Liquid renderer, and spits out a complete, ready-to-publish static website suitable for serving with your favorite web server. Jekyll also happens to be the engine behind GitHub Pages, which means you can use Jekyll to host your project’s page, blog, or website from GitHub’s servers for free.


Installing Jekyll is easy and straight-forward, but there are a few requirements you’ll need to make sure your system has before you start.

Ruby (including development headers, v1.9.3 or above for Jekyll 2 and v2 or above for Jekyll 3)


Linux, Unix, or Mac OS X

NodeJS, or another JavaScript runtime (Jekyll 2 and earlier, for CoffeeScript support).

Python 2.7 (for Jekyll 2 and earlier)

Install Jekyll on Ubuntu 16.10 Server

Preparing your system

You need to install ruby using the following command

sudo apt-get install ruby-full ruby-bundler

Install Jekyll package using gem

sudo gem install jekyll

After the installation you can check jekyll version installed using the following command

jekyll -v


jekyll 3.2.1

Creating New website

jekyll new myblog

This will create myblog directory in the existing location

$ cd myblog

The current folder will be generated into ./_site using the following command

~/myblog $ bundle install

Start jekyll server

~/myblog $ bundle exec jekyll serve

Auto-regeneration: enabled for ‘/home/myblog'
Configuration file: /home/myblog/_config.yml
Server address:
Server running... press ctrl-c to stop.

Now browse to http://localhost:4000

The ouput looks similar to the following


You can read Jekyll documentation from here for more detailed instructions.

Sponsored Link

You may also like...

Leave a Reply

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