INSTALLATION NOTES for OpenBSD/amiga 2.0 What is OpenBSD? ---------------- OpenBSD is a Berkeley Networking Release 2 (Net/2) and 4.4BSD-Lite -derived Operating System. It is a fully functional UN*X-like system which runs on many architectures and is being ported to more. Continuing the multi-platform tradition, OpenBSD has added ports to mvme68k and arc machines. Kernel interfaces have continued to be refined, and now several subsystems and device drivers are shared among the different ports. You can look for this trend to continue. Security of the system as a whole has been significantly improved. Source code for all critical system components has been checked for remote-access, local-access, denial-of-service, data destruction, or information-gathering problems. OpenBSD 2.0 has significantly enhanced the binary emulation subsystem (which includes iBCS2, Linux, OSF/1, SunOS, SVR4, Solaris and Ultrix compatibility) and several kernel subsystems have been generalized to support this more readily. The binary emulation strategy is aimed at making the emulation as accurate as possible. Cryptography components are part of OpenBSD. OpenBSD is from Canada, and export of these pieces (such as kerberosIV) to the world is not restricted. Many new user programs have been added in OpenBSD 2.0, as well, bringing it closer to our goal of supplying a complete UN*X-like environment. Tools like perl and ksh are standard, as are numerous other useful tools. This is the first public release of OpenBSD for the Amiga line of computers. Several graphics, SCSI and network boards are supported. Sources of OpenBSD: ------------------- Host name Services Provided ---- ---- -------- -------- If you wish to become a distribution site for OpenBSD, contact mirrors@openbsd.org. OpenBSD 2.0 Release Contents: ----------------------------- The OpenBSD 2.0 release is organized in the following way: .../2.0/ src/ Source distribution sets; see below. In addition to the files and directories listed above, there is one directory per architecture, for each of the architectures that OpenBSD 2.0 has a binary distribution for. (That is described further along in this document). The source distribution sets can be found in subdirectories of the "source" subdirectory of the distribution tree. They contain the complete sources to the system. The source distribution sets are as follows: gsrc11 This set contains the "gnu" sources, including the source for the compiler, assembler, groff, and the other GNU utilities in the binary distribution sets. [ 7.1M gzipped, 30.4M uncompressed ] ksrc11 This set contains the sources to the OpenBSD 2.0 kernel, config(8), config.old(8) and dbsym(8). [ 6.0M gzipped, 27.0M uncompressed ] ssrc11 This set contains the "share" sources, which include the sources for the man pages not associated with any particular program, the sources for the typesettable document set, the dictionaries, and more. [ 2.4M gzipped, 8.9M uncompressed ] src11 This set contains all of the OpenBSD 2.0 sources which are not mentioned above. [ 9.3M gzipped, 41.6M uncompressed ] It is worth noting that unless all of the source distribution sets are installed (except the domestic set), you can't rebuild and install the system from scratch, straight out of the box. However, all that is required to rebuild the system in that case is a trivial modification to one Makefile. The source distribution sets are distributed as groups of files named "set_name.xx" where "set_name" is the distribution set name, and "xx" is the sequence number of the file, starting with "aa" for the first file in the distribution set, then "ab" for the next, and so on. All of these files except the last one of each set should be exactly 240,640 bytes long. (The last file is just long enough to contain the remainder of the data for that distribution set.) Catted together, the files belonging to a source distribution set comprise a gzipped tar file. If you want to look at list of the files contained in the set, you could use the command: cd /usr/src; cat set_name.?? | tar tvfz - or to actually extract the files contained in the set: cd /usr/src; cat set_name.?? | tar xfpz - In each of the source distribution set directories, there are two files named "CKSUMS" and "MD5" which contain the checksums of the files in that directory, as generated by the cksum(1) and md5(1) utilities respectively. If you suspect that one of the files is corrupt and have access to a cksum or md5 binary, you can compare their output to the "CKSUMS" or "MD5" file. The amiga-specific portion of the OpenBSD 2.0 release is found in the "amiga" subdirectory of the distribution. That subdirectory is layed out as follows: .../2.0/amiga/ INSTALL.amiga This file. kernels/ A generic OpenBSD kernel is found here. miniroots/ amiga installation and upgrade file system images; see below. tars/ amiga binary distribution sets; see below. tars.split/ amiga binary distribution sets splitted in 80k parts. utils/ Miscellaneous amiga installation utilities; see installation section, below. There are two amiga file system images to be found in the "amiga/miniroots" subdirectory of the OpenBSD 2.0 distribution. One of them is a upgrade image and one is an installation image. They are described in more detail below. There are gzipped versions of each available, for easier downloading. (The gzipped version have the ".gz" extension added to their names.) Installation file system: This file contains a BSD root file system setup to help you install the rest of OpenBSD. This includes formatting and mounting your root and /usr partitions and getting ready to extract (and possibly first fetching) the distribution sets. There is enough on this file system to allow you to make a slip or ppp connection, configure an ethernet, mount an NFS file system or ftp. You can also load distribution sets from a SCSI tape or from one of your existing AmigaDOS partitions. This file is named "inst-20.fs". Upgrade file system: This file contains a BSD root file system setup to help you upgrade a previous version of OpenBSD. This includes converting existing partitions and mounting your root and /usr partitions and getting ready to extract (and possibly first fetching) the distribution sets. There is enough on this file system to allow you to make a slip or ppp connection, configure an ethernet, mount an NFS file system or ftp. You can also load distribution sets from a SCSI tape, from one of your existing AmigaDOS partitions, or from an existing OpenBSD partition. This file is named "upgr-20.fs". The OpenBSD/amiga binary distribution sets contain the binaries which comprise the OpenBSD 2.0 release for the amiga. There are seven binary distribution sets. The binary distribution sets can be found in subdirectories of the "amiga/tars" subdirectory of the OpenBSD 2.0 distribution tree, and are as follows (all have ".tar.gz" appended to the name given in the table below): base20 The OpenBSD/amiga 2.0 base binary distribution. You MUST install this distribution set. It contains the base OpenBSD utilities that are necessary for the system to run and be minimally functional. It includes shared library support, and excludes everything described below. [ 11M gzipped, 35M uncompressed ] comp20 The OpenBSD/amiga Compiler tools. All of the tools relating to C, C++, and FORTRAN (yes, there are two!). This set includes the system include files (/usr/include), the linker, the compiler tool chain, and the various system libraries (except the shared libraries, which are included as part of the base set). This set also includes the manual pages for all of the utilities it contains, as well as the system call and library manual pages. [ 7M gzipped, 23M uncompressed ] etc20 This distribution set contains the system configuration files that reside in /etc and in several other places. This set MUST be installed if you are installing the system from scratch, but should NOT be used if you are upgrading. (If you are upgrading, it's recommended that you get a copy of this set and CAREFULLY upgrade your configuration files by hand.) [ 70K gzipped, 380K uncompressed ] games20 This set includes the games and their manual pages. [ 3M gzipped, 7M uncompressed ] man20 This set includes all of the manual pages for the binaries and other software contained in the base set. Note that it does not include any of the manual pages that are included in the other sets. [ 2M gzipped, 8M uncompressed ] misc20 This set includes the system dictionaries (which are rather large), the typesettable document set, and man pages for other architectures which happen to be installed from the source tree by default. [ 2M gzipped, 6M uncompressed ] text20 This set includes OpenBSD's text processing tools, including groff, all related programs, and their manual pages. [ 1M gzipped, 4M uncompressed ] The amiga binary distribution sets are distributed in the same form as the source distribution sets; catted together, the members of a set form a gzipped tar file. Each amiga binary distribution set also has its own "CKSUMS" file, just as the source distribution sets do. The instructions given for extracting the source sets work equally well for the binary sets, but it is worth noting that if you use that method, the files are extracted "below" the current directory. That is, if you want to extract the binaries "into" your system, i.e. replace the system binaries with them, you have to run the "tar xvfp" from /. OpenBSD System Requirements and Supported Devices: -------------------------------------------------- OpenBSD/amiga 2.0 runs on any amiga that has a 68020, 68030 or 68040 CPU with some form of FPU and MMU. The minimal configuration requires 4M of RAM and about 75M of disk space. To install the entire system requires much more disk space, and to run X or compile the system, more RAM is recommended. (4M of RAM will actually allow you to compile, however it won't be speedy. X really isn't usable on a 4M system.) Here is a table of recommended HD partition sizes for a full install: partition: advise, with X, needed, with X root (/) 20M 20M 15M 15M user (/usr) 95M 130M 75M 110M swap ---- 1MB for every MB RAM ---- -- but the sum of swap and --- - RAM should be at least 16 -- As you may note the recommended size of /usr is 20M greater than needed. This is to leave room for a kernel source and compile tree as you will probably want to compile your own kernel. (GENERIC and INSTALL are large and bulky to accommodate all people). If you only have 4M of fast memory, you should make your swap partition larger, as your system will be doing much more swapping. Supported devices include: A4000/A1200 IDE controller. ISA IDE & ATAPI (but with limitations) with a supported ISA bridge. SCSI host adapters: 33c93 based boards: A2091, A3000 and GVP series II. 53c80 based boards: 12 Gauge, IVS and Wordsync/Bytesync. 53c710 based boards: A4091, Magnum, Warp Engine and Zeus. FAS216 based boards: FastLane Z3, Blizzard. Video controllers: ECS, AGA and A2024 built in on various amigas. Retina Z2 and Retina Z3. Picasso II. GVP Spectrum. Piccolo. A2410. Cybervision 64. Ethernet controllers: A2065 Ethernet Hydra Ethernet ASDG Ethernet A4066 Ethernet Ariadne Ethernet Quicknet Ethernet Via a supported ISA bridge: NE[12]000, SMC/WD 8003/8013/8216, 3COM 3c503 Ethernet Arcnet controllers: A2060 Arcnet Tape drives: Most SCSI tape drives, including Archive Viper, Cipher SCSI-2 ST150. CD-ROM drives: Most SCSI CD-ROM drives Serial ports: Amiga serial port. MultiFaceCard II and III A2232 PC COM ports attached to a supported ISA bridge Parallel ports: Amiga parallel port. PC LPT ports attached to a supported ISA bridge ISA bridges: The GoldenGate Bus+ (aka GG2) The CrossLink Amiga floppy drives. Amiga mouse. If its not on this list, there is no support for it in this release. Getting the OpenBSD System on to Useful Media: ---------------------------------------------- Installation is supported from several media types, including: AmigaDOS HD partitions Tape NFS partitions FTP OpenBSD partitions, if doing an upgrade. The install or upgrade miniroot filesystem needs to be transferred to the OpenBSD swap partition. This can be done from AmigaDOS in the case of a new install or upgrade, or from OpenBSD when doing an upgrade. See the "Preparing your System for OpenBSD Installation" section for details. 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 an AmigaDOS partition: To install OpenBSD from an AmigaDOS partition, you need to get the OpenBSD distribution sets you wish to install on your system on to an AmigaDOS partition. All of the set_name.xx pieces can be placed in a single directory instead of separate ones for each distribution set. This will also simplify the installation work later on. Note where you place the files you will need this later. 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 a tape: To install OpenBSD from a tape, you need to somehow get the OpenBSD 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 where "" is the name of the tape device that describes the tape drive you're using (possibly something like /dev/nrst0, but we make no guarantees 8-). If you can't figure it out, ask your system administrator. "" are the names of the "set_name.nnn" files which you want to be placed on the tape. 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 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 OpenBSD 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 OpenBSD on. This will probably require modifying the /etc/exports file of the NFS server and resetting mountd, acts which will require superuser privileges. Note the numeric IP address of the NFS server and of the router closest to the the new OpenBSD machine, if the NFS server is not on a network which is directly attached to the OpenBSD 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 OpenBSD installation when it's time to do the install. You should know the numeric IP address of that site, the numeric IP address of your nearest router if one is necessary Once you have done this, you can proceed to the next step in the installation process, preparing your hard disk. If you are upgrading OpenBSD, you also have the option of installing OpenBSD by putting the new distribution sets somewhere in your existing file system, and using them from there. To do that, you must do the following: Place the distribution sets you wish to upgrade somewhere in your current file system tree. At a bare minimum, you must upgrade the "base" binary distribution, and so must put the "base11" set somewhere in your file system. If you wish, you can do the other sets, as well, but you should NOT upgrade the "etc" distribution; the "etc" distribution contains system configuration files that you should review and update by hand. Once you have done this, you can proceed to the next step in the upgrade process, actually upgrading your system. Preparing your System for OpenBSD Installation: ----------------------------------------------- You will need an AmigaDOS hard drive prep tool to prepare you hard drives for use with OpenBSD/amiga. HDToolBox is provided with the system software and on floppy installation disks since Release 2.0 of AmigaDOS so we will provide instructions for its use. Preparing you hard disk with HDToolBox: A full explanation of HDToolBox can be found with your AmigaDOS manuals and is beyond the scope of this document. Note you will be modifying your HD's if you mess something up here you could lose everything on all the drives that you configure. It is therefore advised that you: Write down your current configurations. Do this by examining each partition on the drive and the drives parameters (from Change drive type.) Back up the partitions you are keeping. What you need to do is partition your drives; creating at least root, swap and /usr partitions and possibly at least one more for /local if you have the space. (The root and swap partitions must be on the same drive for your initial installation. You can use other configurations after building a customized kernel once your system is running.) This should be done as the HDToolBox manual describes. One thing to note is that if you are not using a Commodore controller you will need to specify the device your SCSI controller uses e.g. if you have a Warp Engine you would: from cli, hdtoolbox warpdrive.device from wb set the tooltype, SCSI_DEVICE_NAME=warpdrive.device The important things you need to do above and beyond normal partitioning includes (from Partition Drive section): Marking all OpenBSD partitions as non-bootable. Changing the file system parameters of the partitions to OpenBSD ones. This must be done from the partitioning section and `Advanced options' must be enabled. To Make the needed changes: - Click the `Adv. Options' button - Click the `Change filesystem' button - Choose `Custom File System' - Turn off `Automount' if on. - Set the dostype to one of these three choices: root partition : 0x4e425207 swap partition : 0x4e425301 other partitions: 0x4e425507 Here `other' refers to other partitions you will format for reading and writing under OpenBSD (e.g. /usr) Make sure you hit the return key to enter this value as some versions of HDToolBox will forget your entry if you don't. - Turn custom boot code off - Set Reserved Blocks start and end to 0. - Click Ok. Mask and maxtransfer are not used with OpenBSD. Until you compile your own kernel your swap partition must exist on the drive that also holds your root partition. Once this is done OpenBSD/amiga will be able to recognize your disks and which partitions it should use. Transferring the miniroot filesystem: The OpenBSD/amiga installation or upgrade now uses a "miniroot" fileystem which is installed on the partition used by OpenBSD for swapping. This removes the requirement of using a floppy disk for the filesystem used by the installation or upgrade process. It also allows more utilities to be present on the filesystem than would be available when using an 880K floppy disk. Once the hard disk has been prepared for OpenBSD, the appropriate miniroot filesystem (inst-20.fs for a new install or upgr-20.fs for an upgrade) is transferred to the swap partition configured during the hard disk prep (or the existing swap parition in the case of an upgrade). The xstreamtodev utility provided in the "amiga/utilities" directory can be used on AmigaDOS to transfer the filesystem for either a new installation or an upgrade. The filesystem can also be transferred on an existing OpenBSD system for an update by using dd. This should only be done after booting OpenBSD into single-user state. It may also be possible to shutdown to single-user, providing that the single-user state processes are not using the swap partition. On AmigaDOS, the command: xstreamtodev --input=inst-20.fs --rdb-name= where is the name you gave to the OpenBSD partition to be used for swapping. Use upgr-20.fs if you are going to do an upgrade of an existing OpenBSD system. If xstreamtodev is unable to determine the SCSI driver device name or the unit number of the specified partition, you may also need to include the option "--device=" and/or "--unit=". To transfer the miniroot using OpenBSD, you should be booted up in single user state on the current OpenBSD system, or use the "shutdown now" command to shutdown to single-uyser state. Then copy the miniroot using dd: dd if=upgr-20.fs of=/dev/rsd0b where /dev/rsd0b should be the device path of the swap partition your system is configured to use. Once the file is copied, reboot back to AmigaDOS to boot the upgrade kernel. NOTE: the release kernel is a "generic" kernel, and requires that the swap partition be on the same device as the root partition. Installing the OpenBSD System: ------------------------------ Installing OpenBSD is a relatively complex process, but, if you have this document in hand and are careful to read and remember the information which is presented to you by the install program, it shouldn't be too much trouble. Before you begin, you must have already prepared your hard disk as detailed in the section on preparing your system for install. The following is a walk-through of the steps necessary to get OpenBSD installed on your hard disk. If you wish to stop the installation, you may hit Control-C at any prompt, but if you do, you'll have to begin again from scratch. Transfer the install miniroot filesystem onto the hard disk partition used by OpenBSD for swapping, as described in the "Preparing your System for OpenBSD Installation" section above. You then need to have "ixemul.library" in your LIBS: directory on AmigaDOS. You also need to have the "loadbsd" program in your command path. If AmigaDOS complains about loadbsd not being an executable file, be sure that the "Execute" protection bit is set. If not, set it with the command: Protect loadbsd add e Next you need to get yourself into OpenBSD by loading the kernel from AmigaDOS with loadbsd like so: loadbsd -b bsd If you have an AGA machine, and your monitor will handle the dblNTSC mode, you may also include the "-A" option to enable the dblNTSC display mode. You should see the screen clear and some information about your system as the kernel configures the hardware. Note which hard disk device(s) are configured (sd0, sd1, etc). Then you will be prompted for a root device. At this time type 'sd0*', where '0' is the device which contains the swap partition you created during the hard disk preparation. If the system should hang after entering the root device, try again with loadbsd -I ff -b bsd This disables synchronous transfer on all SCSI devices. The system should continue to boot. For now ignore WARNING: messages about bad dates in clocks. Eventually you will be asked to enter the pathname of the shell, just hit return. After a short while 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. If you have configured your hard drive[s] correctly it should find the drive and partition that you selected to use as your root. You will be prompted for which device you want to use for your root. If you have multiple disks present with root partitions defined, you will need to be sure you enter the device name of the correct partition you want to install OpenBSD on. YOU ARE NOW AT THE POINT OF NO RETURN. If you confirm that you want to install OpenBSD, your hard drive will be modified, and perhaps its contents scrambled at the whim of the install program. If you are sure you want to proceed, enter "yes" at the prompt. The install program will now make the root filesystem you specified. There should be only one error in this section of the installation. It will look like so: newfs: ioctl (WDINFO): Invalid argument newfs: /dev/rsd0a: can't rewrite disk label If there are any others, restart from the the beginning of the installation process. This error is ok as the Amiga does not write disklabels currently. You should expect this error whenever using newfs. Next the install program will ask you which drive and partition you wish to use as /usr. First it will list the available drives. Choose one. Next it will give you a list of the partitions on that disk along with their sizes, types, etc.. Choose the letter that corresponds to the partition you wish to use for /usr. If you are doing a full install this should be at the very least 45M-50M large. If everything is ok the install program will then format and mount your /usr. If not then it will ask again for a drive and partition. When this completes your root partition will be mounted on /mnt and your /usr partition on /mnt/usr. An fstab will have been created and initialized to correctly mount these two file systems. This fstab will be in /mnt/etc. What you do from this point on depends on which media you're using to install OpenBSD. Follow the appropriate instructions, given below. To install from an AmigaDOS partition: You first need to mount the AmigaDOS partition using the mount_ados command. If e.g. your AmigaDOS partition is the first partition on sd0 you could type: mkdir /mnt/ados mount_ados -o ro /dev/sd0d /mnt/ados You can use `disklabel sd0' to find out what types of partitions are on the disk `sd0'. Next goto the directory in which you stored the distribution sets. If e.g. you stored them in the root directory of the partition: cd /mnt/ados When there, run "Set_tmp_dir" 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 base distribution, use the command: Extract base20 and to extract the games distribution: Extract game20 If the distribution sets are in different directories, you will need to cd to each directory in turn, runing "Set_tmp_dir" and the appropriate "Extract" command(s). Continue this process until you've finished installing all of the sets which you desire to have on your hard disk. Once you have extracted all sets and are at the "#" prompt again, proceed to the section "Configuring Your System," below. To install from tape: The first thing you should do is pick 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 /mnt/usr/distrib. After you have picked a temporary directory, you should issue the load command: Load_tape Next, you will be told to insert the media into the appropriate drive, and hit return. Continue to follow instructions until you are returned to the "#" prompt. Go to the directory which contains the first distribution set you wish to install. This is either the directory you specified above, or possibly a subdirectory of that directory. 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 base distribution, use the command: Extract base20 and to extract the games distribution: Extract game20 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_name.?? For example, if you wish to remove the distribution files for the game09 set, after the "Extract game09" command has completed, issue the command: rm game20.?? 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, use Set_tmp_dir to pick a temporary directory for the installation files. /mnt/usr/distrib is suggested. Configure the appropriate ethernet interface i.e. le0 if you have a 2065 or ed0 if you have a AMIGNET from Hydra Systems. ifconfig [netmask ] where is the interface name (e.g. ed0, etc.), and 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 You should also be able to use SLIP or PPP as the network connection. [XXX instructions for ppp or slip would be usefull perhaps the next release] 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 where 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 : where is the server's numeric IP address, is the path to the distribution files on the server, and is the name of the local temporary directory. Once this is done, 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 where is once again the server's numeric IP address. Get the files with FTP, taking care to use binary mode to transfer all files. Once you have all of the files for the distribution sets you wish to install, you can proceed using the instructions above as if you had installed the files from a tape. 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. Once you have supplied `Configure' all that it requests, your machine will be configured well enough that when you reboot it it will almost be a completely functional OpenBSD system. >>> Copy the kernel from the miniroot filesystem at this point <<< Once you are done with `Configure', halt the system with the "halt" command (wait for "halted" to be displayed) and reboot. Then again boot OpenBSD this time with the command: loadbsd bsd You need to do your final tweeks now. First mount your file systems like so: mount -av Your system is now complete but not completely configured; you should adjust the /etc/sendmail.cf file as necessary to suit your site and/or disable sendmail and other network related programs. These things can be found in /etc/netstart. Use vi, if you installed the man pages you can type `man vi' or `man ed' for instructions on how to use these somewhat non-intuitive editors. You should also put a copy of the bsd kernel in your root partition. This can be done easily by mounting the AmigaDOS partition containing the kernel you used to start OpenBSD and copying the "bsd" file to the root: mount -r -t ados /dev/sd0d /mnt cp /mnt/bsd / (where /dev/sd0d is the AmigaDOS partition where you have bsd, and /mnt/bsd is the appropriate path of the bsd file). Once you are done with the rest of configuration unmount your file systems and halt your system, then reboot: cd / umount -av halt Finally you can now boot your system and it will be completely functional: loadbsd -a bsd When it boots off of the hard drive, you will have a complete OpenBSD system! CONGRATULATIONS! (You really deserve them!!!) Upgrading a previously-installed OpenBSD System: ------------------------------------------------ The upgrade to OpenBSD 2.0 is a binary upgrade; it would be prohibitive to make users upgrade by compiling and installing the 2.0 sources, and it would be very difficult to even compile a set of instructions that allowed them to do so. Because of the various changes to the system, the largest being the 64-bit file size support and shared libraries, it is impractical to upgrade by recompiling from the sources and installing. To do the upgrade, you must have the OpenBSD kernel on AmigaDOS and you must transfer the upgrade filesystem upgr-20.fs onto the swap partition of the OpenBSD hard disk. You must also have at least the "base20" binary distribution set available, so that you can upgrade with it, using one of the upgrade methods described above. Finally, you must have sufficient disk space available to install the new binaries. Since the old binaries are being overwritten in place, you only need space for the new binaries, which weren't previously on the system. If you have a few megabytes free on each of your root and /usr partitions, you should have enough space. Since upgrading involves replacing the kernel, and most of the system binaries, it has the potential to cause data loss. You are strongly advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK, whether on the OpenBSD partition or on another operating system's partition, before beginning the upgrade process. To upgrade your system, follow the following instructions: Transfer the upgrade miniroot filesystem onto the hard disk partition used by OpenBSD for swapping, as described in the "Preparing your System for OpenBSD Installation" section above. Now boot up OpenBSD using the 2.0 kernel using the loadbsd command: loadbsd -b bsd You should see the screen clear and some information about your system as the kernel configures the hardware. Note which hard disk device is configured that contains your root and swap partition. When prompted for the root device, type 'sd0*' (replacing 0 with the disk number that OpenBSD used for your root/swap device). The '*' character indicates that the root filesystem is contained on the swap partition. When you reach the prompt asking you for a shell name, just hit return. You will be presented with some information about the upgrade process and a warning message, and will be asked if you wish to proceed with the upgrade process. If you answer negatively, the upgrade process will stop, and your disk will not be modified. If you answer affirmatively, the upgrade process will begin, and your disk will be modified. You may hit Control-C to stop the upgrade process at any time. However, if you hit it at an inopportune moment, your system may be left in an inconsistent (and possibly unusable) state. You will be asked if you wish to upgrade your file systems to the new file system format. If you do, reply affirmatively. If you don't have your file systems upgraded now, you should probably do it manually after the install process is complete, by using "fsck -c 2". Read the fsck(8) manual page for more details. The upgrade program will then check your root file system, and, if you approved, will upgrade it to the new file system format. It will then mount your root file system on /mnt. If your file systems are being upgraded, the upgrade script will copy the new fsck(8) program to your hard disk and upgrade your remaining file systems. The upgrade program will then mount all of your file systems under /mnt. (In other words, your root partition will be mounted on /mnt, your /usr partition on /mnt/usr, etc.) If you don't already have the OpenBSD distribution sets on your disk, look in the installation section for information on how to transfer them to your disk. Once the distribution sets are transferred to your disk, continue here. (Obviously, if the OpenBSD distribution sets are already on your disk, because you've transferred them before starting the upgrade process, you don't need to transfer them again now!) After the software has been transferred to the machine (or mounted, in the case of upgrading via NFS), change into the directory containing the "base20" distribution set. Once you are there, run the "Set_tmp_dir" command, and hit return at the prompt to select the default answer for the temporary directory's path name. (It should be the path name of the directory that you're in.) Run the command "Extract base20" to upgrade the base distribution. Repeat the above two steps for all of the sets you wish to upgrade. (For each, change into the directory containing the set, run "Set_tmp_dir" and accept the default path name, then run the "Extract " command.) If you were previously using the security distribution set, you MUST upgrade to the new version, or you will not be able to log in when the upgrade process is complete. Similarly, if you were not previously using the security set, you must NOT upgrade to the new version. When you are done upgrading all of the distribution sets you wish to upgrade, issue the command "Cleanup". It will clean up the installation, by remaking some system databases. When it is complete, you should use "halt" to halt the system. You will probably also want to copy the release "bsd" kernel image to your root at some point. Your system has now been upgraded to OpenBSD 2.0. After a new kernel has been copied to your hard disk, your machine is a complete OpenBSD 2.0 system. However, that doesn't mean that you're finished with the upgrade process. There are several things that you should do, or might have to do, to insure that the system works properly. First, if you did not upgrade your file systems to the new file system format during the upgrade process, you may want to do so now, with "fsck -c 2". If you are unsure about the process, it's suggested that you read the fsck(8) manual page. Second, you will probably want to get the etc20 distribution, extract it, and compare its contents with those in your /etc/ directory. You will probably want to replace some of your system configuration files, or incorporate some of the changes in the new versions into yours. Third, you will probably want to update the set of device nodes you have in /dev. If you've changed the contents of /dev by hand, you will need to be careful about this, but if not, you can just cd into /dev, and run the command "sh MAKEDEV all". Fourth, you must deal with certain changes in the formats of some of the configuration files. The most notable change is that the "options" given to many of the file systems in /etc/fstab or by hand have changed, and some of the file systems have changed names. To find out what the new options are, it's suggested that you read the manual page for the file systems' mount commands, for example mount_nfs(8) for NFS. (Note that the information for mounts of type "ufs", i.e. Fast File Systems, are contained in the mount(8) man page.) Finally, you will want to delete old binaries that were part of the version of OpenBSD that you upgraded from and have since been removed from the OpenBSD distribution. You might also want to recompile any locally-built binaries, to take advantage of the shared libraries. (Note that any new binaries that you build will be dynamically linked, and therefore take advantage of the shared libraries, by default. For information on how to make statically linked binaries, see the cc(1) and ld(1) manual pages.) Using online OpenBSD documentation: ----------------------------------- Documentation is available if you first install the manual distribution set. Traditionally, the UN*X "man pages" (documentation) are denoted by 'name(section)'. Some examples of this are intro(1), man(1), apropros(1), passwd(1), and passwd(5). The section numbers group the topics into several categories, but three are of primary interest: user commands are in section 1, file formats are in section 5, and administrative information is in section 8. The 'man' command is used to view the documentation on a topic, and is started by entering 'man [section] topic'. The brackets [] around the section should not be entered, but rather indicate that the section is optional. If you don't ask for a particular section, the topic with the least-numbered section name will be displayed. For instance, after logging in, enter man passwd to read the documentation for passwd(1). To view the documentation for passwd(5), enter man 5 passwd instead. If you are unsure of what man page you are looking for, enter apropos subject-word where "subject-word" is your topic of interest; a list of possibly related man pages will be displayed. Administrivia: -------------- There are various mailing lists available via the mailing list server at . To get help on using the mailing list server, send mail to that address with an empty body, and it will reply with instructions. To report bugs, use the 'sendbug' command shipped with OpenBSD, and fill in as much information about the problem as you can. Good bug reports include lots of details. Additionally, bug reports can be sent by mail to: bugs@OpenBSD.ORG Use of 'sendbug' is encouraged, however, because bugs reported with it are entered into the OpenBSD bugs database, and thus can't slip through the cracks. There are also port-specific mailing lists, to discuss aspects of each port of OpenBSD. Use majordomo to find their addresses. If you're interested in doing a serious amount of work on a specific port, you probably should contact the "owner" of that port (listed below). As a favor, please avoid mailing huge documents or files to these mailing lists. Instead, put the material you would have sent up for FTP somewhere, then mail the appropriate list about it, or, if you'd rather not do that, mail the list saying you'll send the data to those who want it.