howto_submit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto_submit [2016/09/19 16:53] – burton | howto_submit [2018/09/12 17:07] (current) – burton | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~PRINTTOC~~ | + | ====== How to submit from outside the Prism lab ====== |
- | ==== How to submit from outside | + | This course uses an automated system that checks your submitted work for correctness and coding style. The system is not currently compatible with the [[https:// |
+ | |||
+ | ==== Windows users ==== | ||
+ | |||
+ | Windows does not provide an easy-to-use method for transferring files or for remotely logging in to a UNIX workstation. You will need to download and install software to provide these services. | ||
+ | |||
+ | == Step 1 == | ||
+ | Download and install [[https:// | ||
+ | |||
+ | == Step 2 == | ||
+ | Download and install [[https:// | ||
+ | |||
+ | == Step 3 == | ||
+ | Remote login to the EECS undergraduate server and create a directory for your submission files if you have not already done so in the past. Do this by running the **putty** program that you installed in Step 2. In the //Host Name (or IP address)// field enter the EECS undergraduate server name **red.cse.yorku.ca** and then click the //Open// button | ||
+ | |||
+ | {{ :putty1.png }} | ||
+ | |||
+ | == Step 4 == | ||
+ | You may get a warning window stating //"The server' | ||
+ | |||
+ | == Step 5 == | ||
+ | You should see a login terminal appear: | ||
+ | |||
+ | {{ :putty2.png }} | ||
+ | |||
+ | == Step 6 == | ||
+ | Type your EECS user name and press //Enter//. Type your EECS password and press //Enter//; **your password will not appear as you type it**. | ||
+ | |||
+ | {{ :putty3.png }} | ||
+ | |||
+ | == Step 7 == | ||
+ | To keep things organized, make a directory named submit | ||
+ | |||
+ | < | ||
+ | mkdir submit | ||
+ | cd submit | ||
+ | </ | ||
+ | |||
+ | Do not close **putty**; you still need it to run the submit command. | ||
+ | |||
+ | {{ :putty4.png }} | ||
+ | |||
+ | == Step 8 == | ||
+ | Transfer your files from your computer to the EECS undergraduate server. Do this by running the **WinSCP** program that you installed in Step 1. Enter the EECS undergraduate server name **red.cse.yorku.ca** as the //Host name//, type in your EECS user name and password, and press the //Login// button. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | == Step 9 == | ||
+ | You may get a warning window stating //"The server' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | == Step 10 == | ||
+ | When you successfully login, you should see the **WinSCP** program running as shown in the figure below. The left pane shows the file system of your computer, and the right pane shows the file system of the EECS undergraduate server. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | == Step 11 == | ||
+ | In the left pane, navigate to the folder containing your submission files using the //Open directory/ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | == Step 12 == | ||
+ | In the figure below, you can see that I have successfully found the files that I want to submit in the left pane. | ||
+ | |||
+ | In the right pane, navigate to your **submit** directory that you created in Step 7. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | == Step 13 == | ||
+ | In the left pane, select the files that you want to submit. In the figure below, you can see that I have selected three files to submit. Click the //Upload// button (highlighted in red in the figure below) to upload your files. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | == Step 14 == | ||
+ | When the upload is finished, you will see your files appear in your account on the EECS server in the right pane. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | == Step 15 == | ||
+ | In **putty** verify that your files have been successfully uploaded by listing the contents of the directory: | ||
+ | |||
+ | < | ||
+ | ls | ||
+ | </ | ||
+ | |||
+ | {{ :putty5.png }} | ||
+ | |||
+ | |||
+ | |||
+ | == Step 16 == | ||
+ | In **putty**, type in the submit command given to you by your instructor. For example, to submit lab1 for EECS2030 you might type: | ||
+ | |||
+ | < | ||
+ | submit 2030 lab1 Point2.java SpiroUtil.java group.txt | ||
+ | </ | ||
+ | |||
+ | {{ :putty6.png }} | ||
+ | |||
+ | == Step 17 == | ||
+ | Read the output of the submit command carefully. If there are errors with your submission you may be forced to re-submit your corrected work. | ||
+ | |||
+ | == Step 18 == | ||
+ | You may re-submit your work as many times as you like. Every time you make changes to your work on your computer, you must re-transfer your work using **WinSCP** and re-submit by typing in the submit command in **putty**. | ||
+ | |||
+ | ==== Mac users ==== | ||
+ | Mac OS provides a terminal program much like the terminal program that you use in the Prism labs. You can transfer your files and submit using the Mac terminal. | ||
+ | |||
+ | == Step 1 == | ||
+ | In **Launchpad**, | ||
+ | |||
+ | {{ :term1.png }} | ||
+ | |||
+ | == Step 2 == | ||
+ | **ssh** (short for //secure shell//) is a program for logging into a remote computer and for executing commands on a remote computer. | ||
+ | |||
+ | Remotely log in to your EECS account using **ssh** by typing the following command and pressing // | ||
+ | |||
+ | < | ||
+ | ssh your_eecs_username@red.eecs.yorku.ca | ||
+ | </ | ||
+ | |||
+ | You should replace '' | ||
+ | |||
+ | < | ||
+ | ssh burton@red.eecs.yorku.ca | ||
+ | </ | ||
+ | |||
+ | {{ :term2.png }} | ||
+ | |||
+ | == Step 3 == | ||
+ | If this is the first time that you have remotely logged in to the server, you will receive a warning message. Type '' | ||
+ | |||
+ | {{ :term3.png }} | ||
+ | |||
+ | == Step 4 == | ||
+ | Enter your password and press //enter// (your password will not appear as your type): | ||
+ | |||
+ | {{ :term4.png }} | ||
+ | |||
+ | == Step 5 == | ||
+ | You are now logged in to your EECS account. Notice that the prompt in your terminal has changed to **red** which is the name of the EECS server computer that you are currently logged in to. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | == Step 5 == | ||
+ | To keep things organized in your EECS account, you should create a directory for your submission files. Type in the following commands, pressing //enter// after each command (if you haven' | ||
+ | |||
+ | < | ||
+ | mkdir submit | ||
+ | cd submit | ||
+ | </ | ||
+ | |||
+ | This will create a directory named '' | ||
+ | |||
+ | {{ :term5.png }} | ||
+ | |||
+ | |||
+ | == Step 6 == | ||
+ | Open a second **terminal** window (click on the //Shell// menu and click on //New Window//). You will use this terminal to access files on your computer. | ||
+ | |||
+ | {{ :term6.png }} | ||
+ | |||
+ | == Step 7 == | ||
+ | Find the directory where your submission files are located. For eclipse users, you can find the directory holding your files using eclipse (in eclipse, open one of your submission files, click the //File// menu and select // | ||
+ | |||
+ | == Step 8 == | ||
+ | Change to the directory on your computer where your submission files are located. For example, my files are located in the directory '' | ||
+ | |||
+ | < | ||
+ | cd workspace/ | ||
+ | </ | ||
+ | |||
+ | {{ :term7.png }} | ||
+ | |||
+ | == Step 9 == | ||
+ | List the contents of the directory by typing the following command into the terminal and press // | ||
+ | |||
+ | < | ||
+ | ls | ||
+ | </ | ||
+ | |||
+ | In the figure below you can see that I have three files in the directory | ||
+ | ('' | ||
+ | |||
+ | {{ :term8.png }} | ||
+ | |||
+ | |||
+ | == Step 10 == | ||
+ | Transfer your files to your '' | ||
+ | |||
+ | < | ||
+ | scp * your_eecs_username@red.eecs.yorku.ca: | ||
+ | </ | ||
+ | |||
+ | Again, replace '' | ||
+ | |||
+ | If you want to transfer specific files you can do so by transferring them one at a time; for example, I could transfer all three files individually by typing: | ||
+ | |||
+ | < | ||
+ | scp Point2.java burton@red.eecs.yorku.ca: | ||
+ | scp SpiroUtil.java burton@red.eecs.yorku.ca: | ||
+ | scp group.txt burton@red.eecs.yorku.ca: | ||
+ | </ | ||
+ | |||
+ | {{ :term9.png }} | ||
+ | |||
+ | |||
+ | == Step 11 == | ||
+ | **scp** will prompt you for your EECS password; type it in and press //enter//. | ||
+ | |||
+ | {{ :term10.png }} | ||
+ | |||
+ | |||
+ | == Step 12 == | ||
+ | **scp** will transfer a copy of your files from your computer to your EECS account. | ||
+ | |||
+ | {{ :term11.png }} | ||
+ | |||
+ | |||
+ | == Step 13 == | ||
+ | Switch back to the first terminal window that you opened (the terminal where you are currently logged into **red**). | ||
+ | |||
+ | Make sure that your files have been transferred into your '' | ||
+ | |||
+ | < | ||
+ | ls | ||
+ | </ | ||
+ | |||
+ | In the figure below, you can see that the files '' | ||
+ | |||
+ | {{ :term12.png }} | ||
+ | |||
+ | |||
+ | == Step 14 == | ||
+ | Submit your files using the command provided by your instructor. | ||
+ | |||
+ | For example, to submit lab1 for EECS2030 you might type: | ||
+ | |||
+ | < | ||
+ | submit 2030 lab1 Point2.java SpiroUtil.java group.txt | ||
+ | </ | ||
+ | |||
+ | {{ :term13.png }} | ||
+ | |||
+ | == Step 15 == | ||
+ | Read the output of the submit command carefully. If there are errors with your submission you may be forced to re-submit your corrected work. | ||
+ | |||
+ | |||
+ | |||
+ | == Step 18 == | ||
+ | You may re-submit your work as many times as you like. Every time you make changes to your work on your computer, you must re-transfer your work using '' | ||
+ | |||
+ | Your remote login session ends automatically if you don't enter any commands for a certain period of time. If this happens, you will see a message that mentions a '' | ||
+ | run the **ssh** program again to log back into **red**. | ||
- | Hello |
howto_submit.1474303999.txt.gz · Last modified: 2016/09/19 16:53 by burton