blockchainu / prepare-osx-for-blockchain-webdev

Script for use by students in Blockchain University classes to prepare Mac OSX 10.10 Yosemite with basic command-line tools, blockchain web development tools & frameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prepare OSX for WebDev

Script for use by students in Blockchain University classes to prepare Mac OSX 10.10 Yosemite with basic command-line tools, blockchain web development tools & frameworks.

https://github.com/ChristopherA/prepare-osx-for-webdev

This script largely uses Homebrew to install web development tools and frameworks. Homebrew makes installation and updates of tools very easy: it compiles versions from current sources, it has the advantage of automatically resolving external dependencies on other tools, and you can later remove packages and items that Homebrew has installed without compromising the integrity of your system.

Forked from: https://github.com/ChristopherA/prepare-osx-for-webdev

Originally based on allosxupdates.sh from Christopher Allen's .dotfiles -- modified to add some Mac user interface, install fewer tools, and to stand alone without dependencies from other .dotfiles.

https://github.com/ChristopherA/dotfiles/blob/master/install/allosxupdates.sh

Installation

Ideally install these development tools on a fresh install of Mac OS X 10.10 "Yosemite" rather than on an update from a previous version of Mac OS X.

If not a fresh install, you should at least need to upgrade your Mac to OS X 10.10. If you have ever installed node, python, go or other web development tools from a .dmg installer, you'll need to uninstall those tools first. This script will reinstall them using HomeBrew.

Execute this command via the Terminal app's command line interface (command + space + terminal):

curl -L https://raw.githubusercontent.com/blockchainu/prepare-osx-for-blockchain-webdev/master/prepare-osx.sh | bash

WARNING: Be careful about using curl piped | to bash or any other shell as it can compromise your system. Only execute if you trust the source!

After installation, you should edit the ~/.bash_profile.local file with your own Github credentials. Change the GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL to your name and Github account.

If you want to use the suggested Solarized Dark theme for the Terminal app you'll need to change the defaults in Preferences command + ,. Under the Profiles tab, select solarized-dark and press the 'Default' button.

If this script has not been run on a fresh install of Mac OS X 10.10 "Yosemite", after this script is complete you'll need to look for any warnings in the Terminal output, in particular from the brew doctor command. If there were any errors, brew doctor will tell you how to fix them. If what it suggests to fix the problem doesn't work, I find that almost every problem that has come up is a question on the website StackOverflow so search for your solution there.

It is safe to run brew doctor or run this entire script multiple times.

If you have an existing ~/.bash_profile you will need to manually edit this files to set environment variables as per:

https://github.com/blockchainu/prepare-osx-for-blockchain-webdev/blob/master/bash_profile.local

What It Does

The script basically automates parts 2 - Preparation and Installation" & "3 - Customize Your Environment" from the Introduction to the Mac Command Line tutorial at:

https://github.com/ChristopherA/intro-mac-command-line

It also installs some blockchain specific tools and frameworks for Blockchain University classes.

If you want a more sophisticated Mac command-line web development environment, see:

https://github.com/ChristopherA/dotfiles/

About

Script for use by students in Blockchain University classes to prepare Mac OSX 10.10 Yosemite with basic command-line tools, blockchain web development tools & frameworks.

License:Creative Commons Zero v1.0 Universal


Languages

Language:Shell 100.0%