How to install Jekyll in Ubuntu

Dependencies:

sudo apt-get install ruby-full build-essential zlib1g-dev

Gem Installation directory

echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Install jekyll

gem install jekyll bundler

Create a jekyll site

To generate a new site, use the command: jekyll new name-of-site. This will generate a directoryw with the name of the site in the current directory.