User Tools

Site Tools


howto_submit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto_submit [2016/09/20 02:01] burtonhowto_submit [2018/09/12 17:07] (current) burton
Line 11: Line 11:
  
 == Step 2 == == Step 2 ==
-Download and install [[https://winscp.net/eng/download.php|putty]] (at the bottom of the linked page; it is easiest to use the PuTTY Installation package). **putty** is an open source free program that supports secure remote login to a host computer (among other things).+Download and install [[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html|putty]] (at the bottom of the linked page; it is easiest to use the PuTTY Installation package). **putty** is an open source free program that supports secure remote login to a host computer (among other things).
  
 == Step 3 == == Step 3 ==
Line 66: Line 66:
 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 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.+In the right pane, navigate to your **submit** directory that you created in Step 7.
  
 {{ :winscp5.png }}  {{ :winscp5.png }} 
Line 111: Line 111:
  
 == Step 1 == == Step 1 ==
-In Launchpad, search for the **terminal** program, and start the **terminal** program.+In **Launchpad**, search for the **terminal** program, and start the **terminal** program. You will use this terminal to access files on your EECS account by logging into the EECS undergraduate server computer.
  
-{{ :terminal1.png }}+{{ :term1.png }}
  
 == Step 2 == == Step 2 ==
-''ssh'' (short for //secure shell//) is a program for logging into a remote computer and for executing commands on a remote computer.+**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 //enter//:+Remotely log in to your EECS account using **ssh** by typing the following command and pressing //enter//:
  
 <code> <code>
Line 130: Line 130:
 </code> </code>
  
-{{ :terminal2.png }}+{{ :term2.png }}
  
 == Step 3 == == Step 3 ==
 If this is the first time that you have remotely logged in to the server, you will receive a warning message. Type ''yes'' and press //enter// to continue: If this is the first time that you have remotely logged in to the server, you will receive a warning message. Type ''yes'' and press //enter// to continue:
  
-{{ :terminal3.png }}+{{ :term3.png }}
  
 == Step 4 == == Step 4 ==
 Enter your password and press //enter// (your password will not appear as your type): Enter your password and press //enter// (your password will not appear as your type):
  
-{{ :terminal4.png }}+{{ :term4.png }}
  
 == Step 5 == == Step 5 ==
-You are now logged in to your EECS account. +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.
-To keep things organized in your EECS account, you should create a directory for your submission filesType in the following command and press //enter// (if you haven't already done this in the past):+
  
-<code> +{{ :term4-2.png }}
-mkdir submit +
-</code> +
- +
-This will create a directory named ''submit'' in your home directory of your EECS account. +
- +
-{{ :terminal5.png }}+
  
  
 == Step 5 == == Step 5 ==
-Log out of your EECS account by typing the following command and pressing //enter//:+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't already done this in the past):
  
 <code> <code>
-exit+mkdir submit 
 +cd submit
 </code> </code>
  
-{{ :terminal6.png }}+This will create a directory named ''submit'' in your home directory of your EECS account, and then change to the newly created directory. 
 + 
 +{{ :term5.png }}
  
  
 == Step 6 == == Step 6 ==
-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 //Properties//). +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 == == 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 //Properties//). 
 +
 +== Step 8 ==
 Change to the directory on your computer where your submission files are located. For example, my files are located in the directory ''workspace/EECS2030/src/eecs2030/lab1''. To change to that directory I would type the following command into the terminal and press //enter//: Change to the directory on your computer where your submission files are located. For example, my files are located in the directory ''workspace/EECS2030/src/eecs2030/lab1''. To change to that directory I would type the following command into the terminal and press //enter//:
  
Line 175: Line 176:
 </code> </code>
  
-{{ :terminal7.png }}+{{ :term7.png }}
  
-== Step ==+== Step ==
 List the contents of the directory by typing the following command into the terminal and press //enter//: List the contents of the directory by typing the following command into the terminal and press //enter//:
  
Line 184: Line 185:
 </code> </code>
  
-{{ :terminal8.png }}+In the figure below you can see that I have three files in the directory 
 +(''Point2.java'', ''SpiroUtil.java'', and ''group.txt'').
  
 +{{ :term8.png }}
  
-== Step ==+ 
 +== Step 10 ==
 Transfer your files to your ''submit'' directory on the EECS undergraduate server. If you want to transfer all of the files in the directory use the following command: Transfer your files to your ''submit'' directory on the EECS undergraduate server. If you want to transfer all of the files in the directory use the following command:
  
Line 196: Line 200:
 Again, replace ''your_eecs_username'' with your actual EECS user name. Again, replace ''your_eecs_username'' with your actual EECS user name.
  
-If you want to transfer specific files you can do so by transferring them one at a time; +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:
-for example, to transfer the file named ''Point2.java'':+
  
 <code> <code>
-scp Point2.java your_eecs_username@red.eecs.yorku.ca:submit+scp Point2.java burton@red.eecs.yorku.ca:submit 
 +scp SpiroUtil.java burton@red.eecs.yorku.ca:submit 
 +scp group.txt burton@red.eecs.yorku.ca:submit
 </code> </code>
  
-{{ :terminal9.png }}+{{ :term9.png }}
  
  
-== Step 10 == +== Step 11 == 
-''scp'' will prompt you for your EECS password; type it in and press //enter//+**scp** will prompt you for your EECS password; type it in and press //enter//
  
 +{{ :term10.png }}
  
-== Step 11 == 
-Transfer any other files that you wish to submit. 
  
 == Step 12 == == Step 12 ==
-Log in to your EECS account (entering your password when required):+**scp** will transfer a copy of your files from your computer to your EECS account.
  
-<code> +{{ :term11.png }} 
-ssh your_eecs_username@red.eecs.yorku.ca + 
-</code>+
  
-{{ :terminal11.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 ''submit'' directory by typing the following command and press //enter//:
  
-== Step 13 == +<code> 
-Change to your ''submit'' directory:+ls 
 +</code>
  
-{{ :terminal12.png }}+In the figure below, you can see that the files ''group.txt'', ''Point2.java'', and ''SpiroUtil.java'' are now in the submit directory of my EECS account. 
 + 
 +{{ :term12.png }}
  
  
 == Step 14 == == Step 14 ==
-Use the ''ls'' command to check that your files have been transferred correctly:+Submit your files using the command provided by your instructor.
  
-{{ :terminal14.png }}+For example, to submit lab1 for EECS2030 you might type:
  
 +<code>
 +submit 2030 lab1 Point2.java SpiroUtil.java group.txt
 +</code>
  
 +{{ :term13.png }}
  
 == Step 15 == == Step 15 ==
-Submit your files using the command provided by your instructor.+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 ''scp'' (using a terminal window on your computer) and re-submit by typing in the submit command (using a terminal window where you are logged into **red**).
  
-{{ :terminal15.png }}+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 ''broken pipe'' and your terminal prompt will show the name of your computer (indicating that you are no longer remotely logged into **red**). If this happens, 
 +run the **ssh** program again to log back into **red**.
  
howto_submit.1474336891.txt.gz · Last modified: 2016/09/20 02:01 by burton

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki