Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / release / sysinstall / sysinstall.8
1 .\" Copyright (c) 1997
2 .\"     Jordan Hubbard <jkh@FreeBSD.org>.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY Jordan Hubbard AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL Jordan Hubbard OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD: src/release/sysinstall/sysinstall.8,v 1.31.2.15 2002/07/03 21:19:29 jhb Exp $
26 .\" $DragonFly: src/release/sysinstall/Attic/sysinstall.8,v 1.2 2003/06/17 04:27:21 dillon Exp $
27 .\"
28 .Dd August 9, 1997
29 .Dt SYSINSTALL 8
30 .Os
31 .Sh NAME
32 .Nm sysinstall
33 .Nd system installation and configuration tool
34 .Sh SYNOPSIS
35 .Nm
36 .Op Ar var=value
37 .Op Ar function
38 .Op Ar ...
39 .Sh DESCRIPTION
40 .Nm
41 is a utility for installing and configuring
42 .Fx
43 systems.
44 It is the first utility invoked by the
45 .Fx
46 installation boot
47 floppy and is also copied into
48 .Pa /stand/sysinstall
49 on newly installed
50 .Fx
51 systems for use in later configuring the system.
52 .Pp
53 The
54 .Nm
55 program is generally invoked without arguments for the default
56 behavior, where the main installation/configuration menu is presented.
57 .Pp
58 On those occasions where it is deemed necessary to invoke a subsystem
59 of sysinstall directly, however, it is also possible to do so by
60 naming the appropriate function entry points on the command line.
61 Since this action is essentially identical to running an installation
62 script, each command-line argument corresponding to a line of script,
63 the reader is encouraged to read the section on scripting for more
64 information on this feature.
65 .Sh NOTES
66 .Nm
67 is essentially nothing more than a monolithic C program with
68 the ability to write MBRs and disk labels (through the services
69 of the
70 .Xr libdisk 3
71 library) and install distributions or packages onto new and
72 existing
73 .Fx
74 systems.  It also contains some extra intelligence
75 for running as a replacement for
76 .Xr init 8
77 when it's invoked by the
78 .Fx
79 installation boot procedure.  It
80 assumes very little in the way of additional utility support and
81 performs most file system operations by calling the relevant syscalls
82 (such as
83 .Xr mount 2 )
84 directly.
85 .Pp
86 .Nm
87 currently uses the
88 .Xr dialog 3
89 library to do user interaction with simple ANSI line graphics, color
90 support for which is enabled by either running on a syscons VTY or some
91 other color-capable terminal emulator (newer versions of xterm will support
92 color when using the
93 .Dq xterm-color
94 termcap entry).
95 .Pp
96 This product is currently at the end of its life cycle and will
97 eventually be replaced.
98 .Sh RUNNING SCRIPTS
99 .Nm
100 may be either driven interactively through its various internal menus
101 or run in batch mode, driven by an external script.  Such a script may
102 be loaded and executed in one of 3 ways:
103 .Bl -tag -width Ds
104 .It Sy "LOAD_CONFIG_FILE"
105 If
106 .Nm
107 is compiled with LOAD_CONFIG_FILE set in the environment
108 (or in the Makefile) to some value, then that value will
109 be used as the filename to automatically look for and load
110 when
111 .Nm
112 starts up and with no user interaction required.
113 This option is aimed primarily at large sites who wish to create a
114 single prototype install for multiple machines with largely identical
115 configurations and/or installation options.
116 .It Sy "MAIN MENU"
117 If
118 .Nm
119 is run interactively, that is to say in the default manner, it will
120 bring up a main menu which contains a "load config file" option.
121 Selecting this option will prompt for the name of a script file which
122 it then will attempt to load from a DOS or UFS formatted floppy.
123 .It Sy "COMMAND LINE"
124 Each command line argument is treated as a script directive
125 when
126 .Nm
127 is run in multi-user mode.  Execution ends either by explicit request
128 (e.g. calling the
129 .Ar shutdown
130 directive), upon reaching the end of the argument list or on error.
131 .Pp
132 For example:
133 .Bd -literal
134 /stand/sysinstall _ftpPath=ftp://ziggy/pub/ mediaSetFTP configPackages
135 .Ed
136 .Pp
137 Would initialize
138 .Nm
139 for FTP installation media (using the server `ziggy') and then
140 bring up the package installation editor, exiting when finished.
141 .El
142 .Sh SCRIPT SYNTAX
143 A script is a list of one or more directives, each directive taking
144 the form of:
145 .Pp
146 .Ar var=value
147 .Pp
148 .Ar function
149 .Pp
150 or
151 .Ar #somecomment
152 .Pp
153 Where
154 .Ar var=value
155 is the assignment of some internal
156 .Nm
157 variable, e.g. "ftpPass=FuNkYChiKn", and
158 .Ar function
159 is the name of an internal
160 .Nm
161 function, e.g. "mediaSetFTP", and
162 .Ar #comment
163 is a single-line comment for documentation purposes (ignored by
164 sysinstall).  Each directive must be by itself on a single line,
165 functions taking their arguments by examining known variable names.
166 This requires that you be sure to assign the relevant variables before
167 calling a function which requires them.
168 .Pp
169 The
170 .Ar noError
171 variable can be assigned before each directive: this will cause any error
172 detected while processing the directive itself to be ignored.
173 The value of
174 .Ar noError
175 will automatically reset to the default "unassigned" every time a directive is
176 processed.
177 .Pp
178 When and where a function depends on the settings of one or more variables
179 will be noted in the following table:
180 .Pp
181 .Sy "Function Glossary" :
182 .Pp
183 .Bl -tag -width indent
184 .It configAnonFTP
185 Invoke the Anonymous FTP configuration menu.
186 .Pp
187 .Sy Variables :
188 None
189 .It configRouter
190 Select which routing daemon you wish to use, potentially
191 loading any required 3rd-party routing daemons as necessary.
192 .Pp
193 .Sy Variables :
194 .Bl -tag -width indent
195 .It router
196 can be set to the name of the desired routing daemon,
197 e.g.\&
198 .Dq routed
199 or
200 .Dq gated ,
201 otherwise it is prompted for.
202 .El
203 .It configNFSServer
204 Configure host as an NFS server.
205 .Pp
206 .Sy Variables :
207 None
208 .It configNTP
209 Configure host as a user of the Network Time Protocol.
210 .Pp
211 .Sy Variables :
212 .Bl -tag -width indent
213 .It ntpdate_flags
214 The flags to
215 .Xr ntpdate 8 ,
216 that is to say the name of the server to sync from.
217 .El
218 .It configPCNFSD
219 Configure host to support PC NFS.
220 .Pp
221 .Sy Variables :
222 .Bl -tag -width indent
223 .It pcnfsd_pkg
224 The name of the PCNFSD package to load if necessary (defaults to hard coded
225 version).
226 .El
227 .It configPackages
228 Bring up the interactive package management menu.
229 .Pp
230 .Sy Variables :
231 None
232 .It configUsers
233 Add users and/or groups to the system.
234 .Pp
235 .Sy Variables :
236 None
237 .It configXEnvironment
238 Configure the X display subsystem.
239 .Pp
240 .Sy Variables :
241 None
242 .It diskPartitionEditor
243 Invokes the disk partition (MBR) editor.
244 .Pp
245 .Sy Variables :
246 .Bl -tag -width findx
247 .It geometry
248 The disk geometry, as a cyls/heads/sectors formatted string.  Default: no
249 change to geometry.
250 .It partition
251 Set to disk partitioning type or size, its value being
252 .Ar free
253 in order to use only remaining free space for
254 .Fx ,
255 .Ar all
256 to use the entire disk for
257 .Fx
258 but maintain a proper partition
259 table,
260 .Ar existing
261 to use an existing
262 .Fx
263 partition (first found),
264 .Ar exclusive
265 to use the disk in
266 .Dq dangerously dedicated
267 mode or, finally,
268 .Ar somenumber
269 to allocate
270 .Ar somenumber
271 blocks of available free space to a new
272 .Fx
273 partition.
274 Default:  Interactive mode.
275 .It bootManager
276 is set to one of
277 .Ar boot
278 to signify the installation of a boot manager,
279 .Ar standard
280 to signify installation of a "standard" non-boot MGR DOS
281 MBR or
282 .Ar none
283 to indicate that no change to the boot manager is desired.
284 Default: none.
285 .It diskInteractive
286 If set, bring up the interactive disk partition editor.
287 .El
288 .Pp
289 Note: Nothing is actually written to disk by this function, a explicit call to
290 .Ar diskPartitionWrite
291 being required for that to happen.
292 .It diskPartitionWrite
293 Causes any pending MBR changes (typically from the
294 .Ar diskPartitionEditor
295 function) to be written out.
296 .Pp
297 .Sy Variables :
298 None
299 .It diskLabelEditor
300 Invokes the disk label editor.  This is a bit trickier from a script
301 since you need to essentially label everything inside each
302 .Fx
303 (type 0xA5) partition created by the
304 .Ar diskPartitionEditor
305 function, and that requires knowing a few rules about how things are
306 laid out.  When creating a script to automatically allocate disk space
307 and partition it up, it is suggested that you first perform the
308 installation interactively at least once and take careful notes as to
309 what the slice names will be, then and only then hardwiring them into
310 the script.
311 .Pp
312 For example, let's say you have a SCSI disk on which you've created a new
313 .Fx
314 partition in slice 2 (your DOS partition residing in slice 1).
315 The slice name would be
316 .Ar da0s2
317 for the whole
318 .Fx
319 partition
320 .Ar ( da0s1
321 being your DOS primary
322 partition).  Now let's further assume that you have 500MB in this
323 partition and you want to sub-partition that space into root, swap,
324 var and usr file systems for
325 .Fx .
326 Your invocation of the
327 .Ar diskLabelEditor
328 function might involve setting the following variables:
329 .Bl -tag -width findx
330 .It Li "da0s2-1=ufs 40960 /"
331 A 20MB root file system (all sizes are in 512 byte blocks).
332 .It Li "da0s2-2=swap 131072 /"
333 A 64MB swap partition.
334 .It Li "da0s2-3=ufs 204800 /var"
335 A 100MB /var file system.
336 .It Li "da0s2-4=ufs 0 /usr 1"
337 With the balance of free space (around 316MB) going to the /usr
338 file system and with soft-updates enabled (the argument following
339 the mount point, if non-zero, means to set the soft updates flag).
340 .El
341 .Pp
342 One can also use the
343 .Ar diskLabelEditor
344 for mounting or erasing existing partitions as well as creating new
345 ones.  Using the previous example again, let's say that we also wanted
346 to mount our DOS partition and make sure that an
347 .Pa /etc/fstab
348 entry is created for it in the new installation.  Before calling the
349 .Ar diskLabelEditor
350 function, we simply add an additional line:
351 .Pp
352 .Dl "da0s1=/dos_c N"
353 .Pp
354 before the call.  This tells the label editor that you want to mount
355 the first slice on
356 .Pa /dos_c
357 and not to attempt to newfs it (not that
358 .Nm
359 would attempt this for a DOS partition in any case, but it could just
360 as easily be an existing UFS partition being named here and the 2nd
361 field is non-optional).
362 .Pp
363 You can also set the
364 .Ar diskInteractive
365 variable to request that the disk label editor use an interactive dialog
366 to partition the disk instead of using variables to explicitly layout the
367 disk as described above.
368 .Pp
369 Note:  No file system data is actually written to disk until an
370 explicit call to
371 .Ar diskLabelCommit
372 is made.
373 .It diskLabelCommit
374 Writes out all pending disklabel information and creates and/or mounts any
375 file systems which have requests pending from the
376 .Ar diskLabelEditor
377 function.
378 .Pp
379 .Sy Variables :
380 None
381 .It distReset
382 Resets all selected distributions to the empty set (no distributions selected).
383 .Pp
384 .Sy Variables :
385 None
386 .It distSetCustom
387 Allows the selection of a custom distribution set (e.g. not just on of the
388 existing "canned" sets) with no user interaction.
389 .Pp
390 .Sy Variables :
391 .Bl -tag -width indent
392 .It dists
393 List of distributions to load.  Possible distribution values are:
394 .Bl -tag -width indentxx
395 .It Li bin
396 The base binary distribution.
397 .It Li doc
398 Miscellaneous documentation
399 .It Li games
400 Games
401 .It Li manpages
402 Manual pages (unformatted)
403 .It Li catpages
404 Pre-formatted manual pages
405 .It Li proflibs
406 Profiled libraries for developers.
407 .It Li dict
408 Dictionary information (for tools like spell).
409 .It Li info
410 GNU info files and other extra docs.
411 .It Li crypto
412 Encryption binaries and libraries.
413 .It Li compat1x
414 Compatibility with
415 .Fx
416 1.x
417 .It Li compat20
418 Compatibility with
419 .Fx 2.0
420 .It Li compat21
421 Compatibility with
422 .Fx 2.1
423 .It Li compat22
424 .Fx 2.2
425 and
426 .Fx 3.0
427 a.out binary compatibility
428 .It Li compat3x
429 Compatibility with
430 .Fx
431 3.x
432 (available for
433 .Fx 4.0
434 systems only)
435 .It Li compat4x
436 Compatibility with
437 .Fx
438 4.x
439 (available for
440 earlier releases of
441 .Fx
442 4.x)
443 .It Li ports
444 The ports collection.
445 .It Li krb4
446 KerberosIV binaries.
447 .It Li krb5
448 Kerberos5 binaries.
449 .It Li ssecure
450 /usr/src/secure
451 .It Li sbase
452 /usr/src/[top level files]
453 .It Li scontrib
454 /usr/src/contrib
455 .It Li sgnu
456 /usr/src/gnu
457 .It Li setc
458 /usr/src/etc
459 .It Li sgames
460 /usr/src/games
461 .It Li sinclude
462 /usr/src/include
463 .It Li slib
464 /usr/src/lib
465 .It Li slibexec
466 /usr/src/libexec
467 .It Li srelease
468 /usr/src/release
469 .It Li sbin
470 /usr/src/bin
471 .It Li ssbin
472 /usr/src/sbin
473 .It Li sshare
474 /usr/src/share
475 .It Li ssys
476 /usr/src/sys
477 .It Li subin
478 /usr/src/usr.bin
479 .It Li susbin
480 /usr/src/usr.sbin
481 .It Li ssmailcf
482 /usr/src/usr.sbin/sendmail/cf
483 .It Li XF86-xc
484 XFree86 official sources.
485 .It Li XF86-co
486 XFree86 contributed sources.
487 .It Li Xbin
488 XFree86 binaries.
489 .It Li Xcfg
490 XFree86 configuration files.
491 .It Li Xdoc
492 XFree86 documentation.
493 .It Li Xhtml
494 XFree86 HTML documentation.
495 .It Li Xlib
496 XFree86 libraries.
497 .It Li Xlk98
498 XFree86 server link-kit for PC98 machines.
499 .It Li Xlkit
500 XFree86 server link-kit for standard machines.
501 .It Li Xman
502 XFree86 manual pages.
503 .It Li Xprog
504 XFree86 programmer's distribution.
505 .It Li Xps
506 XFree86 postscript documentation.
507 .It Li Xset
508 XFree86 graphical setup tool.
509 .It Li PC98-Servers/X9480
510 XFree86 PC98 8-bit (256 color) PEGC-480 server.
511 .It Li PC98-Servers/X9EGC
512 XFree86 PC98 4-bit (16 color) EGC server.
513 .It Li PC98-Servers/X9GA9
514 XFree86 PC98 GA-968V4/PCI (S3 968) server.
515 .It Li PC98-Servers/X9GAN
516 XFree86 PC98 GANB-WAP (cirrus) server.
517 .It Li PC98-Servers/X9LPW
518 XFree86 PC98 PowerWindowLB (S3) server.
519 .It Li PC98-Servers/X9MGA
520 [DESCRIPTION MISSING]
521 .It Li PC98-Servers/X9NKV
522 XFree86 PC98 NKV-NEC (cirrus) server.
523 .It Li PC98-Servers/X9NS3
524 XFree86 PC98 NEC (S3) server.
525 .It Li PC98-Servers/X9SPW
526 XFree86 PC98 SKB-PowerWindow (S3) server.
527 .It Li PC98-Servers/X9SVG
528 [DESCRIPTION MISSING]
529 .It Li PC98-Servers/X9TGU
530 XFree86 PC98 Cyber9320 and TGUI9680 server.
531 .It Li PC98-Servers/X9WEP
532 XFree86 PC98 WAB-EP (cirrus) server.
533 .It Li PC98-Servers/X9WS
534 XFree86 PC98 WABS (cirrus) server.
535 .It Li PC98-Servers/X9WSN
536 XFree86 PC98 WSN-A2F (cirrus) server.
537 .It Li Servers/X3DL
538 XFree86 3D Labs server.
539 .It Li Servers/X8514
540 XFree86 8514 server.
541 .It Li Servers/XAGX
542 XFree86 8 bit AGX server.
543 .It Li Servers/XI128
544 XFree86 #9 Imagine I128 server.
545 .It Li Servers/XMa8
546 XFree86 ATI Mach8 server.
547 .It Li Servers/XMa32
548 XFree86 ATI Mach32 server.
549 .It Li Servers/XMa64
550 XFree86 ATI Mach64 server.
551 .It Li Servers/XMono
552 XFree86 monochrome server.
553 .It Li Servers/XP9K
554 XFree86 P9000 server.
555 .It Li Servers/XS3
556 XFree86 S3 server.
557 .It Li Servers/XS3V
558 XFree86 S3 Virge server.
559 .It Li Servers/XSVGA
560 XFree86 SVGA server.
561 .It Li Servers/XVG16
562 XFree86 VGA16 server.
563 .It Li Servers/XW32
564 XFree86 ET4000/W32, /W32i and /W32p server.
565 .It Li Servers/XTGA
566 Server for TGA cards (alpha architecture only).
567 .It Li Servers/Xnest
568 XFree86 nested X server.
569 .It Li Servers/Xvfb
570 XFree86 virtual frame-buffer X server.
571 .It Li Xfnts
572 XFree86 base font set.
573 .It Li Xf100
574 XFree86 100DPI font set.
575 .It Li Xfcyr
576 XFree86 Cyrillic font set.
577 .It Li Xfscl
578 XFree86 scalable font set.
579 .It Li Xfnon
580 XFree86 non-english font set.
581 .It Li Xfsrv
582 XFree86 font server.
583 .El
584 .El
585 .It distSetDeveloper
586 Selects the standard Developer's distribution set.
587 .Pp
588 .Sy Variables :
589 None
590 .It distSetXDeveloper
591 Selects the standard X Developer's distribution set.
592 .Pp
593 .Sy Variables :
594 None
595 .It distSetKernDeveloper
596 Selects the standard kernel Developer's distribution set.
597 .Pp
598 .Sy Variables :
599 None
600 .It distSetUser
601 Selects the standard user distribution set.
602 .Pp
603 .Sy Variables :
604 None
605 .It distSetXUser
606 Selects the standard X user's distribution set.
607 .Pp
608 .Sy Variables :
609 None
610 .It distSetMinimum
611 Selects the very minimum distribution set.
612 .Pp
613 .Sy Variables :
614 None
615 .It distSetEverything
616 Selects the full whack - all available distributions.
617 .Pp
618 .Sy Variables :
619 None
620 .It distSetCRYPTO
621 Interactively select encryption subcomponents.
622 .Pp
623 .Sy Variables :
624 None
625 .It distSetSrc
626 Interactively select source subcomponents.
627 .Pp
628 .Sy Variables :
629 None
630 .It distSetXF86
631 Interactively select XFree86 subcomponents.
632 .Pp
633 .Sy Variables :
634 None
635 .It distExtractAll
636 Install all currently selected distributions (requires that
637 media device also be selected).
638 .Pp
639 .Sy Variables :
640 None
641 .It docBrowser
642 Install (if necessary) an HTML documentation browser and go to the
643 HTML documentation submenu.
644 .Pp
645 .Sy Variables :
646 .Bl -tag -width indent
647 .It browserPackage
648 The name of the browser package to try and install as necessary.
649 Defaults to latest links package.
650 .It browserBinary
651 The name of the browser binary itself (if overriding the
652 .Ar browserPackage
653 variable).  Defaults to links.
654 .El
655 .It installCommit
656 Commit any and all pending changes to disk.  This function
657 is essentially shorthand for a number of more granular "commit"
658 functions.
659 .Pp
660 .Sy Variables :
661 None
662 .It installExpress
663 Start an "express" installation, asking few questions of
664 the user.
665 .Pp
666 .Sy Variables :
667 None
668 .It installStandard
669 Start a "standard" installation, the most user-friendly
670 installation type available.
671 .Pp
672 .Sy Variables :
673 None
674 .It installUpgrade
675 Start an upgrade installation.
676 .Pp
677 .Sy Variables :
678 None
679 .It installFixitHoloShell
680 Start up the "emergency holographic shell" over on VTY4
681 if running as init.  This will also happen automatically
682 as part of the installation process unless
683 .Ar noHoloShell
684 is set.
685 .Pp
686 .Sy Variables :
687 None
688 .It installFixitCDROM
689 Go into "fixit" mode, assuming a live file system CDROM
690 currently in the drive.
691 .Pp
692 .Sy Variables :
693 None
694 .It installFixitFloppy
695 Go into "fixit" mode, assuming an available fixit floppy
696 disk (user will be prompted for it).
697 .Pp
698 .Sy Variables :
699 None
700 .It installFilesystems
701 Do just the file system initialization part of an install.
702 .Pp
703 .Sy Variables :
704 None
705 .It installVarDefaults
706 Initialize all variables to their defaults, overriding any
707 previous settings.
708 .Pp
709 .Sy Variables :
710 None
711 .It loadConfig
712 Sort of like an #include statement, it allows you to load one
713 configuration file from another.
714 .Pp
715 .Sy Variables :
716 .Bl -tag -width indent
717 .It configFile
718 The fully qualified pathname of the file to load.
719 .El
720 .It mediaClose
721 If a media device is open, close it.
722 .Pp
723 .Sy Variables :
724 None
725 .It mediaSetCDROM
726 Select a
727 .Fx
728 CDROM as the installation media.
729 .Pp
730 .Sy Variables :
731 None
732 .It mediaSetFloppy
733 Select a pre-made floppy installation set as the installation media.
734 .Pp
735 .Sy Variables :
736 None
737 .It mediaSetDOS
738 Select an existing DOS primary partition as the installation media.
739 The first primary partition found is used (e.g. C:).
740 .Pp
741 .Sy Variables :
742 None
743 .It mediaSetTape
744 Select a tape device as the installation media.
745 .Pp
746 .Sy Variables :
747 None
748 .It mediaSetFTP
749 Select an FTP site as the installation media.
750 .Pp
751 .Sy Variables :
752 .Bl -tag -width indent
753 .It hostname
754 The name of the host being installed (non-optional).
755 .It domainname
756 The domain name of the host being installed (optional).
757 .It defaultrouter
758 The default router for this host (non-optional).
759 .It netDev
760 Which host interface to use
761 .Ar ( ed0
762 or
763 .Ar ep0 ,
764 for example.  Non-optional).
765 .It netInteractive
766 If set, bring up the interactive network setup form even
767 if all relevant configuration variables are already set (optional).
768 .It ipaddr
769 The IP address for the selected host interface (non-optional).
770 .It netmask
771 The netmask for the selected host interface (non-optional).
772 .It _ftpPath
773 The fully qualified URL of the FTP site containing the
774 .Fx
775 distribution you're interested in, e.g.\&
776 .Ar ftp://ftp.FreeBSD.org/pub/FreeBSD/ .
777 .El
778 .It mediaSetFTPActive
779 Alias for
780 .Ar mediaSetFTP
781 using "active" FTP transfer mode.
782 .Pp
783 .Sy Variables :
784 Same as for
785 .Ar mediaSetFTP .
786 .It mediaSetFTPPassive
787 Alias for
788 .Ar mediaSetFTP
789 using "passive" FTP transfer mode.
790 .Pp
791 .Sy Variables :
792 Same as for
793 .Ar mediaSetFTP .
794 .It mediaSetHTTP
795 Alias for
796 .Ar mediaSetFTP
797 using an HTTP proxy.
798 .Pp
799 .Sy Variables :
800 See
801 .Ar mediaSetFTP ,
802 plus
803 .Bl -tag -width indent
804 .It _httpPath
805 The proxy to use (host:port) (non-optional).
806 .El
807 .It mediaSetUFS
808 Select an existing UFS partition (mounted with the label editor) as
809 the installation media.
810 .Pp
811 .Sy Variables :
812 .Bl -tag -width indent
813 .It ufs
814 full /path to directory containing the
815 .Fx
816 distribution you're
817 interested in.
818 .El
819 .It mediaSetNFS
820 .Pp
821 .Sy Variables :
822 .Bl -tag -width indent
823 .It hostname
824 The name of the host being installed (non-optional).
825 .It domainname
826 The domain name of the host being installed (optional).
827 .It defaultrouter
828 The default router for this host (non-optional).
829 .It netDev
830 Which host interface to use
831 .Ar ( ed0
832 or
833 .Ar ep0 ,
834 for example.  Non-optional).
835 .It netInteractive
836 If set, bring up the interactive network setup form even
837 if all relevant configuration variables are already set (optional).
838 .It ipaddr
839 The IP address for the selected host interface (non-optional).
840 .It netmask
841 The netmask for the selected host interface (non-optional).
842 .It nfs
843 full hostname:/path specification for directory containing
844 the
845 .Fx
846 distribution you're interested in.
847 .El
848 .It mediaSetFTPUserPass
849 .Pp
850 .Sy Variables :
851 .Bl -tag -width indent
852 .It ftpUser
853 The username to log in as on the ftp server site.
854 Default: ftp
855 .It ftpPass
856 The password to use for this username on the ftp
857 server site.
858 Default: user@host
859 .El
860 .It mediaSetCPIOVerbosity
861 .Pp
862 .Sy Variables :
863 .Bl -tag -width indent
864 .It cpioVerbose
865 Can be used to set the verbosity of cpio extractions to low, medium or
866 high.
867 .El
868 .It mediaGetType
869 Interactively get the user to specify some type of media.
870 .Pp
871 .Sy Variables :
872 None
873 .It optionsEditor
874 Invoke the interactive options editor.
875 .Pp
876 .Sy Variables :
877 None
878 .It packageAdd
879 Try to fetch and add a package to the system (requires
880 that a media type be set),
881 .Pp
882 .Sy Variables :
883 .Bl -tag -width indent
884 .It package
885 The name of the package to add, e.g. bash-1.14.7 or ncftp-2.4.2.
886 .El
887 .It addGroup
888 Invoke the interactive group editor.
889 .Pp
890 .Sy Variables :
891 None
892 .It addUser
893 Invoke the interactive user editor.
894 .Pp
895 .Sy Variables :
896 None
897 .It shutdown
898 Stop the script and terminate sysinstall.
899 .Pp
900 .Sy Variables :
901 None
902 .It system
903 Execute an arbitrary command with
904 .Xr system 3
905 .Pp
906 .Sy Variables :
907 .Bl -tag -width indent
908 .It command
909 The name of the command to execute.  When running
910 from a boot floppy, very minimal expectations should
911 be made as to what's available until/unless a relatively
912 full system installation has just been done.
913 .El
914 .It tcpMenuSelect
915 Configure a network device.
916 .Pp
917 .Sy Variables :
918 Same as for
919 .Ar mediaSetFTP
920 except that
921 .Ar _ftpPath
922 is not used.
923 .El
924 .Pp
925 For information about building a full release of
926 .Fx ,
927 please see
928 .Xr release 7 .
929 .Sh FILES
930 This utility may edit the contents of
931 .Pa /etc/rc.conf ,
932 .Pa /etc/hosts ,
933 and
934 .Pa /etc/resolv.conf
935 as necessary to reflect changes in the network configuration.
936 .Sh SEE ALSO
937 If you have a reasonably complete source tree online, take
938 a look at
939 .Pa /usr/src/release/sysinstall/install.cfg
940 for a sample installation script.
941 .Sh BUGS
942 This utility is a prototype which lasted several years past
943 its expiration date and is greatly in need of death.
944 .Sh AUTHORS
945 .An Jordan K. Hubbard Aq jkh@FreeBSD.org
946 .Sh HISTORY
947 This version of
948 .Nm
949 first appeared in
950 .Fx 2.0 .