Last active
August 29, 2015 14:14
-
-
Save aresnick/ec3e2f68b9ab8b2614a1 to your computer and use it in GitHub Desktop.
Basic CLI setup for DGMD E-15 course site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################################### | |
# Steps to install the basic tools needed for the `/people` activity | |
# Run each line separately, except for the ones beginning with a `#`— | |
# The output will be long and complex, but watch to see if you get any message that seems like an error or problem. Stop and resolve that before continuing | |
# Install Apple's Command Line Tools | |
xcode-select --install | |
# Install Homebrew, a nice package manager for Mac | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Check that your system is set up appropriately for Homebrew, you'll see a bunch of output, but you'll want to skim to see if you see any "Warning"s—if you do, Homebrew will have a "You should probably" line suggesting how to remedy it. | |
brew doctor | |
# Update homebrews package listing | |
brew update | |
# Install git, our version control software | |
brew install git | |
# Install homebrew cask, which lets us install 'normal' applications like Sublime Text and Google Chrome via homebrew | |
brew install caskroom/cask/brew-cask | |
# Install Sublime Text (skip this if you have another editor of choice) | |
brew cask install sublime-text3 | |
# Install gpg, a cryptographic tool we'll use to verify our downloads | |
brew install gpg | |
# Install libxml2, a library used for parsing things like HTML, and associated tools | |
brew install libxml2 | |
# Install RVM, a package manager for Ruby (another programming language) | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
source ~/.rvm/scripts/rvm | |
# Install bundler, another package manager for Ruby (no I'm not joking) | |
gem install bundler | |
bundle config build.nokogiri -- --with-xml2-include=`brew --prefix libxml2`/include/libxml2 --with-xml2-lib=`brew --prefix libxml2`/lib | |
# Now, you'll need to fork the class site repository | |
# To read about how to fork a repository, check out https://help.github.com/articles/fork-a-repo/ | |
# To see a video walkthrough of the forking and cloning process, check out https://www.youtube.com/watch?v=_jGUFpWYm60 | |
# Next, you'll need to clone your fork. Replace $YOUR_GITHUB_REPO with the URL to your fork of the dgmde15.github.io repository | |
# e.g. for Alec's repository, $YOUR_GITHUB_REPO=https://github.com/aresnick/dgmde15.github.io.git | |
git clone $YOUR_GITHUB_REPO | |
cd dgmde15.github.io | |
# Install the necessary dependencies for jekyll | |
bundle install | |
# Tell jekyll to build the static site and start a small server at http://localhost:4000 serving up the page | |
jekyll serve | |
# Now open up Google Chrome and navigate to `http://localhost:4000/`; you should see the class site running from your local machine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment