CS41 - Linux Workstation Administration
David Morgan
Santa Monica College
see syllabus for email address



Administrativa

Syllabus

Grade reports


Information

Linux links

Remote Unix access with telnet

Variations among Unixes

vi - the Visual Editor

Line termination

Using ftp

Fundamental Unix Commands

System calls

File permissions

Filesystem analysis

Shell script basics

Shell programming:
if and while

Shell programming book


Slide presentations

knoppix

Intro/installation

Nuts & bolts

More nuts, more bolts

Molay chapter 1 (more)

Line termination

The Shell

Linux GUI

Bootup & Init

Bootloaders

vi editor

Permissions

Shell Scripting

Processes

Homemade shell

Process miscellany

Compilation

Installation

Patching

yum (auto-update)

User administration

ssh - Secure shell

Backup

Scheduled processes

Unix time

System control

Centralized logging

Kernel building



 

FALL 2009
Section 1650 1:00p - 4:05p Sat Bus 259

This Website (http://homepage.smc.edu/morgan_david) will be used extensively to communicate with you. Announcements, grade reports, and assignments will be posted here. The site can be viewed from an internet-connected browser anywhere. You are responsible for awareness of the information posted here.

No class meeting Saturday November 14 - with apology, I got a call from the SMC office today telling me school's closed that day. Next meeting a week later on 11/21. The test planned for 11/14 will shift to the 11/21 meeting. (11/12)

Why am I laughing? - I noticed the following item in the FAQ for an open source project called VTUN:
"1.21 I don't like VTun. Where can I send complaints ?
  You can send them to /dev/null."

Grades - posted at link entitled "Grade reports" at left. (10/23)

Homework -
read - Sobell ch 8 - read the section entitled "X Window System"
read - Sobell ch 3 - read over the section on the X Window System. Be aware of role of xorg.conf config file, but details unimportant.
read - the X Window System Architecture Overview HOWTO
read - the The X Window User HOWTO, sections 2, 3, and 6
(note config file XF86Config has been renamed to "xorg.conf")
visit - a site to view linux's many desktops (10/20)

Slides we're viewing - let me call your attention to the links for your review:
Nuts & bolts
More nuts, more bolts
Linux GUI (10/20)

Finding files - question arose in class, "how can you find all the files that contain a certain substring?" See the -l option of grep. Sobell, in an earlier edition of our book, offered the following, which incorporates a "grep -l" in a "find" to cover the entire subtree of the current directory.

  find . -type f -exec grep -l "$1" {} \;   (10/18)


Important
: special provisions for October 10 - I will be absent. Please attend class virtually. Listen to the lecture, do the in-class activity, and do the homework. See you October 17. (10/1)

Homework
read - Sobell ch 5 "The Linux Utilities" - a catalog of important commands. Read it but skip discussion of the following less important commands: hostname, lpr, uniq, diff, mcopy, gzip/gunzip/bzip, apropos, finger, w, write/talk/mesg. While reading, I suggest you sit before a linux system and try out the commands and his examples hands-on. 
read - Sobell ch 5 "The Linux Utilities" - vim tutorial.
read - website link "vi - the Visual Editor" and reference links therein
visit - The Vi Lover's Home Page
do - at Using the vi editor perform the vi activities shown starting in section 3.13.2
do - run "vimtutor" on a linux system that has it and perform its tutorial exercise (10/1)

You cannot write a file to a disk. - you learned last Saturday. What you write files to is a filesystem. Absent a defining filesystem, what's a file?? The filesystem might be on a disk (or might not-- e.g. ram disk). So you can write a file to a filesystem that itself sits on a disk but that's as close as you can get to writing a file to a disk. Disks are never what you write them to. (10/1)

Slides we're viewing - let me call your attention to the links for your review:
Nuts & bolts
More nuts, more bolts (10/1)

Please bring a scratch floppy or two to our next class. If you have a supply and can do so, bring extras for students who, no doubt, won't or won't be able to. We will use them as a medium from which we can boot in order to examine how the bootloader works. Ideally each student should have 2 and ideally all the floppies will be read-write error free. It's not an ideal world. Bring a bunch of floppies if you have 'em. Thank you. (9/21)

Homework -
do - fundamental commands assignment, the one at the link entitled "Linux commands"
listen - 1985 roundtable discussion about UNIX. (alternative copy for download here as 25MB  zipped mp4 file - download, don't try to "view")
read -
article Linux System Startup about Unix SysV startup procedure
article Inside the Linux Boot Process IBM
Sobell ch 5 "The Linux Utilities" - a catalog of important commands. Read it but skip discussion of the following less important commands: hostname, lpr, uniq, diff, mcopy, gzip/gunzip/bzip, apropos, finger, w, write/talk/mesg. Skip vim tutorial. (9/12)

Slides we're viewing - let me call your attention to the links for your review:
Intro/installation
Bootup
Bootloaders
Nuts & bolts
More nuts, more bolts (9/12)

Remote Unix system
Your username - your last name as it appears on my class list, all lowercase (e.g., obama). Duplicate last names are resolved by appending as many letters of the first names as needed to "break the tie." So if your lowercase last name doesn't work, add your first initial to it (e.g., obamab). Students enrolled in both CS70 and CS41 get 2 accounts, one is the last name with "70" appended, the other the last name with "41" appended (e.g., obama70 and obama41). Remember, all letters in lower case.
Your password - is 5 digits extracted from your phone number. If your phone number is 123-456-9876, then your password will be 56987 (final 2 digits from the 3-digit exchange, plus first 3 digits of the 4-digit number).
The target computer - is sputnik.smc.edu
Log in method - the assignment asks you to "log in." Translation: use telnet as discussed in class and described in the "Remote Unix access with Telnet" link at left. (9/12)

Information sources about linux - see the latter several slides in the presentation at the link "Intro/installation" (9/5)

Saturday afternoon shutdown protocol - in English means, "I'd like to request you turn off the machines at the end of class, and here's how." First, do the software shutdown with "poweroff" at the shell command line. (Alternatives are "halt," "shutdown -h now," "init 0," "telinit 0," and maybe more.) "poweroff" has the advantage that, on machines that support it, it does a software trigger of a physical switch-off. Leaving the machine not in a state of, "It's OK now for you to turn the machine off," but instead, actually off. Thanks. (9/5)

Sobell textbook author Mark Sobell has a website. (9/5)

Homework -
read -  from Sobell textbook-
Sobell ch 1 "Welcome" - read lightly, as casual background and overview
Sobell ch 2 "Installation Overview" - omit RAID and LVM sections. Omit sections on obtaining and burning source data on CDs.
Sobell ch 3 "Step-by-Step Installation" - read it over, up to section on X Window System; omit that and remainder of chapter. Describes installation steps. (9/5)

Knoppix CD - http://www.knoppix.org/ and other "live CDs" that are bootable directly to linux (without using or messing with your hard disk), http://www.frozentech.com/content/livecd.php (9/5)

 


Eniac - 1946

Milestone in the history of computation

 

Assignments/due

Linux commands

knoppix

ftp

A vi assignment

permissions

Shellscript 1

Shellscript 2

sort command

fork/exec/processes

In-class exercises

adjustments

device vs file

line termination

boot sequence

runlevels

filename expansion

window managers
(in-class)

users/groups/access

rpm economics
 (in-class)

yum and rpm
 (in-class)

centralized logging
 (in-class)

rotating log files
 (in-class)

monitoring log files
 (in-class)

syslog-ng
(in-class)

compiling a program

ssh key setup
 (in-class)

backup
 (in-class)

scheduled jobs
 (in-class)

Unix time
(in-class)

compiling the kernel-FC4
(in-class)

compiling the kernel-FC5
(in-class)