% CST8207 Week 10 Notes - Midterm #2, software package management % Ian! D. Allen - - [www.idallen.com] % Fall 2013 - September to December 2013 - Updated Thu Nov 21 14:12:59 EST 2013 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 10 Notes HTML] - this file - **Read All The Words** - [Unix/Linux Software Package Management: yum, rpm, and tar] - [List of Commands You Should Know] - Using your [lynda.com] account, watch [Unix for Mac OS X Users] Assignments this week --------------------- Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. - Read (All The Words), Do, and then Submit via Blackboard: - Optional BONUS assignment: [Assignment #04 HTML] – learning the VIM text editor. (Optional BONUS for extra marks.) - Assignment #07 HTML (not ready, but see the checking script below) – installing and configuring CentOS in a VM, using [CentOS Installation and Configuration] and [CentOS VMware Tools Installation] - [Assignment #08 HTML] – [Search Path], [Hard Links], and [Disk Use] - [Assignment #09 HTML] – [Permissions], [Umask] Lab work this week ------------------ - [Worksheet #06 HTML] – *Optional* VIM Text Editor Practice - This is an *optional* worksheet for an optional BONUS [Assignment #04 HTML] using the `vim` text editor. - Optional Reading: [The VI (VIM) Text Editor] - Optional command-line VIM tutorial: the `vimtutor` program on the CLS. - [CentOS Installation and Configuration] - Assignment #7 will verify this installation. - Preliminary checking script ready: see the notes below. - [CentOS VMware Tools Installation] - Assignment #7 will verify this installation. - Preliminary checking script ready: see the notes below. - [Worksheet #08 HTML] – permissions, mode, `chmod`, `umask` - minimum permissions needed for basic file operations Midterm Test #2 - Week 10 - Monday November 4 - 25% ==================================================== - Midterm test dates are posted on the [Course Home Page]. - Midterm Test #2 (Mon Nov 4) covers: - anything from the previous midterm test, especially questions that were not answered correctly, plus: - weekly notes, labs, quizzes, and assignments for Weeks 1 through 8 inclusive. - The emphasis is on material covered since the previous test. - Material in [Assignment #08 HTML] is relevant to this test. - For practice tests and quizzes, see the [Practice Test README] - For full marks, you must read the [Test Instructions] before the test for important directions on how to enter your answers, your lab 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. Learning the Material --------------------- - You learn the material because you want to be a Computer Systems Technician. - You like doing this work; you want to be good at it. - Review your mistakes on the first midterm test (questions re-appear). - For practice tests and quizzes, see the [Practice Test README] - Review the commands used in each lab worksheet (and their common options). - [Unix/Linux Command List][List of Commands You Should Know] - Review how the shell works: GLOB, redirection, quotes - Know **why** the shell behaves that way. Copy/paste teaches you nothing. - split on semicolons and pipes first, then do redirection - What are the Four Rules for Output Redirection? Three Rules for Pipes? - [Unix Shell I/O Redirection (including Pipes)] Midterm Test #2 Analysis ------------------------- It took me an hour to prepare your midterm test for marking because 30 students out of 113 did not follow the [Test Instructions]: 18 did not fill in correct test version numbers 10 did not put correct lab section number on question sheet 6 did not spell own name correctly on mark sense form 2 did not put last name on question sheet 2 did not put any name on question sheet 1 did not fill in the answer bubbles beyond #5 - Number of students who entered their own name incorrectly on the mark-sense form (usually by shortening it): `6` - Number of students who got question #52 wrong even though the answer was given in the Test Instructions printed at the top of the test: `5` - Class scores for 113 (out of 133 registered) students: 98.1 96.2 96.2 96.2 96.2 96.2 96.2 96.2 96.2 94.2 94.2 94.2 94.2 92.3 92.3 92.3 92.3 92.3 92.3 92.3 92.3 91.4 90.4 90.4 90.4 90.4 90.4 90.4 88.5 88.5 88.5 88.5 86.8 86.5 86.5 84.6 83.9 83.9 82.7 82.7 82.7 82.7 82.7 82.7 82.1 80.8 80.8 78.8 78.8 78.8 78.8 78.8 77.7 76.9 76.5 75 73.1 73.1 72.8 71.2 69.2 69.2 69.2 67.3 67.3 67.3 65.4 65.4 65.4 65.4 63.4 61.5 59.6 57.8 54.1 51.9 50.4 50 50 48.8 48.1 46.2 46.2 44.2 41.4 40.4 40.4 39.8 39.2 36.8 36.5 34.6 34.6 34.6 33.6 32.7 32.5 28.8 28.8 27.1 25.8 25.3 25.3 25.3 25 23.5 23.1 23.1 22.4 21.2 18.6 16.3 14 90% - 100% 28 **************************** 80% - 90% 19 ******************* 70% - 80% 13 ************* 60% - 70% 13 ************* 50% - 60% 6 ****** 40% - 50% 9 ********* 30% - 40% 9 ********* 20% - 30% 13 ************* 10% - 20% 3 *** 0% - 10% 0 - Some selected mark improvements between Midterm #1 and Midterm #2: 15.6 C A- 21.8 C- A- 30.8 C A+ 15.8 A- A+ 22.3 D+ B+ 31.2 C A+ 16.2 B A+ 22.5 B- A+ 31.5 F- D- 16.4 F+ C 22.6 F- C- 33.6 D+ A+ 16.5 C- B+ 24.1 F- C 33.7 F- B 16.6 B A+ 24.2 D B+ 34.2 F+ A- 17.0 D- C+ 24.6 F+ B 35.3 F- D+ 17.8 D- C+ 25.2 D+ A- 36.1 F+ A 17.9 B+ A+ 26.2 D+ A- 38.5 D- A 18.0 A- A+ 26.4 F- C+ 40.5 F- B- 18.7 B- A+ 29.0 C A+ 40.8 F A 20.4 F C 29.1 F- C+ - You can see the errors in [Midterm Test #2 PDF]. From the Class Notes link on the Course Home Page ================================================= - Review last week. Did you do everything assigned last week? From the Classroom Whiteboard/Chalkboard ======================================== - Your in-class notes go here. - Understanding pathnames and symlinks: 1. Create a file in /tmp: $ touch /tmp/file 2. Create a directory in /tmp: $ mkdir /tmp/dir 3. Create a symlink in /tmp with target "linux": $ ln -s linux /tmp/symlink De-reference: /tmp/symlink -> /tmp/linux 4. Create a symlink in /tmp/a/b/bar with target "../../a/../foo": $ ln -s ../../a/../foo /tmp/a/b/bar De-reference: /tmp/a/b/bar -> /tmp/a/b/../../a/../foo -> /tmp/foo Preliminary CentOS checking =========================== The CentOS checking program is still being written. Here’s what you can do so far: On the CLS, create your `assignment07` directory in the usual place. Then log in to your CenOS machine (as `root`) and run these three commands on your CentOS machine, replacing *abcd0001* with your own CLS userid in the third one: # cd /tmp # curl -A mozilla http://teaching.idallen.com/cst8207/13f/notes/data/assignment07do.sh >do.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 112 560 112 560 0 0 9433 0 --:--:-- --:--:-- --:--:-- 1931 # USER=abcd0001 sh do.sh --------------------------------------------------------------------------- abcd0001: FETCH version 2. Connecting to CLS as USER='abcd0001' using ssh --------------------------------------------------------------------------- abcd0001: Use local Algonquin IP cst8207-alg.idallen.ca [y/N]? y abcd0001: Please wait; using ssh to connect to user 'abcd0001' on cst8207-alg.idallen.ca ... abcd0001@cst8207-alg.idallen.ca's password: *** COURSE LINUX SERVER *** --------------------------------------------------------------------------- idallen-ubuntu assignment07fetch_server.sh version 4 run by abcd0001. Please wait; collecting info from abcd0001 Virtual Machine --------------------------------------------------------------------------- VM files collected into CST8207-13F/Assignments/assignment07/abcd0001.tar.bz on CLS. Now running checking program for abcd0001 on CLS: ---------------------------------------------------------------------------- check: idallen-ubuntu Fri Oct 18 12:48:40 2013 check: CST8207 assignment07 check program version 37 *** Checking account for abcd0001 on idallen-ubuntu *** Going into HOME directory /home/abcd0001 on idallen-ubuntu GOOD(2): Found correct 'source' statement in .bash_profile GOOD(2): Found non-interactive return first line in .bashrc GOOD(1): Found PS1= line in .bashrc Going into directory CST8207-13F/Assignments/assignment07 on idallen-ubuntu *** 4.? CLS: Set Up Tasks in assignment07 on idallen-ubuntu *** On idallen-ubuntu: Using abcd0001.tar.bz dated Fri Oct 18 12:48:40 2013 Checking 'abcd0001.tar.bz' version 4 created Fri Oct 18 12:48:40 EDT 2013 *** 4.? CentOS 6.4 Installation Verify *** GOOD(2): Found correct hostname NOTE: Found correct kernel running GOOD(2): Found correct number of RPM packages (201) GOOD(2): Found correct memory size GOOD(2): Found correct Toronto time zone *** 4.? CentOS 6.4: Grub menu and time-out *** GOOD(2): Found correct time out line in CentOS 6.4 grub.conf GOOD(2): Found correct hidden menu line in CentOS 6.4 grub.conf *** All Done *** WARNING: Cannot find submission file 'assignment07.txt' on CLS ---------------------------------------------------------------------------- *** CHECK SCRIPT NOT FINISHED YET - SOON *** ---------------------------------------------------------------------------- Real Sysadmin Work ================== How Not To Recruit for Linux ---------------------------- - Recruiter sends me an HTML email (including a typing error) with a [Microsoft Word job specification] From: XXX Subject: Linux/Unix Sys Admin Here is a unique opportunity to be a part of the CGI team. Reporting to a Manager of the Technologies and Infrastructure business unit, the chosen candidate will act as system administrator on Linux servers and will have the following responsibilities. The attached are the requirements. If you are interested, pPlease forward your resume to XXX along with your salary expectations. Senior Technical Recruiter, National Capital Region , Recruitment and Workforce Planning, CGI Information Systems and Management Consultants Awesome License Plate --------------------- ![Bye Bye Data] Locally Authored Linux Security Document ---------------------------------------- Mike Gifford runs [**OpenConcept Consulting**] here in town: *“Open source web development for social change”.* He works with [**Drupal**], an open source [web content management system (CMS)]. He wrote: > We’ve been working on a best practices document for Drupal security that is > geared specifically at government clients. […] We wrote this for a federal > government department in town that had their site compromised earlier in > the year. Figured it was a good time to write up a general document to help > guide folks in the public sector. Security is certainly a complex issue, > and most government departments just don’t seem to get it. For instance > CSEC provides security information for Windows 2003, but not Windows 2008. > > We are releasing this document because we believe that most government > departments simply do not have the resources to put into properly setting > up and maintaining the security of their servers. Our hope is that we will > be able to build a community of people behind this process who can help > build on and maintain a set of best practices. I’m also hoping that it > helps to reach up into management a bit and be more approachable for folks > who already with IT security. > > I do hope that folks […] heard the recent court case with the 12 year old > boy who is on trial for hacking into government computer systems in 3 > different jurisdictions. To some extent that’s a reflection the rise of > hacker culture on the Internet, but it should also be an indication of how > far government security practices have fallen short. If a kid can hack away > at government sites for fun, and get away with this much information, what > are more politically or crime motivated hackers capable of? There is far > too much security theatre and not enough collaboration within government > about how to raise the lowest common denominator for security. I’ve blogged > about this here: > > > > We’ve released the initial security guide here for review here (we are > asking for people to submit their name & email so that we can track who is > making use of this PDF): > > > > We’d like to get feedback on this document, and our hope is that this > starts an open conversation about security best practices. I would like to > thank the people who have contributed to this document, but generally I > have decided what is or is not listed in this release. There will be errors > that I likely introduced and they will be addressed as they are raised. > > There’s a GoogleDoc too for folks who are interested in adding comments > directly to that version of the document. > > Mike Gifford, President, OpenConcept Consulting Inc.\ > Drupal 8 Core Accessibility Maintainer –\> \ > | > > Open source web development for social change – Linux/Unix co-op job at Alcatel-Lucent -------------------------------------- From Michael Anderson: > *W14-8139- 77x Service Router 73D* > > Company Name: *Alcatel-Lucent* > > Key Responsibilities / Functions: > > ·Remotely troubleshoot customer network issues on various IP Routing > Products (includes 7750 SR, 7710SR, 7450 ESS, 7950 XRS, 7705 SAR and 7210 > SAS) > > ·Analyze router/switch event logs and alarms, packet captures, connectivity > traces, etc. to isolate issues to a product > > ·Interface with Global Technical Expertise Centers, Customer Account Teams, > other Business Units, for technical consultation and customer support > concerns > > ·Debug complex product installations, resolves complicated product problems > by applying both established procedures and creative alternatives > > ·Enhance the capabilities to learn end to end solution/products of various > customers. > > ·Maintain problem status and problem resolution records via ticketing > system(s) > > ·Prepare reports on problems encountered and methods of resolution applied > ensuring overall system integrity and reliability > > ·Maintain awareness of new features via training and cross train co-workers > > Required Qualifications: (Education, Technical Skills/Knowledge) > > ·Must have excellent communication (verbal and written) skills > > ·Must have the ability to work well in a team environment > > ·Must be able to independently prioritize work > > ·Working knowledge of Linux or Solaris OS in order to parse large amounts > of data effectively > > ·Knowledge of communication protocols (SNMP, TCP/IP) > > Desired Qualifications: (Education, Technical Skills/Knowledge) > > ·Knowledge of mobility related solutions (LTE, Mobile Backhaul, SDN) is an > asset > > ·Familiarity with various test equipment (IXIA, SmartBits, Landslide, etc). > is desirable > > ·Working knowledge of IP Addressing/Sub-netting, Routing Protocols > concepts, IP/MPLS is an asset Take Notes In Class! -------------------- ![Take Notes in Class] -- | Ian! D. Allen - 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 [www.idallen.com]: http://www.idallen.com/ [Unix/Linux Software Package Management: yum, rpm, and tar]: 520_package_management.html [List of Commands You Should Know]: 900_unix_command_list.html [lynda.com]: https://lyceum.algonquincollege.com/Lynda [Unix for Mac OS X Users]: http://wwwlyndacom.rap.ocls.ca/Mac-OS-X-10-6-tutorials/Unix-for-Mac-OS-X-Users/78546-2.html [CentOS Installation and Configuration]: 000_centos_install.html [CentOS VMware Tools Installation]: 000_centos_vmware_tools.html [Search Path]: 400_search_path.html [Hard Links]: 455_links_and_inodes.html [Disk Use]: 457_disk_usage.html [Permissions]: 500_permissions.html [Umask]: 510_umask.html [Worksheet #06 HTML]: worksheet06.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [Worksheet #08 HTML]: worksheet08.html [Practice Test README]: PRACTICE_TEST_README.html [Test Instructions]: 000_test_instructions.html [Unix Shell I/O Redirection (including Pipes)]: 200_redirection.html [Midterm Test #2 PDF]: midterm2.pdf [Microsoft Word job specification]: data/linux_sysadmin_1.doc [Bye Bye Data]: data/rm-rf.jpg "Bye Bye Data" [**OpenConcept Consulting**]: http://openconcept.ca [**Drupal**]: http://drupal.org/ [web content management system (CMS)]: http://en.wikipedia.org/wiki/Content_management_system [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week10notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/