VM images and setup scripts:

  1. Big VM image
  2. Minimal VM image
  3. setup script - You need to run this on your vm after you import the image.

How to import the image into VM and set up it?

  1. Download virtual box 5.0.16 from virtual box 5.0.16
  2. Download the image from above
  3. Open the virtual box and hit new to create a new VM.
  4. Type in any name you want in the "name" field
  5. Then choose "Linux" in the "Type" drop-down.
  6. Then, in the "Version" drop-down choose "Fedora (64 bit)"
  7. Hit "Continue"
  8. Choose the Memory Size that you'd like to allocate. Hit "Continue".
  9. Select "Use an existing virtual hard disk file" and then browse and select the image file that you downloaded from the course web-page.
  10. Then you should be able to launch the VM from the list that is displayed when you launch VBox.
  11. You need to run the script (setup.sh) above after you lauch the VM to set the VM up. You may need to change the permission first ("chmod u+x setup.sh")
  12. If you want to ssh into your VM, you need to change your network setting on VM to "Bridged Adapter"
  13. The VM doesn't have yacc installed. You need to type "sudo yum install byacc" in terminal to install it manually

How run the program and watch the video from the browser?

  1. Please check sec 2.1 for general guidance.
  2. You need to run network simulation as specified in writeup section 4.3
  3. You need to run your proxy as sepcified in writeup section 2.2.4
  4. Then you can open the firefox, type in the url specified in 2.2.4, and debug from there!

Test scripts

  • As said in writeup, we will provide you with test scripts and autolab will only be used for submission. You can check back this page for test scripts releases.
  • Checkpoint 1 grader
    1. Extract the script using "tar -xf cp1_grader.tar".
    2. This will extract a folder named "bitrate-project".
    3. In the same directory as this folder, copy the "proxy" file that your code compiles into. So, when you "ls" in the folder you should see : "bitrate-project proxy". The folder and executable MUST BE in the same directory.
    4. Now do "cd bitrate-project/grader/"
    5. This directory will have the grader files.
    6. Run this command : "sudo ./grader_cp1.py".
    7. Type in the super user password : "proj3", if prompted.
    8. When the test ends, your score will be displayed as the last line of the output.
  • Checkpoint 2 grader
  • You should follow the same steps to run this. In addition, you need to copy "nameserver" file over as well.

  • Last updated: 2017-08-30 19:15:02 -0400 [validate xhtml]