System Administration for the Web - Day 1 notes

Notes:

Administrivia:

  • Class location will change to a classroom, check webpage for updates!
  • This class is P/NP, like all decal/seminar classes
  • Check out the Scripting with Perl decal course if you're interested in learning more thoroughly about scripting.
  • If you didn't write your SID on the sign-in sheet, and you are enrolled, email me so I know who is actually taking the class.

    Course Notes:

  • What is Unix?
  • How can one learn about system administration?
      Summary: It's not hard, but experience is the best teacher.
  • What are the goals for the class?
      Show you enough that you can install and configure a linux box at home to be your router, firewall, and personal webserver. To build a foundation with which you could get a job as a student sysadmin. Students requested that we touch on security and scripting.
  • Recommended Books:
      My favorite general-purpose book is Unix System Administration Handbook by Nemeth, Snyder, Seebass and Hein. This was the "red-book" that I held up in class. Now in it's third edition (and has changed to a purple cover), this book provides excellent coverage of routine system administration tasks. The other great reference book is Unix Power Tools, which provides an easy reference to nearly all the common commands you might use as a user or administrator of a unix system. For deeper understanding of a variety of topics, O'Reilly & Associates is my favorite publisher. Their books are nearly always high quality, and are usually written by reputable sources, and occasionally by the actual creators of a tool. For example, the most famous Perl text is from O'Reilly and is called Programming Perl was written by Larry Wall, the creator of Perl.

    Homework for next week:

  • Install Linux on a machine in the OCF.
      There will some crufty old 200MHz machines in front of the whiteboard. Use those rather than the gateways, the flatscreen monitors aren't supported by default in Linux yet, so it's not fun to use those, and besides, the guys that set those up might get annoyed. Install media will be in the desk drawers, feel free to install over eachother's installations. Configure as much as you want (networking, etc. is optional...), but definitely do the basic install.
  • Below is a list of basic unix commands we think you should be familiar and comfortable with.

    • ls
    • cp, mv, rm
    • chmod, chown, chgrp
    • cd, pwd
    • mkdir, rmdir, ln
    • cat, more, less, head, tail
    • man, apropos
    • sort, uniq, wc, grep
    • vi, pico, emacs
    • date, cal
    • pine, elm, mutt, mail
    • telnet, rlogin, ssh
    • ftp, scp
    • w, who, finger, talk, nwrite
    • hostname, whoami, set, history
    • passwd, quota -v, du
    • lpr, lp
    • ps, kill
    • find, locate, which
    • exit
    • redirection >, >>, <, |
      • > send output to file: ls > directory-listing
      • >> append output to end of file (don't overwrite file)
      • < send a file as input to a command: mail friend < filename
      • | send output of one command to input of next command: ls -la | more
  • Sources of information on using unix


    c.2002, Devin Jones, 2/27/2002 - jones@csua.berkeley.edu