CHAPTER 7 Operating System Installation
Procedure | Purpose | SunOS 4.X | SunOS 5.X |
---|---|---|---|
touch /TIMESTAMP | let's you know the start time | X | X |
passwd | set a passwd on the root login | X | X |
rm /etc/hosts.equiv | comes with "+" | X | |
vi /etc/netmasks 128.146.0.0 255.255.255.0 | create an entry for the network, e.g. for 128.146 | X | X |
vi /etc/ttytab | change "secure" -> "unsecure" | X | |
ifconfig le0 netmask + broadcast xxx.yyy.zzz.255 | reset the netmask and broadcast | X | |
route add default xxx.yyy.zzz.1 1 | reset route | X | X |
ftp www-wks.acs.ohio-state.edu | under /pub/sunpatches retrieve the patch files needed. Contact me for the current patch list for your version of the OS. | X | X |
Install patches | follow READMEs for the individual patches | X | X |
echo "xxx.yyy.zzz.1" > /etc/defaultrouter | create /etc/defaultrouter with the IP address of the default router | X | X |
vi /etc/rc.local mount /tmp chmod 1777 /tmp chmod g+s /tmp ifconfig le0 broadcast `cat /etc/defaultrouter |sed -n "s/\.[0-9]$/\.255/p"` | edit /etc/rc.local to mount /tmp as tmpfs (on swap) and to set the proper permissions on the directory
and to set the proper broadcast | X | |
vi /etc/fstab swap /tmp tmp rw 0 0 | add the line to mount /tmp on swap | X | |
Generate a new kernel and reboot with it | this is required for several of the OS patches | X | |
vi /.cshrc /.login /.profile | edit to taste and remove "." from path | X | X |
vipw | protect all accounts, even sync remove +: entry if not using NIS | X | |
Create necessary accounts | we'll look at how to do this in a later Chapter | X | X |
vi /etc/group | remove +: entry if not using NIS | X | |
Add tcsh and/or bash to /usr/bin | much better than csh or sh for login (the sources can be obtained via anonymous ftp from tesla.ee.cornell.edu in /pub/tcsh and prep.ai.mit.edu in /pub/gnu for tcsh and bash, respectively.) | X | X |
cat << EOF > /etc/shells /sbin/sh /bin/sh /bin/csh /bin/ksh /bin/bash /bin/tcsh EOF | add entries for all login shells, e.g.: | X | X |
chown root /home | not caught by patch 100103 | X | |
rm -rf /var/spool/uucppublic | writable by everyone, so remove if not used | X | X |
Install resolv+2.1.1 package /usr/lib/libresolv.a /usr/lib/libc.so.1.9.1 /usr/lib/libc.sa.1.9.1 Now execute ldconfig Then copy the new include files to /usr/include. | for DNS, or use NIS, it includes: resolver library shared library shared library to pick up the new libraries | X | |
cat << EOF > /etc/resolv.conf domain acs.ohio-state.edu. nameserver 128.146.1.7 nameserver 128.146.48.7 search acs.ohio-state.edu magnus.acs.ohio-state.edu cis.ohio-state.edu eng.ohio-state.edu EOF | for DNS, with the IP domain, up to 3 nameservers, these are ns1.net and ns2.net and a search path | X | X |
cat << EOF > /etc/host.conf order hosts,bind trim .magnus.acs.ohio-state.edu, .acs.ohio-state.edu nospoof on alert on EOF | used by resolv+ set the host database order to search trim the domains
| X | |
vi /etc/nsswitch.conf hosts: files dns | set name service switch lookups set the host database order to search | X | |
vi /etc/syslog.conf define(LOGHOST,localhost)
-or- vi /etc/hosts www.xxx.yyy.zzz hostname loghost | define LOGHOST (first line in file), or reference the files locally and remove the "ifdef('LOGHOST'..." entries, as desired
add the alias loghost to your hostname entry, not to the localhost entry | X | X |
chmod o-w /etc/* | remove general write permissions | X | X |
Set up xntp, including change in /etc/services for udp service | Network Time Protocol | X | X |
Install any other desired packages, e.g. perl, language compilers, etc. | make the system more usable | X | X |
Backup the system | so you can reproduce the current state after a catastrophe. | X | X |