π Methodology Assignment 1
Before attempting this assignment, make sure to read Lesson 1. Submit this assignment to Gradescope by Sunday, October 2nd at 11:59PM. Post questions with the assignment here.
Follow the steps below.
- On GitHub, create a private repository called
DSC180A-Methodology-1
. - Using SSH, log into a jumpbox server on DSMLP. Donβt run a launch script just yet β only do that in step 6.
- While on the jumpbox server, clone the Git repository you created. Then, change directories into repository (
cd DSC180A-Methodology-1
). - Run the command
uname -a > uname-jumpbox.txt
. This saves a snapshot of your server information to a file nameduname-jumpbox.txt
. - Run
echo ~ > homedir.txt
. This stores the path to your home directory in a file namedhomedir.txt
. At this point, theDSC180A-Methodology-1
folder should have 2 files in it βuname-jumpbox.txt
andhomedir.txt
. - Use a launch script, like
launch-scipy-ml.sh
, to initialize a container. This will bring you to your home directory once again. - Change directories back into your repository again (
cd DSC180A-Methodology-1
). Now, rununame -a > uname-container.txt
. - Open a Jupyter Notebook using the URL that appeared when you ran the launch script, either through port forwarding or the campus VPN.
- Copy the exact URL that appeared when you ran the launch script. Suppose that URL was
XXX
. Run the commandecho XXX > notebook-url.txt
. This will create a file namednotebook-url.txt
with your notebookβs URL in it. To verify that this worked correctly, runcat notebook-url.txt
and you should see your URL. - Commit and push your changes to GitHub. Your repository should have 4 files in it β
uname-jumpbox.txt
,homedir.txt
,uname-container.txt
, andnotebook-url.txt
. - Submit the GitHub repository to Gradescope under Methodology Assignment 1. Note: Youβll be able to see your score right when you submit; make sure you receive a full score.
Note: Here is information on using Git on the command-line. You may have to set up a personal access token, especially if you run into authentication issues. In addition, you can set up SSH keys to avoid having to enter your username and personal access token each time you log into GitHub on DSMLP.