1 Installing Required Software
You will need to install the following software on your laptop to work on labs in this course -
- IDE - Visual Studio Code
- Java (JDK 17) - OS-specific installation instructions are below.
- Git - Version control system. OS-specific installation instructions are below.
- Autograder - OS-specific installation instructions below.
1.1 One-Liner Install
1.1.1 Windows
Follow the instructions in the first comment on this gist - https://gist.github.com/DhruvDh/71d90635a528db1318a36ea35da6d56d
To run this script on Windows:
- Open a PowerShell window.
- Go to the gist and click the
Raw
button next to the file name at the top. - Copy the URL from your browser’s address bar (this is the
PASTE_RAW_URL
). - Replace
PASTE_RAW_URL
in the command below with the URL you copied. - Run the command in PowerShell:
Invoke-RestMethod -Uri PASTE_RAW_URL | iex
For the current version (at the time of writing), you can use this command:
Invoke-RestMethod -Uri https://gist.github.com/DhruvDh/71d90635a528db1318a36ea35da6d56d/raw/0b91af6a35df6baa0835a3e97648e4f59baf76a1/lab-prep-windows.ps1 | iex
1.1.1.1 Verifying
Run the following command to check if the autograder was installed correctly:
--help umm
1.1.2 MacOS
Follow the instructions in the first comment on this gist - https://gist.github.com/DhruvDh/f313bf5edd929949a31995e247e28c53
1.2 Installing Homebrew on Mac
Homebrew is a package manager for macOS that makes it easy to install software. Follow these instructions to install Homebrew on your Mac.
1.2.1 Steps to Install Homebrew
Open Terminal: You can find the Terminal application in the Utilities folder under Applications, or by searching for it using Spotlight (Cmd + Space and type “Terminal”).
Run the Installation Command: Copy and paste the following command into your Terminal and press Enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Enter Your Password: During the installation, Homebrew will use
sudo
to gain the necessary permissions to install software. You will be prompted to enter your Mac password. Type your password and press Enter.Note: You won’t be able to see your password as you type. This is a security feature. Just type it carefully and press Enter.
Press Enter When Prompted: The installation script may prompt you to press Enter to continue at various stages. Follow the instructions and press Enter when prompted.
Add Homebrew to Your Shell Environment: Once the installation is complete, run the following command to echo and append the Homebrew shell environment setup to your
.zprofile
(if you’re using Zsh, the default shell on newer macOS versions):echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
Apply the Changes to the Current Terminal Session: To apply the changes to your current terminal session, run:
source ~/.zprofile
1.2.2 Verification
To verify that Homebrew was installed correctly, you can run:
brew --version
You should see the Homebrew version number, indicating that the installation was successful.
That’s it! You now have Homebrew installed on your Mac and can use it to easily install and manage software packages.
1.3 Running this script after brew
is installed
To run the script on macOS:
- Open a Terminal window.
- Go to the gist and click the
Raw
button next to the file name at the top. - Copy the URL from your browser’s address bar (this is the
PASTE_RAW_URL
). - Replace
PASTE_RAW_URL
in the command below with the URL you copied. - Run the command in Terminal:
curl -sL PASTE_RAW_URL | bash
For the current version (at the time of writing), you can use this command:
curl -sL https://gist.github.com/DhruvDh/f313bf5edd929949a31995e247e28c53/raw/15557bc1e5cb2f2086b9ea111d20e00b25f4ec32/lab-prep-macos.sh | bash
This will download and execute the script, installing all necessary software and configurations for your lab preparation.
1.3.1 Verification
Run the following command to check if the autograder was installed correctly:
umm --help