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 2007
Section 4138 6:30p - 9:35p Fri 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.

Grades to date - posted, link at left "Grade reports." Please call any anomalies to my attention. (12/7)

I am so fascinated by this kind of little stuff - read what UTC really stands for. It's not French! It's about how the English and the French like each other. (11/30)

Homework - the topic is backup. The subtopics are tar and rsync (2 ways to do it). And ssh (facilitates making it remote). Review the following sources for next week.

About tar:
the GNU tar Reference Manual
textbook pp 133ff, pp 524-528

About rsync:
A Tutorial on Using rsync
Snapshot-style backups with rsync - this method is more subtle than it looks, in its use of hard links. The core of it is the 5-line script in the section titled "Putting it all together." Read through that section, paying particular attention to the "review of hard links" and the use of the option (-l) of the cp command to only copy links to files, not their data itself. We will use this method in class.
the rsync algorithm, which makes rsync particularly efficient for dealing with large data volumes sent over low bandwidth channels because it identifies incremental changes within files and sends/applies only those deltas.

About ssh:
Getting Started with SSH
textbook Chapter 18 "OpenSSH: Secure Network Communication"    (11/30)

Grades to date - posted, link at left "Grade reports." Please call any anomalies to my attention. (11/30)

Homework - installing software with tar/rpm/yum, cron daemon for scheduled/periodic jobs, ntp network time protocol
- read textbook chapter 13 "Keeping the Systems Up-to-Date" up to page 472, except skip the section on the "up2date" utility
- review slides "Scheduled processes" and lab exercise "scheduled jobs"
- network time and NTP protocol
- "Linux, Clocks, and Time"
- wikipedia article
- time precision howto (11/18)

Grades - midterm grades posted, link at left "Grade reports" (11/9)

No class Friday November 23 - Thanksgiving. (11/8)

Test - on Friday 10/26 (10/22)

Homework -
read - write-ups at links entitled "Shell script basics" and "Shell programming: if and while" at left.
do -  the assignment at the link entitled "Shellscript 1," at right
do - the assignment at the link entitled "Shellscript 2," at right
(10/22)

Slides we viewed - on Friday were "Shell scripting." (10/22)

Man page "section" categorization:

"Each man page should be categorized in a specific section, denoted by a single
character. The most common sections under Linux, and their human readable
names, are...:

1 User commands that may be started by everyone. 
2 System calls, that is, functions provided by the kernel. 
3 Subroutines, that is, library functions. 
4 Devices, that is, special files in the /dev directory. 
5 File format descriptions, e.g. /etc/passwd. 
6 Games, self-explanatory. 
7 Miscellaneous, e.g. macro packages, conventions. 
8 System administration tools that only root can execute. 
9 Another (Linux specific) place for kernel routine documentation."

from the "Linux Man Page Howto." Take a peek into /usr/share/man on Fedora, wherein all the man pages are actually stored. See also the Sobell textbook, pages 94-91, about the man command, the related info command, and the top sources for getting linux doc and information when you need it. (10/19)

Homework -
do - the assignment at the link entitled "permissions," at right, due October 19.
anticipate - the assignment at the link entitled "Shellscript 1," at right
anticipate - the assignment at the link entitled "Shellscript 2," at right
see - the "Homework" posting from 10/5 below, read the indicated material.
(10/14)

Slides we viewed - on Friday were "Processes" and its continuation "Homemade shell." Then I covered the syntax and usage of the chmod command to set file permissions. Finally we started talking about shell scripting.  (10/5)

Homework -
read -
Sobell - regarding user administration, section of chapter 16 entitled "Configuring User and Group Accounts." This treatment is extremely weak. Print out my slides ("User administration" link at lower left) and double-study them instead. Examine and/or print out man pages for useradd, passwd, usermod, chage, userdel, groupadd, groupmod, and groupdel.
Sobell ch 6 - the filesystem. Of which access permissions are a part. Read the whole chapter.
Sobell ch 28 - shell programming. Read parts of this chapter. Skip sections about "select," Here Document, Expanding Null or Unset Variables, String Pattern Matching, Filename Generation, and trap.
anticipate - shell scripting, processes, installing programs are upcoming topics.
anticipate - the assignment at the link entitled "Shellscript 1," at right, due Oct. 26
anticipate - the assignment at the link entitled "Shellscript 2," at right, due Oct. 26
anticipate - the assignment at the link entitled "permissions," at right, due Oct 19
(10/5)

Slides we viewed - tonight, "User administration" and performed exercise "users/groups/access." Last week on 9/28 "Linux GUI" and performed exercise "window managers." (10/5)

Scholarship money available - $1000 with priority to students in certain classes. CS41 is a priority class. Use of the funds is not restricted. SMC is seeking applicants, wanting to find recipients for three $1000 scholarships.. Please see information and application. (9/25)

Sources: linux GUI
Within it there are desktops, among other things. A whole lot of desktops! I'm not aiming to teach about all these, nor even any one of them, particularly. But where they fit into the picture. On this subject,
read -  Sobell ch 8 - read the section entitled "X Window System"
read - the X Window System Architecture Overview HOWTO
read - the The X Window User HOWTO, sections 2, 3, and 6
(9/21)

Homework -
read -  from Sobell textbook-
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.
Sobell ch 7 "The Shell" - read the whole chapter  (9/21)

Slides we viewed - see those at the links entitled "The Shell" and "Bootup & Init." (9/21)

Fridaynight 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." (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. (8/31)

Sobell textbook author Mark Sobell has a website. (8/31)

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.
do - fundamental commands assignment, the one at the link entitled "Linux commands," at right (8/31)

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 (8/31)

Remote Unix system
Your username - your last name as it appears on my class list, all lowercase (e.g., bush). 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., bushg). 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., bush70 and bush41). 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. (8/31)

 


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

filename expansion

window managers
(in-class)

users/groups/access

rpm economics
 (in-class)

yum and rpm
 (in-class)

centralized logging

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)