Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hjgraca
Last active April 11, 2020 04:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hjgraca/0e1f546c079fa5a37123d189cdb934df to your computer and use it in GitHub Desktop.
Save hjgraca/0e1f546c079fa5a37123d189cdb934df to your computer and use it in GitHub Desktop.
Install Jekyll in WLS2

First let's update everything I am running all commands as sudo but you run with the level you want

sudo apt-get update -y && sudo apt-get upgrade -y

Now let's install Ruby

sudo apt install ruby

Check if Ruby was installed

ruby -v

Update your gems

sudo gem update

Install bundler

sudo gem install bundler

And install some dependencies like ruby-dev

sudo apt-get install ruby-dev build-essential dh-autoreconf

And finally install Jekyll

sudo gem install jekyll

Check if Jekyll is installed correctly

jekyll -v

If you get a version back, all is good Now if you want to create a new blog you can run

jekyll new myblog

if you are already with the blog folder opened you can start the server

bundle exec jekyll serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment