Contents
  1. 1. Modify the hostname
  2. 2. Set the computer name
  3. 3. Install homebrew homebrew
  4. 4. screenshot
  5. 5. Jekyll setup
    1. 5.1. reference
  6. 6. Upgrade to macOS sierra

This doc describes the MAC environment.

Modify the hostname

1
sudo scutil --set HostName MacBookPro

Set the computer name

1
sudo scutil --set ComputerName MacBookPro

Install homebrew homebrew

1
2
3
4
5
6
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew update
brew search "name"
brew install "name"
brew remove "name"

screenshot

  • fullscreen

    1
    command + shift + 3
  • screenshot for self-defined area

    1
    command + shift + 4

Jekyll setup

  • Install Jekyll with gem

    1
    gem installl jekyll
    • Maybe you will met the issue, caused by unaccessable source of “https://rubygems.org/"

      1
      2
      ERROR:  Could not find a valid gem 'jekyll' (>= 0), here is why:
      Unable to download data from https://rubygems.org/ - Errno::EPIPE: Broken pipe - SSL_connect (https://rubygems.org/latest_specs.4.8.gz)
    • You can try to use the alternative source of taobao

      1
      2
      3
      4
      5
      gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
      gem sources -l
      *** CURRENT SOURCES ***

      https://ruby.taobao.org/
  • Build the html files in site directory

    1
    jekyll build
  • Start jekyll server for access locally

    1
    jekyll server
  • Access the html file in browser

    1
    http://localhost:4000

reference

Upgrade to macOS sierra

Contents
  1. 1. Modify the hostname
  2. 2. Set the computer name
  3. 3. Install homebrew homebrew
  4. 4. screenshot
  5. 5. Jekyll setup
    1. 5.1. reference
  6. 6. Upgrade to macOS sierra