Linux

For the first portion of the class, we'll be working exclusively inside of the browser and Node. We'll be installing the following tools.

  • Slack

  • Homebrew

  • Git

  • Node

  • Oh my ZSH

  • iTerm

  • Postgres.app

  • Ruby

  • Rails

TIP: Use CTRL+SHIFT+V to paste into terminal

Slack

We will be using slack to communicate throughout the course. You should've received an invite to our channels via e-mail. You can login via the web browser, but downloading / installing the app is highly recommended.

Download Slack

GArnet

We will be using GArnet to manage the course. You'll be able to see a list of assigned deliverables, submissions, evaluations, and your attendance record. Your managers will give you an invite link.

GA Seattle isn't currently using this system - your homework progress and attendance will be reported to you regularly by your instructor and is also available on request.

GIT

Before we do this process, please make sure you have signed up for an account on Github. We will be installing a version of GIT from home brew and also configuring it.

To install GIT

Configuring GIT

Using your email credentials for GIT, run these commands with your user and email configured.

Setting up SSH Key

You might find your self having to re-authenticate GIT every time you work on your command line. Setup SSH Keys to let Github remember your machine in the future.

Node

Verify the installation afterwards by running

The above should display without any errors.

To finish up your installation, run this command to allow for global installations of npm tools.

Sublime 3

We'll be running Sublime 3, not Sublime 2 as our text editor of choice.

Install via the package manager

If the above does not work, try installing via Sublime's website: http://www.sublimetext.com/3 Download the .deb file and run it to install.

Install Oh My ZSH

Oh my ZSH?!!! We will be tricking out commandline with another shell. A shell is an interface into our computer, and we will be using a lot to run commands.

We'll be using a shell and configuration package called Oh-My-Zsh

To install, we will run

(the last command will restart your computer)

Postgres

Install Postgres

We will be using a relational database called Postgres for Node and Rails portion our class. Download by running:

Configure Postgres User

You'll also need to configure a user for your Postgres database.

Choose an easy to remember password then type \quit to exit psql. MAKE SURE YOU REMEMBER THIS PASSWORD YOU WILL NEED IT LATER.

Create a Postgres Alias

To make it easier to start postgres we're going to create a couple aliases. Edit your zshrc file by typing subl ~/.zshrc add these lines to the bottom of the file:

pgserver will be used to start the postgres server

psql will be used to access the psql termainal

While we're here, add these two functions and environment variables to make it easier to access, change and refresh our ZSH configuration file in the future. Copy and paste these to the end of the file.

Save the file, close Sublime, and restart your terminal.

Install Postgres GUI

Testing Postgres Setup

Quit terminal and reopen it before testing.

Start Server

enter psql terminal

Should enter psql terminal and have no error.

exit psql

Installing MongoDB

Follow the official installation instructions on MongoDB.com:

https://docs.mongodb.com/v3.0/tutorial/install-mongodb-on-ubuntu/#install-mongodb

Testing the MongoDB server

Press control-c to stop the server.

Install MongoDB GUI

We'll be using RoboMongo. Install here:

https://robomongo.org/

Installing Ruby on Rails

Install dependencies

Install rbenv / ruby

rbenv lets us change ruby verions on the fly, useful for working with diffrent rails apps.

Note: New versions of Ruby and Rails are coming out all the time - check with your instructor that the version listed here is still correct. If you need to install multiple versions of Ruby, it may be easier to use the RVM - Ruby Version Manager which is described in detail under the osx section of this install instructions.

(last step above will take a LONG time)

Set ruby version and check that it worked

Install Rails

Before moving on close and reopen terminal.

(the last step will take a while)

Verify your installation

Run each of these commands and then call someone over to validate your installation is correct.

Last updated

Was this helpful?