feb 22
Jim will lead a discussion of what happens when thinks break, and some ways to fix them ... using this week's cs.marlboro.edu crash as a starting point.
Note that all of this varies depending on your specific unix variant.
readings
- KNOPPIX (a "live" distro CD that that you can boot directly from)
- BIOS (firmware on motherboard that manages how computer boots)
- troubleshooting
- linux docs
tips
$ df -h # disk space
$ who # who is logged in?
$ w # who's around, what are they doing, sys status
$ ps -aef # what processes are running?
$ top # full screen "top" processes
$ last | head -10 # last 10 people to log in
$ su
$ lsof -i # all open internet "files", i.e. all connections
$ cd /var/log # most of system logs are here
$ more messages # read through system message
starting up | system services | daemons
- BIOS
- installed system on CD or hard disk
- run levels
- daemons
- /etc/rc*.d has symbolic links to apps that start at run level *
- /etc/init.d/ has actual start/stop scripts
- "chkconfig" and "servie" tools to manage 'em on many linuxes ... but not ubuntu
- "wajig"
- does package maganagement
- also has list-deamons
- and start|stop
- update-rc.d : standard but clunky tool for managing deamons
- sysv-rc-conf : another tool for managing which ones start at boot