Windows Install Guide

In this class, you can expect to be exposed to a wide range of tools with names you may have never heard. At first, the sheer number of tools you'll be expected to use may seem overwhelming but trust us! With a little time and a little effort, they will be as familiar to you as a scalpel is to a surgeon or a sewing needle is to a seamstress.

Overview

In this assignment, you will be installing all the required tools and software necessary for the class. We've got a lot to install so buckle in and get ready!

Before You Begin

Make sure you sign up for these services; you'll need all of them throughout the course.

Also, make sure to accept the invite for your section on Slack as well. You will receive the link to your class-specific channel during orientation.

Tool Installation

The rest of this assignment will walk you through the specific steps associated with installing each of the tools you'll need. Follow the instructions closely!

Slack

You’ll be messaging your instructor, your TAs and your fellow classmates with this business-centric chatting app. The teaching and career staff will post some of their most important announcements here so set this program up as soon as you can. You will receive the link to your class-specific channel during orientation.

  1. If you don’t have the Slack app yet, go to https://slack.com/downloads/windows. Select "Download" or "Get it on Windows 10" to download the installation file, and then open the program.

  1. If you already use the Slack app, you just need to add our channel to your application.

  2. Click the header of your current Slack Channel.

  • Then select “Sign in to another team …”

  1. As you run through the guide, make sure you do the following:

  2. Enter in the domain we gave you for Slack.

  • Enter in the email with which we invited you, as well as your password, when prompted.

  1. When you see the chat room, you’re finished.

Java JDK

In this class, we'll mainly be focused on using Java, so we must first download the JDK (Java Development Kit).

Watch this video, or follow the directions below.

  1. Head over to the JDK download page

  2. Accept the license agreement under the Java SE Development Kit box.

  3. Click on the Windows x64 download option.

  4. Run the install file

  5. On the first setup page, click next

  6. Select the install path and click next

  7. Hit OK on the "Change in License Terms" page

  8. When the "Change in License Terms" page pops up, click "OK".

  9. Once again choose the installation directory.

  10. Click next

  11. When the "Complete" page comes up, it means you've successfully installed Java!

IntelliJ IDEA

In order to begin coding, we're going to need an editor! Let's start by downloading and installing one of the most popular IDE's (Integrated Development Environment) available.

Watch this video, or follow the directions below.

  1. Head over to the Download Page

  2. Download the Community Edition

  3. Run the install file

  4. On the first setup page, choose next

  5. Select the destination folder and click next

  6. Mark the "Update PATH variable option" and create the .java association and click next

  7. Click "install" to begin installation

  8. Choose your option for when to reboot

  9. Once you've rebooted, launch IntelliJ

  10. Accept the Privacy Policy and continue

  11. You can choose to send usage statistics, or choose the "Don't send" option to keep from sharing data.

  12. Congrats! You've installed IntelliJ IDEA!

Git & Git Bash

Coders depend on this tool for version control; the process of logging the development of programs and applications. This comes in handy during collaborative programming, when teams of programmers change, add and remove code throughout a project’s directory. This process would be chaotic without Git.

The installation also includes Git Bash or Bash for short. You'll be using this command line terminal throughout the course and during the rest of these instructions.

  1. Go to Git download page: https://git-scm.com/downloads. Click on the download for your computer.

  1. Run through the installation file. Make sure you check off the right boxes as shown in these four images.

  2. Save Git to the desktop (this should save Git Bash to your desktop too).

  • Use Git from the Windows Command Prompt.

  • Checkout as-is.

  • Use Windows' default console window.

  1. Open Git Bash as administrator (Right click, run as administrator) and run this command

git config --system core.longpaths true

SSH Key

Generating SSH keys allows developers to interface with certain remote services without having to constantly type out login information. You're going to set up an SSH key for GitHub.

Without a key, you won’t be able to push your code to GitHub without entering a password each time; trust us, that would be as irritating as needing a key to open every door in your home.

This handy video can walk you through the below steps:

  1. If you haven't signed up for a GitHub account yet, you'll need to do so before moving on with these steps. Visit https://github.com.

  2. Open up Bash.

  3. We need to set up SSH keys. First, let’s make sure you don’t already have a set of keys on your computer. Type this into your Bash window(copying and pasting will not work):

  4. ls –al ~/.ssh

  5. If no keys pop up, move onto step 4.

  6. If keys do pop up, check that none of them are listed under id_rsa, like in this image:

 * If you do find a key with a matching name, then you can either overwrite it by following steps 4 to 6, or you can use the same key in steps 10 and beyond. Be advised that you'll have to remember the password tied to your key if you decide not to overwrite it.
  1. Type in this command along with your email to generate your keys

  2. ssh-keygen –t rsa –b 4096 –C "[email protected]"

  3. When asked to enter a file to save the key, just hit enter.

  4. Also enter a passphrase for your key.

  5. Note: You shouldn’t see any characters appear in the window while typing the password.

  6. When you’re finished, your window should look like this:

  1. For the next step, we need to use a tool called ssh agent to link our key with our machine. Let’s test whether ssh-agent is working. Run this command in Bash:

  2. eval "$(ssh-agent –s)"

  3. If your Bash window looks like the below image, move onto the next step.

  1. Now run this command:

  2. ssh-add ~/.ssh/id_rsa

  3. When prompted for a passphrase, enter the one associated with the key.

  4. If you’ve forgotten this password, just create a new one, starting with step 4.

  5. We need to add the key to GitHub. Copy the key to your clipboard by entering this command:

    • clip < ~/.ssh/id_rsa.pub

    • You shouldn’t see any kind of message when you run this command. If you do, make sure you entered it correctly.

    • Do not copy anything else to your clipboard until you finish the next instructions. Otherwise, you’ll have to repeat this step again.

  6. Go to https://github.com/settings/ssh. Click the “New SSH Key” button.

  1. When the form pops up, enter a name for your computer in the Title input. In the Key input, paste the SSH key you copied in step 10.

  1. Now we just need to add GitHub to your computer’s list of acceptable SSH hosts. Go back to your Bash window. Type in this command: ssh –T [email protected]

    • You should see an RSA fingerprint in your window. Only enter “yes” if it matches the one highlighted in the image below.

Setting your Git username for every repository on your computer

Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username.

You can change the name that is associated with your Git commits using the git config command. The new name you set will be visible in any future commits you push to GitHub from the command line. If you'd like to keep your real name private, you can use any text as your Git username. Changing the name associated with your Git commits using git config will only affect future commits and will not change the name used for past commits.

Setting your email address for every repository on your computer

GitHub uses the email address set in your local Git configuration to associate commits pushed from the command line with your GitHub account.

You can use the git config command to change the email address you associate with your Git commits. The new email address you set will be visible in any future commits you push to GitHub from the command line. Any commits you made prior to changing your commit email address are still associated with your previous email address.

For more information on commit email addresses, including your GitHub-provided noreply email address, see "About commit email addresses."

Amazing!

If you got through all the installations, give yourself a pat on the back! Installations are never fun, but just like taxes, ya gotta do them.

Be sure to take a break before continuing with the rest of the pre-work.