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
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
|
/*
* The new sysinstall program.
*
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* 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.
*
* 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.
*
*/
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif
#include "sysinstall.h"
/* Miscellaneous work routines for menus */
static int
setSrc(dialogMenuItem *self)
{
Dists |= DIST_SRC;
SrcDists = DIST_SRC_ALL;
CRYPTODists |= (DIST_CRYPTO_SCRYPTO | DIST_CRYPTO_SSECURE |
DIST_CRYPTO_SKERBEROS4 | DIST_CRYPTO_SKERBEROS5);
return DITEM_SUCCESS | DITEM_REDRAW;
}
static int
clearSrc(dialogMenuItem *self)
{
Dists &= ~DIST_SRC;
SrcDists = 0;
CRYPTODists &= ~(DIST_CRYPTO_SCRYPTO | DIST_CRYPTO_SSECURE |
DIST_CRYPTO_SKERBEROS4 | DIST_CRYPTO_SKERBEROS5);
return DITEM_SUCCESS | DITEM_REDRAW;
}
static int
setX11Misc(dialogMenuItem *self)
{
XF86Dists |= DIST_XF86_MISC_ALL;
Dists |= DIST_XF86;
return DITEM_SUCCESS | DITEM_REDRAW;
}
static int
clearX11Misc(dialogMenuItem *self)
{
XF86Dists &= ~DIST_XF86_MISC_ALL;
if (!XF86ServerDists && !XF86FontDists)
Dists &= ~DIST_XF86;
return DITEM_SUCCESS | DITEM_REDRAW;
}
static int
setX11Servers(dialogMenuItem *self)
{
XF86Dists |= DIST_XF86_SERVER;
XF86ServerDists = DIST_XF86_SERVER_ALL;
return DITEM_SUCCESS | DITEM_REDRAW;
}
static int
clearX11Servers(dialogMenuItem *self)
{
XF86Dists &= ~DIST_XF86_SERVER;
XF86ServerDists = 0;
return DITEM_SUCCESS | DITEM_REDRAW;
}
static int
setX11Fonts(dialogMenuItem *self)
{
XF86Dists |= DIST_XF86_FONTS;
XF86FontDists = DIST_XF86_FONTS_ALL;
return DITEM_SUCCESS | DITEM_REDRAW;
}
static int
clearX11Fonts(dialogMenuItem *self)
{
XF86Dists &= ~DIST_XF86_FONTS;
XF86FontDists = 0;
return DITEM_SUCCESS | DITEM_REDRAW;
}
#define _IS_SET(dist, set) (((dist) & (set)) == (set))
#define IS_DEVELOPER(dist, extra) (_IS_SET(dist, _DIST_DEVELOPER | extra) || \
_IS_SET(dist, _DIST_DEVELOPER | extra))
#define IS_USER(dist, extra) (_IS_SET(dist, _DIST_USER | extra) || \
_IS_SET(dist, _DIST_USER | extra))
static int
checkDistDeveloper(dialogMenuItem *self)
{
return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_ALL);
}
static int
checkDistXDeveloper(dialogMenuItem *self)
{
return IS_DEVELOPER(Dists, DIST_XF86) && _IS_SET(SrcDists, DIST_SRC_ALL);
}
static int
checkDistKernDeveloper(dialogMenuItem *self)
{
return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_SYS);
}
static int
checkDistXKernDeveloper(dialogMenuItem *self)
{
return IS_DEVELOPER(Dists, DIST_XF86) && _IS_SET(SrcDists, DIST_SRC_SYS);
}
static int
checkDistUser(dialogMenuItem *self)
{
return IS_USER(Dists, 0);
}
static int
checkDistXUser(dialogMenuItem *self)
{
return IS_USER(Dists, DIST_XF86);
}
static int
checkDistMinimum(dialogMenuItem *self)
{
return Dists == (DIST_BIN | DIST_CRYPTO);
}
static int
checkDistEverything(dialogMenuItem *self)
{
return Dists == DIST_ALL && CRYPTODists == DIST_CRYPTO_ALL && \
_IS_SET(SrcDists, DIST_SRC_ALL) && \
_IS_SET(XF86Dists, DIST_XF86_ALL) && \
_IS_SET(XF86ServerDists, DIST_XF86_SERVER_ALL) && \
_IS_SET(XF86FontDists, DIST_XF86_FONTS_ALL);
}
static int
srcFlagCheck(dialogMenuItem *item)
{
return SrcDists;
}
static int
x11FlagCheck(dialogMenuItem *item)
{
return Dists & DIST_XF86;
}
static int
checkTrue(dialogMenuItem *item)
{
return TRUE;
}
/* 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.
*/
DMenu MenuIndex = {
DMENU_NORMAL_TYPE,
"Glossary of functions",
"This menu contains an alphabetized index of the top level functions in\n"
"this program (sysinstall). Invoke an option by pressing [SPACE] or\n"
"[ENTER]. To exit, use [TAB] to move to the Cancel button.",
"Use PageUp or PageDown to move through this menu faster!",
NULL,
{ { " Anon FTP", "Configure anonymous FTP logins.", dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
{ " Commit", "Commit any pending actions (dangerous!)", NULL, installCustomCommit },
{ " Console settings", "Customize system console behavior.", NULL, dmenuSubmenu, NULL, &MenuSyscons },
{ " Configure", "The system configuration menu.", NULL, dmenuSubmenu, NULL, &MenuConfigure },
{ " Defaults, Load", "Load default settings.", NULL, dispatch_load_floppy },
{ " Device, Mouse", "The mouse configuration menu.", NULL, dmenuSubmenu, NULL, &MenuMouse },
{ " Disklabel", "The disk Label editor", NULL, diskLabelEditor },
{ " Dists, All", "Root of the distribution tree.", NULL, dmenuSubmenu, NULL, &MenuDistributions },
{ " Dists, Basic", "Basic FreeBSD distribution menu.", NULL, dmenuSubmenu, NULL, &MenuSubDistributions },
{ " Dists, Developer", "Select developer's distribution.", checkDistDeveloper, distSetDeveloper },
{ " Dists, Src", "Src distribution menu.", NULL, dmenuSubmenu, NULL, &MenuSrcDistributions },
{ " Dists, X Developer", "Select X developer's distribution.", checkDistXDeveloper, distSetXDeveloper },
{ " Dists, Kern Developer", "Select kernel developer's distribution.", checkDistKernDeveloper, distSetKernDeveloper },
{ " Dists, User", "Select average user distribution.", checkDistUser, distSetUser },
{ " Dists, X User", "Select average X user distribution.", checkDistXUser, distSetXUser },
{ " Distributions, Adding", "Installing additional distribution sets", NULL, distExtractAll },
{ " Distributions, XFree86","XFree86 distribution menu.", NULL, distSetXF86 },
{ " Documentation", "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
{ " Doc, README", "The distribution README file.", NULL, dmenuDisplayFile, NULL, "README" },
{ " Doc, Hardware", "The distribution hardware guide.", NULL, dmenuDisplayFile, NULL, "HARDWARE" },
{ " Doc, Install", "The distribution installation guide.", NULL, dmenuDisplayFile, NULL, "INSTALL" },
{ " Doc, Copyright", "The distribution copyright notices.", NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
{ " Doc, Release", "The distribution release notes.", NULL, dmenuDisplayFile, NULL, "RELNOTES" },
{ " Doc, HTML", "The HTML documentation menu.", NULL, docBrowser },
{ " Dump Vars", "(debugging) dump out internal variables.", NULL, dump_variables },
{ " Emergency shell", "Start an Emergency Holographic shell.", NULL, installFixitHoloShell },
#ifdef __i386__
{ " Fdisk", "The disk Partition Editor", NULL, diskPartitionEditor },
#endif
{ " Fixit", "Repair mode with CDROM or fixit floppy.", NULL, dmenuSubmenu, NULL, &MenuFixit },
{ " FTP sites", "The FTP mirror site listing.", NULL, dmenuSubmenu, NULL, &MenuMediaFTP },
{ " Gateway", "Set flag to route packets between interfaces.", dmenuVarCheck, dmenuToggleVariable, NULL, "gateway=YES" },
{ " HTML Docs", "The HTML documentation menu", NULL, docBrowser },
{ " inetd Configuration", "Configure inetd and simple internet services.", dmenuVarCheck, configInetd, NULL, "inetd_enable=YES" },
{ " Install, Standard", "A standard system installation.", NULL, installStandard },
{ " Install, Express", "An express system installation.", NULL, installExpress },
{ " Install, Custom", "The custom installation menu", NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
{ " Label", "The disk Label editor", NULL, diskLabelEditor },
{ " Media", "Top level media selection menu.", NULL, dmenuSubmenu, NULL, &MenuMedia },
{ " Media, Tape", "Select tape installation media.", NULL, mediaSetTape },
{ " Media, NFS", "Select NFS installation media.", NULL, mediaSetNFS },
{ " Media, Floppy", "Select floppy installation media.", NULL, mediaSetFloppy },
{ " Media, CDROM/DVD", "Select CDROM/DVD installation media.", NULL, mediaSetCDROM },
{ " Media, DOS", "Select DOS installation media.", NULL, mediaSetDOS },
{ " Media, UFS", "Select UFS installation media.", NULL, mediaSetUFS },
{ " Media, FTP", "Select FTP installation media.", NULL, mediaSetFTP },
{ " Media, FTP Passive", "Select passive FTP installation media.", NULL, mediaSetFTPPassive },
{ " Media, HTTP", "Select FTP via HTTP proxy installation media.", NULL, mediaSetHTTP },
{ " Network Interfaces", "Configure network interfaces", NULL, tcpMenuSelect },
{ " Networking Services", "The network services menu.", NULL, dmenuSubmenu, NULL, &MenuNetworking },
{ " NFS, client", "Set NFS client flag.", dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
{ " NFS, server", "Set NFS server flag.", dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
{ " NTP Menu", "The NTP configuration menu.", NULL, dmenuSubmenu, NULL, &MenuNTP },
{ " Options", "The options editor.", NULL, optionsEditor },
{ " Packages", "The packages collection", NULL, configPackages },
{ " Partition", "The disk Slice (PC-style partition) Editor", NULL, diskPartitionEditor },
{ " PCNFSD", "Run authentication server for PC-NFS.", dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
{ " Root Password", "Set the system manager's password.", NULL, dmenuSystemCommand, NULL, "passwd root" },
{ " Router", "Select routing daemon (default: routed)", NULL, configRouter, NULL, "router_enable" },
{ " Security", "Select a default system security profile.", NULL, dmenuSubmenu, NULL, &MenuSecurityProfile },
{ " Syscons", "The system console configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSyscons },
{ " Syscons, Font", "The console screen font.", NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
{ " Syscons, Keymap", "The console keymap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
{ " Syscons, Keyrate", "The console key rate configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
{ " Syscons, Saver", "The console screen saver configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
{ " Syscons, Screenmap", "The console screenmap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
{ " Syscons, Ttys", "The console terminal type menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
{ " Time Zone", "Set the system's time zone.", NULL, dmenuSystemCommand, NULL, "tzsetup" },
{ " TTYs", "Configure system ttys.", NULL, configEtcTtys, NULL, "ttys" },
{ " Upgrade", "Upgrade an existing system.", NULL, installUpgrade },
{ " Usage", "Quick start - How to use this menu system.", NULL, dmenuDisplayFile, NULL, "usage" },
{ " User Management", "Add user and group information.", NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
{ " XFree86, Fonts", "XFree86 Font selection menu.", NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
{ " XFree86, Server", "XFree86 Server selection menu.", NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
#if defined(__i386__) && defined(PC98)
{ " XFree86, PC98 Server", "XFree86 PC98 Server selection menu.", NULL, dmenuSubmenu, NULL, &MenuXF86SelectPC98Server },
#endif
{ NULL } },
};
/* The initial installation menu */
DMenu MenuInitial = {
DMENU_NORMAL_TYPE,
"/stand/sysinstall Main Menu", /* title */
"Welcome to the FreeBSD installation and configuration tool. Please\n" /* prompt */
"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 with [SPACE] or [ENTER]. To exit, use [TAB] to move to Exit.",
"Press F1 for Installation Guide", /* help line */
"INSTALL", /* help file */
{ { "Select" },
{ "X Exit Install", NULL, NULL, dmenuExit },
{ " Usage", "Quick start - How to use this menu system", NULL, dmenuDisplayFile, NULL, "usage" },
{ "Standard", "Begin a standard installation (recommended)", NULL, installStandard },
{ "Express", "Begin a quick installation (for the impatient)", NULL, installExpress },
{ " Custom", "Begin a custom installation (for experts)", NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
{ "Configure", "Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure },
{ "Doc", "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
{ "Keymap", "Select keyboard type", NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
{ "Options", "View/Set various installation options", NULL, optionsEditor },
{ "Fixit", "Enter repair mode with CDROM/floppy or start shell", NULL, dmenuSubmenu, NULL, &MenuFixit },
{ "Upgrade", "Upgrade an existing system", NULL, installUpgrade },
{ "Load Config","Load default install configuration", NULL, dispatch_load_floppy },
{ "Index", "Glossary of functions", NULL, dmenuSubmenu, NULL, &MenuIndex },
{ NULL } },
};
/* The main documentation menu */
DMenu MenuDocumentation = {
DMENU_NORMAL_TYPE,
"FreeBSD Documentation Menu",
"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.",
"Confused? Press F1 for help.",
"usage",
{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
{ "2 README", "A general description of FreeBSD. Read this!", NULL, dmenuDisplayFile, NULL, "README" },
{ "3 Hardware", "The FreeBSD survival guide for PC hardware.", NULL, dmenuDisplayFile, NULL, "HARDWARE" },
{ "4 Install", "A step-by-step guide to installing FreeBSD.", NULL, dmenuDisplayFile, NULL, "INSTALL" },
{ "5 Copyright", "The FreeBSD Copyright notices.", NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
{ "6 Release" ,"The release notes for this version of FreeBSD.", NULL, dmenuDisplayFile, NULL, "RELNOTES" },
{ "7 Shortcuts", "Creating shortcuts to sysinstall.", NULL, dmenuDisplayFile, NULL, "shortcuts" },
{ "8 HTML Docs", "Go to the HTML documentation menu (post-install).", NULL, docBrowser },
{ NULL } },
};
DMenu MenuMouseType = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Select a protocol type for your mouse",
"If your mouse is attached to the PS/2 mouse port or the bus mouse port,\n"
"you should always choose \"Auto\", regardless of the model and the brand\n"
"of the mouse. All other protocol types are for serial mice and should\n"
"not be used with the PS/2 port mouse or the bus mouse. If you have\n"
"a serial mouse and are not sure about its protocol, you should also try\n"
"\"Auto\". It may not work for the serial mouse if the mouse does not\n"
"support the PnP standard. But, it won't hurt. Many 2-button serial mice\n"
"are compatible with \"Microsoft\" or \"MouseMan\". 3-button serial mice\n"
"may be compatible with \"MouseSystems\" or \"MouseMan\". If the serial\n"
"mouse has a wheel, it may be compatible with \"IntelliMouse\".",
NULL,
NULL,
{ { "1 Auto", "Bus mouse, PS/2 style mouse or PnP serial mouse",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=auto" },
{ "2 GlidePoint", "ALPS GlidePoint pad (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=glidepoint" },
{ "3 Hitachi","Hitachi tablet (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmhittab" },
{ "4 IntelliMouse", "Microsoft IntelliMouse (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=intellimouse" },
{ "5 Logitech", "Logitech protocol (old models) (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=logitech" },
{ "6 Microsoft", "Microsoft protocol (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=microsoft" },
{ "7 MM Series","MM Series protocol (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmseries" },
{ "8 MouseMan", "Logitech MouseMan/TrackMan models (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mouseman" },
{ "9 MouseSystems", "MouseSystems protocol (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mousesystems" },
{ "A ThinkingMouse","Kensington ThinkingMouse (serial)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=thinkingmouse" },
{ NULL } },
};
DMenu MenuMousePort = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Select your mouse port from the following menu",
"The built-in pointing device of laptop/notebook computers is usually\n"
"a PS/2 style device.",
NULL,
NULL,
{ { "1 PS/2", "PS/2 style mouse (/dev/psm0)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" },
{ "2 COM1", "Serial mouse on COM1 (/dev/cuaa0)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa0" },
{ "3 COM2", "Serial mouse on COM2 (/dev/cuaa1)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa1" },
{ "4 COM3", "Serial mouse on COM3 (/dev/cuaa2)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa2" },
{ "5 COM4", "Serial mouse on COM4 (/dev/cuaa3)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa3" },
{ "6 BusMouse", "Logitech, ATI or MS bus mouse (/dev/mse0)",
dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" },
{ NULL } },
};
DMenu MenuMouse = {
DMENU_NORMAL_TYPE,
"Please configure your mouse",
"You can cut and paste text in the text console by running the mouse\n"
"daemon. Specify a port and a protocol type of your mouse and enable\n"
"the mouse daemon. If you don't want this feature, select 6 to disable\n"
"the daemon.\n"
"Once you've enabled the mouse daemon, you can specify \"/dev/sysmouse\"\n"
"as your mouse device and \"SysMouse\" or \"MouseSystems\" as mouse\n"
"protocol when running the X configuration utility (see Configuration\n"
"menu).",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
{ "2 Enable", "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL },
{ "3 Type", "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType },
{ "4 Port", "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort },
{ "5 Flags", "Set additional flags", dmenuVarCheck, setMouseFlags,
NULL, VAR_MOUSED_FLAGS "=" },
{ "6 Disable", "Disable the mouse daemon", NULL, mousedDisable, NULL, NULL },
{ NULL } },
};
DMenu MenuMediaCDROM = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose a CD/DVD type",
"FreeBSD can be installed directly from a CD/DVD containing a valid\n"
"FreeBSD distribution. If you are seeing this menu it is because\n"
"more than one CD/DVD drive was found on your system. Please select one\n"
"of the following CD/DVD drives as your installation drive.",
"Press F1 to read the installation guide",
"INSTALL",
{ { NULL } },
};
DMenu MenuMediaFloppy = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Choose a Floppy drive",
"You have more than one floppy drive. Please choose which drive\n"
"you would like to use.",
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 have copied the relevant\n"
"distributions into your DOS partition before starting this\n"
"installation. If this is not the case then you should reboot\n"
"DOS at this time and copy the distributions you wish to install\n"
"into a \"FREEBSD\" subdirectory on one of your DOS partitions.\n"
"Otherwise, please select the DOS partition containing the FreeBSD\n"
"distribution files.",
"Press F1 to read the installation guide",
"INSTALL",
{ { NULL } },
};
DMenu MenuMediaFTP = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Please select a FreeBSD FTP distribution site",
"Please select the site closest to you or \"other\" if you'd like to\n"
"specify a different choice. Also note that not every site listed here\n"
"carries more than the base distribution kits. Only the Primary site is\n"
"guaranteed to carry the full range of possible distributions.",
"Select a site that's close!",
"INSTALL",
{ { "Primary Site", "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.freebsd.org" },
{ "URL", "Specify some other ftp site by URL", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=other" },
{ " 5.0 SNAP Server", "current.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://current.freebsd.org" },
{ " 4.0 SNAP Server", "releng4.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://releng4.freebsd.org/pub/FreeBSD/snapshots/" },
{ " IPv6 Ready", "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
{ " IPv6 Ready #2", "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
{ "Argentina", "ftp.ar.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.ar.freebsd.org" },
{ " Australia", "ftp.au.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.au.freebsd.org" },
{ " Australia #2","ftp2.au.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.au.freebsd.org" },
{ " Australia #3","ftp3.au.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.au.freebsd.org" },
{ " Australia #4","ftp4.au.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.au.freebsd.org" },
{ " Australia #5","ftp5.au.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp5.au.freebsd.org" },
{ "Brazil", "ftp.br.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.br.freebsd.org" },
{ " Brazil #2", "ftp2.br.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.br.freebsd.org" },
{ " Brazil #3", "ftp3.br.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.br.freebsd.org" },
{ " Brazil #4", "ftp4.br.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.br.freebsd.org" },
{ " Brazil #5", "ftp5.br.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp5.br.freebsd.org" },
{ " Brazil #6", "ftp6.br.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp6.br.freebsd.org" },
{ " Brazil #7", "ftp7.br.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp7.br.freebsd.org" },
{ " Canada", "ftp.ca.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.ca.freebsd.org" },
{ " Czech Republic", "ftp.cz.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.cz.freebsd.org" },
{ "Denmark", "ftp.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.dk.freebsd.org" },
{ " Denmark #2", "ftp2.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.dk.freebsd.org" },
{ "Estonia", "ftp.ee.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.ee.freebsd.org" },
{ "Finland", "ftp.fi.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.fi.freebsd.org" },
{ " France", "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org" },
{ " France #1", "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org" },
{ " France #2", "ftp2.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.fr.freebsd.org" },
{ " France #3", "ftp3.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.fr.freebsd.org" },
{ " France #4", "ftp4.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.fr.freebsd.org" },
{ " France #5", "ftp5.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp5.fr.freebsd.org" },
{ " France #6", "ftp6.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp6.fr.freebsd.org" },
{ "Germany", "ftp.de.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.de.freebsd.org" },
{ " Germany #2", "ftp2.de.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.de.freebsd.org" },
{ " Germany #3", "ftp3.de.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.de.freebsd.org" },
{ " Germany #4", "ftp4.de.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.de.freebsd.org" },
{ " Germany #5", "ftp5.de.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp5.de.freebsd.org" },
{ " Germany #6", "ftp6.de.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp6.de.freebsd.org" },
{ " Germany #7", "ftp7.de.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp7.de.freebsd.org" },
{ " Greece", "ftp.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.gr.freebsd.org" },
{ " Greece #2", "ftp2.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.gr.freebsd.org" },
{ "Holland", "ftp.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.nl.freebsd.org" },
{ " Hong Kong", "ftp.hk.super.net", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.hk.super.net" },
{ "Iceland", "ftp.is.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.is.freebsd.org" },
{ " Ireland", "ftp.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.ie.freebsd.org" },
{ " Israel", "ftp.il.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.il.freebsd.org" },
{ " Israel #2", "ftp2.il.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.il.freebsd.org" },
{ "Japan", "ftp.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.jp.freebsd.org" },
{ " Japan #2", "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
{ " Japan #3", "ftp3.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.jp.freebsd.org" },
{ " Japan #4", "ftp4.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.jp.freebsd.org" },
{ " Japan #5", "ftp5.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp5.jp.freebsd.org" },
{ " Japan #6", "ftp6.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp6.jp.freebsd.org" },
{ " Japan #7", "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
{ "Korea", "ftp.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.kr.freebsd.org" },
{ " Korea #2", "ftp2.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.kr.freebsd.org" },
{ " Korea #3", "ftp3.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.kr.freebsd.org" },
{ " Korea #4", "ftp4.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.kr.freebsd.org" },
{ " Korea #5", "ftp5.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp5.kr.freebsd.org" },
{ "Lithuania", "ftp.lt.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.lt.freebsd.org" },
{ "New Zealand", "ftp.nz.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.nz.freebsd.org" },
{ "Norway", "ftp.no.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.no.freebsd.org" },
{ "Poland", "ftp.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.pl.freebsd.org" },
{ " Portugal", "ftp.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.pt.freebsd.org" },
{ " Portugal #2", "ftp2.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.pt.freebsd.org" },
{ "Romania", "ftp.ro.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.ro.freebsd.org" },
{ " Russia", "ftp.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.ru.freebsd.org" },
{ " Russia #2", "ftp2.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.ru.freebsd.org" },
{ " Russia #3", "ftp3.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.ru.freebsd.org" },
{ " Russia #4", "ftp4.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.ru.freebsd.org" },
{ "Slovak Republic", "ftp.sk.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.sk.freebsd.org" },
{ "Slovenia", "ftp.si.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.si.freebsd.org" },
{ " South Africa", "ftp.za.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.za.freebsd.org" },
{ " South Africa #2", "ftp2.za.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.za.freebsd.org" },
{ " South Africa #3", "ftp3.za.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.za.freebsd.org" },
{ " South Africa #4", "ftp4.za.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.za.freebsd.org" },
{ " Spain", "ftp.es.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.es.freebsd.org" },
{ " Spain #2", "ftp2.es.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.es.freebsd.org" },
{ " Sweden", "ftp.se.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.se.freebsd.org" },
{ " Sweden #2", "ftp2.se.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.se.freebsd.org" },
{ " Sweden #3", "ftp3.se.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.se.freebsd.org" },
{ "Taiwan", "ftp.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.tw.freebsd.org" },
{ " Taiwan #2", "ftp2.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.tw.freebsd.org" },
{ " Taiwan #3", "ftp3.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.tw.freebsd.org" },
{ " Taiwan #4", "ftp4.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.tw.freebsd.org" },
{ " Thailand", "ftp.nectec.or.th", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.nectec.or.th/pub/mirrors/FreeBSD/" },
{ "UK", "ftp.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.uk.freebsd.org" },
{ " UK #2", "ftp2.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.uk.freebsd.org" },
{ " UK #3", "ftp3.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.uk.freebsd.org" },
{ " UK #4", "ftp4.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.uk.freebsd.org" },
{ " UK #5", "ftp5.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp5.uk.freebsd.org" },
{ " Ukraine", "ftp.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.ua.freebsd.org" },
{ " Ukraine #2", "ftp2.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.ua.freebsd.org" },
{ " Ukraine #3", "ftp3.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.ua.freebsd.org" },
{ " USA", "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp.freebsd.org" },
{ " USA #2", "ftp2.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp2.freebsd.org" },
{ " USA #3", "ftp3.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp3.freebsd.org" },
{ " USA #4", "ftp4.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp4.freebsd.org" },
{ " USA #5", "ftp5.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp5.freebsd.org" },
{ " USA #6", "ftp6.freebsd.org", NULL, dmenuSetVariable, NULL,
VAR_FTP_PATH "=ftp://ftp6.freebsd.org" },
{ 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",
{ { NULL } },
};
DMenu MenuNetworkDevice = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Network interface information required",
"If you are using PPP over a serial device, as opposed to a direct\n"
"ethernet connection, then you may first need to dial your Internet\n"
"Service Provider using the ppp utility we provide for that purpose.\n"
"If you're using SLIP over a serial device then the expectation is\n"
"that you have a HARDWIRED connection.\n\n"
"You can also install over a parallel port using a special \"laplink\"\n"
"cable to another machine running a fairly recent (2.0R or later)\n"
"version of FreeBSD.",
"Press F1 to read network configuration manual",
"network_device",
{ { 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 an Internet FTP server. If you're\n"
"installing FreeBSD from a supported CD/DVD drive then this is generally\n"
"the best media to use if you have no overriding reason for using other\n"
"media.",
"Press F1 for more information on the various media types",
"media",
{ { "1 CD/DVD", "Install from a FreeBSD CD/DVD", NULL, mediaSetCDROM },
{ "2 FTP", "Install from an FTP server", NULL, mediaSetFTPActive },
{ "3 FTP Passive", "Install from an FTP server through a firewall", NULL, mediaSetFTPPassive },
{ "4 HTTP", "Install from an FTP server through a http proxy", NULL, mediaSetHTTP },
{ "5 DOS", "Install from a DOS partition", NULL, mediaSetDOS },
{ "6 NFS", "Install over NFS", NULL, mediaSetNFS },
{ "7 File System", "Install from an existing filesystem", NULL, mediaSetUFS },
{ "8 Floppy", "Install from a floppy disk set", NULL, mediaSetFloppy },
{ "9 Tape", "Install from SCSI or QIC tape", NULL, mediaSetTape },
{ "X Options", "Go to the Options screen", NULL, optionsEditor },
{ NULL } },
};
/* The distributions menu */
DMenu MenuDistributions = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
"Choose Distributions",
"As a convenience, we provide several \"canned\" distribution sets.\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 the\n"
"list of distributions yourself, simply select \"Custom\". You can also\n"
"pick a canned distribution set and then fine-tune it with the Custom item.\n\n"
"Choose an item by pressing [SPACE] or [ENTER]. When finished, choose the\n"
"Exit item or move to the OK button with [TAB].",
"Press F1 for more information on these options.",
"distributions",
{ { "X Exit", "Exit this menu (returning to previous)",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ "All", "All system sources, binaries and X Window System)",
checkDistEverything, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
{ "Reset", "Reset selected distribution list to nothing",
NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
{ "4 Developer", "Full sources, binaries and doc but no games",
checkDistDeveloper, distSetDeveloper },
{ "5 X-Developer", "Same as above + X Window System",
checkDistXDeveloper, distSetXDeveloper },
{ "6 Kern-Developer", "Full binaries and doc, kernel sources only",
checkDistKernDeveloper, distSetKernDeveloper },
{ "7 X-Kern-Developer", "Same as above + X Window System",
checkDistXKernDeveloper, distSetXKernDeveloper },
{ "8 User", "Average user - binaries and doc only",
checkDistUser, distSetUser },
{ "9 X-User", "Same as above + X Window System",
checkDistXUser, distSetXUser },
{ "A Minimal", "The smallest configuration possible",
checkDistMinimum, distSetMinimum },
{ "B Custom", "Specify your own distribution set",
NULL, dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
{ NULL } },
};
DMenu MenuSubDistributions = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
"Select the distributions you wish to install.",
"Please check off the distributions you wish to install. At the\n"
"very minimum, this should be \"bin\".",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ "All", "All system sources, binaries and X Window System",
NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
{ "Reset", "Reset all of the below",
NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
{ " bin", "Binary base distribution (required)",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BIN },
#ifdef __i386__
{ " compat1x", "FreeBSD 1.x binary compatibility",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT1X },
{ " compat20", "FreeBSD 2.0 binary compatibility",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT20 },
{ " compat21", "FreeBSD 2.1 binary compatibility",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT21 },
{ " compat22", "FreeBSD 2.2.x and 3.0 a.out binary compatibility",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT22 },
#if __FreeBSD__ > 3
{ " compat3x", "FreeBSD 3.x binary compatibility",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT3X },
#endif
#if __FreeBSD__ > 4
{ " compat4x", "FreeBSD 4.x binary compatibility",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT4X },
#endif
#endif
{ " crypto", "Basic encryption services",
dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_CRYPTO, },
#if __FreeBSD__ <= 3
{ " krb", "KerberosIV authentication services",
dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS },
#else
{ " krb4", "KerberosIV authentication services",
dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS4 },
{ " krb5", "Kerberos5 authentication services",
dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS5 },
#endif
{ " dict", "Spelling checker dictionary files",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DICT },
{ " doc", "Miscellaneous FreeBSD online docs",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DOC },
{ " games", "Games (non-commercial)",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_GAMES },
{ " info", "GNU info files",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_INFO },
{ " man", "System manual pages - recommended",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_MANPAGES },
{ " catman", "Preformatted system manual pages",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_CATPAGES },
{ " proflibs", "Profiled versions of the libraries",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PROFLIBS },
{ " src", "Sources for everything",
srcFlagCheck, distSetSrc },
{ " ports", "The FreeBSD Ports collection",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
{ " local", "Local additions collection",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
{ " XFree86", "The XFree86 3.3.6 distribution",
x11FlagCheck, distSetXF86 },
{ NULL } },
};
DMenu MenuSrcDistributions = {
DMENU_CHECKLIST_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.",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ "All", "Select all of the below",
NULL, setSrc, NULL, NULL, ' ', ' ', ' ' },
{ "Reset", "Reset all of the below",
NULL, clearSrc, NULL, NULL, ' ', ' ', ' ' },
{ " base", "top-level files in /usr/src",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BASE },
{ " contrib", "/usr/src/contrib (contributed software)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CONTRIB },
{ " gnu", "/usr/src/gnu (software from the GNU Project)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GNU },
{ " etc", "/usr/src/etc (miscellaneous system files)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_ETC },
{ " games", "/usr/src/games (the obvious!)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GAMES },
{ " include", "/usr/src/include (header files)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_INCLUDE },
{ " lib", "/usr/src/lib (system libraries)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIB },
{ " libexec", "/usr/src/libexec (system programs)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIBEXEC },
{ " release", "/usr/src/release (release-generation tools)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RELEASE },
{ " bin", "/usr/src/bin (system binaries)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BIN },
{ " sbin", "/usr/src/sbin (system binaries)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SBIN },
{ " scrypto", "/usr/src/crypto (contrib encryption sources)",
dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SCRYPTO },
{ " share", "/usr/src/share (documents and shared files)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SHARE },
{ " skrb4", "/usr/src/kerberosIV (sources for KerberosIV)",
dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SKERBEROS4 },
{ " skrb5", "/usr/src/kerberos5 (sources for Kerberos5)",
dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SKERBEROS5 },
{ " ssecure", "/usr/src/secure (BSD encryption sources)",
dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SSECURE },
{ " sys", "/usr/src/sys (FreeBSD kernel)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SYS },
{ " tools", "/usr/src/tools (miscellaneous tools)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_TOOLS },
{ " ubin", "/usr/src/usr.bin (user binaries)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_UBIN },
{ " usbin", "/usr/src/usr.sbin (aux system binaries)",
dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_USBIN },
{ NULL } },
};
DMenu MenuXF86Config = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Please select the XFree86 configuration tool you want to use.",
#ifdef __alpha__
"Due to problems with the VGA16 server right now, only the\n"
"text-mode configuration tool (xf86config) is currently supported.",
#else
"The first tool, XF86Setup, is fully graphical and requires the\n"
"VGA16 server in order to work (should have been selected by\n"
"default, but if you de-selected it then you won't be able to\n"
"use this fancy setup tool). The second tool, xf86config, is\n"
"a more simplistic shell-script based tool and less friendly to\n"
"new users, but it may work in situations where the fancier one\n"
"does not.",
#endif
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
NULL, dmenuExit },
#ifdef __alpha__
{ "2 xf86config", "Shell-script based XFree86 configuration tool.",
NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
#else
{ "2 XF86Setup", "Fully graphical XFree86 configuration tool.",
NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=XF86Setup" },
{ "3 xf86config", "Shell-script based XFree86 configuration tool.",
NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
#ifdef PC98
{ "4 XF98Setup", "Fully graphical XFree86 configuration tool (PC98).",
NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=XF98Setup" },
#endif
#endif
{ "D XDesktop", "X already set up, just do desktop configuration.",
NULL, dmenuSubmenu, NULL, &MenuXDesktops },
{ NULL } },
};
DMenu MenuXDesktops = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Please select the default X desktop to use.",
"By default, XFree86 comes with a fairly vanilla desktop which\n"
"is based around the twm(1) window manager and does not offer\n"
"much in the way of features. It does have the advantage of\n"
"being a standard part of X so you don't need to load anything\n"
"extra in order to use it. If, however, you have access to a\n"
"reasonably full packages collection on your installation media,\n"
"you can choose any one of the following desktops as alternatives.",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
NULL, dmenuExit },
{ "2 KDE", "The K Desktop Environment.",
NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=kde" },
{ "3 GNOME + Sawfish", "GNOME + Sawfish window manager.",
NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=gnome" },
{ "4 GNOME + Enlightenment","GNOME + The E window manager",
NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=enlightenment" },
{ "5 Afterstep", "The Afterstep window manager",
NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=afterstep" },
{ "6 Windowmaker", "The Windowmaker window manager",
NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=windowmaker" },
{ "7 fvwm", "The fvwm window manager",
NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=fvwm2" },
{ NULL } },
};
DMenu MenuXF86Select = {
DMENU_NORMAL_TYPE,
"XFree86 3.3.6 Distribution",
"Please select the components you need from the XFree86 3.3.6\n"
"distribution sets.",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
{ "Basic", "Basic component menu (required)", NULL, dmenuSubmenu, NULL, &MenuXF86SelectCore },
{ "Server", "X server menu", NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
{ "Fonts", "Font set menu", NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
{ NULL } },
};
DMenu MenuXF86SelectCore = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
"XFree86 3.3.6 base distribution types",
"Please check off the basic XFree86 components you wish to install.\n"
"Bin, lib, and set are recommended for a minimum installaion.",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ "All", "Select all below",
NULL, setX11Misc, NULL, NULL, ' ', ' ', ' ' },
{ "Reset", "Reset all below",
NULL, clearX11Misc, NULL, NULL, ' ', ' ', ' ' },
{ " bin", "Client applications and shared libs",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_BIN },
{ " lib", "Data files needed at runtime",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LIB },
{ " cfg", "Configuration files",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_CFG },
{ " set", "XFree86 Setup Utility",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_SET },
{ " man", "Manual pages",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_MAN },
{ " doc", "READMEs and release notes",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_DOC },
{ " html", "HTML documentation files",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_HTML },
{ " lkit", "Server link kit for all other machines",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT },
{ " prog", "Programmer's header and library files",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_PROG },
#if defined(__i386__) && defined(PC98)
{ " 9set", "XFree86 Setup Utility for PC98 machines",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_9SET },
{ " lk98", "Server link kit for PC98 machines",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT98 },
#endif
{ NULL } },
};
DMenu MenuXF86SelectFonts = {
DMENU_CHECKLIST_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,
{ { "X Exit", "Exit this menu (returning to previous)",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ "All", "All fonts",
NULL, setX11Fonts, NULL, NULL, ' ', ' ', ' ' },
{ "Reset", "Reset font selections",
NULL, clearX11Fonts, NULL, NULL, ' ', ' ', ' ' },
{ " fnts", "Standard 75 DPI and miscellaneous fonts",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_MISC },
{ " f100", "100 DPI fonts",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_100 },
{ " fcyr", "Cyrillic Fonts",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_CYR },
{ " fscl", "Speedo and Type scalable fonts",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_SCALE },
{ " non", "Japanese, Chinese and other non-english fonts",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_NON },
{ " server", "Font server",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_SERVER },
{ NULL } },
};
DMenu MenuXF86SelectServer = {
DMENU_CHECKLIST_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 or, for PC98\n"
"machines, the 9EGC or 9840 servers.",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ "All", "Select all of the above",
NULL, setX11Servers, NULL, NULL, ' ', ' ', ' ' },
{ "Reset", "Reset all of the above",
NULL, clearX11Servers, NULL, NULL, ' ', ' ', ' ' },
{ " SVGA", "Standard VGA or Super VGA card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_SVGA },
{ " VGA16", "Standard 16 color VGA card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_VGA16 },
{ " Mono", "Standard Monochrome card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MONO },
{ " 3DL", "8, 16 and 24 bit color 3D Labs boards",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_3DL },
{ " 8514", "8-bit (256 color) IBM 8514 or compatible card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_8514 },
{ " AGX", "8-bit AGX card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_AGX },
{ " I128", "8, 16 and 24-bit #9 Imagine I128 card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_I128 },
{ " Ma8", "8-bit ATI Mach8 card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH8 },
{ " Ma32", "8 and 16-bit (65K color) ATI Mach32 card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH32 },
{ " Ma64", "8 and 16-bit (65K color) ATI Mach64 card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH64 },
{ " P9K", "8, 16, and 24-bit color Weitek P9000 based boards",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_P9000 },
{ " S3", "8, 16 and 24-bit color S3 based boards",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_S3 },
{ " S3V", "8, 16 and 24-bit color S3 Virge based boards",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_S3V },
{ " W32", "8-bit ET4000/W32, /W32i and /W32p cards",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_W32 },
#if defined(__i386__) && defined(PC98)
{ " PC98", "Select an X server for a NEC PC98 [Submenu]",
NULL, dmenuSubmenu, NULL, &MenuXF86SelectPC98Server, '>', ' ', '>', 0 },
#elif __alpha__
{ " TGA", "TGA cards (alpha architecture only)",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_TGA },
#endif
{ NULL } },
};
#if defined(__i386__) && defined(PC98)
DMenu MenuXF86SelectPC98Server = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
"PC98 X Server selection.",
"Please check off the types of NEC PC98 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).",
NULL,
NULL,
{ { " 9480", "PC98 8-bit (256 color) PEGC-480 card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9480 },
{ " 9EGC", "PC98 4-bit (16 color) EGC card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9EGC },
{ " 9GA9", "PC98 GA-968V4/PCI (S3 968) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9GA9 },
{ " 9GAN", "PC98 GANB-WAP (cirrus) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9GAN },
{ " 9LPW", "PC98 PowerWindowLB (S3) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9LPW },
{ " 9MGA", "PC98 MGA (Matrox) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9MGA },
{ " 9NKV", "PC98 NKV-NEC (cirrus) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9NKV },
{ " 9NS3", "PC98 NEC (S3) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9NS3 },
{ " 9SPW", "PC98 SKB-PowerWindow (S3) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9SPW },
{ " 9SVG", "PC98 generic SVGA card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9SVG },
{ " 9TGU", "PC98 Cyber9320 and TGUI9680 cards",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9TGU },
{ " 9WEP", "PC98 WAB-EP (cirrus) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WEP },
{ " 9WS", "PC98 WABS (cirrus) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WS },
{ " 9WSN", "PC98 WSN-A2F (cirrus) card",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WSN },
{ NULL } }
};
#endif
DMenu MenuDiskDevices = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
"Select Drive(s)",
"Please select the drive, or drives, on which you wish to perform\n"
"this operation. If you are attempting to install a boot partition\n"
"on a drive other than the first one or have multiple operating\n"
"systems on your machine, you will have the option to install a boot\n"
"manager later. To select a drive, use the arrow keys to move to it\n"
"and press [SPACE] or [ENTER]. To de-select it, press it again.\n\n"
"Select OK or Cancel to leave this menu.",
"Press F1 for important information regarding disk geometry!",
"drives",
{ { NULL } },
};
DMenu MenuHTMLDoc = {
DMENU_NORMAL_TYPE,
"Select HTML Documentation pointer",
"Please select the body of documentation you're interested in, the main\n"
"ones right now being the FAQ and the Handbook. You can also choose \"other\"\n"
"to enter an arbitrary URL for browsing.",
"Press F1 for more help on what you see here.",
"html",
{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
{ "2 Handbook", "The FreeBSD Handbook.", NULL, docShowDocument },
{ "3 FAQ", "The Frequently Asked Questions guide.", NULL, docShowDocument },
{ "4 Home", "The Home Pages for the FreeBSD Project (requires net)", NULL, docShowDocument },
{ "5 Other", "Enter a URL.", NULL, docShowDocument },
{ NULL } },
};
/* The main installation menu */
DMenu MenuInstallCustom = {
DMENU_NORMAL_TYPE,
"Choose Custom Installation Options",
"This is the custom installation menu. You may use this menu to specify\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.",
"Press F1 to read the installation guide",
"INSTALL",
{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
{ "2 Options", "View/Set various installation options", NULL, optionsEditor },
#ifdef __alpha__
{ "3 Label", "Label disk partitions", NULL, diskLabelEditor },
{ "4 Distributions", "Select distribution(s) to extract", NULL, dmenuSubmenu, NULL, &MenuDistributions },
{ "5 Media", "Choose the installation media type", NULL, dmenuSubmenu, NULL, &MenuMedia },
{ "6 Commit", "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
#else
{ "3 Partition", "Allocate disk space for FreeBSD", NULL, diskPartitionEditor },
{ "4 Label", "Label allocated disk partitions", NULL, diskLabelEditor },
{ "5 Distributions", "Select distribution(s) to extract", NULL, dmenuSubmenu, NULL, &MenuDistributions },
{ "6 Media", "Choose the installation media type", NULL, dmenuSubmenu, NULL, &MenuMedia },
{ "7 Commit", "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
#endif
{ NULL } },
};
/* MBR type menu */
DMenu MenuMBRType = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"overwrite me", /* will be disk specific label */
"FreeBSD comes with a boot selector that allows you to easily\n"
"select between FreeBSD and any other operating systems on your machine\n"
"at boot time. If you have more than one drive and want to boot\n"
"from the second one, the boot selector will also make it possible\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\".\n\n"
" NOTE: PC-DOS users will almost certainly require \"None\"!",
"Press F1 to read about drive setup",
"drives",
{ { "BootMgr", "Install the FreeBSD Boot Manager",
dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr },
#ifndef PC98
{ "Standard", "Install a standard MBR (no boot manager)",
dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
#endif
{ "None", "Leave the Master Boot Record untouched",
dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
{ 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 customize\n"
"it somewhat to suit your particular configuration. Most importantly,\n"
"you can use the Packages utility to load extra \"3rd party\"\n"
"software not provided in the base distributions.",
"Press F1 for more information on these options",
"configure",
{ { "X Exit", "Exit this menu (returning to previous)",
NULL, dmenuExit },
{ " Distributions", "Install additional distribution sets",
NULL, distExtractAll },
{ " Packages", "Install pre-packaged software for FreeBSD",
NULL, configPackages },
{ " Root Password", "Set the system manager's password",
NULL, dmenuSystemCommand, NULL, "passwd root" },
#ifdef __i386__
{ " Fdisk", "The disk Slice (PC-style partition) Editor",
NULL, diskPartitionEditor },
#endif
{ " Label", "The disk Label editor",
NULL, diskLabelEditor },
{ " User Management", "Add user and group information",
NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
{ " Console", "Customize system console behavior",
NULL, dmenuSubmenu, NULL, &MenuSyscons },
{ " Time Zone", "Set which time zone you're in",
NULL, dmenuSystemCommand, NULL, "tzsetup" },
{ " Media", "Change the installation media type",
NULL, dmenuSubmenu, NULL, &MenuMedia },
{ " Mouse", "Configure your mouse",
NULL, dmenuSubmenu, NULL, &MenuMouse, NULL },
{ " Networking", "Configure additional network services",
NULL, dmenuSubmenu, NULL, &MenuNetworking },
{ " Security", "Select default system security profile",
NULL, dmenuSubmenu, NULL, &MenuSecurityProfile },
{ " Startup", "Configure system startup options",
NULL, dmenuSubmenu, NULL, &MenuStartup },
{ " TTYs", "Configure system ttys.",
NULL, configEtcTtys, NULL, "ttys" },
{ " Options", "View/Set various installation options",
NULL, optionsEditor },
{ " XFree86", "Configure XFree86 Server",
NULL, configXSetup },
{ " Desktop", "Configure XFree86 Desktop",
NULL, configXDesktop },
{ " HTML Docs", "Go to the HTML documentation menu (post-install)",
NULL, docBrowser },
{ NULL } },
};
DMenu MenuStartup = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
"Startup Services Menu",
"This menu allows you to configure various aspects of your system's\n"
"startup configuration. Use [SPACE] or [ENTER] to select items, and\n"
"[TAB] to move to the buttons. Select Exit to leave this menu.",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ " APM", "Auto-power management services (typically laptops)",
dmenuVarCheck, dmenuToggleVariable, NULL, "apm_enable=YES" },
{ " pccard", "Enable PCCARD (AKA PCMCIA) services (also laptops)",
dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },
{ " pccard mem", "Set PCCARD memory address (if enabled)",
dmenuVarCheck, dmenuISetVariable, NULL, "pccard_mem" },
{ " pccard ifconfig", "List of PCCARD ethernet devices to configure",
dmenuVarCheck, dmenuISetVariable, NULL, "pccard_ifconfig" },
{ " ", " -- ", NULL, NULL, NULL, NULL, ' ', ' ', ' ' },
{ " startup dirs", "Set the list of dirs to look for startup scripts",
dmenuVarCheck, dmenuISetVariable, NULL, "local_startup" },
{ " named", "Run a local name server on this host",
dmenuVarCheck, dmenuToggleVariable, NULL, "named_enable=YES" },
{ " named flags", "Set default flags to named (if enabled)",
dmenuVarCheck, dmenuISetVariable, NULL, "named_flags" },
{ " nis client", "This host wishes to be an NIS client.",
dmenuVarCheck, dmenuToggleVariable, NULL, "nis_client_enable=YES" },
{ " nis domainname", "Set NIS domainname (if enabled)",
dmenuVarCheck, dmenuISetVariable, NULL, "nisdomainname" },
{ " nis server", "This host wishes to be an NIS server.",
dmenuVarCheck, dmenuToggleVariable, NULL, "nis_server_enable=YES" },
{ " ", " -- ", NULL, NULL, NULL, NULL, ' ', ' ', ' ' },
{ " accounting", "This host wishes to run process accounting.",
dmenuVarCheck, dmenuToggleVariable, NULL, "accounting_enable=YES" },
{ " lpd", "This host has a printer and wants to run lpd.",
dmenuVarCheck, dmenuToggleVariable, NULL, "lpd_enable=YES" },
#ifdef __i386__
{ " linux", "This host wants to be able to run linux binaries.",
dmenuVarCheck, configLinux, NULL, VAR_LINUX_ENABLE "=YES" },
{ " SVR4", "This host wants to be able to run SVR4 binaries.",
dmenuVarCheck, dmenuToggleVariable, NULL, "svr4_enable=YES" },
{ " SCO", "This host wants to be able to run IBCS2 binaries.",
dmenuVarCheck, dmenuToggleVariable, NULL, "ibcs2_enable=YES" },
#elif __alpha__
{ " OSF/1", "This host wants to be able to run DEC OSF/1 binaries.",
dmenuVarCheck, dmenuToggleVariable, NULL, "osf1_enable=YES" },
#endif
{ " quotas", "This host wishes to check quotas on startup.",
dmenuVarCheck, dmenuToggleVariable, NULL, "check_quotas=YES" },
{ NULL } },
};
DMenu MenuNetworking = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
"Network Services Menu",
"You may have already configured one network device (and the other\n"
"various hostname/gateway/name server parameters) in the process\n"
"of installing FreeBSD. This menu allows you to configure other\n"
"aspects of your system's network configuration.",
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ " Interfaces", "Configure additional network interfaces",
NULL, tcpMenuSelect },
{ " AMD", "This machine wants to run the auto-mounter service",
dmenuVarCheck, dmenuToggleVariable, NULL, "amd_enable=YES" },
{ " AMD Flags", "Set flags to AMD service (if enabled)",
dmenuVarCheck, dmenuISetVariable, NULL, "amd_flags" },
{ " Anon FTP", "This machine wishes to allow anonymous FTP.",
dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
{ " Gateway", "This machine will route packets between interfaces",
dmenuVarCheck, dmenuToggleVariable, NULL, "gateway_enable=YES" },
{ " inetd", "This machine wants to run the inet daemon",
dmenuVarCheck, configInetd, NULL, "inetd_enable=YES" },
{ " NFS client", "This machine will be an NFS client",
dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
{ " NFS server", "This machine will be an NFS server",
dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
{ " Ntpdate", "Select a clock-synchronization server",
dmenuVarCheck, dmenuSubmenu, NULL, &MenuNTP, '[', 'X', ']', "ntpdate_enable=YES" },
{ " PCNFSD", "Run authentication server for clients with PC-NFS.",
dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
{ " portmap", "This machine wants to run the portmapper daemon",
dmenuVarCheck, dmenuToggleVariable, NULL, "portmap_enable=YES" },
{ " Routed", "Select routing daemon (default: routed)",
dmenuVarCheck, configRouter, NULL, "router_enable=YES" },
{ " Rwhod", "This machine wants to run the rwho daemon",
dmenuVarCheck, dmenuToggleVariable, NULL, "rwhod_enable=YES" },
{ " Sendmail", "This machine wants to run the sendmail daemon",
dmenuVarCheck, dmenuToggleVariable, NULL, "sendmail_enable=YES" },
{ " Sshd", "This machine wants to run the ssh daemon",
dmenuVarCheck, dmenuToggleVariable, NULL, "sshd_enable=YES" },
{ " TCP Extensions", "Allow RFC1323 and RFC1644 TCP extensions?",
dmenuVarCheck, dmenuToggleVariable, NULL, "tcp_extensions=YES" },
{ NULL } },
};
DMenu MenuNTP = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"NTPDATE Server Selection",
"There are a number of time synchronization servers available\n"
"for public use around the Internet. Please select one reasonably\n"
"close to you to have your system time synchronized accordingly.",
"These are the primary open-access NTP servers",
NULL,
{ { "None", "No NTP server",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=NO,ntpdate_flags=none" },
{ "Other", "Select a site not on this list",
dmenuVarsCheck, configNTP, NULL, NULL },
{ "Australia", "ntp.nml.csiro.au (HP 5071A Cesium Beam)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=ntp.tip.csiro.au" },
{ " Canada", "tick.usask.ca (GOES clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=tick.usask.ca" },
{ "France", "canon.inria.fr (TDF clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=canon.inria.fr" },
{ "Germany", "ntps1-{0,1,2}.uni-erlangen.de (GPS)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=ntps1-0.uni-erlangen.de" },
{ " Germany #2", "ntps1-0.cs.tu-berlin.de (GPS)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=ntps1-0.cs.tu-berlin.de" },
{ "Japan", "clock.nc.fukuoka-u.ac.jp (GPS clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=clock.nc.fukuoka-u.ac.jp" },
{ " Japan #2", "clock.tl.fukuoka-u.ac.jp (GPS clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=clock.tl.fukuoka-u.ac.jp" },
{ "Netherlands", "ntp0.nl.net (GPS clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=ntp0.nl.net" },
{ " Norway", "timehost.ifi.uio.no (NTP clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=timehost.ifi.uio.no" },
{ "Sweden", "Time1.Stupi.SE (Cesium/GPS)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=Time1.Stupi.SE" },
{ " Switzerland", "swisstime.ethz.ch (DCF77 clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=swisstime.ethz.ch" },
{ "U.S. East Coast", "bitsy.mit.edu (WWV clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=bitsy.mit.edu" },
{ " U.S. East Coast #2", "otc1.psu.edu (WWV clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=otc1.psu.edu" },
{ " U.S. West Coast #1", "clepsydra.dec.com (GOES clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=clepsydra.dec.com" },
{ " U.S. West Coast #2", "clock.llnl.gov (WWVB clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=clock.llnl.gov" },
{ " U.S. Midwest", "ncar.ucar.edu (WWVB clock)",
dmenuVarsCheck, dmenuSetVariables, NULL,
"ntpdate_enable=YES,ntpdate_flags=ncar.ucar.edu" },
{ 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.\n\n"
"When you are done setting configuration options, select Cancel.",
"Configure your system console settings",
NULL,
{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
{ "2 Font", "Choose an alternate screen font", NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
{ "3 Keymap", "Choose an alternate keyboard map", NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
{ "4 Repeat", "Set the rate at which keys repeat", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
{ "5 Saver", "Configure the screen saver", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
{ "6 Screenmap", "Choose an alternate screenmap", NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
{ "7 Ttys", "Choose console terminal type", NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
{ NULL } },
};
#ifdef PC98
DMenu MenuSysconsKeymap = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"System Console Keymap",
"The default system console driver for FreeBSD (syscons) defaults\n"
"to a standard \"PC-98x1\" keyboard map. Users may wish to choose\n"
"one of the other keymaps below.\n"
"Note that sysinstall itself only uses the part of the keyboard map\n"
"which is required to generate the ANSI character subset, but your\n"
"choice of keymap will also be saved for later (fuller) use.",
"Choose a keyboard map",
NULL,
{ { "Japanese PC-98x1", "Japanese PC-98x1 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98" },
{ " Japanese PC-98x1 (ISO)", "Japanese PC-98x1 (ISO) keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98.iso" },
{ NULL } },
};
#else
DMenu MenuSysconsKeymap = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"System Console Keymap",
"The default system console driver for FreeBSD (syscons) defaults\n"
"to a standard \"American\" keyboard map. Users in other countries\n"
"(or with different keyboard preferences) may wish to choose one of\n"
"the other keymaps below.\n"
"Note that sysinstall itself only uses the part of the keyboard map\n"
"which is required to generate the ANSI character subset, but your\n"
"choice of keymap will also be saved for later (fuller) use.",
"Choose a keyboard map",
NULL,
{ { "Belgian", "Belgian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=be.iso" },
{ " Brazil CP850", "Brazil CP850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.cp850" },
{ " Brazil ISO (accent)", "Brazil ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso.acc" },
{ " Brazil ISO", "Brazil ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso" },
{ " Croatian ISO", "Croatian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hr.iso" },
{ "Danish CP865", "Danish Code Page 865 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.cp865" },
{ " Danish ISO", "Danish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.iso" },
{ "Estonian ISO", "Estonian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso" },
{ " Estonian ISO 15", "Estonian ISO 8859-15 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso15" },
{ " Estonian CP850", "Estonian Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.cp850" },
{ "Finnish CP850","Finnish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.cp850" },
{ " Finnish ISO", "Finnish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.iso" },
{ " French ISO (accent)", "French ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso.acc" },
{ " French ISO", "French ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso" },
{ "German CP850", "German Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.cp850" },
{ " German ISO", "German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.iso" },
{ "Hungarian 101", "Hungarian ISO keymap (101 key)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.101keys" },
{ " Hungarian 102", "Hungarian ISO keymap (102 key)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.102keys" },
{ "Icelandic (accent)", "Icelandic ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso.acc" },
{ " Icelandic", "Icelandic ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso" },
{ " Italian", "Italian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=it.iso" },
{ "Japanese 106", "Japanese 106 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.106" },
{ "Latin American", "Latin American ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=lat-amer" },
{ "Norway ISO", "Norwegian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=norwegian.iso" },
{ "Polish ISO", "Polish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pl_PL.ISO8859-2" },
{ " Portuguese (accent)", "Portuguese ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso.acc" },
{ " Portuguese", "Portuguese ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso" },
{ "Russia KOI8-R", "Russian KOI8-R keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ru.koi8-r" },
{ "Slovenian", "Slovenian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=si.iso" },
{ " Spanish (accent)", "Spanish ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso.acc" },
{ " Spanish", "Spanish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso" },
{ " Swedish CP850", "Swedish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.cp850" },
{ " Swedish ISO", "Swedish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.iso" },
{ " Swiss French ISO (accent)", "Swiss French ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso.acc" },
{ " Swiss French ISO", "Swiss French ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso" },
{ " Swiss French CP850", "Swiss French Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.cp850" },
{ " Swiss German ISO (accent)", "Swiss German ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso.acc" },
{ " Swiss German ISO", "Swiss German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso" },
{ " Swiss German CP850", "Swiss German Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.cp850" },
{ "UK CP850", "UK Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.cp850" },
{ " UK ISO", "UK ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.iso" },
{ " Ukrainian KOI8-U", "Ukrainian KOI8-U keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u" },
{ " Ukrainian KOI8-U+KOI8-R", "Ukrainian KOI8-U+KOI8-R keymap (alter)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u.shift.alt" },
{ " USA CapsLock->Ctrl", "US standard (Caps as L-Control)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.pc-ctrl" },
{ " USA Dvorak", "US Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorak" },
{ " USA Dvorak (left)", "US left handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakl" },
{ " USA Dvorak (right)", "US right handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakr" },
{ " USA Emacs", "US standard optimized for EMACS", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.emacs" },
{ " USA ISO", "US ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.iso" },
{ " USA UNIX", "US traditional UNIX-workstation", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.unix" },
{ NULL } },
};
#endif
DMenu MenuSysconsKeyrate = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"System Console Keyboard Repeat Rate",
"This menu allows you to set the speed at which keys repeat\n"
"when held down.",
"Choose a keyboard repeat rate",
NULL,
{ { "Slow", "Slow keyboard repeat rate", dmenuVarCheck, dmenuSetVariable, NULL, "keyrate=slow" },
{ "Normal", "\"Normal\" keyboard repeat rate", dmenuVarCheck, dmenuSetVariable, NULL, "keyrate=normal" },
{ "Fast", "Fast keyboard repeat rate", dmenuVarCheck, dmenuSetVariable, NULL, "keyrate=fast" },
{ "Default", "Use default keyboard repeat rate", dmenuVarCheck, dmenuSetVariable, NULL, "keyrate=NO" },
{ NULL } },
};
DMenu MenuSysconsSaver = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"System Console Screen Saver",
"By default, the console driver will not attempt to do anything\n"
"special with your screen when it's idle. If you expect to leave your\n"
"monitor switched on and idle for long periods of time then you should\n"
"probably enable one of these screen savers to prevent phosphor burn-in.",
"Choose a nifty-looking screen saver",
NULL,
{ { "1 Blank", "Simply blank the screen",
dmenuVarCheck, configSaver, NULL, "saver=blank" },
{ "2 Daemon", "\"BSD Daemon\" animated screen saver (text)",
dmenuVarCheck, configSaver, NULL, "saver=daemon" },
{ "3 Fade", "Fade out effect screen saver",
dmenuVarCheck, configSaver, NULL, "saver=fade" },
{ "4 Fire", "Flames effect screen saver",
dmenuVarCheck, configSaver, NULL, "saver=fire" },
{ "5 Green", "\"Green\" power saving mode (if supported by monitor)",
dmenuVarCheck, configSaver, NULL, "saver=green" },
{ "6 Logo", "\"BSD Daemon\" animated screen saver (graphics)",
dmenuVarCheck, configSaver, NULL, "saver=logo" },
{ "7 Rain", "Rain drops screen saver",
dmenuVarCheck, configSaver, NULL, "saver=rain" },
{ "8 Snake", "Draw a FreeBSD \"snake\" on your screen",
dmenuVarCheck, configSaver, NULL, "saver=snake" },
{ "9 Star", "A \"twinkling stars\" effect",
dmenuVarCheck, configSaver, NULL, "saver=star" },
{ "Warp", "A \"stars warping\" effect",
dmenuVarCheck, configSaver, NULL, "saver=warp" },
{ "Timeout", "Set the screen saver timeout interval",
NULL, configSaverTimeout, NULL, NULL, ' ', ' ', ' ' },
{ NULL } },
};
DMenu MenuSysconsScrnmap = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"System Console Screenmap",
"Unless you load a specific font, most PC hardware defaults to\n"
"displaying characters in the IBM 437 character set. However,\n"
"in the Unix world, this character set is very rarely used. Most\n"
"Western European countries, for example, prefer ISO 8859-1.\n"
"American users won't notice the difference since the bottom half\n"
"of all these character sets is ANSI anyway.\n"
"If your hardware is capable of downloading a new display font,\n"
"you should probably choose that option. However, for hardware\n"
"where this is not possible (e.g. monochrome adapters), a screen\n"
"map will give you the best approximation that your hardware can\n"
"display at all.",
"Choose a screen map",
NULL,
{ { "None", "No screenmap, use default font", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=NO" },
{ "KOI8-R to IBM866", "Russian KOI8-R to IBM 866 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-r2cp866" },
{ "KOI8-U to IBM866u", "Ukrainian KOI8-U to IBM 866u screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-u2cp866u" },
{ "ISO 8859-1 to IBM437", "W-Europe ISO 8859-1 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-1_to_cp437" },
{ NULL } },
};
DMenu MenuSysconsTtys = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"System Console Terminal Type",
"For various console encodings corresponding terminal type\n"
"must be choosed in /etc/ttys.\n"
"WARNING: due to compatibility reasons, only entries started with\n"
"ttyv and with terminal type started with cons[0-9] can be changed\n"
"via this menu.\n",
"Choose a terminal type",
NULL,
{ { "1 None", "Don't touch anything", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=NO" },
{ "2 US-ASCII or IBM437", "cons25", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25" },
{ "3 ISO 8859-1", "cons25l1", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l1" },
{ "4 ISO 8859-2", "cons25l2", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l2" },
{ "5 KOI8-R", "cons25r", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25r" },
{ "6 KOI8-U", "cons25u", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25u" },
{ NULL } },
};
DMenu MenuSysconsFont = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"System Console Font",
"Most PC hardware defaults to displaying characters in the\n"
"IBM 437 character set. However, in the Unix world, this\n"
"character set is very rarely used. Most Western European\n"
"countries, for example, prefer ISO 8859-1.\n"
"American users won't notice the difference since the bottom half\n"
"of all these charactersets is ANSI anyway. However, they might\n"
"want to load a font anyway to use the 30- or 50-line displays.\n"
"If your hardware is capable of downloading a new display font,\n"
"you can select the appropriate font below.",
"Choose a font",
NULL,
{ { "1 None", "Use default font", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=NO,font8x14=NO,font8x16=NO" },
{ "2 IBM 437", "English", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=cp437-8x8,font8x14=cp437-8x14,font8x16=cp437-8x16" },
{ "3 IBM 850", "Western Europe, IBM encoding", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=cp850-8x8,font8x14=cp850-8x14,font8x16=cp850-8x16" },
{ "4 IBM 865", "Norwegian, IBM encoding", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=cp865-8x8,font8x14=cp865-8x14,font8x16=cp865-8x16" },
{ "5 IBM 866", "Russian, IBM encoding (use with KOI8-R screenmap)", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=cp866-8x8,font8x14=cp866-8x14,font8x16=cp866b-8x16,mousechar_start=3" },
{ "6 IBM 866u", "Ukrainian, IBM encoding (use with KOI8-U screenmap)", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=cp866u-8x8,font8x14=cp866u-8x14,font8x16=cp866u-8x16,mousechar_start=3" },
{ "7 ISO 8859-1", "Western Europe, ISO encoding", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=iso-8x8,font8x14=iso-8x14,font8x16=iso-8x16" },
{ "8 ISO 8859-2", "Eastern Europe, ISO encoding", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=iso02-8x8,font8x14=iso02-8x14,font8x16=iso02-8x16" },
{ "9 SWISS", "English, better resolution", dmenuVarCheck, dmenuSetVariables, NULL,
"font8x8=swiss-8x8,font8x14=NO,font8x16=swiss-8x16" },
{ NULL } },
};
DMenu MenuUsermgmt = {
DMENU_NORMAL_TYPE,
"User and group management",
"The submenus here allow to manipulate user groups and\n"
"login accounts.\n",
"Configure your user groups and users",
NULL,
{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
{ "User", "Add a new user to the system.", NULL, userAddUser },
{ "Group", "Add a new user group to the system.", NULL, userAddGroup },
{ NULL } },
};
DMenu MenuSecurityProfile = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Default system security profile",
"Each item in this list will set what it considers to\n"
"be \"appropriate\" values in that category for various\n"
"security-related knobs in /etc/rc.conf.",
"Select a canned security profile - F1 for help",
"security", /* help file */
{ { "X Exit", "Exit this menu (returning to previous)", NULL, configSecurityModerate },
{ "Medium", "Moderate security settings [DEFAULT].", NULL, configSecurityModerate },
{ "Extreme", "Very restrictive security settings.", NULL, configSecurityExtreme },
{ NULL } },
};
DMenu MenuFixit = {
DMENU_NORMAL_TYPE,
"Please choose a fixit option",
"There are three ways of going into \"fixit\" mode:\n"
"- you can use the 2nd FreeBSD CDROM, in which case there will be\n"
" full access to the complete set of FreeBSD commands and utilities,\n"
"- you can use the more limited (but perhaps customized) fixit floppy,\n"
"- or you can start an Emergency Holographic Shell now, which is\n"
" limited to the subset of commands that is already available right now.",
"Press F1 for more detailed repair instructions",
"fixit",
{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
{ "2 CDROM", "Use the 2nd \"live\" CDROM from the distribution", NULL, installFixitCDROM },
{ "3 Floppy", "Use a floppy generated from the fixit image", NULL, installFixitFloppy },
{ "4 Shell", "Start an Emergency Holographic Shell", NULL, installFixitHoloShell },
{ NULL } },
};
|