You only need to do the following:

1. Open a terminal and run the IC210 setup script

  1. Open your terminal (either Windows Terminal in your laptop or Ubuntu Terminal in a lab machine).
  2. Install DoD Certificates as follows:
  3. Copy/paste the following command into the terminal and hit enter:
     cmd=$(curl -Lsf https://www.usna.edu/Users/cs/adina/teaching/ic210/setup/210begin) && eval $cmd
    (Remember, in Windows Terminal, right-click to paste and copy inside the terminal.)

    Follow all the instructions in the terminal window. There is a bunch of software to install inside Ubuntu, so it will take a while. At a few points, you will have to go to your web browser to upload your public key. Just follow the instructions below to upload the key to github.

    Here's the instructions on how to upload your public key to the github (images from github.com):

    1. Open a new terminal (keep the orignal terminal still open).
    2. Show your public key in the terminal.
      cat ~/.ssh/id_ed25519.pub
    3. Copy the contents of the id_ed25519.pub file to your clipboard.
    4. In your web browser, log in to the github homepage. In the upper-right corner of any page, click your profile photo, then click "Settings".
    5. In the user settings sidebar, click "SSH and GPG keys".
    6. Click "New SSH key" or "Add SSH key".
    7. In the "Title" field, add a descriptive label for the new key. For example, if you're using a WSL, you might call this key "WSL". If you're using a lab machine, you might call this key "Lab machine".
    8. Paste your key into the "Key" field.
    9. Click "Add SSH key".
  4. Once it's all finished, you should see a message telling you that everything installed OK. If something went wrong or got interrupted, you can always try running the command above a second time. If you're stuck, email your instructor or talk to an MGSP leader for assistance.

2. Install the submit script

  1. The CS department submit server is a website created by CDR (ret) Jeff Kenney at USNA. We will use it to handle submissions of your programming projects, and to run auto-tests so that you can see how well your code is working.
    1. The URL for the submit system is https://submit.cs.usna.edu.
    2. Click the little person icon at the top left, and go to "Log On".
    3. Sign in to the submit system using your USNA credentials.
    4. Leave yourself signed-in to submit system for the next step.
  2. Follow the instructions below to download the submit file:
    1. In the submit server page, in the drop-down menu under your name, choose the "Retrieve Personalized Scripts" option.
    2. On that page, close to the top, there is a big button saying "DOWNLOAD PERSONALIZED SUBMISSION SCRIPT". Click it.
    3. Then, your submission script will be downloaded (probably into Downloads directory).
    4. Move the downloaded submit file to the ic210 directory.
  3. Open a terminal and execute the following commands:
    mv ~/ic210/submit ~/bin/submit
    chmod 700 ~/bin/submit
    The commands will move the submit file in ~/bin directory and then change the permission of the file to become executable.