CS 31: Lab 0

Due: before Lab on Wednesday


Everybody do the following:

  1. Read the class webpage CS31

  2. Set up your Swarthmore GitHub account: follow these directions
  3. (we will go over these steps quickly at the begining of lab on Wednesday but please try this on your own before lab). NOTE: you need a CS account to do this. If you don't have one, see Jeff Knerr on Monday or me in class on Tuesday to get your account.

  4. Try out the class piazza page (do Assignment 1 off this page)
  5. CS31'F15 piazza page. You will receive an email with information about how to connect. Let us know in lab on Wednesday if you encountered problems using our piazza page.

Students who have not taken CS21 do this first:

  1. Go to a CS lab and login with your new account. It will ask you to reset your password. Read and sign the user agreement form and return to me or to Jeff Knerr. Read the lab rules and user rules off the CS help pages. To logout, choose the logout icon logout and choose "log out".
  2. Attend one of the Using Unix Sessions:
      Monday and Tuesday 7-8 pm Sci Center 256
  3. After going through the Using Unix material: create a cs31 subdirectory in your home directory. Start an xterm and at the unix prompt ($) enter the following command sequence (#'s are explainations of each command):
  4.   $  cd                 # change current working directory to your home directory 
      $  pwd                # print current working directory
      $  mkdir cs31         # create a new subdirectory named cs31
      $  ls                 # list contents of current working directory (your home directory)
      $  cd cs31            # change current working directory to cs31
      $  pwd                # print current working directory 
    
    Here is some information about the Unix directory structure.

  5. Learn an editor (vim). Unless you already know emacs, I recommend that you learn and use the vim editor on our system.

    From within your cs31 subdirectory run the vim tutorial:

      $  cd ~/cs31
      $  pwd
      $  vimtutor           # start the vim tutorial
    
    Just go through the following sections of vimtutor (the other sections cover more obscure features that are not necessary):
    * all of Lesson 1 (moving around, x, i, A, :wq)
    * Lesson 2.6 (dd)
    * Lesson 2.7 (undo)
    * Lesson 3.1 (p) and 3.2 (r)
    * Lesson 4.1 (G) and 4.2 (searching)
    * Lesson 6.2 (a), 6.3 (R), and 6.4 (y and p)
    
    This tutorial will take about 20-30 minutes.

As you work in a CS lab, if you plan to leave the lab for just a few minutes and then come right back to work, you do not need to log out, but it is a good idea to lock your machine while you are gone. You can lock your screen by clicking on the lock icon xlock. You should not lock a machine if you plan to be gone for more than about 10 minutes, and you should not lock main lab machines during times when classes are held in the lab.