Signing In and Using p_copy


Using Your CSC Computer Account

In many CSC courses, your instructor will distribute computer accounts. These accounts allow you to sign in to classes.csc.lsu.edu a Linux server. The server can be accessed with an FTP client (such as FileZilla or WinSCP) or by an SSH client (such as Putty).

Using FTP, you can copy files from Windows to the server and send them in for grading with the p_copy system. Your instructor will explain how to do this if needed.

In more advanced programming courses, you will sign in to classes.csc.lsu.edu using an SSH client. This presents you with a Linux shell where you type text commands to navigate the file system, perform basic operations such as creating, moving and copying files, and launch programs such as text editors to write programs, compilers to compile them, and the programs themselves. Working on Classes directly teaches you the fundamentals of using a Linux shell which is a valuable skill for any programmer.

Shell basics are explained here, but first we will explain how to use an SSH client to connect to the server.


Connecting from Off Campus

If you are working from off-campus (or by cell phone network), you'll need to connect to the LSU VPN before you can connect to the Classes Server. If you're on LSU WiFI (eduroam) you don't need the VPN. The VPN is documented by LSU's Information Technology Services (ITS). Follow the instructions at this link and be sure to test the system early if you plan to work from home. The VPN connection can only be used and tested off-campus. Call the LSU Help Desk for assistance (578-DESK) if you are unable to connect. Once the VPN app is running, you can follow the steps below just as if you're on campus.


Starting or Downloading Putty (Windows)

If you're using a CSC or CoE lab computer, check the desktop for a Putty icon. Alternately, type putty into the Windows start menu search. Putty is definitely installed in CSC labs PFT 2317, 2324, 2326 and 2304. It should also be installed in most College of Engineering labs in PFT.

If Putty is not available, you will have to download a copy. Here's a direct link. Save it to your desktop.

If you're using your own Windows laptop, go to putty.org and click the download link. This takes you to a secondary page (www.chiark...). I recommend using the 32-bit or 64-bit MSI installer. You can also find links to the stand-alone version just below in the "Alternative binary files" section.

Once you've located, downloaded or installed Putty, start the program.


Using Putty

After you start Putty, you'll see a window similar to the one below.

Type classes.csc.lsu.edu in the Host Name field as shown. The port should already be set to 22 and the radio button set to SSH. Press enter or click the "Open" button.

Putty will open a text terminal window with a black background. If it's your first connection, it will give an authentication warning. Type yes and press enter. The server now prompts for your Login then password. You'll find these on your paper computer account slip. Note that every Login starts with cs not csc (e.g. cs270099).

If you type anything incorrectly, you'll have to try again. Too many failed attempts in a short time will get you locked out of the system for 5 to 10 minutes. You could try again immediately from a different computer, or just wait it out. While locked out, putty won't even ask for your Login.

Once successful, you'll see the Classes server prompt in your Putty window as below.

username@classes:~$

Skip to the section on p_copy to review basic usage and verify your settings.


Note for Mac or Linux Users

Macs and Linux systems should already have an SSH client installed by default. Use your finder or search and look for "term". You may see different variations of Terminal, Term, X-Term and so on. Open any terminal program.

Once you have a terminal open, type the following command where username is the Login listed on your computer account slip obtained from your instructor (for example cs270099).

ssh username@classes.csc.lsu.edu

If it's your first time connecting, you'll get a warning about authenticity asking if you're sure you want to connect. Type yes and press enter. The system will ask for your password. If successful, you'll see the following:

username@classes:~$

You should always check that "@classes:" is in your prompt. If not, then your connection attempt failed and you are using a local terminal with access to your own computer. The Mac and Linux terminals have many of the same commands available as our classes server, but you won't be able to submit your work via p_copy among other problems.

Once connected, you can use the other instructions (such as Shell Basics) just the same as students using Putty. Review the final section on p_copy now.


Using p_copy and verify

Your instructor should give you information about using p_copy and verify to submit assignments for grading. Using p_copy relies on settings in a file named .profile. If you accidentally delete this file, you'll get a helpful error message if you attempt to use p_copy (please read it carefully and follow instructions).

In summary, put your assignment in directories such as prog1 or prog2 as directed by your instructor, then call p_copy N to submit all the contents of that directory for grading. Use verify to view what you've submitted and at what time. For example:

$ p_copy 1  #submits contents of prog1/ for grading
$ verify 1  #lists details of files previously sent by 'p_copy 1'
$ p_copy 2  #submits contents of prog2 for grading
$ verify 2  #lists details of files previously sent by 'p_copy 2'

You should always run verify after p_copy to make sure your work was submitted. If you failed to call p_copy correctly, then a call to verify will reveal that no assignment was submitted.