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/20 02:08] – burton | howto_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/ |
== 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. |
{{ : | {{ : | ||
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. |
- | Remotely log in to your EECS account using '' | + | Remotely log in to your EECS account using **ssh** by typing the following command and pressing //enter//: |
< | < | ||
Line 130: | Line 130: | ||
</ | </ | ||
- | {{ :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 '' | If this is the first time that you have remotely logged in to the server, you will receive a warning message. Type '' | ||
- | {{ :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. |
- | To keep things organized | + | |
- | < | + | {{ :term4-2.png }} |
- | mkdir submit | + | |
- | </ | + | |
- | + | ||
- | This will create a directory named '' | + | |
- | + | ||
- | {{ :terminal5.png }} | + | |
== Step 5 == | == Step 5 == | ||
- | Log out of your EECS account | + | To keep things organized in your EECS account, you should create a directory for your submission files. Type in the following |
< | < | ||
- | exit | + | mkdir submit |
+ | cd submit | ||
</ | </ | ||
- | {{ :terminal6.png }} | + | This will create a directory named '' |
+ | |||
+ | {{ :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 | + | Open a second **terminal** window |
+ | |||
+ | {{ :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 // | ||
+ | |||
+ | == Step 8 == | ||
Change to the directory on your computer where your submission files are located. For example, my files are located in the directory '' | Change to the directory on your computer where your submission files are located. For example, my files are located in the directory '' | ||
Line 175: | Line 176: | ||
</ | </ | ||
- | {{ :terminal7.png }} | + | {{ :term7.png }} |
- | == Step 8 == | + | == Step 9 == |
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: | ||
</ | </ | ||
- | {{ :terminal8.png }} | + | In the figure below you can see that I have three files in the directory |
+ | ('' | ||
+ | {{ :term8.png }} | ||
- | == Step 9 == | + | |
+ | == Step 10 == | ||
Transfer your files to your '' | Transfer your files to your '' | ||
Line 196: | Line 200: | ||
Again, replace '' | Again, replace '' | ||
- | 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, |
- | for example, | + | |
< | < | ||
- | scp Point2.java | + | scp Point2.java |
+ | scp SpiroUtil.java burton@red.eecs.yorku.ca: | ||
+ | scp group.txt burton@red.eecs.yorku.ca: | ||
</ | </ | ||
- | {{ :terminal9.png }} | + | {{ :term9.png }} |
- | == Step 10 == | + | == Step 11 == |
- | '' | + | **scp** will prompt you for your EECS password; type it in and press // |
+ | {{ :term10.png }} | ||
- | == Step 11 == | ||
- | Transfer any other files that you wish to submit. | ||
== Step 12 == | == Step 12 == | ||
- | Log in to your EECS account | + | **scp** will transfer a copy of your files from your computer |
- | + | ||
- | < | + | |
- | ssh your_eecs_username@red.eecs.yorku.ca | + | |
- | </ | + | |
- | + | ||
- | {{ :terminal11.png }} | + | |
+ | {{ :term11.png }} | ||
+ | |||
== Step 13 == | == Step 13 == | ||
- | Change | + | Switch back to the first terminal window that you opened (the terminal where you are currently logged into **red**). |
- | {{ :terminal12.png }} | + | Make sure that your files have been transferred into your '' |
+ | < | ||
+ | ls | ||
+ | </ | ||
- | == Step 14 == | + | In the figure below, you can see that the files '' |
- | Use the '' | + | |
- | {{ :terminal14.png }} | + | {{ :term12.png }} |
- | + | == Step 14 == | |
- | == Step 15 == | + | |
Submit your files using the command provided by your instructor. | Submit your files using the command provided by your instructor. | ||
Line 245: | Line 246: | ||
</ | </ | ||
- | {{ :terminal15.png }} | + | {{ :term13.png }} |
- | == Step 16 == | + | == 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. | 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. | ||
- | If you are satisfied with the results of your submission, you can close your remote login session by typing '' | ||
== Step 18 == | == 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 '' | + | 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**. | ||
howto_submit.1474337309.txt.gz · Last modified: 2016/09/20 02:08 by burton