CS 115 Lab 1, Part C: Copy your program to the CS department server

[Back to Lab 1 instructions]


Disclaimer

This part of the lab is NOT programming! You will never be asked about this material on a test. You are just learning to use some helpful tools to help you use the CS department server productively.

If you have not received your CS username and password yet, you won't be able to go past this point.

Goal

Image of FileZilla window

As the image shows, your Python programs are currently stored on the disk drive of your lab computer. You will need to copy them our server so that they can be saved permanently and submitted for grading.

The name of our server is cwolf. You will use a program called Terminal or PuTTY to set up folders on cwolf for you, and then you will use a program called FileZilla to help you copy the files into your new folders.

Instructions: Setting up your folders

  1. Open a program that allows you to connect to cwolf:
  2. You can create directories (folders) to organize your files on cwolf. Type
    mkdir cs115
    to create a directory for CS 115.
  3. Now, we'll move into your new directory. To change the current directory, we type a command instead of double-clicking on a folder:
    cd cs115
  4. Within your CS 115 directory, it's a good idea to have separate directories for each lab and project. Create a subdirectory for this lab:
    mkdir lab01
    and then type
    cd lab01
    to enter that directory.
  5. Now you have set up folders for your files on cwolf, like this:
    Folder hierarchy image
  6. Don't exit Terminal or PuTTY -- you'll need it for Part D.

Instructions: Copying your file

  1. Open FileZilla, which lets you copy files to and from cwolf:
  2. The top of the FileZilla window has four blanks. Fill them out as follows (substituting your specific information for the italicized text):
    Host: cwolf.cs.sonoma.edu
    User: your cwolf username
    Password: your cwolf password
    Port: 22
    Then click "QuickConnect".
  3. The bottom left of the FileZilla window shows the files on your local computer. Navigate the directory tree to find the script you just made: Once you have navigated to the right place, you should be able to see your lab01.py and lab01b.py files in the listing at the lower left.
  4. The right half of the screen shows your folders on cwolf. Double-click to navigate to your cs115/lab01 folder.
  5. In FileZilla, drag lab01.py and lab01b.py from the left half of the screen to the empty lab01 directory in the right-hand window. You have just copied your files from the lab computer to the server.
  6. In Terminal or PuTTY, type ls (that's a lowercase L followed by a lowercase S), and hit enter. You should see lab01.py and lab01b.py. If you don't see them, call an instructor for help.
  7. Exit FileZilla, but keep Terminal or PuTTY open.
  8. Continue to Part D.