Skip to content

Instantly share code, notes, and snippets.

@thinkycx
Last active October 2, 2018 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinkycx/0b65ea9a0b7a3e76051e77824702d2c8 to your computer and use it in GitHub Desktop.
Save thinkycx/0b65ea9a0b7a3e76051e77824702d2c8 to your computer and use it in GitHub Desktop.
install jekyll on ubuntu
# ref: https://jekyllrb.com/docs/installation/ubuntu/
# requirements
sudo apt-get install ruby ruby-dev build-essential
# env for bash
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME=$HOME/gems' >> ~/.bashrc
echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
# install
gem install jekyll bundler
# plugins
gem install jekyll-paginate
gem install jekyll-gist
# https://github.com/sparklemotion/nokogiri/issues/1667
sudo apt-get install libpng-dev
gem install jemoji
# run
cd ~/blog
jekyll serve -H 0.0.0.0
# use this gist
# <script src="https://gist.github.com/thinkycx/0b65ea9a0b7a3e76051e77824702d2c8.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment