% CST8207 Week 13 Notes - Partitions, File Systems, GRUB, Run Levels, Services % Ian! D. Allen - - [www.idallen.com] % Fall 2013 - September to December 2013 - Updated Fri Nov 29 02:04:14 EST 2013 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 13 Notes HTML] - this file - **Read All The Words** - [Unix/Linux Partitions and File Systems - fdisk, mkfs, mount, swap] - [Unix/Linux Boot Process, GRUB, Run Levels, services, telinit, chkconfig] - [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: - [Assignment #07 HTML] – installing and configuring CentOS in a VM, using [CentOS Installation and Configuration] and [CentOS VMware Tools Installation] - [Assignment #12 HTML] – work with [Users and Groups] (Simpsons, StarWars, and the Megadeth Project) - You must have a working CentOS installed for Assignments 12, 13, 14. - The last assignment has been split into two smaller halves for easier marking: - [Assignment #13 HTML] – Part 1 of 2 – Disks, Partitions, File Systems - [Assignment #14 HTML] – Part 2 of 2 – BONUS – GRUB, Run Levels, services - This Part 2 half is a bonus optional assignment for extra credit. Lab work this week ------------------ - [CentOS Installation and Configuration] - [Assignment #07 HTML] will verify this installation. - [CentOS VMware Tools Installation] - [Assignment #07 HTML] will verify this installation. Final Exam – Wednesday December 11 15h30 (3:30pm to 6:30pm) =========================================================== - Your Final Exam schedule is posted in the ICT office. The Final Exam is closed-book, no aids, no devices. - Your Final Exam covers the entire course, with slight emphasis on material since the second midterm test, and on material that students did not answer well in the previous two tests. - Your Final Exam includes questions from **all** practice tests, not just the most recent ones. - For full marks, you must read and understand the [Test Instructions] before the test for important directions on how to enter your answers and the test version number on 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. - Practice tests are available for the Final Exam. - Read the [Practice Test README Information]. - See the [Practice Tests] and answer files. - The same questions are posted as **Quizzes** on Blackboard. The Quizzes are random samples from the above practice questions, and so they often repeat questions. - If you only want to do each practice question *once*, use the practice test PDF files, not the Quizzes that repeat questions at random (and may not show you all the possible questions). 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. - Fill our your [Course Evaluation] > Subject: Important Message from CoursEval\ > The 2013 Fall surveys have been opened for almost a week now and the > response rate is very low. Could you please encourage your students to take > a few minutes and complete their assessments. The information you receive > could be very useful to you. The survey will be open until Friday, Dec. 6th > at midnight.\ > Course Assessment Administrator - Reminder that Assignments 12, 13, and 14 each contain at the start short descriptions of the command names you need to complete the assignment. This is in addition to having the names mentioned in the [List of Commands You Should Know]. - Reminder on searching the course notes: Recall that in a previous [Assignment] you were shown how to use `fgrep` on the CLS to search for a string in all the course notes? Please do it. $ fgrep 'whois' newnotes/*.txt | wc 15 105 1009 $ fgrep -l 'whois' newnotes/*.txt newnotes/900_unix_command_list.txt newnotes/assignment11.txt newnotes/week02notes.txt newnotes/week05notes.txt newnotes/week13notes.txt - Given a sector size of 512 bytes, approximately how many megabytes (actually [mebibytes]) are unused before the start of this `sdb1` partition? Approximately how big is the partition in kilobytes (actually kibibytes)? Device Start End /dev/sdb1 2048 202047 Real Sysadmin Work ================== Don’t create World-Writable Files --------------------------------- Finding things that are not symbolic links that have *other* write permissions: find dir ! -type l -perm /o+w -ls (You have one assignment that requires you to create world-writable files.) Multiple Remote Login Sessions ------------------------------ You are now logging in to multiple machines. Set your shell `PS1` prompt to include the machine name, so that you don’t type the wrong command on the wrong machine! City of Munich dumps Microsoft for Linux ---------------------------------------- > If you are only doing a migration because you think it saves you money > there’s always somebody who tells you afterwards that you didn’t calculate > it properly. That was the experience of a lot of open source-based projects > that have failed. They were only cost-driven and when the organisation got > more money or somebody else said ‘The costs are wrong’ then the main reason > for doing it had broken away. That was never the main goal within the City > of Munich. Our main goal was to become independent. > Free software was ruled the better choice by Munich’s ruling body, > principally because it would free the council from dependence on any one > vendor and future-proof the council’s technology stack via open protocols, > interfaces and data formats. The project finished within budget in October 2013, with more than 14,800 staff migrated to using Linux and more than 15,000 to OpenOffice. Awesome License Plate --------------------- ![`fsck` – File System Check] Linux/Unix Jobs --------------- 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 Partitions and File Systems - fdisk, mkfs, mount, swap]: 720_partitions_and_file_systems.html [Unix/Linux Boot Process, GRUB, Run Levels, services, telinit, chkconfig]: 750_booting_and_grub.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 [Users and Groups]: 700_users_and_groups.html [Test Instructions]: 000_test_instructions.html [Practice Test README Information]: PRACTICE_TEST_README.html [Practice Tests]: indexcgi.cgi#XQuizzes__Tests__and_Exams [Course Evaluation]: https://coursefeedback.algonquincollege.com/etw/ets/et.asp?nxappid=WCQ&nxmid=start&s=8 [Assignment]: assignment03.html#searching-for-text-inside-files-e.g.course-notes [mebibytes]: http://en.wikipedia.org/wiki/Mebibyte [`fsck` – File System Check]: data/fsck.jpg "`fsck` -- File System Check" [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week13notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/