Jekyll on Ubuntu
Install
Install Ruby
sudo apt-get install ruby-full build-essential zlib1g-dev
Adding environment variables to ~/.bashrc
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Finally, install Jekyll and Bundler:
gem install jekyll bundler
Start local github service
cd ggangliu.github.io
jekyll serve --watch
Then, localhost:4000