Updated: 2017-01-20 00:48 EST

1 Readings, Assignments, Labs, Tests, and ToDo

1.1 Read (at least) these things (All The Words)

  1. Week 10 Notes HTML – this file – Read All The Words
  2. Shell command substituion – interpolate stdout into a command line using $(…) or `…`
  3. Command exit status – variable $?
  4. Shell Control Structures – if, then, else, test, [...]
  5. List of Commands You Should Know
  6. Linux and Sysadmin News in the World
  7. Video Tutorials on Lynda.com – tagged by week number

1.2 Assignments, Quizzes, and Lab work this week

Reminder: There are now two quizzes that you need to complete on Blackboard as part of your term Quiz mark. A third quiz will be posted before the Final Exam. The Quizzes are not optional; see the Course Outline.

Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. Just like in the Real World, not all due dates are on the same days or at the same times.

1.2.1 Worksheets

Worksheets are preparation for your assignments. You can’t do the assignments without having done the worksheets first, and you can’t do the worksheets without having first read the Course Notes: 1. Read. 2. Worksheet. 3. Assignment.

Form a small study group to do the worksheets. Each person tries the example given, and you make sure you all get the same answers. Worksheets are not for hand-in; they are not worth marks; the assignments test your knowledge of the lectures and worksheets.

The worksheets are available in four formats: Open Office (ODT), PDF, HTML, and Text. Only the Open Office format allows you “fill in the blanks” in the worksheet. The PDF format looks good but doesn’t allow you to type into the blanks in the worksheet. The HTML format is crude but useful for quick for viewing online.

Do NOT open the Worksheet ODT files using any Microsoft products; they will mangle the format and mis-number the questions. Use the free Libre Office or Open Office programs to open these ODT documents. On campus, you can download Libre Office here.

Worksheets prepare you for the upcoming assignments.

1.3 Upcoming tests - Second Midterm Test Wed Nov 9

The NEW Test Instructions have changed for this second Midterm test! Re-read the instructions before you write the midterm test.

Read the NEW Test Instructions (all the words) before your midterm tests. Put these dates into your phone! Use the Name Game link to test your name before the test. I don’t answer questions about the instructions during the test.

  1. Second Midterm test: 45 minutes; in lecture class on Wednesday in Week 10 (Nov 9) See the practice questions in Practice Tests and Answers.
  2. Final Exam: 180 questions in 180 minutes in Week 15
    • Thursday December 15 11h30 (11:30am to 2:30pm) in T117/119
    • Three Hours! Take a bathroom break before you start the exam.
    • Assigned Seating in T117/119 (see your email for your assigned seat)

Midterm tests take place in class in your 50-minute lecture period, not in your lab period. Each midterm test is 45 minutes long and contains approximately 45 multiple-choice questions similar to those found in Practice Tests and Answers. Do the practice test before the real test!

The Final Exam is in T117/119 Thursday December 15 11h30 in Week 15. The Final Exam is three hours long. Take a washroom break before you start.

1.3.1 Midterm Test #2 – Wednesday November 9

  • Midterm #2 takes place on Wednesday, November 9 (Week 10) in your scheduled lecture hour (not in your lab period).
  • For full marks, you must read the NEW Test Instructions before the test for important directions on how to enter your name, answers, your lab (not lecture) section number, and the test version number on the question sheet and the mark-sense forms.
  • There may be more questions on the test than you can answer in the time allowed; answer the ones you know, first.
  • A set of practice questions and answers for the second midterm test is posted: Practice Tests and Answers.
  • Blackboard has some quizzes taken randomly from the practice test. The full practice test itself is not part of your course grade, but the quizzes are part of your course grade. See below. See the Week 04 Notes HTML for how to earn all your quiz marks.
  • See the Course Outline for the mark weight of all the quizzes.

Material covered in Midterm 2: Everything up to and including Symbolic Links and Assignment 7. See the Practice Tests and Answers for samples of possible questions.

2 Midterm Test #2 Analysis

97.7 94.5 93.2 92.2 92.2 90.9 90.9 90.9 87.8 86.4 86.4 85.5 85.5 84.1 84.1 84.1 83.2 81.8 81.8 81.8 81.8 81 81 79.5 78.8 77.3 77.3 76.5 75 75 75 75 74.2 74.2 74.2 74.2 72.7 72.7 72.7 72.7 72 72 72 72 72 70.5 69.8 69.8 69.8 69.8 68.2 67.5 67.5 67.5 65.9 65.9 65.9 65.9 65.9 65.9 65.9 65.2 65.2 61.4 61.4 61.4 61.4 59.1 59.1 59.1 58.5 58.5 56.8 56.8 56.8 56.2 56.2 54.5 54.5 54.5 54.5 53.5 51.8 51.8 51.8 51.8 50 50 50 49.5 47.7 47.7 47.2 43.2 42.8 42.8 42.3 42.3 40.9 40.9 40.5 40.5 40.5 40.1 38.6 38.6 38.2 38.2 38.2 38.2 36.4 36.4 36.4 36.4 36 36 35.6 34.1 34.1 33.8 33.8 33.1 31.8 31.4 29.5 29.2 29.2 27.3 27.3 27.3 27 26.7 25.1 25 25 25 25 24.8 24.5 22.7 22.7 22.3 20.5 20.2 20 18.2 18.2 18 17.8 15.9 15.8 13.5 6.7

153: Pass 90 (58.8%)  Fail 63 (41.2%)
 24 A (15.7%)    11 A-    5 A    8 A+
 26 B (17.0%)    10 B-   12 B    4 B+
 17 C (11.1%)     4 C-    9 C    4 C+
 23 D (15.0%)     8 D-    7 D    8 D+
 63 F (41.2%)    57 F-    3 F    3 F+
 90% - 100%   8  ********
 80% -  90%  16  ****************
 70% -  80%  26  **************************
 60% -  70%  17  *****************
 50% -  60%  23  ***********************
 40% -  50%  14  **************
 30% -  40%  21  *********************
 20% -  30%  20  ********************
 10% -  20%   7  *******
  0% -  10%   1  *

I spent an hour or two correcting your errors on the mark-sense forms. Before your next test, you need to re-read the NEW Test Instructions. Penalties go up for making Scantron errors on the next test.

3 Notes from the Classroom

You must bring your questions from Practice Tests and Answers or from any of the many previous term midterm tests. I will show you how to best answer any of those questions.

3.1 Commands Used

4 Marking Scheme for Bonus Assignment #09

Bonus (optional) Assignment #09 HTML may be done after you get your marks back for Midterm #2 by email. (Your marks were sent to you early Friday morning, November 11.) You can use this bonus assignment to make up for lost marks on your second midterm test. See the assignment for the exact Marking Scheme.

5 Fifteen minute rule

Your time as a student is valuable. See the Week 03 Notes HTML.

6 Attack on my home web server

From my web log:

[Tue Nov 01 10:39:50 2016] [error] [client 189.6.232.191] Invalid URI in request GET /../../../../../../../mnt/mtd/qt HTTP/1.0

7 Attacks on my servers

As of 2:45am Thursday November 10, 2016.

7.1 Course Linux Server

$ fgrep 'refused connect' /var/log/auth.log | awk '{print $NF}' \
      | sort | uniq -c | sort -nr | head
  56463 (116.31.116.28)       # CN, CHINANET Guangdong province network, China Telecom, Beijing
  17217 (116.31.116.24)
    756 (116.31.116.26)
    476 (186.125.213.139)
    306 (221.194.47.229)
    297 (221.194.47.249)
    295 (119.249.54.68)
    292 (221.194.47.224)
    288 (119.249.54.75)
    287 (119.249.54.66)

7.2 Office machine (same network as CLS)

$ fgrep 'refused connect' /var/log/auth.log | awk '{print $NF}' \
      | sort | uniq -c | sort -nr | head
   4698 (116.31.116.28)
   2876 (116.31.116.44)
    225 (155.133.43.9)
     88 (212.129.3.1)
     49 (178.162.211.218)
     30 (81.171.75.138)
     24 (119.249.54.68)
     22 (121.18.238.98)
     20 (221.194.47.249)
     20 (221.194.47.224)

7.3 Home machine (ISPs: TekSavvy and Distributel)

$ fgrep 'refused connect' /var/log/auth.log | awk '{print $NF}' \
      | sort | uniq -c | sort -nr | head
   7906 (112.85.218.11)       # CN, China Unicom, JIANGSU GROUP CO.,NANJING,JIANGSU PROVINCE
   6361 (116.31.116.25)
   4182 (116.31.116.38)
    487 (201.6.243.63)
    299 (74.208.205.206)
    208 (195.154.60.194)
    175 (180.97.220.17)
    150 (123.31.35.62)
    135 (123.31.34.77)
    104 (123.31.34.75)

You’re not paranoid if they really are out to get you!

Take Notes in Class

Take Notes in Class

Author: 
| Ian! D. Allen, BA, MMath  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

Plain Text - plain text version of this page in Pandoc Markdown format

Campaign for non-browser-specific HTML   Valid XHTML 1.0 Transitional   Valid CSS!   Creative Commons by nc sa 3.0   Hacker Ideals Emblem   Author Ian! D. Allen