Setting Up Your Terminal

Warning

Are you here too early? The content on this page fits with chapters 16 and higher. If you have not made it to the Terminal chapter yet, you should probably wait a bit before reading this page.

If you are a student using a school-issued device, then the CLI software is probably already on your machine. Check with your teacher before installing anything!

The command line interface (CLI) is a vital tool to learn for any programmer. This page provides installation instructions for Mac, Windows, and Chromebooks.

Once you have the CLI up an running on your machine, return to the Terminal chapter to practice how to use it.

Mac Users

Good news! The CLI application is called Terminal, and it comes with every Mac. Read the Launch the Terminal section to see where to find the application.

Windows Users

  1. Download the Git for Windows installer.

  2. After the installer has fully downloaded, run it. You will then move through several screens of options.

    1. On the first screen, select Additional icons –> On the Desktop.

      Check the boxes labeled Additional icons and On the Desktop.
    2. On all of the other screens, just use the pre-selected choices.

  3. Read the Launch the Terminal section to see where to find the application. It is called Git Bash.

Chromebook Users

Before installing the terminal application, you should first update your device to the latest operating system.

Update ChromeOS

  1. Click on the clock area in the lower right-hand corner of the desktop. Open the Settings panel by clicking on the gear icon.

    Access the settings by clicking in the lower right corner of the desktop.
  2. From the menu options shown on the left of the panel, select About Chrome OS.

    Select About Chrome OS from the list of options.
  3. Click the Check for Updates button and then wait for the device to finish any installations.

    Note

    Fully updating the operating system might require several checks. Repeat steps 2 and 3 until you receive the Your Chromebook is up to date message.

OK. Now you’re ready to install the CLI software.

Activate Linux Environment

  1. Open the Settings panel again.

  2. From the menu options shown on the left of the panel, click Linux (Beta).

    Select Linux (Beta) from the list of options.
  3. If Linux is not yet active on the Chromebook, you will see a Turn On button. If the button is absent, Linux is already active.

    Click the Turn On button to activate Linux on your Chromebook.
  4. Click the Turn On button and follow the steps on the screen. The setup may take 10 minutes (or more) to finish.

  5. When done, a terminal window opens automatically.

Read the Launch the Terminal section to see where to find the application again after you close it.

Note

Chromebooks are designed to use applications stored in the cloud. Installing and running apps directly on your Chromebook will likely slow down its performance.