|
|
The files referenced in this document, all appear on autoinst.acs.uci.edu.
"###" below, is meta-syntax for a three digit number. The numeric prefixes change too often to update them in this document each time.
Directories:
- /auto_install/OSF-1 - DEC alpha-specific stuff
- /auto_install/Irix - SGI specific stuff
- /auto_install/Solaris-2.5 - Solaris 2.5 specific stuff.
- /auto_install/Solaris-2.4 - Solaris 2.4 specific stuff.
- /auto_install/generic-after - Things common to Irix, DEC OSF/1, Solaris 2 and SunOS 4 are under here.
- /auto_install/generic-after/each - Where changes to the autoinstall procedure are usually made.
The /auto_install/generic-after/each directory contains many files, one for each (variety of) change made to a system. The files are executed in ascii order, and are named with an initial three digits, by convention. Among the most frequently edited files are:
- ###-domainname The OSF/1 and Irix autoinstalls don't depend on NIS. The downside is, we have to guess the NIS domainname. That's done here with a case. OSF/1 and Irix only.
- ###-is-NIS-server If a machine is to be initialized as an NIS server (slave or master), add a case for it here.
- ###-mail-config Defines what hosts are mail hubs, what are mail clients, and the relationship between clients and hubs for a given domain. If a machine is totally standalone, don't define anything here. If there are two or more machines in the domain, then YP.hnet.uci.edu makes a good example - anything simpler is perhaps a tad over-simple.
- ###-use-cde Choose whether or not you want a machine to use CDE. Mutually exclusive with xdm.
- ###-autocad This makes a nice example of doing an application thru autoinstall. The vast majority of the files are on an external disk. Originally written by Mike Sorenson.
- ###-cap-server If a machine is to be a CAP server, add a case for it here.
- ###-groupleader Controls the configuration of "gsu"
- ###-host-mounts For host-specific entries in $FSTAB (except for mail spools, which are usually more generalizable, and done in ###-mail-spool)
- ###-httpd Set up a skeletal Web server, for selected hosts.
- ###-mail-spool Provide for an NFS mount of the mail spool. SOE uses a symlink into an indirect map.
- ###-misc-symlinks Catchall for symlinks
- ###-mrouted Set up an mbone router on selected hosts
- ###-pcnfsd Set up an rpc.pcnfsd on selected hosts
- ###-popper Set up a pop daemon (inetd-invoked) on selected hosts
- ###-rhosts If a workgroup wants to have machines root-rsh'able from a common host, this is the place to set that up. Note that this is an unlikely security hole, but a serious one if exploited.
- ###-root-password For setting root passwords. Does give a default root password, if none is specified. Also used for "root2" accounts.
- ###-sparcprinter Set up a sparcprinter. NOT COMPLETE. Contains comments that should provide info required to finish someday.
- ###-swapfile Set up a swap file (OSF/1 appears to contain some hooks for doing this, but it sounds like swapping to a file is not yet supported in 3.0). I haven't looked into this for Irix.
- ###-xdm A nice selection of xdm options, provided by John Ward.
- ###-login-restriction Sets up netgroup-based login restrictions on selected hosts.
- ###-sendmail Customize sendmail setup, for a set of hosts pointing at a particular mail spool.
Environment variables useable from within a segment of "after":
- OPSYS1 Operating System - generic form. Eg "SunOS" or "OSF1"
- OPSYS2 Operating System - specific form. Eg "SunOS-5.5" or "OSF1-3.2c"
- ROOT Root of the filesystem tree, while "after" is running. May be "/" sometimes, something else others. Please don't write code that depends on what that "something else" is - just assume $ROOT is where the new system's stuff starts.
- DIR Root of a tree of auxiliary files, present when "after" is running.
- interfaces The machine's network interface names.
- ipaddresses The machine's IP addresses.
- subnets The subnets on which the machine sits
- name The machine's DNS name
- domain The machine's DNS domain (not the YP/NIS domain)
- RCDIR The directory underwhich the rc* files are found. Basically, /etc on everything but OSF/1 - where it's /sbin
- FSTAB The "fstab" file - /etc/vfstab on SunOS 5, /etc/fstab on everything else.
Auxiliary scripts available on the path, during after's execution. There are tons of examples in the "each" directory - "grep" for them.
- add-acct Add a local account. Best avoided.
- add-aufs Add a CAP fileservice
- add-gl Add a groupleader entry
- add-to-gl Add a user to a (possibly not-yet-created) groupleader entry
- add-group Add an entry to /etc/group. Best avoided.
- add-line Add a line to an arbitrary ascii file, if the line is not already present in that file.
- add-login-group Add a login restriction.
- add-lwsrv Export a unix printer for CAP (mac) users
- cap-init Cap initialization. Needed on each cap server.
- cap.printers Add an entry to the "cap.printers" file.
- dcslib-cron Add an entry to dcslib's crontab
- ftu Add a restriction on who can use ftp
- hosts Add a $ROOT/etc/hosts entry
- inetd-ent Add an inetd entry
- is-initial-install Returns true if autoinstalling, false if running "run-after". Usually best avoided, but needed in some limited cases.
- make-dir Create a directory (and the entire path to it). Doesn't give an error if the directory already exists.
- make-link Create a link. Doesn't create the entire path. Doesn't give an error if the link already exists.
- nfs Add a $FSTAB entry for a static NFS mount. Independent of vendor-dependent $FSTAB syntax. See also the "vfs" script.
- rhosts Add a $ROOT/.rhosts entry
- root-cron Add a cronjob for root
- root-pw Define a root password
- root2 Create a "root2" account, and add a password for it. Avoid this; try to use the gsu/groupleader stuff instead.
- services-ent Add an entry to $ROOT/etc/services
- shared-cap-volume Add a shared volume for CAP (mac) users
- vfs Add an entry to $FSTAB. Not independent of $FSTAB syntax. Usually used for local disks. See also the "nfs" script.
http://www.nacs.uci.edu/support/dcs/automation/tailoring-after.html
|