diff options
Diffstat (limited to 'etc')
48 files changed, 0 insertions, 6508 deletions
diff --git a/etc/adduser.conf b/etc/adduser.conf deleted file mode 100644 index 04d6aae..0000000 --- a/etc/adduser.conf +++ /dev/null @@ -1,12 +0,0 @@ -# -# Configuration file for adduser (1) -# -# $Id: adduser.conf,v 1.2 1994/12/28 07:11:29 gclarkii Exp $ - -$useautoids = "1"; # Define this if you wish to use auto-increment -$defgroupid = "20"; # Default ID -$defusrdir = "\/usr\/u"; # Default User Dir -$userdefshell = "\/bin\/csh"; # Default user shell -$skel_location = "\/usr\/share\/skel"; # Location of shell skeletons -$userids = "\/etc\/userids"; # Location of 'userids' file - diff --git a/etc/config/cleartmp b/etc/config/cleartmp deleted file mode 100644 index ba8ff1b..0000000 --- a/etc/config/cleartmp +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This option determines whether the /tmp directory should be -# automatically cleared on startup. Default is on. -on diff --git a/etc/config/gated b/etc/config/gated deleted file mode 100644 index c960aca..0000000 --- a/etc/config/gated +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determins whether Cornell's GateD should be automatically -# started. The default is off. -off diff --git a/etc/config/kerberos b/etc/config/kerberos deleted file mode 100644 index 883dbb2..0000000 --- a/etc/config/kerberos +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determines whether the Kerberos server should be -# automatically started. The default is off. -off diff --git a/etc/config/mountd.flags b/etc/config/mountd.flags deleted file mode 100644 index 8aefcdb..0000000 --- a/etc/config/mountd.flags +++ /dev/null @@ -1,3 +0,0 @@ -# $Id$ -# This file lists the flags passed to the NFS mount daemon `mountd' when -# started at boot time. diff --git a/etc/config/named b/etc/config/named deleted file mode 100644 index 67df31e..0000000 --- a/etc/config/named +++ /dev/null @@ -1,6 +0,0 @@ -# $Id$ -# This file determines whether the name server should be started -# automatically. The default is off, but Internet-connected systems -# should set it to `on' whenever possible. (NB: it must be -# configured.) -off diff --git a/etc/config/nfsclient b/etc/config/nfsclient deleted file mode 100644 index 63543ad..0000000 --- a/etc/config/nfsclient +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determines whether the NFS client software is automatically -# started at boot time. The default is off. -off diff --git a/etc/config/nfsclient.flags b/etc/config/nfsclient.flags deleted file mode 100644 index cefd50d..0000000 --- a/etc/config/nfsclient.flags +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file lists options provided to the NFS I/O daemon `nfsiod', when -# started at boot time. -4 diff --git a/etc/config/nfsserver b/etc/config/nfsserver deleted file mode 100644 index 4049345..0000000 --- a/etc/config/nfsserver +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determines whether the NFS server is automatically started -# at boot time. The default is off. -off diff --git a/etc/config/nfsserver.flags b/etc/config/nfsserver.flags deleted file mode 100644 index d3ba186..0000000 --- a/etc/config/nfsserver.flags +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file lists the flags passed to the NFS server `nfsd' when started -# at boot time. --u 0,0,4 -t 0,0 diff --git a/etc/config/nisclient b/etc/config/nisclient deleted file mode 100644 index 74fc1bb..0000000 --- a/etc/config/nisclient +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determines whether the Yellow Pages/NIS client software -# is automatically started at boot time. The default is off. -off diff --git a/etc/config/nisserver b/etc/config/nisserver deleted file mode 100644 index d3c187c..0000000 --- a/etc/config/nisserver +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determines whether the Yellow Pages/NIS server software -# is automatically started at boot time. The default is off. -off diff --git a/etc/config/quota b/etc/config/quota deleted file mode 100644 index c03530e..0000000 --- a/etc/config/quota +++ /dev/null @@ -1,5 +0,0 @@ -# $Id$ -# This file determines whether quotas are enabled upon system startup. -# This option does not effect whether the kernel supports quotas. -# The default is off. -off diff --git a/etc/config/routed b/etc/config/routed deleted file mode 100644 index 827481c..0000000 --- a/etc/config/routed +++ /dev/null @@ -1,5 +0,0 @@ -# $Id$ -# This option determines whether routed is automatically started at -# boot time. It should probably be turned off, but for now the -# default is on. -on diff --git a/etc/config/routed.flags b/etc/config/routed.flags deleted file mode 100644 index 49f11c2..0000000 --- a/etc/config/routed.flags +++ /dev/null @@ -1,3 +0,0 @@ -# $Id$ -# This file gives the command-line flags passed to routed when it is started. --q diff --git a/etc/config/rwhod b/etc/config/rwhod deleted file mode 100644 index 72de6d5..0000000 --- a/etc/config/rwhod +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determins whether rwhod is automatically started at boot -# time. The default is off. -off diff --git a/etc/config/savecore b/etc/config/savecore deleted file mode 100644 index e22338d..0000000 --- a/etc/config/savecore +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determines whether any attempt is made to save a crash -# dump in /var/crash upon boot-up. The default is on. -on diff --git a/etc/config/savecore.flags b/etc/config/savecore.flags deleted file mode 100644 index b89cedf..0000000 --- a/etc/config/savecore.flags +++ /dev/null @@ -1,3 +0,0 @@ -# $Id$ -# This file determines where crash dumps will be saved. -/var/crash diff --git a/etc/config/sendmail b/etc/config/sendmail deleted file mode 100644 index 922105d..0000000 --- a/etc/config/sendmail +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determines whether to automatically start sendmail at -# system boot time. The default is on; options in sendmail.flags. -on diff --git a/etc/config/sendmail.flags b/etc/config/sendmail.flags deleted file mode 100644 index e4d6504..0000000 --- a/etc/config/sendmail.flags +++ /dev/null @@ -1,3 +0,0 @@ -# $Id$ -# This file gives the flags passed to sendmail on system startup if enabled. --bd -q30m diff --git a/etc/config/timed b/etc/config/timed deleted file mode 100644 index a136f52..0000000 --- a/etc/config/timed +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# This file determines whether the Berkeley time daemon is -# automatically started at boot time. The default is off. -off diff --git a/etc/config/timed.flags b/etc/config/timed.flags deleted file mode 100644 index b3d15ea..0000000 --- a/etc/config/timed.flags +++ /dev/null @@ -1,2 +0,0 @@ -# $Id$ -# This file contains the flags passed to timed at start-up time, if enabled. diff --git a/etc/etc.i386/EXTRACT_bin.sh b/etc/etc.i386/EXTRACT_bin.sh deleted file mode 100755 index d682174..0000000 --- a/etc/etc.i386/EXTRACT_bin.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -# -# This file will extract all of the FreeBSD binaries into ${EXTRACT_TARGET} -# if it is set, or / otherwise. -# -# CAUTION DO NOT USE THIS TO INSTALL THE BINARIES ONTO A RUNNING -# SYSTEM, it will NOT WORK!!! You should use the extract command from /magic -# for installing the bindist onto your system. -SOURCEDIR=. -if [ X"${EXTRACT_TARGET}" = X"" ]; then - echo "YOU DO NOT WANT TO DO THAT!!!" - exit - EXTRACT_TARGET=/ -fi - -cd $SOURCEDIR -cat bin_tgz.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -#NO_EXPORT#cat des_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - diff --git a/etc/etc.i386/EXTRACT_secr.sh b/etc/etc.i386/EXTRACT_secr.sh deleted file mode 100755 index 718966c..0000000 --- a/etc/etc.i386/EXTRACT_secr.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# -# This file will extract all of the FreeBSD secure distribution into -# ${EXTRACT_TARGET} if it is set, or / otherwise. -# -SOURCEDIR=. -if [ X"${EXTRACT_TARGET}" = X"" ]; then - EXTRACT_TARGET=/ -fi - -cd $SOURCEDIR - -cat des_tgz.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat libcrypt.aa | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - diff --git a/etc/etc.i386/EXTRACT_src.sh b/etc/etc.i386/EXTRACT_src.sh deleted file mode 100755 index 0b7c465..0000000 --- a/etc/etc.i386/EXTRACT_src.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# -# This file will extract all of the FreeBSD sources into -# ${EXTRACT_TARGET}/usr/src if it is set, or /usr/src otherwise. -# If you do not want all the sources you can copy this file to your -# disk and edit it to comment out the ones you do not want. You -# will need to change the setting of SOURCEDIR to reflect where the srcdist -# directory is (dependent on where your cdrom is mounted, -# it might be /cdrom/tarballs/srcdist) . -# -if [ X"${SOURCEDIR}" = X"" ]; then - SOURCEDIR=. -fi -if [ X"${EXTRACT_TARGET}" = X"" ]; then - EXTRACT_TARGET=/ -fi - -cd $SOURCEDIR - -# Note that base.aa is REQUIRED to be able to use the source tree for -# building in. -# -cat base.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - - -# -# The following are optional -# -cat bin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat contrib.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat etc.aa | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat games.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat gnu.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat include.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat lib.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -#NO_EXPORT#cat libcrypt.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat libexec.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat sbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat share.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat sys.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat usrbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - -cat usrsbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf - diff --git a/etc/etc.i386/README.1ST b/etc/etc.i386/README.1ST deleted file mode 100644 index 1840d96..0000000 --- a/etc/etc.i386/README.1ST +++ /dev/null @@ -1,146 +0,0 @@ - FLOPPY INSTALLATION NOTES - FreeBSD - Release 1.1.5 - -Welcome to FreeBSD! This document has been put together in an effort -to make initial installation of the system from floppy as easy as possible. -It also provides a simple description for those eager to get started as soon as -possible. Please see the file README.INSTALL for more detailed installation -instructions. - -1. To install FreeBSD you will need 3 (or 4 if you choose to add the optional - DOS floppy) floppies, as well as the bulk of the distribution on some - other medium (floppy, tape, CD, etc). If you've retrieved this release - from the net, you'll first have to make the floppies yourself using - the supplied images. - - Due to the differences in PC configurations, we've found it necessary - to provide multiple initial boot images that provide kernels for - different types of systems. - - If your disk controller is one of: - - MFM / RLL / IDE / ST506 - Adaptec 154x series - Adaptec 174x series - Buslogic 545S - - Then please use the disk image: kcopy_ah.flp - to construct your boot floppy. - - If your disk controller is one of: - - Bustek 742a - UltraStore 14F or 34F - - Then please use the disk image: kcopy_bt.flp - to construct your boot floppy. - - Next, make a second floppy from the disk image: filesyst.flp - You'll need this for the second stage of the boot process. - - Finally, make a third floppy from the disk image: cpio.flp - You'll need this for the last stage of the boot process. - - If you want to use any of the optional tools in the tools - subdirectory of the ftp distribution site, these should be - copied directly to a DOS formatted disk (using, either mcopy - or mount -t pcfs). This disk is referred to later as the - optional "dos" floppy. - - If installing more than one operating system on a disk, then - it is recommended that the dos floppy at least include the - os-bs boot manager. If downloading files via a modem and SLIP - is not available, then the dos floppy should include kermit. - You'll have the option of loading the programs that are on - the dos floppy in the last stage of the boot process. - -2. Boot the first floppy. When it asks you to insert the file system floppy, - insert the second floppy ``filesyst.flp.'' Follow the instructions - that floppy gives you. If partitions already exist on the hard disk, - then by default FreeBSD attempts to install itself at the end of these. - Before rebooting, note the type of disk it says to copy the kernel - to: ``sd0a'' or ``wd0a'' (``sd0a'' is for SCSI systems, ``wd0a'' is - for all others.) When the system halts, go on to the next step. - -3. Boot the first floppy again, but this time when it asks - you to insert the file system floppy, just press the return key. - Follow the instructions that the floppy gives you. When you see - the ``kc>'' prompt, type ``copy'' (without quotes). At the next prompt, - ``copy kernel to>'', type either ``sd0a'' or ``wd0a'' as given in - the previous step. When the system halts, go on to the next step. - -4. Making sure that there's no floppy in the drive, press return to boot - from the hard disk. After it has booted and is asking what drive the - cpio floppy is in, insert the third floppy ``cpio.flp'' into a - floppy drive and answer the question about what drive it is in. - Note that 0 is the same as DOS drive A:, and 1 is the same as DOS - drive B: - -5. After the cpio floppy has been copied to the disk, remove it from the - drive. If there are programs on the dos-floppy that you would like - installed, then insert this disk in a floppy drive, again specifying - the drive to read from. - -6. After the cpio (or optional dos) floppy has been copied to the disk, - enter `halt' at the command prompt. - -7. When the system asks you to press the return key to reboot, first - remove the floppy and then press the return key to boot from the hard - disk. - -8. At this point you will get 4 errors from the fsck on boot, these - are normal and are caused by files that were open when the - /dev entries were built - just ignore them. The system will - correct these errors and then halt, after which you should press - the return key again to reboot with a clean system. - -9. Congratulations, you've got the mini FreeBSD system on your disk! - -10. Follow the instructions about set_tmp_dir and extract that - will come on your screen after you've pressed the return key. - -11. Run the configure command to set up some of the /etc files by - typing ``configure''. You will have to edit /etc/netstart after - this if you have a networking interface. - -12. Reboot so that the system comes up multiuser by typing ``reboot''. - -13. You are now running FreeBSD! Congratulations! You may now continue - with installing the source distribution, or stop here for now. - -14. The file /magic contains the special sh commands used during - installation. Should you need to use them you can do the following. - - /bin/sh - . /magic - -15. If your disk has several operating systems, you may want to - install the Thomas Wolfram's os-bs boot manager for selecting - which system to boot. This works well with DOS, OS/2, FreeBSD - and other systems. To install it, boot the system with MS-DOS - and insert the dos-floppy of the FreeBSD install suite in - floppy drive A:. Then enter the DOS commands: - > A: - > os-bs135 - > cd os-bs - > os-bs - A menu should now appear on the screen. Use the cursor keys - to highlight the install option and hit ENTER. Simply follow the - instructions from there. - - For more information about the ob-bs program, including its - capabilities and limitations, see the file `readme.1st' in the - os-bs directory. - - If you choose not to install os-bs, then fdisk can be used to - change the boot system. This is done by making the primary - partition for the boot system active. FreeBSD has an fdisk - command that can be used for this purpose as well. - -16. In addition to the FreeBSD source and binary distributions, many - additional packages, such as X11 and TeX, may be obtained from - freebsd.cdrom.com - please have a look around! You may also find - this a good time to read the release notes in RELNOTES.FreeBSD. - -End of $Id: floppy.install_notes,v 1.15 1994/05/15 01:10:17 rgrimes Exp $ diff --git a/etc/etc.i386/README.INSTALL b/etc/etc.i386/README.INSTALL deleted file mode 100644 index e67c6cd..0000000 --- a/etc/etc.i386/README.INSTALL +++ /dev/null @@ -1,1011 +0,0 @@ - INSTALLATION NOTES - FreeBSD - Release 1.1.5 - -These notes have been prepared from those written originally for NetBSD -0.9. The conversion was done by someone who has had experience with -installing and upgrading 386bsd, but who is not a unix guru, so there -will be slant towards this experience. Corrections/updates are -welcomed, it is difficult/impossible to test every last hardware -combination. - -Be sure to read _ALL_ of this document before you try to install -FreeBSD. FreeBSD probably looks a bit similar to things that you've -seen before (perhaps 386BSD), but the installation procedures are quite -different. - - -FreeBSD Release Contents: -------- --- ------- -------- - -The FreeBSD Release consists of the following elements: - -Bootable Kernel-copy floppies - - These disks are bootable and have enough utilities on - board to copy a new kernel to a prepared hard disk. While - they are primarily intended for installing FreeBSD, they - also make upgrading to a new kernel easy: boot from it, - and copy a new kernel to disk. - - You must choose between one of two kernel-copy floppy - images, depending on your disk controller type. The - "kcopy-ah-floppy" image supports the Adaptec 154x and 1742 - SCSI adapters, while "kcopy-bt-floppy" supports the Bustek - 742 and Ultrastore SCSI adapters. For systems with only - MFM, RLL, ESDI or IDE disk controllers, either image can - be used. - -Installation floppies - - In addition to a bootable floppy, two additional floppies are - required to prepare your hard drive for FreeBSD and to install - the FreeBSD base distribution. Like the boot - floppies, these are distributed as binary images. They are - are referred to below as the "filesystem-floppy" and the - "cpio-floppy". - - There is also an optional fourth installation disk referred - to as the "dos-floppy". Unlike the other install disks, - there is no binary image for the dos floppy. Instead this - is a regular MS-DOS-formatted floppy disk containing any - FreeBSD programs you choose to copy to it using mtools or - even the DOS copy command. The most commonly requested - programs have been put in a tools directory at FreeBSD - archives sites. - - -FreeBSD distribution sets - - These collections contain the complete FreeBSD system and - utilities in source and binary form. There are three - separate sets: the FreeBSD binaries, the FreeBSD sources, - and the DES sources+binaries. The DES set contains only - crypt(3) code and is subject to U.S.A. export restrictions. - - The binary distribution set can be found in the "bindist" - subdirectory of the FreeBSD archive sites. It consists - of files named bin_tgz.aa to bin_tgz.cm (i.e., 65 files - all told). A CKSUMS file (* see note below) is included - for verifying the integrity of these. - - The source distribution sets can be found in under - "srcdist" subdirectory of archive sites. It is consists - of files named for each logical group of src files (split into - "catagories"), plus the CKSUMS file. - - Finally, the security distribution set contains - usr/src/libcrypt/*, the source files for the DES encryption - algorithm, and the binaries which depend on it. It can - be found in the "secrdist" subdirectory on sites which - choose to carry the complete FreeBSD distribution. - - NOTE: Individuals who are not in the U.S.A. but who still want - to use encryption without violating U.S. export laws should read - the FreeBSD FAQ entry regarding foreign distribution of independently - developed encryption technology. Look in: - - /usr/src/contrib/FAQ - - Or, on the net, freebsd.cdrom.com:~ftp/pub/FreeBSD/FAQ - - - The individual files in each collection are no more than - 235 Kbytes in size. (The last file is just long enough - to contain the rest of the data for that distribution - set.) - - Each collection is a split, gzip'ed tar archive. They - are reassembled and extracted by the install procedure. - However, to view them without installing FreeBSD, you can - use, e.g., the command line: - - cat bin* | gunzip | tar tvf - | more - - You should NOT extract the distribution directly, but rather - use the `extract' command available at installation time. - This command performs special-case handling to avoid possible - problems in extracting a release on a new system. - - In each of the distribution directories, there is a file - named "CKSUMS" which contains the checksums of the files - in that directory, as generated by the cksum(1) command. - You can use cksum to verify the integrity of the archives, - if you suspect one of the files is corrupted. - - N.B.: The CKSUMS files are produced using the 4.4BSD - version of cksum which is POSIX-compliant. The values in - these file do not match the cksums generated by the 386BSD 0.1 - version of cksum (which is based on an earlier "standard"). - A copy of the new cksum binary that will run on - 386bsd/Netbsd/FreeBSD can be found in the "tools" subdirectory - of the distribution. - - -System Requirements and Supported Devices: ------- ------------ --- --------- ------- - -FreeBSD runs on ISA (AT-Bus), EISA and some PCI systems with 386, 486 and -Pentium processors. A math coprocessor is recommended but not essential. -It does NOT support Micro-channel systems, such as some IBM PS/2 systems. -The minimal configuration should include 4Meg of RAM and an 80Meg hard disk, -but to install the entire system (with sources) you'll need much more disk -space, and to run X or compile programs on the system, more RAM is recommended. -(4Meg will actually allow you to run X and/or compile, but it's extremely slow). - -For a complete list of supported cards and peripherals, please see the -file RELNOTES.FreeBSD. It should be installed in the root directory -of your newly installed system, or can be fetched off the net from: - - freebsd.cdrom.com:~ftp/pub/FreeBSD/RELNOTES - - -To be detected by the distributed kernels, certain devices must -be configured as follows: (Note: IRQ 9 is the same as IRQ 2 -on ISA/EISA based machines) - -Device Name Port IRQ DRQ Misc ------- ---- ---- --- --- ---- -Floppy Cntlr. fd0 0x3f0 6 2 - -Std. Hard Disk Cntlr. - wd0 0x1f0 14 - -AHA-154x SCSI Cntlr. 0x330 11 5 [kcopy-ah-floppy] - -AHA-174x SCSI Cntlr. automatically configured [kcopy-ah-floppy] - -BT742 SCSI Cntlr. 0x330 12 [kcopy-bt-floppy] - -UHA-14f SCSI Cntlr. or -UHA-34f SCSI Cntlr. 0x330 14 5 [kcopy-bt-floppy] -(In FreeBSD GAMMA and before, UHA was on IRQ 11) - -SCSI Disks sd[0-2] automatically configured - -SCSI Tapes st[01] automatically configured - -SCSI CD-ROMs cd0 automatically configured - -Serial Ports com0 0x3f8 4 - com1 0x2f8 3 - com2 0x3e8 5 - com3 0x3f8 9 - -Mitsumi CDROM 0x300 5 1 [kcopy-ah-floppy] - -SMC/WD Ethernet or -3COM 3c503 ed0 0x280 5 iomem 0xd8000 - -NOTE for 386bsd users: the we0 device for the WD80xxyy card has been -replaced with an ed0 device. The default settings of 9/280/d000 have -been changed to 5/280/d800 as this address accomdates all of the boards. - -Novell Ethernet ed0 0x280 5 - -NOTE for 386bsd users: the ne0 device for the NEx000 card has been -replaced with an ed0 device. The default settings of 9/300 have -been changed to 5/280. - -ISOLAN ISOLink is0 0x280 10 7 -Novell NE2100 is0 0x280 10 7 - -QIC-02 Tape wt0 0x300 5 1 - -Parallel (Printer) Port - lpt0 0x3BC 7 - -Interruptless Parallel (Printer) Port - lpa0 0x378 - lpa1 0x278 - -N.B.: Disable the lpt interrupt on the board or you will -have problems using the lpa drivers. - - -Hard-Disk Storage Requirements ---------- ------- ------------ - -The minimum base installation of FreeBSD requires a free hard disk -partition with at least 16 MB free space. This is only enough for -the three installation disks, which don't support a multi-user -shell. - -The full binary distribution extracts to about 46 MB. -The full source distribution extracts to about 72 MB. -The kernel source only extracts to about 7 MB. -To recompile the sources requires an additional 55 MB. -To recompile the kernel requires an additional 2 MB. - -Since additional room is required for extracting the distributions, -a full binary installation requires a minimum of about 80 MB (46 -MB extracted + 16 MB archived + 8 MB minimum swap + room for -extracting). - -A complete source + binary distribution requires a minimum of -about 210 MB (assuming a minimum 8 MB swap). - - -Getting the System on to Useful Media: -------- --- ------ -- -- ------ ----- - -Installation is supported from several media types, including: - - MS-DOS floppies - MS-DOS hard disk (Primary partition) - Tape - NFS partitions - FTP - Kermit - -No matter what you do, however, you'll need at least three disks (1.2M -or 1.44M) handy, on which you will put the kernel-copy image and the -install (or upgrade) floppy images. - -The images are available from the directory "floppies", under the root -of the FreeBSD/FreeBSD-1.1.5 tree at your favorite archive site. -They're available both as raw disk images, and gzipped, to save time -downloading. - -If you are using an AHA-154x or AHA-1742 SCSI host adapter, you need -the kcopy-ah-floppy image. If you're using a BT-742 SCSI host adapter -or an Ultrastor adaptor, then you'll need the kcopy-bt-floppy image. -If you're using MFM/RLL/IDE disk controllers, you can use either -kernel-copy floppy image. - -If you are using UNIX to make the floppies, you should use the command -dd(1) to write the raw floppy images (i.e., kcopy-ah-floppy or -kcopy-bt-floppy, filesystem-floppy and cpio-floppy) to the floppies. -For example, to write kcopy-ah-floppy to a 5.25" 1.2 Mb floppy -disk under 386BSD, use: - - $ dd if=kcopy-ah-floppy of=/dev/fd0a bs=30b count=80 - -or for a 3.5" 1.44 Mb floppy: - - $ dd if=kcopy-ah-floppy of=/dev/fd0a bs=36b count=80 - -If you are using DOS to make the floppies, use the rawrite.exe -utility. This can be found in the "tools" subdirectory of the -archive site. Copy rawrite.exe and the binary images to a DOS -disk, type "rawrite" under MS-DOS and follow the instructions. -Rawrite can write binary images to either 1.2MB or 1.44MB -MS-DOS-formatted floppies. - -Any other programs from the tools directory that might be needed -for installing FreeBSD, such as kermit, should be copied to a DOS- -formatted floppy (1.2MB or 1.44MB). Under 386BSD, they can be -copied to floppy using the mcopy command. Under DOS, use the DOS -copy command. - -The steps necessary to prepare the distribution sets for installation -depend on which method of installation you choose. The various methods -are explained below. - -To prepare for installing via MS-DOS hard disk: - - To prepare FreeBSD for installaton from the MS-DOS C: drive - of the hard disk, you need to do the following: - - If FreeBSD is installed on a hard disk containing - a Primary MS-DOS partition (as opposed to an - Extended DOS partition), then the FreeBSD distribution - files can be read directly from DOS. Preparation - is just a matter of copying the FreeBSD distribution - files onto DOS C: drive of the hard disk. - - If FreeBSD is installed on a separate hard disk than - MS-DOS, it is not currently possible to read the FreeBSD - distribution files directly from DOS. In this case, - a different medium should be used. - - Once you have the files on the C: drive, you can proceed to the - next step in the installation process, viz preparing your hard - disk. - -To prepare for installing via MS-DOS floppies: - - To prepare FreeBSD for installaton from MS-DOS floppies, you - need to do the following: - - Count the number of "<set>_tgz.xx" files - you have (these are split, gzip'ed, tar - archives). Call this number N. You will - need N/6 1.44M floppies, or N/5 1.2M - floppies to install the distribution - in this manner. For the set of bin files - (i.e., 80 files) and 1.2 Mb floppies you will - need 16 disks. - - Format all of the floppies, with MS-DOS. - Don't make any of them MS-DOS bootable - floppies (i.e., don't use "format /s"!) - If you use "format /u" then the format - will run a tad faster. - - Copy all of the "<set>_tgz.xx" files on - the DOS disks. Under DOS use the DOS copy - command. Under 386BSD, use, for instance, - the make_floppies script: - - #!/bin/sh - N_PER_DISK=5 - - x=$N_PER_DISK - for dist in bin_tgz.*; do - if [ $x -ge $N_PER_DISK ]; then - x=0 - echo -n "Insert next disk, " - echo -n "and press ENTER... " - read reply - mdel a:/\* - fi - mcopy $dist a:/ - x=`expr $x + 1` - done - - (Or you might use tar instead). - - Once you have the files on DOS disks, you can proceed to the - next step in the installation process, viz preparing your hard - disk. - -To prepare for installing via a tape: - - To install FreeBSD from a tape, you need to be somehow - to get the FreeBSD filesets you wish to install on - your system on to the appropriate kind of tape, - in tar format. - - If you're making the tape on a UN*X system, the easiest - way to do so is: - - tar cvf <tape_device> <files> - - where "<tape_device>" is the name of the tape device - that describes the tape drive you're using (either - /dev/rst0 for SCSI tape, otherwise /dev/rwt0). - If you can't figure it out, ask your system administrator. - "<files>" are the names of the "<set>.tar.gz.xx" files - which you want to be placed on the tape. - - If your tape drive is not a type recognzed by the - kernel, then it may be necessary to set the tape density - using either the st(1) command (for SCSI tape) or the - mt(1) command. Both these programs are available from - the tools directory of the FreeBSD archive site. - -To prepare for installing via an NFS partition: - - NOTE: this method of installation is recommended - only for those already familiar with using - the BSD network-manipulation commands and - interfaces. If you aren't, this documentation - should help, but is not intended to be - all-encompassing. - - Place the FreeBSD software you wish to install into - a directory on an NFS server, and make that directory - mountable by the machine which you will be installing - FreeBSD on. This will probably require modifying the - /etc/exports file of the NFS server and resetting - mountd, acts which will require superuser privileges. - Make a note of the numeric IP address of the NFS server - and make a note of the router closest to the the new - FreeBSD machine if the NFS server is not on a network - which is directly attached to the FreeBSD machine. - - Once you have done this, you can proceed to the next - step in the installation process, preparing your hard disk. - -To prepare for installing via FTP: - - NOTE: this method of installation is recommended - only for those already familiar with using - the BSD network-manipulation commands and - interfaces. If you aren't, this documentation - should help, but is not intended to be - all-encompassing. - - The preparations for this method of installation - are easy: all you have to do is make sure that - there's some FTP site from which you can retrieve - the FreeBSD installation when it's time to do - the install. You should know the numeric IP - address of that site, and the numeric IP address of - your nearest router if the new FreeBSD computer is - not on the same net or subnet as the FTP site. - - Once you have done this, you can proceed to the next - step in the installation process, preparing your hard disk. - -To prepare for installing via Kermit: - - The preparations for this method of installation - require that the kermit program be put on the - dos-floppy installation disk. This will be - loaded as part of the minimum base installation. - Kermit is available from tools directory of the - FreeBSD FTP site. This is a FreeBSD binary and - only executes under the FreeBSD operating system. - - Once you have done this, you can proceed to the next - step in the installation process, preparing your hard disk. - -To upgrade: - - (The beta upgrade script is available on request from - FreeBSD-questions@freefall.cdrom.com) - -Preparing your Hard Disk for FreeBSD Installation: ---------- ---- ---- ---- --- ------ ------------ - -NOTE: If you wish to install FreeBSD on your whole drive, (i.e. you do -not want DOS or any other operating system on your hard disk), you can -skip this section, and go on to "Installing the FreeBSD System." - -Firstly, be sure you have a reliable backup of any data which you may -want to keep; repartitioning your hard drive is an excellent way to -destroy important data. - -WARNING: If you are using a disk controller which supports disk -geometry translation, BE SURE TO USE THE SAME PARAMETERS FOR FreeBSD AS -FOR DOS! If you do not, FreeBSD will not be able to properly coexist -with DOS. - -Secondly, make sure your disk has at least 16 Mbytes free space (or -80 Mbytes for the complete binary distribition). - -You are now set to install FreeBSD on your hard drive. - -Installing the FreeBSD System: ----------- --- ------ ------ - -If DOS or OS/2 is already installed on the hard disk, installation should -be easy. By default FreeBSD is installed after the last DOS or OS/2 -partition. Otherwise, you may need to specify your hard disk's geometry -(i.e., number of cylinders, heads and sectors per track). - -For computing partition sizes, it might help to have a calculator handy. - -And it's finally time to install the system! - -The following is a walk-through of the steps necessary to get FreeBSD -installed on your hard disk. If you wish to stop the installation, you -may hit Control-C at any prompt and then type `halt'. - - Boot from the kcopy-ah or kcopy-bt floppy, depending on - your hard disk controller type. - - When prompted to insert the filesystem floppy, remove the - kcopy floppy from the drive and insert filesystem floppy - and hit any key. - N.B.: The filesystem floppy must not be write protected. - - [When booting, if no message prompt appears after a - reasonable period of time, reboot and try it again. If - this doesn't work, try disabling your CPU's internal and - external caches, and then try to boot again. If there is - still no message prompt, then you can't install FreeBSD - on your hardware. If you were able to install 386bsd, - this is definitely a bug in our software; please report - it! Please include your system configuration, and any - other relevant information in your bug report.] - - The boot sequence continues after the filesystem floppy - has been inserted. A copyright notice is displayed along - with a list of the hardware that FreeBSD recognizes as - being in your machine. You might want to make a note of - the disk values for cylinders, heads, sectors etc for - later use. - - After a short while (approximately 30 to 60 seconds), you - should see a welcome message and a prompt, asking if you - wish to proceed with the installation. - - If you wish to proceed, enter "y" and then return. - - You will then be asked what type of disk drive you have. - The valid options are listed on the screen (e.g., SCSI, ESDI). - - You will then be asked for a label name for your disk. - This should be a short, one-word name for your disk, - e.g., "cp3100-mine" for a Conner Peripherals "3100" disk. - You needn't remember this name. - - Next, you will be prompted for the geometry information. - The default values should be correct, in which case just - hit ENTER to accept them. Otherwise enter the values - that were displayed during the boot sequence as they are - requested. - - The default size of the FreeBSD portion of the disk - is the maximum available at the end of the disk (which may - be the whole disk). Accept the default by hitting ENTER. - Otherwise, enter an appropriate value using the information - displayed. - - If you are not installing on the whole disk, you will be - asked for the offset of the FreeBSD partition from the - beginning of the disk. Again, hit ENTER to accept the - default, or enter a cylinder offset from the beginning of - the disk. - - You will then be asked for the size of your root partition, - in cylinders. The suggested maximum size is 15 Mbytes - which is used as a default. Accept this, or enter a - suitable value (after converting to cylinders using the - formula displayed). - - Next, you will be asked for the size of your swap partition - - again, you must calculate this in cylinders. You should - probably allocate around twice as much swap space as you - have RAM memory. If you wish the system to save crash dumps - when it panics, you will need at least as much swap as you - have RAM. - - The install program will then ask you for information about - the rest of the partitions you want on your disk. For the - purposes of this document, you only want one more: /usr. - Therefore, at the prompt, when in asks you to enter the size - of the next partition, enter the number of cylinders remaining - in the FreeBSD portion of the disk. When it asks you for the - mount point for this partition, say "/usr". - - After the FreeBSD partition have been assigned, install checks - the disk for an MS-DOS partition. If one exists, you are prompted - whether to make this accessible from FreeBSD (i.e., for reading - and writing). And if you choose to make the DOS partition - accessible, you are prompted for what directory it should - be mounted on. "/dos" is used by default. With this - choice, you could copy the contents of the DOS root - directory (i.e., C:\), for instance, with the Unix command: - - # cp /dos/* . - - If have you a DOS partition and you don't want it visible - from FreeBSD, just respond with "n" when asked whether to - make it accessible. - - YOU ARE NOW AT THE POINT OF NO RETURN. - - If you confirm that you want to install FreeBSD, your hard - drive will be modified, and perhaps it contents scrambled at - the whim of the install program. This is especially likely - if you gave the install program incorrect information. - Enter "no" at the prompt to get the option of redoing the - configuration, using your previous choices as defaults. - - If you are sure you want to proceed, enter "yes" at the prompt. - - The install program now makes the filesystems you specified. - If all goes well, there should be no errors in this section - of the installation. If there are, restart from the the - beginning of the installation process. - - After the installation program prompts you to see if you'd - like to be told about all of the files it's going to copy - to your hard drive, it will spend a few minutes copying these - files and then will print out an informative message and - place you at a "#" prompt. - - Read the message and note which partition (e.g., sd0a or wd0a) - you need to copy a kernel to. Reboot the machine off the - kcopy-xx-floppy disk, but this time at the prompt asking - you to insert a file system floppy, do _not_ replace the - floppy, just press <enter>. - - At the "kc>" prompt, enter "copy" to prepare to copy the - kernel on the floppy to your hard disk. - - At the next "kc>" prompt, enter the disk partition to which - you want to copy the kernel. (e.g., sd0a or wd0a). - - It will work for a minute or two, then present you with - another "#" prompt. Follow the instructions given, (i.e., - halt the system) and reboot from the hard disk. You will - probably have to do a hardware reset or else your ethernet - card might not be recognised at reboot (e.g., if you have a - WD8003EP card). - - When the machine boots, a three-line banner should appear at - the top of the screen. In a few seconds, a series of - messages will appear, describing the hardware in your machine. - Once again, this stage can take up to two minutes, so DO NOT - PANIC! - - You will be asked to insert the cpio-floppy into a floppy - drive, and enter that drive's number. "0" corresponds to - DOS's "A:" drive, "1" corresponds to DOS's "B:" drive. - - After you enter the number it will ask you if you'd like to - watch its progress, and after you answer this question it - will begin installing still more files on your hard disk. - This should take no more than 3 minutes. - - You are given the option to load the dos-floppy disk. - In particular, if you want to use kermit for downloading - the distribution, the dos-floppy should have the kermit - binary. Or if you are using SCSI tape, the dos-floppy should - contain the st command. - - To load the dos-floppy, remove the cpio-floppy from the - drive, insert the dos-floppy and enter a "yes" response - at the prompt. Otherwise, enter "no" at the prompt. - - After the dos-floppy has been loaded, you are given (more) - instructions, (e.g., to halt the system) and you should - reboot the machine again, from the hard drive and probably - with a hardware reset to kick your ethernet card back into - life. - - CONGRATULATIONS: You now have the minimum base of FreeBSD - files on your hard disk! Now you get to install the - distribution file sets. Remember that, at minimum, you must - install the bin.tar.gz.xx file set (see below for - instructions). - - After the machine is done booting, you will be presented - with a screenful of information about what to do next. - - What you do from this point on depends on which media you're - using to install FreeBSD. Follow the appropriate - instructions, given below. - - To install from MS-DOS hard disk partition, floppy or tape: - - The first thing you should do is to choose a temporary - directory where the distribution files can be stored. - To do this, use the command "set_tmp_dir" and enter - your choice. The default is /usr/distrib. - - After you have chosen a temporary directory, - you should issue the appropriate load command: - - load_dos - for loading from a MS-DOS hard disk - partition, or from floppies, - - load_qic_tape - for loading from QIC-02 tape, or - - load_scsi_tape - for you're loading from the first - SCSI tape drive in the system. - - If loading from tape, it may be necessary to first - set the default density using the mt or st command. - The low-density device (/dev/rst0 or /dev/rmt0) - is used by the load_xx_tape command, so to prepare - a SCSI device for reading QIC-150 tape, you might use: - - # st -f /dev/nrst0 rewind - # st -f /dev/nrst0 low_dnsty 16 - # load_scsi_tape - - If loading from floppy or hard disk, the load_dos - command prompts for information, such as to which - floppy drive or hard disk directory to load from. - Additional options are available, e.g., for listing - and, if loading from hard disk, changing source - directories. - - Go to the directory which contains the first - distribution set you wish to install. This is - either the directory you specified above, if using - load_dos, or possibly a subdirectory of that - directory, if you loaded from tape. - - When there, run "set_tmp_dir" again, and choose - the default temporary directory, by hitting - return at the prompt. - - Run the "extract" command, giving it as its sole - argument the name of the distribution set you - wish to extract. For example, to extract the binary - distribution, use the command: - - extract bin - - and to extract the source distribution: - - extract src - - After the extraction is complete, go to the location - of the next set you want to extract, "set_tmp_dir" - again, and once again issue the appropriate - extract command. Continue this process until - you've finished installing all of the sets which you - desire to have on your hard disk. - - After each set is finished, if you know that you - are running low on space you can remove the - distribution files for that set by saying: - - rm <set>* - - For example, if you wish to remove the distribution - files for the binarydist set, after the "extract bin" - command has completed, issue the command: - - rm bin* - - Once you have extracted all sets and are at the "#" prompt - again, proceed to the section "Configuring Your System," - below. - - To install via FTP or NFS: - - First you must decide on a temporary directory to hold - the <set>.tar.gz.xx files. The directory /usr/distrib - is suggested. You should cd to it, if necessary do - a mkdir first. Use set_tmp_dir to identify this - directory to the install process. - - Configure the appropriate ethernet interface (e.g. ed0, - ne0, etc.) up, with a command like: - - ifconfig <ifname> <ipaddr> [netmask <netmask>] - - where <ifname> is the interface name (e.g. ed0, etc.), - and <ipaddr> is the numeric IP address of the interface. - If the interface has a special netmask, supply - the word "netmask" and that netmask at the end of the - command line. For instance, without a special netmask: - - ifconfig ed0 129.133.10.10 - - or with a special netmask - - ifconfig ed0 128.32.240.167 netmask 0xffffff00 - - or the equivalent - - ifconfig ed0 128.32.240.167 netmask 255.255.255.0 - - If you are using the AUI connector on a 3C503 card, you - must also set the LLC0 flag (the default is to use the BNC - connector): - - ifconfig ed0 130.252.23.86 llc0 - - If the NFS server or FTP server is not on a directly- - connected network, you should set up a route to it - with the command: - - route add default <gate_ipaddr> - - where <gate_ipaddr> is your gateway's numeric IP address. - - If you are NFS-mounting the distribution sets, - mount them on the temporary directory with the command: - - mount -t nfs <serv_ipaddr>:<dist_dir> <tmp_dir> - - where <serv_ipaddr> is the server's numeric IP address, - <dist_dir> is the path to the distribution files on - the server, and <tmp_dir> is the name of the local - temporary directory (e.g., /usr/distrib). Proceed as if - you had loaded the files from tape, "cd"ing to the - appropriate directories and running "set_tmp_dir" and - "extract" as appropriate. - - If you are retrieving the distribution sets using ftp, - cd into the temp directory, and execute the command: - - ftp <serv_ipaddr> - - where <serv_ipaddr> is the server's numeric IP address. - Get the files with FTP, taking care to use binary mode - to transfer all files. A simple set of commands is - - ftp <serv_ipaddr> - user ftp - passwd <user-id>@ - hash - binary - prompt - cd <where/the/binarydist/files/are> - mget * - cd <where/the/sourcedist/files/are> - mget * - quit - - Once you have all of the files for the distribution sets - that you wish to install, you can proceed using the - instructions above as if you had installed the files - from a floppy. - - To install via Kermit: - - First you must decide on a temporary directory to hold - the <set>.tar.gz.xx files. The directory /usr/distrib - is suggested. You should cd to it, if necessary do - a mkdir first. Use set_tmp_dir to identify this - directory to the install process. - - Invoke kermit and dial the remote kermit server. - A typical session might be: - # stty -f /dev/sio01 clocal - # kermit - C-Kermit> set file type binary - C-Kermit> set line /dev/sio01 - C-Kermit> set baud 9600 - C-Kermit> set receive packet 740 - C-Kermit> set window 4 - C-Kermit> set block 2 - C-Kermit> connect - Connecting to /dev/sio01, speed 9600. - The escape character is Ctrl-\ (ASCII 28, FS) - Type the escape character followed by C to get back, - or followed by ? to see other options. - atdt 1234567 <-- dial the remote - Connect 9600 - login: mylogin <-- login to the remote - [...] - remote$ kermit -ix <-- remote kermit as binary server - [...] - ^\C <-- return to local kermit - C-Kermit> get bin_tgz* <-- request files from remote - [...] (wait long for transfer to complete) - C-Kermit> finish <-- terminate remote server - C-Kermit> connect - C-Kermit> exit <-- exit remote kermit - remote$ exit <-- exit remote host - ^\C <-- return to local kermit - C-Kermit> exit <-- exit local kermit - - At this point the binary distribution should be - downloaded to the FreeBSD system. Run the "extract" - command, giving it as its sole argument the name - of the distribution set you wish to extract. For - example, to extract the binary distribution, use - the command: - - extract bin - - and to extract the source distribution: - - extract src - - After the extraction is complete, go to the location - of the next set you want to extract, "set_tmp_dir" - again, and once again issue the appropriate - extract command. Continue this process until - you've finished installing all of the sets which you - desire to have on your hard disk. - - After each set is finished, if you know that you - are running low on space you can remove the - distribution files for that set by saying: - - rm <set>* - - For example, if you wish to remove the distribution - files for the binarydist set, after the "extract bin" - command has completed, issue the command: - - rm bin* - - Once you have extracted all sets and are at the "#" prompt - again, proceed to the section "Configuring Your System," - below. - - -Further Tips on Installing FreeBSD -------- ---- -- ---------- ------- - - You might wish to install the binarydist first, get that - working, and then at a later point in time have a go at - installing the sourcedist. BEFORE YOU REBOOT AFTER INSTALLING - THE BINARYDIS, you must preserve the commands that do the - extracting. They are kept in the single-user-mode .profile - file called /.profile. Proceed like this: - - mv /.profile /.profile.install - ln /root/.profile /.profile - - When you are ready to install the sourcedist at some time - in the future, get into multi-user mode (i.e., the normal - means of running FreeBSD) and issue these commands: - - cp /.profile.install /.profile - shutdown now - - This will cause the system to go into single-user mode, and - the install profile will be active (i.e., you will find the - commands load_dos, extract etc available to you again). - - If your disk has several operating systems, you may want - to install a boot manager such as Thomas Wolfram's os-bs - for selecting which system to boot. os-bs135.exe and other - boot managers are available from the tools directory of - the FreeBSD FTP site. os-bs works well with DOS, OS/2, - FreeBSD and other systems, however, it cannot currently - be used to boot FreeBSD from a second hard disk. Another - boot manager, such as boot-easy should be used. - - To install, for instance, os-bs, boot the system with - MS-DOS and insert the dos-floppy containing os-bs135.exe - in floppy drive A:. Then enter the DOS commands: - > A: - > os-bs135 - > cd os-bs - > os-bs - A menu should now appear on the screen. Use the cursor keys - to highlight the install option, hit ENTER, and follow the - instructions from there. - - For more information about the ob-bs program, including its - capabilities and limitations, see the file `readme.1st' in the - os-bs directory. - - If your disk has several operating systems and you choose - not to install os-bs, then fdisk can be used to change - the boot system. This is done by making the primary - partition for the boot system active. FreeBSD has an - fdisk command that can be used for this purpose as well. - - -Configuring Your System: ------------ ---- ------ - -Once you have finished extracting all of the distribution sets that you -want on your hard drive and are back at the "#" prompt, you are ready -to configure your system. - -The configuration utility expects that you have installed the base -system. If you have not, you will not be able to run it successfully -(nor will you have a functional system regardless of configuration). - -To configure the newly installed operating system, run the command -"configure". - -Configure will ask for the machine's hostname, domain name, and other -network configuration information. You should check that configure has -set up the following files correctly: - - /etc/netstart - /etc/myname - -Once you have supplied configure all that it requests, your machine -will be configured well enough that when you reboot it it will be a -completely functional FreeBSD system. It is not completely configured, -however; you should adjust the /etc/sendmail.cf file as necessary to -suit your site and/or disable sendmail in /etc/rc and you should look -in /etc/netstart to make sure the flags are defined correctly for your -site. You might wish to set up several other tcp/ip files, such as - - /etc/resolv.conf - /etc/networks - -Once you are done with configuration, reboot with the "reboot" command. - -When it boots off of the hard drive, you will have a complete FreeBSD -system! CONGRATULATIONS! (You really deserve them!!!) - - -Administrivia: -------------- - -Registration? What's that? - -If you've got something to say, do so! We'd like your input. - -Please send random comments to: - - FreeBSD-questions@freefall.cdrom.com - -Please send bug reports, and that sort of material to: - - FreeBSD-bugs@freefall.cdrom.com - -If you'd like to help with this effort, and have an idea as to how -you could be useful, send mail to: - - FreeBSD-hackers@freefall.cdrom.com - -THANKS FOR USING THIS; that's what makes it all worthwhile. - -[a favor: Please avoid mailing huge documents or files to these mailing lists, - as they will end up in our personal mail spools. We will be - happy to make other arrangements] - -This is $Id: install_notes,v 1.14 1994/02/25 23:34:14 alm Exp $ diff --git a/etc/etc.i386/cdinst1.install b/etc/etc.i386/cdinst1.install deleted file mode 100644 index 7b04dfb..0000000 --- a/etc/etc.i386/cdinst1.install +++ /dev/null @@ -1,1043 +0,0 @@ -#!/bin/sh -# cd install floppy disk /install script -# -# $Id: cdinst1.install,v 1.6 1994/06/29 06:46:01 rgrimes Exp $ - -# ${OPSYSTEM}, the mounting of the cdrom drive, and the path are all -# setup by .profile -# -OPSYSID=165 -ROOTMIN=7 -SWAPMIN=8 -USRMIN=45 -DISKMIN=`expr $ROOTMIN + $SWAPMIN + $USRMIN + 1` -DEFBLOCKING=2 -DEFSECT=17 -DEFHEAD=12 -DEFCYLN=1024 -RUN_FDISK="" - -DOS1_ID=1 -DOS2_ID=4 -DOS3_ID=6 - -set_arbitrary_defaults() { -cyls_per_disk=$DEFCYLN -tracks_per_cyl=$DEFHEAD -sects_per_track=$DEFSECT -unused_last_part=3 -part_cnt=4 -} - - -get_fdisk_data() { -cyls_per_disk= -part_id= -got_sysid= -part_cnt=0 -sysid_cnt=0 -have_opsys_part= -have_dos_part= -unused_last_part= -extent_max=0 -extent_max_part= - -fdisk /dev/r${drivename}d >fdisk.out 2>fdisk.err -if [ $? -gt 0 ]; then - echo "Can't open /dev/r${drivename}d for reading!" - set_arbitrary_defaults - >fdisk.out - >fdisk.err - return 2 -elif [ -s fdisk.err ]; then - echo "Disk doesn't appear to be initialized..." - >fdisk.out - >fdisk.err - no_part_table=1 -fi -while read data; do - if [ ! "$cyls_per_disk" ]; then - cyls_per_disk=`expr "$data" : '[^=]*=\([0-9]*\)'` - tracks_per_cyl=`expr "$data" : '[^=]*=[^=]*=\([0-9]*\)'` - sects_per_track=`expr "$data" : '[^=]*=[^=]*=[^=]*=\([0-9]*\)'` - continue - fi - if [ "$got_sysid" ]; then - start_part=`expr "$data" : '[^0-9]*\([0-9]*\)'` - size_part=`expr "$data" : '[^0-9]*[0-9]*[^0-9]*\([0-9]*\)'` - extent_part=`expr $start_part + $size_part` - if [ $extent_part -gt $extent_max ]; then - extent_max=$extent_part - extent_max_part=$part_id - fi - eval start${part_id}=$start_part - eval size${part_id}=$size_part - sysid_cnt=`expr $sysid_cnt + 1` - got_sysid= - part_id= - elif [ "$part_id" ]; then - sysid=`expr "$data" : 'sysid \([0-9]*\)'` - sysname=`expr "$data" : 'sysid[^(]*(\([^)]*\)'` - if [ "$no_part_table" -o "$sysid" = "0" -o \ - "$(expr "$data" : '\(<UNUSED>\)')" = "<UNUSED>" ]; then - unused_last_part=$part_id - part_id= - continue - fi - if [ "$sysid" = "$OPSYSID" ]; then - have_opsys_part=$part_id - elif [ ! "$have_dos_part" -a \( "$sysid" = "$DOS1_ID" -o \ - "$sysid" = "$DOS2_ID" -o "$sysid" = "$DOS3_ID" \) ]; then - have_dos_part=$part_id - fi - eval sysid${part_id}=$sysid - eval sysname${part_id}=\"$sysname\" - got_sysid=1 - else - part_id=`expr "$data" : 'The data[^0-9]*\([0-9]*\)'` - beg_cyl=`expr "$data" : '[ ]*beg[^0-9]*\([0-9]*\)'` - end_cyl=`expr "$data" : '[ ]*end[^0-9]*\([0-9]*\)'` - if [ "$part_id" ]; then - part_cnt=`expr $part_cnt + 1` - elif [ "${beg_cyl}" -gt "${cyls_per_disk}" -o \ - "${end_cyl}" -gt "${cyls_per_disk}" ]; then - no_part_table=1 - sysid_cnt=0 - have_opsys_part=0 - unused_last_part=`expr $part_cnt - 1` - fi - fi -done <fdisk.out -if [ ! "$cyls_per_disk" ]; then - set_arbitrary_defaults - return 2 -fi ->fdisk.out ->fdisk.err -return 0 -} - -set_existing_part() { -# Set existing partiton values as default (adjusting to cylinder boundaries) -eval opsys_size=\$size${opsys_part} -eval opsys_start=\$start${opsys_part} -[ $opsys_size -eq 50000 ] && opsys_size=$disksize -opsys_off=`expr $opsys_start / $cylindersize` -opsys_adjusted=`expr $opsys_off \* $cylindersize` -if [ $opsys_adjusted -lt $opsys_start -o $opsys_off -eq 0 ]; then - opsys_off=`expr $opsys_off + 1` - opsys_adjusted=`expr $opsys_off \* $cylindersize` - opsys_size=`expr $opsys_size - $opsys_adjusted + $opsys_start` -fi -cyls_per_opsys=`expr $opsys_size / $cylindersize` -RUN_FDISK="fdisk -u" -} - - -set_overwrite_part() { -while :; do - echo - echo -n "Please specify partition to overwrite: [3] " - read resp junk - opsys_part=${resp:-3} - if [ "$opsys_part" -ge 0 -a "$opsys_part" -le 3 ]; then - break - else - echo - echo "Partition must be in the range [0-3]" - fi -done -set_existing_part -} - -analyze_fdisk_data() { -if [ "$part_cnt" -gt 0 ]; then - echo - echo "Partition Offset* Size* Name" - echo "--------- ------ ---- ----" - i=0 - while [ $i -lt $part_cnt ]; do - pcyls= - poff= - eval psize=\$size${i} - eval pstart=\$start${i} - eval pname=\$sysname${i} - [ "$psize" -eq 50000 ] && psize=$disksize - if [ "$psize" ]; then - poff=`expr $pstart / $cylindersize` - padjusted=`expr $poff \* $cylindersize` - if [ "$padjusted" -lt "$pstart" ]; then - poff=`expr $poff + 1` - padjusted=`expr $poff \* $cylindersize` - psize=`expr $psize - $padjusted + $pstart` - fi - pcyls=`expr $psize / $cylindersize` - fi - echo -n "${i}" - echo -n " ${poff:-0}" - echo -n " ${pcyls:-0}" - echo " ${pname:-(Unused)}" - i=`expr $i + 1` - done - echo "* Sizes and offsets are in units of cylinders." -fi -# Case I: >1024 cylinders -force_offset= -if [ $cyls_per_disk -gt 1024 ]; then - echo - echo " WARNING: >1024 cylinders. On some hardware, this prevents" - echo " ${OPSYSTEM} from sharing the disk with other operating systems." - echo -n "Install ${OPSYSTEM} on entire disk, overwriting existing partitions? [n] " - read resp junk - case "$resp" in - y*|Y*) - RUN_FDISK="" - force_offset=1 - opsys_off=0 - cyls_per_opsys=${cyls_per_disk} - opsys_part=${unused_last_part:-3} - return 0 - ;; - *) - echo - echo "If the number of disk cylinders does not exceed 1024, then ${OPSYSTEM}" - echo "can be installed alongside other operating systems on a single disk." - echo "Otherwise, it is system-dependent whether this will work or not." - echo "In the worst case, ${OPSYSTEM} MUST be installed at the beginning of" - echo "the disk, and existing partitions will be lost." - echo - echo "For now, we will assume that >1024 cylinders creates no problems..." - # FALL THROUGH - ;; - esac -fi -# Case II: no partitions used -if [ $sysid_cnt -eq 0 ]; then - echo - echo " WARNING: partition table is either missing or corrupt." - echo " Existing partitions will be lost." - part_cnt=${part_cnt:-4} - RUN_FDISK="overwrite" - opsys_off=1 - cyls_per_opsys=`expr ${cyls_per_disk} - 1` - opsys_part=${unused_last_part:-3} - return 0 -# Case IIIa: overwrite an existing 386BSD/NetBSD/FreeBSD partition -elif [ "$have_opsys_part" ]; then - echo - echo "386/Net/FreeBSD partition already exists!" - echo -n "Overwrite existing partition? [n] " - read resp junk - case "$resp" in - y*|Y*) - opsys_part=${have_opsys_part} - set_existing_part - return 0 - ;; - *) - have_opsys_part= - # FALL THROUGH - ;; - esac -fi - -# Case IIIb: no partitions available -if [ $sysid_cnt -eq $part_cnt -a ! "$have_opsys_part" ]; then - echo - echo "No unused partitions." - echo -n "Install $OPSYSTEM and overwrite the entire disk? [n] " - read resp junk - case "$resp" in - y*|Y*) - # don't use first cylinder! - opsys_off=1 - cyls_per_opsys=`expr $cyls_per_disk - 1` - opsys_part=${unused_last_part} - RUN_FDISK="overwrite" - ;; - *) - set_overwrite_part - ;; - esac - return 0 -fi - - -# *** CAVEAT *** -# $OPSYSTEM installs at the end of the disk. If the -# beginning of the disk is free but not the end, install fails! - -# Assume `fdisk -u' to add $OPSYSTEM in last unused partition for remaining cases -opsys_part=${unused_last_part} -RUN_FDISK="fdisk -u" -mb_sect=`expr 1024 \* 1024 / $bytes_per_sect` -disk_minimum=`expr $DISKMIN \* $mb_sect` - -# Case IV: No room (at end of disk) for mininal install -[ $extent_max -eq 50000 ] && extent_max=$disksize -disk_remaining=`expr $disksize - $extent_max` -if [ $disk_remaining -lt $disk_minimum ]; then - echo - echo "Not enough space ($DISKMIN Mb) at end of disk to install $OPSYSTEM." - echo -n "Install FreeBSD and overwrite the entire disk? [n] " - read resp junk - case "$resp" in - y*|Y*) - # don't use first cylinder! - opsys_off=1 - cyls_per_opsys=`expr $cyls_per_disk - 1` - opsys_part=${unused_last_part} - RUN_FDISK="overwrite" - ;; - *) - echo - echo -n "Overwrite an existing partition? [n] " - read resp junk - case "$resp" in - y*|Y*) - set_overwrite_part - ;; - *) - echo - echo " WARNING: To install ${OPSYSTEM}, you're on your own in figuring" - echo " out where on the disk it will fit without overwriting another" - echo " partition..." - # Set defaults assuming there is only one partition at end of disk - eval start=\$start${extent_max_part} - # don't use first cylinder! - opsys_off=1 - cyls_per_opsys=`expr $start / $cylindersize - 1` - [ $cyls_per_opsys -lt 0 ] && cyls_per_opsys=0 - ;; - esac - ;; - esac - return 0 -fi - -# Case V: Room for $OPSYSTEM and partition data okay -opsys_off=`expr $extent_max / $cylindersize` -opsys_extent=`expr $opsys_off \* $cylindersize` -[ $opsys_extent -lt $extent_max ] && opsys_off=`expr $opsys_off + 1` -cyls_per_opsys=`expr $cyls_per_disk - $opsys_off` -return 0 -} - -put_fdisk_data() { -start=$root_offset -size=$partition - -if [ "$RUN_FDISK" = "overwrite" ]; then - # How do you overwrite without explicitly editing each entry? - ( - echo y - echo $cyls_per_disk - echo $tracks_per_cyl - echo $sects_per_track - echo y - ) >fdisk.script - i=0 - n=`expr ${part_cnt:-4} - 1` - while [ $i -lt $n ]; do - echo y - echo 0 - echo 0 - echo 0 - echo n - echo y - i=`expr $i + 1` - done >>fdisk.script - ( echo y - echo ${OPSYSID} - echo ${start} - echo ${size} - echo n - echo y - echo y - echo ${n} - echo y - echo y - ) >>fdisk.script - fdisk -u /dev/r${drivename}d <fdisk.script >/dev/null 2>&1 -elif [ "$RUN_FDISK" ]; then - $RUN_FDISK -${opsys_part:-${unused_last_part:-3}} /dev/r${drivename}d <<-EOF >/dev/null 2>&1 - y - $cyls_per_disk - $tracks_per_cyl - $sects_per_track - y - y - ${OPSYSID} - ${start} - ${size} - n - y - y - ${opsys_part:-${unused_last_part:-3}} - y - y - EOF -fi - -} - -echo -echo "This program is designed to help put ${OPSYSTEM} on a hard disk with" -echo "at least $DISKMIN Megabytes of free space." -echo -echo "Before starting, it is important to know your hard disk's geometry" -echo "(i.e., number of cylinders, heads and sectors/track). If installing" -echo "${OPSYSTEM} on the same disk as another operating system, then the" -echo "two systems should use the same geometry. In particular, ${OPSYSTEM}'s" -echo "default geometry is inappropriate for MS-DOS. So in this case, the" -echo "DOS geometry should be used instead." -echo -echo "As with anything which modifies a hard drive's contents, this program" -echo "can cause SIGNIFICANT DATA LOSS. We strongly recommend making sure" -echo "that the hard drive is backed up before going further with the" -echo "installation process." -echo -echo -n "Proceed with installation? [y] " -read resp junk -resp=${resp:-y} -case "$resp" in -y*|Y*) - echo - echo "Cool! Let's get to it..." - echo - echo "You will be given a chance to start over if you make a" - echo "mistake during these questions." - echo "At the end, you have the option of redoing the configuration." - echo "If you really must quit at some point, type <CTRL>+C and" - echo "enter \`halt' at the command prompt, \`#'." - ;; -*) - echo - echo "OK, then. Enter \`halt' to halt the machine." - echo "Once the machine has halted, remove the floppy," - echo "and press any key to reboot." - exit - ;; -esac - -mount -u /dev/fd0 / || { - if mount -u /dev/fd1 / ; then - echo "[Please ignore the above error message, that's normal.]" - else - echo "Oh boy, we're in trouble here: Could not mount floppy read-write." - exit 1 - fi -} -sync -verified_install="" -while [ ! "$verified_install" ]; do # Begin of Big Loop - -rotdelay="-d 0 -n 1" -drivename=wd0 -drivetype=wd -sect_fwd="" -echo -echo "First, we need to know the drive type. This can be can be one of" -echo "ESDI, SCSI, ST506, or IDE." -echo -n "Drive type? [${type:-IDE}] " -read resp junk -type=${resp:-${type:-IDE}} -case "$type" in -e*|E*|st*|ST*) - echo -n "Does it support AUTOMATIC sector remapping? [y] " - read remap junk - case "$remap" in - n*|N*) - sect_fwd="sf:" - ;; - esac - case "$type" in - e*|E*) - DEFSECT=36 - ;; - esac - ;; -i*|I*) - type=ST506 - ;; -sc*|SC*) - drivename=sd0 - drivetype=sd - type=SCSI - DEFSECT=32 - DEFHEAD=64 - ;; -*) - echo "Unknown type. Assuming ST506 with automatic sectoring..." - type=ST506 - ;; -esac -echo -n "Install onto which drive [$drivename] " -read resp junk -drivename=${resp:-${drivename}} -echo -echo "Disk $drivename is of device type $drivetype." -if [ ! "$partition" ]; then - echo - echo "Please wait. Examining device /dev/r${drivename}d..." - get_fdisk_data - if [ $? -gt 1 ]; then - echo "Hm - we can't seem to read that drive." - echo - echo -n "Are you sure that $type is the correct type? [n] " - read resp - case "$resp" in - y*|Y*) - echo - echo "Well, since we can't even open it, there isn't much" - echo "hope for writing a label on it. But you're free" - echo "to give it a try. You need to specify the geometry." - ;; - *) - echo - echo "Okay. Let's start again from the top." - continue - ;; - esac - fi -fi -echo -echo "Now we want to build a data base entry in /etc/disktab describing" -echo "the geometry of the /dev/$drivename disk. The name of the entry" -echo "should be descriptive of the disk's type and model. For example," -echo "a Maxtor IDE, model 7080 disk might be named \`maxtor7080'." -echo -n "Disk label name (one word, please)? [${name:-mfr_model}] " -read resp junk -name=${resp:-${name:-mfr_model}} -echo -echo "${OPSYSTEM} should use the same hard disk geometry as used by other" -echo "operating systems on the hard disk." -echo -n "Number of bytes per disk sector? [${bytes_per_sect:-512}] " -read resp junk -bytes_per_sect=${resp:-${bytes_per_sect:-512}} -echo -echo -n "Total number of disk cylinders? [${cyls_per_disk:-${DEFCYLN}}] " -read resp junk -cyls_per_disk=${resp:-${cyls_per_disk:-${DEFCYLN}}} -echo -echo -n "Number of disk heads (i.e., tracks/cylinder)? [${tracks_per_cyl:-${DEFHEAD}}] " -read resp junk -tracks_per_cyl=${resp:-${tracks_per_cyl:-${DEFHEAD}}} -echo -echo -n "Number of disk sectors (i.e., sectors/track)? [${sects_per_track:-${DEFSECT}}] " -read resp junk -sects_per_track=${resp:-${sects_per_track:-${DEFSECT}}} -cylindersize=`expr $sects_per_track \* $tracks_per_cyl` -disksize=`expr $cylindersize \* $cyls_per_disk` -mb_sect=`expr 1024 \* 1024 / $bytes_per_sect` -mb_per_disk=`expr $disksize / $mb_sect` -opsys_cyls_min=`expr $DISKMIN \* $mb_sect / $cylindersize` -analyze_fdisk_data -if [ $? -eq 0 ]; then - partition=`expr $cyls_per_opsys \* $cylindersize` - part_offset=`expr $opsys_off \* $cylindersize` -fi -echo -echo "Disk has a total of $mb_per_disk Mb." -echo "The size of the ${OPSYSTEM} portion of the disk must be at least" -echo "${opsys_cyls_min} cylinders, and should not exceed $(expr $cyls_per_disk - 1) cylinders." -echo "The offset of ${OPSYSTEM} from the beginning of the disk should be at" -echo "least 1 cylinder." -echo -echo "For efficiency, partitions begin and end on cylinder boundaries." -echo "If you know the size NN in Megabytes (Mb) of a partition you want, then" -echo "use the following formula to determine the number NC of cylinders to use:" -echo " NC = integer { ( NN * $mb_sect ) / $cylindersize }" -while :; do - echo -n "Total size of the ${OPSYSTEM} portion of the disk (in cylinders)? [${cyls_per_opsys:-`expr ${cyls_per_disk} - 1`}] " - read resp junk - cyls_per_opsys=${resp:-${cyls_per_opsys:-`expr ${cyls_per_disk} - 1`}} - partition=`expr $cyls_per_opsys \* $cylindersize` - if [ $cyls_per_opsys -lt $cyls_per_disk -a ! "$force_offset" ]; then - echo - echo -n "Offset of ${OPSYSTEM} from beginning of disk (in cylinders)? [${opsys_off:-1}] " - read resp junk - opsys_off=${resp:-${opsys_off:-1}} - else - echo - echo " WARNING: Existing partitions will be lost. In addition," - echo " installing at cylinder 0 may cause problems for some disk" - echo " controllers. If the filesystem is corrupted or install" - echo " fails, install at cylinder 1." - RUN_FDISK="" - cyls_per_opsys=$cyls_per_disk - partition=$disksize - opsys_off=0 - fi - part_offset=`expr $opsys_off \* $cylindersize` - opsys_extent=`expr $opsys_off + $cyls_per_opsys` - if [ ${opsys_extent} -gt ${cyls_per_disk} ]; then - echo - echo "${OPSYSTEM} Size + Offset cannot exceed ${cyls_per_disk} cylinders." - elif [ ${cyls_per_opsys} -lt ${opsys_cyls_min} ]; then - echo - echo "${OPSYSTEM} requires at least ${opsys_cyls_min} cylinders to install." - else break - fi -done -badspacesec=0 -if [ "$sect_fwd" = "sf:" ]; then - badspacecyl=`expr $sects_per_track + 126` - badspacecyl=`expr $badspacecyl + $cylindersize - 1` - badspacecyl=`expr $badspacecyl / $cylindersize` - badspacesec=`expr $badspacecyl \* $cylindersize` - echo - echo -n "Using $badspacesec sectors ($badspacecyl cylinders) for the " - echo "bad144 bad block table" -fi -whats_left=`expr $partition - $badspacesec` -cyl_left=`expr $whats_left / $cylindersize` -mb_left=`expr $whats_left / $mb_sect` -swap_cyls_min=`expr $SWAPMIN \* $mb_sect / $cylindersize` -root_cyls_max=`expr ${cyl_left} - ${swap_cyls_min}` -root_cyls_min=`expr $ROOTMIN \* $mb_sect / $cylindersize` -echo -echo "There are $mb_left Mb ($cyl_left cylinders) to allocate." -echo -echo "The $OPSYSTEM portion of the disk must itself be divided into at least" -echo "two partitions: one for the root filesystem and one for swap. It is a" -echo "good idea to have at least a third (large) $OPSYSTEM partition for the /usr" -echo "filesystem." -echo -echo "The root partition cannot exceed ${root_cyls_max} cylinders. It is usually" -echo "no larger than about 15 Mb ($(expr 15 \* $mb_sect / $cylindersize) cylinders), and sometimes" -echo "as small as $ROOTMIN Mb ($root_cyls_min cylinders)." -if [ ! "$cyls_per_root" ]; then - # set default root partition to 15MB - cyls_per_root=`expr \( 15 \* $mb_sect \) / $cylindersize` - usr_cyls_max=`expr ${root_cyls_max} - ${cyls_per_root}` - mb_usr=`expr ${usr_cyls_max} \* $cylindersize / $mb_sect` - [ $cyls_per_root -gt $root_cyls_max -o $mb_usr -lt $USRMIN ] && - cyls_per_root=$root_cyls_max -fi -while :; do - echo -n "Root partition size (in cylinders)? [${cyls_per_root}] " - read resp junk - cyls_per_root=${resp:-${cyls_per_root}} - root=`expr $cyls_per_root \* $cylindersize` - if [ ${cyls_per_root} -gt ${root_cyls_max} ]; then - echo - echo "The root partition size cannot exceed $root_cyls_max cylinders." - elif [ ${cyls_per_root} -lt ${root_cyls_min} ]; then - echo - echo "The root partition size must be at least $root_cyls_min cylinders." - else - part_used=`expr $root + $badspacesec` - break - fi -done -root_offset=$part_offset -whats_left=`expr $partition - $part_used` -cyl_left=`expr $whats_left / $cylindersize` -mb_left=`expr $whats_left / $mb_sect` -blocking_factor=2 -fragsize=`expr $bytes_per_sect \* $blocking_factor` -blocksize=`expr $bytes_per_sect \* $blocking_factor \* 8` -memsize=`dmesg | grep "^real mem" | awk '{ print $4 }'` -mb_ram=`expr \( $memsize / 1024 / 1024 \) + 1` -swap_mb=`expr \( 21 \* $mb_ram \) / 10` -echo -echo "$mb_left Mb ($cyl_left cylinders) remaining in ${OPSYSTEM} portion of disk." -echo -echo "Minimum swap space is $SWAPMIN Mb (${swap_cyls_min} cylinders.)" -echo "For running X, with your RAM size of $mb_ram Mb," -echo "$swap_mb Mb (`expr \( \( 21 \* $mb_ram \* $mb_sect \) / 10 / ${cylindersize} \)` cylinders) of swap is recommended." -if [ ! "$swap_cyl" ]; then - swap_cyl=`expr \( 21 \* $mb_ram \* $mb_sect \) / 10` - swap_cyl=`expr $swap_cyl / ${cylindersize}` - - # but not swap size more than 10% of disk size... - swap_quot=`expr $mb_left / $mb_ram` - if [ $swap_quot -lt 10 ]; then - swap_cyl=$swap_cyls_min - fi -fi -while :; do - echo -n "Swap partition size (in cylinders)? [${swap_cyl}] " - read resp junk - swap_cyl=${resp:-${swap_cyl}} - swap=`expr $swap_cyl \* $cylindersize` - if [ ${swap_cyl} -gt ${cyl_left} ]; then - echo - echo "Swap size cannot exceed $cyl_left cylinders." - elif [ ${swap_cyl} -lt ${swap_cyls_min} ]; then - echo - echo "Swap size must be at least ${swap_cyls_min} cylinders." - else - break - fi -done -swap_offset=`expr $root_offset + $root` -part_used=`expr $part_used + $swap` -echo "" >/etc/disktab -echo "$name|${OPSYSTEM} installation generated:\\" >>/etc/disktab -echo " :dt=${type}:ty=winchester:\\" >>/etc/disktab -echo -n " :nc#${cyls_per_disk}:ns#${sects_per_track}" >>/etc/disktab -echo ":nt#${tracks_per_cyl}:\\" >>/etc/disktab -echo " :se#${bytes_per_sect}:${sect_fwd}\\" >>/etc/disktab -echo -n " :pa#${root}:oa#${root_offset}" >>/etc/disktab -echo ":ta=4.2BSD:ba#${blocksize}:fa#${fragsize}:\\" >>/etc/disktab -echo " :pb#${swap}:ob#${swap_offset}:tb=swap:\\" >>/etc/disktab -echo " :pc#${partition}:oc#${part_offset}:\\" >>/etc/disktab -ename="";fname="";gname="";hname="" -if [ $part_used -lt $partition ]; then - echo - echo "Now we enter information about any other partitions and filesystems" - echo "to be created in the ${OPSYSTEM} portion of the disk. This process" - echo "is complete when we've filled up all remaining space in the ${OPSYSTEM}" - echo "portion of the disk." -fi -while [ $part_used -lt $partition ]; do - part_size=0 - whats_left=`expr $partition - $part_used` - cyl_left=`expr $whats_left / $cylindersize` - mb_left=`expr $whats_left / $mb_sect` - echo - echo "$mb_left Mb ($cyl_left cylinders) remaining in ${OPSYSTEM} portion of disk." - echo - while :; do - echo -n "Next partition size (in cylinders)? [${cyl_left}] " - read resp junk - part_size=${resp:-${cyl_left}} - part_size=`expr $part_size \* $cylindersize` - total=`expr $part_used + $part_size` - if [ $total -gt $partition ]; then - echo - echo "Partition size cannot exceed ${cyl_left} cylinders." - else - part_used=$total - part_name="" - while [ "$part_name" = "" ]; do - echo - echo -n "On which directory should this filesystem be mounted? [usr] " - read resp junk - part_name=${resp:-usr} - part_name=`expr X"$part_name" : 'X/*\(.*\)'` - done - break - fi - done - if [ ! "$ename" ]; then - ename=$part_name - offset=`expr $part_offset + $root + $swap` - echo -n " :pe#${part_size}:oe#${offset}" >>/etc/disktab - echo ":te=4.2BSD:be#${blocksize}:fe#${fragsize}:\\" >>/etc/disktab - offset=`expr $offset + $part_size` - elif [ ! "$fname" ]; then - fname=$part_name - echo -n " :pf#${part_size}:of#${offset}" >>/etc/disktab - echo ":tf=4.2BSD:bf#${blocksize}:ff#${fragsize}:\\" >>/etc/disktab - offset=`expr $offset + $part_size` - elif [ ! "$gname" ]; then - gname=$part_name - echo -n " :pg#${part_size}:og#${offset}" >>/etc/disktab - echo ":tg=4.2BSD:bg#${blocksize}:fg#${fragsize}:\\" >>/etc/disktab - offset=`expr $offset + $part_size` - elif [ ! "$hname" ]; then - hname=$part_name - echo -n " :ph#${part_size}:oh#${offset}" >>/etc/disktab - echo ":th=4.2BSD:bh#${blocksize}:fh#${fragsize}:\\" >>/etc/disktab - part_used=partition - fi -done -if [ "$have_dos_part" -a "$have_dos_part" != "$opsys_part" -a \ - "$RUN_FDISK" != "overwrite" -a ! "$hname" ]; then - echo - echo "There appears to be a MS-DOS filesystem on the hard disk." - echo -n "Make this be accessible from ${OPSYSTEM}? [y] " - read resp junk - case "${resp:-y}" in - y*|Y*) - part_name="" - while [ "$part_name" = "" ]; do - echo - echo -n "On which directory should this filesystem be mounted? [dos] " - read resp junk - part_name=${resp:-dos} - part_name=`expr X"$part_name" : 'X/*\(.*\)'` - done - hname=$part_name - eval offset=\$start${have_dos_part} - eval part_size=\$size${have_dos_part} - echo -n " :ph#${part_size}:oh#${offset}" >>/etc/disktab - echo ":th=MSDOS:\\" >>/etc/disktab - part_used=partition - ;; - *) - have_dos_part="" - ;; - esac -else - have_dos_part="" -fi -echo " :pd#${disksize}:od#0:" >>/etc/disktab -sync - -# cat /etc/disktab -OIFS=$IFS -IFS=' -' -while read data; do - echo $data -done < /etc/disktab -IFS=$OIFS - -echo -echo -n "Verbose installation? [n] " -read resp - -case $resp in -y*) - cpioverbose=-v - ;; -*) - cpioverbose= - ;; -esac - - -echo -echo "OK! THIS IS THE LAST CHANCE!!! Data on the hard disk wil be lost." -echo -n "Are you sure you want to install on the hard drive? (yes/no) " -resp="" -while [ ! "$resp" ]; do - read resp junk - case "$resp" in - Yes|yes|YES) - verified_install=1 - echo - echo "OK! Here we go..." - ;; - No|no|NO) - echo - echo -n "Would you like to change the configuration? [y] " - read resp junk - resp=${resp:-y} - case "$resp" in - y*|Y*) - ;; - *) - echo - echo "OK, then. Enter 'halt' to halt the machine." - echo "Once the machine has halted, remove the floppy," - echo "and press any key to reboot." - exit - ;; - esac - ;; - *) - echo "Please spell out either of \`yes' or \`no'..." - echo -n "Install on the hard disk? (yes/no) " - resp= - ;; - esac -done -done # End of Big Loop - -put_fdisk_data - -echo -echo -n "Labelling disk..." -echo y | -disklabel -w -r ${drivename} $name \ - ${CDROM_FILESYSTEM}/usr/mdec/${drivetype}boot \ - ${CDROM_FILESYSTEM}/usr/mdec/boot${drivetype} -# XXX >/dev/null 2>&1 -echo " done." - -if [ "$sect_fwd" = "sf:" ]; then - echo -n "Initializing bad144 badblock table..." - bad144 $drivename 0 - echo " done." - echo "Updating badblock table..." - # `2>&1 >/dev/null' filters stdout and leaves only stderr... - badlist=$(bad144 -s $drivename 2>&1 >/dev/null | - while read data; do - bad_seek=$(expr "$data" : '[^(]*(seek)[^0-9]*\([0-9]*\)') - bad_read=$(expr "$data" : '[^(]*(read)[^0-9]*\([0-9]*\)') - [ "$bad_seek" -o "$bad_read" ] && echo -n "$bad_seek $bad_read " - done) - [ "$badlist" ] && bad144 -a -c $drivename $badlist - echo " done." -fi - -echo "Initializing root filesystem, and mounting..." -newfs ${rotdelay} /dev/r${drivename}a $name -mount -v /dev/${drivename}a /mnt -if [ "$ename" != "" ]; then - echo - echo "Initializing $ename filesystem, and mounting..." - newfs ${rotdelay} /dev/r${drivename}e $name - mkdir -p /mnt/$ename - mount -v /dev/${drivename}e /mnt/$ename -fi -if [ "$fname" != "" ]; then - echo - echo "Initializing $fname filesystem, and mounting..." - newfs ${rotdelay} /dev/r${drivename}f $name - mkdir -p /mnt/$fname - mount -v /dev/${drivename}f /mnt/$fname -fi -if [ "$gname" != "" ]; then - echo - echo "Initializing $gname filesystem, and mounting..." - newfs ${rotdelay} /dev/r${drivename}g $name - mkdir -p /mnt/$gname - mount -v /dev/${drivename}g /mnt/$gname -fi -if [ "$hname" != "" ]; then - echo - if [ ! "$have_dos_part" ]; then - echo "Initializing $hname filesystem, and mounting..." - newfs ${rotdelay} /dev/r${drivename}h $name - else - echo "Initializing $hname filesystem..." - fi - mkdir -p /mnt/$hname - [ ! "$have_dos_part" ] && - mount -v /dev/${drivename}h /mnt/$hname -fi - -echo -echo "Please wait. Copying to disk..." -cd /mnt -cat $CDROM_BINDIST | \ - gunzip | tar --extract --file - --preserve-permissions ${cpioverbose} - -echo "/dev/${drivename}a / ufs rw 1 1" >etc/fstab -if [ "$ename" != "" ]; then - echo "/dev/${drivename}e /$ename ufs rw 1 2" >>etc/fstab -fi -if [ "$fname" != "" ]; then - echo "/dev/${drivename}f /$fname ufs rw 1 3" >>etc/fstab -fi -if [ "$gname" != "" ]; then - echo "/dev/${drivename}g /$gname ufs rw 1 4" >>etc/fstab -fi -if [ "$hname" != "" ]; then - if [ ! "$have_dos_part" ]; then - echo "/dev/${drivename}h /$hname ufs rw 1 5" >>etc/fstab - else - echo "/dev/${drivename}h /$hname pcfs rw 0 0" >>etc/fstab - fi -fi - -cat /etc/disktab >etc/disktab.install -cp -p /kernel /mnt - -echo -echo "Building /dev files..." -chroot /mnt sh <<! -cd /dev -sh MAKEDEV all -cd / -! -echo " done." - -echo "You will now be prompted for information about this" -echo "machine. If you hit return, the default answer (in" -echo "brackets) will be used." - -echo -echo -n "What is this machine's hostname? [unknown.host.domain] " -read hname - -if [ "$hname" = "" ]; then - hname=unknown.host.domain -fi -echo $hname > /mnt/etc/myname -proto_domain=`echo $hname | sed -e 's/[^.]*\.//'` - -echo -echo "What domain is this machine in (this is NOT its YP" -echo -n "domain name)? [$proto_domain] " -read dname - -if [ "$dname" = "" ]; then - dname=$proto_domain -fi - -echo -echo -n "Does this machine have an ethernet interface? [y] " -read resp -case "$resp" in -n*) - ;; -*) - intf= - while [ "$intf" = "" ]; do - echo -n "What is the primary interface name (i.e. ed0, etc.)? " - read intf - done - echo -n "What is the hostname for this interface? [$hname] " - read ifname - if [ "$ifname" = "" ]; then - ifname=$hname - fi - ifaddr= - while [ "$ifaddr" = "" ]; do - echo -n "What is the IP address associated with this interface? " - read ifaddr - done - echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \ - >> /mnt/etc/hosts - - echo -n "Does this network have a special netmask? [n] " - read resp - case "$resp" in - y*) - echo -n "What is the netmask? [0xffffff00] " - read resp - if [ "$resp" = "" ]; then - ifnetmask="netmask 0xffffff00 - else - ifnetmask="netmask $resp" - fi - ;; - *) - ifnetmask= - ;; - esac - - echo -n "Does this network need additional flags? [n] " - read resp - case "$resp" in - y*) - echo -n "What flags? [llc0] " - read ifflags - if [ "$ifflags" = "" ]; then - ifflags=llc0 - fi - ;; - *) - ifflags= - ;; - esac - - echo "inet $ifname $ifnetmask $ifflags" > /mnt/etc/hostname.$intf - - echo "" - echo "WARNING: you will need to finish the configuration of your" - echo "network by editing /etc/netstart, read the comments in that" - echo "file for more instructions." - ;; -esac - -echo -echo "Your system should be set up now for operation." - -sync - -echo -echo "The next step: reboot from the hard disk and enjoy the system!" -echo -echo "To do this, enter \`halt' now to halt the machine. After it" -echo "announces that it has halted, remove the floppy from the drive" -echo "and press any key to boot." -echo -echo "Okay, that's all for now. I'm waiting for you to enter \`halt'..." diff --git a/etc/etc.i386/cdinst1.profile b/etc/etc.i386/cdinst1.profile deleted file mode 100644 index ce4d0ca..0000000 --- a/etc/etc.i386/cdinst1.profile +++ /dev/null @@ -1,71 +0,0 @@ -#!bin/sh -# cdinst1.profile floppy disk /.profile script -PATH=/sbin:/bin:/usr/bin:/usr/sbin:. -export PATH -HOME=/root -export HOME -TERM=pc3 -export TERM -TERMCAP="\ -pc3|ibmpc3:li#25:co#80:am:bs:bw:eo:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:\ -do=\E[B:ho=\E[;H:nd=\E[C:up=\E[A:so=\E[7m:se=\E[0m:us=\E[4m:ue=\E[0m:\ -:ac=l\332q\304k\277x\263j\331m\300w\302u\264v\301t\303n\305:\ -:kb=^h:kh=\E[Y:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:" -export TERMCAP - -# To bad uname is not availiable here! -# -OPSYSTEM=FreeBSD -export OPSYSTEM -CDROM_TYPE=0 -export CDROM_TYPE -CDROM_MOUNT=/cdrom -export CDROM_MOUNT -CDROM_FILESYSTEM=${CDROM_MOUNT}/filesys -export CDROM_FILESYSTEM -CDROM_BINDIST=${CDROM_MOUNT}/tarballs/bindist/bin_tgz.* -export CDROM_BINDIST - -echo -echo "Welcome to ${OPSYSTEM}." -echo - -# Lets find the cd rom drive and get it mounted so we have access to -# all of the binaries, this is really ugly, but it uses the minimum -# amount of support code and should always find us a cdrom drive if -# there is one ready to use! - -while [ $CDROM_TYPE -eq 0 ]; do # Begin of cd drive loop - - mount -t isofs /dev/cd0a ${CDROM_MOUNT} >/dev/null 2>&1 - if [ $? -eq 0 ]; then - CDROM_TYPE=1 - echo "Found and mounted SCSI CD ROM drive /dev/cd0a" - else - mount -t isofs /dev/mcd0a ${CDROM_MOUNT} >/dev/null 2>&1 - if [ $? -eq 0 ]; then - CDROM_TYPE=2 - echo "Found and mounted Mitsumi CD ROM drive /dev/mcd0a" - else - mount -t isofs /dev/mcd1a ${CDROM_MOUNT} >/dev/null 2>&1 - if [ $? -eq 0 ]; then - CDROM_TYPE=2 - echo "Found and mounted Mitsumi CD ROM drive /dev/mcd1a" - else - CDROM_TYPE=0 - echo "No cdrom drive found, are you sure the cd is in the" - echo "drive and the drive is ready? Press return to make" - echo -n "another attempt at finding the cdrom drive." - read resp - fi - fi - fi -done # End of cd drive loop - -# Okay, we now have a cdrom drive and know what device to call it by, and -# it should be mounted, so lets reset our path so we can use all the binaries -# from the cd rom drive and export the set up variables for the install script -# -PATH=/sbin:/bin:/usr/bin:/usr/sbin:${CDROM_FILESYSTEM}/sbin:${CDROM_FILESYSTEM}/bin:${CDROM_FILESYSTEM}/usr/bin:${CDROM_FILESYSTEM}/usr/sbin:. - -/install diff --git a/etc/etc.i386/cpio.install b/etc/etc.i386/cpio.install deleted file mode 100755 index dda4457..0000000 --- a/etc/etc.i386/cpio.install +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# -# $Id$ -# - -echo -echo -n "Copying to disk... " -cd / -gunzip < mnt/inst2.cpio.gz | cpio -idmu -cd /mnt -echo -n "Copying more to disk... " -ls install magic | cpio -pdmu / -echo -n "Copying even more to disk... " -ls rc | cpio -pdmu /etc -echo -n "Building /dev files... " -cd /dev -sh MAKEDEV all -cd / -echo "done." -sync diff --git a/etc/etc.i386/cpio.magic b/etc/etc.i386/cpio.magic deleted file mode 100644 index 0e4ed0c..0000000 --- a/etc/etc.i386/cpio.magic +++ /dev/null @@ -1,388 +0,0 @@ -#!bin/sh -# $Id: cpio.magic,v 1.12 1994/06/28 07:20:30 jkh Exp $ -# -set_tmp_dir() -{ - def_tmp_dir=`pwd` - [ "$def_tmp_dir" = "/" ] && def_tmp_dir=/usr/distrib - echo -n "Where do we ${1:-put} the distrbution files? [${def_tmp_dir}] " - read tmp_dir - [ ! "$tmp_dir" ] && tmp_dir=$def_tmp_dir - if [ ! -d "$tmp_dir" ]; then - /bin/rm -rf $tmp_dir - mkdir -p $tmp_dir - fi - echo -} -tmp_dir() -{ - if [ "$tmp_dir" = "" ]; then - set_tmp_dir $1 - fi - cd $tmp_dir -} -load_fd() -{ - tmp_dir - drive= - altdrive= - subdir= - while [ -z "$drive" ]; do - echo -n "Read from which drive (or ? for help)? [c] " - read answer junk - case "${answer:-c}" in - a*b|A*B) - drive=A; altdrive=B - ;; - b*a|B*A) - drive=B; altdrive=A - ;; - a*|A*) - drive=A; altdrive=A - ;; - b*|B*) - drive=B; altdrive=B - ;; - c*|C*) - while read data; do - msdos_device=`expr X"$data" : 'X[ ]*\([^ ]*\)[^M]*pcfs'` - msdos_dir=`expr X"$data" : 'X[ ]*[^ ]*[ ]*\([^ ]*\)'` - [ "${msdos_device}" ] && break - done </etc/fstab - if [ ! "$msdos_device" ]; then - echo - echo "Cannot find MS-DOS in filesystem table" - continue - fi - drive=C; altdrive=C - while :; do - echo - echo -n "Read from which MS-DOS drive C: directory? [/] " - read resp junk - newdir=$(echo "${resp:-/}" | \ - awk '{ sub(/^[Cc]*:*/, ""); gsub(/\\/, "/"); gsub(/^\/*/, ""); gsub(/\/*$/, ""); print $0 }') - if [ -d ${msdos_dir}/${newdir} ]; then - subdir=$newdir - break - else - echo "C:/${newdir}: No such directory" - fi - done - ;; - q*|Q*) - drive=q - ;; - \?*) - echo - echo "Enter: To:" - echo "------ ---" - echo " a Read from floppy drive A:" - echo " b Read from floppy drive B:" - echo " c Read from MS-DOS hard drive C:" - echo " ab Alternate between A: and B:, starting with A:" - echo " ba Alternate between A: and B:, starting with B:" - echo " q Quit" - echo - ;; - esac - done - verbose=-v - interactive=-i - if [ "$drive" = "C" ]; then - dir=${msdos_dir} - elif [ "$drive" != "q" ]; then - dir=/tmp/floppy - [ -d $dir ] && umount $dir >/dev/null 2>&1 - [ -f $dir ] && rm -f $dir - mkdir -p $dir - fi - while [ "$drive" != "q" ] - do - device=/dev/fd0 - [ "$drive" = "B" ] && device=/dev/fd1 - [ "$drive" = "C" ] && device=${msdos_device} - echo; - if [ "$drive" != "C" ]; then - echo "Insert floppy in drive $drive:, then press RETURN to copy files," - echo -n "or enter option (? for help): " - else - echo -n "Press RETURN to copy files, or enter option (? for help): " - fi - read answer junk - case "${answer:-g}" in - c*|C*) - if [ "$drive" != "C" ]; then - echo "Cannot change directory: not reading from MS-DOS drive C:" - else - echo - echo -n "Read from which MS-DOS drive C: directory? [/${subdir}] " - read resp junk - [ ! "$resp" ] && resp="/$subdir" - absolute=`expr X"$resp" : 'X[Cc]*:*\([/\]\)'` - subsub=$(echo "${resp}" | \ - awk '{ sub(/^[Cc]*:*/, ""); gsub(/\\/, "/"); gsub(/^\/*/, ""); gsub(/\/*$/, ""); print $0 }') - if [ "$absolute" -o ! "$subdir" ]; then - newsub=$subsub - else - newsub=$subdir/$subsub - fi - if [ -d ${dir}/${newsub} ]; then - subdir=$newsub - else - echo "C:/${newsub}: No such directory" - fi - fi - ;; - g*|G*) - sync - if [ "$drive" = "C" ]; then - [ "$verbose" ] && - { echo; echo "Copying files from MS-DOS C:/${subdir}"; } - cp ${msdos_dir}/${subdir}/* . - sync - elif mount -t pcfs $verbose $device $dir; then - [ "$verbose" ] && - { echo; echo "Copying files to disk..."; } - cp $interactive $dir/* . - sync - umount $dir - tmp=$drive; drive=$altdrive; altdrive=$tmp - fi - ;; - i*|I*) - tmp=$interactive; interactive=; [ -z "$tmp" ] && interactive=-i - tmp=on; [ -z "$interactive" ] && tmp=off - echo "interactive mode is $tmp" - ;; - l*|L*) - sync - [ "$verbose" ] && echo "Directory of ${drive}:/${subdir}" - if [ "$drive" = "C" ]; then - ls -l $dir/${subdir} - else - umount $dir >/dev/null 2>&1 - if mount -t pcfs $device $dir; then - ls -l $dir/${subdir} - umount $dir - fi - fi - ;; - o*|O*) - tmp=$drive; drive=$altdrive; altdrive=$tmp - ;; - q*|Q*) - drive=q - ;; - s*|S*) - echo; echo -n "tmp_dir is set to $tmp_dir" - [ "$tmp_dir" != "`pwd`" ] && echo -n " (physically `pwd`)" - echo; echo "Free space in tmp_dir:" - df -k . - echo -n "Reading from drive $drive:" - [ "$drive" != "$altdrive" ] && echo -n " and drive $altdrive:" - echo - tmp=on; [ -z "$verbose" ] && tmp=off - echo "Verbose mode is $tmp" - tmp=on; [ -z "$interactive" ] && tmp=off - echo "Interactive mode is $tmp" - ;; - v*|V*) - tmp=$verbose; verbose=; [ -z "$tmp" ] && verbose=-v - tmp=on; [ -z "$verbose" ] && tmp=off - echo "verbose mode is $tmp" - ;; - \?) - echo - echo "Enter: To:" - echo "----- ---" - echo "(just RETURN) Copy files from ${drive}:/${subdir} to $tmp_dir" - echo " c Change directory of MS-DOS drive C:" - echo " i Toggle interactive mode (cp -i)" - echo " l List directory of current drive" - echo " o Read from alternate floppy drive" - echo " q Quit" - echo " s Show status" - echo " v Toggle verbose mode" - echo - ;; - esac - done - echo "Working directory: `pwd`" - unset verbose answer drive altdrive device dir subdir tmp interactive -} -load_dos() -{ - load_fd -} -load_qic_tape() -{ - tmp_dir - echo -n "Insert tape into QIC tape drive and hit return to continue: " - read foo - tar --unlink -xvf /dev/rwt0 -} -load_scsi_tape() -{ - tmp_dir - echo -n "Insert tape into SCSI tape drive and hit return to continue: " - read foo - tar --unlink -xvf /dev/nrst0 -} -extract() -{ - [ X"$1" = X"" ] && { echo "usage: extract dist-prefix"; return; } - tmp_dir find - echo -n "Would you like to be verbose about this? [n] " - read verbose - case $verbose in - y*|Y*) - tarverbose=--verbose - ;; - *) - tarverbose= - ;; - esac - #XXX ugly hacks to get around busy text files/symlink problems. - if [ X"$1" = X"bin" ]; then - rm -f /bin/sh.$$ /sbin/init.$$ /etc/termcap.$$ - mv /bin/sh /bin/sh.$$ - mv /sbin/init /sbin/init.$$ - mv /etc/termcap /etc/termcap.$$ - fi - if [ X"$1" = X"des" ]; then - rm -f /sbin/init.$$ - mv /sbin/init /sbin/init.$$ - fi - for i in $*; do - cat "$i"* | - gunzip | - (cd / ; tar --unlink --extract --file - --preserve-permissions ${tarverbose} ) - done - sync - [ X"$1" = X"bin" ] && echo "Run \`configure' to complete installation." - echo "(wd is now: `pwd`)" -} -configure() -{ - echo "You will now be prompted for information about this" - echo "machine. If you hit return, the default answer (in" - echo "brackets) will be used." - - echo - echo -n "What is this machine's hostname? [unknown.host.domain] " - read hname - - if [ "$hname" = "" ]; then - hname=unknown.host.domain - fi - echo $hname > /etc/myname - proto_domain=`echo $hname | sed -e 's/[^.]*\.//'` - - echo - echo "What domain is this machine in (this is NOT its YP" - echo -n "domain name)? [$proto_domain] " - read dname - - if [ "$dname" = "" ]; then - dname=$proto_domain - fi - - echo - echo -n "Does this machine have an ethernet interface? [y] " - read resp - case "$resp" in - n*) - ;; - *) - intf= - while [ "$intf" = "" ]; do - echo -n "What is the primary interface name (i.e. ed0, etc.)? " - read intf - done - echo -n "What is the hostname for this interface? [$hname] " - read ifname - if [ "$ifname" = "" ]; then - ifname=$hname - fi - ifaddr= - while [ "$ifaddr" = "" ]; do - echo -n "What is the IP address associated with this interface? " - read ifaddr - done - echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \ - >> /etc/hosts - - echo -n "Does this interface have a special netmask? [n] " - read resp - case "$resp" in - y*) - echo -n "What is the netmask? [0xffffff00] " - read resp - if [ "$resp" = "" ]; then - ifnetmask="netmask 0xffffff00" - else - ifnetmask="netmask $resp" - fi - ;; - *) - ifnetmask= - ;; - esac - - echo -n "Does this interface need additional flags? [n] " - read resp - case "$resp" in - y*) - echo -n "What flags? [llc0] " - read ifflags - if [ "$ifflags" = "" ]; then - ifflags=llc0 - fi - ;; - *) - ifflags= - ;; - esac - - echo "inet $ifname $ifnetmask $ifflags" > /etc/hostname.$intf - - echo "" - echo "WARNING: if you have any more ethernet interfaces, you" - echo "will have to configure them by hand. Read the comments" - echo "in /etc/netstart to learn how to do this" - ;; - esac - - echo - echo "Setting up access to a nameserver:" - echo -n "Do you want to configure /etc/resolv.conf? [n]: " - read resp - case "$resp" in - y*) - echo "OK: Configuring your /etc/resolv.conf" - echo "If you need more information about resolv.conf" - echo "type \"man 5 resolver\" once you have COMPLETED" - echo "installation of the binary distribution." - echo "" - - nameserver= - while [ "$nameserver" = "" ]; do - echo -n "Enter the IP number of your nameserver: " - read nameserver - done - - echo "nameserver $nameserver" > /etc/resolv.conf - - echo " " - ;; - *) - ;; - esac - - sync - - echo - echo "OK. You should be completely set up now." - echo "You should now reboot your machine by issuing the 'reboot' command" - echo "after removing anything that happens to be in your floppy drive." -} diff --git a/etc/etc.i386/cpio.rc b/etc/etc.i386/cpio.rc deleted file mode 100644 index c45e0e5..0000000 --- a/etc/etc.i386/cpio.rc +++ /dev/null @@ -1,102 +0,0 @@ -# $Id: cpio.rc,v 1.4 1994/06/04 12:00:51 jkh Exp $ -# - -stty status '^T' -trap : 2 -trap : 3 -PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/distbin; export PATH -if [ -e /fastboot ] -then - echo Fast boot ... skipping disk checks -else - echo Automatic reboot in progress... - fsck -p - case $? in - 0) - ;; - 2) - exit 1 - ;; - 4) - echo; echo README README README README README README README - echo - echo "NOTE: The above errors are expected if this is the" - echo "first time you have booted from the hard disk after" - echo "completing the floppy install"; echo - echo "Automatic file system check changed the root file system" - echo "The system must halt for these corrections to take effect" - echo - reboot - echo "reboot failed... help!" - exit 1 - ;; - 8) - echo "Automatic file system check failed... help!" - exit 1 - ;; - 12) - echo "Reboot interrupted" - exit 1 - ;; - 130) - exit 1 - ;; - *) - echo "Unknown error in reboot" - exit 1 - ;; - esac -fi - -trap 2 -trap "echo 'Reboot interrupted'; exit 1" 3 -umount -a >/dev/null 2>&1 -mount -a -t nonfs -rm -f /fastboot -(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; }) - -OPSYSTEM=FreeBSD -# Sure wish we had uname at this point -RELEASE="2.0.0 (Development)" -NVTTYS="4" -echo "${OPSYSTEM} Base System Release ${RELEASE}" -echo "" -echo "Congratulations, you've got ${OPSYSTEM} on the hard disk!" -echo -echo "Your system has been configured with ${NVTTYS} virtual terminals," -echo "though one has been reserved for X (should you need it) and has no" -echo "login prompt on it. Once you've loaded the binary distribution and" -echo "have rebooted the system, you can access these virtual terminals by" -echo "pressing ALT-F<n>, where n is the function key number representing" -echo "the virtual terminal you want to use. For more information, read" -echo "the screen(4), kbdcontrol(1) and vidcontrol(1) man pages." -echo -echo "Press the return key for more installation instructions" -read junkit -echo -echo "To finish installation:" -echo "Pick a temporary directory by running set_tmp_dir. Make sure it's" -echo "in a place with lots of space, probably under /usr." -echo "Then, load the remaining distribution files into that temporary" -echo "directory by issuing one of the following commands:" -echo -echo " load_dos load_fd load_qic_tape load_scsi_tape" -echo -echo "or by fetching the files with ftp (see the installation notes for" -echo "information on how to do that)." -echo -echo "Once this is complete, extract the distribution files by issuing the" -echo "command 'extract <distribution>' where <distribution> is the base name" -echo "of the distribution files, e.g. 'base10'." -echo -echo "Once all of the filesets you wish to install have been extracted," -echo "enter the command 'configure' to finish setting up the system" -echo " " -echo "If you should wish to uninstall ${OPSYSTEM}, delete the partition by using the" -echo "DOS 5 FDISK program. If installed on the entire drive, use the FDISK/MBR" -echo "to remove the ${OPSYSTEM} bootstrap from the drive." -echo 'erase ^H, kill ^U, intr ^C' -stty newcrt erase ^H intr ^C kill ^U -umask 0 -echo ". /magic" >>/.profile -exit 1 diff --git a/etc/etc.i386/floppy.install_notes b/etc/etc.i386/floppy.install_notes deleted file mode 100644 index ad216f1..0000000 --- a/etc/etc.i386/floppy.install_notes +++ /dev/null @@ -1,143 +0,0 @@ - FLOPPY INSTALLATION NOTES - FreeBSD - Release 1.1 - -Welcome to FreeBSD! This document has been put together in an effort -to make initial installation of the system from floppy as easy as possible. - -1. To install FreeBSD you will need 3 (or 4 if you choose to add the optional - DOS floppy) floppies, as well as the bulk of the distribution on some - other medium (floppy, tape, CD, etc). If you've retrieved this release - from the net, you'll first have to make the floppies yourself using - the supplied images. - - Due to the differences in PC configurations, we've found it necessary - to provide multiple initial boot images that provide kernels for - different types of systems. - - If your disk controller is one of: - - MFM / RLL / IDE / ST506 - Adaptec 154x series - Adaptec 174x series - Buslogic 545S - - Then please use the disk image: kcopy_ah.flp - to construct your boot floppy. - - If your disk controller is one of: - - Bustek 742a - UltraStore 14F or 34F - - Then please use the disk image: kcopy_bt.flp - to construct your boot floppy. - - Next, make a second floppy from the disk image: filesyst.flp - You'll need this for the second stage of the boot process. - - Finally, make a third floppy from the disk image: cpio.flp - You'll need this for the last stage of the boot process. - - If you want to use any of the optional tools in the tools - subdirectory of the ftp distribution site, these should be - copied directly to a DOS formatted disk (using, either mcopy - or mount -t pcfs). This disk is referred to later as the - optional "dos" floppy. - - If installing more than one operating system on a disk, then - it is recommended that the dos floppy at least include the - os-bs boot manager. If downloading files via a modem and SLIP - is not available, then the dos floppy should include kermit. - You'll have the option of loading the programs that are on - the dos floppy in the last stage of the boot process. - -2. Boot the first floppy. When it asks you to insert the file system floppy, - insert the second floppy ``filesyst.flp.'' Follow the instructions - that floppy gives you. If partitions already exist on the hard disk, - then by default FreeBSD attempts to install itself at the end of these. - Before rebooting, note the type of disk it says to copy the kernel - to: ``sd0a'' or ``wd0a'' (``sd0a'' is for SCSI systems, ``wd0a'' is - for all others.) When the system halts, go on to the next step. - -3. Boot the first floppy again, but this time when it asks - you to insert the file system floppy, just press the return key. - Follow the instructions that the floppy gives you. When you see - the ``kc>'' prompt, type ``copy'' (without quotes). At the next prompt, - ``copy kernel to>'', type either ``sd0a'' or ``wd0a'' as given in - the previous step. When the system halts, go on to the next step. - -4. Making sure that there's no floppy in the drive, press return to boot - from the hard disk. After it has booted and is asking what drive the - cpio floppy is in, insert the third floppy ``cpio.flp'' into a - floppy drive and answer the question about what drive it is in. - Note that 0 is the same as DOS drive A:, and 1 is the same as DOS - drive B: - -5. After the cpio floppy has been copied to the disk, remove it from the - drive. If there are programs on the dos-floppy that you would like - installed, then insert this disk in a floppy drive, again specifying - the drive to read from. - -6. After the cpio (or optional dos) floppy has been copied to the disk, - enter `halt' at the command prompt. - -7. When the system asks you to press the return key to reboot, first - remove the floppy and then press the return key to boot from the hard - disk. - -8. At this point you will get 4 errors from the fsck on boot, these - are normal and are caused by files that were open when the - /dev entries were built - just ignore them. The system will - correct these errors and then halt, after which you should press - the return key again to reboot with a clean system. - -9. Congratulations, you've got the mini FreeBSD system on your disk! - -10. Follow the instructions about set_tmp_dir and extract that - will come on your screen after you've pressed the return key. - -11. Run the configure command to set up some of the /etc files by - typing ``configure''. You will have to edit /etc/netstart after - this if you have a networking interface. - -12. Reboot so that the system comes up multiuser by typing ``reboot''. - -13. You are now running FreeBSD! Congratulations! You may now continue - with installing the source distribution, or stop here for now. - -14. The file /magic contains the special sh commands used during - installation. Should you need to use them you can do the following. - - /bin/sh - . /magic - -15. If your disk has several operating systems, you may want to - install the Thomas Wolfram's os-bs boot manager for selecting - which system to boot. This works well with DOS, OS/2, FreeBSD - and other systems. To install it, boot the system with MS-DOS - and insert the dos-floppy of the FreeBSD install suite in - floppy drive A:. Then enter the DOS commands: - > A: - > os-bs135 - > cd os-bs - > os-bs - A menu should now appear on the screen. Use the cursor keys - to highlight the install option and hit ENTER. Simply follow the - instructions from there. - - For more information about the ob-bs program, including its - capabilities and limitations, see the file `readme.1st' in the - os-bs directory. - - If you choose not to install os-bs, then fdisk can be used to - change the boot system. This is done by making the primary - partition for the boot system active. FreeBSD has an fdisk - command that can be used for this purpose as well. - -16. In addition to the FreeBSD source and binary distributions, many - additional packages, such as X11 and TeX, may be obtained from - freebsd.cdrom.com - please have a look around! You may also find - this a good time to read the release notes in RELNOTES.FreeBSD. - -End of $Id: floppy.install_notes,v 1.14 1994/05/15 01:09:23 rgrimes Exp $ diff --git a/etc/etc.i386/inst1.install b/etc/etc.i386/inst1.install deleted file mode 100755 index 395928e..0000000 --- a/etc/etc.i386/inst1.install +++ /dev/null @@ -1,1042 +0,0 @@ -#!/bin/sh -# install1.fs disk 'install' -# -# Currently, no method for checking to see if the designated disk type is -# already in /etc/disktab. You can edit it out of the file after installation. -# -PATH=/sbin:/bin:/usr/bin:/usr/sbin:. -export PATH - -OPSYSTEM=FreeBSD -OPSYSID=165 -ROOTMIN=8 -SWAPMIN=8 -USRMIN=7 -DISKMIN=`expr $ROOTMIN + $SWAPMIN + 1` -DEFBLOCKING=2 -DEFSECT=17 -DEFHEAD=12 -DEFCYLN=1024 -RUN_FDISK="" - -DOS1_ID=1 -DOS2_ID=4 -DOS3_ID=6 - -set_arbitrary_defaults() { -cyls_per_disk=$DEFCYLN -tracks_per_cyl=$DEFHEAD -sects_per_track=$DEFSECT -unused_last_part=3 -part_cnt=4 -} - - -get_fdisk_data() { -cyls_per_disk= -part_id= -got_sysid= -part_cnt=0 -sysid_cnt=0 -have_opsys_part= -have_dos_part= -unused_last_part= -extent_max=0 -extent_max_part= - -fdisk /dev/r${drivename}d >fdisk.out 2>fdisk.err -if [ $? -gt 0 ]; then - echo "Can't open /dev/r${drivename}d for reading!" - set_arbitrary_defaults - >fdisk.out - >fdisk.err - return 2 -elif [ -s fdisk.err ]; then - echo "Disk doesn't appear to be initialized..." - no_part_table=1 -fi -while read data; do - if [ ! "$cyls_per_disk" ]; then - cyls_per_disk=`expr "$data" : '[^=]*=\([0-9]*\)'` - tracks_per_cyl=`expr "$data" : '[^=]*=[^=]*=\([0-9]*\)'` - sects_per_track=`expr "$data" : '[^=]*=[^=]*=[^=]*=\([0-9]*\)'` - continue - fi - if [ "$got_sysid" ]; then - start_part=`expr "$data" : '[^0-9]*\([0-9]*\)'` - size_part=`expr "$data" : '[^0-9]*[0-9]*[^0-9]*\([0-9]*\)'` - extent_part=`expr $start_part + $size_part` - if [ $extent_part -gt $extent_max ]; then - extent_max=$extent_part - extent_max_part=$part_id - fi - eval start${part_id}=$start_part - eval size${part_id}=$size_part - sysid_cnt=`expr $sysid_cnt + 1` - got_sysid= - part_id= - elif [ "$part_id" ]; then - sysid=`expr "$data" : 'sysid \([0-9]*\)'` - sysname=`expr "$data" : 'sysid[^(]*(\([^)]*\)'` - if [ "$no_part_table" -o "$sysid" = "0" -o \ - "$(expr "$data" : '\(<UNUSED>\)')" = "<UNUSED>" ]; then - unused_last_part=$part_id - part_id= - continue - fi - if [ "$sysid" = "$OPSYSID" ]; then - have_opsys_part=$part_id - elif [ ! "$have_dos_part" -a \( "$sysid" = "$DOS1_ID" -o \ - "$sysid" = "$DOS2_ID" -o "$sysid" = "$DOS3_ID" \) ]; then - have_dos_part=$part_id - fi - eval sysid${part_id}=$sysid - eval sysname${part_id}=\"$sysname\" - got_sysid=1 - else - part_id=`expr "$data" : 'The data[^0-9]*\([0-9]*\)'` - beg_cyl=`expr "$data" : '[ ]*beg[^0-9]*\([0-9]*\)'` - end_cyl=`expr "$data" : '[ ]*end[^0-9]*\([0-9]*\)'` - if [ "$part_id" ]; then - part_cnt=`expr $part_cnt + 1` - elif [ "${beg_cyl}" -gt "${cyls_per_disk}" -o \ - "${end_cyl}" -gt "${cyls_per_disk}" ]; then - no_part_table=1 - sysid_cnt=0 - have_opsys_part=0 - unused_last_part=`expr $part_cnt - 1` - fi - fi -done <fdisk.out -if [ ! "$cyls_per_disk" ]; then - set_arbitrary_defaults - return 2 -fi ->fdisk.out ->fdisk.err -return 0 -} - -set_existing_part() { -# Set existing partiton values as default (adjusting to cylinder boundaries) -eval opsys_size=\$size${opsys_part} -eval opsys_start=\$start${opsys_part} -[ $opsys_size -eq 50000 ] && opsys_size=$disksize -opsys_off=`expr $opsys_start / $cylindersize` -opsys_adjusted=`expr $opsys_off \* $cylindersize` -if [ $opsys_adjusted -lt $opsys_start -o $opsys_off -eq 0 ]; then - opsys_off=`expr $opsys_off + 1` - opsys_adjusted=`expr $opsys_off \* $cylindersize` - opsys_size=`expr $opsys_size - $opsys_adjusted + $opsys_start` -fi -cyls_per_opsys=`expr $opsys_size / $cylindersize` -RUN_FDISK="fdisk -u" -} - - -set_overwrite_part() { -while :; do - echo - echo -n "Please specify partition to overwrite: [3] " - read resp junk - opsys_part=${resp:-3} - if [ "$opsys_part" -ge 0 -a "$opsys_part" -le 3 ]; then - break - else - echo - echo "Partition must be in the range [0-3]" - fi -done -set_existing_part -} - -analyze_fdisk_data() { -if [ "$part_cnt" -gt 0 ]; then - echo - echo "Partition Offset* Size* Name" - echo "--------- ------ ---- ----" - i=0 - while [ $i -lt $part_cnt ]; do - pcyls= - poff= - eval psize=\$size${i} - eval pstart=\$start${i} - eval pname=\$sysname${i} - [ "$psize" -eq 50000 ] && psize=$disksize - if [ "$psize" ]; then - poff=`expr $pstart / $cylindersize` - padjusted=`expr $poff \* $cylindersize` - if [ "$padjusted" -lt "$pstart" ]; then - poff=`expr $poff + 1` - padjusted=`expr $poff \* $cylindersize` - psize=`expr $psize - $padjusted + $pstart` - fi - pcyls=`expr $psize / $cylindersize` - fi - echo -n "${i}" - echo -n " ${poff:-0}" - echo -n " ${pcyls:-0}" - echo " ${pname:-(Unused)}" - i=`expr $i + 1` - done - echo "* Sizes and offsets are in units of cylinders." -fi -# Case I: >1024 cylinders -force_offset= -if [ $cyls_per_disk -gt 1024 ]; then - echo - echo " WARNING: >1024 cylinders. On some hardware, this prevents" - echo " ${OPSYSTEM} from sharing the disk with other operating systems." - echo -n "Install ${OPSYSTEM} on entire disk, overwriting existing partitions? [n] " - read resp junk - case "$resp" in - y*|Y*) - RUN_FDISK="" - force_offset=1 - opsys_off=0 - cyls_per_opsys=${cyls_per_disk} - opsys_part=${unused_last_part:-3} - return 0 - ;; - *) - echo - echo "If the number of disk cylinders does not exceed 1024, then ${OPSYSTEM}" - echo "can be installed alongside other operating systems on a single disk." - echo "Otherwise, it is system-dependent whether this will work or not." - echo "In the worst case, ${OPSYSTEM} MUST be installed at the beginning of" - echo "the disk, and existing partitions will be lost." - echo - echo "For now, we will assume that >1024 cylinders creates no problems..." - # FALL THROUGH - ;; - esac -fi -# Case II: no partitions used -if [ $sysid_cnt -eq 0 ]; then - echo - echo " WARNING: partition table is either missing or corrupt." - echo " Existing partitions will be lost." - part_cnt=${part_cnt:-4} - RUN_FDISK="overwrite" - opsys_off=1 - cyls_per_opsys=`expr ${cyls_per_disk} - 1` - opsys_part=${unused_last_part:-3} - return 0 -# Case IIIa: overwrite an existing 386BSD/NetBSD/FreeBSD partition -elif [ "$have_opsys_part" ]; then - echo - echo "386/Net/FreeBSD partition already exists!" - echo "${OPSYSTEM} cannot be installed alongside an existing BSD partition." - echo -n "Overwrite existing partition? [y] " - read resp junk - case "${resp:-y}" in - y*|Y*) - opsys_part=${have_opsys_part} - set_existing_part - return 0 - ;; - *) - echo - echo "Installation aborted. Enter \`halt' to halt the machine." - echo "Once the machine has halted, remove the floppy," - echo "and press any key to reboot." - exit - ;; - esac -fi - -# Case IIIb: no partitions available -if [ $sysid_cnt -eq $part_cnt -a ! "$have_opsys_part" ]; then - echo - echo "No unused partitions." - echo -n "Install $OPSYSTEM and overwrite the entire disk? [n] " - read resp junk - case "$resp" in - y*|Y*) - # don't use first cylinder! - opsys_off=1 - cyls_per_opsys=`expr $cyls_per_disk - 1` - opsys_part=${unused_last_part} - RUN_FDISK="overwrite" - ;; - *) - set_overwrite_part - ;; - esac - return 0 -fi - - -# *** CAVEAT *** -# $OPSYSTEM installs at the end of the disk. If the -# beginning of the disk is free but not the end, install fails! - -# Assume `fdisk -u' to add $OPSYSTEM in last unused partition for remaining cases -opsys_part=${unused_last_part} -RUN_FDISK="fdisk -u" -mb_sect=`expr 1024 \* 1024 / $bytes_per_sect` -disk_minimum=`expr $DISKMIN \* $mb_sect` - -# Case IV: No room (at end of disk) for mininal install -[ $extent_max -eq 50000 ] && extent_max=$disksize -disk_remaining=`expr $disksize - $extent_max` -if [ $disk_remaining -lt $disk_minimum ]; then - echo - echo "Not enough space ($DISKMIN Mb) at end of disk to install $OPSYSTEM." - echo -n "Install FreeBSD and overwrite the entire disk? [n] " - read resp junk - case "$resp" in - y*|Y*) - # don't use first cylinder! - opsys_off=1 - cyls_per_opsys=`expr $cyls_per_disk - 1` - opsys_part=${unused_last_part} - RUN_FDISK="overwrite" - ;; - *) - echo - echo -n "Overwrite an existing partition? [n] " - read resp junk - case "$resp" in - y*|Y*) - set_overwrite_part - ;; - *) - echo - echo " WARNING: To install ${OPSYSTEM}, you're on your own in figuring" - echo " out where on the disk it will fit without overwriting another" - echo " partition..." - # Set defaults assuming there is only one partition at end of disk - eval start=\$start${extent_max_part} - # don't use first cylinder! - opsys_off=1 - cyls_per_opsys=`expr $start / $cylindersize - 1` - [ $cyls_per_opsys -lt 0 ] && cyls_per_opsys=0 - ;; - esac - ;; - esac - return 0 -fi - -# Case V: Room for $OPSYSTEM and partition data okay -opsys_off=`expr $extent_max / $cylindersize` -opsys_extent=`expr $opsys_off \* $cylindersize` -[ $opsys_extent -lt $extent_max ] && opsys_off=`expr $opsys_off + 1` -cyls_per_opsys=`expr $cyls_per_disk - $opsys_off` -return 0 -} - -put_fdisk_data() { -start=$root_offset -size=$partition - -if [ "$RUN_FDISK" = "overwrite" ]; then - # How do you overwrite without explicitly editing each entry? - ( - echo y - echo $cyls_per_disk - echo $tracks_per_cyl - echo $sects_per_track - echo y - ) >fdisk.script - i=0 - n=`expr ${part_cnt:-4} - 1` - while [ $i -lt $n ]; do - echo y - echo 0 - echo 0 - echo 0 - echo n - echo y - i=`expr $i + 1` - done >>fdisk.script - ( echo y - echo ${OPSYSID} - echo ${start} - echo ${size} - echo n - echo y - echo y - echo ${n} - echo y - echo y - ) >>fdisk.script - fdisk -u /dev/r${drivename}d <fdisk.script >/dev/null 2>&1 -elif [ "$RUN_FDISK" ]; then - $RUN_FDISK -${opsys_part:-${unused_last_part:-3}} /dev/r${drivename}d <<-EOF >/dev/null 2>&1 - y - $cyls_per_disk - $tracks_per_cyl - $sects_per_track - y - y - ${OPSYSID} - ${start} - ${size} - n - y - y - ${opsys_part:-${unused_last_part:-3}} - y - y - EOF -fi - -} - -echo -echo -echo "Welcome to ${OPSYSTEM}." -echo -echo "This program is designed to help put ${OPSYSTEM} on a hard disk with" -echo "at least $DISKMIN Megabytes of free space." -echo -echo "Before starting, it is important to know your hard disk's geometry" -echo "(i.e., number of cylinders, heads and sectors/track). If installing" -echo "${OPSYSTEM} on the same disk as another operating system, then the" -echo "two systems should use the same geometry. In particular, ${OPSYSTEM}'s" -echo "default geometry is inappropriate for MS-DOS. So in this case, the" -echo "DOS geometry should be used instead." -echo -echo "As with anything which modifies a hard drive's contents, this program" -echo "can cause SIGNIFICANT data loss. We strongly recommend making sure" -echo "that the hard drive is backed up before going further with the" -echo "installation process." -echo -echo -n "Proceed with installation? [y] " -read resp junk -resp=${resp:-y} -case "$resp" in -y*|Y*) - echo - echo "Cool! Let's get to it..." - echo - echo "If a mistake is made along the way, don't bail out." - echo "At the end, you have the option of redoing the configuration." - echo "If you really must quit at some point, type <CTRL>+C and" - echo "enter \`halt' at the command prompt, \`#'." - ;; -*) - echo - echo "Installation aborted. Enter \`halt' to halt the machine." - echo "Once the machine has halted, remove the floppy," - echo "and press any key to reboot." - exit - ;; -esac - -mount -u /dev/fd0 / || { - if mount -u /dev/fd1 / ; then - echo "[Please ignore the above error message, that's normal.]" - else - echo "Oh boy, we're in trouble here: Could not mount floppy read-write." - exit 1 - fi -} -sync -verified_install="" -while [ ! "$verified_install" ]; do # Begin of Big Loop - -rotdelay="-d 0 -n 1" -drivename=wd0 -drivetype=wd -sect_fwd="" -echo -echo "First, we need to know the drive type. This can be can be one of" -echo "ESDI, SCSI, ST506, or IDE." -echo -n "Drive type? [${type:-IDE}] " -read resp junk -type=${resp:-${type:-IDE}} -case "$type" in -e*|E*|st*|ST*) - echo -n "Does it support AUTOMATIC sector remapping? [y] " - read remap junk - case "$remap" in - n*|N*) - sect_fwd="sf:" - ;; - esac - case "$type" in - e*|E*) - DEFSECT=36 - ;; - esac - ;; -i*|I*) - type=ST506 - ;; -sc*|SC*) - drivename=sd0 - drivetype=sd - type=SCSI - DEFSECT=32 - DEFHEAD=64 - ;; -*) - echo "Unknown type. Assuming ST506 with automatic sectoring..." - type=ST506 - ;; -esac -echo -echo -n "Install onto which drive [$drivename] " -read resp junk -drivename=${resp:-${drivename}} -echo -echo "Disk $drivename is of device type $drivetype." -if [ ! "$partition" ]; then - echo - echo "Examining device /dev/r${drivename}d..." - get_fdisk_data - if [ $? -gt 1 ]; then - echo "Hm - we can't seem to read that drive." - echo - echo -n "Are you sure that $type is the correct type? [n] " - read resp - case "$resp" in - y*|Y*) - echo - echo "Well, since we can't even open it, there isn't much" - echo "hope for writing a label on it. But you're free" - echo "to give it a try. You need to specify the geometry." - ;; - *) - echo - echo "Oops. Let's start again from the top." - continue - ;; - esac - fi -fi -echo -echo "Now we want to build a data base entry in /etc/disktab describing" -echo "the geometry of the /dev/$drivename disk. The name of the entry" -echo "should be descriptive of the disk's type and model. For example," -echo "a Maxtor IDE, model 7080 disk might be named \`maxtor7080'." -echo -n "Disk label name (one word, please)? [${name:-mfr_model}] " -read resp junk -name=${resp:-${name:-mfr_model}} -echo -echo "${OPSYSTEM} should use the same hard disk geometry as used by other" -echo "operating systems on the hard disk." -echo -n "Number of bytes per disk sector? [${bytes_per_sect:-512}] " -read resp junk -bytes_per_sect=${resp:-${bytes_per_sect:-512}} -echo -echo -n "Total number of disk cylinders? [${cyls_per_disk:-${DEFCYLN}}] " -read resp junk -cyls_per_disk=${resp:-${cyls_per_disk:-${DEFCYLN}}} -echo -echo -n "Number of disk heads (i.e., tracks/cylinder)? [${tracks_per_cyl:-${DEFHEAD}}] " -read resp junk -tracks_per_cyl=${resp:-${tracks_per_cyl:-${DEFHEAD}}} -echo -echo -n "Number of disk sectors (i.e., sectors/track)? [${sects_per_track:-${DEFSECT}}] " -read resp junk -sects_per_track=${resp:-${sects_per_track:-${DEFSECT}}} -cylindersize=`expr $sects_per_track \* $tracks_per_cyl` -disksize=`expr $cylindersize \* $cyls_per_disk` -mb_sect=`expr 1024 \* 1024 / $bytes_per_sect` -mb_per_disk=`expr $disksize / $mb_sect` -opsys_cyls_min=`expr $DISKMIN \* $mb_sect / $cylindersize` -analyze_fdisk_data -if [ $? -eq 0 ]; then - partition=`expr $cyls_per_opsys \* $cylindersize` - part_offset=`expr $opsys_off \* $cylindersize` -fi -echo -echo "Disk has a total of $mb_per_disk Mb." -echo "The size of the ${OPSYSTEM} portion of the disk must be at least" -echo "${opsys_cyls_min} cylinders, and should not exceed $(expr $cyls_per_disk - 1) cylinders." -echo "The offset of ${OPSYSTEM} from the beginning of the disk should be at" -echo "least 1 cylinder." -echo -echo "For efficiency, partitions begin and end on cylinder boundaries." -echo "If you know the size NN in Megabytes (Mb) of a partition you want, then" -echo "use the following formula to determine the number NC of cylinders to use:" -echo " NC = integer { ( NN * $mb_sect ) / $cylindersize }" -while :; do - echo -n "Total size of the ${OPSYSTEM} portion of the disk (in cylinders)? [${cyls_per_opsys:-`expr ${cyls_per_disk} - 1`}] " - read resp junk - cyls_per_opsys=${resp:-${cyls_per_opsys:-`expr ${cyls_per_disk} - 1`}} - partition=`expr $cyls_per_opsys \* $cylindersize` - if [ $cyls_per_opsys -lt $cyls_per_disk -a ! "$force_offset" ]; then - echo - echo -n "Offset of ${OPSYSTEM} from beginning of disk (in cylinders)? [${opsys_off:-1}] " - read resp junk - opsys_off=${resp:-${opsys_off:-1}} - else - echo - echo " WARNING: Existing partitions will be lost. In addition," - echo " installing at cylinder 0 may cause problems for some disk" - echo " controllers. If the filesystem is corrupted or install" - echo " fails, install at cylinder 1." - RUN_FDISK="" - cyls_per_opsys=$cyls_per_disk - partition=$disksize - opsys_off=0 - fi - part_offset=`expr $opsys_off \* $cylindersize` - opsys_extent=`expr $opsys_off + $cyls_per_opsys` - if [ ${opsys_extent} -gt ${cyls_per_disk} ]; then - echo - echo "${OPSYSTEM} Size + Offset cannot exceed ${cyls_per_disk} cylinders." - elif [ ${cyls_per_opsys} -lt ${opsys_cyls_min} ]; then - echo - echo "${OPSYSTEM} requires at least ${opsys_cyls_min} cylinders to install." - else break - fi -done -badspacesec=0 -if [ "$sect_fwd" = "sf:" ]; then - badspacecyl=`expr $sects_per_track + 126` - badspacecyl=`expr $badspacecyl + $cylindersize - 1` - badspacecyl=`expr $badspacecyl / $cylindersize` - badspacesec=`expr $badspacecyl \* $cylindersize` - echo - echo -n "Using $badspacesec sectors ($badspacecyl cylinders) for the " - echo "bad144 bad block table" -fi -whats_left=`expr $partition - $badspacesec` -cyl_left=`expr $whats_left / $cylindersize` -mb_left=`expr $whats_left / $mb_sect` -swap_cyls_min=`expr $SWAPMIN \* $mb_sect / $cylindersize` -root_cyls_max=`expr ${cyl_left} - ${swap_cyls_min}` -root_cyls_min=`expr $ROOTMIN \* $mb_sect / $cylindersize` -echo -echo "There are $mb_left Mb ($cyl_left cylinders) to allocate." -echo -echo "The $OPSYSTEM portion of the disk must itself be divided into at least" -echo "two partitions: one for the root filesystem and one for swap. It is a" -echo "good idea to have at least a third (large) $OPSYSTEM partition for the /usr" -echo "filesystem." -echo -echo "The root partition cannot exceed ${root_cyls_max} cylinders. It is usually" -echo "no larger than about 15 Mb ($(expr 15 \* $mb_sect / $cylindersize) cylinders), and sometimes" -echo "as small as $ROOTMIN Mb ($root_cyls_min cylinders)." -if [ ! "$cyls_per_root" ]; then - # set default root partition to 15MB - cyls_per_root=`expr \( 15 \* $mb_sect \) / $cylindersize` - usr_cyls_max=`expr ${root_cyls_max} - ${cyls_per_root}` - mb_usr=`expr ${usr_cyls_max} \* $cylindersize / $mb_sect` - [ $cyls_per_root -gt $root_cyls_max -o $mb_usr -lt $USRMIN ] && - cyls_per_root=$root_cyls_max -fi -while :; do - echo -n "Root partition size (in cylinders)? [${cyls_per_root}] " - read resp junk - cyls_per_root=${resp:-${cyls_per_root}} - root=`expr $cyls_per_root \* $cylindersize` - if [ ${cyls_per_root} -gt ${root_cyls_max} ]; then - echo - echo "The root partition size cannot exceed $root_cyls_max cylinders." - elif [ ${cyls_per_root} -lt ${root_cyls_min} ]; then - echo - echo "The root partition size must be at least $root_cyls_min cylinders." - else - part_used=`expr $root + $badspacesec` - break - fi -done -root_offset=$part_offset -whats_left=`expr $partition - $part_used` -cyl_left=`expr $whats_left / $cylindersize` -mb_left=`expr $whats_left / $mb_sect` -echo -# DO NOT USE DIFFERENT BLOCKING FACTORS FOR EACH PARITION.. IT TRASHES THE -# VM SYSTEM! When that gets fixed this can go back the way it was... -# -echo "We can build the filesystems with block/fragment sizes of either" -echo " 1) 4k/512, to save disk space at the expense of speed, or" -echo " 2) 8k/1k for speed at the expense of disk space." -echo -n "Which blocking factor should we use for the filesystems? " -echo -n "[${blocking_factor:-${DEFBLOCKING}}] " -read resp junk -blocking_factor=${resp:-${blocking_factor:-${DEFBLOCKING}}} -fragsize=`expr $bytes_per_sect \* $blocking_factor` -blocksize=`expr $bytes_per_sect \* $blocking_factor \* 8` -echo -echo "$mb_left Mb ($cyl_left cylinders) remaining in ${OPSYSTEM} portion of disk." -echo -echo "Minimum swap space is ${swap_cyls_min} cylinders." -echo "For running X, if your RAM size is NR Mb, then the recomended swap" -echo "size NS (in cylinders) is:" -echo " NS = integer { ( NR x `expr 21 \* $mb_sect / 10` ) / ${cylindersize} }" -if [ ! "$swap_cyl" ]; then - # guess memory size - mb_ram=16 - swap_cyl=`expr \( 21 \* $mb_ram \* $mb_sect \) / 10` - swap_cyl=`expr $swap_cyl / ${cylindersize}` - - # but not swap size more than 10% of disk size... - swap_quot=`expr $mb_left / $mb_ram` - if [ $swap_quot -lt 10 ]; then - swap_cyl=$swap_cyls_min - fi -fi -while :; do - echo -n "Swap partition size (in cylinders)? [${swap_cyl}] " - read resp junk - swap_cyl=${resp:-${swap_cyl}} - swap=`expr $swap_cyl \* $cylindersize` - if [ ${swap_cyl} -gt ${cyl_left} ]; then - echo - echo "Swap size cannot exceed $cyl_left cylinders." - elif [ ${swap_cyl} -lt ${swap_cyls_min} ]; then - echo - echo "Swap size must be at least ${swap_cyls_min} cylinders." - else - break - fi -done -swap_offset=`expr $root_offset + $root` -part_used=`expr $part_used + $swap` -echo "" >/etc/disktab -echo "$name|${OPSYSTEM} installation generated:\\" >>/etc/disktab -echo " :dt=${type}:ty=winchester:\\" >>/etc/disktab -echo -n " :nc#${cyls_per_disk}:ns#${sects_per_track}" >>/etc/disktab -echo ":nt#${tracks_per_cyl}:\\" >>/etc/disktab -echo " :se#${bytes_per_sect}:${sect_fwd}\\" >>/etc/disktab -echo -n " :pa#${root}:oa#${root_offset}" >>/etc/disktab -echo ":ta=4.2BSD:ba#${blocksize}:fa#${fragsize}:\\" >>/etc/disktab -echo " :pb#${swap}:ob#${swap_offset}:tb=swap:\\" >>/etc/disktab -echo " :pc#${partition}:oc#${part_offset}:\\" >>/etc/disktab -ename="";fname="";gname="";hname="" -if [ $part_used -lt $partition ]; then - echo - echo "Now we enter information about any other partitions and filesystems" - echo "to be created in the ${OPSYSTEM} portion of the disk. This process" - echo "is complete when we've filled up all remaining space in the ${OPSYSTEM}" - echo "portion of the disk." -fi -while [ $part_used -lt $partition ]; do - part_size=0 - whats_left=`expr $partition - $part_used` - cyl_left=`expr $whats_left / $cylindersize` - mb_left=`expr $whats_left / $mb_sect` - echo - echo "$mb_left Mb ($cyl_left cylinders) remaining in ${OPSYSTEM} portion of disk." - echo - while :; do - echo -n "Next partition size (in cylinders)? [${cyl_left}] " - read resp junk - part_size=${resp:-${cyl_left}} - part_size=`expr $part_size \* $cylindersize` - total=`expr $part_used + $part_size` - if [ $total -gt $partition ]; then - echo - echo "Partition size cannot exceed ${cyl_left} cylinders." - else - part_used=$total - part_name="" - while [ "$part_name" = "" ]; do - echo - echo -n "On which directory should this filesystem be mounted? [usr] " - read resp junk - part_name=${resp:-usr} - part_name=`expr X"$part_name" : 'X/*\(.*\)'` - done - break - fi - done - if [ ! "$ename" ]; then - ename=$part_name - offset=`expr $part_offset + $root + $swap` - echo -n " :pe#${part_size}:oe#${offset}" >>/etc/disktab - echo ":te=4.2BSD:be#${blocksize}:fe#${fragsize}:\\" >>/etc/disktab - offset=`expr $offset + $part_size` - elif [ ! "$fname" ]; then - fname=$part_name - echo -n " :pf#${part_size}:of#${offset}" >>/etc/disktab - echo ":tf=4.2BSD:bf#${blocksize}:ff#${fragsize}:\\" >>/etc/disktab - offset=`expr $offset + $part_size` - elif [ ! "$gname" ]; then - gname=$part_name - echo -n " :pg#${part_size}:og#${offset}" >>/etc/disktab - echo ":tg=4.2BSD:bg#${blocksize}:fg#${fragsize}:\\" >>/etc/disktab - offset=`expr $offset + $part_size` - elif [ ! "$hname" ]; then - hname=$part_name - echo -n " :ph#${part_size}:oh#${offset}" >>/etc/disktab - echo ":th=4.2BSD:bh#${blocksize}:fh#${fragsize}:\\" >>/etc/disktab - part_used=partition - fi -done -if [ "$have_dos_part" -a "$have_dos_part" != "$opsys_part" -a \ - "$RUN_FDISK" != "" -a "$RUN_FDISK" != "overwrite" -a ! "$hname" ]; then - echo - echo "There appears to be a MS-DOS filesystem on the hard disk." - echo -n "Make this be accessible from ${OPSYSTEM}? [y] " - read resp junk - case "${resp:-y}" in - y*|Y*) - part_name="" - while [ "$part_name" = "" ]; do - echo - echo -n "On which directory should this filesystem be mounted? [dos] " - read resp junk - part_name=${resp:-dos} - part_name=`expr X"$part_name" : 'X/*\(.*\)'` - done - hname=$part_name - eval offset=\$start${have_dos_part} - eval part_size=\$size${have_dos_part} - echo -n " :ph#${part_size}:oh#${offset}" >>/etc/disktab - echo ":th=MSDOS:\\" >>/etc/disktab - part_used=partition - ;; - *) - have_dos_part="" - ;; - esac -else - have_dos_part="" -fi -echo " :pd#${disksize}:od#0:" >>/etc/disktab -sync - -# cat /etc/disktab -OIFS=$IFS -IFS=' -' -while read data; do - echo $data -done < /etc/disktab -IFS=$OIFS - -echo -echo -n "Verbose installation? [n] " -read resp - -case $resp in -y*) - cpioverbose=v - ;; -*) - cpioverbose= - ;; -esac - - -echo -echo "THIS IS THE LAST CHANCE!!! Data on the hard disk will be lost!" -echo -n "Are you sure you want to install on the hard drive? (yes/no) " -resp="" -while [ ! "$resp" ]; do - read resp junk - case "$resp" in - Yes|yes|YES) - verified_install=1 - echo - echo "Here we go..." - ;; - No|no|NO) - echo - echo -n "Would you like to change the configuration? [y] " - read resp junk - resp=${resp:-y} - case "$resp" in - y*|Y*) - ;; - *) - echo - echo "Installation aborted. Enter 'halt' to halt the machine." - echo "Once the machine has halted, remove the floppy," - echo "and press any key to reboot." - exit - ;; - esac - ;; - *) - echo "Please spell out either of \`yes' or \`no'..." - echo -n "Install on the hard disk? (yes/no) " - resp= - ;; - esac -done -done # End of Big Loop - -put_fdisk_data - -echo -echo -n "Labelling disk..." -echo y | -/sbin/disklabel -w -r -B ${drivename}c $name -# >/dev/null 2>&1 -echo " done." - -# XXX - Do it again, incase we disklabeled sector 0! -# XXX - this is not working for some reason, need to look at it closer! -put_fdisk_data - -if [ "$sect_fwd" = "sf:" ]; then - echo -n "Initializing bad144 badblock table..." - bad144 $drivename 0 - echo " done." - echo "Updating badblock table..." - # `2>&1 >/dev/null' filters stdout and leaves only stderr... - badlist=$(bad144 -s $drivename 2>&1 >/dev/null | - while read data; do - bad_seek=$(expr "$data" : '[^(]*(seek)[^0-9]*\([0-9]*\)') - bad_read=$(expr "$data" : '[^(]*(read)[^0-9]*\([0-9]*\)') - [ "$bad_seek" -o "$bad_read" ] && echo -n "$bad_seek $bad_read " - done) - [ "$badlist" ] && bad144 -a -c $drivename $badlist - echo " done." -fi - -echo "Initializing root filesystem, and mounting..." -newfs ${rotdelay} /dev/r${drivename}a $name -mount -v /dev/${drivename}a /mnt -if [ "$ename" != "" ]; then - echo - echo "Initializing $ename filesystem, and mounting..." - newfs ${rotdelay} /dev/r${drivename}e $name - mkdir -p /mnt/$ename - mount -v /dev/${drivename}e /mnt/$ename -fi -if [ "$fname" != "" ]; then - echo - echo "Initializing $fname filesystem, and mounting..." - newfs ${rotdelay} /dev/r${drivename}f $name - mkdir -p /mnt/$fname - mount -v /dev/${drivename}f /mnt/$fname -fi -if [ "$gname" != "" ]; then - echo - echo "Initializing $gname filesystem, and mounting..." - newfs ${rotdelay} /dev/r${drivename}g $name - mkdir -p /mnt/$gname - mount -v /dev/${drivename}g /mnt/$gname -fi -if [ "$hname" != "" ]; then - echo - if [ ! "$have_dos_part" ]; then - echo "Initializing $hname filesystem, and mounting..." - newfs ${rotdelay} /dev/r${drivename}h $name - else - echo "Preparing for $hname filesystem, and mounting..." - fi - mkdir -p /mnt/$hname - [ ! "$have_dos_part" ] && - mount -v /dev/${drivename}h /mnt/$hname -fi - -echo -echo -n "Copying to disk... " -cd / -cpio -pdamu${cpioverbose} /mnt <filelist -echo -n "Copying more to disk... " -cd /mnt -gzcat < /inst1.cpio.gz | cpio -idmu${cpioverbose} - -echo -n "Building /etc/fstab... " -echo "proc /proc procfs rw 0 0" >etc/fstab -echo "/dev/${drivename}b none swap sw 0 0" >>etc/fstab -echo "/dev/${drivename}a / ufs rw 1 1" >>etc/fstab -if [ "$ename" != "" ]; then - echo "/dev/${drivename}e /$ename ufs rw 1 2" >>etc/fstab -fi -if [ "$fname" != "" ]; then - echo "/dev/${drivename}f /$fname ufs rw 1 3" >>etc/fstab -fi -if [ "$gname" != "" ]; then - echo "/dev/${drivename}g /$gname ufs rw 1 4" >>etc/fstab -fi -if [ "$hname" != "" ]; then - if [ ! "$have_dos_part" ]; then - echo "/dev/${drivename}h /$hname ufs rw 1 5" >>etc/fstab - else - echo "/dev/${drivename}h /$hname pcfs ro 0 0" >>etc/fstab - fi -fi - -# cat /etc/disktab >etc/disktab.install -OIFS=$IFS -IFS=' -' -while read data; do - echo $data -done </etc/disktab >etc/disktab.install -IFS=$OIFS -echo "done." - -echo -n "Building /etc/rc... " -( -echo "PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/distbin:" -echo "export PATH" -echo "HOME=/root" -echo "export HOME" -echo "TERM=pc3" -echo "export TERM" -echo "mount -at ufs" -echo "echo" -echo "echo" -echo "echo \"Insert cpio installation floppy in drive and\"" -echo "echo -n \"enter that drive's number (0 = A:, 1 = B:): [0] \"" -echo "read resp junk" -echo "driveno=\${resp:-0}" -echo "mount -o ro /dev/fd\${driveno} /mnt" -echo "cd /mnt" -echo "install" -echo "cd /" -echo "umount /mnt >/dev/null 2>&1" -echo "echo" -echo "echo -n \"Install optional dos floppy? [n] \"" -echo "read resp junk" -echo "case \"\$resp\" in" -echo "y*|Y*)" -echo " echo" -echo " echo \"Insert dos floppy in drive, and then\"" -echo " echo -n \"enter that drive's number (0 or 1): [0] \"" -echo " read resp junk" -echo " driveno=\${resp:-0}" -echo " echo \"Copying files to /usr/distbin...\"" -echo " mount -t pcfs -o ro /dev/fd\${driveno} /mnt" -echo " mkdir -p /usr/distbin" -echo " cp /mnt/* /usr/distbin/ >/dev/null 2>&1" -echo " umount /mnt >/dev/null 2>&1" -echo " sync" -echo " ;;" -echo "esac" -echo "echo" -echo "echo \"OK. All of the base files are installed.\"" -echo "echo" -echo "echo \"The next step: reboot from the hard disk. Further\"" -echo "echo \"instructions are presented upon rebooting.\"" -echo "echo" -echo "echo \"Enter 'halt' now at the prompt to halt the machine.\"" -echo "echo \"After the machine has halted, remove the floppy from the disk\"" -echo "echo \"drive, and hit any key to reboot from the hard disk.\"" -echo "exit 1" -) >etc/rc -echo "done." - -if [ "$hname" != "" ]; then /sbin/umount /dev/${drivename}h ; fi -if [ "$gname" != "" ]; then /sbin/umount /dev/${drivename}g ; fi -if [ "$fname" != "" ]; then /sbin/umount /dev/${drivename}f ; fi -if [ "$ename" != "" ]; then /sbin/umount /dev/${drivename}e ; fi -/sbin/umount /mnt - -sync - -echo -echo "The next step: reboot from the kernel-copy disk, copy a kernel" -echo "to the hard disk, and finally reboot from the hard disk." -echo -echo "To do this, enter \`halt' now to halt the machine. After it" -echo "announces that it has halted, remove the floppy from the drive" -echo "and insert the kernel-copy disk that was booted before." -echo "Press any key to reboot. When prompted to insert the filesystem" -echo "floppy this time, just hit RETURN without changing floppies." -echo -echo "If all goes well, you can enter the command \`copy' at the prompt to" -echo "copy the kernel to the hard disk. When asked for which partition to" -echo "copy to, enter \`${drivename}a' (without the quotes)." -echo -echo "The light on the floppy may not go out, so don't wait for it." -echo -echo "Okay, that's all for now. I'm halting ..." - -sync;sync;sync;sync -halt diff --git a/etc/etc.i386/inst1.profile b/etc/etc.i386/inst1.profile deleted file mode 100644 index 8e39a8b..0000000 --- a/etc/etc.i386/inst1.profile +++ /dev/null @@ -1,9 +0,0 @@ -# $Id$ -# -PATH=/sbin:/usr/sbin:/bin:/usr/bin:.: -export PATH -HOME=/root -export HOME -TERM=pc3 -export TERM -/install diff --git a/etc/etc.i386/inst2.install b/etc/etc.i386/inst2.install deleted file mode 100755 index 0ef2d46..0000000 --- a/etc/etc.i386/inst2.install +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# install2.fs disk 'install' -# Simplified, interactive FreeBSD installation script. -# D.E. Silvia (dsilvia@net.com) -# -# Heavily hacked on for support of FreeBSD -# by Rodney W. Grimes (rgrimes@cdrom.com) 1993/08/11 -# -# Installs balance of basic FreeBSD system. -# - -echo -n "Verbose installation? [n] " -read resp -case $resp in - y*) - cpioverbose=v - ;; - *) - cpioverbose= - ;; -esac - -echo -echo "Please wait. Copying to disk..." -# remove /.profile so that the right things happen when it gets -# over written -rm /.profile -cd / -mnt/usr/bin/gunzip < mnt/inst2.cpio.gz | cpio -idmu${cpioverbose} -cd /mnt -ls .profile install usr/bin/* | cpio -pdmu${cpioverbose} / -cd /dev -echo " done." -echo -echo "Building /dev files..." -sh MAKEDEV all -cd / -echo " done." - -sync diff --git a/etc/etc.i386/inst2.profile b/etc/etc.i386/inst2.profile deleted file mode 100644 index 92058a0..0000000 --- a/etc/etc.i386/inst2.profile +++ /dev/null @@ -1,440 +0,0 @@ -stty status '^T' -trap : 2 -trap : 3 -HOME=/; export HOME -PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/distbin; export PATH -if [ -e /fastboot ] -then - echo Fast boot ... skipping disk checks -else - echo Automatic reboot in progress... - fsck -p - case $? in - 0) - ;; - 2) - exit 1 - ;; - 4) - echo; echo README README README README README README README - echo - echo "NOTE: The above errors are expected if this is the" - echo "first time you have booted from the hard disk after" - echo "completing the floppy install"; echo - echo "Automatic file system check changed the root file system" - echo "The system must halt for these corrections to take effect" - echo - reboot - echo "reboot failed... help!" - exit 1 - ;; - 8) - echo "Automatic file system check failed... help!" - exit 1 - ;; - 12) - echo "Reboot interrupted" - exit 1 - ;; - 130) - exit 1 - ;; - *) - echo "Unknown error in reboot" - exit 1 - ;; - esac -fi - -trap 2 -trap "echo 'Reboot interrupted'; exit 1" 3 -umount -a >/dev/null 2>&1 -mount -a -t nonfs -rm -f /fastboot -(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; }) - -TERM=pc3 # terminal emulator, for elvis -TERMCAP="\ -pc3|ibmpc3:li#25:co#80:am:bs:bw:eo:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:\ -do=\E[B:ho=\E[;H:nd=\E[C:up=\E[A:so=\E[7m:se=\E[0m:us=\E[4m:ue=\E[0m:\ -:ac=l\332q\304k\277x\263j\331m\300w\302u\264v\301t\303n\305:\ -:kb=^h:kh=\E[Y:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:" -OPSYSTEM=FreeBSD -RELEASE="1.1" -export TERMCAP -export TERM -echo "${OPSYSTEM} Base System Release ${RELEASE}" -echo "" -echo "Congratulations, you've got ${OPSYSTEM} on the hard disk!" -echo -echo "Press the return key for more installation instructions" -read junkit -echo -echo "To finish installation:" -echo "Pick a temporary directory by running set_tmp_dir. Make sure it's" -echo "in a place with lots of space, probably under /usr." -echo "Then, load the remaining distribution files into that temporary" -echo "directory by issuing one of the following commands:" -echo -echo " load_fd load_qic_tape load_scsi_tape" -echo -echo "or by fetching the files with ftp (see the installation notes for" -echo "information on how to do that)." -echo -echo "Once this is complete, extract the distribution files by issuing the" -echo "command 'extract <distribution>' where <distribution> is the base name" -echo "of the distribution files, e.g. 'base10'." -echo -echo "Once all of the filesets you wish to install have been extracted," -echo "enter the command 'configure' to finish setting up the system" -echo " " -echo "If you should wish to uninstall ${OPSYSTEM}, delete the partition by using the" -echo "DOS 5 FDISK program. If installed on the entire drive, use the FDISK/MBR" -echo "to remove the ${OPSYSTEM} bootstrap from the drive." -echo 'erase ^?, werase ^H, kill ^U, intr ^C' -stty newcrt werase intr kill erase 9600 -umask 0 -set_tmp_dir() -{ - def_tmp_dir=`pwd` - [ "$def_tmp_dir" = "/" ] && def_tmp_dir=/usr/distrib - echo -n "Copy files to which directory? [${def_tmp_dir}] " - read tmp_dir - [ ! "$tmp_dir" ] && tmp_dir=$def_tmp_dir - if [ ! -d "$tmp_dir" ]; then - /bin/rm -rf $tmp_dir - mkdir -p $tmp_dir - fi - echo -} -tmp_dir() -{ - if [ "$tmp_dir" = "" ]; then - set_tmp_dir - fi - cd $tmp_dir -} -load_fd() -{ - tmp_dir - drive= - altdrive= - subdir= - while [ -z "$drive" ]; do - echo -n "Read from which drive (or ? for help)? [c] " - read answer junk - case "${answer:-c}" in - a*b|A*B) - drive=A; altdrive=B - ;; - b*a|B*A) - drive=B; altdrive=A - ;; - a*|A*) - drive=A; altdrive=A - ;; - b*|B*) - drive=B; altdrive=B - ;; - c*|C*) - while read data; do - msdos_device=`expr X"$data" : 'X[ ]*\([^ ]*\)[^M]*pcfs'` - msdos_dir=`expr X"$data" : 'X[ ]*[^ ]*[ ]*\([^ ]*\)'` - [ "${msdos_device}" ] && break - done </etc/fstab - if [ ! "$msdos_device" ]; then - echo - echo "Cannot find MS-DOS in filesystem table" - continue - fi - drive=C; altdrive=C - while :; do - echo - echo -n "Read from which MS-DOS drive C: directory? [/] " - read resp junk - newdir=$(echo "${resp:-/}" | \ - awk '{ sub(/^[Cc]*:*/, ""); gsub(/\\/, "/"); gsub(/^\/*/, ""); gsub(/\/*$/, ""); print $0 }') - if [ -d ${msdos_dir}/${newdir} ]; then - subdir=$newdir - break - else - echo "C:/${newdir}: No such directory" - fi - done - ;; - q*|Q*) - drive=q - ;; - \?*) - echo - echo "Enter: To:" - echo "------ ---" - echo " a Read from floppy drive A:" - echo " b Read from floppy drive B:" - echo " c Read from MS-DOS hard drive C:" - echo " ab Alternate between A: and B:, starting with A:" - echo " ba Alternate between A: and B:, starting with B:" - echo " q Quit" - echo - ;; - esac - done - verbose=-v - interactive=-i - if [ "$drive" = "C" ]; then - dir=${msdos_dir} - elif [ "$drive" != "q" ]; then - dir=/tmp/floppy - [ -d $dir ] && umount $dir >/dev/null 2>&1 - [ -f $dir ] && rm -f $dir - mkdir -p $dir - fi - while [ "$drive" != "q" ] - do - device=/dev/fd0 - [ "$drive" = "B" ] && device=/dev/fd1 - [ "$drive" = "C" ] && device=${msdos_device} - echo; - if [ "$drive" != "C" ]; then - echo "Insert floppy in drive $drive:, then press RETURN to copy files," - echo -n "or enter option (? for help): " - else - echo -n "Press RETURN to copy files, or enter option (? for help): " - fi - read answer junk - case "${answer:-g}" in - c*|C*) - if [ "$drive" != "C" ]; then - echo "Cannot change directory: not reading from MS-DOS drive C:" - else - echo - echo -n "Read from which MS-DOS drive C: directory? [/${subdir}] " - read resp junk - [ ! "$resp" ] && resp="/$subdir" - absolute=`expr X"$resp" : 'X[Cc]*:*\([/\]\)'` - subsub=$(echo "${resp}" | \ - awk '{ sub(/^[Cc]*:*/, ""); gsub(/\\/, "/"); gsub(/^\/*/, ""); gsub(/\/*$/, ""); print $0 }') - if [ "$absolute" -o ! "$subdir" ]; then - newsub=$subsub - else - newsub=$subdir/$subsub - fi - if [ -d ${dir}/${newsub} ]; then - subdir=$newsub - else - echo "C:/${newsub}: No such directory" - fi - fi - ;; - g*|G*) - sync - if [ "$drive" = "C" ]; then - [ "$verbose" ] && - { echo; echo "Please wait. Copying files from MS-DOS C:/${subdir}"; } - cp ${msdos_dir}/${subdir}/* . - sync - elif mount -t pcfs $verbose $device $dir; then - [ "$verbose" ] && - { echo; echo "Please wait. Copying files to disk..."; } - cp $interactive $dir/* . - sync - umount $dir - tmp=$drive; drive=$altdrive; altdrive=$tmp - fi - ;; - i*|I*) - tmp=$interactive; interactive=; [ -z "$tmp" ] && interactive=-i - tmp=on; [ -z "$interactive" ] && tmp=off - echo "interactive mode is $tmp" - ;; - l*|L*) - sync - [ "$verbose" ] && echo "Directory of ${drive}:/${subdir}" - if [ "$drive" = "C" ]; then - ls -l $dir/${subdir} - else - umount $dir >/dev/null 2>&1 - if mount -t pcfs $device $dir; then - ls -l $dir/${subdir} - umount $dir - fi - fi - ;; - o*|O*) - tmp=$drive; drive=$altdrive; altdrive=$tmp - ;; - q*|Q*) - drive=q - ;; - s*|S*) - echo; echo -n "tmp_dir is set to $tmp_dir" - [ "$tmp_dir" != "`pwd`" ] && echo -n " (physically `pwd`)" - echo; echo "Free space in tmp_dir:" - df -k . - echo -n "Reading from drive $drive:" - [ "$drive" != "$altdrive" ] && echo -n " and drive $altdrive:" - echo - tmp=on; [ -z "$verbose" ] && tmp=off - echo "Verbose mode is $tmp" - tmp=on; [ -z "$interactive" ] && tmp=off - echo "Interactive mode is $tmp" - ;; - v*|V*) - tmp=$verbose; verbose=; [ -z "$tmp" ] && verbose=-v - tmp=on; [ -z "$verbose" ] && tmp=off - echo "verbose mode is $tmp" - ;; - \?) - echo - echo "Enter: To:" - echo "----- ---" - echo "(just RETURN) Copy files from ${drive}:/${subdir} to $tmp_dir" - echo " c Change directory of MS-DOS drive C:" - echo " i Toggle interactive mode (cp -i)" - echo " l List directory of current drive" - echo " o Read from alternate floppy drive" - echo " q Quit" - echo " s Show status" - echo " v Toggle verbose mode" - echo - ;; - esac - done - echo "Working directory: `pwd`" - unset verbose answer drive altdrive device dir subdir tmp interactive -} -load_qic_tape() -{ - tmp_dir - echo -n "Insert tape into QIC tape drive and hit return to continue: " - read foo - tar xvf /dev/rwt0 -} -load_scsi_tape() -{ - tmp_dir - echo -n "Insert tape into SCSI tape drive and hit return to continue: " - read foo - tar xvf /dev/nrst0 -} -extract() -{ - tmp_dir - echo -n "Would you like to be verbose about this? [n] " - read verbose - case $verbose in - y*|Y*) - tarverbose=--verbose - ;; - *) - tarverbose= - ;; - esac - #XXX ugly hack to eliminate busy files, copy them to /tmp and use them - #from there... - cp -p /bin/cat /usr/bin/gunzip /usr/bin/tar /tmp - - for i in $*; do - /tmp/cat "$i"* | - /tmp/gunzip | - (cd / ; /tmp/tar --extract --file - --preserve-permissions ${tarverbose} ) - done - rm -f /tmp/cat /tmp/gunzip /tmp/tar - sync -} -configure() -{ - echo "You will now be prompted for information about this" - echo "machine. If you hit return, the default answer (in" - echo "brackets) will be used." - - echo - echo -n "What is this machine's hostname? [unknown.host.domain] " - read hname - - if [ "$hname" = "" ]; then - hname=unknown.host.domain - fi - echo $hname > /etc/myname - proto_domain=`echo $hname | sed -e 's/[^.]*\.//'` - - echo - echo "What domain is this machine in (this is NOT its YP" - echo -n "domain name)? [$proto_domain] " - read dname - - if [ "$dname" = "" ]; then - dname=$proto_domain - fi - - echo - echo -n "Does this machine have an ethernet interface? [y] " - read resp - case "$resp" in - n*) - ;; - *) - intf= - while [ "$intf" = "" ]; do - echo -n "What is the primary interface name (i.e. we0, etc.)? " - read intf - done - echo -n "What is the hostname for this interface? [$hname] " - read ifname - if [ "$ifname" = "" ]; then - ifname=$hname - fi - ifaddr= - while [ "$ifaddr" = "" ]; do - echo -n "What is the IP address associated with this interface? " - read ifaddr - done - echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \ - >> /etc/hosts - - echo -n "Does this interface have a special netmask? [n] " - read resp - case "$resp" in - y*) - echo -n "What is the netmask? [0xffffff00] " - read ifnetmask - if [ "$ifnetmask" = "" ]; then - ifnetmask=0xffffff00 - fi - ;; - *) - ifnetmask= - ;; - esac - - echo -n "Does this interface need additional flags? [n] " - read resp - case "$resp" in - y*) - echo -n "What flags? [llc0] " - read ifflags - if [ "$ifflags" = "" ]; then - ifflags=llc0 - fi - ;; - *) - ifflags= - ;; - esac - - echo "inet $ifname $ifnetmask $ifflags" > /etc/hostname.$intf - - echo "" - echo "WARNING: if you have any more ethernet interfaces, you" - echo "will have to configure them by hand. Read the comments" - echo "in /etc/netstart to learn how to do this" - ;; - esac - - sync - - echo - echo "OK. You should be completely set up now." - echo "You should now reboot your machine by issuing the 'reboot' command" - echo "after removing anything that happens to be in your floppy drive." -} diff --git a/etc/etc.i386/inst2.rc b/etc/etc.i386/inst2.rc deleted file mode 100644 index e439eb1..0000000 --- a/etc/etc.i386/inst2.rc +++ /dev/null @@ -1,444 +0,0 @@ -# $Id: inst2.rc,v 1.4 1994/06/15 19:23:33 jkh Exp $ -# - -stty status '^T' -trap : 2 -trap : 3 -PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/distbin; export PATH - -echo -echo -if [ -e /fastboot ] -then - echo Fast boot ... skipping disk checks -else - echo Automatic reboot in progress... - fsck -p - case $? in - 0) - ;; - 2) - exit 1 - ;; - 4) - echo; echo README README README README README README README - echo - echo "NOTE: The above errors are expected if this is the" - echo "first time you have booted from the hard disk after" - echo "completing the floppy install"; echo - echo "Automatic file system check changed the root file system" - echo "The system must halt for these corrections to take effect" - echo - reboot - echo "reboot failed... help!" - exit 1 - ;; - 8) - echo "Automatic file system check failed... help!" - exit 1 - ;; - 12) - echo "Reboot interrupted" - exit 1 - ;; - 130) - exit 1 - ;; - *) - echo "Unknown error in reboot" - exit 1 - ;; - esac -fi - -trap 2 -trap "echo 'Reboot interrupted'; exit 1" 3 -umount -a >/dev/null 2>&1 -mount -a -t nonfs -rm -f /fastboot -(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; }) - -OPSYSTEM=FreeBSD -# Sure wish we had uname at this point! -RELEASE="2.0.0 (Development)" -echo "${OPSYSTEM} Base System Release ${RELEASE}" -echo "" -echo "Congratulations, you've got ${OPSYSTEM} on the hard disk!" -echo -echo "Press the return key for more installation instructions" -read junkit -echo -echo "To finish installation:" -echo "Pick a temporary directory by running set_tmp_dir. Make sure it's" -echo "in a place with lots of space, probably under /usr." -echo "Then, load the remaining distribution files into that temporary" -echo "directory by issuing one of the following commands:" -echo -echo " load_dos load_fd load_qic_tape load_scsi_tape" -echo -echo "or by fetching the files with ftp (see the installation notes for" -echo "information on how to do that)." -echo -echo "Once this is complete, extract the distribution files by issuing the" -echo "command 'extract <distribution>' where <distribution> is the base name" -echo "of the distribution files, e.g. 'base10'." -echo -echo "Once all of the filesets you wish to install have been extracted," -echo "enter the command 'configure' to finish setting up the system" -echo " " -echo "If you wish to uninstall ${OPSYSTEM}, delete the partition by using the" -echo "DOS 5 FDISK program. If installed on the entire drive, use the FDISK/MBR" -echo "to remove the ${OPSYSTEM} bootstrap from the drive." -echo 'erase ^H, kill ^U, intr ^C' -stty newcrt erase ^H intr ^C kill ^U -umask 0 -exit 1 - -set_tmp_dir() -{ - def_tmp_dir=`pwd` - [ "$def_tmp_dir" = "/" ] && def_tmp_dir=/usr/distrib - echo -n "Copy files to which directory? [${def_tmp_dir}] " - read tmp_dir - [ ! "$tmp_dir" ] && tmp_dir=$def_tmp_dir - if [ ! -d "$tmp_dir" ]; then - /bin/rm -rf $tmp_dir - mkdir -p $tmp_dir - fi - echo -} -tmp_dir() -{ - if [ "$tmp_dir" = "" ]; then - set_tmp_dir - fi - cd $tmp_dir -} -load_fd() -{ - tmp_dir - drive= - altdrive= - subdir= - while [ -z "$drive" ]; do - echo -n "Read from which drive (or ? for help)? [c] " - read answer junk - case "${answer:-c}" in - a*b|A*B) - drive=A; altdrive=B - ;; - b*a|B*A) - drive=B; altdrive=A - ;; - a*|A*) - drive=A; altdrive=A - ;; - b*|B*) - drive=B; altdrive=B - ;; - c*|C*) - while read data; do - msdos_device=`expr X"$data" : 'X[ ]*\([^ ]*\)[^M]*pcfs'` - msdos_dir=`expr X"$data" : 'X[ ]*[^ ]*[ ]*\([^ ]*\)'` - [ "${msdos_device}" ] && break - done </etc/fstab - if [ ! "$msdos_device" ]; then - echo - echo "Cannot find MS-DOS in filesystem table" - continue - fi - drive=C; altdrive=C - while :; do - echo - echo -n "Read from which MS-DOS drive C: directory? [/] " - read resp junk - newdir=$(echo "${resp:-/}" | \ - awk '{ sub(/^[Cc]*:*/, ""); gsub(/\\/, "/"); gsub(/^\/*/, ""); gsub(/\/*$/, ""); print $0 }') - if [ -d ${msdos_dir}/${newdir} ]; then - subdir=$newdir - break - else - echo "C:/${newdir}: No such directory" - fi - done - ;; - q*|Q*) - drive=q - ;; - \?*) - echo - echo "Enter: To:" - echo "------ ---" - echo " a Read from floppy drive A:" - echo " b Read from floppy drive B:" - echo " c Read from MS-DOS hard drive C:" - echo " ab Alternate between A: and B:, starting with A:" - echo " ba Alternate between A: and B:, starting with B:" - echo " q Quit" - echo - ;; - esac - done - verbose=-v - interactive=-i - if [ "$drive" = "C" ]; then - dir=${msdos_dir} - elif [ "$drive" != "q" ]; then - dir=/tmp/floppy - [ -d $dir ] && umount $dir >/dev/null 2>&1 - [ -f $dir ] && rm -f $dir - mkdir -p $dir - fi - while [ "$drive" != "q" ] - do - device=/dev/fd0 - [ "$drive" = "B" ] && device=/dev/fd1 - [ "$drive" = "C" ] && device=${msdos_device} - echo; - if [ "$drive" != "C" ]; then - echo "Insert floppy in drive $drive:, then press RETURN to copy files," - echo -n "or enter option (? for help): " - else - echo -n "Press RETURN to copy files, or enter option (? for help): " - fi - read answer junk - case "${answer:-g}" in - c*|C*) - if [ "$drive" != "C" ]; then - echo "Cannot change directory: not reading from MS-DOS drive C:" - else - echo - echo -n "Read from which MS-DOS drive C: directory? [/${subdir}] " - read resp junk - [ ! "$resp" ] && resp="/$subdir" - absolute=`expr X"$resp" : 'X[Cc]*:*\([/\]\)'` - subsub=$(echo "${resp}" | \ - awk '{ sub(/^[Cc]*:*/, ""); gsub(/\\/, "/"); gsub(/^\/*/, ""); gsub(/\/*$/, ""); print $0 }') - if [ "$absolute" -o ! "$subdir" ]; then - newsub=$subsub - else - newsub=$subdir/$subsub - fi - if [ -d ${dir}/${newsub} ]; then - subdir=$newsub - else - echo "C:/${newsub}: No such directory" - fi - fi - ;; - g*|G*) - sync - if [ "$drive" = "C" ]; then - [ "$verbose" ] && - { echo; echo "Copying files from MS-DOS C:/${subdir}"; } - cp ${msdos_dir}/${subdir}/* . - sync - elif mount -t pcfs $verbose $device $dir; then - [ "$verbose" ] && - { echo; echo "Copying files to disk..."; } - cp $interactive $dir/* . - sync - umount $dir - tmp=$drive; drive=$altdrive; altdrive=$tmp - fi - ;; - i*|I*) - tmp=$interactive; interactive=; [ -z "$tmp" ] && interactive=-i - tmp=on; [ -z "$interactive" ] && tmp=off - echo "interactive mode is $tmp" - ;; - l*|L*) - sync - [ "$verbose" ] && echo "Directory of ${drive}:/${subdir}" - if [ "$drive" = "C" ]; then - ls -l $dir/${subdir} - else - umount $dir >/dev/null 2>&1 - if mount -t pcfs $device $dir; then - ls -l $dir/${subdir} - umount $dir - fi - fi - ;; - o*|O*) - tmp=$drive; drive=$altdrive; altdrive=$tmp - ;; - q*|Q*) - drive=q - ;; - s*|S*) - echo; echo -n "tmp_dir is set to $tmp_dir" - [ "$tmp_dir" != "`pwd`" ] && echo -n " (physically `pwd`)" - echo; echo "Free space in tmp_dir:" - df -k . - echo -n "Reading from drive $drive:" - [ "$drive" != "$altdrive" ] && echo -n " and drive $altdrive:" - echo - tmp=on; [ -z "$verbose" ] && tmp=off - echo "Verbose mode is $tmp" - tmp=on; [ -z "$interactive" ] && tmp=off - echo "Interactive mode is $tmp" - ;; - v*|V*) - tmp=$verbose; verbose=; [ -z "$tmp" ] && verbose=-v - tmp=on; [ -z "$verbose" ] && tmp=off - echo "verbose mode is $tmp" - ;; - \?) - echo - echo "Enter: To:" - echo "----- ---" - echo "(just RETURN) Copy files from ${drive}:/${subdir} to $tmp_dir" - echo " c Change directory of MS-DOS drive C:" - echo " i Toggle interactive mode (cp -i)" - echo " l List directory of current drive" - echo " o Read from alternate floppy drive" - echo " q Quit" - echo " s Show status" - echo " v Toggle verbose mode" - echo - ;; - esac - done - echo "Working directory: `pwd`" - unset verbose answer drive altdrive device dir subdir tmp interactive -} -load_dos -{ - load_fd -} -load_qic_tape() -{ - tmp_dir - echo -n "Insert tape into QIC tape drive and hit return to continue: " - read foo - tar xvf /dev/rwt0 -} -load_scsi_tape() -{ - tmp_dir - echo -n "Insert tape into SCSI tape drive and hit return to continue: " - read foo - tar xvf /dev/nrst0 -} -extract() -{ - tmp_dir - echo -n "Would you like to be verbose about this? [n] " - read verbose - case $verbose in - y*|Y*) - tarverbose=--verbose - ;; - *) - tarverbose= - ;; - esac - #XXX ugly hack to eliminate busy files, copy them to /tmp and use them - #from there... - cp -p /bin/cat /usr/bin/gunzip /usr/bin/tar /tmp - - for i in $*; do - /tmp/cat "$i"* | - /tmp/gunzip | - (cd / ; /tmp/tar --extract --file - --preserve-permissions ${tarverbose} ) - done - rm -f /tmp/cat /tmp/gunzip /tmp/tar - sync -} -configure() -{ - echo "You will now be prompted for information about this" - echo "machine. If you hit return, the default answer (in" - echo "brackets) will be used." - - echo - echo -n "What is this machine's hostname? [unknown.host.domain] " - read hname - - if [ "$hname" = "" ]; then - hname=unknown.host.domain - fi - echo $hname > /etc/myname - proto_domain=`echo $hname | sed -e 's/[^.]*\.//'` - - echo - echo "What domain is this machine in (this is NOT its YP" - echo -n "domain name)? [$proto_domain] " - read dname - - if [ "$dname" = "" ]; then - dname=$proto_domain - fi - - echo - echo -n "Does this machine have an ethernet interface? [y] " - read resp - case "$resp" in - n*) - ;; - *) - intf= - while [ "$intf" = "" ]; do - echo -n "What is the primary interface name (i.e. ed0, etc.)? " - read intf - done - echo -n "What is the hostname for this interface? [$hname] " - read ifname - if [ "$ifname" = "" ]; then - ifname=$hname - fi - ifaddr= - while [ "$ifaddr" = "" ]; do - echo -n "What is the IP address associated with this interface? " - read ifaddr - done - echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \ - >> /etc/hosts - - echo -n "Does this interface have a special netmask? [n] " - read resp - case "$resp" in - y*) - echo -n "What is the netmask? [0xffffff00] " - read ifnetmask - if [ "$ifnetmask" = "" ]; then - ifnetmask=0xffffff00 - fi - ;; - *) - ifnetmask= - ;; - esac - - echo -n "Does this interface need additional flags? [n] " - read resp - case "$resp" in - y*) - echo -n "What flags? [llc0] " - read ifflags - if [ "$ifflags" = "" ]; then - ifflags=llc0 - fi - ;; - *) - ifflags= - ;; - esac - - echo "inet $ifname netmask $ifnetmask $ifflags" > /etc/hostname.$intf - - echo "" - echo "WARNING: if you have any more ethernet interfaces, you" - echo "will have to configure them by hand. Read the comments" - echo "in /etc/netstart to learn how to do this" - ;; - esac - - sync - - echo - echo "OK. You should be completely set up now." - echo "You should now reboot your machine by issuing the 'reboot' command" - echo "after removing anything that happens to be in your floppy drive." -} diff --git a/etc/etc.i386/install_notes b/etc/etc.i386/install_notes deleted file mode 100644 index 2a9d0d0..0000000 --- a/etc/etc.i386/install_notes +++ /dev/null @@ -1,1056 +0,0 @@ - INSTALLATION NOTES - FreeBSD - Release 1.1 - -These notes have been prepared from those written originally for NetBSD -0.9. The conversion was done by someone who has had experience with -installing and upgrading 386bsd, but who is not a unix guru, so there -will be slant towards this experience. Corrections/updates are -welcomed, it is difficult/impossible to test every last hardware -combination. - -Be sure to read _ALL_ of this document before you try to install -FreeBSD. FreeBSD probably looks a bit similar to things that you've -seen before (perhaps 386BSD), but the installation procedures are quite -different. - - -FreeBSD Release Contents: -------- --- ------- -------- - -The FreeBSD Release consists of the following elements: - -Bootable Kernel-copy floppies - - These disks are bootable and have enough utilities on - board to copy a new kernel to a prepared hard disk. While - they are primarily intended for installing FreeBSD, they - also make upgrading to a new kernel easy: boot from it, - and copy a new kernel to disk. - - You must choose between one of two kernel-copy floppy - images, depending on your disk controller type. The - "kcopy-ah-floppy" image supports the Adaptec 154x and 1742 - SCSI adapters, while "kcopy-bt-floppy" supports the Bustek - 742 and Ultrastore SCSI adapters. For systems with only - MFM, RLL, ESDI or IDE disk controllers, either image can - be used. - -Installation floppies - - In addition to a bootable floppy, currently two additional - disks are required to prepare your hard drive for FreeBSD - and to install the FreeBSD distribution. Like the boot - floppies, these are distributed as binary images. They are - are referred to below as the "filesystem-floppy" and the - "cpio-floppy". - - There is also an optional fourth installation disk referred - to as the "dos-floppy". Unlike the other install disks, - there is no binary image for the dos floppy. Instead this - is a regular MS-DOS-formatted floppy disk containing any - FreeBSD programs you choose to copy to it using mtools or - even the DOS copy command. The most commonly requested - programs have been put in a tools directory at FreeBSD - archives sites. - -Upgrade floppies - - These facilitate upgrading to FreeBSD from any previous - patch-kit level of 386BSD 0.1. They are still in testing, - but should be available by the time you read this from - the tools/upgrade directory at FreeBSD archive sites. - [the current version is: - tools/upgrade/386BSD-to-FreeBSD-update-LATE-BETA.tar.gz] - -FreeBSD distribution sets - - These collections contain the complete FreeBSD system and - utilities in source and binary form. There are three - separate sets: the FreeBSD binaries, the FreeBSD sources, - and the DES sources+binaries. The DES set contains only - crypt(3) code and is subject to U.S.A. export restrictions. - - The binary distribution set can be found in the "binarydist" - subdirectory of the FreeBSD archive sites. It consists - of files named bin_tgz.aa to bin_tgz.db (i.e., 80 files - all told). A CKSUMS file (* see note below) is included - for verifying the integrity of these. - - The source distribution sets can be found in under - "sourcedist" subdirectory of archive sites. It is consists - of files named src_tgz.aa to src_tgz.cp (i.e., 68 files - all told), plus file CKSUMS*. - - Finally, the security distribution set contains - usr/src/libcrypt/*, the source files for the DES encryption - algorithm, and the binaries which depend on it. It can - be found in the "securedist" subdirectory on sites which - choose to carry the complete FreeBSD distribution. - - The individual files in each collection are no more than - 235 Kbytes in size. (The last file is just long enough - to contain the rest of the data for that distribution - set.) - - Each collection is a split, gzip'ed tar archive. They - are reassembled and extracted by the install procedure. - However, to view them without installing FreeBSD, you can - use, e.g., the command line: - - cat bin* | gunzip | tar tvf - | more - - or to extract the files themselves: - - cat bin* | gunzip | tar xvfp - - - Using this method, the files are extracted in the current - directory. So to install the binary distribution, for - instance, you have to run the "tar xvfp" from the root - directory (/). - - In each of the distribution directories, there is a file - named "CKSUMS" which contains the checksums of the files - in that directory, as generated by the cksum(1) command. - You can use cksum to verify the integrity of the archives, - if you suspect one of the files is corrupted. - - N.B.: The CKSUMS files are produced using the 4.4BSD - version of cksum which is POSIX-compliant. The values in - these file do not match the cksums generated by the 386BSD 0.1 - version of cksum (which is based on an earlier "standard"). - A copy of the new cksum binary that will run on - 386bsd/Netbsd/FreeBSD can be found in the "tools" subdirectory - of the distribution. - - -System Requirements and Supported Devices: ------- ------------ --- --------- ------- - -FreeBSD runs on ISA (AT-Bus) and EISA systems, with 386 and 486 -processors, with or without math coprocessors. It does NOT support -Micro-channel systems, such as some IBM PS/2 systems. The minimal -configuration includes 4Meg of RAM, and an 80Meg hard disk, but to -install the entire system you'll need much more disk space, and to run -X or compile the system more RAM is recommended. (4Meg will actually -allow you to run X and/or compile, but it's extremely slow.) - -Supported devices include: - - Standard floppy controllers - - Standard hard disk controllers: - MFM - ESDI - IDE - RLL - - SCSI hard disk controllers: - Adaptec 154x series * [kcopy-ah-floppy] - Adaptec 174x series - Buslogic 545S - Bustek 742 (EISA) [kcopy-bt-floppy] - DTC 3290 in 1542 emulation mode * - Ultrastor 14f and 34f - - * Your system can NOT have more than 16MB of memory with - these controllers. - - Display Adaptors: - MDA - CGA - VGA (and SVGA) - HGC - - Serial communications ports - 8250 - 16450 - 16550A - [4-port multi-serial cards - require kernel built - with MULTI_PORT option] - [We do not support the Intel 82501 serial chip used - in some PC's at this time] - - Ethernet controllers - SMC/WD 8003, 8013, and equivalents - (including the SMC "Elite" series) - Novell NE1000, NE2000, NE2100 - 3COM 3c503 - ISOLAN ISOLink - - Tape drives: - QIC-02 format tape drives - most SCSI tape/DAT drives - [an early QIC-40 or QIC-80 tape driver exists, - but is not yet incorporated into FreeBSD] - - CD-ROM drives: - Mitsumi CDROM drive with Mitsumi Controller - Most SCSI CD-ROM drives on a supported SCSI controller - -To be detected by the distributed kernels, the devices must -be configured as follows: (Note: IRQ 9 is the same as IRQ 2 -on ISA/EISA based machines) - -Device Name Port IRQ DRQ Misc ------- ---- ---- --- --- ---- -Floppy Cntlr. fd0 0x3f0 6 2 - -Std. Hard Disk Cntlr. - wd0 0x1f0 14 - -AHA-154x SCSI Cntlr. 0x330 11 5 [kcopy-ah-floppy] - -AHA-174x SCSI Cntlr. automatically configured [kcopy-ah-floppy] - -BT742 SCSI Cntlr. 0x330 12 [kcopy-bt-floppy] - -UHA-14f SCSI Cntlr. or -UHA-34f SCSI Cntlr. 0x330 14 5 [kcopy-bt-floppy] -(In FreeBSD GAMMA and before, UHA was on IRQ 11) - -SCSI Disks sd[0-2] automatically configured - -SCSI Tapes st[01] automatically configured - -SCSI CD-ROMs cd0 automatically configured - -Serial Ports com0 0x3f8 4 - com1 0x2f8 3 - com2 0x3e8 5 - com3 0x3f8 9 - -SMC/WD Ethernet or -3COM 3c503 ed0 0x280 5 iomem 0xd8000 - -NOTE for 386bsd users: the we0 device for the WD80xxyy card has been -replaced with an ed0 device. The default settings of 9/280/d000 have -been changed to 5/280/d800 as this address accomdates all of the boards. - -Novell Ethernet ed0 0x280 5 - -NOTE for 386bsd users: the ne0 device for the NEx000 card has been -replaced with an ed0 device. The default settings of 9/300 have -been changed to 5/280. - -ISOLAN ISOLink is0 0x280 10 7 -Novell NE2100 is0 0x280 10 7 - -QIC-02 Tape wt0 0x300 5 1 - -Parallel (Printer) Port - lpt0 0x3BC 7 - -Interruptless Parallel (Printer) Port - lpa0 0x378 - lpa1 0x278 - -N.B.: Disable the lpt interrupt on the board or you will -have problems using the lpa drivers. - -Hard-Disk Storage Requirements ---------- ------- ------------ - -The minimum base installation of FreeBSD requires a free hard disk -partition with at least 16 MB free space. This is only enough for -the three installation disks, which don't support a multi-user -shell. - -The full binary distribution extracts to about 46 MB. -The full source distribution extracts to about 72 MB. -The kernel source only extracts to about 7 MB. -To recompile the sources requires an additional 55 MB. -To recompile the kernel requires an additional 2 MB. - -Since additional room is required for extracting the distributions, -a full binary installation requires a minimum of about 80 MB (46 -MB extracted + 16 MB archived + 8 MB minimum swap + room for -extracting). - -A complete source + binary distribution requires a minimum of -about 210 MB (assuming a minimum 8 MB swap). - - -Getting the System on to Useful Media: -------- --- ------ -- -- ------ ----- - -Installation is supported from several media types, including: - - MS-DOS floppies - MS-DOS hard disk (Primary partition) - Tape - NFS partitions - FTP - Kermit - -No matter what you do, however, you'll need at least three disks (1.2M -or 1.44M) handy, on which you will put the kernel-copy image and the -install (or upgrade) floppy images. - -The images are available from the directory "floppies", under the root -of the FreeBSD/FreeBSD-1.1 tree at your favorite archive site. -They're available both as raw disk images, and gzipped, to save time -downloading. - -If you are using an AHA-154x or AHA-1742 SCSI host adapter, you need -the kcopy-ah-floppy image. If you're using a BT-742 SCSI host adapter -or an Ultrastor adaptor, then you'll need the kcopy-bt-floppy image. -If you're using MFM/RLL/IDE disk controllers, you can use either -kernel-copy floppy image. - -If you are using UNIX to make the floppies, you should use the command -dd(1) to write the raw floppy images (i.e., kcopy-ah-floppy or -kcopy-bt-floppy, filesystem-floppy and cpio-floppy) to the floppies. -For example, to write kcopy-ah-floppy to a 5.25" 1.2 Mb floppy -disk under 386BSD, use: - - $ dd if=kcopy-ah-floppy of=/dev/fd0a bs=30b count=80 - -or for a 3.5" 1.44 Mb floppy: - - $ dd if=kcopy-ah-floppy of=/dev/fd0a bs=36b count=80 - -If you are using DOS to make the floppies, use the rawrite.exe -utility. This can be found in the "tools" subdirectory of the -archive site. Copy rawrite.exe and the binary images to a DOS -disk, type "rawrite" under MS-DOS and follow the instructions. -Rawrite can write binary images to either 1.2MB or 1.44MB -MS-DOS-formatted floppies. - -Any other programs from the tools directory that might be needed -for installing FreeBSD, such as kermit, should be copied to a DOS- -formatted floppy (1.2MB or 1.44MB). Under 386BSD, they can be -copied to floppy using the mcopy command. Under DOS, use the DOS -copy command. - -The steps necessary to prepare the distribution sets for installation -depend on which method of installation you choose. The various methods -are explained below. - -To prepare for installing via MS-DOS hard disk: - - To prepare FreeBSD for installaton from the MS-DOS C: drive - of the hard disk, you need to do the following: - - If FreeBSD is installed on a hard disk containing - a Primary MS-DOS partition (as opposed to an - Extended DOS partition), then the FreeBSD distribution - files can be read directly from DOS. Preparation - is just a matter of copying the FreeBSD distribution - files onto DOS C: drive of the hard disk. - - If FreeBSD is installed on a separate hard disk than - MS-DOS, it is not currently possible to read the FreeBSD - distribution files directly from DOS. In this case, - a different medium should be used. - - Once you have the files on the C: drive, you can proceed to the - next step in the installation process, viz preparing your hard - disk. - -To prepare for installing via MS-DOS floppies: - - To prepare FreeBSD for installaton from MS-DOS floppies, you - need to do the following: - - Count the number of "<set>_tgz.xx" files - you have (these are split, gzip'ed, tar - archives). Call this number N. You will - need N/6 1.44M floppies, or N/5 1.2M - floppies to install the distribution - in this manner. For the set of bin files - (i.e., 80 files) and 1.2 Mb floppies you will - need 16 disks. - - Format all of the floppies, with MS-DOS. - Don't make any of them MS-DOS bootable - floppies (i.e., don't use "format /s"!) - If you use "format /u" then the format - will run a tad faster. - - Copy all of the "<set>_tgz.xx" files on - the DOS disks. Under DOS use the DOS copy - command. Under 386BSD, use, for instance, - the make_floppies script: - - #!/bin/sh - N_PER_DISK=5 - - x=$N_PER_DISK - for dist in bin_tgz.*; do - if [ $x -ge $N_PER_DISK ]; then - x=0 - echo -n "Insert next disk, " - echo -n "and press ENTER... " - read reply - mdel a:/\* - fi - mcopy $dist a:/ - x=`expr $x + 1` - done - - (Or you might use tar instead). - - Once you have the files on DOS disks, you can proceed to the - next step in the installation process, viz preparing your hard - disk. - -To prepare for installing via a tape: - - To install FreeBSD from a tape, you need to be somehow - to get the FreeBSD filesets you wish to install on - your system on to the appropriate kind of tape, - in tar format. - - If you're making the tape on a UN*X system, the easiest - way to do so is: - - tar cvf <tape_device> <files> - - where "<tape_device>" is the name of the tape device - that describes the tape drive you're using (either - /dev/rst0 for SCSI tape, otherwise /dev/rwt0). - If you can't figure it out, ask your system administrator. - "<files>" are the names of the "<set>.tar.gz.xx" files - which you want to be placed on the tape. - - If your tape drive is not a type recognzed by the - kernel, then it may be necessary to set the tape density - using either the st(1) command (for SCSI tape) or the - mt(1) command. Both these programs are available from - the tools directory of the FreeBSD archive site. - -To prepare for installing via an NFS partition: - - NOTE: this method of installation is recommended - only for those already familiar with using - the BSD network-manipulation commands and - interfaces. If you aren't, this documentation - should help, but is not intended to be - all-encompassing. - - Place the FreeBSD software you wish to install into - a directory on an NFS server, and make that directory - mountable by the machine which you will be installing - FreeBSD on. This will probably require modifying the - /etc/exports file of the NFS server and resetting - mountd, acts which will require superuser privileges. - Make a note of the numeric IP address of the NFS server - and make a note of the router closest to the the new - FreeBSD machine if the NFS server is not on a network - which is directly attached to the FreeBSD machine. - - Once you have done this, you can proceed to the next - step in the installation process, preparing your hard disk. - -To prepare for installing via FTP: - - NOTE: this method of installation is recommended - only for those already familiar with using - the BSD network-manipulation commands and - interfaces. If you aren't, this documentation - should help, but is not intended to be - all-encompassing. - - The preparations for this method of installation - are easy: all you have to do is make sure that - there's some FTP site from which you can retrieve - the FreeBSD installation when it's time to do - the install. You should know the numeric IP - address of that site, and the numeric IP address of - your nearest router if the new FreeBSD computer is - not on the same net or subnet as the FTP site. - - Once you have done this, you can proceed to the next - step in the installation process, preparing your hard disk. - -To prepare for installing via Kermit: - - The preparations for this method of installation - require that the kermit program be put on the - dos-floppy installation disk. This will be - loaded as part of the minimum base installation. - Kermit is available from tools directory of the - FreeBSD FTP site. This is a FreeBSD binary and - only executes under the FreeBSD operating system. - - Once you have done this, you can proceed to the next - step in the installation process, preparing your hard disk. - -To upgrade: - - (The beta upgrade script is available on request from - FreeBSD-questions@freefall.cdrom.com) - -Preparing your Hard Disk for FreeBSD Installation: ---------- ---- ---- ---- --- ------ ------------ - -NOTE: If you wish to install FreeBSD on your whole drive, (i.e. you do -not want DOS or any other operating system on your hard disk), you can -skip this section, and go on to "Installing the FreeBSD System." - -Firstly, be sure you have a reliable backup of any data which you may -want to keep; repartitioning your hard drive is an excellent way to -destroy important data. - -WARNING: If you are using a disk controller which supports disk -geometry translation, BE SURE TO USE THE SAME PARAMETERS FOR FreeBSD AS -FOR DOS! If you do not, FreeBSD will not be able to properly coexist -with DOS. - -Secondly, make sure your disk has at least 16 Mbytes free space (or -80 Mbytes for the complete binary distribition). - -You are now set to install FreeBSD on your hard drive. - -Installing the FreeBSD System: ----------- --- ------ ------ - -If DOS or OS/2 is already installed on the hard disk, installation should -be easy. By default FreeBSD is installed after the last DOS or OS/2 -partition. Otherwise, you may need to specify your hard disk's geometry -(i.e., number of cylinders, heads and sectors per track). - -For computing partition sizes, it might help to have a calculator handy. - -And it's finally time to install the system! - -The following is a walk-through of the steps necessary to get FreeBSD -installed on your hard disk. If you wish to stop the installation, you -may hit Control-C at any prompt and then type `halt'. - - Boot from the kcopy-ah or kcopy-bt floppy, depending on - your hard disk controller type. - - When prompted to insert the filesystem floppy, remove the - kcopy floppy from the drive and insert filesystem floppy - and hit any key. - N.B.: The filesystem floppy must not be write protected. - - [When booting, if no message prompt appears after a - reasonable period of time, reboot and try it again. If - this doesn't work, try disabling your CPU's internal and - external caches, and then try to boot again. If there is - still no message prompt, then you can't install FreeBSD - on your hardware. If you were able to install 386bsd, - this is definitely a bug in our software; please report - it! Please include your system configuration, and any - other relevant information in your bug report.] - - The boot sequence continues after the filesystem floppy - has been inserted. A copyright notice is displayed along - with a list of the hardware that FreeBSD recognizes as - being in your machine. You might want to make a note of - the disk values for cylinders, heads, sectors etc for - later use. - - After a short while (approximately 30 to 60 seconds), you - should see a welcome message and a prompt, asking if you - wish to proceed with the installation. - - If you wish to proceed, enter "y" and then return. - - You will then be asked what type of disk drive you have. - The valid options are listed on the screen (e.g., SCSI, ESDI). - - You will then be asked for a label name for your disk. - This should be a short, one-word name for your disk, - e.g., "cp3100-mine" for a Conner Peripherals "3100" disk. - You needn't remember this name. - - Next, you will be prompted for the geometry information. - The default values should be correct, in which case just - hit ENTER to accept them. Otherwise enter the values - that were displayed during the boot sequence as they are - requested. - - The default size of the FreeBSD portion of the disk - is the maximum available at the end of the disk (which may - be the whole disk). Accept the default by hitting ENTER. - Otherwise, enter an appropriate value using the information - displayed. - - If you are not installing on the whole disk, you will be - asked for the offset of the FreeBSD partition from the - beginning of the disk. Again, hit ENTER to accept the - default, or enter a cylinder offset from the beginning of - the disk. - - You will then be asked for the size of your root partition, - in cylinders. The suggested maximum size is 15 Mbytes - which is used as a default. Accept this, or enter a - suitable value (after converting to cylinders using the - formula displayed). - - Next, you will be asked for the size of your swap partition - - again, you must calculate this in cylinders. You should - probably allocate around twice as much swap space as you - have RAM memory. If you wish the system to save crash dumps - when it panics, you will need at least as much swap as you - have RAM. - - The install program will then ask you for information about - the rest of the partitions you want on your disk. For the - purposes of this document, you only want one more: /usr. - Therefore, at the prompt, when in asks you to enter the size - of the next partition, enter the number of cylinders remaining - in the FreeBSD portion of the disk. When it asks you for the - mount point for this partition, say "/usr". - - After the FreeBSD partition have been assigned, install checks - the disk for an MS-DOS partition. If one exists, you are prompted - whether to make this accessible from FreeBSD (i.e., for reading - and writing). And if you choose to make the DOS partition - accessible, you are prompted for what directory it should - be mounted on. "/dos" is used by default. With this - choice, you could copy the contents of the DOS root - directory (i.e., C:\), for instance, with the Unix command: - - # cp /dos/* . - - If have you a DOS partition and you don't want it visible - from FreeBSD, just respond with "n" when asked whether to - make it accessible. - - YOU ARE NOW AT THE POINT OF NO RETURN. - - If you confirm that you want to install FreeBSD, your hard - drive will be modified, and perhaps it contents scrambled at - the whim of the install program. This is especially likely - if you gave the install program incorrect information. - Enter "no" at the prompt to get the option of redoing the - configuration, using your previous choices as defaults. - - If you are sure you want to proceed, enter "yes" at the prompt. - - The install program now makes the filesystems you specified. - If all goes well, there should be no errors in this section - of the installation. If there are, restart from the the - beginning of the installation process. - - After the installation program prompts you to see if you'd - like to be told about all of the files it's going to copy - to your hard drive, it will spend a few minutes copying these - files and then will print out an informative message and - place you at a "#" prompt. - - Read the message and note which partition (e.g., sd0a or wd0a) - you need to copy a kernel to. Reboot the machine off the - kcopy-xx-floppy disk, but this time at the prompt asking - you to insert a file system floppy, do _not_ replace the - floppy, just press <enter>. - - At the "kc>" prompt, enter "copy" to prepare to copy the - kernel on the floppy to your hard disk. - - At the next "kc>" prompt, enter the disk partition to which - you want to copy the kernel. (e.g., sd0a or wd0a). - - It will work for a minute or two, then present you with - another "#" prompt. Follow the instructions given, (i.e., - halt the system) and reboot from the hard disk. You will - probably have to do a hardware reset or else your ethernet - card might not be recognised at reboot (e.g., if you have a - WD8003EP card). - - When the machine boots, a three-line banner should appear at - the top of the screen. In a few seconds, a series of - messages will appear, describing the hardware in your machine. - Once again, this stage can take up to two minutes, so DO NOT - PANIC! - - You will be asked to insert the cpio-floppy into a floppy - drive, and enter that drive's number. "0" corresponds to - DOS's "A:" drive, "1" corresponds to DOS's "B:" drive. - - After you enter the number it will ask you if you'd like to - watch its progress, and after you answer this question it - will begin installing still more files on your hard disk. - This should take no more than 3 minutes. - - You are given the option to load the dos-floppy disk. - In particular, if you want to use kermit for downloading - the distribution, the dos-floppy should have the kermit - binary. Or if you are using SCSI tape, the dos-floppy should - contain the st command. - - To load the dos-floppy, remove the cpio-floppy from the - drive, insert the dos-floppy and enter a "yes" response - at the prompt. Otherwise, enter "no" at the prompt. - - After the dos-floppy has been loaded, you are given (more) - instructions, (e.g., to halt the system) and you should - reboot the machine again, from the hard drive and probably - with a hardware reset to kick your ethernet card back into - life. - - CONGRATULATIONS: You now have the minimum base of FreeBSD - files on your hard disk! Now you get to install the - distribution file sets. Remember that, at minimum, you must - install the bin.tar.gz.xx file set (see below for - instructions). - - After the machine is done booting, you will be presented - with a screenful of information about what to do next. - - What you do from this point on depends on which media you're - using to install FreeBSD. Follow the appropriate - instructions, given below. - - To install from MS-DOS hard disk partition, floppy or tape: - - The first thing you should do is to choose a temporary - directory where the distribution files can be stored. - To do this, use the command "set_tmp_dir" and enter - your choice. The default is /usr/distrib. - - After you have chosen a temporary directory, - you should issue the appropriate load command: - - load_dos - for loading from a MS-DOS hard disk - partition, or from floppies, - - load_qic_tape - for loading from QIC-02 tape, or - - load_scsi_tape - for you're loading from the first - SCSI tape drive in the system. - - If loading from tape, it may be necessary to first - set the default density using the mt or st command. - The low-density device (/dev/rst0 or /dev/rmt0) - is used by the load_xx_tape command, so to prepare - a SCSI device for reading QIC-150 tape, you might use: - - # st -f /dev/nrst0 rewind - # st -f /dev/nrst0 low_dnsty 16 - # load_scsi_tape - - If loading from floppy or hard disk, the load_dos - command prompts for information, such as to which - floppy drive or hard disk directory to load from. - Additional options are available, e.g., for listing - and, if loading from hard disk, changing source - directories. - - Go to the directory which contains the first - distribution set you wish to install. This is - either the directory you specified above, if using - load_dos, or possibly a subdirectory of that - directory, if you loaded from tape. - - When there, run "set_tmp_dir" again, and choose - the default temporary directory, by hitting - return at the prompt. - - Run the "extract" command, giving it as its sole - argument the name of the distribution set you - wish to extract. For example, to extract the binary - distribution, use the command: - - extract bin - - and to extract the source distribution: - - extract src - - After the extraction is complete, go to the location - of the next set you want to extract, "set_tmp_dir" - again, and once again issue the appropriate - extract command. Continue this process until - you've finished installing all of the sets which you - desire to have on your hard disk. - - After each set is finished, if you know that you - are running low on space you can remove the - distribution files for that set by saying: - - rm <set>* - - For example, if you wish to remove the distribution - files for the binarydist set, after the "extract bin" - command has completed, issue the command: - - rm bin* - - Once you have extracted all sets and are at the "#" prompt - again, proceed to the section "Configuring Your System," - below. - - To install via FTP or NFS: - - First you must decide on a temporary directory to hold - the <set>.tar.gz.xx files. The directory /usr/distrib - is suggested. You should cd to it, if necessary do - a mkdir first. Use set_tmp_dir to identify this - directory to the install process. - - Configure the appropriate ethernet interface (e.g. ed0, - ne0, etc.) up, with a command like: - - ifconfig <ifname> <ipaddr> [netmask <netmask>] - - where <ifname> is the interface name (e.g. ed0, etc.), - and <ipaddr> is the numeric IP address of the interface. - If the interface has a special netmask, supply - the word "netmask" and that netmask at the end of the - command line. For instance, without a special netmask: - - ifconfig ed0 129.133.10.10 - - or with a special netmask - - ifconfig ed0 128.32.240.167 netmask 0xffffff00 - - or the equivalent - - ifconfig ed0 128.32.240.167 netmask 255.255.255.0 - - If you are using the AUI connector on a 3C503 card, you - must also set the LLC0 flag (the default is to use the BNC - connector): - - ifconfig ed0 130.252.23.86 llc0 - - If the NFS server or FTP server is not on a directly- - connected network, you should set up a route to it - with the command: - - route add default <gate_ipaddr> - - where <gate_ipaddr> is your gateway's numeric IP address. - - If you are NFS-mounting the distribution sets, - mount them on the temporary directory with the command: - - mount -t nfs <serv_ipaddr>:<dist_dir> <tmp_dir> - - where <serv_ipaddr> is the server's numeric IP address, - <dist_dir> is the path to the distribution files on - the server, and <tmp_dir> is the name of the local - temporary directory (e.g., /usr/distrib). Proceed as if - you had loaded the files from tape, "cd"ing to the - appropriate directories and running "set_tmp_dir" and - "extract" as appropriate. - - If you are retrieving the distribution sets using ftp, - cd into the temp directory, and execute the command: - - ftp <serv_ipaddr> - - where <serv_ipaddr> is the server's numeric IP address. - Get the files with FTP, taking care to use binary mode - to transfer all files. A simple set of commands is - - ftp <serv_ipaddr> - user ftp - passwd <user-id>@ - hash - binary - prompt - cd <where/the/binarydist/files/are> - mget * - cd <where/the/sourcedist/files/are> - mget * - quit - - Once you have all of the files for the distribution sets - that you wish to install, you can proceed using the - instructions above as if you had installed the files - from a floppy. - - To install via Kermit: - - First you must decide on a temporary directory to hold - the <set>.tar.gz.xx files. The directory /usr/distrib - is suggested. You should cd to it, if necessary do - a mkdir first. Use set_tmp_dir to identify this - directory to the install process. - - Invoke kermit and dial the remote kermit server. - A typical session might be: - # stty -f /dev/sio01 clocal - # kermit - C-Kermit> set file type binary - C-Kermit> set line /dev/sio01 - C-Kermit> set baud 9600 - C-Kermit> set receive packet 740 - C-Kermit> set window 4 - C-Kermit> set block 2 - C-Kermit> connect - Connecting to /dev/sio01, speed 9600. - The escape character is Ctrl-\ (ASCII 28, FS) - Type the escape character followed by C to get back, - or followed by ? to see other options. - atdt 1234567 <-- dial the remote - Connect 9600 - login: mylogin <-- login to the remote - [...] - remote$ kermit -ix <-- remote kermit as binary server - [...] - ^\C <-- return to local kermit - C-Kermit> get bin_tgz* <-- request files from remote - [...] (wait long for transfer to complete) - C-Kermit> finish <-- terminate remote server - C-Kermit> connect - C-Kermit> exit <-- exit remote kermit - remote$ exit <-- exit remote host - ^\C <-- return to local kermit - C-Kermit> exit <-- exit local kermit - - At this point the binary distribution should be - downloaded to the FreeBSD system. Run the "extract" - command, giving it as its sole argument the name - of the distribution set you wish to extract. For - example, to extract the binary distribution, use - the command: - - extract bin - - and to extract the source distribution: - - extract src - - After the extraction is complete, go to the location - of the next set you want to extract, "set_tmp_dir" - again, and once again issue the appropriate - extract command. Continue this process until - you've finished installing all of the sets which you - desire to have on your hard disk. - - After each set is finished, if you know that you - are running low on space you can remove the - distribution files for that set by saying: - - rm <set>* - - For example, if you wish to remove the distribution - files for the binarydist set, after the "extract bin" - command has completed, issue the command: - - rm bin* - - Once you have extracted all sets and are at the "#" prompt - again, proceed to the section "Configuring Your System," - below. - - -Further Tips on Installing FreeBSD -------- ---- -- ---------- ------- - - You might wish to install the binarydist first, get that - working, and then at a later point in time have a go at - installing the sourcedist. BEFORE YOU REBOOT AFTER INSTALLING - THE BINARYDIS, you must preserve the commands that do the - extracting. They are kept in the single-user-mode .profile - file called /.profile. Proceed like this: - - mv /.profile /.profile.install - ln /root/.profile /.profile - - When you are ready to install the sourcedist at some time - in the future, get into multi-user mode (i.e., the normal - means of running FreeBSD) and issue these commands: - - cp /.profile.install /.profile - shutdown now - - This will cause the system to go into single-user mode, and - the install profile will be active (i.e., you will find the - commands load_dos, extract etc available to you again). - - If your disk has several operating systems, you may want - to install a boot manager such as Thomas Wolfram's os-bs - for selecting which system to boot. os-bs135.exe and other - boot managers are available from the tools directory of - the FreeBSD FTP site. os-bs works well with DOS, OS/2, - FreeBSD and other systems, however, it cannot currently - be used to boot FreeBSD from a second hard disk. Another - boot manager, such as boot-easy should be used. - - To install, for instance, os-bs, boot the system with - MS-DOS and insert the dos-floppy containing os-bs135.exe - in floppy drive A:. Then enter the DOS commands: - > A: - > os-bs135 - > cd os-bs - > os-bs - A menu should now appear on the screen. Use the cursor keys - to highlight the install option, hit ENTER, and follow the - instructions from there. - - For more information about the ob-bs program, including its - capabilities and limitations, see the file `readme.1st' in the - os-bs directory. - - If your disk has several operating systems and you choose - not to install os-bs, then fdisk can be used to change - the boot system. This is done by making the primary - partition for the boot system active. FreeBSD has an - fdisk command that can be used for this purpose as well. - - -Configuring Your System: ------------ ---- ------ - -Once you have finished extracting all of the distribution sets that you -want on your hard drive and are back at the "#" prompt, you are ready -to configure your system. - -The configuration utility expects that you have installed the base -system. If you have not, you will not be able to run it successfully -(nor will you have a functional system regardless of configuration). - -To configure the newly installed operating system, run the command -"configure". - -Configure will ask for the machine's hostname, domain name, and other -network configuration information. You should check that configure has -set up the following files correctly: - - /etc/netstart - /etc/myname - -Once you have supplied configure all that it requests, your machine -will be configured well enough that when you reboot it it will be a -completely functional FreeBSD system. It is not completely configured, -however; you should adjust the /etc/sendmail.cf file as necessary to -suit your site and/or disable sendmail in /etc/rc and you should look -in /etc/netstart to make sure the flags are defined correctly for your -site. You might wish to set up several other tcp/ip files, such as - - /etc/resolv.conf - /etc/networks - -Once you are done with configuration, reboot with the "reboot" command. - -When it boots off of the hard drive, you will have a complete FreeBSD -system! CONGRATULATIONS! (You really deserve them!!!) - - -Administrivia: -------------- - -Registration? What's that? - -If you've got something to say, do so! We'd like your input. - -Please send random comments to: - - FreeBSD-questions@freefall.cdrom.com - -Please send bug reports, and that sort of material to: - - FreeBSD-bugs@freefall.cdrom.com - -If you'd like to help with this effort, and have an idea as to how -you could be useful, send mail to: - - FreeBSD-hackers@freefall.cdrom.com - -THANKS FOR USING THIS; that's what makes it all worthwhile. - -[a favor: Please avoid mailing huge documents or files to these mailing lists, - as they will end up in our personal mail spools. We will be - happy to make other arrangements] - -This is $Id: install_notes,v 1.13 1994/02/22 17:11:27 rgrimes Exp $ diff --git a/etc/etc.i386/kc.profile b/etc/etc.i386/kc.profile deleted file mode 100644 index 1bc715b..0000000 --- a/etc/etc.i386/kc.profile +++ /dev/null @@ -1,80 +0,0 @@ -# $Id: kc.profile,v 1.6 1994/02/21 21:52:00 rgrimes Exp $ -# -# rc for kernel distribution floppy - -PATH=/bin:/sbin -export PATH - -reboot_it() { - echo "" - echo "halting the machine..." - halt - echo "Halt failed! Try power-cycling the machine..." - exit 1 -} - -bail_out() { - echo "" - echo "Time to reboot the machine!" - echo "Once the machine has halted (it'll tell you when)," - echo "remove the floppy from the disk drive and press" - echo "any key to reboot." - reboot_it -} - -echo "" -echo "" -echo Enter '"copy"' at the prompt to copy the kernel on this -echo floppy to your hard disk. enter anything else to reboot, -echo but wait for the machine to restart to remove the floppy. -echo "" -echo -n "kc> " - -read todo - -if [ X"$todo" = Xcopy ]; then - echo "" - echo "What disk partition should the kernel be installed on?" - echo "(e.g., "wd0a", "sd0a", etc.)" - echo "" - echo -n "copy kernel to> " - while :; do - read diskpart junk - [ -c /dev/r$diskpart ] && break - echo "${diskpart}: invalid partition" - echo - echo -n "copy kernel to> " - done - echo "" - echo "Checking the filesystem on $diskpart..." - fsck -y /dev/r$diskpart - if [ $? -ne 0 ]; then - echo "" - echo "fsck failed... Sorry, can't copy kernel!" - bail_out - fi - echo -n "Mounting $diskpart on /mnt... " - mount /dev/$diskpart /mnt - if [ $? -ne 0 ]; then - echo "" - echo "mount failed... Sorry, can't copy kernel!" - bail_out - fi - echo "done." - echo -n "Copying kernel... " - cp -p /kernel /mnt - if [ $? -ne 0 ]; then - echo "failed... (?!?!?!)" - bail_out - fi - echo "done." - echo -n "Unmounting $diskpart... " - umount /mnt > /dev/null 2>&1 - if [ $? -ne 0 ]; then - echo -n "failed... Shouldn't be a problem... " - fi - echo "done." - bail_out -fi - -reboot_it diff --git a/etc/manpath.config b/etc/manpath.config deleted file mode 100644 index f6e6d68..0000000 --- a/etc/manpath.config +++ /dev/null @@ -1,30 +0,0 @@ -# manpath.config -# -# This file is read by manpath to configure the mandatory manpath, to -# map each path element to a manpath element and to determine where the -# "man" binary lives. The format is: -# -# MANBIN pathname -# MANDATORY_MANPATH manpath_element -# MANPATH_MAP path_element manpath_element -# -# MANBIN is optional -# -#MANBIN /usr/bin/man -# -# every automatically generated MANPATH includes these fields -# -MANDATORY_MANPATH /usr/share/man -MANDATORY_MANPATH /usr/local/man -MANDATORY_MANPATH /usr/X386/man -#MANDATORY_MANPATH /usr/X11R6/man -# -# set up PATH to MANPATH mapping -# -MANPATH_MAP /bin /usr/share/man -MANPATH_MAP /usr/bin /usr/share/man -MANPATH_MAP /usr/ucb /usr/share/man -MANPATH_MAP /usr/local/mh /usr/local/mh/man -MANPATH_MAP /usr/local/bin /usr/local/man -MANPATH_MAP /usr/X386/bin /usr/X386/man -#MANPATH_MAP /usr/X11R6/bin /usr/X11R6/man diff --git a/etc/myname b/etc/myname deleted file mode 100644 index a0d6cce..0000000 --- a/etc/myname +++ /dev/null @@ -1 +0,0 @@ -myname.my.domain diff --git a/etc/namedb/root.cache b/etc/namedb/root.cache deleted file mode 100644 index 56e5d72..0000000 --- a/etc/namedb/root.cache +++ /dev/null @@ -1,26 +0,0 @@ -; Updated from ns.internic.net root NS record 21.3.1995 by wollman -; -; $Id$ - -; Initial cache data for root domain servers. -. IN NS NS.INTERNIC.NET. - IN NS AOS.ARL.ARMY.MIL. - IN NS NS1.ISI.EDU. - IN NS C.PSI.NET. - IN NS TERP.UMD.EDU. - IN NS NS.NASA.GOV. - IN NS NIC.NORDU.NET. - IN NS NS.ISC.ORG. - IN NS NS.NIC.DDN.MIL. - -; Prep the cache (hotwire the addresses). Order does not matter. -NS.INTERNIC.NET. IN A 198.41.0.4 -AOS.ARL.ARMY.MIL. IN A 128.63.4.82 - IN A 192.5.25.82 -NS1.ISI.EDU. IN A 128.9.0.107 -C.PSI.NET. IN A 192.33.4.12 -TERP.UMD.EDU. IN A 128.8.10.90 -NS.NASA.GOV. IN A 128.102.16.10 - IN A 192.52.195.10 -NIC.NORDU.NET. IN A 192.36.148.17 -NS.ISC.ORG. IN A 192.5.5.241 diff --git a/etc/passwd b/etc/passwd deleted file mode 100644 index e004afe..0000000 --- a/etc/passwd +++ /dev/null @@ -1,10 +0,0 @@ -root:*:0:0:Charlie &:/root:/bin/csh -toor:*:0:0:Bourne-again Superuser:/root: -daemon:*:1:31:The devil himself:/root: -operator:*:2:20:System &:/usr/guest/operator:/bin/csh -bin:*:3:7:Binaries Commands and Source,,,:/:/dev/null -games:*:7:13:Games pseudo-user:/usr/games: -uucp:*:66:1:UNIX-to-UNIX Copy:/var/spool/uucppublic:/usr/lib/uucp/uucico -ingres:*:267:74:& Group:/usr/ingres:/bin/csh -falcon:*:32766:31:Prof. Steven &:/usr/games:/usr/games/wargames -nobody:*:32767:9999:Unprivileged user:/nonexistent:/dev/null diff --git a/etc/rc.maint b/etc/rc.maint deleted file mode 100644 index 8311df1b..0000000 --- a/etc/rc.maint +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh -# $Id: rc.maint,v 1.3 1995/03/29 03:30:22 jkh Exp $ -# From: @(#)rc 5.27 (Berkeley) 6/5/91 - -# Various maintainance tasks to be done as the system is coming up - -# /var/crash should be a directory or a symbolic link -# to the crash directory if core dumps are to be saved. -if [ "X${savecore}" = X"YES" -a -d /var/crash ]; then - echo; echo -n checking for core dump... - savecore /var/crash - echo done. -fi - -# clean up left-over files -rm -f /etc/nologin -rm -f /var/spool/lock/* -rm -f /var/spool/uucp/.Temp/* - -# clean out the old utmp file. -(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; }) - -# Check the quotas -if [ "X${check_quotas}" = X"YES" ]; then - echo 'checking quotas:' - quotacheck -a - echo ' done.' - quotaon -a -fi - -# build ps databases -kvm_mkdb -dev_mkdb - -# snapshot any kernel -c changes back to disk -echo 'check for kernel -c changes' -/sbin/dset -q - -# Whack the pty perms back into shape. -chmod 666 /dev/tty[pqrs]* - -# check the password temp/lock file -if [ -f /etc/ptmp ] -then - logger -s -p auth.err \ - "password file may be incorrect -- /etc/ptmp exists" -fi - -# Recover vi editor files. -virecovery=/var/tmp/vi.recover/recover.* -if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then - echo 'Recovering vi editor sessions' - for i in $virecovery; do - sendmail -t < $i - done -fi - -echo clearing /tmp - -# prune quickly with one rm, then use find to clean up /tmp/[lq]* -# (not needed with mfs /tmp, but doesn't hurt there...) -(cd /tmp && rm -rf [a-km-pr-zA-Z]* && - find -d . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;) - -if [ "X${accounting}" = X"YES" -a -d /var/account ]; then - echo 'turning on accounting'; accton /var/account/acct -fi diff --git a/etc/rc.netstart b/etc/rc.netstart deleted file mode 100644 index 7a211f4..0000000 --- a/etc/rc.netstart +++ /dev/null @@ -1,141 +0,0 @@ -#!/bin/sh - -# -# $Id: netstart,v 1.23 1995/03/22 18:00:35 jkh Exp $ -# From: @(#)netstart 5.9 (Berkeley) 3/30/91 - -# my-name is my symbolic name -# my-netmask is specified in /etc/networks -# -if [ -z "`hostname -s`" ] ; then - hostname $hostname -fi - -# Set the domainname if we're using NIS -if [ -z "`domainname`" -a -e "/etc/defaultdomain" ] ; then - domainname=`cat /etc/defaultdomain` - domainname $domainname -fi - -for i in /etc/hostname.* -do - ifn=`expr $i : '/etc/hostname\.\(.*\)'` - if [ -e /etc/hostname.$ifn ]; then - if [ -e /etc/start_if.$ifn ]; then - sh /etc/start_if.$ifn $ifn - fi - ifconfig $ifn `cat /etc/hostname.$ifn` - ifconfig $ifn - fi -done - -# set the address for the loopback interface -ifconfig lo0 inet localhost - -# set interface for multicasts to default interface -# this needs to happen before router discovery -route add 224.0.0.0 -netmask 0xf0000000 -interface $hostname - -if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then - route add default $defaultrouter -elif [ -f /etc/defaultrouter ] ; then - route add default `cat /etc/defaultrouter` -fi - -# use loopback, not the wire -# route add $hostname localhost - -echo -n starting network daemons: - -# Portmapper should always be run, to provide RPC services for inetd. -if [ -x /usr/sbin/portmap ]; then - echo -n ' portmap'; portmap -fi - -# $gated and $routedflags are imported from /etc/sysconfig. -# If $gated == YES, gated is used; otherwise routed. -# If $routedflags == NO, routed isn't run. -if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then - echo -n ' gated'; gated $gatedflags -elif [ "X${routedflags}" != X"NO" ]; then - echo -n ' routed'; routed $routedflags -fi - -# $namedflags is imported from /etc/sysconfig -if [ "X${namedflags}" != "XNO" ]; then - echo -n ' named'; named $namedflags -fi - -# $ntpdate and $xntpdflags are imported from /etc/sysconfig. -# If $ntpdate != NO, run ntpdate $ntpdate to set the date correctly. -# If $xntpdflags != NO, start xntpd. -if [ "X${ntpdate}" != X"NO" -o "X${xntpdflags}" != X"NO" ]; then - if [ "X${tickadjflags}" != X"NO" ]; then - echo -n ' tickadj'; tickadj ${tickadjflags--Aq} - fi - - if [ "X${ntpdate}" != X"NO" ]; then - echo -n ' ntpdate'; ntpdate ${ntpdate} - fi - - if [ "X${xntpdflags}" != X"NO" ]; then - echo -n ' xntpd'; xntpd ${xntpdflags} - fi -fi - -# $timedflags is imported from /etc/sysconfig; -# if $timedflags == NO, timed isn't run. -if [ "X${timedflags}" != X"NO" ]; then - echo -n ' timed'; timed $timedflags -fi - -# $rwhod is imported from /etc/sysconfig; -# if $rwhod is set to YES, rwhod is run. -if [ "X${rwhod}" = X"YES" ]; then - echo -n ' rwhod'; rwhod -fi - -if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then - echo -n ' mountd'; mountd - echo -n ' nfsd'; nfsd -u -t 4 -fi - -if [ "X${nfs_client}" = X"YES" ]; then - echo -n ' nfsiod'; nfsiod -n 4 -fi - -if [ "X${amdflags}" != X"NO" ]; then - echo -n ' amd'; amd ${amdflags} -fi - -# $sendmail_flags is imported from /etc/sysconfig; -# if $sendmail_flags is something other than NO, sendmail is run. -if [ "X${sendmail_flags}" != X"NO" -a -r /etc/sendmail.cf ]; then - echo -n ' sendmail'; sendmail ${sendmail_flags} -fi - -# Kerberos runs ONLY on the Kerberos server machine -if [ "X${kerberos_server}" = X"YES" ]; then - echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & - echo -n ' kadmind'; \ - (sleep 20; /usr/sbin/kadmind -n >/dev/null 2>&1 &) & -fi - -# Start ypserv if we're an NIS server. -# Run yppasswdd only on the NIS master server -if [ "X${nis_serverflags}" != X"NO" ]; then - echo -n ' ypserv'; ypserv ${nis_serverflags} - - if [ "X${yppasswddflags}" != X"NO" ]; then - echo -n ' yppasswdd'; yppasswdd ${yppasswddflags} - fi -fi - - -# Start ypbind if we're an NIS client -if [ "X${nis_clientflags}" != X"NO" ]; then - echo -n ' ypbind'; ypbind ${nis_clientflags} -fi - -echo -n ' inetd'; inetd -echo '.' - diff --git a/etc/skey.access b/etc/skey.access deleted file mode 100644 index ad0245f..0000000 --- a/etc/skey.access +++ /dev/null @@ -1,30 +0,0 @@ -# This file controls whether UNIX passwords are to be permitted. Rules -# are matched in order, and the search terminates when the first matching -# rule has been found. -# -# Each rule has the form: -# -# permit condition condition... -# deny condition condition... -# -# Where "permit" or "deny" may be followed by zero or more conditions. -# -# A rule is matched when all conditions are satisfied. A rule without -# conditions is always satisfied. -# -# Examples of conditions are: -# -# hostname wzv.win.tue.nl -# internet 131.155.210.0 255.255.255.0 -# port ttya -# user root -# group wheel -# -# The old S/Key form (permit/deny netnumber netmask) is still supported. -# -#permit user uugiga # uucp login via modem or internet -#permit port ttyb # local -#permit port console # local -#deny # anything else - -permit # permit plaintext passwords all the time diff --git a/etc/userids b/etc/userids deleted file mode 100644 index 3cda32f..0000000 --- a/etc/userids +++ /dev/null @@ -1 +0,0 @@ -515 |