macOS

macOS has its roots in FreeBSD and with that in the "original" Unix distributed by Bell Labs in the 1960s. All macOS releases since Mac OS X Leopard (except OS X Lion) have been UNIX certified.

With that, macOS gives an environment that offers everything needed for the assignments. You will not have to install any Linux virtual machine (VM) but can simply work on the assignments natively on your Mac.

This setup guide is universal for both Apple Silicon (M1/M2/...) and Intel Macs - the only exception is Step 3 which is only required on the former.


Step 1: Install VS Code

Download Visual Studio Code (VS Code) for macOS and move the application to your "Applications" folder (depending on your browser you may need to unzip the downloaded archive first).

Now, to also enable the code command for your terminal, follow these steps:

  1. Open VS Code and press ⌘⇧P to open the Command Pallete.

  2. In the prompt, enter "install code" and select the option named: "Shell Command: Install 'code' command in PATH".

  3. Confirm the prompt that will pop up and enter your password to finish the installation.


Step 2: Install the Command Line Tools

Open a Terminal window and enter:

xcode-select --install

If the command line tools are not yet installed, a window should pop up with a prompt to do so. Follow all the steps of the installer, it may take a few minutes to download and install all the tools needed.


Step 3: Install Rosetta 2 (Only on Apple Silicon)

Open a Terminal window and enter:

softwareupdate --install-rosetta

When prompted, type 'A' and press enter to install.


Step 4: Set up SSH with GitHub

One of the easiest ways to access your GitHub account (and with that your private repository) is to set up a Secure Shell (SSH) key. Follow the GitHub SSH Setup Guide for this.

Last updated