CST8207 Week 14 Notes
an attack whois script, shutdown of CLS, installing Linux, Linux Rap

Ian! D. Allen – www.idallen.com

Winter 2019 - January to April 2019 - Updated 2022-05-04 04:39 EDT

1 This course ends (last classes) on Wednesday April 17 2019Indexup to index

Friday April 19 is a holiday; there are no classes that day.
The last lecture class is Tuesday April 16.
The last lab classes are on Wednesday April 17.
I am not on campus on Thursday or Friday.
Your Final Exam is at 1pm on Tuesday April 23 in T119 (1pm to 4pm: 3 hours)

2 Course Linux Server permanent shutdown April 30 2019Indexup to index

The Course Linux Server will be archived and shut down permanently at noon on April 30 2019 because the CLS system administrator (Ian!) had to resign from the College and nobody else knows how to maintain a Linux server for a class of 120 students.

For options on continuing to use Linux, see below.

3 C O U R S E    E V A L U A T I O NIndexup to index

 ____   _                           ____          __   __
|  _ \ | |  ___   __ _  ___   ___  |  _ \   ___   \ \ / /___   _   _  _ __
| |_) || | / _ \ / _` |/ __| / _ \ | | | | / _ \   \ V // _ \ | | | || '__|
|  __/ | ||  __/| (_| |\__ \|  __/ | |_| || (_) |   | || (_) || |_| || |
|_|    |_| \___| \__,_||___/ \___| |____/  \___/    |_| \___/  \__,_||_|
  ____ ____ _____   _____            _             _   _
 / ___/ ___|_   _| | ____|_   ____ _| |_   _  __ _| |_(_) ___  _ __
| |   \___ \ | |   |  _| \ \ / / _` | | | | |/ _` | __| |/ _ \| '_ \
| |___ ___) || |   | |___ \ V / (_| | | |_| | (_| | |_| | (_) | | | |
 \____|____/ |_|   |_____| \_/ \__,_|_|\__,_|\__,_|\__|_|\___/|_| |_|

4 Readings, Assignments, Labs, Tests, and ToDoIndexup to index

4.1 Read (at least) these things (All The Words)Indexup to index

  1. Week 14 Notes HTML – this file – Read All The Words
  2. List of Commands – Command names you should know, listed by week
  3. Video Tutorials on Lynda.com – tagged by week number
  4. Linux and Sysadmin News in the World

4.2 Assignments, Quizzes, and Lab work this weekIndexup to index

Reminder: There are now three quizzes that you need to complete (five times each) on Brightspace as part of your term Quiz mark. The third quiz has be posted. The Quizzes are not optional; see the Course Outline. You need to do each quiz at least five times.

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.

4.3 Upcoming tests and examsIndexup to index

This course had two midterm tests (10%, 15%) and will have one final exam (40%).

Bring your favourite marker to your exam

Follow this link to see all your upcoming Quizzes, Tests, Final Exam. The dates are also posted on the Course Home Page and on Brightspace CST8207.

For full marks, read the Test Instructions web page (all the words) before your tests.

  1. First Midterm test: Done.
  2. Second Midterm test: Done.
  3. Final Exam: The date is now posted on ACSIS: Tuesday April 23 from 1pm to 4pm in T119.

5 Academic Honesty DeclarationIndexup to index

There is no group work in this course.

Because of the large number of students who shared, copied, and worked together on scripts in previous terms and who were all charged with Academic Dishonesty during Exam Week, you must now declare that you are the sole author of your scripts. You must write all your own scripts.

You must type the text from the Academic Honesty Declaration into the end (bottom) of every script you write in this course. See Assignment #12 HTML for the details.

If any of your scripts is found to have text in common with any other people, you will be charged with Academic Dishonesty (AA18) or Plagiarism (AA20) in the middle of your Exam Week, and your course marks may be delayed and downgraded. An Academic Discipline hearing is highly disruptive to your Exam Week. Do your own assignments; do not share, work together, or copy from another student or from the Internet.

5.1 Do not help students fail my courseIndexup to index

Students who give answers (e.g. command lines) to other students are helping those other students fail my course. Stop doing that. I want everyone to pass my course. Let people do their own thinking.

6 Notes from the ClassroomIndexup to index

6.1 Commands UsedIndexup to index

Keep a notebook with a List of Commands in it.

All commands have now been covered in the course.

7 Your own personal web page on the CLSIndexup to index

Sorry, all the personal student web pages were only available on the Course Linux Server that had to be shut down in June 2019.


8 Using and installing Linux yourselfIndexup to index

I do not recommend installing Linux as a “dual boot” option. Installing in a Virtual Machine (VM) is a better option, because:

  1. You don’t risk damaging your host machine by making a mistake setting up dual-boot. A botched dual-boot can easily wipe out everything.
  2. You can run multiple different Linux VMs. Try them all!
  3. You don’t have to shut down your main host to play with Linux. You can have both the host and Linux available at the same time. With dual-boot, you have to close everything and reboot the machine to get into Linux, and that’s a pain you don’t need.
  4. You can take a snapshot of your VM before you do anything, so you can always recover back to the snapshot if something goes wrong.

Here are some student options for continuing to use Linux/Unix:

  1. You can get a free BSD Unix shell account here: https://sdf.org/

  2. You can wait and install your own Linux virtual machine in CST8177.

  3. These CST8177 instructions below are obsolete, because the linux2.ca domain has expired. You may find some old notes in the Internet Archive, e.g. http://web.archive.org/web/*/http://www.linux2.ca

    CST8177 used to install Linux in a VM, but they overwrote the old notes when the prof created the new term and the links may be broken:

    To install Linux in a VM now, you can use an old version of CST8177 notes here: LINK BROKEN http://www.linux2.ca/

  4. To install Linux in a VM now, you can use a very old version of CST8207 CentOS Installation notes

    • The above configures a minimal server, not a full system with GUI.
    • You can follow the same general method to download and install a more modern GUI Desktop version of Linux, e.g. Ubuntu Linux or Mint Linux.

8.1 Ottawa/Gatineau Linux ResourcesIndexup to index

9 Script to list attacks on the CLSIndexup to index

In our last class we wrote the script attack_whois.sh.txt and then I touched it up, made the output pretty, and added some comments. The output of the script now looks like this (April 2019):

 8125 attacks from from Ireland,IE
 5026 attacks from    from China,CN
 4954 attacks from from China,CN
 4927 attacks from    from China,CN
 4792 attacks from    from China,CN
 4754 attacks from from China,CN
 4708 attacks from    from China,CN
 4688 attacks from from China,CN
 4589 attacks from from China,CN
 4485 attacks from from China,CN
 4365 attacks from from China,CN
 4163 attacks from   from China,CN
 4135 attacks from from Ireland,IE
 4123 attacks from   from China,CN
 4050 attacks from from China,CN
 4043 attacks from    from China,CN
 3934 attacks from from China,CN
 3822 attacks from   from China,CN
 3617 attacks from    from China,CN
 3496 attacks from    from China,CN
 3031 attacks from    from China,CN
 2860 attacks from   from China,CN
 2804 attacks from    from China,CN
 2546 attacks from   from China,CN
 2479 attacks from    from China,CN
 2264 attacks from from India,IN
 1500 attacks from from China,CN
 1483 attacks from  from China,CN
  988 attacks from   from China,CN
  774 attacks from  from Netherlands,NL
  557 attacks from  from China,CN
  518 attacks from  from "Taiwan, Province of China",TW
  450 attacks from    from China,CN
  416 attacks from    from Netherlands,NL
  382 attacks from    from Seychelles,SC
  378 attacks from  from China,CN
  350 attacks from     from India,IN
  347 attacks from     from Netherlands,NL
  346 attacks from  from Sweden,SE
  341 attacks from   from China,CN
  336 attacks from  from China,CN
  322 attacks from     from United States,US
  294 attacks from from China,CN
  277 attacks from from UNKNOWN <MISSING COUNTRY>
  230 attacks from    from Russian Federation,RU
  228 attacks from   from Chile,CL
  227 attacks from  from Netherlands,NL
  226 attacks from   from China,CN
  221 attacks from    from United States,US
  208 attacks from    from Canada,CA

The MISSING COUNTRY above is because Korea publishes its whois information in Korean, and the English field Country: is not used.

10 My Last Linux Rap VideoIndexup to index

I did my final Linux Rap at the start of class on Tuesday, April 16, 2019.

“Only do, what only you can do.” - E.W.Dijkstra(?), John Maxwell(?), John Harvey Jones(?), others(?)…

With this quote and my upcoming necessary resignation from Algonquin College firmly in mind, I solicited four words from the students at the start of my last 8am Linux lecture class, wrote them on the board, put on a rainbow hoodie and orange pants, and performed a short freestyle, completely improvised rap that included all of the words they gave me.

Ian! Linux Rap video by André D’Aoust

Ian! Linux Rap on YouTube: https://www.youtube.com/watch?v=dhQqh-4PKE0

Creative Commons License: http://creativecommons.org/licenses/by-nc/4.0/

Link to all Ian Linux Rap Videos

11 Thank YouIndexup to index

Certificate of Recognition
| 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