Table of Contents |
---|
Comp 311 Homework Submission Guide
We will use turnin for all homework submissions. The turnin program is a script that uses Subversion to enable student homework submissions. It is available only in the Clear cluster.
You can opt to use regular SVN commands to submit your assignment : follow the submitting your homework with SVN commands section.
One time Setup in Clear
- Login to CLEAR:
ssh <your netid>@ssh.clear.rice.edu
<your password> - Make a new empty directory comp311 in your home directory and switch to that directory:
mkdir comp311
cd comp311
- Use Subversion to check out your submission directory:
svn checkout https://svn.rice.edu/r/COMP311-FALL15/turnin/F16/<your netid>
- You might be asked if you wish to store your password unencrypted. Always say no when asked this.
- Now you should have a folder named <your netid> in the comp311 directory you created.
Submitting your Homework from Your Own Unix Machine (Including Linux and Mac OS)
- Go to the folder on your machine that contains all (and only) the files you are submitting for your homework.
cd <your local homework directory>
- Zip the files you want to submit. Here ’n’ refers to the homework number.
zip -r hw_n.zip * - Use sftp to copy the zip file to Clear.
sftp <your-netid>@ssh.clear.rice.edu
<your-password>
- You should have the sftp prompt sftp> now. Go to to your comp311/netID directory.
cd comp311/netID/
- Create a new folder with the name hw_n for this homework number n
mkdir hw_n
- Now move your zip file to this directory:
cd hw_n
put hw_n.zip
The sftp app should indicate that your zip file has been copied to the folder hw_n. - Log in to your Clear account.
ssh <your-netid>@ssh.clear.rice.edu
<your-password>
- Go the folder hw_n
cd hw_n
- Unzip the file
unzip hw_n.zip
- Delete the zip file
rm hw_n.zip - Follow the instructions for Submitting Your Homework from the Clear Network
Submitting Your Homework from Your Own Windows Machine
Click this link to download secure SSH and FTP clients to your computer: SSHSecureShellClient- 3.2.9.ex.
You will be asked to log in. Just use your Net ID and password as you would when logging into Owlspace.
Your browser should start downloading a file SSHSecureShellClient-3.2.9 .exe. Once it is downloaded, run it. You’ll be asked a series of configuration questions.
The software will install itself and present you with a window indicating that setup is complete. Click Finish.
Now we have the software necessary to transfer files between your laptop and Clear. Go to your Start menu and under the new folder titled SSH Secure Shell, select the application Secure File Transfer Client.
A window will pop up. This is a client for transferring files from your computer using the Secure File Transfer Protocol (FTP). In the upper left hand corner of the window, there is a Quick Connect button. Select that. Next to Host Name type ssh.clear.rice.edu. Next to User Name type your Net ID. Hit Connect. You will be presented with a Host Identification window. Just click Yes.
Click OK when the Rice University Network prompt comes up. Enter the password you use for logging in to Owlspace at the next prompt.
It may take a few seconds, but the right hand side of the window should now show the files you have on Clear. To copy your homework to Clear, just navigate to where the files are on your computer in the left hand side of the window, and then click and drag them to the right. An entry will appear in the list at the bottom of the screen showing how much time is left in the transfer.
Congratulations! Your file is now on Clear. Use the Secure Shell Client that you downloaded with the Secure File Transfer Client (found in your Start menu under SSH Secure Shell) to connect to Clear.
- Follow the instructions for submitting from the Clear network.
Submitting Your Homework from a Windows Machine at Rice
If you are submitting homework from one of Rice’s Windows machines, such as those in the library or college computer labs,
- Save the document to your U:\ drive and see it on Clear.
- Put all of the files for your nth homework assignment in a subdirectory of your comp311 folder named hw_n.
- Follow the instructions for submitting from the Clear network.
Submitting your Homework from the Clear Network (Using Turnin)
- Make sure you are in your turnin directory.
cd ~/comp311/<your netid>
- All of your files for your nth homework assignment should be in a subdirectory named hw_n. Submit the folder hw_n
turnin COMP311-FALL15-F16:hw_n
This should show all your files being added to the Subversion repository.
Submitting your Homework from the Clear Network (Using SVN commands)
- Make sure you are in your turnin directory.
cd ~/comp311/<your netid>
- To check the status of your current directory, run :
svn status
This should show all your files that are added(A) / not added(?) / deleted(D) / modified (M) to the Subversion repository. - To add folders/ files, use :
svn add <<file_name>> (without angle brackets)
svn add <<folder_name>> (without angle brackets) – recursively adds all files in it
This should show all files/ folders that have been added to the Repository (this is still a local copy)- To delete folders/ files, use :
svn del <<file_name>> (without angle brackets)
svn del <<folder_name>> (without angle brackets) – recursively adds all files in it
This should show all files/ folders that have been deleted to the Repository (this is still a local copy)
- To delete folders/ files, use :
- To commit your files, use:
svn ci -m "Some relevant message here"
This should show all the files that have been added/ modified/ deleted ... followed by
-- Transmitting file data.
-- Committed revision <<rev. no>> - And you have successfully added your folder/ files to the SVN repository. Visit repo on the browser to confirm that all the file structure is intact.
Submitting your Homework from the Linux / Mac machines (Using SVN commands)
One time setup on your machine
- Make a new empty directory comp311 in your home directory and switch to that directory:
mkdir comp311
cd comp311 - Use Subversion to check out your submission directory:
svn checkout https://svn.rice.edu/r/COMP311-FALL15/turnin/F16/<your netid>
- Make a new empty directory comp311 in your home directory and switch to that directory:
- To check the status of your current directory, run :
svn status
This should show all your files that are added(A) / not added(?) / deleted(D) / modified (M) to the Subversion repository. - To add folders/ files, use :
svn add <<file_name>> (without angle brackets)
svn add <<folder_name>> (without angle brackets) – recursively adds all files in it
This should show all files/ folders that have been added to the Repository (this is still a local copy)- To delete folders/ files, use :
svn del <<file_name>> (without angle brackets)
svn del <<folder_name>> (without angle brackets) – recursively adds all files in it
This should show all files/ folders that have been deleted to the Repository (this is still a local copy)
- To delete folders/ files, use :
- To commit your files, use:
svn ci -m "Some relevant message here"
This should show all the files that have been added/ modified/ deleted ... followed by
-- Transmitting file data.
-- Committed revision <<rev. no>> - And you have successfully added your folder/ files to the SVN repository. Visit repo on the browser to confirm that all the file structure is intact.