% CST8207 Week 13 Notes – booting, GRUB, Run Levels, services, chkconfig % Ian! D. Allen - - [www.idallen.com] % Winter 2014 - January to April 2014 - Updated Wed Apr 9 09:06:57 EDT 2014 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 Boot Process, GRUB, Run Levels, services, telinit, chkconfig] - [List of Commands You Should Know] - [Video Tutorials on Lynda.com] - Using your [lynda.com] account, watch [Unix for Mac OS X Users] - **4. Ownership and Permissions 34m 58s** - The root user 1m 57s - sudo and sudoers 5m 20s C O U R S E    E V A L U A T I O N ---------------------------------- ____ _ ____ ____ | _ \| | ___ __ _ ___ ___ | _ \ ___ / ___|___ _ _ _ __ ___ ___ | |_) | |/ _ \/ _` / __|/ _ \ | | | |/ _ \ | | / _ \| | | | '__/ __|/ _ \ | __/| | __/ (_| \__ \ __/ | |_| | (_) | | |__| (_) | |_| | | \__ \ __/ |_| |_|\___|\__,_|___/\___| |____/ \___/ \____\___/ \__,_|_| |___/\___| _____ _ _ _ | ____|_ ____ _| |_ _ __ _| |_(_) ___ _ __ | _| \ \ / / _` | | | | |/ _` | __| |/ _ \| '_ \ | |___ \ V / (_| | | |_| | (_| | |_| | (_) | | | | |_____| \_/ \__,_|_|\__,_|\__,_|\__|_|\___/|_| |_| Only fill out the lecture section evaluation for CST8207, not both the lecture and lab sections! If you only filled out the lab section, please go back and do the lecture section since the lab sections are going to be disabled. When you are done your evaluation do `touch courseval_done` in your `Assignments` directory on the CLS and the nag messages will go away. Thank you to these students who did the Evaluation: Couture, Samuel [] Fan, Qinhan [] Finnamore-Ogibowski, Kevin [] Francis, Devon [] Gao, Yu Hao [] Harper, Evan [] Hilliard, Mickey [] Kardani, Divyesh [] Lefebvre, Michael [] Matic, Dennis [] Pradhan, Sarang [] Rauscher, Matthew [] Seguin, Justin [] Smith, Isaac [] Tharp, Amber [] Tian, Bingyu [] Topaloglu, Erdem [] Wahab, Ahmad [] Walsh, Bryan [] Assignments and Lab work 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 #08 HTML] – CentOS installation and configuration - You need to get this working before you can do the final assignments in this course. See your instructor for help. - [Assignment #10 HTML] – [Permissions], [Umask] and [Worksheet #08 HTML] - minimum permissions needed for basic file operations - [Assignment #11 HTML] – processes, syslog, crontab, at, mail, tar - [Package Management], [System Logs], [Processes], [Cron and At] - [Assignment #12 HTML] – [Users and Groups] - Simpsons, StarWars, and the Megadeth Project - [Assignment #13 HTML] – Disks, Partitions, File Systems, single user - Really do **Read All The Words**. You don’t get a second chance to get it right. ### Optional Bonus Assignments – extra marks - [Assignment #03 HTML] – *Optional* BONUS VIM Text Editor Practice - this is an *optional* worksheet for a BONUS assignment using `vim` - Optional Reading: [The VI (VIM) Text Editor] - [Worksheet #06 HTML] – *Optional* VIM Text Editor Practice - this is an *optional* worksheet for a BONUS assignment using `vim` - Optional command-line VIM tutorial: the `vimtutor` program on the CLS. - [Assignment #09 HTML] – BONUS assignment to review second midterm test - this is an *optional* BONUS assignment worth extra credit - there is a checking script available to verify the format of your file 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 ======================================== - **Take notes in class!** Your in-class notes would go here. - Use the tools to find information; stop doing things the hard way! - Use the search functions when reading web pages and `man` pages. - Use `fgrep` on `newnotes/*.txt` instead of getting lost in Google. - Search your history list with `fgrep` instead of reading it all: - `$ history | fgrep 'chmod'` - `$ history | fgrep 'broderc'` - `$ history | fgrep 'ln -s'` - Work smarter, not harder! - From DuckDuckGO: [VIM Cheat Sheet] - Updated [Network Diagnostics] with information from Kevin. See if this fixes your SSH problems into your Linux machines. - Extended due date for several assignments, including [Assignment #03], [Assignment #09] and [Assignment #12]. - Use the checking script on your [Assignment #09] files to verify formatting. - Survey survey (really!): - eText survey: - $1000 in gift certificates - Dogbert on [satisfaction surveys] - In-class symlink exercise on the CLS: Create one of these symbolic link targets in /tmp Use your CLS userid as the link name in /tmp You may have to remove an existing name first Easy target: linux Medium target: symbolic link Hard target: $$$ It's a "symbolic link" $$$ You can check your work by executing the script `/tmp/do.sh` - Data mining: Looking for lines that contain more than one text string: - `$ fgrep 'string one' filenames... | fgrep 'string two'` - can be extended to any number of text strings with more `fgrep`: - `$ fgrep 'one' filenames... | fgrep 'two' | fgrep 'three' | fgrep 'four'` ![awk grep sed pwd] 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! Real Sysadmin Work ================== - The full documentation on basic commands (better than `man` pages): - Google propels Linux to the top - [How to fix any computer] - Joke (from a Linux student): > Subject: joke, clean\ > Why didn’t the chicken cross the road?\ > Because he did not have an absolute path and could’t find his way.\ > HAHAHAHAHA! Awesome License Plate --------------------- ![`fsck` – File System Check] Linux/Unix Jobs --------------- - At CREDIL in Hull: [junior linux network administrator] - **Read All The Words**, especially in the section **How to apply**! > Please email: mcr at credil.org and crm at credil.org with a URL for your > resume, or to ask questions. Please use the Subject: “available to fix > undervoltage alarms”. Please include a cover letter explaining who you are, > and how you learn new things. We will contact you to arrange an interview, > and to learn more about how to learn new things. (Word documents will be > deleted unread.) - From Michael Anderson: - Linux Videos ------------ - Nixie Pixel explains Linux (with a background music soundtrack): - The BASH Shell I - The BASH Shell II - Linux File Systems - Network Tools and Diagnostics - Password Security (with [XKCD Password] reference) Why I have multiple ISPs at home -------------------------------- idallen-oak.home.idallen.ca (0.0.0.0) Thu Apr 3 04:36:01 2014 Packets Pings Host Loss% Snt Last Avg Best Wrst StDev 1. 10.110.38.1 58.8% 18 6.2 13.2 6.2 21.7 6.6 2. 69.63.254.145 88.2% 18 25.2 19.6 13.9 25.2 8.0 3. gi-1-1-3.gw01.grnsbr.phub.net.ca 58.8% 18 16.5 23.5 15.6 30.3 6.8 4. ae0-709.tor10.ip4.tinet.net 70.6% 18 13.6 21.5 12.8 28.0 7.6 5. xe-1-2-0.chi11.ip4.tinet.net 64.7% 18 24.1 35.2 24.1 58.8 13.2 6. as3356.chi11.ip4.tinet.net 94.1% 18 36.7 36.7 36.7 36.7 0.0 7. vlan52.ebr2.Chicago2.Level3.net 83.3% 18 29.9 38.1 29.9 44.2 7.4 8. ae-5-5.ebr2.Chicago1.Level3.net 94.1% 18 42.5 42.5 42.5 42.5 0.0 9. ae-8-8.car1.Detroit1.Level3.net 82.4% 18 38.2 42.4 38.2 45.1 3.7 10. ae-11-11.car2.Detroit1.Level3.ne 66.7% 16 43.3 46.7 42.0 57.8 6.4 11. WAVEFORM-TE.car2.Detroit1.Level3 75.0% 16 47.2 49.4 31.7 72.2 16.8 12. g2-0.core1.troy2.waveform.net 64.3% 15 30.4 33.3 29.9 44.2 6.1 13. route2.tchmachines.com 78.6% 15 30.0 38.1 30.0 42.5 7.0 14. newyork.snhdns.com 57.1% 14 46.1 42.5 31.4 46.1 5.7 Take Notes In Class! -------------------- - [Take Notes In Class] ![Take Notes in Class] - Dilbert: Work-Life Balance -- | 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 Boot Process, GRUB, Run Levels, services, telinit, chkconfig]: 750_booting_and_grub.html [List of Commands You Should Know]: 900_unix_command_list.html [Video Tutorials on Lynda.com]: 910_lynda_index.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 [Permissions]: 500_permissions.html [Umask]: 510_umask.html [Package Management]: 520_package_management.html [System Logs]: 580_system_log_files.html [Processes]: 600_processes_and_jobs.html [Cron and At]: 630_crontab_at_job_scheduler.html [Users and Groups]: 700_users_and_groups.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [VIM Cheat Sheet]: https://duckduckgo.com/?q=vim+cheat+sheet [Network Diagnostics]: 000_network_diagnostics.html [satisfaction surveys]: http://dilbert.com/strips/comic/2005-04-07/ [awk grep sed pwd]: data/awkgrepsedpwd.gif "awk grep sed pwd" [How to fix any computer]: http://theoatmeal.com/blog/fix_computer [`fsck` – File System Check]: data/fsck.jpg "`fsck` -- File System Check" [junior linux network administrator]: http://www.credil.org/node/63 [XKCD Password]: http://xkcd.com/936/ [Take Notes In Class]: http://read101.ca/1013/03/algonquincollege.html [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week13notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/