aboutsummaryrefslogtreecommitdiff
path: root/nl_NL.ISO8859-1/books/handbook/linuxemu/chapter.sgml
blob: 744bcbab87a1d7e667095be6dd987c56ca3174ee (plain) (blame)
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
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
<!--
     The FreeBSD Dutch Documentation Project

     $FreeBSD$

     %SOURCE%	en_US.ISO8859-1/books/handbook/linuxemu/chapter.sgml
     %SRCID%	1.140
-->

<chapter id="linuxemu">
  <chapterinfo>
    <authorgroup>
      <author>
	<firstname>Jim</firstname>
	<surname>Mock</surname>
	<contrib>Geherstructureerd en delen bijgewerkt door </contrib>
      </author>
      <!-- 22 Mar 2000 -->
    </authorgroup>
    <authorgroup>
      <author>
	<firstname>Brian N.</firstname>
	<surname>Handy</surname>
	<contrib>Origineel bijgedragen door </contrib>
      </author>
      <author>
	<firstname>Rich</firstname>
	<surname>Murphey</surname>
      </author>
    </authorgroup>
    <authorgroup>
      <author>
	<firstname>Ren&eacute;</firstname>
	<surname>Ladan</surname>
	<contrib>Vertaald door </contrib>
      </author>
    </authorgroup>
  </chapterinfo>

  <title>&linux; binaire compatibiliteit</title>

  <sect1 id="linuxemu-synopsis">
    <title>Overzicht</title>

    <para>&os; levert binaire compatibiliteit met verscheidene andere
      &unix; achtige besturingssystemen, waaronder &linux;.  Op dit
      moment kan de vraag gesteld worden waarom &os; nu precies
      &linux;-binairen moet kunnen draaien.  Het antwoord is dat veel
      bedrijven en ontwikkelaars alleen ontwikkelen voor &linux;, omdat
      dat het nieuwste <quote>hebbeding</quote> is in de wereld van
      computers.  Dat laat &os; gebruikers al zeurend achter bij
      diezelfde bedrijven en ontwikkelaars om originele &os; versies
      van hun applicaties.  Het probleem is dat veel van deze bedrijven
      zich niet goed realiseren hoeveel mensen hun product zouden
      gebruiken als er ook &os; versies van waren en de meesten blijven
      alleen voor &linux; ontwikkelen.  Dus wat moet een &os; gebruiker
      doen?  Hier komt de &linux; binaire compatibiliteit van &os; om
      de hoek kijken.</para>

    <para>In een notendop stelt de compatibiliteit &os; in staat om
      rond de 90% van alle &linux; applicaties zonder wijzigingen te
      draaien.  Dit omvat applicaties zoals
      <application>&staroffice;</application>, de &linux; versie van
      <application>&netscape;</application>,
      <application>&adobe;&nbsp;&acrobat;</application>,
      <application>&realplayer;</application>,
      <application><trademark>VMWare</trademark></application>,
      <application>&oracle;</application>,
      <application>&wordperfect;</application>,
      <application>Doom</application>,
      <application>Quake</application> en meer.  Er wordt zelfs gemeld
      dat in sommige gevallen &linux;-binairen beter presteren op &os;
      dan op &linux;.</para>

    <para>Er zijn echter enkele &linux;-specifieke
      besturingssysteemeigenschappen die niet door &os; ondersteund
      worden.  &linux;-binairen werken niet op &os; als ze overvloedig
      gebruik maken van &i386; specifieke aanroepen, zoals het
      aanzetten van de virtuele 8086 modus.</para>

    <para>Na het lezen van dit hoofdstuk weet de lezer:</para>

    <itemizedlist>
      <listitem>
	<para>Hoe &linux; binaire compatibiliteit op een systeem aan
	  te zetten;</para>
      </listitem>

      <listitem>
	<para>Hoe aanvullende &linux; gedeelde bibliotheken te
	  installeren;</para>
      </listitem>

      <listitem>
	<para>Hoe &linux; applicaties op een &os; systeem te
	  installeren;</para>
      </listitem>

      <listitem>
	<para>De implementatiedetails van &linux; compatibiliteit in
	  &os;.</para>
      </listitem>
    </itemizedlist>

    <para>Aangeraden voorkennis:</para>

    <itemizedlist>
      <listitem>
	<para>Hoe extra software van derden te installeren (<xref
	    linkend="ports">).</para>
      </listitem>
    </itemizedlist>
  </sect1>

  <sect1 id="linuxemu-lbc-install">
    <title>Installatie</title>

    <indexterm><primary>KLD (kernel loadable object)</primary></indexterm>

    <para>&linux; binaire compatibiliteit staat standaard niet aan.  De
      gemakkelijkste manier om deze functionaliteit aan te zetten is
      door het <literal>linux</literal> KLD object (<quote>Kernel
      LoaDable object</quote>) te laden.  Deze module kan geladen
      worden door het volgende commando als <username>root</username>
      uit te voeren:</para>

    <screen>&prompt.root; <userinput>kldload linux</userinput></screen>

    <para>Als &linux; compatibiliteit altijd aan moet staan, dan moet
      de volgende regel aan <filename>/etc/rc.conf</filename>
      toegevoegd worden:</para>

    <programlisting>linux_enable="YES"</programlisting>

    <para>Met &man.kldstat.8; kan gecontroleerd worden of de KLD
      geladen is:</para>

    <screen>&prompt.user; <userinput>kldstat</userinput>
Id Refs Address    Size     Name
 1    2 0xc0100000 16bd8    kernel
 7    1 0xc24db000 d000     linux.ko</screen>

    <indexterm>
      <primary>kernelopties</primary>

      <secondary>COMPAT_LINUX</secondary>
    </indexterm>

    <para>Als het om enige reden ongewenst of onmogelijk is de KLD te
      laden, dan kan de &linux; binaire compatibiliteit statisch in de
      kernel gecompileerd worden door
      <literal>options COMPAT_LINUX</literal> aan het
      kernelinstellingenbestand toe te voegen.  Daarna kan de nieuwe
      kernel zoals beschreven in <xref linkend="kernelconfig">
      ge&iuml;nstalleerd worden.</para>

    <sect2>
      <title>&linux; runtime bibliotheken installeren</title>

      <indexterm>
	<primary>&linux;</primary>

	<secondary>&linux; bibliotheken installeren</secondary>
      </indexterm>

      <para>Dit kan op twee manieren gedaan worden: door de <link
	  linkend="linuxemu-libs-port">linux_base</link> port te
	gebruiken of door ze <link
	  linkend="linuxemu-libs-manually">handmatig</link> te
	installeren.</para>

      <sect3 id="linuxemu-libs-port">
	<title>Installeren uit de linux_base port</title>

	<indexterm><primary>Portscollectie</primary></indexterm>

	<para>Dit is verreweg de gemakkelijkste weg om te bewandelen
	  om de runtime bibliotheken te installeren.  Het is net
	  als het installeren van andere ports uit de <ulink
	    type="html"
	    url="file://localhost/usr/ports/">Portscollectie</ulink>.
	  Dit kan met het volgende commando:</para>

	<screen>&prompt.root; <userinput>cd /usr/ports/emulators/linux_base-f10</userinput>
&prompt.root; <userinput>make install distclean</userinput></screen>

	<note>
	  <para>Op &os;-systemen v&oacute;&oacute;r &os;&nbsp;8.0 dient u de
	    port <filename role="package">emulators/linux_base-fc4</filename> in
	    plaats van <filename
	      role="package">emulators/linux_base-f10</filename> te
	    gebruiken.</para>
	</note>

	<para>Nu is er werkende &linux; binaire compatibiliteit.
	  Sommige programma's kunnen klagen over onjuiste kleine
	  versies van de systeembibliotheken.  Over het algemeen
	  schijnt dit echter geen probleem te zijn.</para>

	<note>
	  <para>Er kunnen verschillende versies van de <filename
	      role="package">emulators/linux_base</filename> port
	    beschikbaar zijn, overeenkomend met verschillende versies
	    van verscheidene &linux; distributies.  Het is verstandig
	    de port te installeren die het meest voldoet aan de eisen
	    van de &linux; applicaties die ge&iuml;nstalleerd gaan
	    worden.</para>
	</note>
      </sect3>

      <sect3 id="linuxemu-libs-manually">
	<title>Bibliotheken handmatig installeren</title>

	<para>Als de Portscollectie niet is ge&iuml;nstalleerd, kunnen
	  de bibliotheken met de hand ge&iuml;nstalleerd worden.  Om
	  alles te laten werken moeten de &linux; gedeelde bibliotheken
	  waarvan het programma afhankelijk is en de runtime linker
	  ge&iuml;nstalleerd worden.  Ook moet een <quote>shadow
	    root</quote> map aangemaakt worden,
	  <filename>/compat/linux</filename>, voor &linux; bibliotheken
	  op een &os; systeem.  Elke gedeelde bibliotheek die wordt
	  geopend door &linux; programma's die op &os; draaien, kijken
	  eerst in deze boomstructuur.  Dus als een &linux; programma
	  bijvoorbeeld <filename>/lib/libc.so</filename> laadt,
	  probeert &os; eerst
	  <filename>/compat/linux/lib/libc.so</filename> te openen, en
	  als die niet bestaat, probeert het
	  <filename>/lib/libc.so</filename> proberen.  Gedeelde
	  bibliotheken moeten in de schaduwmapstructuur
	  ge&iuml;nstalleerd worden in plaats van in de paden die het
	  &linux; <command>ld.so</command> rapporteert.</para>

	<para>In het algemeen geldt dat alleen de eerste paar keer
	  dat een &linux; binary wordt ge&iuml;nstalleerd op een &os;
	  systeem naar de gedeelde bibliotheken gezocht wordt waar
	  &linux;-binairen van afhankelijk zijn.  Na een tijd is de
	  verzameling van &linux; gedeelde bibliotheken op een systeem
	  voldoende groot om nieuw ge&iuml;mporteerde &linux;-binairen
	  te kunnen draaien zonder enig extra werk.</para>
      </sect3>

      <sect3>
	<title>Extra gedeelde bibliotheken installeren</title>

	<indexterm><primary>gedeelde bibliotheken</primary></indexterm>

	<para>Wat als de <filename>linux_base</filename> port is
	  ge&iuml;nstalleerd en een applicatie nog steeds klaagt over
	  ontbrekende gedeelde bibliotheken?  Op zich zijn er twee
	  mogelijkheden (voor het opvolgen van deze instructies zijn
	  <username>root</username> rechten op een &os; systeem
	  vereist).</para>

	<para>Als er toegang is tot een &linux; systeem kan gekeken
	  worden welke gedeelde bibliotheken de applicatie nodig heeft
	  en kunnen ze gekopieerd worden naar het &os systeem.  Dit
	  wordt toegelicht in het volgende voorbeeld:</para>

	<informalexample>
	  <para>Stel dat FTP gebruikt is om de &linux; binary van
	    <application>Doom</application> op te halen en die op een
	    &linux; systeem staat waar toegang tot is.  Dan kan met
	    <command>ldd linuxdoom</command> gecontroleerd worden welke
	    gedeelde bibliotheken er nodig zijn:</para>

	  <screen>&prompt.user; <userinput>ldd linuxdoom</userinput>
libXt.so.3 (DLL Jump 3.1) =&gt; /usr/X11/lib/libXt.so.3.1.0
libX11.so.3 (DLL Jump 3.1) =&gt; /usr/X11/lib/libX11.so.3.1.0
libc.so.4 (DLL Jump 4.5pl26) =&gt; /lib/libc.so.4.6.29</screen>

	  <indexterm><primary>symbolische links</primary></indexterm>

	  <para>Alle bestanden uit de laatste kolom zijn nodig en
	    moeten onder <filename>/compat/linux</filename> komen te
	    staat en de namen uit de eerste kolom moeten er als
	    symbolische links naar verwijzen.  Dit betekent dat
	    uiteindelijk deze bestanden op een &os; systeem
	    staan:</para>

	  <screen>/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -&gt; libXt.so.3.1.0
/compat/linux/usr/X11/lib/libX11.so.3.1.0
/compat/linux/usr/X11/lib/libX11.so.3 -&gt; libX11.so.3.1.0
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -&gt; libc.so.4.6.29</screen>

	  <blockquote>
	    <note>
	      <para>Als er al een &linux; gedeelde bibliotheek met een
		groot revisienummer overeenstemmend met de eerste kolom
		van de <command>ldd</command> uitvoer is, dan hoeft het
		bestand uit de laatste kolom niet naar een systeem
		gekopieerd te worden.  Het bestand dat er al staat moet
		werken.  Het is aan te raden om de gedeelde bibliotheek
		sowieso te kopi&euml;ren als het een nieuwere versie
		is.  De oude kan verwijderd worden, zolang de
		symbolische link maar naar de nieuwe wijst.  Dus als
		deze bibliotheken op een systeem staan:</para>

	      <screen>/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -&gt; libc.so.4.6.27</screen>

	      <para>en een nieuwe binary zegt een latere versie nodig
		te hebben volgens de uitvoer van
		<command>ldd</command>:</para>

	      <screen>libc.so.4 (DLL Jump 4.5pl26) -&gt; libc.so.4.6.29</screen>

	      <para>Als slechts &eacute;&eacute;n of twee versies
		verouderd zijn in het laatste cijfer, dan hoeft
		<filename>/lib/libc.so.4.6.29</filename> niet
		gekopieerd te worden, omdat het programma goed moet
		werken met de ietwat oudere versie.  Als er echter
		behoefte aan is, kan besloten worden om
		<filename>libc.so</filename> sowieso te verplaatsen,
		en dat resulteert in:</para>

	      <screen>/compat/linux/lib/libc.so.4.6.29
/compat/linux/libc.so.4 -&gt; lbic.so.4.6.29</screen>
	    </note>
	  </blockquote>

	  <blockquote>
	    <note>
	      <para>Het symbolische linkmechanisme is
		<emphasis>alleen</emphasis> nodig voor
		&linux;-binairen.  De &os; runtime linker zorgt zelf
		voor het kijken naar passende grote revisienummers en
		daar hoeft geen zorg over te bestaan.</para>
	    </note>
	  </blockquote>
	</informalexample>
      </sect3>
    </sect2>

    <sect2>
      <title>&linux; ELF-binairen installeren</title>

      <indexterm>
	<primary>&linux;</primary>

	<secondary>ELF-binairen</secondary>
      </indexterm>

      <para>ELF-binairen hebben soms een extra stap van
	<quote>branding</quote> nodig.  Als er ongemerkte ELF-binairen
	worden gedraaid, ontstaat er een foutmelding zoals de
	volgende:</para>

      <screen>&prompt.user; <userinput>./mijn-linux-elf-binary</userinput>
ELF binary type not known
Abort</screen>

      <para>Om de &os; kernel te helpen &os; ELF-binairen en &linux;
	binairen uit elkaar te houden, kan &man.brandelf.1; gebruikt
	worden.</para>

      <screen>&prompt.user; <userinput>brandelf -t Linux mijn-linux-elf-binary</userinput></screen>

      <indexterm><primary>GNU gereedschapskist</primary></indexterm>

      <para>De GNU gereedschapskist plaatst nu automatisch de juiste
	merkinformatie in ELF-binairen , dus deze stap zou steeds
	overbodiger moeten worden in de toekomst.</para>
    </sect2>

    <sect2>
      <title>Een willekeurige toepassing gebaseerd op Linux RPM
	installeren</title>

      <para>&os; heeft zijn eigen pakketdatabase die wordt gebruikt om alle
	ports te volgen (ook &linux; ports).  De &linux; RPM-database wordt dus
	niet gebruikt (noch ondersteund).</para>

      <para>Als u echter een willekeurige toepassing die op &linux; RPM is
	gebaseerd moet installeren kan dit bereikt worden met:</para>

      <screen>&prompt.root; <userinput>cd /compat/linux</userinput>
&prompt.root; <userinput>rpm2cpio -q &lt; /pad/naar/linux.archief.rpm | cpio -id</userinput></screen>

      <para>Draai daarna brandelf op de ge&iuml;nstalleerde ELF-binairen (niet
	de bibliotheken!).  Een schone de&iuml;nstallatie is niet mogelijk, maar
	het kan helpen met testen.</para>
    </sect2>

    <sect2>
      <title>De hostnaamresolver instellen</title>

      <screen>resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword</screen>

      <para>Als DNS niet werkt of de bovenstaande melding ontstaat, dan
	moet <filename>/compat/linux/etc/host.conf</filename> ingesteld
	worden met daarin:</para>

      <programlisting>order hosts, bind
multi on</programlisting>

      <para>De volgorde geeft aan dat <filename>/etc/hosts</filename>
	als eerste doorzocht wordt en DNS als tweede.  Als
	<filename>/compat/linux/etc/host.conf</filename> niet
	ge&iuml;nstalleerd is, vinden &linux; applicaties
	<filename>/etc/host.conf</filename> van &os; en klagen ze over
	de incompatibele &os; syntaxis.  <literal>bind</literal> moet
	verwijderd worden als er geen naamserver is ingesteld die
	gebruik maakt van <filename>/etc/resolv.conf</filename>.</para>
    </sect2>
  </sect1>

  <sect1 id="linuxemu-mathematica">
    <sect1info>
      <authorgroup>
	<author>
	  <firstname>Boris</firstname>
	  <surname>Hollas</surname>
	  <contrib>Bijgewerkt voor Mathematica 5.X door </contrib>
	</author>
      </authorgroup>
    </sect1info>
    <title>&mathematica; installeren</title>

    <indexterm>
      <primary>applicaties</primary>

      <secondary><application>&mathematica;</application></secondary>
    </indexterm>

    <para>Dit document beschrijft het installatieproces van de &linux;
      versie van <application>&mathematica; 5.X</application> op een
      &os; systeem.</para>

    <para>De &linux; versie van <application>&mathematica;</application>
      of <application>&mathematica; for Students</application> kan
      direct bij Wolfram besteld worden op <ulink
	url="http://www.wolfram.com/"></ulink>.</para>

    <sect2>
      <title>De &mathematica; Installer draaien</title>

      <para>Ten eerste dient &os; te weten dat de Linux-binairen van
	<application>&mathematica;</application> de Linux ABI gebruiken.
	De gemakkelijkste manier om dit te doen is om het standaard
	ELF-merk op Linux te zetten voor alle ongemerkte binairen met
	het commando:</para>

      <screen>&prompt.root; <userinput>sysctl kern.fallback_elf_brand=3</userinput></screen>

      <para>Dit laat &os; aannemen dat alle ongemerkte ELF-binairen de
	Linux ABI gebruiken en dus zou de installer rechtstreeks van
	de CD-ROM moeten kunnen draaien.</para>

      <para>Kopieer nu het bestand <filename>MathInstaller</filename>
	naar de harde schijf:</para>

      <screen>&prompt.root; <userinput>mount /cdrom</userinput>
&prompt.root; <userinput>cp /cdrom/Unix/Installers/Linux/MathInstaller /localdir/</userinput></screen>

      <para>Vervang binnen dit bestand <literal>/bin/sh</literal> op de
	eerste regel door <literal>/compat/linux/bin/sh</literal>.  Dit
	zorgt ervoor dat de installer door de Linux-versie van
	&man.sh.1; wordt uitgevoerd.  Vervang vervolgens met een
	tekstverwerker of het onderstaande script in de volgende sectie
	alle voorkomens van <literal>Linux)</literal> door
	<literal>FreeBSD)</literal>.  Dit zorgt ervoor dat de
	<application>&mathematica;</application> installer, dat
	<command>uname -s</command> gebruikt om het besturingssysteem te
	bepalen, om &os; als een Linux-achtig besturingssysteem te
	behandelen.  Het aanroepen van <command>MathInstaller</command>
	zal nu <application>&mathematica;</application> installeren.
      </para>
    </sect2>

    <sect2>
      <title>De &mathematica;-executables wijzigen</title>

      <para>De shellscripts die <application>&mathematica;</application>
	aanmaakte tijdens de installatie moeten gewijzigd worden voordat
	u ze kunt gebruiken.  Als u <filename
	  class="directory">/usr/local/bin</filename> kiest als de map
	om <application>&mathematica;</application>-executables in te
	plaatsen, zult u in deze map symbolische links naar bestanden
	genaamd <filename>math</filename>,
	<filename>mathematica</filename>,
	<filename>Mathematica</filename>, en
	<filename>MathKernel</filename> aantreffen.  Vervang met een
	tekstverwerker of het volgende shellscript in elk van
	deze <literal>Linux)</literal> door <literal>FreeBSD</literal>:
      </para>

      <programlisting>#!/bin/sh
cd /usr/local/bin
for i in math mathematica Mathematica MathKernel
  do sed 's/Linux)/FreeBSD)/g' $i &gt; $i.tmp
  sed 's/\/bin\/sh/\/compat\/linux\/bin\/sh/g' $i.tmp &gt; $i
  rm $i.tmp
  chmod a+x $i
done</programlisting>
    </sect2>

    <sect2>
      <title>&mathematica; wachtwoord opvragen</title>

      <indexterm>
	<primary>Ethernet</primary>

	<secondary>MAC-adres</secondary>
      </indexterm>

      <para>Wanneer u <application>&mathematica;</application> voor de
	eerste keer start, zal u om een wachtwoord gevraagd worden.  Als
	u nog geen wachtwoord van Wolfram heeft verkregen, draait u het
	programma <command>mathinfo</command> in de installatiemap om uw
	<quote>machine-ID</quote> te verkrijgen.  Dit machine-ID is
	alleen op het MAC-adres van uw eerste Ethernetkaart gebaseerd,
	zodat u uw kopie van <application>&mathematica</application>
	niet op andere machines kunt draaien.</para>

      <para>Bij een registratie bij Wolfram, per email, telefoon of
	fax, wordt het <quote>machine ID</quote> opgegeven en zij
	reageren met een overeenkomstig wachtwoord dat uit groepen
	getallen bestaat.</para>
    </sect2>

    <sect2>
      <title>Het &mathematica; frontend over een netwerk
	draaien</title>

      <para><application>&mathematica;</application> gebruikt enkele
	speciale lettertypen om tekens af te beelden die niet aanwezig
	zijn in een standaard lettertypeverzameling (integralen,
	sommen, Griekse letters, enzovoort).  Het X-protocol vereist
	dat deze lettertypen <emphasis>lokaal</emphasis> worden
	ge&iuml;nstalleerd.  Dit betekent dat deze lettertypen
	gekopieerd moeten worden vanaf de CD-ROM of vanaf een host met
	<application>&mathematica;</application> erop naar de lokale
	machine.  Deze lettertypen worden meestal opgeslagen in
	<filename>/cdrom/Unix/Files/SystemFiles/Fonts</filename> op de
	CD-ROM of in
	<filename>/usr/local/mathematica/SystemFiles/Fonts</filename>
	op de harde schijf.  De eigenlijke lettertypen staan in de
	submap <filename>Type1</filename> en <filename>X</filename>.
	Er zijn verschillende manieren om ze te installeren, zoals
	hieronder staat beschreven.</para>

      <para>De eerste manier is om ze te kopi&euml;ren in
	&eacute;&eacute;n van de bestaande lettertypenmappen in
	<filename>/usr/X11R6/lib/X11/fonts</filename>.  Hiertoe dient
	<filename>fonts.dir</filename> bewerkt te worden door de namen
	van de lettertypen eraan toe te voegen het aantal lettertypen
	op de eerste regel te veranderen.  Als alternatief kan ook
	eenvoudig &man.mkfontdir.1; in de map gedraaid worden waar de
	lettertypen heen zijn gekopieerd.</para>

      <para>De tweede manier om dit te doen is door de mappen naar
	<filename>/usr/X11R6/lib/X11/fonts</filename> te
	kopi&euml;ren:</para>

      <screen>&prompt.root; <userinput>cd /usr/X11R6/lib/X11/fonts</userinput>
&prompt.root; <userinput>mkdir X</userinput>
&prompt.root; <userinput>mkdir MathType1</userinput>
&prompt.root; <userinput>cd /cdrom/Unix/Files/SystemFiles/Fonts</userinput>
&prompt.root; <userinput>cp X/* /usr/X11R6/lib/X11/fonts/X</userinput>
&prompt.root; <userinput>cp Type1/* /usr/X11R6/lib/X11/fonts/MathType1</userinput>
&prompt.root; <userinput>cd /usr/X11R6/lib/X11/fonts/X</userinput>
&prompt.root; <userinput>mkfontdir</userinput>
&prompt.root; <userinput>cd ../MathType1</userinput>
&prompt.root; <userinput>mkfontdir</userinput></screen>

      <para>Voeg nu de nieuwe lettertypenmappen toe aan het
	lettertypenpad:</para>

      <screen>&prompt.root; <userinput>xset fp+ /usr/X11R6/lib/X11/fonts/X</userinput>
&prompt.root; <userinput>xset fp+ /usr/X11R6/lib/X11/fonts/MathType1</userinput>
&prompt.root; <userinput>xset fp rehash</userinput></screen>

      <para>Als de <application>&xorg;</application> server gebruikt
	wordt, kunnen deze lettertypenmappen automatisch geladen worden
	door ze aan <filename>xorg.conf</filename> toe te
	voegen.</para>

      <note>
	<para>Voor <application>&xfree86;</application> servers is het
	instellingenbestand <filename>XF86Config</filename>.</para>
      </note>

      <indexterm><primary>lettertypen</primary></indexterm>

      <para>Als er nog <emphasis>geen</emphasis> map
	<filename>/usr/X11R6/lib/X11/fonts/Type1</filename> bestaat,
	kan de naam van de map <filename>MathType1</filename> in het
	bovenstaande voorbeeld veranderd worden naar
	<filename>Type1</filename>.</para>
    </sect2>
  </sect1>

  <sect1 id="linuxemu-maple">
    <sect1info>
      <authorgroup>
	<author>
	  <firstname>Aaron</firstname>
	  <surname>Kaplan</surname>
<!--	  <address><email>aaron@lo-res.org</email></address>-->
	  <contrib>Bijgedragen door </contrib>
	</author>
      </authorgroup>

      <authorgroup>
	<author>
	  <firstname>Robert</firstname>
	  <surname>Getschmann</surname>
<!--	  <address><email>rob@getschmann.org</email></address>-->
	  <contrib>Met dank aan </contrib>
	</author>
      </authorgroup>
    </sect1info>

    <title>&maple; installeren</title>

    <indexterm>
      <primary>applicaties</primary>

      <secondary><application>Maple</application></secondary>
    </indexterm>

    <para><application>&maple;</application> is een commercieel
      wiskundeprogramma vergelijkbaar met
      <application>&mathematica;</application>.  De software is te koop
      op <ulink url="http://www.maplesoft.com/"></ulink> en kan daar
      ook geregistreerd worden voor een licentiebestand.  Om deze
      software op &os; te installeren kunnen de volgende eenvoudige
      stappen gevolgd worden:</para>

    <procedure>
      <step>
	<para>Voer het <filename>INSTALL></filename> shellscript
	  uit van de productdistributie.  Kies de <quote>RedHat</quote>
	  optie als daarom wordt gevraagd door het
	  installatieprogramma.  Een typische installatiemap zou
	  <filename class="directory">/usr/local/maple</filename>
	  zijn.</para>
      </step>

      <step>
	<para>Bestel, als dat nog niet gedaan is, een licentie voor
	  <application>&maple;</application> van Maple Waterloo
	  Software (<ulink
	    url="http://register.maplesoft.com/"></ulink>) en kopieer
	  deze naar
	  <filename>/usr/local/maple/license/license.dat</filename>.
	</para>
      </step>

      <step>
	<para>Installeer de <application>FLEXlm</application>
	  licentiebeheerder met het installatieshellscript
	  <filename>INSTALL_LIC</filename>, dat geleverd wordt bij
	  <application>&maple;</application>.  Stel de primaire
	  hostnaam voor de machine in voor de licentieserver.</para>
      </step>

      <step>
	<para>Patch het bestand
	  <filename>/usr/local/maple/bin/maple.system.type</filename>
	  met het volgende:</para>

	<programlisting>   ----- knip ------------------
*** maple.system.type.orig      Sun Jul  8 16:35:33 2001
--- maple.system.type   Sun Jul  8 16:35:51 2001
***************
*** 72,77 ****
--- 72,78 ----
          # the IBM RS/6000 AIX case
          MAPLE_BIN="bin.IBM_RISC_UNIX"
          ;;
+     "FreeBSD"|\
      "Linux")
          # the Linux/x86 case
        # We have two Linux implementations, one for Red Hat and
   ----- knip einde van patch -----</programlisting>

	<para>Achter <literal>"FreeBSD"|</literal> mogen geen verdere
	  witvelden staan.</para>

	<para>Deze patch instrueert <application>&maple;</application>
	  om <quote>&os;</quote> als een &linux; systeem te herkennen.
	  Het shellscript <filename>bin/maple</filename> roept het
	  shellscript <filename>bin/maple.system.type</filename> aan,
	  dat op zijn beurt <command>uname -a</command> aanroept om
	  achter de naam van het besturingssysteem te komen.
	  Afhankelijk van de naam van het besturingssysteem zoekt het
	  uit welke binairen het moet gebruiken.</para>
      </step>

      <step>
	<para>Start de licentieserver.</para>

	<para>Het volgende script, ge&iuml;nstalleerd als
	  <filename>/usr/local/etc/rc.d/lmgrd.sh</filename>, is een
	  gemakkelijke manier om <command>lmgrd</command> op te
	  starten:</para>

	<programlisting>   ----- knip ------------

#! /bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
PATH=${PATH}:/usr/local/maple/bin:/usr/local/maple/FLEXlm/UNIX/LINUX
export PATH

LICENSE_FILE=/usr/local/maple/license/license.dat
LOG=/var/log/lmgrd.log

case "$1" in
start)
	lmgrd -c ${LICENSE_FILE} 2>> ${LOG} 1&gt;&2
	echo -n " lmgrd"
	;;
stop)
	lmgrd -c ${LICENSE_FILE} -x lmdown 2>> ${LOG} 1&gt;&2
	;;
*)
	echo "Usage: `basename $0` {start|stop}" 1&gt;&2
	exit 64
	;;
esac

exit 0
   ----- knip ------------</programlisting></step>


      <step>
	<para><application>&maple;</application> testen:</para>

	<screen>&prompt.user; <userinput>cd /usr/local/maple/bin</userinput>
&prompt.user; <userinput>./xmaple</userinput></screen>

	<para>Nu hoort het programma te draaien.  Het is belangrijk om
	  Maplesoft te schrijven om ze te laten weten dat een echte
	  &os; versie gewenst is!</para>
      </step>
    </procedure>

    <sect2>
      <title>Gemeenschappelijke verborgen gevaren</title>

      <itemizedlist>
	<listitem>
	  <para>De <application>FLEXlm</application>
	    licentiebeheerder kan een lastig programma zijn om mee te
	    werken.  Aanvullende documentatie staat op <ulink
	      url="http://www.globetrotter.com/"></ulink>.</para>
	</listitem>

	<listitem>
	  <para><command>lmgrd</command> staat er bekend om erg
	    kieskeurig over het licentiebestand te zijn en core te
	    dumpen als er een probleem is.  Een correct licentiebestand
	    ziet er zo uit:</para>

	  <programlisting># =======================================================
# License File for UNIX Installations ("Pointer File")
# =======================================================
SERVER chillig ANY
#USE_SERVER
VENDOR maplelmg

FEATURE Maple maplelmg 2000.0831 permanent 1 XXXXXXXXXXXX \
         PLATFORMS=i86_r ISSUER="Waterloo Maple Inc." \
         ISSUED=11-may-2000 NOTICE=" Technische Universitat Wien" \
         SN=XXXXXXXXX</programlisting>

	  <note>
	    <para>Het serienummer en de sleutel zijn vervangen door
	      <quote>X</quote>'en.  <hostid>chillig</hostid> is de
	      hostnaam.</para>
	  </note>

	  <para>Het bewerken van het licentiebestand lukt zolang de
	    regel <quote>FEATURE</quote> niet verandert (die
	    beschermd is door de licentiesleutel).</para>
	</listitem>
      </itemizedlist>
    </sect2>
  </sect1>

  <sect1 id="linuxemu-matlab">
    <sect1info>
      <authorgroup>
	<author>
	  <firstname>Dan</firstname>
	  <surname>Pelleg</surname>
	  <contrib>Bijgedragen door </contrib>
	</author>
	<!-- daniel+handbook@pelleg.org -->
      </authorgroup>
    </sect1info>

    <title>&matlab; installeren</title>

    <indexterm>
      <primary>applicaties</primary>

      <secondary><application>&matlab;</application></secondary>
    </indexterm>

    <para>Dit document beschrijft het installatieproces van de &linux;
      versie van <application>&matlab; 6.5</application> op een &os;
      systeem.  Het werkt best goed, met uitzondering van de
      <application>&java.virtual.machine;</application> (zie <xref
	linkend="matlab-jre">).</para>

    <para>De &linux; versie van <application>&matlab;</application> kan
      besteld worden bij The MathWorks op <ulink
	url="http://www.mathworks.com"></ulink>.  Er dient ook een
      licentiebestand of instructies hoe dat te maken te zijn.  Het is
      belangrijk om Maplesoft te schrijven om ze te laten weten dat een
      echte &os; versie gewenst is!</para>

    <sect2>
      <title>&matlab; installeren</title>

      <para>Om <application>&matlab;</application> te
	installeren:</para>

      <procedure>
	<step>
	  <para>Laad de installatie-CD-ROM en koppel die aan.  Start het
	    installatiescript als <username>root</username>:</para>

	  <screen>&prompt.root; <userinput>/compat/linux/bin/sh /cdrom/install</userinput></screen>

	  <tip>
	    <para>Het is een grafisch installatieprogramma.  Als er
	      foutmeldingen verschijnen dat het programma geen scherm
	      kan openen, kan <command>setenv HOME
		~<replaceable>GEBRUIKER</replaceable></command>
	      uitgevoerd worden, waar
	      <replaceable>GEBRUIKER</replaceable> de gebruiker is
	      waarmee &man.su.1; is gedaan.</para>
	  </tip>
	</step>

	<step>
	  <para>Als om de <application>&matlab;</application> rootmap
	    wordt gevraagd, dient
	    <userinput>/compat/linux/usr/local/matlab</userinput>
	    opgegeven te worden.</para>

	  <tip>
	    <para>Voer op de commandoregel het volgende uit om de
	      rest van het installatieproces gemakkelijk te houden:
	      <command>set
		MATLAB=/compat/linux/usr/local/matlab</command>.</para>
	  </tip>
	</step>

	<step>
	  <para>Wijzig het licentiebestand zoals aangegeven tijdens het
	    verkrijgen van de licentie voor
	    <application>&matlab;</application>.</para>

	  <tip>
	    <para>Dit bestand kan van tevoren gemaakt worden met een
	      tekstverwerker en door het te kopi&euml;ren naar
	      <filename>$MATLAB/license.dat</filename> voordat het
	      installatieprogramma vraagt om het te bewerken.</para>
	  </tip>
	</step>

	<step>
	  <para>Maak het installatieproces af.</para>
	</step>
      </procedure>

      <para>Nu is de installatie van
	<application>&matlab;</application> compleet.  De volgende
	stappen <quote>lijmen</quote> het aan het &os; systeem.</para>
    </sect2>

    <sect2>
      <title>Licentiebeheerder starten</title>

      <procedure>
	<step>
	  <para>Maak symbolische links voor de scriptbestanden van de
	    licentiebeheerder:</para>

	  <screen>&prompt.root; <userinput>ln -s $MATLAB/etc/lmboot /usr/local/etc/lmboot_TMW</userinput>
&prompt.root; <userinput>ln -s $MATLAB/etc/lmdown /usr/local/etc/lmdown_TMW</userinput>
	  </screen>
	</step>

	<step>
	  <para>Maak een opstartbestand in
	    <filename>/usr/local/etc/rc.d/flexlm.sh</filename>.
	    Onderstaand voorbeeld is een gewijzigde versie van het
	    meegeleverde <filename>$MATLAB/etc/rc.lm.glnx86</filename>.
	    De wijzigingen omvatten bestandslocaties en het starten
	    van de licentiebeheerder onder &linux;-emulatie.</para>

	  <programlisting>#!/bin/sh
case "$1" in
  start)
        if [ -f /usr/local/etc/lmboot_TMW ]; then
              /compat/linux/bin/sh /usr/local/etc/lmboot_TMW -u <replaceable>gebruikersnaam</replaceable> &amp;&amp; echo 'MATLAB_lmgrd'
        fi
        ;;
  stop)
	if [ -f /usr/local/etc/lmdown_TMW ]; then
            /compat/linux/bin/sh /usr/local/etc/lmdown_TMW  &gt; /dev/null 2&gt;&amp;1
	fi
        ;;
  *)
	echo "Usage: $0 {start|stop}"
	exit 1
	;;
esac

exit 0</programlisting>

	  <important>
	    <para>Het bestand moet uitvoerbaar zijn:</para>

	    <screen>&prompt.root; <userinput>chmod +x /usr/local/etc/rc.d/flexlm.sh</userinput></screen>

	    <para>Ook moet bovenstaande
	      <replaceable>gebruikersnaam</replaceable> vervangen
	      worden door een geldige gebruikersnaam op het systeem
	      (maar niet door <username>root</username>).</para>
	  </important>
	</step>

	<step>
	  <para>Start de licentiebeheerder op met het commando:</para>

	  <screen>&prompt.root; <userinput>/usr/local/etc/rc.d/flexlm.sh start</userinput></screen>
	</step>
      </procedure>
    </sect2>

    <sect2 id="matlab-jre">
      <title>De &java; runtime-omgeving linken</title>

      <para>Verander de <application>&java;</application> Runtime
	Environment Link naar een die werkt op &os;:</para>

      <screen>&prompt.root; <userinput>cd $MATLAB/sys/java/jre/glnx86</userinput>
&prompt.root; <userinput>unlink jre; ln -s ./jre1.1.8 ./jre</userinput></screen>
    </sect2>

    <sect2>
      <title>&matlab; opstartscript maken</title>

      <procedure>
	<step>
	  <para>Plaats het volgende startscript in
	    <filename>/usr/local/bin/matlab</filename>:</para>

	  <programlisting>#!/bin/sh
/compat/linux/bin/sh /compat/linux/usr/local/matlab/bin/matlab "$@"</programlisting>
	</step>

	<step>
	  <para>Geef vervolgens het commando
	    <command>chmod +x /usr/local/bin/matlab</command>.</para>
	</step>
      </procedure>

      <tip>
	<para>Afhankelijk van de versie van <filename
	    role="package">emulators/linux_base</filename>, kunnen er
	  fouten optreden als dit script draait.  Om dat te voorkomen,
	  dient in
	  <filename>/compat/linux/usr/local/matlab/bin/matlab</filename>
	  de regel:</para>

	<programlisting>if [ `expr "$lscmd" : '.*-&gt;.*'` -ne 0 ]; then</programlisting>

	<para>(in versie 13.0.1 staat dit op regel 410) veranderd te
	  worden in:</para>

	<programlisting>if test -L $newbase; then</programlisting>
      </tip>
    </sect2>

    <sect2>
      <title>&matlab; afsluitscript maken</title>

      <para>Het volgende is nodig om een probleem op te lossen dat
	samenhangt met het onjuist afsluiten van &matlab;.</para>

      <procedure>
	<step>
	  <para>Maak het bestand
	    <filename>$MATLAB/toolbox/local/finish.m</filename> dat
	    alleen de volgende regel bevat:</para>

	  <programlisting>! $MATLAB/bin/finish.sh</programlisting>

	  <note>
	    <para><literal>$MATLAB$</literal> is hier letterlijk
	      bedoeld.</para>
	  </note>

	  <tip>
	    <para>In dezelfde map staan de bestanden
	      <filename>finishsav.m</filename> en
	      <filename>finishdlg.m</filename>, die de mogelijkheid
	      geven om de werkomgeving te bewaren v&oacute;&oacute;r
	      het afsluiten.  Als &eacute;&eacute;n van deze scripts
	      gebruikt wordt, dient de bovenstaande regel direct na het
	      commando <literal>save</literal> ingevoegd te
	      worden.</para>
	  </tip>
	</step>

	<step>
	  <para>Maak het bestand
	    <filename>$MATLAB/bin/finish.sh</filename>, dat het
	    volgende bevat:</para>

	  <programlisting>#!/usr/compat/linux/bin/sh
(sleep 5; killall -1 matlab_helper) &
exit 0</programlisting>
	</step>

	<step>
	  <para>Maak het bestand uitvoerbaar:</para>

	  <screen>&prompt.root; <userinput>chmod +x $MATLAB/bin/finish.sh</userinput></screen>
	</step>
      </procedure>
    </sect2>

    <sect2 id="matlab-using">
      <title>&matlab; gebruiken</title>

      <para>Nu kan met <command>matlab</command> het programma gestart
	worden.</para>
    </sect2>
  </sect1>

  <sect1 id="linuxemu-oracle">
    <sect1info>
      <authorgroup>
	<author>
	  <firstname>Marcel</firstname>
	  <surname>Moolenaar</surname>
	  <contrib>Bijgedragen door </contrib>
	</author>
	<!-- marcel@cup.hp.com -->
      </authorgroup>
    </sect1info>

    <title>&oracle; installeren</title>

    <indexterm>
      <primary>applicaties</primary>

      <secondary><application>Oracle</application></secondary>
    </indexterm>

    <sect2>
      <title>Voorwoord</title>

      <para>Hieronder wordt het installatieproces van
	<application>&oracle;&nbsp;8.0.5</application> en
	<application>&oracle;&nbsp;8.0.5.1 Enterprise
	  Edition</application> voor &linux; op een &os;-machine
	beschreven.</para>
    </sect2>

    <sect2>
      <title>De &linux;-omgeving installeren</title>

      <para>Uit de Portscollectie dienen <filename
	  role="package">emulators/linux_base</filename> en <filename
	  role="package">devel/linux_devtools</filename>
	ge&iuml;nstalleerd te zijn.  Als er problemen zijn met deze
	ports, kan het zijn dat de pakketten of oudere versies uit de
	Portscollectie gebruikt moeten worden.</para>

      <para>Om de intelligente agent te draaien, moet ook het Red Hat
	Tcl package ge&iuml;nstalleerd worden:
	<filename>tcl-8.0.3-20.i386.rpm</filename>.  Het algemene
	commando om pakketten te installeren met de offici&euml;le
	<application>RPM</application> port (<filename
	  role="package">archivers/rpm</filename>) is:</para>

      <screen>&prompt.root; <userinput>rpm -i --ignoreos --root /compat/linux --dbpath /var/lib/rpm <replaceable>package</replaceable></userinput></screen>

      <para>De installatie van het <replaceable>package</replaceable>
	hoort foutloos te verlopen.</para>
    </sect2>

    <sect2>
      <title>De &oracle;-omgeving cre&euml;ren</title>

      <para>Voordat <application>&oracle;</application>
	ge&iuml;nstalleerd kan worden, moet een juiste omgeving
	opgezet worden.  Dit document beschrijft alleen welke
	<emphasis>speciale</emphasis> dingen gedaan moeten worden om
	<application>&oracle;</application> voor &linux; op &os; te
	draaien, en niet wat beschreven staat in de
	<application>&oracle;</application>
	installatiehandleiding.</para>

      <sect3 id="linuxemu-kernel-tuning">
	<title>Kerneloptimalisatie</title>

	<indexterm><primary>kerneloptimalisatie</primary></indexterm>

	<para>Zoals beschreven staat in de
	  <application>&oracle;</application> installatiehandleiding
	  moet de maximale grootte van het gedeelde geheugen ingesteld
	  worden.  Op &os; moet <literal>SHMMAX</literal> niet gebruikt
	  worden.  <literal>SHMMAX</literal> wordt slechts uit
	  <literal>SHMMAXPGS</literal> en <literal>PGSIZE</literal>
	  berekend.  Daarom dient <literal>SHMMAXPGS</literal>
	  gedefinieerd te worden.  Alle andere opties kunnen gebruikt
	  worden zoals in de handleiding staat beschreven.
	  Bijvoorbeeld:</para>

	<programlisting>options SHMMAXPGS=10000
options SHMMNI=100
options SHMSEG=10
options SEMMNS=200
options SEMMNI=70
options SEMMSL=61</programlisting>

	<para>Deze opties kunnen naargelang het gebruik van
	  <application>&oracle;</application> ingesteld worden.</para>

	<para>Ook de volgende opties dienen in het
	  kernelinstellingenbestand te staan:</para>

	<programlisting>options SYSVSHM #SysV gedeeld geheugen
options SYSVSEM #SysV semaforen
options SYSVMSG #SysV interprocescommunicatie</programlisting>
      </sect3>

      <sect3 id="linuxemu-oracle-account">

	<title>&oracle; account</title>

	<para>Cree&euml;r een <username>oracle</username> account op
	  dezelfde manier als elk ander account.  Het
	  <username>oracle</username> account is alleen bijzonder in
	  het opzicht dat het een &linux; shell moet hebben.  Dat kan
	  door <literal>/compat/linux/bin/bash</literal> toe te voegen
	  aan <filename>/etc/shells</filename> en de shell voor het
	  <username>oracle</username> account in te stellen op
	  <filename>/compat/linux/bin/bash</filename>.</para>
      </sect3>

      <sect3 id="linuxemu-environment">
	<title>Omgeving</title>

	<para>Naast de normale <application>&oracle;</application>
	  variabelen als <envar>ORACLE_HOME</envar> en
	  <envar>ORACLE_SID</envar> moeten de volgende
	  omgevingsvariabelen ingesteld worden:</para>

	<informaltable frame="none">
	  <tgroup cols="2">

	  <colspec colwidth="1*">

	  <colspec colwidth="2*">
	    <thead>
	      <row>
		<entry>Variabele</entry>

		<entry>Waarde</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry><envar>LD_LIBRARY_PATH</envar></entry>

		<entry><literal>$ORACLE_HOME/lib</literal></entry>
	      </row>

	      <row>
		<entry><envar>CLASSPATH</envar></entry>

		<entry><literal>$ORACLE_HOME/jdbc/lib/classes111.zip</literal></entry>
	      </row>

	      <row>
		<entry><envar>PATH</envar></entry>

		<entry><literal>/compat/linux/bin;
/compat/linux/sbin;
/compat/linux/usr/bin;
/compat/linux/usr/sbin;
/bin;
/sbin;
/usr/bin;
/usr/sbin;
/usr/local/bin;
$ORACLE_HOME/bin</literal></entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Het is aan te raden om alle omgevingsvariabelen in
	  <filename>.profile</filename> in te stellen.  Een volledig
	  voorbeeld is:</para>

	<programlisting>ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=/oracle; export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH
ORACLE_SID=ORCL; export ORACLE_SID
ORACLE_TERM=386x; export ORACLE_TERM
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
export CLASSPATH
PATH=/compat/linux/bin:/compat/linux/sbin:/compat/linux/usr/bin
PATH=$PATH:/compat/linux/usr/sbin:/bin:/sbin:/usr/bin:/usr/sbin
PATH=$PATH:/usr/local/bin:$ORACLE_HOME/bin
export PATH</programlisting>
      </sect3>
    </sect2>

    <sect2>
      <title>&oracle; installeren</title>

      <para>Wegens een kleine inconsistentie in de &linux; emulator
	moet de map <filename>.oracle</filename> aangemaakt worden
	in <filename>/var/tmp</filename> voordat het
	installatieprogramma wordt gestart.  De gebruiker
	<username>oracle</username> moet de eigenaar van deze map
	zijn.  Nu hoort <application>&oracle;</application> zonder
	problemen te installeren.  Bij problemen dienen eerst de
	<application>&oracle;</application> distributie en/of de
	instellingen gecontroleerd te worden!  Nadat
	<application>&oracle;</application> is ge&iuml;nstalleerd,
	moeten de patches uit de volgende twee secties
	ge&iuml;nstalleerd worden.</para>

      <para>Een veelvoorkomend probleem is dat de adapter voor het
	TCP-protocol niet goed is ge&iuml;nstalleerd.  De consequentie
	daarvan is dat er geen TCP-listeners gestart kunnen worden.  De
	volgende acties helpen om dit probleem op te lossen:</para>

      <screen>&prompt.root; <userinput>cd $ORACLE_HOME/network/lib</userinput>
&prompt.root; <userinput>make -f ins_network.mk ntcontab.o</userinput>
&prompt.root; <userinput>cd $ORACLE_HOME/lib</userinput>
&prompt.root; <userinput>ar r libnetwork.a ntcontab.o</userinput>
&prompt.root; <userinput>cd $ORACLE_HOME/network/lib</userinput>
&prompt.root; <userinput>make -f ins_network.mk install</userinput></screen>

      <para>Hierna dient <filename>root.sh</filename> nogmaals te
	draaien!</para>

      <sect3 id="linuxemu-patch-root">
	<title><filename>root.sh</filename> patchen</title>

	<para>Als <application>&oracle;</application>
	  ge&iuml;nstalleerd wordt, worden sommige acties die als
	  <username>root</username> moeten worden uitgevoerd
	  geregistreerd in een shellscript met de naam
	  <filename>root.sh</filename>.  Dit script komt in de map
	  <filename>orainst</filename> te staan.  De volgende patch
	  dient uitgevoerd te worden op <filename>root.sh</filename> om
	  het de juiste locatie van <command>chown</command> te laten
	  gebruiken of als alternatief kan het script onder een
	  originele &linux; shell gedraaid worden</para>

	<programlisting>*** orainst/root.sh.orig Tue Oct 6 21:57:33 1998
--- orainst/root.sh Mon Dec 28 15:58:53 1998
***************
*** 31,37 ****
# This is the default value for CHOWN
# It will redefined later in this script for those ports
# which have it conditionally defined in ss_install.h
! CHOWN=/bin/chown
#
# Define variables to be used in this script
--- 31,37 ----
# This is the default value for CHOWN
# It will redefined later in this script for those ports
# which have it conditionally defined in ss_install.h
! CHOWN=/usr/sbin/chown
#
# Define variables to be used in this script</programlisting>

	<para>Als <application>&oracle;</application> niet vanaf
	  een CD-ROM wordt ge&iuml;nstalleerd, kan de broncode van
	  <filename>root.sh</filename> aangepast worden.  Die heet
	  <filename>rthd.sh</filename> en staat in de map
	  <filename>orainst</filename> in de broncodestructuur.
	</para>
      </sect3>

      <sect3 id="linuxemu-patch-tcl">
	<title>genclntsh patchen</title>

	<para>Het script <command>genclntsh</command> wordt gebruikt om
	  &eacute;&acute;n enkele gedeelde bibliotheek voor de
	  cli&euml;nt aan te maken.  Het wordt gebruikt tijdens het
	  maken van de demonstraties.  Met de volgende patch wordt de
	  definitie van <envar>PATH</envar> uitgecommentarieerd:</para>

	<programlisting>*** bin/genclntsh.orig Wed Sep 30 07:37:19 1998
--- bin/genclntsh Tue Dec 22 15:36:49 1998
***************
*** 32,38 ****
#
# Explicit path to ensure that we're using the correct commands
#PATH=/usr/bin:/usr/ccs/bin export PATH
! PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin export PATH
#
# each product MUST provide a $PRODUCT/admin/shrept.lst
--- 32,38 ----
#
# Explicit path to ensure that we're using the correct commands
#PATH=/usr/bin:/usr/ccs/bin export PATH
! #PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin export PATH
#
# each product MUST provide a $PRODUCT/admin/shrept.lst</programlisting>
      </sect3>
    </sect2>

    <sect2>
      <title>&oracle; draaien</title>

      <para>Als de instructies worden gevolgd, draait
	<application>&oracle;</application> als op &linux; zelf.</para>
    </sect2>
  </sect1>

  <sect1 id="sapr3">
    <sect1info>
      <authorgroup>
	<author>
	  <firstname>Holger</firstname>
	  <surname>Kipp</surname>
	  <contrib>Bijgedragen door </contrib>
	</author>
      </authorgroup>
      <!-- holger.kipp@alogis.com -->
      <authorgroup>
	<author>
	  <firstname>Valentino</firstname>
	  <surname>Vaschetto</surname>
	  <contrib>Originele versie omgezet naar SGML door </contrib>
	</author>
      </authorgroup>
    </sect1info>

    <title>&sap.r3; installeren</title>

    <indexterm>
      <primary>applicaties</primary>

      <secondary><application>&sap.r3;</application></secondary>
    </indexterm>

    <para>Installaties van <application>&sap;</application> Systemen
      die &os; gebruiken worden niet ondersteund door het &sap;
      ondersteuningsteam.  Zij bieden alleen ondersteuning voor
      gecertificeerde platformen.</para>

    <sect2 id="preface">
      <title>Voorwoord</title>

      <para>Dit document beschrijft een mogelijke manier om een
	<application>&sap.r3; System</application> met
	<application>&oracle; Database</application> voor &linux; op
	een &os; machine, inclusief de installatie van &os; en
	<application>&oracle;</application>.  Er worden twee
	instellingen beschreven:</para>

      <itemizedlist>
	<listitem>
	  <para><application>&sap.r3; 4.6B (IDES)</application> met
	    <application>&oracle; 8.0.5</application> op
	    &os;&nbsp;4.3&ndash;STABLE;.</para>
	</listitem>

	<listitem>
	  <para><application>&sap.r3; 4.6C</application> met
	    <application>&oracle; 8.1.7</application> op
	    &os;&nbsp;4.5&ndash;STABLE.</para>
	</listitem>
      </itemizedlist>

      <para>Hoewel dit document alle belangrijke stappen in meer detail
	probeert te beschrijven, is het niet bedoeld als een vervanging
	voor de <application>&oracle;</application> en
	<application>&sap.r3;</application>
	installatiehandleidingen.</para>

      <para>Voor specifieke vragen wordt verwezen naar de documentatie
	die geleverd wordt bij de <application>&sap.r3;</application>
	&linux; editie voor <application>&sap;</application> en
	<application>&oracle;</application> en de bronnen van
	<application>&oracle;</application> en
	<application>&sap; OSS</application>.</para>
    </sect2>

    <sect2 id="software">
      <title>Software</title>

      <para>Voor de <application>&sap;</application> installaties zijn
	de volgende CD-ROM gebruikt:</para>

      <sect3 id="software-46b">
	<title>&sap.r3; 4.6B, &oracle; 8.0.5</title>

	<informaltable frame="none">
	  <tgroup cols=3>
	    <thead>
	      <row>
		<entry>Naam</entry>

		<entry>Nummer</entry>

		<entry>Beschrijving</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>KERNEL</entry>

		<entry>51009113</entry>

		<entry>SAP Kernel Oracle / Installation / AIX, Linux,
		  Solaris</entry>
	      </row>

	      <row>
		<entry>RDBMS</entry>

		<entry>51007558</entry>

		<entry>Oracle / RDBMS 8.0.5.X / Linux</entry>
	      </row>

	      <row>
		<entry>EXPORT1</entry>

		<entry>51010208</entry>

		<entry>IDES / DB-Export / Disc 1 of 6</entry>
	      </row>

	      <row>
		<entry>EXPORT2</entry>

		<entry>51010209</entry>

		<entry>IDES / DB-Export / Disc 2 of 6</entry>
	      </row>

	      <row>
		<entry>EXPORT3</entry>

		<entry>51010210</entry>

		<entry>IDES / DB-Export / Disc 3 of 6</entry>
	      </row>

	      <row>
		<entry>EXPORT4</entry>

		<entry>51010211</entry>

		<entry>IDES / DB-Export / Disc 4 of 6</entry>
	      </row>

	      <row>
		<entry>EXPORT5</entry>

		<entry>51010212</entry>

		<entry>IDES / DB-Export / Disc 5 of 6</entry>
	      </row>

	      <row>
		<entry>EXPORT6</entry>

		<entry>51010213</entry>

		<entry>IDES / DB-Export / Disc 6 of 6</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Ook zijn de <application>&oracle; 8 Server</application>
	  (Pre-productie versie 8.0.5 voor &linux; kernelversie 2.0.33)
	  CD-ROM gebruikt, die niet echt noodzakelijk is en
	  &os;&nbsp;4.3-STABLE (een paar dagen na de 4.3-RELEASE).
	</para>
      </sect3>

      <sect3 id="software-46c">
	<title>&sap.r3; 4.6C SR2, &oracle; 8.1.7</title>

	<informaltable frame="none">
	  <tgroup cols=3>
	    <thead>
	      <row>
		<entry>Naam</entry>

		<entry>Nummer</entry>

		<entry>Beschrijving</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>KERNEL</entry>

		<entry>51014004</entry>

		<entry>SAP Kernel Oracle / SAP Kernel Version 4.6D /
		  DEC, Linux</entry>
	      </row>

	      <row>
		<entry>RDBMS</entry>

		<entry>51012930</entry>

		<entry>Oracle 8.1.7/ RDBMS / Linux</entry>
	      </row>

	      <row>
		<entry>EXPORT1</entry>

		<entry>51013953</entry>

		<entry>Release 4.6C SR2 / Export / Disc 1 of 4</entry>
	      </row>

	      <row>
		<entry>EXPORT1</entry>

		<entry>51013953</entry>

		<entry>Release 4.6C SR2 / Export / Disc 2 of 4</entry>
	      </row>

	      <row>
		<entry>EXPORT1</entry>

		<entry>51013953</entry>

		<entry>Release 4.6C SR2 / Export / Disc 3 of 4</entry>
	      </row>

	      <row>
		<entry>EXPORT1</entry>

		<entry>51013953</entry>

		<entry>Release 4.6C SR2 / Export / Disc 4 of 4</entry>
	      </row>

	      <row>
		<entry>LANG1</entry>

		<entry>51013954</entry>

		<entry>Release 4.6C SR2 / Language / DE, EN, FR /
		  Disc 1 van 3</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Afhankelijk van de talen die ge&iuml;nstalleerd moeten
	  worden kunnen aanvullende taal-CD-ROMs nodig zijn.  Hier
	  worden DE en EN gebruikt, dus is alleen de eerste taal-CD-ROM
	  nodig.  Een kleine kanttekening is dat de nummers van alle
	  vier de EXPORT CD-ROMs identiek zijn.  Ook hebben alle drie de
	  taal-CD-ROMs hetzelfde nummer (dit verschilt met de 4.6B IDES
	  release CD-ROM-nummering).  Ten tijde van schrijven draait
	  deze installatie op &os;&nbsp;4.5-STABLE (20.03.2002).</para>
      </sect3>
    </sect2>

    <sect2 id="sap-notes">
      <title>Opmerkingen over &sap;</title>

      <para>Het wordt aangeraden de volgende notities
	v&oacute;&oacute;r de installatie van
	<application>&sap.r3;</application> gelezen te hebben.  Ze
	waren bruikbaar tijdens de installatie:</para>

      <sect3 id="sap-notes-46b">
	<title>&sap.r3; 4.6B, &oracle; 8.0.5</title>

	<informaltable frame="none">
	  <tgroup cols="2">
	    <thead>
	      <row>
		<entry>Nummer</entry>

		<entry>Titel</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>0171356</entry>

		<entry>SAP Software on Linux: Essential Comments</entry>
	      </row>

	      <row>
		<entry>0201147</entry>

		<entry>INST: 4.6C R/3 Inst. on UNIX - Oracle</entry>
	      </row>

	      <row>
		<entry>0373203</entry>

		<entry>Update / Migration Oracle 8.0.5 --&gt;
		  8.0.6/8.1.6 LINUX</entry>
	      </row>

	      <row>
		<entry>0072984</entry>

		<entry>Release of Digital UNIX 4.0B for Oracle</entry>
	      </row>

	      <row>
		<entry>0130581</entry>

		<entry>R3SETUP step DIPGNTAB terminates</entry>
	      </row>

	      <row>
		<entry>0144978</entry>

		<entry>Your system has not been installed correctly</entry>
	      </row>

	      <row>
		<entry>0162266</entry>

		<entry>Questions and tips for R3SETUP on
		  Windows NT / W2K</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>
      </sect3>

      <sect3 id="sap-notes-46c">
	<title>&sap.r3; 4.6C, &oracle; 8.1.7</title>

	<informaltable frame="none">
	  <tgroup cols="2">
	    <thead>
	      <row>
		<entry>Nummer</entry>

		<entry>Titel</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>0015023</entry>

		<entry>Initializing table TCPDB (RSXP0004) (EBCDIC)</entry>
	      </row>

	      <row>
		<entry>0045619</entry>

		<entry>R/3 with several languages or typefaces</entry>
	      </row>

	      <row>
		<entry>0171356</entry>

		<entry>SAP Software on Linux: Essential Comments</entry>
	      </row>

	      <row>
		<entry>0195603</entry>

		<entry>RedHat 6.1 Enterprise version: Known problems</entry>
	      </row>

	      <row>
		<entry>0212876</entry>

		<entry>The new archiving tool SAPCAR</entry>
	      </row>

	      <row>
		<entry>0300900</entry>

		<entry>Linux: Released DELL Hardware</entry>
	      </row>

	      <row>
		<entry>0377187</entry>

		<entry>RedHat 6.2: important remarks</entry>
	      </row>

	      <row>
		<entry>0387074</entry>

		<entry>INST: R/3 4.6C SR2 Installation on UNIX</entry>
	      </row>

	      <row>
		<entry>0387077</entry>

		<entry>INST: R/3 4.6C SR2 Inst. on UNIX - Oracle</entry>
	      </row>

	      <row>
		<entry>0387078</entry>

		<entry>SAP Software on UNIX: OS Dependencies 4.6C SR2</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>
      </sect3>
    </sect2>

    <sect2 id="hardware-requirements">
      <title>Benodigde hardware</title>

      <para>De volgende uitrusting is voldoende voor de installatie van
	een <application>&sap.r3; Systeem</application>.  Voor
	productiegebruik geldt natuurlijk dat exactere gegevens nodig
	zijn:</para>

      <informaltable frame="none">
	<tgroup cols="3">
	  <thead>
	    <row>
	      <entry>Component</entry>

	      <entry>4.6B</entry>

	      <entry>4.6C</entry>
	    </row>
	  </thead>

	  <tbody>
	    <row>
	      <entry>Processor</entry>

	      <entry>2 x 800MHz &pentium; III</entry>

	      <entry>2 x 800MHz &pentium; III</entry>
	    </row>

	    <row>
	      <entry>Geheugen</entry>

	      <entry>1GB ECC</entry>

	      <entry>2GB ECC</entry>
	    </row>

	    <row>
	      <entry>Hardeschijfruimte</entry>

	      <entry>50-60GB (IDES)</entry>

	      <entry>50-60GB (IDES)</entry>
	    </row>
	  </tbody>
	</tgroup>
      </informaltable>

      <para>Voor productiegebruik zijn &xeon; processoren met een grote
	cache, schijftoegang op hoge snelheid (SCSI,
	RAID-hardwarecontroller) USV en ECC-RAM aanbevolen.  De
	grote hoeveelheid benodigde schijfruimte is te wijten aan het
	vooringestelde IDES-systeem, dat 27&nbsp;GB aan
	databasebestanden aanmaakt tijdens de installatie.  Deze ruimte
	is ook voldoende voor beginnende productiesystemen en
	applicatiegegevens.</para>

      <sect3 id="hardware-46b">
	<title>&sap.r3; 4.6B, &oracle; 8.0.5</title>

	<para>De volgende kant-en-klare hardware werd gebruikt: een
	  dual processorbord met 2 800&nbsp;MHz &pentium;nbsp;III
	  processoren, &adaptec; 21960 Ultra160 SCSI adapter (om een
	  40/80&nbsp;GB DLT tapedrive en CD-ROM aan te spreken),
	  &mylex; &acceleraid; (2 kanalen, firmware 6.00-1-00 met
	  32&nbsp;MB RAM).  Aan de &mylex; RAID-controller zijn twee
	  17&nbsp;GB harde schijven (gespiegeld) en vier 36&nbsp;GB
	  harde schijven (RAID-niveau 5) bevestigd.</para>
      </sect3>

      <sect3 id="hardware-46c">
	<title>&sap.r3; 4.6C, &oracle; 8.1.7</title>

	<para>Voor deze installatie werd een &dell; &poweredge; 2500
	  gebruikt: een dual processorbord met twee 1000&nbsp;MHz
	  &pentium;&nbsp;III processoren (256&nbsp;kB cache), 2&nbsp;GB
	  PC133 ECC SDRAM, PERC/3 DC PCI RAID-controller met
	  128&nbsp;MB en een EIDE DVD-ROM-drive.  Aan de
	  RAID-controller zijn twee 18&nbsp;GB harde schijven
	  (gespiegeld) en vier 36&nbsp;GB harde schijven (RAID-niveau
	  5) bevestigd.</para>
      </sect3>
    </sect2>

    <sect2 id="installation">
      <title>Installatie van &os;</title>

      <para>Eerst moet &os; ge&iuml;nstalleerd worden.  Er zijn
	verschillende manieren om dit te doen.  Er staat meer informatie
	in <xref linkend="install-diff-media">.</para>

      <sect3 id="disk-layout">
	<title>Schijfindeling</title>

	<para>Om het eenvoudig te houden, werd voor zowel de
	  <application>&sap.r3; 46B</application> installatie als de
	  <application>&sap.r3; 46C SR2</application> installatie
	  dezelfde schijfindeling gebruikt.  Alleen de apparaatnamen
	  veranderden, omdat de installaties op verschillende hardware
	  werden gedaan (<filename>/dev/da</filename> respectievelijk
	  <filename>/dev/amr</filename>, dus als een AMI &megaraid;
	   wordt gebruikt, is <filename>/dev/amr0s1a</filename> te zien
	   in plaats van <filename>/dev/da0s1a</filename>):</para>

	<informaltable frame="none">
	  <tgroup cols="4">
	    <thead>
	      <row>
		<entry>Bestandssysteem</entry>

		<entry>Grootte (1k-blokken)</entry>

		<entry>Grootte (GB)</entry>

		<entry>Aangekoppeld op</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry><filename>/dev/da0s1a</filename></entry>

		<entry>1.016.303</entry>

		<entry>1</entry>

		<entry><filename>/</filename></entry>
	      </row>

	      <row>
		<entry><filename>/dev/da0s1b</filename></entry>

		<entry> </entry>

		<entry>6</entry>

		<entry>swap</entry>
	      </row>

	      <row>
		<entry><filename>/dev/da0s1e</filename></entry>

		<entry>2.032.623</entry>

		<entry>2</entry>

		<entry><filename>/var</filename></entry>
	      </row>

	      <row>
		<entry><filename>/dev/da0s1f</filename></entry>

		<entry>8.205.339</entry>

		<entry>8</entry>

		<entry><filename>/usr</filename></entry>
	      </row>

	      <row>
		<entry><filename>/dev/da1s1e</filename></entry>

		<entry>45.734.361</entry>

		<entry>45</entry>

		<entry><filename>/compat/linux/oracle</filename></entry>
	      </row>

	      <row>
		<entry><filename>/dev/da1s1f</filename></entry>

		<entry>2.032.623</entry>

		<entry>2</entry>

		<entry><filename>/compat/linux/sapmnt</filename></entry>
	      </row>

	      <row>
		<entry><filename>/dev/da1s1g</filename></entry>

		<entry>2.032.623</entry>

		<entry>2</entry>

		<entry><filename>/compat/linux/usr/sap</filename></entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>De twee logische drives dienen tevoren met de &mylex;- of
	  PERC/3 RAID-software ingesteld en ge&iuml;nitialiseerd te
	  worden.  De software kan tijdens de opstartfase van het
	  <acronym>BIOS</acronym> gestart worden.</para>

	<para>De schijfindelingen wijken licht af van de aanbevelingen
	  van &sap;, omdat &sap; aanbeveelt om de
	  <application>&oracle;</application> submappen (en enkele
	  andere) gescheiden aan te koppelen.  Hier is besloten om ze
	  omwille van de eenvoud gewoon als echte submappen aan te
	  maken.</para>
      </sect3>

      <sect3 id="makeworldandnewkernel">
	<title><command>make world</command> en een nieuwe
	  kernel</title>

	<para>Nu dient de nieuwste -STABLE-broncode gedownload te
	  worden.  Nadat het kernelinstellingenbestand is aangepast,
	  kunnen de wereld en de kernel opnieuw gebouwd worden.
	  Hier moeten ook de <link
	    linkend="kerneltuning">kernelparameters</link> in staan die
	  nodig zijn voor <application>&sap.r3;</application> en
	  <application>&oracle;</application>.</para>
      </sect3>
    </sect2>

    <sect2 id="installingthelinuxenviornment">
      <title>De &linux;-omgeving installeren</title>

      <sect3 id="installinglinuxbase-system">
	<title>Het &linux; basissysteem installeren</title>

	<para>Eerst moet de <link
	    linkend="linuxemu-libs-port">linux_base</link> port
	  ge&iuml;nstalleerd worden (als
	  <username>root</username>):</para>

	<screen>&prompt.root; <userinput>cd /usr/ports/emulators/linux_base-fc4</userinput>
&prompt.root; <userinput>make install distclean</userinput></screen>
      </sect3>

      <sect3 id="installinglinuxdevelopment">
	<title>De &linux; ontwikkelomgeving installeren</title>

	<para>De &linux;-ontwikkelomgeving is volgens <xref
	    linkend="linuxemu-oracle"> noodzakelijk om
	  <application>&oracle;</application> op &os; te
	  installeren:</para>

	<screen>&prompt.root; <userinput>cd /usr/ports/devel/linux_devtools</userinput>
&prompt.root; <userinput>make install distclean</userinput></screen>

	<para>De &linux;-ontwikkelomgeving is alleen voor de
	  <application>&sap.r3; 46B IDES</application> installatie
	  ge&iuml;nstalleerd.  Het is niet nodig als de
	  <application>&oracle; DB</application> niet opnieuw wordt
	  gelinkt op het &os;-systeem.  Dit is het geval als de
	  <application>&oracle;</application> tarball van een
	  &linux;-systeem wordt gebruikt.</para>
      </sect3>

      <sect3 id="installingnecessaryrpms">
	<title>De benodigde RPM's installeren</title>

	<indexterm><primary>RPM's</primary></indexterm>

	<para>Om het <command>R3SETUP</command> programma te starten is
	  PAM-ondersteuning nodig.  Tijdens de eerste installatie van
	  <application>&sap;</application> op &os;&nbsp;4.3-STABLE is
	  geprobeerd om PAM met alle benodigde pakketten te installeren
	  en uiteindelijk is de installatie van het PAM-pakket
	  afgedwongen, wat werkte.  Voor <application>&sap.r3; 4.6C
	  SR 2</application> is we meteen de installatie van het PAM
	  RPM afgedwongen, wat ook werkte, dus lijkt het erop dat de
	  afhankelijke pakketten niet nodig zijn:</para>

	<screen>&prompt.root; <userinput>rpm -i --ignoreos --nodeps --root /compat/linux --dbpath /var/lib/rpm \
pam-0.68-7.rpm</userinput></screen>

	<para>Om <application>&oracle;&nbsp;8.0.5</application> de
	  intelligente agent te laten draaien, moest ook het
	  Tcl-package van RedHat
	  <filename>tcl-8.0.5-30.i386.prm</filename> ge&iuml;nstalleerd
	  worden (anders mislukt het herlinken tijdens de installatie
	  van <application>&oracle;</application>).  Er zijn nog wat
	  andere gevallen met betrekking tot het herlinken van
	  <application>&oracle;</application>, maar dat is een
	  <application>&oracle;</application> &linux;-geval en niet
	  &os;-specifiek.</para>
      </sect3>

      <sect3 id="linuxprocandfallbackelfbrand">
	<title>Aanvullende hints</title>

	<para>Het kan ook een goed idee zijn om
	  <literal>linprocfs</literal> aan
	  <filename>/etc/fstab</filename> toe te voegen.  Meer
	  informatie is te vinden in &man.linprocfs.5;.  Een andere
	  parameter om in te stellen is
	  <literal>kern.fallback_elf_brand=3</literal> in
	  <filename>/etc/sysctl.conf</filename>.</para>
      </sect3>
    </sect2>

    <sect2 id="creatingsapr3env">
      <title>De &sap.r3;-omgeving maken</title>

      <sect3 id="filesystemsandmountpoints">
	<title>De benodigde bestandssystemen en aankoppelpunten
	  cre&euml;ren</title>

	<para>Voor een eenvoudige installatie is het voldoende om de
	  volgende bestandssystemen aan te maken:</para>

	<informaltable frame="none">
	  <tgroup cols="2">
	    <thead>
	      <row>
		<entry>aankoppelpunt</entry>

		<entry>grootte in GB</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry><filename>/compat/linux/oracle</filename></entry>

		<entry>45&nbsp;GB</entry>
	      </row>

	      <row>
		<entry><filename>/compat/linux/sapmnt</filename></entry>

		<entry>2&nbsp;GB</entry>
	      </row>

	      <row>
		<entry><filename>/compat/linux/usr/sap</filename></entry>

		<entry>2&nbsp;GB</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Het is ook noodzakelijk om enige aankoppelpunten te maken,
	  anders klaagt de <application>&sap;</application> Installer
	  als die de gemaakte aankoppelpunten controleert:</para>

	<screen>&prompt.root; <userinput>ln -s /compat/linux/oracle /oracle</userinput>
&prompt.root; <userinput>ln -s /compat/linux/sapmnt /sapmnt</userinput>
&prompt.root; <userinput>ln -s /compat/linux/usr/sap /usr/sap</userinput></screen>

	<para>Mogelijke foutmeldingen tijdens de installatie zijn (hier
	  met System <emphasis>PRD</emphasis> en de
	  <application>&sap.r3;&nbsp;4.6C
	  SR2</application>-installatie):</para>

	<screen>INFO 2002-03-19 16:45:36 R3LINKS_IND_IND SyLinkCreate:200
    Checking existence of symbolic link /usr/sap/PRD/SYS/exe/dbg to
    /sapmnt/PRD/exe. Creating if it does not exist...

WARNING 2002-03-19 16:45:36 R3LINKS_IND_IND SyLinkCreate:400
    Link /usr/sap/PRD/SYS/exe/dbg exists but it points to file
    /compat/linux/sapmnt/PRD/exe instead of /sapmnt/PRD/exe. The
    program cannot go on as long as this link exists at this
    location. Move the link to another location.

ERROR 2002-03-19 16:45:36 R3LINKS_IND_IND Ins_SetupLinks:0
    can not setup link '/usr/sap/PRD/SYS/exe/dbg' with content
    '/sapmnt/PRD/exe'</screen>
      </sect3>

      <sect3 id="creatingusersanddirectories">
	<title>Gebruikers en mappen aanmaken</title>

	<para><application>&sap.r3;</application> heeft twee gebruikers
	  en drie groepen nodig.  De gebruikersnamen zijn afhankelijk
	  van de <application>&sap;</application> system ID (SID) die
	  uit drie letters bestaat.  Enkele van deze SIDs zijn
	  gereserveerd door <application>&sap;</application>
	  (bijvoorbeeld <literal>SAP</literal> en
	  <literal>NIX</literal>.  In de
	  <application>&sap;</application>-documentatie staat een
	  complete lijst).  Voor de IDES-installatie is
	  <literal>IDS</literal> gebruikt, voor de 4.6C SR2-installatie
	  <literal>PRD</literal>, omdat dat systeem bedoeld is voor
	  productiegebruik.  Daarvoor zijn de volgende groepen gebruikt
	  (groep-IDs kunnen afwijken, dat zijn gewoon de waardes die
	  voor deze specifieke installatie gebruikt zijn):</para>

	<informaltable frame="none">
	  <tgroup cols="3">
	    <thead>
	      <row>
		<entry>groep-ID</entry>

		<entry>groepsnaam</entry>

		<entry>beschrijving</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>100</entry>

		<entry>dba</entry>

		<entry>DataBase-Administrator</entry>
	      </row>

	      <row>
		<entry>101</entry>

		<entry>sapsys</entry>

		<entry>&sap; System</entry>
	      </row>

	      <row>
		<entry>102</entry>

		<entry>oper</entry>

		<entry>DataBase-Operator</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Voor een standaard <application>&oracle;</application>-
	  installatie wordt slechts &eacute;&acute;n groep,
	  <groupname>dba</groupname>, gebruikt.  De groep
	  <groupname>oper</groupname> gebruikt ook de groep
	  <groupname>dba</groupname> (er staat meer informatie in de
	  <application>&oracle;</application>- en
	  <application>&sap;</application>-documentatie).</para>

	<para>Tevens zijn de volgende gebruikers nodig:</para>

	<informaltable frame="none">
	  <tgroup cols="6">
	    <thead>
	      <row>
		<entry>gebruikers-ID</entry>

		<entry>gebruikersnaam</entry>

		<entry>generieke naam</entry>

		<entry>groep</entry>

		<entry>aanvullende groepen</entry>

		<entry>beschrijving</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>1000</entry>

		<entry>idsadm/prdadm</entry>

		<entry><replaceable>sid</replaceable>adm</entry>

		<entry>sapsys</entry>

		<entry>oper</entry>

		<entry>&sap;-beheerder</entry>
	      </row>

	      <row>
		<entry>1002</entry>

		<entry>oraids/oraprd</entry>

		<entry>ora<replaceable>sid</replaceable></entry>

		<entry>dba</entry>

		<entry>oper</entry>

		<entry>&oracle;-beheerder</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>De volgende regels voor &man.adduser.8; zijn nodig om de
	  <quote>&sap;-beheerder</quote>-gebruiker toe te
	  voegen:</para>

	<programlisting>Name: <replaceable>sid</replaceable>adm
Password: ******
Fullname: SAP-beheerder<replaceable>SID</replaceable>
Uid: 1000
Gid: 101 (sapsys)
Class:
Groups: sapsys dba
HOME: /home/<replaceable>sid</replaceable>adm
Shell: bash  (/compat/linux/bin/bash)</programlisting>

	<para>en deze voor de
	  <quote>&oracle;-beheerder</quote>-gebruiker:</para>

	<programlisting>Name: ora<replaceable>sid</replaceable>
Password: ******
Fullname: Oracle-beheerder<replaceable>SID</replaceable>
Uid: 1002
Gid: 100 (dba)
Class:
Groups: dba
HOME: /oracle/<replaceable>sid</replaceable>
Shell: bash  (/compat/linux/bin/bash)</programlisting>

	<para>De <application>&oracle;</application>-beheerder moet ook
	  in de groep <groupname>oper</groupname> zitten als de groepen
	  <groupname>dba</groupname> en <groupname>oper</groupname>
	  beiden gebruikt worden.</para>
      </sect3>

      <sect3 id="creatingdirectories">
	<title>Mappen aanmaken</title>

	<para>De volgende mappen worden normaalgesproken als aparte
	  bestandssystemen aangemaakt.  Dit is geheel afhankelijk van
	  de behoefte.  Hier is ervoor gekozen om ze als simpele mappen
	  aan te maken, omdat ze toch allemaal op dezelfde RAID-5
	  zitten:</para>

	<para>Eerst worden de eigenaren en rechten van sommige mappen
	  ingesteld (als <username>root</username>):</para>

	<screen>&prompt.root; <userinput>chmod 775 /oracle</userinput>
&prompt.root; <userinput>chmod 777 /sapmnt</userinput>
&prompt.root; <userinput>chown root:dba /oracle</userinput>
&prompt.root; <userinput>chown <replaceable>sid</replaceable>adm:sapsys /compat/linux/usr/sap</userinput>
&prompt.root; <userinput>chmod 775 /compat/linux/usr/sap</userinput></screen>

	<para>Als tweede worden de mappen als gebruiker <username>
	  ora<replaceable>sid</replaceable></username> aangemaakt.  Dat
	  zijn allemaal submappen van
	  <filename>/oracle<replaceable>SID</replaceable></filename>:
	</para>

	<screen>&prompt.root; <userinput>su - ora<replaceable>sid</replaceable></userinput>
&prompt.root; <userinput>cd /oracle/<replaceable>SID</replaceable></userinput>
&prompt.root; <userinput>mkdir mirrlogA mirrlogB origlogA origlogB</userinput>
&prompt.root; <userinput>mkdir sapdata1 sapdata2 sapdata3 sapdata4 sapdata5 sapdata6</userinput>
&prompt.root; <userinput>mkdir saparch sapreorg</userinput>
&prompt.root; <userinput>exit</userinput></screen>

	<para>Voor de <application>&oracle;
	    8.1.7</application>-installatie zijn enkele aanvullende
	  mappen nodig:</para>

	<screen>&prompt.root; <userinput>su - ora<replaceable>sid</replaceable></userinput>
&prompt.root; <userinput>cd /oracle</userinput>
&prompt.root; <userinput>mkdir 805_32</userinput>
&prompt.root; <userinput>mkdir client stage</userinput>
&prompt.root; <userinput>mkdir client/80x_32</userinput>
&prompt.root; <userinput>mkdir stage/817_32</userinput>
&prompt.root; <userinput>cd /oracle/<replaceable>SID</replaceable></userinput>
&prompt.root; <userinput>mkdir 817_32</userinput></screen>

	<note>
	  <para>De map <filename>client/80x_32</filename> wordt met
	    precies deze naam gebruikt.  De <emphasis>x</emphasis> mag
	    niet door een getal of iets dergelijks vervangen
	    worden.</para>
	</note>

	<para>In de derde stap worden de mappen als gebruiker
	  <username><replaceable>sid</replaceable>adm</username>
	  aangemaakt:</para>

	<screen>&prompt.root; <userinput>su - <replaceable>sid</replaceable>adm</userinput>
&prompt.root; <userinput>cd /usr/sap</userinput>
&prompt.root; <userinput>mkdir <replaceable>SID</replaceable></userinput>
&prompt.root; <userinput>mkdir trans</userinput>
&prompt.root; <userinput>exit</userinput></screen>
      </sect3>

      <sect3 id="entriesinslashetcslashservices">
	<title>Regels in <filename>/etc/services</filename></title>

	<para>Voor <application>&sap.r3;</application> zijn enkele
	  regels in het bestand <filename>/etc/services</filename>
	  nodig, die niet correct worden ingesteld tijdens de
	  installatie op &os;.  De volgende regels moeten toegevoegd
	  worden (op zijn minst die regels die met een instantienummer
	  overeenkomen, in dit geval <literal>00</literal>.  Het
	  kan geen kwaad om alle regels van <literal>00</literal> tot
	  en met <literal>99</literal> toe te voegen voor
	  <literal>dp</literal>, <literal>gw</literal>,
	  <literal>sp</literal> en <literal>ms</literal>).  Als er een
	  <application>SAProuter</application> gebruikt gaat worden of
	  toegang tot <application>&sap;</application> OSS nodig is,
	  dan is <literal>99</literal> ook nodig, aangezien poort 3299
	  gewoonlijk wordt gebruikt voor het
	  <application>SAProuter</application>-proces op het
	  doelsysteem:</para>

	  <programlisting>sapdp00  3200/tcp # SAP-dispatcher. 3200 + instantienummer
sapgw00  3300/tcp # SAP-gateway.    3300 + instantienummer
sapsp00  3400/tcp #                 3400 + instantienummer
sapms00  3500/tcp #                 3500 + instantienummer
sapms<replaceable>SID</replaceable> 3600/tcp # SAP-berichtenserver. 3600 + instantienummer
sapgw00s 4800/tcp # veilige SAP-gateway 4800 + instantienummer</programlisting>
      </sect3>

      <sect3 id="necessarylocales">
	<title>Benodigde lokalisaties</title>

	<indexterm><primary>locale</primary></indexterm>

	<para><application>&sap;</application> heeft tenminste twee
	  lokalisaties nodig die geen deel uitmaken van de standaard
	  RedHat-installatie.  &sap; biedt de benodigde RPMs als
	  downloadbare bestanden op hun FTP-server aan (die alleen
	  toegankelijk is voor klanten met OSS-toegang).  In notitie
	  0171356 staat een lijst van de benodigde RPMs.</para>

	<para>Het is ook mogelijk om gewoon de juiste links aan te
	  maken (bijvoorbeeld vanuit <emphasis>de_DE</emphasis> en
	  <emphasis>en_US</emphasis>), maar dat is niet aan te raden
	  voor productiesystemen (alhoewel het probleemloos op het
	  IDES-systeem werkte).  De volgende lokalisaties zijn
	  nodig:</para>

	<programlisting>de_DE.ISO-8859-1
en_US.ISO-8859-1</programlisting>

	<para>Nu moeten de volgende links gemaakt worden:</para>

	<screen>&prompt.root; <userinput>cd /compat/linux/usr/share/locale</userinput>
&prompt.root; <userinput>ln -s de_DE de_DE.ISO-8859-1</userinput>
&prompt.root; <userinput>ln -s en_US en_US.ISO-8859-1</userinput></screen>

	<para>Als ze niet aanwezig zijn, ontstaan er problemen tijdens
	  de installatie.  Als ze dan consequent genegeerd worden (door
	  de <literal>STATUS</literal> van de probleemstap op
	  <literal>OK</literal> te zetten in het bestand
	  <filename>CENTRDB.R3S</filename>), is het niet mogelijk om op
	  het <application>&sap;</application>- systeem aan te melden
	  zonder wat extra moeite.</para>
      </sect3>

      <sect3 id="kerneltuning">
	<title>Kerneloptimalisatie</title>

	<indexterm><primary>kerneloptimalisatie</primary></indexterm>

	<para><application>&sap.r3;</application>-systemen hebben veel
	  bronnen nodig.  Daarom zijn de volgende parameters
	  toegevoegd aan het kernelinstellingenbestand:</para>

	<programlisting>#Stel deze in voor geheugengierigheid (SAP en Oracle)
options MAXDSIZ="(1024*1024*1024)"
options DFLDSIZ="(1024*1024*1024)"
#System-V-opties nodig.
options SYSVSHM # SysV-stijl gedeeld geheugen
options SHMMAXPGS=262144 #maximum aantal gedeelde geheugenpagina's
#options SHMMAXPGS=393216 #gebruik dit voor de 46C installatieparameters
options SHMMNI=256 #maximun aantal identifier-interfaces voor gedeeld geheugen
options SHMSEG=100 #maximum aantal gedeeld-geheugensegmenten per proces
options SYSVMSG #SysV-stijl berichtenwachtrijen
options MSGSEG=32767 #maximum aantal berichtsegmenten in systeem
options MSGSSZ=32 #grootte van berichtensegment. MOET macht van 2 zijn
options MSGMNB=65535 #maximum aantal tekens per berichtenwachtrij
options MSGTQL=2046 #maximum aantal berichten in systeem
options SYSVSEM #SysV-stijl semaforen
options SEMMNU=256 #aantal semafoor-UNDO-structuren
options SEMMNS=1024 #aantal semaforen in systeem
options SEMMNI=520 #aantal semafoor-identifiers
options SEMUME=100 #aantal UNDO-sleutels</programlisting>

	<para>De minimumwaarden zijn aangegeven in de documentatie van
	  &sap;.  Omdat er geen beschrijving voor &linux; is, wordt
	  verwezen naar de HP-UX-sectie (32 bit) voor meer informatie.
	  Omdat het systeem voor de 4.6C SR2-installatie meer
	  hoofdgeheugen heeft, kunnen de gedeelde segmenten voor
	  <application>&sap;</application> en
	  <application>&oracle;</application> groter zijn..  Daarom kan
	  voor een groter aantal pagina's voor het gedeelde geheugen
	  gekozen worden.</para>

	<note>
	  <para>Op een standaardinstallatie van &os; op &i386; moeten
	    <literal>MAXDSIZ</literal> en <literal>DFLDSIZ</literal> op
	    maximaal 1&nbsp;GB blijven staan.  Anders kunnen er vreemde
	    fouten als <errorname>ORA-27102: out of memory</errorname>
	    en <errorname>Linux Error 12: Cannot allocate
	      memory</errorname> optreden.</para></note>
      </sect3>
    </sect2>

    <sect2 id="installingsapr3">
      <title>&sap.r3; installeren</title>

      <sect3 id="preparingsapcdroms">
	<title>De &sap;-CD-ROMs voorbereiden</title>

	<para>Tijdens de installatie moeten veel CD-ROMs aangekoppeld en
	  losgekoppeld worden.  Als er voldoende CD-ROM-drives zijn,
	  kunnen ze allemaal tegelijk aangekoppeld worden.  Hier is
	  besloten om de inhoud van de CD-ROMs naar de overeenkomende
	  mappen te kopi&euml;ren:</para>

	<programlisting>/oracle/<replaceable>SID</replaceable>/sapreorg/<replaceable>cd-naam</replaceable></programlisting>

	<para>Hierboven is <replaceable>cd-naam</replaceable>
	  &eacute;&eacute;n van <filename>KERNEL</filename>,
	  <filename>RDBMS</filename>, <filename>EXPORT1</filename>,
	  <filename>EXPORT2</filename>, <filename>EXPORT3</filename>,
	  <filename>EXPORT4</filename>, <filename>EXPORT5</filename> en
	  <filename>EXPORT6</filename> voor de
	  4.6B/IDES-installatie en &eacute;&eacute;n van
	  <filename>KERNEL</filename>, <filename>RDBMS</filename>,
	  <filename>DISK1</filename>, <filename>DISK2</filename>,
	  <filename>DISK3</filename>, <filename>DISK4</filename> en
	  <filename>LANG</filename> voor de 4.6C SR2-installatie.  Alle
	  bestandsnamen op de aangekoppelde CD-ROMs moeten in
	  hoofdletters staan of anders kan er gebruik gemaakt worden van
	  de optie <option>-g</option> bij het aankoppelen:</para>

	<screen>&prompt.root; <userinput>mount_cd9660 -g /dev/cd0a /mnt</userinput>
&prompt.root; <userinput>cp -R /mnt/* /oracle/<replaceable>SID</replaceable>/sapreorg/<replaceable>cd-naam</replaceable></userinput>
&prompt.root; <userinput>umount /mnt</userinput></screen>
      </sect3>

      <sect3 id="runningtheinstall-script">
	<title>Het installatiescript uitvoeren</title>

	<para>Eerst moet er een map <filename
	    class="directory">install</filename> worden
	  aangemaakt:</para>

	<screen>&prompt.root; <userinput>/oracle/<replaceable>SID</replaceable>/sapreorg/KERNEL/UNIX/INSTTOOL.SH</userinput></screen>

	<para>De IDES-installatie (4.6B) komt met een volledig
	  aangepast &sap.r3; -demonstratiesysteem, dus zijn er zes in
	  plaats van slechts drie EXPORT-CD-ROMs.  Op dit moment dient
	  het installatiesjabloon <filename>CENTRDB.R3S</filename> voor
	  het installeren van een standaard centrale instantie
	  (<application>&r3;</application> met database), niet de
	  IDES centrale instantie, dus moet de overeenkomende
	  <filename>CENTRDB.R3S</filename> vanuit de map <filename
	    class="directory">EXPORT1</filename> gekopieerd worden,
	  anders vraagt <command>R5SETUP</command> slechts om drie
	  EXPORT-CD-ROMs.</para>

	<para>De nieuwere uitgave <application>&sap; 4.6
	    SR2</application> komt met vier EXPORT-CD-ROMs.  Het
	  parameterbestand dat de installatiestappen beheert is
	  <filename>CENTRAL.R3S</filename>.  In tegenstelling tot
	  eerdere uitgaven zijn er geen aparte installatiesjablonen
	  voor een centrale instantie met of zonder database.
	  <application>&sap;</application> gebruikt een apart sjabloon
	  voor de installatie van de database.  Om de installatie op
	  een later tijdstip te opnieuw te starten is het echter
	  voldoende om met het originele bestand opnieuw te
	  starten.</para>

	<para>Tijdens en na de installatie eist
	  <application>&sap;</application> dat
	  <command>hostname</command> alleen de naam van de computer en
	  niet de volledig gekwalificeerde domeinnaam teruggeeft.  Dus
	  dient &ograve;f de computernaam op deze manier ingesteld te
	  worden, &ograve;f een alias ingesteld te worden met
	  <command>alias hostname='hostname -s'</command> voor zowel
	  <username><replaceable>ora</replaceable>sid</username> als
	  <username><replaceable>sid</replaceable>adm</username> (en
	  voor <username>root</username> tijdens minimaal de
	  installatiestappen die als <username>root</username> worden
	  uitgevoerd).  Het is ook mogelijk om de ge&iuml;nstalleerde
	  bestanden <filename>.profile</filename> en <filename>.login
	    </filename> van beide gebruikers die tijdens de installatie
	  worden ge&iuml;nstalleerd aan te passen.</para>
      </sect3>

      <sect3 id="startr3setup-46B">
	<title>Start <command>R3SETUP</command> 4.6B</title>

	<para>Ben er zeker van dat <envar>LD_LIBRARY_PATH</envar> juist
	  is ingesteld:</para>

	<screen>&prompt.root; <userinput>export LD_LIBRARY_PATH=/oracle/IDS/lib:/sapmnt/IDS/exe:/oracle/805_32/lib</userinput></screen>

	<para>Start <command>R3SETUP</command> als
	  <username>root</username> vanuit de installatiemap:</para>

	<screen>&prompt.root; <userinput>cd /oracle/IDS/sapreorg/install</userinput>
&prompt.root; <userinput>./R3SETUP -f CENTRDB.R3S</userinput></screen>

	<para>Het script stelt vervolgens wat vragen
	  (standaardantwoorden in haken, gevolgd door de eigenlijke
	  invoer):</para>

	<informaltable frame="none">
	  <tgroup cols="3">
	    <thead>
	      <row>
		<entry>Vraag</entry>

		<entry>Standaard</entry>

		<entry>Invoer</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>Enter SAP System ID</entry>

		<entry>[C11]</entry>

		<entry>IDS<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter SAP Instance Number</entry>

		<entry>[00]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter SAPMOUNT Directory</entry>

		<entry>[/sapmnt]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter name of SAP central host</entry>

		<entry>[troubadix.domain.de]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter name of SAP db host</entry>

		<entry>[troubadix]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Select character set</entry>

		<entry>[1] (WE8DEC)</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Oracle server version (1) Oracle 8.0.5,
		  (2) Oracle 8.0.6, (3) Oracle 8.1.5,
		  (4) Oracle 8.1.6</entry>

		<entry> </entry>

		<entry>1<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Extract Oracle Client archive</entry>

		<entry>[1] (Yes, extract)</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter path to KERNEL CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/IDS/sapreorg/KERNEL</entry>
	      </row>

	      <row>
		<entry>Enter path to RDBMS CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/IDS/sapreorg/RDBMS</entry>
	      </row>

	      <row>
		<entry>Enter path to EXPORT1 CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/IDS/sapreorg/EXPORT1</entry>
	      </row>

	      <row>
		<entry>Directory to copy EXPORT1 CD</entry>

		<entry>[/oracle/IDS/sapreorg/CD4_DIR]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter path to EXPORT2 CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/IDS/sapreorg/EXPORT2</entry>
	      </row>

	      <row>
		<entry>Directory to copy EXPORT2 CD</entry>

		<entry>[/oracle/IDS/sapreorg/CD5_DIR]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter path to EXPORT3 CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/IDS/sapreorg/EXPORT3</entry>
	      </row>

	      <row>
		<entry>Directory to copy EXPORT3 CD</entry>

		<entry>[/oracle/IDS/sapreorg/CD6_DIR]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter path to EXPORT4 CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/IDS/sapreorg/EXPORT4</entry>
	      </row>

	      <row>
		<entry>Directory to copy EXPORT4 CD</entry>

		<entry>[/oracle/IDS/sapreorg/CD7_DIR]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter path to EXPORT5 CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/IDS/sapreorg/EXPORT5</entry>
	      </row>

	      <row>
		<entry>Directory to copy EXPORT5 CD</entry>

		<entry>[/oracle/IDS/sapreorg/CD8_DIR]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter path to EXPORT6 CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/IDS/sapreorg/EXPORT6</entry>
	      </row>

	      <row>
		<entry>Directory to copy EXPORT6 CD</entry>

		<entry>[/oracle/IDS/sapreorg/CD9_DIR]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter amount of RAM for SAP + DB</entry>

		<entry> </entry>

		<entry>850<keycap>Enter</keycap> (in Megabytes)</entry>
	      </row>

	      <row>
		<entry>Service Entry Message Server</entry>

		<entry>[3600]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Group-ID of sapsys</entry>

		<entry>[101]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Group-ID of oper</entry>

		<entry>[102]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Group-ID of dba</entry>

		<entry>[100]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter User-ID of
		  <replaceable>sid</replaceable>adm</entry>

		<entry>[1000]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter User-ID of
		  ora<replaceable>sid</replaceable></entry>

		<entry>[1002]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Number of parallel procs</entry>

		<entry>[2]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Als de CD-ROMs niet naar de verschillende plaatsen
	  gekopieerd waren, kan het
	  <application>&sap;</application>-installatieprogramma de
	  benodigde CD-ROM niet vinden (ge&iuml;dentificeerd door het
	  bestand <filename>LABEL.ASC</filename> op de CD-ROM) en
	  vraagt het om de CD-ROM aan te koppelen en het aankoppelpad te
	  bevestigen of in te voeren.</para>

	<para>Het bestand <filename>CENTRDB.R3S</filename> kan fouten
	  bevatten.  In dit geval vroeg het nogmaals om de EXPORT4
	  CD-ROM, maar gaf het wel de juiste sleutel (6_LOCATION,
	  daarna 7_LOCATION enzovoorts) aan, dus kon gewoon doorgegaan
	  worden met het invoeren van de juiste waarden.</para>

	<para>Afgezien van enkele problemen die hieronder genoemd
	  worden, hoort alles vanzelf te gaan tot het punt waar de
	  software voor de &oracle;-database ge&iuml;nstalleerd moet
	  worden.</para>
      </sect3>

      <sect3 id="startr3setup-46C">
	<title><command>R3SETUP</command> 4.6C SR2 starten</title>

	<para><envar>LD_LIBRARY_PATH</envar> moet juist ingesteld
	  zijn.  Dit is een andere waarde dan die van de 4.6B
	  installatie met <application>&oracle;
	    8.0.5</application>:</para>

	<screen>&prompt.root; <userinput>export LD_LIBRARY_PATH=/sapmnt/PRD/exe:/oracle/PRD/817_32/lib</userinput></screen>

	<para>Start <command>R3SETUP</command> als gebruiker
	  <username>root</username> vanuit de installatiemap:</para>

	<screen>&prompt.root; <userinput>cd /oracle/PRD/sapreorg/install</userinput>
&prompt.root; <userinput>./R3SETUP -f CENTRAL.R3S</userinput></screen>

	<para>Het script stelt vervolgens enkele vragen
	  (standaardantwoorden tussen haken, gevolgd door de eigenlijke
	  invoer):</para>

	<informaltable frame="none">
	  <tgroup cols="3">
	    <thead>
	      <row>
		<entry>Vraag</entry>

		<entry>Standaard</entry>

		<entry>Invoer</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>Enter SAP System ID</entry>

		<entry>[C11]</entry>

		<entry>PRD<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter SAP Instance Number</entry>

		<entry>[00]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter SAPMOUNT Directory</entry>

		<entry>[/sapmnt]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter name of SAP central host</entry>

		<entry>[majestix]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Database System ID</entry>

		<entry>[PRD]</entry>

		<entry>PRD<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter name of SAP db host</entry>

		<entry>[majestix]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Select character set</entry>

		<entry>[1] (WE8DEC)</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Oracle server version (2) Oracle 8.1.7</entry>

		<entry> </entry>

		<entry>2<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Extract Oracle Client archive</entry>

		<entry>[1] (Yes, extract)</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter path to KERNEL CD</entry>

		<entry>[/sapcd]</entry>

		<entry>/oracle/PRD/sapreorg/KERNEL</entry>
	      </row>

	      <row>
		<entry>Enter amount of RAM for SAP + DB</entry>

		<entry>2044</entry>

		<entry>1800<keycap>Enter</keycap> (in Megabytes)</entry>
	      </row>

	      <row>
		<entry>Service Entry Message Server</entry>

		<entry>[3600]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Group-ID of sapsys</entry>

		<entry>[100]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Group-ID of oper</entry>

		<entry>[101]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Group-ID of dba</entry>

		<entry>[102]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter User-ID of <username>oraprd</username></entry>

		<entry>[1002]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter User-ID of <username>prdadm</username></entry>

		<entry>[1000]</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>LDAP support</entry>

		<entry> </entry>

		<entry>3<keycap>Enter</keycap> (no support)</entry>
	      </row>

	      <row>
		<entry>Installation step completed</entry>

		<entry>[1] (continue)</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Choose installation service</entry>

		<entry>[1] (DB inst,file)</entry>

		<entry><keycap>Enter</keycap></entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Tot dusver geeft het aanmaken van gebruikers een fout
	  in de fases OSUSERDBSID_IND_ORA (voor het aanmaken van de
	  gebruiker
	  <username>ora<replaceable>sid</replaceable></username>) en
	  OSUSERIDADM_IND_ORA (voor het aanmaken van de gebruiker
	  <username><replaceable>sid</replaceable>adm</username>).</para>
      </sect3>
    </sect2>

    <sect2 id="installingoracle805">
      <title>&oracle; 8.0.5 installeren</title>

      <para>Mogelijke problemen staan beschreven in de &sap; Notes en
	&oracle; <filename>Readme</filename> bestanden met betrekking
	tot &linux; en <application>&oracle; DB</application>.  De
	meeste, zoniet alle, problemen komen door incompatibele
	bibliotheken.</para>

      <para>Meer informatie over het installeren van
	<application>&oracle;</application> staat in <link
	  linkend="linuxemu-oracle">&oracle; Installeren</link>.</para>

      <sect3 id="installingtheoracle805withorainst">
	<title>&oracle; 8.0.5 installeren met
	  <command>orainst</command></title>

	<para>Als <application>&oracle; 8.0.5</application> gebruikt
	  moet worden, zijn enkele bibliotheken nodig voor het met
	  succes herlinken, omdat <application>&oracle;
	    8.0.5</application> met een oude versie van glibc gelinkt
	  was (RedHat 6.0) en RedHat 6.1 reeds een nieuwere glibc
	  gebruikt.  De volgende aanvullende pakketten moeten
	  ge&iuml;nstalleerd worden om er zeker van te zijn dat het
	  linken lukt:</para>

	<itemizedlist>
	  <listitem><para><filename>compat-libs-5.2-2.i386.rpm</filename></para></listitem>

	  <listitem><para><filename>compat-glibc-5.2-2.0.7.2.i386.rpm</filename></para></listitem>

	  <listitem><para><filename>compat-egcs-5.2-1.0.3a.1.i386.rpm</filename></para></listitem>

	  <listitem><para><filename>compat-egcs-c++-5.2.1.0.3a.1.i386.rpm</filename></para></listitem>

	  <listitem><para><filename>compat-binutils-5.2-2.9.1.0.23.1.i386.rpm</filename></para></listitem>
	</itemizedlist>

	<para>In de &sap; Notes of &oracle; <filename>Readme</filename>
	  staat meer informatie.  Als er geen keuze is (op het moment
	  van installeren was er niet genoeg tijd om dit te
	  controleren) kunnen de originele binairen gebruikt worden of
	  kunnen de herlinkte binairen van een origineel RedHat
	  systeem gebruikt worden.</para>

	<para>Om de intelligente agent te compileren moet het RedHat
	  Tcl package ge&iuml;nstalleerd zijn.  Als
	  <filename>tcl-8.0.3-20.i386.rpm</filename> niet te krijgen
	  is, doet een nieuwere versie zoals
	  <filename>tcl-8.0.5-30.i386.rpm</filename> voor RedHat 6.1
	  het ook.</para>

	<para>Afgezien van het herlinken is de installatie
	  rechttoe rechtaan:</para>

	<screen>&prompt.root; <userinput>su - oraids</userinput>
&prompt.root; <userinput>export TERM=xterm</userinput>
&prompt.root; <userinput>export ORACLE_TERM=xterm</userinput>
&prompt.root; <userinput>export ORACLE_HOME=/oracle/IDS</userinput>
&prompt.root; <userinput>cd $ORACLE_HOME/orainst_sap</userinput>
&prompt.root; <userinput>./orainst</userinput></screen>

	<para>Alle schermen dienen met <keycap>Enter</keycap>
	  bevestigd te worden totdat de software ge&iuml;nstalleerd is,
	  behalve dat de <emphasis>&oracle; On-Line Text
	    Viewer</emphasis> gedeselecteerd moet worden omdat deze
	  momenteel niet voor &linux; beschikbaar is.  Vervolgens wil
	  <application>&oracle;</application> met
	  <command>i386-glibc20-linux-gcc</command> herlinken, in
	  plaats van met de beschikbare <command>gcc</command>,
	  <command>egcs</command> of
	  <command>i386-redhat-linux-gcc</command>.</para>

	<para>Wegens tijdbeperkingen is besloten om de binairen van een
	<application>&oracle; 8.0.5 PreProduction</application>-uitgave
	te gebruiken, nadat de eerste poging om de versie van de
	RDBMS-CD-ROM werkend te krijgen mislukte en het vinden en
	gebruiken van de juiste RPMs was op dat moment een nachtmerrie
	was.</para>
      </sect3>

      <sect3 id="installingtheoracle805preproduction">
	<title>&oracle; 8.0.5 pre-productie versie voor
	  &linux; (kernel 2.0.33) installeren</title>

	<para>De installatie hiervan is vrij eenvoudig: koppel de CD-ROM
	  aan en start het installatieprogramma.  Het vraagt dan om de
	  plaats van de &oracle; thuismap en zet daar alle binairen
	  neer.  Op dat moment waren echter niet de restanten van
	  vorige pogingen om RDBMS te installeren verwijderd.</para>

	<para>Daarna kon <application>&oracle;</application> Database
	  zonder problemen gestart worden.</para>
      </sect3>
    </sect2>

    <sect2 id="installingoracle817">
      <title>De &oracle; 8.1.7 &linux; tarball installeren</title>

      <para>De tarball <filename>oracle81732.tgz</filename> die gemaakt
	is uit de installatiemap een &linux;-systeem kan uitgepakt
	worden in
	<filename>/oracle/<replaceable>SID</replaceable>/817_32/</filename>.
      </para>
    </sect2>

    <sect2 id="continuewithsapr4installation">
      <title>Ga door met de &sap.r3; installatie</title>

      <para>Als eerste dienen de omgevingsinstellingen van de
	gebruikers <username>idsamd</username>
	(<replaceable>sid</replaceable>adm) en
	<username>oraids</username> (ora<replaceable>sid</replaceable>)
	gecontroleerd te worden.  Ze moeten nu beiden beschikken over
	de bestanden <filename>.profile</filename>,
	<filename>.login</filename> en <filename>.cshrc</filename> die
	allemaal <command>hostname</command> gebruiken.  In het geval
	dat de hostnaam van het systeem de volledig gekwalificeerde
	naam is, moet <command>hostname</command> in
	<command>hostname&nbsp;&ndash;s</command> veranderd worden in
	alle drie de bestanden.</para>

      <sect3 id="databaseload">
	<title>Database laden</title>

	<para>Hierna kan <command>R3SETUP</command> &ograve;fwel
	  opnieuw gestart of voortgezet worden (afhankelijk van de
	  keuze voor exit of niet).  <command>R3SETUP</command> maakt
	  vervolgens de tabelruimten aan en laadt de gegevens (voor 46B
	  IDES van EXPORT1 tot en met EXPORT6, voor 46C van DISK1 tot
	  en met DISK4) met <command>R3load</command> in de
	  database.</para>

	<para>Wanneer het laden van de database is voltooid (dit kan
	  enkele uren duren) wordt om enkele wachtwoorden gevraagd.
	  Voor testinstallaties kunnen de welbekende
	  standaardwachtwoorden worden gebruikt.  Als veiligheid een
	  punt is moeten er andere wachtwoorden gebruikt worden!</para>

	<informaltable frame="none">
	  <tgroup cols="2">
	    <thead>
	      <row>
		<entry>Vraag</entry>

		<entry>Invoer</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>Enter Password for sapr3</entry>

		<entry>sap<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Confirum Password for sapr3</entry>

		<entry>sap<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Password for sys</entry>

		<entry>verander_tijdens_installeren<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Confirm Password for sys</entry>

		<entry>verander_tijdens_installatie<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Enter Password for system</entry>

		<entry>beheerder<keycap>Enter</keycap></entry>
	      </row>

	      <row>
		<entry>Confirm Password for system</entry>

		<entry>beheerder<keycap>Enter</keycap></entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Hier waren er wat problemen met
	  <command>dipgntab</command> tijdens de installatie van
	  4.6B.</para>
      </sect3>

      <sect3 id="listener">
	<title>Listener</title>

	<para>Hieronder staat hoe de
	  <application>&oracle;</application> Listener als gebruiker
	  <username>ora<replaceable>sid</replaceable></username>
	  op kan starten:</para>

	<screen>&prompt.user; <userinput>umask 0; lsnrctl start</userinput></screen>

	<para>Anders kan de fout <errorcode>ORA-12546</errorcode>
	  optreden, omdat de sockets dan niet de juiste rechten
	  hebben.  Zie &sap; Note 072984.</para>
      </sect3>

      <sect3 id="mnlstables">
	<title>Bijwerken van MNLS tabellen</title>

	<para>Als het de bedoeling is niet-Latin-1-talen in te voeren
	  in het <application>&sap;</application>-systeem, dan moeten
	  de Multi National Language Support-tabellen bijgewerkt
	  worden.  Dit staat beschreven in de &sap; OSS Notes 15023 en
	  45619.  In alle andere gevallen kan deze vraag overgeslagen
	  worden tijdens de <application>&sap;</application>
	  installatie.</para>

	<note>
	  <para>Als er geen MNLS nodig is, is het nog steeds
	    noodzakelijk om de TCPDB-tabel te controleren en deze te
	    initialiseren als dit nog niet is gedaan.  Zie
	    &sap;-notities 0015023 en 0045619 voor meer
	    informatie.</para>
	</note>
      </sect3>
    </sect2>

    <sect2 id="postinstallationsteps">
      <title>Stappen na de installatie</title>

      <sect3 id="requestsapr3licensekey">
	<title>&sap.r3; licentiesleutel opvragen</title>

	<para>Er moet een <application>&sap.r3;</application>
	  licentiesleutel opgevraagd worden.  Dit is nodig omdat de
	  tijdelijke licentie die tijdens de installatie
	  ge&iuml;nstalleerd is, maar voor vier weken geldig is.  Eerst
	  moet de hardwaresleutel bekend zijn.  Deze wordt bekend door
	  als gebruiker <username>idsadm</username> aan te melden en
	  <command>saplicense</command> uit te voeren:</para>

	<screen>&prompt.root; <userinput>/sapmnt/IDS/exe/saplicense -get</userinput></screen>

	<para>Het uitvoeren van <command>saplicense</command> zonder
	  parameters geeft een lijst met opties.  Nadat de
	  licentiesleutel verkregen is, kan deze ge&iuml;nstalleerd
	  worden door middel van:</para>

	<screen>&prompt.root; <userinput>/sapmnt/IDS/exe/saplicense -install</userinput></screen>

	<para>Hierbij moeten de volgende waarden ingevoerd
	  worden:</para>

	<programlisting>SAP SYSTEM ID   = <replaceable>SID, 3 tekens</replaceable>
CUSTOMER KEY    = <replaceable>hardwaresleutel, 11 tekens</replaceable>
INSTALLATION NO = <replaceable>installatie, 10 cijfers</replaceable>
EXPIRATION DATE = <replaceable>jjjjmmdd, meestal "99991231"</replaceable>
LICENSE KEY     = <replaceable>licentiesleutel, 24 tekens</replaceable></programlisting>
      </sect3>

      <sect3 id="creatingusers">
	<title>Gebruikers aanmaken</title>

	<para>Nu kan een gebruiker binnen client 000 aangemaakt worden
	  (voor sommige taken is het nodig deze binnen client 000 aan
	  te maken, als maar een andere gebruiker dan gebruikers
	  <username>sap*</username> en <username>ddic</username> wordt
	  gebruikt).  Zoals gewoonlijk wordt als nieuwe gebruikersnaam
	  <username>wartung</username> (of <username>dienst</username>
	  in het Nederlands) gekozen.  Voor extra veiligheid moeten de
	  wachtwoorden van alle standaardgebruikers binnenin alle
	  clients worden veranderd (dit geldt ook voor gebruikers
	  <username>sap*</username> en
	  <username>ddic</username>).</para>
      </sect3>

      <sect3 id="configtranssysprofileopermodesetc">
	<title>Transportsysteem, profiel, werkmodi en dergelijke
	  instellen</title>

	<para>Vanuit client 000 dient, als een andere gebruiker
	  dan <username>ddic</username> of <username>sap*</username>,
	  tenminste het volgende ingesteld worden:</para>

	<informaltable frame="none">
	  <tgroup cols="2">
	    <thead>
	      <row>
		<entry>Taak</entry>

		<entry>Transactie</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>Stel het transportsysteem in, bijvoorbeeld
		  als <emphasis>Stand-Alone Transport Domain
		    Entity</emphasis></entry>

		<entry>STMS</entry>
	      </row>

	      <row>
		<entry>Maak een profiel voor het systeem aan of wijzig
		  dit</entry>

		<entry>RZ10</entry>
	      </row>

	      <row>
		<entry>Beheer werkmodi en instanties</entry>

		<entry>RZ04</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>Deze en alle andere stappen die na de installatie
	  uitgevoerd moeten worden, staan uitvoerig beschreven in de
	  <application>&sap;</application> installatiehandleidingen.
	</para>
      </sect3>

      <sect3 id="editintsidsap">
	<title><filename>init<replaceable>sid</replaceable>.sap</filename>
	  (<filename>initIDS.sap</filename>) bewerken</title>

	<para>Het bestand
	  <filename>/oracle/IDS/dbs/initIDS.asp</filename> bevat het
	  <application>&sap;</application> back-upprofiel.  Hier moeten
	  de grootte van de te gebruiken tape, het compressietype,
	  enzovoorts gedefinieerd worden.  Om dit aan de gang te
	  krijgen met <command>sapdba</command> /
	  <command>brbackup</command> zijn de volgende waarden
	  veranderd:</para>

	<programlisting>compress = hardware
archive_function = copy_delete_save
cpio_flags = "-ov --format=newc --block-size=128 --quiet"
cpio_in_flags = "-iuv --block-size=128 --quiet"
tape_size = 38000M
tape_address = /dev/nsa0
tape_address_rew = /dev/sa0</programlisting>

	<para>Uitleg:</para>

	<para><varname>compress</varname>: de tape die gebruikt wordt
	  is een HP DLT1 die hardware-compressie ondersteunt.</para>

	<para><varname>archive_function</varname>: dit definieert het
	  standaardgedrag om &oracle;-archieflogs op te slaan: nieuwe
	  logboekbestanden worden op tape opgeslagen, reeds opgeslagen
	  logboekbestanden worden nogmaals opgeslagen en worden daarna
	  verwijderd.  Dit bespaart een hoop problemen als de
	  database hersteld moet worden en &eacute;&eacute;n van de
	  archieftapes versleten is.</para>

	<para><varname>cpio_flags</varname>: de standaard is om
	  <option>-B</option> te gebruiken die de blokgrootte op
	  5120&nbsp;bytes instelt.  Voor DLT tapes raadt HP een
	  blokgrootte van minimaal 32&nbsp;kB aan, dus is
	  <option>--block-size=128</option> gebruikt voor blokken van
	  64&nbsp;kB.  <option>--format=newc</option> is nodig omdat er
	  inodegetallen groter dan 65535 zijn.  De laatste optie
	  <option>--quiet</option> is nodig omdat
	  <command>brbackup</command> anders klaagt zodra
	  <command>cpio</command> het aantal opgeslagen blokken
	  meldt.</para>

	<para><varname>cpio_in_flags</varname>: vlaggen die nodig zijn
	  om de gegevens van de tape terug te laden.  Het formaat wordt
	  automatisch herkend.</para>

	<para><varname>tape_size</varname>: dit geeft gewoonlijk de
	  ruwe opslagcapaciteit van de tape.  Omwille van de veiligheid
	  (er wordt hardware-compressie gebruikt) is de waarde iets
	  lager dan de eigenlijke waarde.</para>

	<para><varname>tape_address</varname>: de naam van het
	  niet-opwindbare apparaat dat met <command>cpio</command>
	  gebruikt wordt.</para>

	<para><varname>tape_address_rew</varname>: de naam van het
	  opwindbare apparaat dat met <command>cpio</command> gebruikt
	  wordt.</para>
      </sect3>

      <sect3>
	<title>Instellingen na installatie</title>

	<para>De volgende parameters van
	  <application>&sap;</application> moeten na de installatie
	  geoptimaliseerd worden (voorbeelden voor IDES 46B, 1&nbsp;GB
	  geheugen):</para>

	<informaltable frame="none">
	  <tgroup cols="2">
	    <thead>
	      <row>
		<entry>Naam</entry>

		<entry>Waarde</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>ztta/roll_extension</entry>

		<entry>250000000</entry>
	      </row>

	      <row>
		<entry>abap/heap_area_dia</entry>

		<entry>300000000</entry>
	      </row>

	      <row>
		<entry>abap/heap_area_nondia</entry>

		<entry>400000000</entry>
	      </row>

	      <row>
		<entry>em/initial_size_MB</entry>

		<entry>256</entry>
	      </row>

	      <row>
		<entry>em/blocksize_kB</entry>

		<entry>1024</entry>
	      </row>

	      <row>
		<entry>ipc/shm_psize_40</entry>

		<entry>70000000</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>&sap; notitie 0013026:</para>

	<informaltable frame="none">
	  <tgroup cols="2">
	    <thead>
	      <row>
		<entry>Naam</entry>

		<entry>Waarde</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>ztta/dynpro_area</entry>

		<entry>2500000</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<para>&sap; notitie 0157246:</para>

	<informaltable frame="none">
	  <tgroup cols="2">
	    <thead>
	      <row>
		<entry>Naam</entry>

		<entry>Waarde</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry>rdisp/ROLL_MAXFS</entry>

		<entry>16000</entry>
	      </row>
	      <row>
		<entry>rdisp/PG_MAXFS</entry>

		<entry>30000</entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>

	<note>
	  <para>Met bovenstaande parameters kan op een op een systeem
	    met 1&nbsp;GB aan geheugen het geheugengebruik soortgelijk
	    zijn aan het volgende:</para>

	  <programlisting>Mem: 547M Active, 305M Inact, 109M Wired, 40M Cache, 112M Buf, 3492K Free</programlisting>
	</note>
      </sect3>
    </sect2>

    <sect2 id="problemsduringinstallation">
      <title>Problemen tijdens installatie</title>

      <sect3 id="restartr3setup">
	<title><command>R3SETUP</command> herstarten na oplossen
	  van een probleem</title>

	<para><command>R3SETUP</command> stopt als het een probleem
	  tegenkomt.  Nadat de bijhorende logbestanden zijn bekeken
	  en de fout is hersteld, moet <command>R3SETUP</command>
	  opnieuw gestart worden en gewoonlijk dient REPEAT
	  geselecteerd te worden bij de laatste stap waar
	  <command>R3SETUP</command> over klaagde.</para>

	<para><command>R3SETUP</command> kan gewoon met het bijhorende
	  bestand <filename>R3S</filename> worden opgestart:</para>

	<screen>&prompt.root; <userinput>./R3SETUP -f CENTRDB.R3S</userinput></screen>

	<para>voor 4.6B, of met</para>

	<screen>&prompt.root; <userinput>./R3SETUP -f CENTRAL.R3S</userinput></screen>

	<para>voor 4.6C, onafhankelijk van het feit of de fout optrad
	  met <filename>CENTRAL.R3S</filename> of met
	  <filename>DATABASE.R3S</filename>.</para>

	<note>
	  <para>Tijdens sommige fasen verwacht
	    <command>R3SETUP</command> dat zowel de database als
	    <application>&sap;</application> draaien (omdat die stappen
	    al voltooid waren).  Mochten er fouten optreden en kan
	    bijvoorbeeld de database niet gestart worden, dan moeten
	    de database en <application>&sap;</application> handmatig
	    worden gestart n&aacute;dat de fouten zijn hersteld en
	    voordat <command>R3SETUP </command> opnieuw wordt
	    gestart.</para>

	  <para>Ook de <application>&oracle;</application> listener
	    moet opnieuw gestarten worden (als
	    <username>ora<replaceable>sid</replaceable></username> met
	    <command>umask 0; lsnrctl start</command>) als die ook was
	    gestopt (bijvoorbeeld omdat het systeem opnieuw opgestart
	    moest worden).</para>
	</note>
      </sect3>

      <sect3 id="indoraduringduringr3setup">
	<title>OSUSERSIDADM_IND_ORA tijdens
	  <command>R3SETUP</command></title>

	<para>Als <command>R3SETUP</command> tijdens deze fase klaagt,
	  moet het sjabloonbestand dat <command>R3SETUP</command>
	  destijds gebruikte (<filename>CENTRDB.R3S</filename> (4.6B)
	  of &eacute;&eacute;n van <filename>CENTRAL.R3S</filename> of
	  <filename>DATABASE.R3S</filename> (4.6C)) worden gewijzigd.
	  Zoek <literal>[OSUSERSIDADM_IND_ORA]</literal> of zoek de
	  enige regel met <literal>STATUS=ERROR</literal> en wijzig de
	  volgende waarden:</para>

	<programlisting>HOME/home/<replaceable>sid</replaceable>adm (was leeg)
STATUS=OK (had status ERROR)</programlisting>

	<para>Daarna kan <command>R3SETUP</command> opnieuw gestart
	  worden.</para>
      </sect3>

      <sect3 id="indoraduringr3setup">
	<title>OSUSERDBSID_IND_ORA tijdens
	  <command>R3SETUP</command></title>

	<para><command>R3SETUP</command> klaagt mogelijk ook tijdens
	  deze fase.  De fout is vergelijkbaar met die in de fase
	  OSUSERSIDADM_IND_ORA.  Hier kan gewoon het sjabloonbestand
	  dat <command>R3SETUP</command> destijds gebruikte
	  (<filename>CENTRDB.R3S</filename> (4.6B) of
	  &eacute;&eacute;n van <filename>CENTRAL.R3S</filename> of
	  <filename>DATABASE.R3S</filename> (4.6C)) gewijzigd worden.
	  In <literal>[OSUSERDBSID_IND_ORA]</literal> of de enige regel
	  <literal>STATUS=ERROR</literal> en kan de volgende waarde
	  in die sectie gewijzigd worden:</para>

	<programlisting>STATUS=OK</programlisting>

	<para>Nu kan <command>R3SETUP</command> opnieuw gestart
	  worden.</para>
      </sect3>

      <sect3 id="oraviewvrffilenotfound">
	<title><errorname>oraview.vrf FILE NOT FOUND</errorname>
	  tijdens installatie van &oracle;</title>

	<para>De <emphasis>&oracle; On-Line Text Viewer</emphasis> is
	  niet gedeselecteerd voordat de installatie begon.  Dit
	  onderdeel is gemarkeerd om ge&iuml;nstalleerd te worden,
	  zelfs al is dit onderdeel momenteel niet beschikbaar op
	  &linux;.  Dit onderdeel dient gedeselecteerd te worden in het
	  <application>&oracle;</application> installatiemenu en de
	  installatie dient opnieuw gestart te worden.</para>
      </sect3>

      <sect3 id="textenvincalid">
	<title><errorname>TEXTENV_INVALID</errorname> tijdens
	  <command>R3SETUP</command>, RFC of SAPgui start</title>

	<para>Deze foutmelding geeft aan dat de juiste locale niet
	  ge&iuml;nstalleerd is.  &sap; notitie 0171356 geeft de
	  benodigde RPMs die ge&iuml;nstalleerd moeten worden
	  (bijvoorbeeld <filename>spalocales-1.0-3</filename> en
	  <filename>saposcheck-1.0-1</filename> voor RedHat 6.1).
	  Indien alle gerelateerde foutmeldingen genegeerd zijn en
	  de bijhorende <literal>STATUS</literal> van
	  <literal>ERROR</literal> in <literal>OK</literal> veranderd
	  zijn (in <filename>CENTRDB.R3S</filename>) telkens als
	  <command>R3SETUP</command> klaagde en
	  <command>R3SETUP</command> gewoon opnieuw gestart is, dan is
	  het <application>&sap;</application>-systeem onjuist
	  ingesteld en is het onmogelijk om met
	  <application>SAPgui</application> een verbinding met het
	  systeem te maken, zelfs al kan het systeem gestart worden.
	  Een poging om met de oude &linux;
	  <application>SAPgui</application> een verbinding te maken gaf
	  de volgende meldingen:</para>

	<programlisting>Sat May 5 14:23:14 2001
*** ERROR => no valid userarea given [trgmsgo. 0401]
Sat May 5 14:23:22 2001
*** ERROR => ERROR NR 24 occured [trgmsgi. 0410]
*** ERROR => Error when generating text environment. [trgmsgi. 0435]
*** ERROR => function failed [trgmsgi. 0447]
*** ERROR => no socket operation allowed [trxio.c 3363]
Speicherzugriffsfehler</programlisting>

	<para>Dit komt doordat <application>&sap.r3;</application> geen
	  juiste locale kan toekennen en ook doordat het zelf onjuist
	  is ingesteld (ontbrekende regels in sommige
	  databasetabellen).  Om een verbinding met
	  <application>&sap.r3;</application> te kunnen maken, moeten
	  de volgende regels aan het <filename>DEFAULT.PFL</filename>
	  worden toegevoegd (zie notitie 0043288):</para>

	<programlisting>abap/set_etct_env_at_new_mode = 0
install/collate/active = 0
rscp/TCP0B = TCP0B</programlisting>

	<para>Nu kan het <application>&sap;</application>-systeem
	  opnieuw gestart worden en kan een verbinding met het systeem
	  gemaakt worden, hoewel landspecifieke taalinstellingen anders
	  kunnen werken dan verwacht.  Nadat de landinstellingen zijn
	  gecorrigeerd (en de juiste locales zijn gegeven), kunnen
	  bovenstaande regels uit <filename>DEFAULT.PFL</filename>
	  verwijderd worden en kan het
	  <application>&sap;</application>-systeem opnieuw gestart
	  worden.</para>
      </sect3>

      <sect3 id="ora-00001">
	<title><errorcode>ORA-00001</errorcode></title>

	<para>Deze fout trad alleen op met <application>&oracle;
	    8.1.7</application> op &os;.  De reden was dat de
	  <application>&oracle;</application>-database zichzelf niet
	  goed kon initialiseren en crashte, waarbij het semaforen en
	  gedeeld geheugen op het systeem achterliet.  De volgende
	  poging om de database te starten geeft dan
	  <errorcode>ORA-00001</errorcode>.</para>

	<para>Met <command>ipcs -a</command> moeten de semaforen
	  opgezocht worden en verwijderd worden met
	  <command>ipcrm</command>.</para>
      </sect3>

      <sect3 id="ora-00445pmon">
	<title><errorcode>ORA-00445</errorcode> (achtergrondproces PMON
	  is niet gestart)</title>

	<para>Deze fout trad op met <application>&oracle;
	    8.1.7</application>.  Deze fout wordt gemeld als de database
	  met het gebruikelijke script <command>startsap</command>
	  wordt gestart (bijvoorbeeld
	  <command>startsap_majestix_00</command>) als gebruiker
	  <username>prdadm</username>.</para>

	<para>Een mogelijke manier om dit te omzeilen is om de database
	  in plaats daarvan als gebruiker <username>oraprd</username>
	  te starten met <command>svrmgrl</command>:</para>

	<screen>&prompt.user; <userinput>svrmgrl</userinput>
SVRMGR&gt; <userinput>connect internal;</userinput>
SVRMGR&gt; <userinput>startup;</userinput>
SVRMGR&gt; <userinput>exit</userinput></screen>
      </sect3>

      <sect3 id="ora-12546">
	<title><errorcode>ORA-12546</errorcode> (start listener met
	  juiste rechten)</title>

	<para>De <application>&oracle;</application> listener moet als
	  gebruiker <username>oraids</username> worden gestart:</para>

	<screen>&prompt.root; <userinput>umask 0; lsnrctl start</userinput></screen>

	<para>Anders kan <errorcode>ORA-12456</errorcode> optreden
	  omdat de sockets dan niet de juiste rechten hebben.  Zie
	  &sap; notitie 0072984.</para>
      </sect3>

      <sect3 id="ora-27102">
	<title><errorcode>ORA-27102</errorcode> (geen geheugen
	  beschikbaar)</title>

	<para>Deze fout trad op toen geprobeerd werd en om waarden
	  groter dan 1&nbsp;GB (1024x1024x1024) te gebruiken voor
	  <literal>MAXDSIZ</literal> en <literal>DFLDSIZ</literal>.
	  Ook kwam er de foutmelding <errorname>Linux Error 12: Cannot
	    allocate memory</errorname>.
	</para>
      </sect3>

      <sect3 id="dipgntabindind">
	<title>[DIPGNTAB_IND_IND] tijdens
	  <command>R3SETUP</command></title>

	<para>Dit wordt behandeld in &sap; notitie 0130581
	  (<command>R3SETUP</command> termineert).  Om een of andere
	  reden gebruikte het installatieproces tijdens de
	  IDES-specifieke installatie niet de juiste
	  <application>&sap;</application> systeemnaam
	  <quote>IDS</quote>, maar in plaats daarvan de lege string
	  <literal>""</literal>.  Dit leidt tot wat kleine problemen
	  met de toegang tot mappen omdat de paden dynamisch
	  gegenereerd worden door middel van
	  <replaceable>SID</replaceable> (in dit geval IDS).  Dus
	  werden niet de paden:</para>

	<programlisting>/usr/sap/IDS/SYS/...
/usr/sap/IDS/DVMGS00</programlisting>

	<para>maar de volgende paden gebruikt:</para>

	<programlisting>/usr/sap//SYS/...
/usr/sap/D00</programlisting>

	<para>Om de installatie voort te zetten, zijn een link en een
	  aanvullende map aangemaakt:</para>

	<screen>&prompt.root; <userinput>pwd</userinput>
/compat/linux/usr/sap
&prompt.root; <userinput>ls -l</userinput>
total 4
drwxr-xr-x 3  idsadm sapsys 512 May 5 11:20 D00
drwxr-x--x 5  idsadm sapsys 512 May 5 11:35 IDS
lrwxr-xr-x 1  root   sapsys 7 May 5 11:35 SYS -&gt; IDS/SYS
drwxrwxr-x 2  idsadm sapsys 512 May 5 13:00 tmp
drwxrwxr-x 11 idsadm sapsys 512 May 4 14:20 trans</screen>

	<para>Dit gedrag staat ook beschreven in &sap; notities 0029227
	  en 0008401.  Deze problemen traden niet op tijdens de
	  installatie van <application>&sap; 4.6C</application>.</para>
      </sect3>

      <sect3 id="rfcrswboiniindind">
	<title>[RFCRSWBOINI_IND_IND] tijdens
	  <command>R3SETUP</command></title>

	<para>Tijdens de installatie van <application>&sap;
	    4.6C</application> trad deze fout gewoon op als het gevolg
	  van een andere fout eerder in de installatie.  In dit geval
	  moeten de bijhorende logboekbestanden doorzocht worden om het
	  echte probleem te kunnen herstellen.</para>

	<para>Als na het doorzoeken van de logboekbestanden blijkt dat
	  deze fout inderdaad de juiste is (zie de &sap; notities),
	  dan kan de <literal>STATUS</literal> van de stap die het
	  probleem geeft van <literal>ERROR</literal> in
	  <literal>OK</literal> veranderd worden (in
	  <filename>CENTRDB.R3S</filename>) en kan
	  <command>R3SETUP</command> opnieuw gestart worden.  Na de
	  installatie moet rapport <literal>RSWBOINS</literal> van
	  transactie SE38 uitgevoerd worden.  In &sap; notitie 0162266
	  staat aanvullende informatie over de fasen
	  <literal>RFCRSWBOINI</literal> en
	  <literal>RFCRADDBDIF</literal>.</para>
      </sect3>

      <sect3 id="rfcraddbdifindind">
	<title>[RFCRADDBDIF_IND_IND] tijdens
	  <command>R3SETUP</command></title>

	<para>Hier gelden dezelfde beperkingen: er dient door het
	  doorzoeken van de logboekbestanden gecontroleerd te worden
	  dat deze fout niet veroorzaakt wordt door eerdere
	  problemen.</para>

	<para>Als bevestigd kan worden dat &sap; notitie 0162266 van
	  toepassing is, kan gewoon <literal>STATUS</literal> van de
	  stap die het probleem geeft van <literal>ERROR</literal> in
	  <literal>OK</literal> veranderd worden (in
	  <filename>CENTRDB.R3S</filename>) en
	  <command>R3SETUP</command> opnieuw gestart worden.  Na de
	  installatie moet het rapport <literal>RADDBDIF</literal> van
	  transactie SE38 uitgevoerd worden.</para>
      </sect3>

      <sect3 id="sigactionsig31">
	<title><errorcode>sigaction sig31: File size limit
	  exceeded</errorcode></title>

	<para>Deze fout trad op tijdens het starten van de
	  <application>&sap;</application>-processen
	  <emphasis>disp+work</emphasis>.  Als
	  <application>&sap;</application> met het script
	  <command>startsap</command> gestart wordt, worden er
	  subprocessen gestart die ontkoppelen en het vuile werk om
	  alle andere <application>&sap;</application>-processen te
	  starten opknappen.  Een gevolg hiervan is dat het script zelf
	  een verkeerde situatie niet opmerkt.</para>

	<para>Om te controleren of de <application>&sap;</application>
	  processen juist zijn gestart, kan de processtatus bekeken
	  worden met <command>ps ax | grep
	    <replaceable>SID</replaceable></command>, wat een lijst
	  geeft met alle processen van
	  <application>&oracle;</application> en
	  <application>&sap;</application>.  Als het ernaar uitziet dat
	  sommige processen ontbreken of als er geen verbinding met het
	  <application>&sap;</application>-systeem gemaakt kan worden,
	  is het verstandig de bijhorende logboekbestanden uit
	  <filename>/usr/sap/<replaceable>SID</replaceable>/DVEBMGS<replaceable>nr</replaceable>/work/</filename>
	  te bekijken.  De te controleren bestanden zijn
	  <filename>dev_ms</filename> en
	  <filename>dev_disp</filename>.</para>

	<para>Signaal 31 treedt hier op als de hoeveelheid gedeeld
	  geheugen die door <application>&oracle;</application> en
	  <application>&sap;</application> wordt gebruikt, groter is
	  dan wat in het kernelinstellingenbestand is ingesteld en dit
	  kan worden verholpen door een hogere waarde te
	  gebruiken:</para>

	<programlisting># grotere waarden voor 46C productiesystemen:
options SHMMAXPGS=393216
# kleinere waarde voldoende voor 46B:
#options SHMMAXPGS=262144</programlisting>
      </sect3>

      <sect3 id="saposcolfails">
	<title><command>saposcol</command> starten mislukt</title>

	<para>Er zijn wat problemen met het programma
	  <command>saposcol</command> (versie 4.6D).  Het
	  <application>&sap;</application>-systeem gebruikt
	  <command>saposcol</command> om informatie over de
	  systeemprestaties in te winnen.  Dit programma is niet
	  noodzakelijk om het <application>&sap;</application>-systeem
	  te gebruiken, dus kan dit probleem als onbelangrijk worden
	  beschouwd.  De oudere versie (4.6B) werkt wel, maar verzamelt
	  niet alle gegevens (veel aanroepen geven gewoon 0 terug,
	  bijvoorbeeld het processorgebruik).</para>
      </sect3>
    </sect2>
  </sect1>

  <sect1 id="linuxemu-advanced">
    <title>Gevorderde onderwerpen</title>

    <para>Hier wordt beschreven hoe de &linux; binaire compatibiliteit
      werkt.  Het meeste van wat nu volgt is sterk gebaseerd op een
      e-mailbericht van Terry Lambert
      <email>tlambert@primenet.com</email> aan &a.chat; (Message ID:
      <literal>&lt;199906020108.SAA07001@usr09.primenet.com&gt;</literal>).
    </para>

    <sect2>
      <title>Hoe werkt het?</title>

      <indexterm><primary>uitvoerklasselader</primary></indexterm>

      <para>&os; heeft een abstractie met de naam <quote>execution
	class loader</quote>.  Dit is een wig in de systeemaanroep
      &man.execve.2;.</para>

      <para>Wat er gebeurt is dat &os; een lijst van loaders heeft, in
	plaats van een enkele loader die terugvalt op de
	<literal>#!</literal> loader voor het draaien van elke
	shellinterpreter of shellscript.</para>

      <para>Vroeger onderzocht de enige loader op het &unix; platform
	het magische getal (in het algemeen de eerste 4 of 8 bytes van
	het bestand) om te zien of het een binary was die het systeem
	kende en als dat het geval was laadde het de binaire
	loader.</para>

      <para>Als het niet het binaire type voor het systeem was, faalde
	de aanroep naar &man.execve.2; en probeerde de shell het als
	shellopdrachten uit te voeren.</para>

      <para>Deze aanname was een standaard voor <quote>wat de huidige
	shell ook is.</quote></para>

      <para>Later werd er een hack gemaakt voor &man.sh.1; om de eerste
	twee tekens te onderzoeken en als die bestonden uit
	<literal>:\n</literal> voerde het in plaats hiervan de
	&man.csh.1; shell uit (het idee is dat SCO de hack als eerste
	maakte).</para>

      <para>Wat &os; nu doet is door een lijst van loaders gaan
	met een generieke <literal>#!</literal> loader die kennis heeft
	van interpreters in de zin van de karakters die volgen op de
	volgende witruimte tot de laatste, met uiteindelijk een
	terugval op <filename>/bin/sh</filename>.</para>

      <indexterm><primary>ELF</primary></indexterm>

      <para>Voor &linux; ABI-ondersteuning ziet &os; het magische getal
	als een ELF-binary (het maakt op dit punt geen onderscheid
	tussen &os;, &solaris;, &linux; of elk ander besturingssysteem
	dat een ELF-beeldtype heeft).</para>

      <indexterm><primary>&solaris;</primary></indexterm>

      <para>De ELF loader zoekt naar een gespecialiseerd
	<emphasis>merk</emphasis>, dat een commentaargedeelte in het
	ELF-beeld is en dat niet aanwezig is in SVR4/&solaris;
	ELF-binairen.</para>

      <para>Om &linux;-binairen werkend te krijgen, moeten ze
	<emphasis>gemerkt</emphasis> worden als het type
	<literal>Linux</literal> met &man.brandelf.1;:</para>

      <screen>&prompt.root; <userinput>brandelf -t Linux bestand</userinput></screen>

      <para>Als dit gedaan is, ziet de ELF loader het
	<literal>Linux</literal>-merk in het bestand.</para>

      <indexterm>
	<primary>ELF</primary>

	<secondary>merken</secondary>
      </indexterm>

      <para>Als de ELF loader het <literal>Linux</literal>-merk
	tegenkomt, verplaatst de loader een pointer in de
	<literal>proc</literal>-structuur.  Alle systeemaanroepen
	worden met deze pointer ge&iuml;ndexeerd (in een traditioneel
	&unix; systeem is dit de
	<literal>sysent[]</literal>-structuurarray, die de
	systeemaanroepen bevat).  Ook wordt het proces gemerkt voor
	speciale behandeling door de valstrikvector van de
	signaal-trampolinecode samen met nog meer (kleine) aanpassingen
	die door de &linux; kernelmodule worden afgehandeld.</para>

      <para>De &linux; kernelmodule bevat naast andere dingen een lijst
	van <literal>sysent[]</literal>-ingangen waarvan de adressen
	in de kernelmodule staan.</para>

      <para>Als een systeemaanroep door de &linux;-binary wordt
	aangeroepen, verwijdert de valstrikcode de referentie aan de
	functiepointer van de systeemaanroep en geeft die de
	ingangspunten van de systeemaanroep van &linux; en niet van
	&os;.</para>

      <para>Verder <emphasis>reroot</emphasis> de &linux;-modus
	dynamisch lookups.  Dit is wat de optie <option>union</option>
	(<emphasis>niet</emphasis> het <literal>unionfs</literal>
	bestandssysteemtype!) voor het aankoppelen van bestandssystemen
	effectief doet.  Eerst wordt een poging gedaan om het bestand
	in de map
	<filename>/compat/linux/<replaceable>origineel-pad</replaceable></filename>
	op te zoeken en <emphasis>vervolgens</emphasis> alleen als dat
	mislukt, wordt het bestand in
	<filename>/<replaceable>origineel-pad</replaceable></filename>
	opgezocht.  Dit zorgt ervoor dat binairen die andere binairen
	nodig hebben kunnen draaien (zo kan bijvoorbeeld de
	&linux;-gereedschapskist geheel onder &linux; ABI-ondersteuning
	draaien).  Dit betekent ook dat &linux;-binairen &os;-binairen
	kunnen laden en draaien als er geen overeenkomende
	&linux;-binairen zijn en dat er een &man.uname.1;-opdracht in
	de mappenstructuur <filename>/compat/linux</filename> gezet kan
	worden om er zeker van te zijn dat &linux;-binairen niet kunnen
	weten dat ze niet op &linux; draaien.</para>

      <para>Effectief bevindt er zich een &linux;-kernel in de
	&os;-kernel.  De verschillende onderliggende functies die alle
	functies implementeren die de kernel aanbiedt, zijn dezelfde
	tabelingangen voor de systeemaanroepen van &os; als van
	&linux;: bestandssysteembewerkingen, bewerkingen op het
	virtu&euml;le geheugen, signaalaflevering, System V IPC,
	enzovoort.  Het enige verschil is dat &os;-binairen de
	<emphasis>lijm</emphasis> functies voor &os; krijgen en dat de
	&linux;-binairen de <emphasis>lijm</emphasis>-functies voor
	&linux; krijgen (de meeste oudere besturingssystemen hadden
	alleen hun eigen <emphasis>lijm</emphasis>-functies: adressen
	van functies die in een statische globale
	<literal>sysent[]</literal> structuurarray werden opgeslagen,
	in plaats van adressen van functies waarvan dynamisch een
	ge&iuml;nitialiseerde pointer wordt verwijderd in de
	<literal>proc</literal>-structuur van het proces dat de aanroep
	doet).</para>

      <para>Welke is de eigenlijke &os; ABI?  Dat maakt niet uit.
	Eigenlijk is het enige verschil dat (op dit moment; dit kan
	eenvoudig veranderen in een toekomstige uitgave, en dat gebeurt
	waarschijnlijk na deze uitgave) de
	<emphasis>lijm</emphasis>-functies van &os; statisch gelinkt
	zijn in de kernel en dat de <emphasis>lijm</emphasis>-functies
	van &linux; zowel statisch gelinkt kunnen worden als dat ze
	door een kernelmodule worden benaderd.</para>

      <para>Maar is dit nu echt emulatie?  Nee.  Het is een
	ABI-implementatie, geen emulatie.  Er is geen emulator (of
	simulator, om de volgende vraag voor te zijn) bij
	betrokken.</para>

      <para>Dus waarom wordt het dan soms
	<quote>&linux;-emulatie</quote> genoemd?  Om het moeilijk te
	maken om &os; te verkopen!  Serieus, het is zo omdat de
	historische implementatie in een tijd werd gedaan toen er echt
	geen ander woord was om te beschrijven wat er aan de hand was,
	om te zeggen dat &os; &linux;-binairen draaide was niet waar
	als de code niet in de kernel gecompileerd werd of als een
	module geladen werd en er moest een woord zijn voor hetgeen
	geladen werd.  Vandaar <quote>de
	&linux;-emulator</quote>.</para>
    </sect2>
  </sect1>
</chapter>

<!--
     Local Variables:
     mode: sgml
     sgml-declaration: "../chapter.decl"
     sgml-indent-data: t
     sgml-omittag: nil
     sgml-always-quote-attributes: t
     sgml-parent-document: ("../book.sgml" "part" "chapter")
     End:
-->