1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
|
/*
* The new sysinstall program.
*
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: menus.c,v 1.29 1995/05/25 01:22:18 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer,
* verbatim and that no modifications are made prior to this
* point in the file.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Jordan Hubbard
* for the FreeBSD Project.
* 4. The name of Jordan Hubbard or the FreeBSD project may not be used to
* endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
*/
#include "sysinstall.h"
/* All the system menus go here.
*
* Hardcoded things like version number strings will disappear from
* these menus just as soon as I add the code for doing inline variable
* expansion.
*/
/* The initial installation menu */
DMenu MenuInitial = {
DMENU_NORMAL_TYPE,
"Welcome to FreeBSD 2.0.5!", /* title */
"This is the main menu of the FreeBSD installation system. Please\n\
select one of the options below by using the arrow keys or typing the\n\
first character of the option name you're interested in. Invoke an\n\
option by pressing enter. If you'd like a shell, press ESC", /* prompt */
"Press F1 for usage instructions", /* help line */
"usage.hlp", /* help file */
{ { "Usage", "Quick start - How to use this menu system.", /* U */
DMENU_DISPLAY_FILE, "usage.hlp", 0, 0 },
{ "Doc", "More detailed documentation on FreeBSD.", /* D */
DMENU_SUBMENU, &MenuDocumentation, 0, 0 },
{ "Language", "Set your preferred language.", /* L */
DMENU_SUBMENU, &MenuOptionsLanguage, 0, 0 },
{ "Options", "Select various options for this utility.", /* O */
DMENU_SUBMENU, &MenuOptions, 0, 0 },
{ "Proceed", "Go to the installation menu", /* P */
DMENU_SUBMENU, &MenuInstall, 0, 0 },
{ "Quit", "Exit this installation utility", /* Q */
DMENU_CANCEL, NULL, 0, 0 },
{ NULL } },
};
/* The main documentation menu */
DMenu MenuDocumentation = {
DMENU_NORMAL_TYPE,
"Documentation for FreeBSD 2.0.5", /* Title */
"If you are at all unsure about the configuration of your hardware\n\
or are looking to build a system specifically for FreeBSD, read the\n\
Hardware guide! New users should also read the Install document for\n\
a step-by-step tutorial on installing FreeBSD. For general information,\n\
consult the README file. If you're having other problems, you may find\n\
answers in the FAQ.",
"Confused? Press F1 for help.",
"usage.hlp", /* help file */
{ { "README", "Read this for a general description of FreeBSD", /* R */
DMENU_DISPLAY_FILE, "README", 0, 0 },
{ "Hardware", "The FreeBSD survival guide for PC hardware.", /* H */
DMENU_DISPLAY_FILE, "hardware.hlp", 0, 0 },
{ "Install", "A step-by-step guide to installing FreeBSD.", /* I */
DMENU_DISPLAY_FILE, "install.hlp", 0, 0 },
{ "Copyright", "The FreeBSD Copyright notices.", /* C */
DMENU_DISPLAY_FILE, "COPYRIGHT", 0, 0 },
{ "Release", "The release notes for this version of FreeBSD.", /* R */
DMENU_DISPLAY_FILE, "RELNOTES", 0, 0 },
{ "FAQ", "Frequently Asked Questions about FreeBSD.", /* F */
DMENU_DISPLAY_FILE, "faq.hlp", 0, 0 },
{ NULL } },
};
/*
* The language selection menu.
*
* Note: The RADIO menus use a slightly different syntax. If an item
* name starts with `*', it's considered to be "ON" by default,
* otherwise off.
*/
DMenu MenuOptionsLanguage = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Natural language selection", /* title */
"Please specify the language you'd like to use by default.\n\n\
While almost all of the system's documentation is still written\n\
in english (and may never be translated), there are a few guides\n\
and types of system documentation that may be written in your\n\
preferred language. When such are found, they will be used instead\n\
of the english versions. This feature is nonetheless considered\n\
to be in experimental status at this time.", /* prompt */
"Press F1 for more information", /* help line */
"language.hlp", /* help file */
{ { "Danish", "Danish language and character set (ISO-8859-1)", /* D */
DMENU_CALL, lang_set_Danish, 0, 0 },
{ "Dutch", "Dutch language and character set (ISO-8859-1)", /* D */
DMENU_CALL, lang_set_Dutch, 0, 0 },
{ "English", "English language (system default)", /* E */
DMENU_CALL, lang_set_English, 0, 0 },
{ "French", "French language and character set (ISO-8859-1)", /* F */
DMENU_CALL, lang_set_French, 0, 0 },
{ "German", "German language and character set (ISO-8859-1)", /* G */
DMENU_CALL, lang_set_German, 0, 0 },
{ "Italian", "Italian language and character set (ISO-8859-1)", /* I */
DMENU_CALL, lang_set_Italian, 0, 0 },
{ "Japanese", "Japanese language and default character set (romaji)", /* J */
DMENU_CALL, lang_set_Japanese, 0, 0 },
{ "Norwegian", "Norwegian language and character set (ISO-8859-1)", /* N */
DMENU_CALL, lang_set_Norwegian, 0, 0},
{ "Russian", "Russian language and character set (KOI8-R)", /* R */
DMENU_CALL, lang_set_Russian, 0, 0 },
{ "Spanish", "Spanish language and character set (ISO-8859-1)", /* S */
DMENU_CALL, lang_set_Spanish, 0, 0 },
{ "Swedish", "Swedish language and character set (ISO-8859-1)", /* S */
DMENU_CALL, lang_set_Swedish, 0, 0 },
{ NULL } },
};
DMenu MenuMediaCDROM = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose a CDROM type",
"FreeBSD can be installed directly from a CDROM containing a valid\n\
FreeBSD 2.0.5 distribution. If you are seeing this menu it's because\n\
more than one CDROM drive on your system was found. Please select one\n\
of the following CDROM drives as your installation drive.",
"Press F1 to read the installation guide",
"install.hlp",
{ { NULL } },
};
DMenu MenuMediaFloppy = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose a Floppy drive",
"You have more than one floppy drive. Please chose the floppy\n\
drive you'd like to use for this operation",
NULL,
NULL,
{ { NULL } },
};
DMenu MenuMediaDOS = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose a DOS partition",
"FreeBSD can be installed directly from a DOS partition,\n\
assuming of course that you've copied the relevant distributions\n\
into your DOS partition before starting this installation. If\n\
such is not the case, then you should reboot DOS at this time\n\
and copy the distributions you want to install into a subdirectory\n\
on one of your DOS partitions. Otherwise, please select the\n\
DOS partition containing the FreeBSD distribution files.",
"Press F1 to read the installation guide",
"install.hlp",
{ { NULL } },
};
DMenu MenuMediaFTP = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Please specify an FTP site",
"FreeBSD is distributed from a number of sites on the Internet. Please\n\
select the site closest to you or \"other\" if you'd like to specify another\n\
choice. Also note that not all sites carry every possible distribution!\n\
Distributions other than the basic user set are only guaranteed to be\n\
available from the Primary site.\n\n\
If the first site selected doesn't respond, try one of the alternates.\n\
You may also wish to investigate the Ftp options menu in case of trouble.\n\
To specify a URL not in this list, chose \"other\".",
"Select a site that's close!",
"install.hlp",
{ { "Primary Site", "ftp.freebsd.org",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.freebsd.org/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Secondary Site", "freefall.cdrom.com",
DMENU_SET_VARIABLE, "ftp=ftp://freefall.cdrom.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Other", "Specify some other ftp site by URL",
DMENU_SET_VARIABLE, "ftp=other", 0, 0 },
{ "Australia", "ftp.physics.usyd.edu.au",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.physics.usyd.edu.au/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Finland", "nic.funet.fi",
DMENU_SET_VARIABLE, "ftp=ftp://nic.funet.fi/pub/unix/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "France", "ftp.ibp.fr",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.ibp.fr/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Germany", "ftp.uni-duisburg.de",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.uni-duisburg.de/pub/unix/FreeBSD/2.0.5-ALPHA", 0, },
{ "Israel", "orgchem.weizmann.ac.il",
DMENU_SET_VARIABLE, "ftp=ftp://orgchem.weizmann.ac.il/pub/FreeBSD-2.0.5-ALPHA", 0, 0 },
{ "Japan", "ftp.sra.co.jp",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.sra.co.jp/pub/os/FreeBSD/distribution/2.0.5-ALPHA", 0, 0 },
{ "Japan #2", "ftp.mei.co.jp",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.mei.co.jp/free/PC-UNIX/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Japan #3", "ftp.waseda.ac.jp",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.waseda.ac.jp/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Japan #4", "ftp.pu-toyama.ac.jp",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.pu-toyama.ac.jp/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Japan #5", "ftpsv1.u-aizu.ac.jp",
DMENU_SET_VARIABLE, "ftp=ftp://ftpsv1.u-aizu.ac.jp/pub/os/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Japan #6", "tutserver.tutcc.tut.ac.jp",
DMENU_SET_VARIABLE, "ftp=ftp://tutserver.tutcc.tut.ac.jp/FreeBSD/FreeBSD-2.0.5-ALPHA", 0, 0 },
{ "Japan #7", "ftp.ee.uec.ac.jp",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.ee.uec.ac.jp/pub/os/FreeBSD.other/FreeBSD-2.0.5-ALPHA", 0, 0 },
{ "Korea", "ftp.cau.ac.kr",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.cau.ac.kr/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Netherlands", "ftp.nl.net",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.nl.net/pub/os/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Russia", "ftp.kiae.su",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.kiae.su/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Sweden", "ftp.luth.se",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.luth.se/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Taiwan", "netbsd.csie.nctu.edu.tw",
DMENU_SET_VARIABLE, "ftp=ftp://netbsd.csie.nctu.edu.tw/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "Thailand", "ftp.nectec.or.th",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.nectec.or.th/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "UK", "ftp.demon.co.uk",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.demon.co.uk/pub/BSD/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "UK #2", "src.doc.ic.ac.uk",
DMENU_SET_VARIABLE, "ftp=ftp://src.doc.ic.ac.uk/packages/unix/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "UK #3", "unix.hensa.ac.uk",
DMENU_SET_VARIABLE, "ftp=ftp://unix.hensa.ac.uk/pub/walnut.creek/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "USA", "ref.tfs.com",
DMENU_SET_VARIABLE, "ftp=ftp://ref.tfs.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "USA #2", "ftp.dataplex.net",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.dataplex.net/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "USA #3", "kryten.atinc.com",
DMENU_SET_VARIABLE, "ftp=ftp://kryten.atinc.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ "USA #4", "ftp.neosoft.com",
DMENU_SET_VARIABLE, "ftp=ftp://ftp.neosoft.com/systems/FreeBSD/2.0.5-ALPHA", 0, 0 },
{ NULL } }
};
DMenu MenuMediaTape = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose a tape drive type",
"FreeBSD can be installed from tape drive, though this installation\n\
method requires a certain amount of temporary storage in addition\n\
to the space required by the distribution itself (tape drives make\n\
poor random-access devices, so we extract _everything_ on the tape\n\
in one pass). If you have sufficient space for this, then you should\n\
select one of the following tape devices detected on your system.",
"Press F1 to read the installation guide",
"install.hlp",
{ { NULL } },
};
DMenu MenuNetworkDevice = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose a network interface type",
"FreeBSD can be installed directly over a network, using NFS or FTP.\n
If you are using PPP over a serial device (cuaa0 or cuaa1) as opposed\n\
to a direct ethernet connection, then you may need to first dial your\n\
service provider using a special utility we provide for that purpose.\n\
You can also install over a parallel port using a special \"laplink\"\n\
cable, though this only works if you have another FreeBSD machine running\n\
a fairly recent (2.0R or later) release to talk to.\n\n\
To use PPP select one of the serial devices, otherwise select lp0 for\n\
the parallel port or one of the ethernet controllers (if you have one)\n\
for an ethernet installation.",
"Press F1 to read network configuration manual",
"network_device.hlp",
{ { NULL } },
};
/* The media selection menu */
DMenu MenuMedia = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose Installation Media",
"FreeBSD can be installed from a variety of different installation\n\
media, ranging from floppies to the Internet. If you're installing\n\
FreeBSD from a supported CDROM drive then this is generally the best\n\
method to use unless you have some overriding reason for using another\n\
method.",
"Press F1 for more information on the various media types",
"media.hlp",
{ { "CDROM", "Install from a FreeBSD CDROM",
DMENU_CALL, mediaSetCDROM, 0, 0 },
{ "DOS", "Install from a DOS partition",
DMENU_CALL, mediaSetDOS, 0, 0 },
{ "File System", "Install from a UFS or NFS mounted distribution",
DMENU_CALL, mediaSetFS, 0, 0 },
{ "Floppy", "Install from a floppy disk set",
DMENU_CALL, mediaSetFloppy, 0, 0 },
{ "FTP", "Install from an Internet FTP server",
DMENU_CALL, mediaSetFTP, 0, 0 },
{ "Tape", "Install from SCSI or QIC tape",
DMENU_CALL, mediaSetTape, 0, 0 },
{ NULL } },
};
/* The installation type menu */
DMenu MenuInstallType = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose Installation Type",
"As a convenience, we provide several \"canned\" installation types.\n\
These select what we consider to be the most reasonable defaults for the\n\
type of system in question. If you would prefer to pick and choose\n\
the list of distributions yourself, simply select \"custom\".",
"Press F1 for more information on the various distributions",
"dist_types.hlp",
{ { "Developer", "Full sources, binaries and doc but no games [171MB]",
DMENU_CALL, distSetDeveloper, 0, 0 },
{ "X-Developer", "Same as above, but includes XFree86 [196MB]",
DMENU_CALL, distSetXDeveloper, 0, 0 },
{ "User", "Average user - binaries and doc but no sources [19MB]",
DMENU_CALL, distSetUser, 0, 0 },
{ "X-User", "Same as above, but includes XFree86 [45MB]",
DMENU_CALL, distSetXUser, 0, 0 },
{ "Minimal", "The smallest configuration possible [15MB]",
DMENU_CALL, distSetMinimum, 0, 0 },
{ "Everything", "All sources, binaries and XFree86 binaries [203MB]",
DMENU_CALL, distSetEverything, 0, 0 },
{ "Custom", "Specify your own distribution set [?]",
DMENU_SUBMENU, &MenuDistributions, 0, 0 },
{ "Reset", "Reset selected distribution list to None",
DMENU_CALL, distReset, 0, 0 },
{ NULL } },
};
DMenu MenuDistributions = {
DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
"Select the distributions you wish to install.",
"Please check off the distributions you wish to install. Some\n
of the most generally useful distributions are already checked, and\n\
selecting OK at this stage will chose them as defaults.",
"Press F1 for a more complete description of these distributions.",
"distribution_types.hlp",
{ { "*bin", "Binary base distribution (required) [36MB]",
DMENU_SET_FLAG, &Dists, DIST_BIN, 0 },
{ "commercial", "Commercial demos and shareware [10MB]",
DMENU_SET_FLAG, &Dists, DIST_COMMERCIAL, 0 },
{ "compat1x", "FreeBSD 1.x binary compatability package [2MB]",
DMENU_SET_FLAG, &Dists, DIST_COMPAT1X, 0 },
{ "compat20", "FreeBSD 2.0 binary compatability package [2MB]",
DMENU_SET_FLAG, &Dists, DIST_COMPAT20, 0 },
{ "DES", "DES encryption code and sources [.3MB]",
DMENU_SET_FLAG, &Dists, DIST_DES, 0 },
{ "dict", "Spelling checker disctionary files [4.2MB]",
DMENU_SET_FLAG, &Dists, DIST_DICT, 0 },
{ "games", "Games and other amusements (non-commercial) [6.4MB]",
DMENU_SET_FLAG, &Dists, DIST_GAMES, 0 },
{ "info", "GNU info files [4.1MB]",
DMENU_SET_FLAG, &Dists, DIST_INFO, 0 },
{ "*man", "System manual pages - strongly recommended [3.3MB]",
DMENU_SET_FLAG, &Dists, DIST_MANPAGES, 0 },
{ "proflibs", "Profiled versions of the libraries [3.3MB]",
DMENU_SET_FLAG, &Dists, DIST_PROFLIBS, 0 },
{ "src", "Sources for everything but DES [120MB]",
DMENU_CALL, distSetSrc, 0 },
{ "XFree86", "The XFree86 3.1.1L distribution [?]",
DMENU_SUBMENU, &MenuXF86Select, 0 },
{ NULL } },
};
DMenu MenuSrcDistributions = {
DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
"Select the sub-components of src you wish to install.",
"Please check off those portions of the FreeBSD source tree\n\
you wish to install.",
"Press F1 for a more complete description of distributions.",
"distribution_types.hlp",
{ { "base", "top-level files in /usr/src [300K]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_BASE, 0 },
{ "gnu", "/usr/src/gnu (software from the GNU Project) [42MB]]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_GNU, 0 },
{ "etc", "/usr/src/etc (miscellaneous system files) [460K]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_ETC, 0 },
{ "games", "/usr/src/games (diversions) [7.8MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_GAMES, 0 },
{ "include", "/usr/src/include (header files) [467K]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_INCLUDE, 0 },
{ "lib", "/usr/src/lib (system libraries) [9.2MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_LIB, 0 },
{ "libexec", "/usr/src/libexec (system programs) [1.2MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_LIBEXEC, 0 },
{ "lkm", "/usr/src/lkm (Loadable Kernel Modules) [193K]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_LKM, 0 },
{ "release", "/usr/src/release (release-generation tools) [533K]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_RELEASE, 0 },
{ "sbin", "/usr/src/sbin (system binaries) [1.3MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_SBIN, 0 },
{ "share", "/usr/src/share (documents and shared files) [10MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_SHARE, 0 },
{ "sys", "/usr/src/sys (FreeBSD kernel) [13MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_SYS, 0 },
{ "ubin", "/usr/src/usr.bin (user binaries) [13MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_UBIN, 0 },
{ "usbin", "/usr/src/usr.sbin (aux system binaries) [14MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_USBIN, 0 },
{ "XFree86", "XFree86 3.1.1L source + contrib distribution [200MB]",
DMENU_SET_FLAG, &SrcDists, DIST_SRC_XF86, 0 },
{ NULL } },
};
DMenu MenuXF86Select = {
DMENU_NORMAL_TYPE,
"XFree86 3.1.1u1 Distribution",
"Please select the components you need from the XFree86 3.1.1u1\n\
distribution. We recommend that you select what you need from the basic\n\
components set and at least one entry from the Server and Font set menus.\n\n\
When you're finished, select Cancel.",
"Press F1 to read the XFree86 release notes for FreeBSD",
"XF86S.hlp",
{ { "Basic", "Basic component menu (required)",
DMENU_SUBMENU, &MenuXF86SelectCore, 0, 0 },
{ "Server", "X server menu",
DMENU_SUBMENU, &MenuXF86SelectServer, 0, 0 },
{ "Fonts", "Font set menu",
DMENU_SUBMENU, &MenuXF86SelectFonts, 0, 0 },
{ NULL } },
};
DMenu MenuXF86SelectCore = {
DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
"XFree86 3.1.1 base distribution types",
"Please check off the basic XFree86 components you wish to install.\n\
Those deemed most generally useful are already checked off for you.",
NULL,
NULL,
{ { "*bin", "X client applications and shared libs [4MB].",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_BIN, 0 },
{ "*lib", "Data files needed at runtime [600K]",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_LIB, 0 },
{ "xicf", "Customizable xinit runtime configuration file [100K]",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_XINIT, 0 },
{ "xdcf", "Customizable xdm runtime configuration file [100K]",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_XDMCF, 0 },
{ "doc", "READMEs and XFree86 specific man pages [500K]",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_DOC, 0 },
{ "*man", "Man pages (except XFree86 specific ones) [1.2MB]",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_MAN, 0 },
{ "prog", "Programmer's header and library files [4MB]",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_PROG, 0 },
{ "link", "X Server reconfiguration kit [7.8MB]",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_LINK, 0 },
{ "pex", "PEX fonts and libs needed by PEX apps [500K]",
DMENU_SET_FLAG, &XF86Dists, DIST_XF86_PEX, 0 },
{ NULL } },
};
DMenu MenuXF86SelectFonts = {
DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
"Font distribution selection.",
"Please check off the individual font distributions you wish to\n\
install. At the minimum, you should install the standard\n\
75 DPI and misc fonts if you're also installing a server\n\
(these are selected by default).",
NULL,
NULL,
{ { "*fnts", "Standard 75 DPI and miscellaneous fonts [3.6MB]",
DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_MISC, 0 },
{ "f100", "100 DPI fonts [1.8MB]",
DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_100, 0 },
{ "fscl", "Speedo and Type scalable fonts [1.6MB]",
DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_SCALE, 0 },
{ "non", "Japanese, Chinese and other non-english fonts [3.3MB]",
DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_NON, 0 },
{ "server", "Font server [0.3MB]",
DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_SERVER, 0 },
{ NULL } },
};
DMenu MenuXF86SelectServer = {
DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
"X Server selection.",
"Please check off the types of X servers you wish to install.\n\
If you are unsure as to which server will work for your graphics card,\n\
it is recommended that try the SVGA or VGA16 servers (the VGA16 and\n\
Mono servers are particularly well-suited to most LCD displays).",
"xservers.hlp",
"Press F1 for more information on the various X server types",
{ { "*SVGA", "Standard VGA or Super VGA display [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_SVGA, 0 },
{ "VGA16", "Standard 16 color VGA display [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_VGA16, 0 },
{ "Mono", "Standard Monochrome display [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MONO, 0 },
{ "8514", "8-bit (256 color) IBM 8514 or compatible card [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_8514, 0 },
{ "AGX", "8-bit AGX card [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_AGX, 0 },
{ "Mch3", "8 and 16-bit (65K color) for ATI Mach32 card [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MACH32, 0 },
{ "Mch8", "8-bit ATI Mach8 card [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MACH8, 0 },
{ "P9K", "8, 16, and 24-bit color for Weitek P9000 based boards [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_P9000, 0 },
{ "S3", "8, 16 and 24-bit color for S3 based boards [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_S3, 0 },
{ "W32", "8-bit Color for ET4000/W32, /W32i and /W32p cards [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_W32, 0 },
{ "nest", "A nested server for testing purposes [1MB]",
DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_NEST, 0 },
{ NULL } },
};
DMenu MenuDiskDevices = {
DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
"Select Drive(s)",
"Please select the drive, or drives, on which you wish to install\n\
FreeBSD. You need to select at least one drive containing some free\n\
space, though FreeBSD can be installed across several drives if you do\n\
not have the required space on a single drive. If you wish to boot\n\
off a drive that's not a `zero drive', or have multiple operating\n\
systems on your machine, you will have the option to install a boot\n\
manager later.",
"Press F1 for more information on what you see here.",
"drives.hlp",
{ { NULL } },
};
/* The installation options menu */
DMenu MenuOptions = {
DMENU_NORMAL_TYPE,
"Choose Installation Options",
"The following options control how this utility will deal\n\
with various possible error conditions and how verbose it will\n\
be at various stages.\n\n\
When you're done setting options, select Cancel",
NULL,
NULL,
{ { "Ftp Options", "Ftp options menu",
DMENU_SUBMENU, &MenuOptionsFTP, 0, 0 },
{ "NFS Secure", "NFS server talks only on a secure port",
DMENU_SET_VARIABLE, "nfsServerSecure=yes", 0, 0 },
{ "NFS Slow", "User is using a slow PC or ethernet card",
DMENU_SET_VARIABLE, "nfsSlowPC=yes", 0, 0 },
{ "Extra Debugging", "Toggle the extra debugging flag",
DMENU_SET_VARIABLE, "debug=yes", 0, 0 },
{ "No Debugging", "Turn the extra debugging flag off",
DMENU_SET_VARIABLE, "debug=no", 0, 0 },
{ NULL } },
};
DMenu MenuOptionsFTP = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose FTP Options",
"Please indicate how you would like FTP to deal with potential error\n\
conditions, the default behavior being to Abort on transfer errors. If you\n\
are behind an IP firewall, you will also probably wish to select passive\n\
mode transfers (it's generally OK to set this in any case as almost all\n\
servers support it, firewall or no).",
NULL,
NULL,
{ { "FTP Retry", "On transfer failure, retry same host",
DMENU_SET_VARIABLE, "ftpRetryType=loop", 0, 0 },
{ "FTP Reselect", "On transfer failure, ask for another host",
DMENU_SET_VARIABLE, "ftpRetryType=reselect", 0, 0 },
{ "FTP Abort", "On transfer failure, abort installation",
DMENU_SET_VARIABLE, "ftpRetryType=abort", 0, 0 },
{ "FTP passive", "Use \"passive mode\" for firewalled FTP",
DMENU_SET_VARIABLE, "ftpPassive=yes", 0, 0 },
{ NULL } },
};
/* The main installation menu */
DMenu MenuInstall = {
DMENU_NORMAL_TYPE,
"Choose Installation Options", /* title */
"Before installation can continue, you need to specify a few\n\
details on the type of distribution you wish to have, where you wish\n\
to install it from and how you wish to allocate disk storage to FreeBSD.\n\n\
None of the items in this menu will actually modify the contents of\n\
your disk until you select the \"Write\" menu item (and even then, only\n\
after a final confirmation). Select Cancel to leave this menu.",
"Press F1 to read the installation guide",
"install.hlp",
{ { "Distributions", "Choose the type of installation you want", /* T */
DMENU_SUBMENU, &MenuInstallType, 0, 0 },
{ "Media", "Choose the installation media type", /* M */
DMENU_SUBMENU, &MenuMedia, 0, 0 },
{ "Partition", "Allocate disk space for FreeBSD", /* P */
DMENU_CALL, diskPartitionEditor, 0, 0 },
{ "Label", "Label allocated disk partitions", /* L */
DMENU_CALL, diskLabelEditor, 0, 0 },
{ "Networking", "Configure this host on a network", /* N */
DMENU_CALL, tcpOpenDialog, 0, 0 },
{ "Write", "Install FreeBSD onto your hard disk(s)", /* W */
DMENU_CALL, installCommit, 0, 0 },
{ "Configure", "Do post-install configuration of FreeBSD", /* C */
DMENU_SUBMENU, &MenuConfigure, 0, 0 },
{ NULL } },
};
/* MBR type menu */
DMenu MenuMBRType = {
DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
"Chose boot manager type", /* title */
"FreeBSD comes with a boot selector that allows you to easily\n\
select between FreeBSD and other operating systems on your machine\n\
at boot time. If you have more than one drive and wish to boot\n\
from other than the first, the boot selector will also allow you\n\
to do so (limitations in the PC BIOS usually prevent this otherwise).\n\
If you do not want a boot selector, or wish to replace an existing\n\
one, select \"standard\". If you would prefer your Master Boot\n\
Record to remain untouched, then select \"none\".",
"Press F1 to read the installation guide",
"install.hlp",
{ { "*BootMgr", "Install the FreeBSD Boot Manager (\"Booteasy\")", /* B */
DMENU_SET_VARIABLE, "bootManager=bteasy", 0, 0 },
{ "Standard", "Use a standard MBR (no boot manager)", /* S */
DMENU_SET_VARIABLE, "bootManager=mbr", 0, 0 },
{ "None", "Leave the Master Boot Record untouched", /* N */
DMENU_CALL, diskPartitionEditor, 0, 0 },
{ NULL } },
};
/* Final configuration menu */
DMenu MenuConfigure = {
DMENU_NORMAL_TYPE,
"FreeBSD Configuration Menu", /* title */
"If you've already installed FreeBSD, you may use this menu to\n\
customize it somewhat to suit your particular configuration. Most\n\
importantly, you can use the Packages utility to load extra \"3rd party\"\n\
software not provided in the base distributions.\n\n\
When you're done, select Cancel",
"Press F1 for more information on these options",
"configure.hlp",
{ { "Add User", "Add users to the system",
DMENU_SYSTEM_COMMAND, "adduser", 0, 0 },
{ "Networking", "Configure network",
DMENU_CALL, tcpOpenDialog, 0, 0 },
{ "Time Zone", "Set which time zone you're in",
DMENU_SYSTEM_COMMAND, "tzsetup", 0, 0 },
{ "Packages", "Install extra FreeBSD packaged software",
DMENU_CALL, configPackages, 0, 1 },
{ "Ports", "Enable the FreeBSD Ports Collection from CD",
DMENU_CALL, configPorts, 0, 1 },
{ "Root Password", "Set the system manager's password",
DMENU_SYSTEM_COMMAND, "passwd root", 0, 0 },
{ "Screen", "Customize system console behavior",
DMENU_SUBMENU, &MenuSyscons, 0, 0 },
{ "Sysconfig", "Edit the system configuration file (with vi)",
DMENU_SYSTEM_COMMAND, "vi /etc/sysconfig", 0, 0 },
{ "XFree86", "Configure XFree86 (if installed)",
DMENU_SYSTEM_COMMAND, "PATH=/usr/bin:/bin:/usr/X11R6/bin xf86config", 0, 0 },
{ NULL } },
};
DMenu MenuSyscons = {
DMENU_NORMAL_TYPE,
"System Console Configuration",
"The default system console driver for FreeBSD (syscons) has a\n\
number of configuration options which may be set according to\n\
your preference. When you are done setting configuration options,\n\
select Cancel.",
NULL,
NULL,
{ { "blank", "Screen-blanking saver",
DMENU_SET_VARIABLE, "saver=star", 0, 0 },
{ "Green", "\"green\" power saver (if supported by monitor)",
DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
{ "Snake", "\"snake\" screen saver",
DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
{ "Star", "\"twinkling stars\" screen saver",
DMENU_SET_VARIABLE, "saver=star", 0, 0 },
{ "Timeout", "Set screen saver timeout interval",
DMENU_CALL, configSaverTimeout, 0, 0 },
{ NULL } },
};
|