Your workflow for SI204
Generally in this class, you will work on our lab machines
during lab periods and programming practica, and on your laptop
otherwise. In either case you'll be working under the Linux
operating system. There are two consequences to this:
-
we have to embed a Linux operating system in your Windows
laptop and configure it with all the programming ammenities
that you'll have with our lab machines, and
-
we have to provide a mechanism for keeping your work on the
lab machines synced with your work on your laptop.
The stuff you did for Class 1 homework and the setup we are
doing today in class are all about making this happen. So sorry
for all the instructions and and work, but it will pay off
starting tomorrow and for the rest of the semester and beyond!
Step 2. Setup github and Windows WSL
to communicate with one another (using ssh keys)
We want it to be as effortless as possible for you to move back and
forth between working on your laptop and working on the CS
Department lab machines. To do that, we will use a tool called
"git" (a hugely important and ubiquitious tool in the programming
world) to synch your work between the two accounts. You should
already have an account on github, follow the instructions below to
connect your github account and your laptop (or lab) development
environment.
[Show instructions]
Step 3. Setting up the submit script
The CS department submit server
(
https://submit.cs.usna.edu)
is a website created by CDR
(ret) Jeff Kenney at USNA.
We will use it to handle submissions of your programming projects,
labs and homeworks, and to run auto-tests so that you can see how
well your code is working. However, although you'll check the status
of submissions and get feedback on them via the website, you will
actually submit them from the command line. We need to set that up!
-
Login to
https://submit.cs.usna.edu
using your Naval Academy credentials.
-
Follow the instructions below to download the
submit file:
- In the submit server page, in the drop-down menu
under your name, choose the "Retrieve Personalized
Scripts" option.
- On that page, close to the top, there is a big button saying "DOWNLOAD
PERSONALIZED SUBMISSION SCRIPT". Click it.
Note: This will download the
file submit. If it's not put in the
Downloads directory automatically, move it there.
-
Open a terminal and execute the following commands:
mv ~/Downloads/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.