This tutorial aims to help CSS students set up their computer system to meet necessary lab training requirements. It includes basic steps to install Git, Github, R, Rstudio, Python, Spyder, and Google Cloud service etc.

Install Homebrew on Mac

Homebrew is the missing package manager for macOS (or Linux). So it installs software you need that Apple (or your Linux system) didn’t have.

To install, paste the following code in the quote in a macOS Terminal or Linux shell prompt.

/bin/bash -c "$(curl -fsSL"

You can check here for more details. If you use windows system, just skip this.

Then Use Homebrew to Install Git on Mac

Copy and paste the following code into your terminal window and hit Return.

brew install git

Note that you can also use homebrew to install other software you need using similar commands. For more details on brew commands, you can check here

If you use Windows System, you need to download Git first and then install Git on Windows

You can download GIT here

After you have successfully installed GIT, you need to MAKE some basic configurations.

Here is the GIT cheat sheet Usually you need to set up your global name and email address (usually your github account).

Check here to sign up for a free github account Check here to see why you need GITHUB

Another way to use GIT is via GITHUB desktop.

You can check here to download and install GITHUB DESKTOP. But you have to set up your account and Install GIT first.

Install R and Rstudio

Of course, you can use homebrew to install R on MAC. But let us do it from a scratch.

Before Installing Rstudio, you need to Install R. You can download R and other necessary software by clicking here You can choose the appropriate version for your system (e.g., windows, Mac). Be careful to follow its installing instruction, especially regarding those necessary software like xquartz.

After this step, please go to RStudio website to download and install RStudio desktop. You can click here and choose the free version.

Then, you can use install.packages function to install necessary R packages. But I suggest you to copy and paste following code to install some common packages for data processing and visualization. You can add any packages you want to install by defining the “packages” variable.

if (!requireNamespace("pacman"))
p_load(packages,character.only = TRUE)

You can also click here to install tensorflow and keras We will use it for image classification. Of course, you can install python version for keras and tensorflow…

Install Python and Spyder

There are couple of ways to install python. For simplicity, we use anaconda to install python and its associated software.

You can click here to download and install anaconda Please choose the right version for your windows or mac system.

Please follow the instruction to install anaconda and spyder.

Once your python is installed, you can use conda or pip to install necessary modules. For instance, you can install nltk module using the following code:

pip install nltk

If you system does not install pip, you can check here for more details:

Similarly, you can install modules like pandas, numpy, sci-learn, selenium,beautifulsoup, tensorflow, pytorch, keras, etc.

We will install other necessary packages as the semester progresses.

NOW,let’s move to Google Cloud

In order to use Google Cloud service, you have to get an account first. Use your personal Google Gmail account, instead of university email account, to login into cloud console. You can check here for more details Once you activate your Google cloud service, you should be able to set up a project and payment method. Note that Google provides 300 credits for new users. That would be enough for our course.

Why we don’t use university email account? Sometimes it does not have access to some services. For instance, you cannot use google colab (similar to ipython notebook) when you use stony brook g-suit account.

You can also download and install Google SDK by checking here Here is a quick start for MAC: Here is another quick start for Windows: