Difference between revisions of "CSC231 Homework 1 Fall 2012"
(→Misc. Information) |
|||
Line 62: | Line 62: | ||
<br /> | <br /> | ||
==Misc. Information== | ==Misc. Information== | ||
− | * [http://www.smith.edu/its/tara/file_transfer/ssh_sftp.html#installing| Installing ] ssh on your computer. | + | * [http://www.smith.edu/its/tara/file_transfer/ssh_sftp.html#installing| Installing ] ssh on your computer. (If you have trouble downloading ssh.exe from the Smith server, try this url: http://cs.smith.edu/uploads/ssh.exe ) |
* Tutorial on [http://www.math.toronto.edu/admin/ssh.html using ssh]. | * Tutorial on [http://www.math.toronto.edu/admin/ssh.html using ssh]. | ||
* [[Emacs Quick Reference| Emacs Quick Reference]] | * [[Emacs Quick Reference| Emacs Quick Reference]] |
Latest revision as of 14:09, 9 September 2012
--D. Thiebaut 09:24, 7 September 2012 (EDT)
Contents
Mini Assignment #1
This homework is due Monday 9/10/12 at 11:00 a.m., at the beginning of class. It won't be graded but will be checked. The purpose of this homework is to make sure everybody in class gets familiar with the process of logging in the 231 accounts, and editing, assembling and linking assembly language programs. You can work in pairs if you wish. Help each other out while figuring out how to edit and run the program.
Login
- Use the 231a-xx account that was given to you in class. (Replace mentally the xx by the two letters that identify your account.)
- On Windows machine, select Putty and enter beowulf.csc.smith.edu as the name of the host you want to connect to. Then when prompted for an account and password use your 231a-xx and password.
- On Macs, open Terminal then type:
ssh -Y 231a-xx@beowulf.csc.smith.edu
- and when prompted give your 231a-xx password.
You should now be all set to create a program with emacs.
Your Assignment
Write an assembly language program called hw1.asm based on the Hello World! program we saw in class, that will print out this message on the screen:
---------------------------------- Welcome to CSC231 ----------------------------------
The actual number of dash characters, and the alignment is not important. Efficiency is not important either. Just a clean output is required.
How to Submit
From your 231 account, submit your file as follows:
rsubmit hw1 hw1.asm
Troubleshooting
It is possible that if you are using ssh to connect to Beowulf the first time, and if you are using a Mac, you get a message of this form:
ssh 231a-xx@beowulf.csc.smith.edu
==================================================
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
==================================================
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
bf:db:14:e6:a4:e0:f3:3d:d8:87:35:66:a9:35:68:fb.
Please contact your system administrator.
Add correct host key in /Users/alex/.ssh/known_hosts to get rid of this message.
Offending key in /Users/xxxxx/.ssh/known_hosts:1
RSA host key for beowulf.csc.smith.edu has changed and you have requested strict checking.
Host key verification failed.
In this case, use the editor of your choice and edit the file ~/.ssh/known_hosts and remove the lines that contains the word beowulf. Be careful, the lines are very long and wrap around to form blocks of 4 or 5 lines on your screen, so deleting one line will require a big block to disappear. Bold text
Misc. Information
- Installing ssh on your computer. (If you have trouble downloading ssh.exe from the Smith server, try this url: http://cs.smith.edu/uploads/ssh.exe )
- Tutorial on using ssh.
- Emacs Quick Reference