----------------------------------------------------- Week 5 Notes for DAT2330 - Ian Allen - idallen@ncf.ca ----------------------------------------------------- Remember - knowing how to find out an answer is more important than memorizing the answer. Learn to fish! RTFM! (Read The Fine Manual) ------ Review ------ In Week 4 (see week04notes.txt) you finished Exercise 3. You read the Chapter 4 Reading Guide very carefully. You did five more Floppix labs on www.floppix.com and read some of the "Other Useful Notes" files in preparation for your first Linux test. ------------------ This Week (Week 5) ------------------ 1. Prepare for your first Unix test this Friday. Go over the weekly notes files and the Chapter Reading/Study guides. See the file practiceTest1.{pdf,txt} under the "Tests and Exams" section under the Notes buttons for sample questions. The test on Friday will have about 40 questions on it - that's about one question per minute. See also: review1.txt 2. Correct any of Exercises 1,2,3, if you submitted incorrect answers. 3. Log in to the IDAllen Linux Machine via "ssh" (use PuTTY from Windows) using your Algonquin userid and a password that is the last 7 digits of your student number prefixed by an upper-case letter "D". The IDAllen Linux Machine is here: idallen-linux.ottawa.ad.algonquincollege.com -OR- 10.50.5.163 (this address may change during the term) Using ssh to idallen-linux from a shell prompt in room T111: $ ssh -l abcd0123 idallen-linux.ottawa.ad.algonquincollege.com Say "yes" (not "y") to accept the new host key if it asks you. "abcd0123" should be replaced with your Algonquin network userid. The machine permits only "ssh" type logins - telnet is insecure and is not permitted. Change your password once you log in. If you forget your password on idallen-linux, see me; I can reset it. Do *not* go to ITS regarding any problems with the idallen-linux machine. See me. ITS will permit access to the idallen-linux machine only from the T111 lab. You cannot get to it from anywhere outside T111 this term. 4. Start the short VIM tutorial by copying the tutorial file into your directory and editing it. See how under "Online VIM Tutorial" in the file "vi_basics.txt" under the Notes buttons. Follow the instructions in the tutorial. 5. Complete this Floppix Lab on http://www.floppix.com/ Floppix Lab 8: introduction to vi The URL referenced in the lab is now at: http://unix.t-a-y-l-o-r.com/ Note: A good version of "vim" (Vi iMproved) is also available on ACADUNIX. It is named "vim", not "vi" on ACADUNIX. The ACADUNIX "vi" command is the old IBM AIX version of VI that has few features. Use "vim" on ACADUNIX, not "vi". You can define an alias in your ACADUNIX .profile and/or .bashrc file: alias vi=vim All your Unix shell scripts, and your JCL in the MVS part of the course, will be entered using this VI (or VIM) text editor. Learning to use it well will speed up your work and get you a better mark. Learning to use VI (or VIM) is not an intellectual exercise. You have to *use* it and get used to it through practice. I will cover only the basics of VI in class - it's up to you to do the practice each day. The more you learn about the editor, the faster you will be able to edit and the better your marks will be on online tests.