Getting your MIPS program to lectura
To use the provided testing script, you will need to copy your MIPS program to lectura. This page contains the instructions for copying your program from the CS department Windows systems, and from home computers (Windows, Linus, Mac).
From CS department Windows machines:
•Starting assumption: you are logged into a WinXP system in one of the CS department computer labs. You have your program, prog1.s, on the C: or D: drive, on a floppy (A: drive), on a CD, or on a USB “thumb” drive.
•Open the H: drive. I suggest that you create two folders in the H: drive. The first folder will be named 252. The second folder will be inside 252 and named prog1. I will assume below that you are using 252/prog1. You may use different names. If you do, substitute those names for 252/prog1 in what follows.
•Copy your prog1.s file to the H: drive by dragging it into the 252/prog1 folder you created in the previous step.
•Log into lectura:
•Choose PuTTY from the Start->All Programs (or double-click PuTTy on the desktop).
•In the PuTTY Configuration window that will appear type lectura for the host name. If you are using PuTTY from home, or a machine outside the CS department, you will need to type the complete host name: lectura.cs.arizona.edu
•If this is the first time you have used PuTTY to connect to lectura, a dialog box will appear telling you the “server’s host key is not cached in the registry”. Server here refers to lectura. Click “Yes”.
•When prompted, type your CS login.
•When prompted, type your CS password.
•If this is the first time you have logged into lectura, your password will be the (case-sensitive) first six characters of your UA Student ID. You will then be prompted to change your password. You will need to type your old password, your new password, and your new password again.
•You should then have a prompt from lectura at which you can type commands.
•Change to the directory where you copied your prog1.s file. I am assuming it is named 252/prog1. The command is:
cd 252/prog1
From Home using Windows:
If you are doing this from a Windows machine at home (or any location other than in one of the CS department’s computer labs), you will need to get the SSH Secure Shell software. The software is not installed by default on Windows systems. It is available for no cost from CCIT’s sitelicense software web page: https://sitelicense.arizona.edu/ssh/ssh.shtml. You want the two items PuTTy and WinSCP. You will need to download and install the software following the instructions on the web site.
The references above to the H: drive will not apply to a home machine. You should create a directory on your own machine for use with your 252 programs, and put your prog1.s and related files in this directory.
When you are ready to test your prog1.s program, use WinSCP to do a secure ftp of your program to lectura.
For the secure ftp:
•Start WinSCP. Enter the hostname: lectura.cs.arizona.edu. Enter your CS login for User Name. You can also enter your Password. Click Login.
•If this is the first time you have used WinSCP to connect to lectura, you will get a dialog box stating the “server’s host key was not found in the cache”. Click “Yes”.
•You will get a window split into two sides: lectura on the left, and your local machine on the right. I suggest using the H: drive to store your program on lectura. To choose the H: drive, use the drop down menu just above the left half (the lectura half) of the window: “C: Local Disk”. Choose the H: disk from this menu.
•You can now drag and drop files from your local machine to lectura (and vice versa).
You can now use PuTTY to login to lectura. Use lectura’s full name for the hostname: lectura.cs.arizona.edu. Once you are logged onto lectura, you can run the test cases as described in the Testing CSc 252 Programs handout.
Again, you are strongly encouraged to try this well before the due date. If you have problems, get in touch with us, and we can help.
From Home using Linux or Mac OS X:
If you are using Linux system, or a Mac OS X system, the instructions are different. The main differences: ssh, scp, and sftp are installed by default on these systems. You can use a command-line to transfer your file to lectura. An example command would be:
scp prog1.s username@lectura.cs.arizona.edu:
where username will be replaced with your CS login. When you execute the command, you will get a prompt asking for your password. Once you enter the password, your file will be transferred.
You then use the ssh command to login to lectura:
ssh username@lectura.cs.arizona.edu
You will be prompted for your lectura password. Once you are logged in, you can execute the turnin command.