File: issue29.html

package info (click to toggle)
lg-issue29 2-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,840 kB
  • ctags: 365
  • sloc: java: 758; makefile: 36; sh: 4
file content (8860 lines) | stat: -rw-r--r-- 368,840 bytes parent folder | download | duplicates (2)
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
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> Linux Gazette Index Page </TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#A000A0"
ALINK="#FF0000" >
<center><H2><IMG SRC="../gx/newlogo.jpg" 
ALT="Linux Gazette... making Linux just a little more fun!">
</H2>

<H5>Copyright &copy; 1996-98 Specialized Systems Consultants, Inc.</H5>
</center>

<P> <HR> <P> 
<!--==================================================================-->
<center>
<H1>Welcome to Linux Gazette!<img src="../gx/tm.gif" alt="(tm)"></H1>
</center>
<P> <HR> <P> 
<!--==================================================================-->
<H1>Published by:</H1>
<center>
<H1><A HREF="http://www.ssc.com/lj/">
        <img src="../gx/ljlogo.gif" alt="Linux Journal" border=0></A></H1>
</center>
<P><HR> <P>
<H1>Sponsored by:</H1>
<table>
<tr>
<td><H1><A HREF="http://www.infomagic.com/"><img ALIGN="bottom" HSPACE="70" src=../gx/infologo.gif alt="InfoMagic" border=0></A></H1></td>
<td>
<H1><A HREF="http://www.suse.com/"><img ALIGN="bottom" src=../gx/suse.gif alt="S.u.S.E." border=0></A></H1></td>
<td>
<H1><A HREF="http://www.redhat.com/"><img HSPACE="70" src=../gx/redhat.gif alt="Red Hat" border=0></A></H1></td>
</tr>
<tr>
<td><H1><A HREF="http://www.LinuxMall.com/"><img ALIGN="bottom" HSPACE="70"
src=../gx/linuxmall.gif alt="LinuxMall" border=0></A></H1></td>
<td><H1><A HREF="http://www.linuxresources.com/"><img ALIGN="bottom" 
src=../gx/linux6.gif alt="Linux Resources" border=0></A></H1></td>
<td><H1><A HREF="/cgi-bin/redirect.pl"><img HSPACE="70"
src=../gx/mozilla.gif alt="Mozilla" border=0></A></H1></td>
</tr>
</table>

<P> 
Our sponsors make financial contributions toward the costs of
publishing <I>Linux Gazette</I>. If you would like to become a sponsor
of <I>LG</I>, e-mail us at <A
HREF="mailto:sponsor@ssc.com">sponsor@ssc.com</A>.

<P> 
<I>Linux Gazette</I> is a non-commercial, freely available publication and will
remain that way. Show your support by using the products of our sponsors
and publisher.

<P> <HR> <P> 

<P> <HR> <P>
<!--=================================================================-->
<H1 align="center">Table of Contents <BR>June 1998 Issue #29</H1>

<P> <HR> <P>
<table><tr>
<td rowspan=4>
<UL>
<LI><A HREF="../lg_frontpage.html">The Front Page</A> 
<LI><A HREF="./lg_mail29.html">The MailBag</A> 
<ul>
<li><a HREF="./lg_mail29.html#help">Help Wanted</a>
<li><a HREF="./lg_mail29.html#gen">General Mail</a>
</ul>
<LI><A HREF="./lg_tips29.html">More 2 Cent Tips</A>
<ul>
<li><a HREF="./lg_tips29.html#rosomakho">Linux Kernel 2.1.102 Error Patch</a>
<li><a HREF="./lg_tips29.html#ehliar">Tip for using Windows 95 Button in X</a>
<li><a HREF="./lg_tips29.html#bronson">Re: Usershell on Console</a>
<li><a HREF="./lg_tips29.html#hall">IBM LAN Adaper for Ethernet</a>
<li><a HREF="./lg_tips29.html#ballueder">Easy Access to Removable Media</a>
<li><a HREF="./lg_tips29.html#smith1">Re: bpp 16 question</a>
<li><a HREF="./lg_tips29.html#smith2">Re: Finite Elements Programs</a>
<li><a HREF="./lg_tips29.html#smith3">Re: How to Enable Swapping</a>
<li><a HREF="./lg_tips29.html#smith4">Re: Slackware</a>
<li><a HREF="./lg_tips29.html#mcanulty">Re: about::mozilla</a>
<li><a HREF="./lg_tips29.html#contents">Tips Contents for More Tips!</a>
</ul>
<LI><A HREF="./lg_bytes29.html">News Bytes</A>  
<ul>
<li><a HREF="./lg_bytes29.html#general">News in General</a>
<li><a HREF="./lg_bytes29.html#software">Software Announcements</a>
</ul>
<LI><A HREF="./lg_answer29.html">The Answer Guy</A>, by James T. Dennis
<LI><A HREF="./hamilton.html">Building an Audio CD Player, Part 2</a>, by
Michel Hamilton
<LI><A HREF="./marsden.html">EMACSulation</a>, by Eric Marsden
<LI><A HREF="./prelz.html">The Importance of Adopting an In-House Linux
Expert</a>, by Carlo Prelz
<LI><A HREF="./nelson.html">Mastering Kernel Modules with Caldera</a>, by 
David Nelson
<LI><A HREF="./coldiron.html">Replacing Windows NT Server with Linux</a>, by
Quinn P. Coldiron
<LI><A HREF="./kahn.html">Revisiting VIM</a>, by Andy Kahn
<LI><A HREF="./richardson.html">Sun Joins Linux International</a>, by
Marjorie Richardson
<LI><A HREF="./bryant.html">Tom's 2 Cent Tips</a>, by Tom Bryant
<LI><A HREF="./hughes.html">UniForum 1998</a>, by Phil Hughes
<LI><A HREF="./pate.html">Using rdist for Backups</a>, by John Pate
<LI><A HREF="./lg_backpage29.html">The Back Page</A> 
<ul>
<li><a HREF="./lg_backpage29.html#authors">About This Month's Authors</a>
<li><a HREF="./lg_backpage29.html#notlinux">Not Linux</a>
</UL>
</UL>
</td>
</tr>
<tr>
<td align=center>
<A HREF="lg_answer29.html"> 
<img src="../gx/dennis/answerwiz-255.gif" border=0 alt="">
</a><P> 
<A HREF="lg_answer29.html"><i>The Answer Guy</i></a>  
</td>
</tr><tr>
<td align=center>
<!-- <A HREF="gm.html"> -->
<IMG SRC="../gx/hammel/banner-3.gif" border=0 alt="">
<P><font color="maroon"><I>The Graphics Muse Will Return</I></font> 
<!-- </a> -->
</td>
</tr>
</table> 

<P> <HR><P>

<!--=============================================================-->
<A HREF="./issue29.txt">TWDT 1 (text)</A><BR>
<A HREF="./issue29.html">TWDT 2 (HTML)</A><BR>
are files containing the entire issue: one in text format, one in HTML. 
They are provided 
strictly as a way to save the contents as one file for later printing in
the format of your choice; 
there is no guarantee of working links in the HTML version.
 
<!--=============================================================-->
<P> <HR><P> 
Got any <I>great</I> ideas for improvements?  Send your
<A HREF="mailto:gazette@ssc.com">comments, criticisms, suggestions
and ideas.</A>

<P><hr><p>
This page written and maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com">gazette@ssc.com</A>


<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>  
<HR> 
<center>
<table width="100%" cellpadding=7><tr><td>
<H2><a NAME="mail"><IMG SRC="../gx/mailbox.gif" ALIGN=MIDDLE ALT=" ">
The Mailbag!</a> </H2>
Write the Gazette at <A HREF="mailto:gazette@ssc.com"> gazette@ssc.com</A>
</td><td>
<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_mail29.html#help">Help Wanted -- Article Ideas</a>
<li><a HREF="./lg_mail29.html#gen">General Mail</a>
</ul>
</td></tr></table>
</center>

<a name="help"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="maroon">Help Wanted -- Article Ideas</font></H3></center>

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 13 May 1998 13:39:17 -0700<BR> 
From: Michael Vanecek, <A HREF="mailto:webmaster@mjv.com">
webmaster@mjv.com</A> <BR> 
Subject: <B>Blender</B> 
<P> 
I'd be tickled pink if one of your writers/Linux gurus would take a peek
at the new 3D development package called Blender and write about it.
Info can be found at:
<P> 
http://www.neogeo.nl/blender.html
<P> 
It's still in beta, but appears to be a sharp product and will appeal to
us graphic artists looking for new tools for Linux.
<P> 
Thanks, Mike

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sun, 24 May 1998 16:35:41 -0600<BR> 
From: Phil Reardon, <A HREF="mailto:pcr@pcrt.com">pcr@pcrt.com</A> <BR> 
Subject: <B>Article Ideas</B> 
<P> 
I think a lot of people would be interested in an article on Linux
related posters, which would have good eye appeal and provide a resource
to the community for ordering these collectibles.  Someone would have to
locate all of them first, however.

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: 	Sat, 02 May 1998 15:48:04 -0700<BR> 
From: "Joseph Mugerwa", <A HREF="mailto:joe.jtm@mailcity.com">
joe.jtm@mailcity.com</A> <BR> 
Subject: <B>Sound card with radio on it</B> 
<P>
I am intending to install Red Hat 5.0 to my 486: PC and my question is that I have 
a ISA sound card (SF16-FMI) with radio on it, it's 100% SB compatible,and has a IDE 
connection on it and it's not PnP will it be able to work and in particular 
the radio please help I enjoy listening to radio
<P> 
Joseph

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 04 May 1998 21:08:35 -0700<BR> 
From: slappy, <A HREF="mailto:slappy@pcisys.ne">
slappy@pcisys.ne</A> <BR> 
Subject: <B>Best Linux Motherboard</B> 
<P>
Hi.  I recently bought a Tyan Turbo AT S1571 motherboard to run my Red
Hat Linux www server on.  The keyboard freaks out when I attempt to
install Linux.  No BIOS update is available.  Do you have any
suggestions as to what motherboard/chip set combinations work well with
Linux?  I have searched and found only generic information, I'm looking
for something a bit more specific.  Intel, ABit, Asus, DFI,
SuperMicro???  I'm planning on using a 233MHz MMX Pentium.
<P>
Slappy	(slappy@pcisys.net)

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 06 May 1998 12:49:23 +0800<BR> 
From: Guan Yang, <A HREF="mailto:guan@wk.dk">guan@wk.dk</A> <BR> 
Subject: <B>Permissions problem</B> 
<P>
After I have tried the 'su' command, all permissions for user accounts
seem to be gone (Slackware 3.4). When it try to login with a normal user
account, if says that I don't have permission to execute /bin/bash. I
have checked, and bash is world readable and world executable.

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 13 May 1998 12:46:47 +0200 (MEST)<BR> 
From: Thomas Hotz, <A HREF="mailto:bombur@uni-koblenz.de">
bombur@uni-koblenz.de</A> <BR> 
Subject: <B>Help wanted! - PS/2-Intellimouse</B> 
<P>
I have just bought a Microsoft Intellimouse, because I thought it was a
good choice if you must use Windows and can use Linux.
The Mouse is connected to the PS/2-Mouseport.
Here is my problem: I want to use the wheel-button as the middle button in
X, but in xf86config I only have the choice between IntelliMouse or
PS/2Mouse, there is no combination of both.
PS/2Mouse will enable the mouse, but the wheelbutton is not recognized,
the other way the movements of the mouse are not correctly recognized,
e.g. I cant move the pointer through the middle of the screen. Anybody got a
solution for this?
<P>
Thomas Hotz

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 11 May 1998 18:32:20 +0000 (UTC)<BR> 
From: Christopher Butler, <A HREF="mailto:chrisb@sandy.force9.co.uk">
chrisb@sandy.force9.co.uk</A> <BR> 
Subject: <B>Printer</B> 
<P>
I have here an Epson Stylus COLOR 400 printer, and I was wondering if
I can get one of these beasts to print graphics in Linux (it only does
text atm).
<P>
I've got Aladdin Ghostscript 3.33 (4/10/1995) currently installed, but
setting that up was a mystery to me.
<P>
Pointers to HOWTOs would also be welcomed :-)
<P>
Chris Butler

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 18 May 1998 12:12:16 -0400 (EDT)
From: Randy Shaver, <A HREF="mailto:randy@gconn.net">
randy@gconn.net</A> <BR> 
Subject: <B>BJ-200e</B> 
<P>
I am having a very difficult time setting up my Cannon BJ-200e, has
anyone been able to configure Linux correctly to print from this?
<P>
Randy Shaver

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Fri, 15 May 1998 17:42:00 +0000<BR> 
From: Patrick Leung, <A HREF="mailto:wt.leung@student.unsw.edu.au">
wt.leung@student.unsw.edu.au</A> <BR> 
Subject: <B>Compilation Error with Red Hat 5.0 on Cyrix CPU</B> 
<P>
I'm using a Cyrix 6x86 P150+ Machine with 80MB RAM. Everything when I
compile stuff with the gcc compiler (2.7.2.3) that come with RH5.0, I
get the error message like "cc1 internal error,signal 11". I know this
is a bug with Cyrix CPU but does anyone know how to fix it? Please tell
me.

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 21 May 1998 19:06:55 +0100<BR> 
From: Andrew Crook, <A HREF="mailto:Andrew@andycrook.demon.co.uk">
Andrew@andycrook.demon.co.uk</A> <BR> 
Subject: <B>X and list probs</B> 
<P>
I have noticed a real problem with X eg that the fonts listing in Netscape and
MANY APPS the list goes off the screen and many can not be seen how can i
stop this problem?

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 27 May 1998 11:20:26 +0800<BR> 
From: "Felix", <A HREF="mailto:felix@omen.com.au">felix@omen.com.au</A><BR> 
Subject: <B>definitions</B> 
<P>
    Let me introduce myself, I am Felix. I am _totally_ new to not
just Linux but computers in general. I have had a computer for the last
....two years, and in all that time was restricted to the limitations
Windows puts on me. This is because , like many users, I started with
the program that came with my setup. Windows is _great_ for someone
who knows _nothing_ of computers. It is all point and click
accessible. But like anyone who uses a computer for a while, I have
come to realize that Windows is not the be all and end all of my
possibilities. Now I want more. Since I got on the Net, I have
realized this and found Linux. I am in the process of browsing Linux
for a grounding in the unfamiliar world of Linux. It is
................most enlightening.
<P> 
    One 'problem' I have encountered is strong, complete definitions
of terms. If I post a list of terms I have heard in the new groups and ask
for explanations, I get many replies { the Linux community is
amazingly tolerant of newbies, and help most unselfishly!} but the
common thread running through them is that each explanation is
slightly different to the next. While I realize that some of the
answers I get are subject specific, some definitions seem to vary from
application to application, even from distribution to distribution.
Again, I realize that each distribution may focus on different
capabilities of applications.
<P> 
     What I want to know is this: Is there a book, magazine, net site
or whatever that lists in dictionary form properties and definitions
of Linux?
<P> 
Thank you, Felix
<blockquote> <I> 
(Good books include <I>Linux in a Nutshell</I> from O'Reilly and <I>Linux
for Dummies Quick Reference</I> from IDG. While it is not specifically for
Linux, I find <I>UNIX: The Open System's Dictionary</I> from Resolution
Business press quite useful. --Editor)
</I> </blockquote> 

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 27 May 1998 01:42:02 +0900<BR> 
From: Maximo Ramos, <A HREF="mailto:ramos@nuri.net">ramos@nuri.net</A> <BR> 
Subject: <B>Deception about Linux</B> 
<P>
I wonder why I find so often in many home pages about Linux that it will
run fine in a 386 with 8 MB RAM, JA!
Keep in mind that novice end users (like me) who are trying to escape
from Windows 95 by trying something else, confuse Linux with
the X Window System.
Did you try to run Linux and XFree86 in such a machine? Tell people
the truth!
Is anyone using X Windows in a 14 inch monitor? It's ugly!
Today I paid the bill to buy a 17 inch monitor, ouch!!!!
Again, tell people the truth when you talk about hardware requirements to
run Linux and X.
<P>
Of course, in some home pages they say that if you want to run the X
Window System you need a "little bit" more hardware, but what is
exactly "a little bit"? Come on!
<P>
Why am I writing this? Because I own a 486DX2 with 32MB of RAM, and I
said myself : Hey, if Linux runs fine in a 386 with 8 MB of RAM,
running Linux in my computer will feel like having a Pentium! But that
is not the true. X works good but more slowly than Windows 95,
even the Internet is slower, incredible!
<P>
So, I request one thing, tell the people (end users) on which hardware
Linux will run fast (with X Windows included); in my case, I have to buy
a new computer, at least a Pentium II 233 MHz. I thought MS Windows was the
only OS hungry resource.
<P>
Well, one more thing, any tips to improve the  speed of my Internet
Connection?
<P>
What is the difference between having the PPP support as a module or
included in the kernel? Which is more recommendable?
<P>
Anyone has successful installed ICQ for JAVA? When I download some
libraries, which one should I choose? static or dynamic? How do I know
what is the correspondent to my system?
By the way, It is Red Hat Linux 5.0. My video card is Cirrus Logic
clgd5426 with 1 MB.
<P>
Talking about e-mails, I heard about sendmail and so on, but I use
Netscape for Linux to send and receive e-mails, Which one is
better? Is sendmail only for servers?
<P>
Please, do I have to buy a new computer anyway?
<P>
cheers, Desperado

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 14 May 1998 04:04:14 -0400 (EDT)<BR> 
From: <A HREF="mailto:arunk@m-net.arbornet.org">
arunk@m-net.arbornet.org</A> <BR> 
Subject: <B>Serial line overrun</B> 
<P>
When I'm downloading on one virtual console and doing something else on
another (especially accessing the hard disk) I get the message 
'cua1 1 input overrub(s). Why does this happen? What should I do to stop this?
Please help me. Thanks.

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sun, 31 May 1998 21:28:53 +0100<BR> 
From: Martin Cannell<A HREF="mailto:martin@cannell.prestel.co.uk">
martin@cannell.prestel.co.uk</A> <BR> 
Subject: <B>Linux</B> 
<P> 
Hi, a great magazine.
<P> 
A bit advanced for me though. Do you know where to get an
idea about how to install Linux?
<blockquote> <I> 
(Try the Linux Installation HOWTO by Eric Raymond:
<A HREF="http://www.ssc.com/linux/LDP/HOWTO/Installation-HOWTO.html">
http://www.ssc.com/linux/LDP/HOWTO/Installation-HOWTO.html</A>. In fact you
might want to search around the LDP (Linux Documentation Project) for other
things of interest to newbies. You might also want to check out some of the
earlier issues of <I>Linux Gazette</I> and our semi-regular column
"Clueless at the Prompt" by Mike List. --Editor)
</I> </blockquote> 


<a name="gen"></a>
<P> <hr> <P> 
<!-- =================================================================== -->
<center><H3><font color="maroon">General Mail</font></H3></center>

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 30 Apr 1998 08:03:52 +0000<BR> 
From: Chris Fischer, <A HREF="mailto:protek@brigadoon.com">
protek@brigadoon.com</A> <BR> 
Subject: <B>BusLogic Support for Linux</B> 
<P>
This is just a little FYI for anyone interested in the
web page for Linux BusLogic support.
<P>
http://www.dandelion.com/Linux/BusLogic.html
<P>
Chris

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Fri, 01 May 1998 09:14:06 +0000<BR> 
From: Lars Hamren, <A HREF="mailto:hamren@sdu.se">
hamren@sdu.se</A> <BR> 
Subject: <B>Web Speed</B> 
<P>
Your home page just took me 45 seconds to load, mainly due to the nice
but far too large gifs. I think that the following holds:
<ul>
<li>A lot of Linux users are accessing the gazette via modem.
<li>The typical Linux user is not impressed by a fancy surface,
	  but would rather have fast loading pages.
</ul>
Lars

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sun, 3 May 1998 12:02:54 -0400<BR> 
From: "Tim Gray", <A HREF="mailto:timgray@lambdanet.com">
timgray@lambdanet.com</A> <BR> 
Subject: <B>Article on home networking.</B> 
<P>
There is one part of the home networking article I strongly disagree
with.
<P>
"The software and hardware for networking can be expensive."
<P>
10baseT network cards sell for about $14.00USD that work well with
Linux.. even less if you want the holy grail of a card with actual
jumpers on it!  A hub - 8 port will cost you a whole $60.00USD Buy the
cheapest you can get your hands on... this will be plenty for a home
network.
<P>
Now the software...... it comes with your Linux distribution, and win95
has it built in....  So my network at home...
<P>
4 PC's Win95, 2 servers, 1 router, Full-time Internet connection......
Less than $300.00 total to network it, including a 1000' spool of
category 5 cable and a huge bag of connectors.
and the wall plates were 1.95 each (Cat 3 I don't need 100baseT
capability)  Oh yes, one expensive part.. the connector crimper.... it
cost 29.95USD  one weekend of running wire and a week of fighting with
windows and VOILA!  home network!
<P>
Yes you can get more expensive stuff..... You can spend thousands on a
hub.. or even more on a switch (A glorified hub) especially if you want
that gleaming white box that says Cisco networking on it... but it wont
work any better than the 60 dollar blue thing that has Chinese writing
on it, not in a home environment.  No networking your house is not
expensive, it's dirt cheap!
<P>
BTW, my servers and router are all Linux machines that were built from
"junk" computers that were given to me or found in a corporate garbage
dumpster!
<P>

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 13 May 1998 17:43:04 +0200 (CEST)<BR> 
From: Rob van der Putten, <A HREF="mailto:rob@sput.sput.dsl.nl">
rob@sput.sput.dsl.nl</A> <BR> 
Subject: <B>Modeline for TV</B> 
<P>
Though I have been using Linux for since 1.2.8, I still discover something
new every week or so.
Yesterday I discovered the online version of the <i>Linux Gazette</i> and was
pleasantly surprised to read the following:
<blockquote><font color="navy">
I have shamelessly stolen this from USENET, because I feel this excellent
information should appear within the Linux Gazette. 
I hope the original author don't mind. :-) 
       From: Rob van der Putten
</font></blockquote> 
I don't mind at all. I just wanted to say that I wrote a html page about
it:
http://www.sput.dsl.nl/~rob/tv-x.html
<P>
Regards, Rob

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 13 May 1998 02:05:22 +0800<BR> 
From: "Kevin Ng", <A HREF="mailto:kng@HK.Super.NET">
kng@HK.Super.NET</A> <BR> 
Subject: <B>Swap problem solved! Thanks...</B> 
<P>
Dear Linux fans,<BR> 
I'd like to say thanks to all who have responded and offered help to the
swap problem.
A number of you reminded me that I had to do a mkswap before I can enable
the swap space with swapon.And now my system is running smoothly, with
occasional swap.
Once again thanks to you all. Linux peer support is excellent.
<P> 
Kevin

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Tue, 12 May 1998 00:37:34 -0500<BR> 
From: Todd Myers, <A HREF="mailto:tmyers@autobahn.mb.ca">
tmyers@autobahn.mb.ca</A> <BR> 
Subject: <B>good article</B> 
<P>
  I just read the article "Marketing Linux" by Jim Schweizer and
agree with his points on this subject. Being involved with
microcomputers for the last 12-14 years I've noticed that each
successful platform has at least one 'killer app' that launched
it onto people's desktops...VisiCalc -> AppleII, DTP -> Mac,
Office Suites -> Windows.
<P>
  It appears that Linux has ,at present, 2 killer apps to use
for it's launch point...Apache and Samba. Since Linux is, at
present, better poised in a server role, these 2 apps are
beginning to gain Linux it's recognition. The only thing that
will keep Linux off the desktop is the lack of a standard GUI.
Though this will change as this is dissected and dealt with
with the amazing collaboration efforts that I have witnessed
with other Linux-related issues in the past 12 months.
<P>
	Later, Todd 

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 28 May 1998 18:40:48 +0100 (WET DST)<BR> 
From: 40334022 Dani Pardo Portas, <A HREF="mailto:dp4022@speedy.udg.es">
dp4022@speedy.udg.es</A> <BR> 
Subject: <B>Proprietary formats</B> 
<P> 
  I just can't stop being fascinated with Issue 18, The Answer Guy where 
the editor talks about proprietary formats. Even now, I often think about 
the issue of word processors and proprietary formats (BTW, I've started 
learning lout :).
<P> 
	And now that there is so much interesting talk about philosophy of
 computers and  programming, I'd just like to point everyone interested to 
LG-issue 18:
<P> 
	http://www.linuxgazette.com/issue18/lg_answer18.html (users and 
mounted disks)

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 04 May 1998 14:44:50 -0500<BR> 
From: Clive Bittlestone, <A HREF="mailto:clyvb@asic.sc.ti.com">clyvb@asic.sc.ti.com</A><BR>
Subject: <B>Linux in EDA  - hot news topic</B> 
<P> 
         Just in case you had not already heard,
Linux vs NT is a hot item in my area of the CAE/CAD
industry. Integrated System Design magazine had a 
strawman poll last month, and based on the
overwhelming response,is organizing a 
public forum during DAC-week [a big industry
conference]. 
<P> 
<A HREF="http://www.isdmag.com/linuxvsnt.html">
http://www.isdmag.com/linuxvsnt.html</A> 
<P> 
From what I can tell, NT is being touted as the
next OS on PC's [vs solaris/Ultrix/hp-os etc]
Some engineers don't like that and there is some 
form of pushback.
<P> 
There is quite a buzz amongst the Linux users
I work with. We hope this will encourage CAD-Vendors 
to support Linux !!
<P> 
These are my own opinions, and not 
those of Texas Instruments.
<P> 
Regards, Clive Bittlestone

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sat, 09 May 1998 03:38:17 -0700<BR> 
From: Jim Dennis, <A HREF="mailto:jimd@starshine.org">
jimd@starshine.org</A> <BR> 
Subject: <B>Open Letter Re: Linux on Dell Hardware</B> 
<P>
 To: Mr. Michael Dell, CEO, Dell Computers
 cc: T.R. Reid
 Re: Linux on Dell Hardware
<P>
 Dear Mr. Dell,
<P>
 Please forward this to members of your marketing staff.
<P>
 It is with great disappointment that I read comments by one
 of your representatives, a Mr. T. R. Reid to the effect that 
 "none of Dell's customers" use Linux (*).  
<P>
 This is patently untrue.  I have personally administered a number of
 Linux servers that were running on Dell Dimension desktops.  I have
 also often recommended them to my clients, despite the fact that your
 company offers no option to unbundle software from the system (software
 which is utterly useless for my applications).
<P>
 Obviously my advice was misguided.  I clearly have failed in my
 duty, as a consumer, to provide you with proper feedback --- and this
 as resulted in a gross display of ignorance regarding the needs and 
 preferences of your customers (at least the ones I represent).
<P>
 Forthwith I'm retracting all recommendation of your products from 
 all Starshine's customers where the intent is to use the system 
 under Linux.  I maintain a list of smaller hardware companies
 which do provide Linux, FreeBSD, and other alternatives to meet
 the needs of their customers.  
<P> 
 I'll be recommending VAResearch, PromoX, Telenet, SWT, Apache 
 Systems, Microway, and many others until you offer your customers
 a choice in the software that's bundled with your systems.  I 
 personally consider it a pity since your hardware has never required
 any special tweaks or considerations to run with any distribution 
 of Linux or FreeBSD that I've ever installed on it.
<P>
 This will be posted to a few Linux and FreeBSD venues as an open
 letter so that you can be provided with *honest* feedback from
 real customers.  Hopefully with the co-operation from other
 interested parties we can overcome this regrettable failure in
 communication.  You're comments have underscored the need for
 consumers every where to make their requirements and preferences
 known --- and we must no longer simply accept the "extra" 
 and unwanted components that our vendors foist on us. 
<P>
 It is time to just say "No!" to software that we'll simply be
 replacing.
<P>
 Thank you for your attention to this matter.  My apologies for
 not providing this feedback sooner. 
<P>
 (*) The precise quote was:
<P>
	"I haven't been able to find any examples of customers 
	requesting Linux"
<P>
	... and it can be read at:
<P>
	http://www.zdnet.com/zdnn/content/inwo/0427/310649.html
<P> 
--<BR> 
Jim Dennis, consulting@starshine.org<BR> 
Proprietor, Starshine Technical Services:  http://www.starshine.org/

<P> <hr> <P> 
<!--================================================================-->
<center>Published in <i>Linux Gazette</i> Issue 29, June 1998</center>
<!--====================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG SRC="../gx/indexnew.gif" ALT="[ TABLE OF 
CONTENTS ]"></A>
<A HREF="../index.html"><IMG SRC="../gx/homenew.gif" ALT="[ FRONT 
PAGE ]"></A> 
<A HREF="./lg_tips29.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P>
<h5>This page written and maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com">gazette@ssc.com</A><BR> 
Copyright &copy; 1998 Specialized Systems Consultants, Inc. </H5> 
<P> <HR> <P> 
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <hr> <P> 

<!-- QUICK TIPS SECTION ==================================================  -->
<center>
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.gif">
More 2&#162; Tips!</A></H1> <BR>
Send Linux Tips and Tricks to <A HREF="mailto:gazette@ssc.com">
gazette@ssc.com
</A></center>

<p><hr><p>
<a name="contents"></A>
<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_tips29.html#rosomakho">Linux Kernel 2.1.102 Error Patch</a>
<li><a HREF="./lg_tips29.html#ehliar">Tip for using Windows 95 Button in X</a>
<li><a HREF="./lg_tips29.html#bronson">Re: Usershell on Console</a>
<li><a HREF="./lg_tips29.html#hall">IBM LAN Adaper for Ethernet</a>
<li><a HREF="./lg_tips29.html#ballueder">Easy Access to Removable Media</a>
<li><a HREF="./lg_tips29.html#smith1">Re: bpp 16 question</a>
<li><a HREF="./lg_tips29.html#smith2">Re: Finite Elements Programs</a>
<li><a HREF="./lg_tips29.html#smith3">Re: How to Enable Swapping</a>
<li><a HREF="./lg_tips29.html#smith4">Re: Slackware</a>
<li><a HREF="./lg_tips29.html#mcanulty">Re: about::mozilla</a>
<li><a HREF="./lg_tips29.html#niemann">Re: Rebooting without logging in as
Root</a>
<li><a HREF="./lg_tips29.html#omegaman">Re: Running an ATAPI ZIP Drive</a>
<li><a HREF="./lg_tips29.html#rodrigo">Re: Enabling Swap Space</a>
<li><a HREF="./lg_tips29.html#hammel">Re: Problems using Menus in X</a>
<li><a HREF="./lg_tips29.html#tennent">Music Typesetters</a>
<li><a HREF="./lg_tips29.html#dossey">BASH hostname Completion</a>
<li><a HREF="./lg_tips29.html#mcnamara">Re: xdm and depth</a>
<li><a HREF="./lg_tips29.html#digulla">Re: Shutdown and root</a>
<li><a HREF="./lg_tips29.html#davis">Printing with Linux</a>
<li><a HREF="./lg_tips29.html#gilb1">Re: Finite Elements Programs</a>
<li><a HREF="./lg_tips29.html#gilb2">Re: Hot to Enable Swapping</a>
<li><a HREF="./lg_tips29.html#jacobsen">Cuckoo Clock</a>
</ul>

<P> <hr> <P> 
<!--================================================================-->

<a name="rosomakho"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Linux kernel 2.1.102(3) error - patch!
</H3>
<P> 
Date: Sat, 23 May 1998 16:20:07 +0000<BR> 
From: Yaroslav Rosomakho, <A HREF="mailto:alons55@dialup.ptt.ru">
alons55@dialup.ptt.ru</A> 
<P>
Hello. I have found that make menuconfig and lowlevel sound drivers
won't work in 2.1.102 & 2.1.103 (latest kernels). I have written a patch:<BR> 
http://yaroslav.hypermart.net/linux
<P> 
tell people about it!
<P>
Yaroslav Rosomakho.

<P> <hr> <P> 
<!--================================================================-->

<a name="ehliar"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Tip for using Windows 95 buttons in X
</H3>
<P> 
Date: Wed, 29 Apr 1998 20:18:00 +0200 (MET DST)<BR> 
From: Andreas Ehliar, <A HREF="mailto:tamyrlin@futurniture.se">
tamyrlin@futurniture.se</A> 
<P>
I am sure that I am not the only one using a keyboard with Windows 95
buttons. Most people I know tend to ignore them, since they are not very
useful in Windows 95, and even less so in Linux. But they are supported in
the Linux kernel. That is, they do generate key codes which applications
could use, if they only know what to look for.
<P>
So, how do I get X to use the offending buttons?
In the following example, I will show how I configured X and fvwm2 to
allow me to move a window by pressing the left Windows 95 button, and the
left mouse button anywhere in the window. I can also resize the window by
pressing the left Windows 95 button and the right mousebutton anywhere in
the window. This greatly simplifies things for me, since I don't have to
locate the titlebar, or a border of the window to move it. So, how did I
accomplish this?
First, I created a file named .Xmodmap in my home directory with the
following two lines:
<PRE>
keycode 115 = Hyper_L
add mod4 = Hyper_L
</PRE>
This will map the left Windows 95 button to Hyper_L, and map Hyper_L to
mod4. 
<P>
I added the following line to .xsession to actually load the modified
keymap:
<PRE> 
xmodmap $HOME/.Xmodmap
</PRE> 
Note that .xsession is usually executed if you use xdm to log on. If this
is not the case, you need to find the relevant file on your computer
system. Some likely candidates are .xinitrc, or .Xclients, however, YMMV.
<P>
To actually use mod4 I modified my .fvwm2rc by adding the following lines:
<PRE> 
# I have bound my left win95 button to mod4, and by holding down it
# I can move and resize my window without bothering to find a border or
# titlebar
Mouse 1 W       4       Move
Mouse 3 W       4       Resize
</PRE> 
What these lines does is to specify that if you press the left mouse
button (1) in a window (W) while pressing mod4 (4) you will move the
window. (Move)
If you want to know more about these lines, you should study the fvwm2 man
page.
<P>
So, read in your .Xmodmap, restart fvwm2, and enjoy the added
functionality. Now all that is left is to replace that Windows logo with a
penguin :)
<P>
Final notes:
<P>
* This is only an example, you will probably need to modify some paths to
  suit your system.
<P>
* It is also possible that you already have a button bound to mod4. In
  that case, you should probably think twice before binding another button
  to it.
<P>
* If you don't use fvwm2 as your window manager,you should read the
  documentation that comes with your window manager to figure out how to
  do the above mentioned configuration.
<P>
* If you want to bind the other two window 95 buttons, the scan codes for
  them are 116 respectively 117. This sort of information is by the  way
  available using the xev program.
<P>
Andreas Ehliar

<P> <hr> <P> 
<!--================================================================-->

<a name="bronson"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Help Wanted (usershell on console without logging in) 
</H3>
<P> 
Date: Thu, 30 Apr 1998 09:38:03 -0700<BR> 
From: Rick Bronson, <A HREF="mailto:rick@efn.org">rick@efn.org</A> 
<P>
  I've read, with interest, the good ideas people have submitted about
setting up Linux to be more stand alone.  I've worked on this issue on
and off for some time now and would like to share my ideas.
<P>
  I've often thought that there needs to be a Linux distribution that
has an automatic startup as the default.  One of the reasons that
MSDOS (as bad as it was) was popular was because it wasn't burdened
with "security" items like logging in.  Most of us that use Linux at
home don't need to waist time logging in every day.  If we had a
distribution of Linux that booted up into X we would have a lot more
users.
<P>
  My goals are as follows (all done automatically from power up):
<P>
1. From power up, automatically login.
<P>
2. Bring up X Windows.
<P>
3. If I haven't been connected to my ISP (via PPP) in the last 4 hours
then connect.
<P>
3.1 Start up Netscape, get mail from my ISP (via cron), and check it
every minute.
<P>
3.2 If I haven't read USENET news today then fire up newsreader and
automatically to thru and apply kill files to all articles and leave
newsreader just showing what's left.
<P>
3.3 (I admit, this one is weird) Telnet into my local library and
check to see if I have overdue books.
<P>
  For the purposes of this 2 cent tip, I'm going to cover #1 &
#2. (NOTE: replace every occurrence of "username" with your real login
name).
<P>
1. Add this to the bottom of your /etc/inittab (for Debian), unless
you have an rc.local file
<PRE> 
rc:12345:wait:/etc/init.d/rc.local
</PRE> 
1a (if you don't have an rc.local file) Make an /etc/init.d/rc.local
file with this in it:
<PRE> 
#!/bin/bash
echo "Auto login of user username"
cd /home/username
su - username
</PRE> 
  Set permissions of rc.local to:
<PRE> 
  -rwxr-xr-x   1 root     root           96 Jun 29  1997 rc.local
</PRE> 
  By doing:
<PRE> 
chmod 755 rc.local
</PRE> 
1b (if you have an rc.local file) 
Add this to the bottom of your rc.local
<PRE> 
echo "Auto login of user username"
cd /home/username
su - username
</PRE> 
2. Add the following to the bottom of your ~/.bash_profile:
<PRE> 
if [ "`tty`" = "/dev/console"  -o "`tty`" = "/dev/tty0" ]
then
  startx
fi
</PRE> 
  That's it!  This has been tested under Slackware (a long time ago)
and under Debian, recently.  Please give me any feedback.
<P>
 Thanks, Rick Bronson

<P> <hr> <P> 
<!--================================================================-->

<a name="hall"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
IBM Lan Adapter for Ethernet
</H3>
<P> 
Date: Fri, 01 May 1998 00:23:21 +0000<BR> 
From: Brian Hall, <A HREF="mailto:brihall@pcisys.net">
brihall@pcisys.net</A> 
<P>
I believe this is the same card I have. I have two on my home LAN, one
in my Linux box and the other in a Win95 box. In Linux, use the ne2000
compatible network driver, found under "Other ISA" network cards in the
kernel configuration. To configure the card itself, you will need to run
a DOS program. The setup program is contained in an archive called
"ETILAN.EXE".

<P> <hr> <P> 
<!--================================================================-->

<a name="ballueder"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Easy Access to Removable Media
</H3>
<P> 
Date: Fri,  1 May 1998 10:30:52 +0100 (BST)<BR> 
From: Karsten Ballueder, <A HREF="mailto:karsten@phy.hw.ac.uk">
karsten@phy.hw.ac.uk</A> 
<P> 
Here's a little tip that makes life much easier. I always found it
annoying to manually mount and unmount floppies, CD-ROMs or my ZIP
drive, so eventually I decided to use the amd automounter for that.
<p>
The configuration is somehow tricky, but once it's set up, it works
like a charm.
<p>
For amd to work, you need to create a mountmap <tt>/etc/amd.direct</tt>=
. Mine
looks like this:
<PRE> 
zip type:=3Dprogram;fs:=3D"/.amd/myhost/zip";mount:=3D"/bin/mount mount=
-tvfat -o user,rw,conv=3Dbinary,nosuid,uid=3D502,gid=3D100,umask=3D0000=
,quiet
/dev/sda4 ${fs} ";unmount:=3D"/bin/umount umount ${fs}"
<br>
cdrom type:=3Dprogram;fs:=3D"/.amd/myhost/cdrom";mount:=3D"/bin/mount m=
ount
-tiso9660 -o user,ro,conv=3Dbinary,nosuid,uid=3D502,gid=3D100,umask=3D0=
000
/dev/cdrom ${fs} ";unmount:=3D"/bin/umount umount ${fs}"
<br>
A type:=3Dprogram;fs:=3D"/.amd/myhost/A";mount:=3D"/bin/mount mount -tv=
fat -o user,rw,conv=3Dbinary,nosuid,uid=3D502,gid=3D100,umask=3D0000,qu=
iet /dev/fd0 ${fs} ";unmount:=3D"/bin/umount umount ${fs}"
</PRE> 
Where you will need to replace "myhost" with your machine's
hostname. Like this it will automount the ZIPdrive, a CD-ROM and the
first floppy in a set of directories created under <tt>/.amd</tt> .
<p>
To start amd, you will usually use something like a script
<tt>/sbin/init.d/amd</tt>, which should contain a line like:<br>
<tt>
/usr/sbin/amd -l syslog -c 30 -w 30 -x all -a /.amd -- /tmpmnt /etc/amd=
.direct &=20
</tt>
<p>
This will start amd and give it a 30 second timeout for unmounting
directories. You also need to create a directory called
<tt>/tmpmnt</tt> where you can access the devices. For easy access, I
have create symbolic links <tt>/zip</tt>, <tt>/A</tt> and
<tt>/cdrom</tt> pointing to <tt>/tmpmnt/zip</tt>, <tt>/tmpmnt/A</tt>
and <tt>/tmpmnt/cdrom</tt>.
<p>
Now, when you try to access any of these directories, amd will
automatically mount the device with the options specified in
<tt>/etc/amd.direct</tt>. Once you no longer access it, it will get
unmounted after 30 seconds.
<p>
Oh, if it doesn't unmount your device, you can use the<tt>fuser
/dir</tt> command to check which of your processes uses it.
<P>
 Karsten Ballueder

<P> <hr> <P> 
<!--================================================================-->

<a name="smith1"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: bpp 16 Question
</H3>
<P> 
Date: Sun, 3 May 1998 14:07:55 +0200 (MET DST)<BR> 
From: Roland Smith, <A HREF="mailto:rsmit06@ibm.net">
rsmit06@ibm.net</A> 
<P>
To: Denny@ele.kth.se<BR> 
You asked in the Linux Gazette #28:
<blockquote> <font color="navy">
Hi, I'm tired of starting my X-session with 'startx -- -bpp 16' to get 
16 biplanes instead of the default 8.
How do I get xdm to run with 16 bpp? If I use it now, 
it starts X with 8bpp on my Red Hat 5 installation. 
</font></blockquote> 
Assuming you're using the XFree86 server:
<P>
Edit your XF86Config file.
<ul>
<li>Look for the "Screen" section, then the subsections marked "Display"
  (you can have more then one).
<li>Make sure the display subsection which has a depth of 16 is listed
  first.
</ul>
Hope this helps.
<P>
Roland

<P> <hr> <P> 
<!--================================================================-->

<a name="smith2"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: finite elements programs for Linux
</H3>
<P> 
Date: Sun, 3 May 1998 14:07:55 +0200 (MET DST)<BR> 
From: Roland Smith, <A HREF="mailto:rsmit06@ibm.net">
rsmit06@ibm.net</A> 
<P>
To: berntsen@bkm.dtu.dk<BR> 
In response to your query in the Linux Gazette #28:
<blockquote> <font color="navy">
I started talking to the ones buying it and my arguments stopped, 
when they said that one reason for using NT was that they should 
be running finite elements programs on them and that the frontier 
for those programs was now on the Windows platform. 
I don't know anything about that, so I am looking for info; should I
accept their arguments or is it that he just does not know what 
can be gotten for Linux? Commercial Finite
Element Method (FEM) programs are also in the searchlight! 
</font></blockquote> 
FEM has traditionally a UNIX domain. Most FE programs run on commercial
unices. I only know of one free program for Linux: felt.
You can find it at http://www-cse.ucsd.edu/users/atkinson/FElt/felt.html
<P>
Hope this helps.
<P>
Roland

<P> <hr> <P> 
<!--================================================================-->

<a name="smith3"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: How to enable swapping
</H3>
<P> 
Date: Sun, 3 May 1998 13:51:21 +0200 (MET DST)<BR> 
From: Roland Smith, <A HREF="mailto:rsmit06@ibm.net">
rsmit06@ibm.net</A> 
<P>
To: kng@HK.Super.NET<BR> 
In the Linux Gazette you wrote:
<blockquote> <font color="navy">
My machine, which is a Pentium Pro with 64MB memory, reports no swap space 
being used. In procinfo, it always report 0K swap space. 
I did a fdisk on /dev/hda and verified that a 64MB partition 
of type Linux swap (83) is actually there. 
So why is the swap never being used ? 
</font></blockquote> 
Swapping needs to be started. This can be done with the `swapon'
command.
<P>
Normally there should be something like `/sbin/swapon -a' in the system
initialization scripts. On my Slackware system it is in /etc/rc.d/rc.S.
<P>
For this to work, you need to define the swap partition in /etc/fstab.
Something like (on my box):
<PRE> 
/dev/hda7    swap         swap    defaults   1   2
</PRE> 
Hope this helps.
<P>
Regards, Roland

Re: cd rom
<P> <hr> <P> 
<!--================================================================-->

<a name="smith4"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Slackware
</H3>
<P> 
Date: Sun, 3 May 1998 14:30:59 +0200 (MET DST)<BR> 
From: Roland Smith, <A HREF="mailto:rsmit06@ibm.net">
rsmit06@ibm.net</A> <BR> 
To: letromb@tin.it
<P>
In the Linux Gazette #28 you asked:
<blockquote> <font color="navy">
Hello.I have the Linux Slackware 2.0.30 Walnut Creek.I
installed it on a Pentium 200 MMX with a 24x CD-ROM.
During the installation I had to write "ramdisk hdd=cdrom" for
reading the CD-ROM, but after the installation Linux doesn't
see the CD-ROM. I have an atapi CD-ROM, and when I tried
to compile my kernel another time, I saw that atapi is the
default !!! So I don't understand where is the problem . What
can I do ?
</font> </blockquote> 
To use your CD-ROM, you must "mount" it, i.e. add it to your
file-system.
<P>
You will have to make sure that the iso9660 filesystem is supported in
the kernel.
<P>
Mounting is most conveniently done by first adding an entry into your
/etc/fstab file like this:
<PRE> 
/dev/hdb     /mnt/cdrom   iso9660 ro,user,noauto,unhide 1 2
</PRE> 
(Assuming your CD-ROM player is /dev/hdb)
Create the directory /mnt/cdrom before mounting the CD!
Put a CD-ROM in the drive and issue the command `mount /mnt/cdrom' to
mount the CD.
<P>
You will have to unmount the CD (`umount /mnt/cdrom') before you can
open the drive!
<P>
Hope this helps.
<P>
Roland

<P> <hr> <P> 
<!--================================================================-->

<a name="mcanulty"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
May 2Cent Tips--about:mozilla
</H3>
<P> 
Date: Wed, 6 May 1998 10:28:44 -0700 (PDT)<BR> 
From: David Mc Anulty, <A HREF="mailto:davemc@connectnet.com">
davemc@connectnet.com</A> 
<P>
The tip of going to about:mozilla is incorrect. You do not have to click
on Netscape's logo to get the new animation. The act of visiting
about:mozilla does this. 
<P>
It lasts until Netscape is restarted. So if you like him, set
about:mozilla as your home page.
<P>
Dave 

<P> <hr> <P> 
<!--================================================================-->

<a name="niemann"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Rebooting without logging in as root, 2c tips
</H3>
<P> 
Date: Wed, 06 May 1998 09:25:13 +0200<BR> 
From: Hartmut Niemann, <A
HREF="mailto:niemann@cip.e-technik.uni-erlangen.de">
niemann@cip.e-technik.uni-erlangen.de</A> 
<blockquote> <font color="navy">
An alternative I used once on a system that did *not* have
<ctrl-alt-del> enabled was to provide a special login that
*just* did a shutdown. There is such a line in my /etc/passwd 
now that I didn't put there, so I guess it's from Red Hat
two years ago. 
</font></blockquote> 
I had this shutdown login too. Normally it needs rood rights,
i.e. UID 0. But then I found out that 
   su shutdown
does not execute the login shell, i.e. the shutdown script.
So everybody can become 'shutdown', which is basically 'root'
with a different startup shell. Bad if this 'shell' doesn't get
executed ...
<P>
For some time I have had 'shutdown' just SUID root, and now I'm
back to Ctrl-Alt-Del performing a shutdown -h. (And then press
Ctrl-Alt-Del again for a reboot.)
<P>
Hartmut.

<P> <hr> <P> 
<!--================================================================-->

<a name="omegaman"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Running an ATAPI ZIP drive
</H3>
<P> 
Date: 05 May 1998 20:26:26 -0500<BR> 
From: Omegaman, <A HREF="mailto:omegam@cmq.com">omegam@cmq.com</A> 
<P>
Steve Beach gives some interesting remarks and good advice for setting
up an ATAPI ZIP drive.  In it he says: First, the kernel:
<blockquote> <font="navy">
Do _not_ use the "IDE FLOPPY" option (officially the name is
CONFIG_BLK_DEV_IDEFLOPPY ). This will work perfectly for reading and
writing, but it will not work for ejecting.
</font></blockquote>
I recently bought a system with one of these units PRE-installed.  I
purchased a copy of Debian 1.3.1 on CD and was surprised to find "IDE
Floppy" support compiled into the stock kernel.  So, like Steve, I
added necessary entries to my /etc/fstab to mount my ZIPs and away I
went.
<P>
However, I do not have the problem he's had with ejecting my ZIP
disks.  On the front of my drive is a status light that also functions
as the eject button.  It works fine.  I surmise that Steve's problem
is that he has no such button and requires a software-only eject
method.
<P>
One note of warning: I once ejected a standard floppy by pressing the
drive's eject button when it was mounted causing a system panic and
forced reboot.  I don't know if the eject button on the ZIP is
disabled in the same way as the eject button on a CDROM when it is
mounted.  I have no intention of finding out.
<P>
Omegaman

<P> <hr> <P> 
<!--================================================================-->

<a name="rodrigo"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: enabling swap space
</H3>
<P> 
Date: Tue, 05 May 1998 04:44:22 -0300<BR> 
From: Diego Rodrigo, <A HREF="mailto:d.rodrigo@iname.com">
d.rodrigo@iname.com</A> 
<P>
On issue # 28,  Kevin Ng wrote :
<blockquote> <font="navy">
My machine, which is a Pentium Pro with 64MB memory, reports no swap space being used.
n procinfo, it always report 0K swap space. 
I did a fdisk on /dev/hda and verified that a 64MB partition of type Linux swap (83) is
actually there. 
So why is the swap never being used ? 
</font></blockquote>
Tagging a partition with type 83 (Linux swap) is not enough. You kave to
prepare it for swap with mkswap (see manual page) . Type:
<PRE> 
        mkswap /dev/hdxx
</PRE> 
where hdxx is your swap partition.
After that, you have to append a line in /etc/fstab saying this:
<PRE> 
        /dev/hdxx       none            swap
</PRE> 
where /dev/hdxx is your swap partition, none is the mount point, and
swap is the type of file system.
<P>
With these changes, the next time you reboot, your swap space will be
added to your system.
The command that actually adds your swap space to the system is swapon
(see man page, section 8), which is called from an init script at boot
time.
OK, I agree, Linux shouldn't be rebooted, (only when recompiling the
kernel), so you can just type:
<PRE> 
        swapon -a
</PRE> 
and you'll have your swap space.
<P>
	Diego Rodrigo - ARGENTINA

<P> <hr> <P> 
<!--================================================================-->

<a name="hammel"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: problems using menus in X
</H3>
<P> 
Date: Thu, 7 May 1998 11:45:01 -0500 (CDT)
From: Michael Hammel, <A HREF="mailto:mjhammel@graphics-muse.org">
mjhammel@graphics-muse.org</A> 
<P>
To: eijck@iri.tudelft.nl<BR> 
<blockquote> <font="navy">
I'm having a problem with my menus in X. I can access all menus (by mouse),
but the items of those menus which are WITHIN a "X-box" are not selectable,
somehow.
The menus I'm talking about are menus like the 'vt fonts', 'main options'
and 'vt options' in the Xterm. Or the 'file' and 'page' menu of
Ghostscript. 
If anyone has a suggestion on why I can select the menu but not menu item,
please send me a mail. I'm using Debian 1.3. 
</font></blockquote>
Check your NumLock key.  It should probably be turned off for applications
written in strict Xlib or Athena widgets, which appears to be the case with
the applications you mention.  Its not a strict rule, but many people had
problems with my XPostitPlus program, caused by the use of the number keypad 
with applications like XCalc.
<P>
Michael J. Hammel, The Graphics Muse

<P> <hr> <P> 
<!--================================================================-->

<a name="tennent"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Music Typesetters
</H3>
<P> 
Date: Tue, 12 May 1998 12:13:50 -0400 (EDT)<BR> 
From: Robert Tennent, <A HREF="mailto:rdt@qucis.queensu.ca">
rdt@qucis.queensu.ca</A> 
<P>
Although I appreciated Bob van der Poel's review of MUP in LG28,
there are some good free music notation systems that weren't even
mentioned.  First, a very good site to check out is the Lilypond
home page at
<P>
http://www.cs.ruu.nl/people/hanwen/lilypond/out-www/index.html
<P>
This describes Lilypond (which is still under development) but 
also has links to many other music packages.  
<P>
One of these, musixtex, is IMHO the best free system
available.  It certainly isn't beta, but it is being extended
and improved constantly.  The input language is plain TeX,
but there are some good pre-processors available (PMX, MPP, M-Tx, SceX,
ABC2MTeX).  The output quality is professional.  Several arrangements 
I've set using musixtex have been published directly from my postscript 
files.  Check out
<P>
http://www.gmd.de/Misc/Music
<P>
for links, downloads, documentation, examples, etc.
<P>
Bob Tennent

<P> <hr> <P> 
<!--================================================================-->

<a name="dossey"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
BASH hostname completion: comment on tip in May '98 issue
</H3>
<P> 
Date: Tue, 12 May 1998 08:58:18 -0500<BR> 
From: Justin Dossey, <A HREF="mailto:dossey@ou.edu">
dossey@ou.edu</A> 
<P>
The script John Taylor sent had a nice idea to it, but I must admit I didn't
read it; Bash completes host names by a builtin function. 
<P>
Just as you would use <tab> to complete a filename, you can use ESC, @ to
complete a hostname (if it is in /etc/hosts) and CTRL-X, @ to list all possible
hostname completions based on /etc/hosts. 

<P> <hr> <P> 
<!--================================================================-->

<a name="mcnamara"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: xdm and depth
</H3>
<P> 
Date: Tue, 12 May 1998 11:32:26 +0100 (IST) <BR> 
From: Caolan McNamara, <A HREF="mailto:Caolan.McNamara@ul.ie">
Caolan.McNamara@ul.ie</A> 
<blockquote> <font="navy">
From: Denny berg, Denny@ele.kth.se <BR> 
Hi, I'm tired of starting my X-session with 'startx -- -bpp 16' to get 16 
biplanes instead of the default 8. How do I get
xdm to run with 16 bpp? If I use it now, it starts X with 8bpp on my Red Hat 5 
installation. 
</font></blockquote>
under redhat in the file 
/etc/X11/xdm/Xservers
<P>
there's a line 
<PRE> 
:0 local /usr/X11R6/bin/X
</PRE> 
change this to 
<PRE> 
:0 local /usr/X11R6/bin/X -bpp 16D
</PRE> 
and ta-da, thats it.
<P>
Caolan McNamara

<P> <hr> <P> 
<!--================================================================-->

<a name="digulla"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Shutdown and Root
</H3>
<P> 
Date: Mon, 11 May 1998 13:42:44 +0200<BR> 
From: Aaron Digulla, <A HREF="mailto:digulla@wi-pc44.fh-konstanz.de">
digulla@wi-pc44.fh-konstanz.de</A> 
<P>
Another note to the 2cents Tip "Re: Shutdown and Root":
<P>
I have a shutdown user, too, and this is what he looks like:
<P>
In /etc/passwd:
<PRE> 
    shutdown:x:6:0:shutdown:/home/shutdown:/bin/sh
</PRE> 
You'll probably have to adjust the user-id (here: 6).
<P>
Then you create a home-dir which just contains this script as
.profile:
<PRE> 
------------------------ .profile ---------------------------------------
#!/bin/sh
trap "" SIGKILL SIGINT SIGQUIT

PATH=/bin

# List all users which are still logged on
/usr/bin/finger

echo
echo "Really shut down (y/N) ?"

read answer

# Every answer except "y" is no
if [ "x$answer" != xy ]; then
	answer=n
fi

if [ $answer = y ]; then
	echo 'The system will now shut down. You can turn the power'
	echo 'off when the message "System halted" appears'
	/bin/sleep 5
	./halt
else
	echo 'Abgebrochen...'
	/bin/sleep 1
fi
------------------------ .profile ---------------------------------------
</PRE> 
Now just copy /sbin/halt to /home/shutdown/ and make it executable
for this user (chown shutdown halt and chmod 700 halt).
<P>
Aaron "Optimizer" Digulla 

<P> <hr> <P> 
<!--================================================================-->

<a name="davis"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Printing with Linux 
</H3>
<P> 
Date: Sat, 09 May 1998 18:50:06 +1000<BR> 
From: Mitch Davis, <A HREF="mailto:mjd@alphalink.com.au">
mjd@alphalink.com.au</A> 
To: AFAIZ@cstp.umkc.edu
<blockquote> <font="navy">
I've just bought a HP DeskJet 722C printer, but I couldn't get it
to work. I asked around and everyone has answered that Linux
does not support it - is it a Windows-only printer? 
If so, is it possible to write a driver for it? or does anyone know
of where I can get my hands on the driver (if it's already been
written, of course).
</font></blockquote>
In an effort to reduce the production cost of their low-end printers,
HP has removed as much of the electronics from the printer as possible,
and put the burden of turning commands into dots on the printer driver
in the computer.  Somewhat euphuistically, this is called the Printing
Performance Architecture, a kind of less-is-more concept which I'm
sure is big in the HP marketing Dept.
<P>
All is not lost however.  There's a guy who reverse-engineered the
protocol, and has written a driver.  You can find his page here:
<P>
http://www.rpi.edu/~normat/technical/ppa/
<P>
(I have not tried it, nor have I corresponded with him).
<P>
I hope this helps you.
<P>
Mitch.<BR> 
(I don't work for HP.  Well Ok, I do, but further away from the
bit that makes printers than you'd ever believe.  I speak as an
outsider)

<P> <hr> <P> 
<!--================================================================-->

<a name="gilb1"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
RE: finite elements programs for Linux
</H3>
<P> 
Date: Fri, 22 May 1998 09:39:29 -0700<BR> 
From: "James Gilb (p27451)", <A HREF="mailto:p27451@email.sps.mot.com">
p27451@email.sps.mot.com</A> <BR> 
To: berntsen@bkm.dtu.dk
<blockquote> <font="navy">
At the department where I am sitting they are planning to buy a PC-bar, and they intend to put NT on the machines.
I would benefit from them putting Linux on them, since I could then use
them for simulations overnight. ...
I don't know anything about that, so I am looking for info; should I accept their arguments or is it
that he just does not know what can be gotten for Linux? Commercial Finite Element Method (FEM) programs are
also in the searchlight!
</font></blockquote>
There a some really neat FEM codes out there that are free or
semi-free.  Check out the Scientific Applications for Linux (SAL) page,
sponsored by Kachina Tech at
http:// SAL.KachinaTech.COM/
<P>
Next, go to the INTERNET   FINITE   ELEMENT   RESOURCES page at:
<P>
http://www.engr.usask.ca/~macphed/finite/fe_resources/
<P>
and check out the section on Public Domain FE Programs (I think FElt is
way cool).  Also, there may be some commercial vendors that support
Linux as well, you should probably ask your vendors.  I found Northwest
Numerics and Modeling on the above page which sells a product called
Zebulon on Linux.  Also, some related software is also available on
Linux, e.g. PV-WAVE (graphics), MATLAB, Mathematica, Maple.
<P>
Finally, do a search of Linux and FEM software on your favorite search
engine.  (linux + FEM + software gave me 1085 hits on www.hotbot.com).
<P>
As a postscript, the future of FEM doesn't depend on the OS it is used
on.  The real work is done in numerical code that never touches the OS,
indeed an OS call in the middle of the deepest loops would cause a
severe slowdown of the program.  Some of the interfaces that you use for
input, pre-processing and post-processing may be moving to NT, but there
are still substantial packages available on the big iron.  In any event,
the current IA32 line from Intel is not a leader in double-precision
floating point work, the current crop of workstations will blow it away
in most floating point benchmarks.  This is improving with the emphasis
on multi-media, but the new chips will be very expensive within the near
term (USD $2000-$4000 until at least 2000).
<P>
If you have any more questions, please email me.
<P>
James Gilb, p27451@email.mot.com

<P> <hr> <P> 
<!--================================================================-->

<a name="gilb2"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
RE: How to enable swapping
</H3>
<P> 
Date: Thu, 21 May 1998 15:49:17 -0700<BR> 
From: "James Gilb (p27451)", <A HREF="mailto:p27451@email.sps.mot.com">
p27451@email.sps.mot.com</A> <BR> 
To: kng@HK.Super.NET, gazette@ssc.com
<blockquote> <font="navy">
My machine, which is a Pentium Pro with 64MB memory, reports no swap
space being
used. In procinfo, it always
report 0K swap space.
I did a fdisk on /dev/hda and verified that a 64MB partition of type
Linux swap (83)
is actually there.
So why is the swap never being used ?
</font></blockquote>
First, make sure the partition has been turned into a swap partition by
doing an mkswap on it.  Then just do swapon /dev/hda? where ? is the
partition number of the swap partition.  Now, if you put an entry for the
swap partition in /etc/fstab and run swapon -a in your boot scripts
(pretty early on), then swap will be automagically enabled whenever you
boot.
<P>
James Gilb

<P> <hr> <P> 
<!--================================================================-->

<a name="jacobsen"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Cuckoo Clock 
</H3>
<P> 
Date: Sun, 24 May 1998 23:48:02 +0200<BR> 
From: Jjacobsen, <A HREF="mailto:jacobsen@biosys.net">
jacobsen@biosys.net</A> 
<P> 
My wife's grandpa has a pretty switzer-cuckoo-clock (kuckucksuhr..).
Well, I love to hear the little bird singing every hour.
That's why I wrote this little script...
<PRE> 
#!/bin/sh
#cockoo.sh
time=`date +%I`
count=0
until [ "$count" -eq "$time" ]
  do
   play /usr/share/sounds/au/cuckoo.au
   count=$[$count+1]
  done
</PRE> 
Then, I edited the crontab file using <tt>crontab -e</tt>:
<PRE> 
00 * * * * /bin/cuckoo.sh
</PRE> 
and well, it's really funny... Using my script and cron, your Linux box
will become a great switzer-kuckucks-uhr ;)
<P> 
Joerg Jacobsen, Schweinfurt, Germany


<P> <hr> <P> 
<!--================================================================-->
<center>Published in <I>Linux Gazette</I> Issue 29, June 1998</center>
<P> <hr> <P> 
<!--================================================================-->
<A HREF="./lg_toc29.html"><IMG SRC="../gx/indexnew.gif" ALT="[ TABLE OF 
CONTENTS ]"></A> <A HREF="../index.html"><IMG SRC="../gx/homenew.gif" 
ALT="[ FRONT PAGE ]"></A> <A HREF="./lg_mail29.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<A HREF="./lg_bytes29.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>

<P> <hr> <P>
<h5>This page maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com">gazette@ssc.com</A><BR> 
Copyright &copy; 1998 Specialized Systems Consultants, Inc. </H5> 
<P> 
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<HR>
<center>
<table cellpadding=7><tr><td>
<IMG SRC="../gx/bytes.gif" border=1  ALT="News Bytes">
</td><td>
<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_bytes29.html#general">News in General</a>
<li><a HREF="./lg_bytes29.html#software">Software Announcements</a>
</ul>
</td></tr></table>
</center>

<a name="general"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="green">News in General</font></H3></center>

<P> <hr> <P> 
<!-- =================================================================== -->

<center><IMG ALT=" "   SRC="./gx/cover51.jpg"></center>
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
June <I>Linux Journal</I>
</H3>
<P> 
The July issue of <A HREF="http://www.linuxjournal.com/"><I>Linux
Journal</I></A> will be hitting the newsstands June 5.
The focus of this issue is Science and Engineering with
articles on using Linux at CERN, the NIST Neutron Lab and the British
Antarctic Society. Also, an introduction to Samba and a look at two 
programming languages: Yorick and ICON. Check out the
<A HREF="http://www.linuxjournal.com/issue51/index.html">Table of Contents</A>.
To subscribe to <I>Linux Journal</I>, click <A
HREF="http://www.linuxjournal.com/ljsubsorder.html">here</A>.


<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Corel & Open Source
</H3> 
<P> 
Corel and Corel Computer Corporation have announced their official 
position on Linux and Open Source Software. At the Ottawa 
Carleton Linux Users Group meeting, Corel announced that they will port 
all of their commercial applications to Linux, including a $99 version 
of Corel Word Perfect Suite 8. Corel Computer will open the source code 
for the development of their NetWinder NC. 
<P> 
For more information: <BR> 
<A HREF="http://www.corelcomputer.com/">http://www.corelcomputer.com/</A>
<BR> 
<A HREF="http://www.corel.com/">http://www.corel.com/</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Linus Torvalds & Richard Stallman at the USENIX Conference, June 1998
</H3> 
<P> 
Date: Thu, 7 May 1998 10:53:17 -0700 (PDT)<BR> 
Linus Torvalds, developer of Linux, and Richard Stallman, founder of the
GNU project, will participate in the USENIX Annual Technical Conference,
June 15-19, 1998, at the Marriott Hotel in New Orleans.
<P> 
This year the conference includes a special track showcasing the latest
developments and interesting applications in FreeBSD, GNU, Linux, NetBSD,
OpenBSD, Samba, and more.  FREENIX offers 28 talks, plus evening BoF
sessions.  Share ideas and actual code with developers and avid users of
freely redistributable software.
<P> 
Full program and on-line registration:<BR> 
<A
HREF="http://www.usenix.org/events/no98/">http://www.usenix.org/events/no98/</A> 
<P> 
For more information:
Jackson Dodd, <A HREF="mailto:jackson@usenix.ORG">jackson@usenix.ORG</A><BR> 
USENIX, the Advanced Computing Systems Association

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
O'Reilly's Perl Conference 2.0
</H3> 
<P> 
Date: Fri, 22 May 1998 09:47:48 -0700 (PDT)<BR> 
O'Reilly & Associates is presenting the Perl Conference
2.0 from August 17-20, 1998 at The Fairmont Hotel in San Jose,
California. Perl Conference 2.0 features two days of intensive tutorial
sessions followed by a two-day conference led by key Perl developers.
Full program and registration information is at:
<P> 
<A HREF="http://conference.perl.com/">http://conference.perl.com</A> 
<P> 
For more information: <BR> 
Ellen Elias, <A HREF="mailto:elias@ora.com">elias@ora.com</A> <BR> 
O'Reilly & Associates

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Linux Penguins Stickers
</H3> 
<P> 
Date: Sat, 23 May 1998 01:06:25 +0300 (EEST)<BR> 
Linux Penguin Sticker Movement announces printed Linux Penguin Stickers
<P> 
In cooperation with the Linux Penguin Sticker movement
<A HREF="http://www.jyu.fi/~juhtolv/linux-sticker/">
http://www.jyu.fi/~juhtolv/linux-sticker/</A> 
Linux Mall has agreed to make available professionally designed and
printed Penguin Stickers for all who do not wish to print their own.
<P> 
For more information:<BR> 
<A
HREF="http://www.LinuxMall.com/PP.html">http://www.LinuxMall.com/PP.html</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Announcement and Call for Papers, 7th International Python Conference
</H3> 
<P> 
Date: Thu, 28 May 1998 18:29:07 -0400 (EDT)<BR> 
<P> 
7th International Python Conference<BR> 
South Shore Harbour Resort<BR> 
Houston, Texas <BR> 
November 10-13, 1998<BR> 
<P> 
For more information, visit the conference Web page at:
<P> 
<A HREF="http://www.foretec.com/python/workshops/1998-11/">
http://www.foretec.com/python/workshops/1998-11/</A> 
<PRE> 
IMPORTANT DATES:
June 29: email intent to submit paper 
July 27: deadline for papers and tutorials 
Aug. 31: notification of acceptance for papers 
Sep. 28: deadline for final versions of full papers 
</PRE> 
<P> 
For more information about submitting a tutorial:
<A HREF="http://www.foretec.com/python/workshops/1998-11/cft.html">
http://www.foretec.com/python/workshops/1998-11/cft.html</A> 
<P> 
Jeremy Hylton, CNRI, <A
HREF="mailto:jeremy@cnri.reston.va.us">jeremy@cnri.reston.va.us</A><BR> 
Program Chair, 7th International Python Conference

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Linux Links
</H3> 
<P> 
Project MUSCLE:
<A HREF="http://www.linuxnet.com/smartcard/index.html">
http://www.linuxnet.com/smartcard/index.html</A> 
<P> 
"Introduction to Linux" class:
<A HREF="http://www.learningtree.com/us/courses/330.htm#top">
http://www.learningtree.com/us/courses/330.htm#top</A> 
<P> 
Linux Applications: <A HREF="http://www.linuxapps.com/">
http://www.linuxapps.com/</A> 
<P> 
Linux Advocacy: <A HREF="http://www.netnomics.com/linux/">
http://www.netnomics.com/linux/</A> 
<P> 
New Linux Help Page: <A HREF="http://www.admin.burned.org/">
http://www.admin.burned.org/</A> 
<P> 
Linux Links: <A HREF="http://www.linuxlinks.com/"> 
http://www.linuxlinks.com/</A> 
<P> 
The Linux PenguinPlay Project:
<A
HREF="http://sunsite.auc.dk/penguinplay/">http://sunsite.auc.dk/penguinplay/</A>
<P>
ECLiPt Project:
<A HREF="http://eclipt.uni-klu.ac.at/">http://eclipt.uni-klu.ac.at/</A> 
<P> 
Linux Discussion Board:
<A HREF="http://paradigm.uor.edu/linux/wishlist/bulletinboard.html">
http://paradigm.uor.edu/linux/wishlist/bulletinboard.html</A> 
<P> 
Free Linux Support:
<A HREF="http://support.marko.net/">http://support.marko.net/</A> 
<P> 
Current ports of Linux OS:
<A HREF="http://www.ctv.es/USERS/xose/linux/linux_ports.html">
http://www.ctv.es/USERS/xose/linux/linux_ports.html</A> 
<P> 
Linux Books:
<A HREF="http://www.technologybooks.com/linux.htm">
http://www.technologybooks.com/linux.htm</A> 
<P> 
Linux on-line bookstore:
<A HREF="http://www.dragonfire.net/~garym/linux.html">
http://www.dragonfire.net/~garym/linux.html</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Project Independence: Linux for the Masses
</H3> 
<P>
Date: Tue, 12 May 1998 08:16:43 GMT
<P>
A system accessible only to a minority will remain a minority OS.
 Project Independence believes that this is not an acceptable fate for Linux.
Project Independence aims to make Linux accessible to people with
little computing experience.
<P>
A Call For Action:
<PRE> 
*	If you want to make Linux usable 
*	If you favour a pragmatic approach 
*	If you believe in the bazaar model 
*	If you are unhappy when you are unable to recommend Linux to
	friends and relatives, 
*	If you want to act upon it
</PRE> 
	Go straight to:
<A
HREF="http://independence.dunadan.com/">http://independence.dunadan.com/</A> 
<P>
For more information: <BR> 
Jean Francois Martinez, <A HREF="mailto:jfm2@club-internet.fr">
jfm2@club-internet.fr</A> 

Linux Application Development Book
Date: Tue, 12 May 1998 08:27:42 GMT
<P>
New book available from <A HREF="http://linuxcentral.com">Linux Central</A>:
<I>Linux Application Development</I> By Michael K. Johnson and Erik W.
Troan from Addison Wesley Publishing.
<P>
   Linux Application Development helps C programmers write applications
   that run on Linux.
<P> 
For more information:<BR> 
<A HREF="mailto:sales@linuxcentral.com">sales@linuxcentral.com</A>


<a name="software"></a>
<P> <hr> <P> 
<!-- =================================================================== -->
<center><H3><font color="green">Software Announcements</font></H3></center>

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Stalker Software Announces CommuniGate Pro Server 2.0 Beta
</H3>
<P> 
Date: May 15th, 1998<BR>
CommuniGate Pro 2.0 beta is the platform-independent Internet messaging server.
The new generation of the CommuniGate integrated messaging system
unifies the performance of multi-threaded operating systems, the
standards-compliance of the Internet applications, and
flexibility of the modular CommuniGate System, initially designed for MacOS.
<P> 
The new version of the CommuniGate Pro is based on the Stalker Foundation
framework and can run under all major operating systems. The first released
versions can run on the Linux operating system among others.
<P> 
The CommuniGate Pro server can be configured, controlled, and monitored from
any computer connected to the Internet using any Web browser application.
The administrators can monitor the Server status, create, update
and modify user accounts, delete and redirect messages in the queues,
update the communication modules settings, and configure the full-featured
CommuniGate Router.
<P> 
SMTP component of the CommuniGate Pro server incorporates all the anti-
spamming features implemented in the other Stalker mail servers, including
centralized DNS-based blacklisting (RBL).
<P> 
The CommuniGate Pro server is scheduled for the commercial release in
July'98.
The beta versions of the CommuniGate Pro Server are available now, free of
charge.
They can be downloaded either from the Stalker sites:
<P> 
<A HREF="http://www.stalker.com/CommuniGatePro/">
http://www.stalker.com/CommuniGatePro/</A> <BR> 
<A HREF="ftp://www.stalker.com//pub/CommuniGatePro/">
ftp://www.stalker.com//pub/CommuniGatePro/</A> 
<P> 
For more information: <BR> 
Ali Liptrot, <A HREF="mailto:ali@stalker.com">ali@stalker.com</A>,
<A HREF="http://www.stalker.com/">http://www.stalker.com/</A>

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
LPEvol, A Java Application
</H3>
<P> 
Date: Wed, 20 May 1998 14:25:25 +0200
This is a first (beta) release of LPEvol, a Java application which allows
you to
interactiveley breed LSystems objects and view the results graphically.
LSystems are (recursive) mathematical models that can be used to describe
growth patters modelling the shapes we see around us every day, like trees,
flowers and many others. LPEvol is an application which uses LParser and
PovRay to generate and draw these LSystems. You as the user then have the
choice to select the LSystems you like and then breed them (doing a
crossover,
using theGenetic Algortihm) to produce a next generation (the children )
which
will have been derived from the formulas ( genes ) describing the parents.
<P> 
LPEvol requires:
<PRE> 
- JDK 1.1.x
- lparser (default works; a modified lparser.c is shipped with LPEvol)
- PovRay 3
- cjpeg
- see the README file for other (hardware/memory) requirements.
</PRE> 
LPEvol 0.50 is available from:<BR> 
<A HREF="ftp://sunsite.unc.edu/pub/Linux/science/biology/">
ftp://sunsite.unc.edu/pub/Linux/science/biology/</A> 
<A HREF="http://www.peoplesoft.com/peoplepages/g/robert_gasch/src/src.htm">
http://www.peoplesoft.com/peoplepages/g/robert_gasch/src/src.htm</A> 
For more information: <BR> 
Robert Gasch, <A
HREF="mailto:Robert_Gasch@peoplesoft.com">Robert_Gasch@peoplesoft.com</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
RED HAT LINUX 5.1
</H3>
<P> 
Date: May 26, 1998 <BR> 
Red Hat Software, Inc.
announced the June 1 release of Red Hat Linux 5.1, a powerful update
that includes enhanced installation features, as well as system
configuring, web caching, window management features and an added value
CD of applications for Linux.
<P> 
For more information:<BR> 
<A HREF="http://www.redhat.com/">http://www.redhat.com/</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Webmin version 0.51 - WWW-based configuration software
</H3>
<P>
Date: Mon,  4 May 1998 07:50:19 GMT<BR> 
Webmin version 0.51 is now available for download from
<P>
<A HREF="http://www.webmin.com/webmin/">http://www.webmin.com/webmin/</A>
<P>
This version allows the simple, browser-based configuration of
Unix services such as
<PRE> 
 - Apache (version 1.1, 1.2 and 1.3)
 - Samba
 - Crontab
 - NFS exports
 - BIND
 - Inetd
 - SYSV init scripts
 - Local/remote mounts and /etc/fstab
 - Users and groups
 - Disk partitions
 - Running processes
 - Disk quotas
 - Software packages
 - PPP accounts
</PRE> 
Webmin runs on Solaris 2.5 & 2.6, Redhat Linux 4 & 5, Slackware
Linux 3, Debian 1.3 and SUSE 5.1.
<P>
For more information: <BR> 
Jamie Cameron, <A HREF="mailto:jcameron@webmin.com">jcameron@webmin.com</A>

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
banal 0.05 (bookkeeping software) released
</H3>
<P>
Date: Thu,  7 May 1998 12:50:51 GMT<BR> 
TITLE INFORMATION: BANAL 0.05 - or BANAL's Absolutely Not A Ledger 
AUTHOR INFORMATION: Matthew Rice - Matthew.Rice@ftlsol.com 
AFFILIATION INFORMATION: FTL Solutions Inc. 
DATE INFORMATION: May 1998 
<P>
    BANAL is a bookkeeping system that allows you to track invoices,
    clients, projects, TODOs, bank accounts and expenses.  BANAL is a
    client/server application so you can keep one set of books one your
    system while allowing everyone access.
<P>
    If you want to obtain BANAL and try it out, ftp to:
        ftp://sunsite.unc.edu/pub/Linux/apps/financial/accounting.
<P>
    and look for a file banal-X.YY.tar.gz, with
    X.YY being a version number (0.00 is of course the first).
    Unpack it in a "sources" directory and start reading the document
    in the "doc" subdirectory.
<P>
    FTL Solutions Inc. holds the copyright (I am doing it under
    their time), however, it is very unrestricted (read: do what you
    want but don't think of suing them).  There is a more detailed
    COPYRIGHT file included with the distribution.
<P>
For more information: <BR> 
Matthew Rice <A HREF="mailto:Matthew.Rice@ftlsol.com">Matthew.Rice@ftlsol.com</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
satlas-0.95 (solar atlas) released
</H3>
<P>
Date: Mon,  4 May 1998 07:17:18 GMT<BR> 
I am announcing a first public release of satlas!
<P>
Satlas is an electronic atlas of the solar sprectrum and targeted
primaraly for astronomers who do a lot of spectral analysis work.
It is based on Gtk+ and MySQL. MySQL is used to store, manage and
provide a quick access to the data, while Gtk+ is provides GUI.
<P>
		  http://www.physics.unc.edu/~serge/satlas/
<P>
Satlas is distributed under GNU Public License.
<P>
For more information: <BR> 
Sergei Naumov, <A HREF="mailto:serge@astro.unc.edu">serge@astro.unc.edu</A> 
	   
<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
ECLiPt Mirror 2.0b1 (former SimpleMirror)
</H3>
<P>
Date: Mon,  4 May 1998 07:34:37 GMT<BR> 
I've just released a new version of ECLiPt-Mirror (it's original name
has been SimpleMirror). The new release includes
<PRE>
- - HTML-Logs, including the possibilty to directly download from this 
  page
- - automatic creating of index-files as an overview over all mirrors
- - download just the most recent version of some files (e.g. the linux
  kernel)
- - bug fixes :-)
- - new bugs :-(
</PRE>
Have a look at http://eclipt.uni-klu.ac.at (and then the mirror section)
for a example usage. You can download it from the same page (under the
projects section). 
<P>
For more information: <BR> 
Martin Preishuber, <A HREF="mailto:Martin.Preishuber@stuco.uni-klu.ac.at">
Martin.Preishuber@stuco.uni-klu.ac.at</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Whisper 0.1 - Internet Telephone Application
</H3>
<P>
Date: Thu,  7 May 1998 12:32:21 GMT<BR> 
<P>
I announce the availability of Whisper --  Internet Phone.
You can use it to talk to other people on the Internet. 
It uses gsm compression  and should be suitable for low 
speed networks (19.200 bps and up)
<P>
I uploaded the sources to   /incoming/Linux on sunsite. Hopefully they
will appear in /pub/Linux/apps/sound/talk. Sources (and a binary version) 
are also available at:
<P>
         http://www.itp.uni-hannover.de/~roeden/whisper.html
<P>
Copying-policy: GPL
<P>
For more information: <BR> 
Claus Roedenbeck, <A HREF="mailto:roeden@itp.uni-hannover.de">
roeden@itp.uni-hannover.de</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
JCam 0.3 - Java-based software for Digital Cameras
</H3>
<P>
Date: Tue, 12 May 1998 08:05:54 GMT<BR> 
JCam - a single software program for (almost) all OSes and 
(almost) all Digital Still Cameras ...
<P>
Release 0.3 of JCam, available from http://www.jcam.com  introduces 
support for cameras from Fuji and Olympus ... this adds to existing 
support for cameras from Epsom, Casio, Kodak ... and a neater user
interface with "LEDs" ... ;-)
<P>
For more details about supported cameras, etc, please E-Mail to 
info@jcam.com or visit the Web Page at "www.jcam.com" ...
For more information: <BR> 
<A HREF="mailto:info@jcam.com">info@jcam.com</A>, <A
HREF="http://www.jcam.com/">http://www.jcam.com/</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
gax 1.0 - galaxy DB utility for astronomy
</H3>
<P>
Date: Tue, 12 May 1998 08:14:06 GMT<BR> 
Announcing the first release of Gax, a program for amateur astronomy.
<P>
Gax can create searchable databases of galaxy information that can then
be searched based on user selectable ranges for fields in the database.
<P>
The information contained in or derived from the database includes:
<PRE> 
	RA
	Declination
	Major/Minor Diameter
	Position Angle
	Magnitude
	Surface Brightness
	Constellation
	Uranometria 2000 Map number
	Local Transit Time
</PRE> 
Report formatting is also under complete user control providing the
ability to tailor the report output to your specific needs.
<P>
Temporarily at: <A HREF="http://sunsite.unc.edu/pub/Linux/Incoming/">
http://sunsite.unc.edu/pub/Linux/Incoming/</A> 
<P> 
Permanite site: <A
HREF="http://sunsite.unc.edu/pub/Linux/science/astronomy/">
http://sunsite.unc.edu/pub/Linux/science/astronomy/</A> 
<P> 
Files: 1664Kb gax-1.0.tar.gz, 1Kb gax.lsm
<P> 
Copying-policy: GPL
<P> 
For more information: <BR> 
Mark Anderson, <A HREF="mailto:manders1@csc.com">manders1@csc.com</A>  

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
SampLin, new scientific data acquisition software
</H3>
<P>
Date: Tue, 12 May 1998 08:15:10 GMT<BR> 
Few days ago I released first public version of scientific data
acquisition software 'SampLin' which can be found at
<A HREF="http://www.troja.mff.cuni.cz/~kvasnica/samplin.html">
http://www.troja.mff.cuni.cz/~kvasnica/samplin.html</A>.
<P> 
Currently is implemented support for serial, gpib devices and
arbitrary labcards with drivers, basic-like script language and
simple plot widget. Software supports data acquisition
over TCP/IP network via RPC protocol from remote servers.
Requirements: X11R6, Qt, KDE libs, GPIB lib
<P>
*** I'M LOOKING FOR NEW PROGRAMMERS TO CONTINUE THIS PROJECT ***
<P> 
For more information: <BR> 
Samuel Kvasnica, <A HREF="mailto:kvasnica@iaee.tuwien.ac.at">
kvasnica@iaee.tuwien.ac.at</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
SCNN3.3 cellular neural network simulator
</H3>
<P>
Date: Tue, 12 May 1998 08:33:00 GMT<BR> 
The new version of our simulation system for cellular neural networks
(CNN) is now available from our home page<BR> 
<A HREF="http://apx00.physik.uni-frankfurt.de/e_ag_rt/cnn/SCNN/">
http://apx00.physik.uni-frankfurt.de/e_ag_rt/cnn/SCNN/</A> 
<P> 
It is a zero price product, available for Intel x86 (Linux), IBM RS 6000
(AIX4), SGI Indigo (Irix 6.2), HP (HP Unix) and DEC Alpha (Ultrix). It is
planned to add versions for other Unix operating systems on request.
For more information take a look at our homepage.
<P>
For more information: <BR> 
SCNN Team,
Roland Kunz, <A HREF="mailto:kunz@apx12.physik.uni-frankfurt.de">
kunz@apx12.physik.uni-frankfurt.de</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Sox 12.14 - Universal Sound Processing Tool
</H3>
<P>
Date: Fri, 15 May 1998 07:40:31 GMT<BR> 
The latest patchlevel of Sox is now available.  Sox is intended to be
the Swiss Army knife of sound processing tools.  Its allows a user to
convert sounds files between any supported format including CD Audio,
.au, .voc, .wav and several others.  Latest versions also include
support for playing the sound file to either Linux's /dev/dsp or a Sun
/dev/audio.
<P>
It can be downloaded from the following sites:
<P>
<A HREF="http://home.sprynet.com/sprynet/cbagwell/projects.html">
http://home.sprynet.com/sprynet/cbagwell/projects.html</A> <BR> 
<A
HREF="http://sunsite.unc.edu/pub/Linux/apps/sound/convert/sox-12.14.tar.gz">
http://sunsite.unc.edu/pub/Linux/apps/sound/convert/sox-12.14.tar.gz</A> 
<P>
For more information: <BR> 
Chris Bagwell, <A HREF="mailto:cbagwell@fujitsu-fnc.com">
cbagwell@fujitsu-fnc.com</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Linux Point Of Sale
</H3>
<P>
Date: Mon, 18 May 1998 11:16:14 GMT<BR> 
LinuxPOS Version 1.0 Released for Beta Testing
<P>
Linux Canada Inc. wishes to announce that the beta version of
LinuxPOS 1.0 is now available for evaluation.  LinuxPOS is an exciting
new point of sale application written in Tcl/Tk. If you require the
power,stability and connectivity of Linux, the graphical user
interface inherent in Tck/Tk, a dynamite point of sale application and
full source code for peace of mind and/or personal customizations --- 
then LinuxPOS is for you.  
<P>
For more information: <BR> 
Philip Tonellier, <A
HREF="mailto:phil@linuxcanada.com">phil@linuxcanada.com</A>,
<A HREF="http://www.linuxcanada.com/">http://www.linuxcanada.com/</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
SHAREWARE: QuoteGrabber-1.0 Real-time stock quotes.
</H3>
<P>
Date: Tue, 26 May 1998 12:47:06 GMT<BR> 
The QuoteGrabber, 1.0.0 is a universal stock market client.
<P>
A stock market tracker and portfolio manager written in Java and
developed under Linux, the QuoteGrabber provides real-time and delayed
quotes, news and charts. Fully customizable, it is a versatile tool:
<PRE>
- - trading: real-time quotes for www.datek.com clients and registered
  users;
- - charting: intra-day, 3 month, 1 year, 2 years, 5 years;
- - news: breaking company news as they arrive;
- - portfolio management: enter all transactions, track portfolio
  performance;
- - alerts: based on a combination of four criteria;
- - international stocks: US, Canada, France, UK, Germany, Italy (delayed
  15-20 minutes);
</PRE> 
The QuoteGrabber is distributed as 30-day trial shareware with a
personal license price of $25.
<P>
For more information: <BR> 
Louis-David Mitterrand, <A
HREF="mailto:mito@aparima.com">mito@aparima.com</A>,
<A HREF="http://www.aparima.com/quote/">http://www.aparima.com/quote/</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Fortify now on Linux_glibc2: 128-bit Netscape crypto
</H3>
<P>
Date: Tue, 26 May 1998 13:01:39 GMT<BR> 
Sydney, Australia. (23 May, 1998).  By popular demand, Fortify for Netscape
has now been extended to support the Linux_glibc2 editions of the
Netscape web browsers (Communicator and Navigator v4.05).
<P>
This functionality is available immediately, as part of the 
Fortify-1.2.3-unix distribution.  You can download this from the
Fortify web site, at <A
HREF="http://www.fortify.net/">http://www.fortify.net/</A> 
<P>
In a second addition to the Fortify service, the Fortify-announce
mailing list is now on-line, and open to anyone who wishes to
receive news and announcements via e-mail regarding the Fortify project.
You can subscribe to the mailing list here:
	<A HREF="http://www.fortify.net/feedback.html">
http://www.fortify.net/feedback.html</A> 
<P>
Farrell McKay, <A HREF="mailto:fbm@jolt.mpx.com.au">fbm@jolt.mpx.com.au</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Organic molecule drawing program
</H3>
<P>
Date: Tue, 26 May 1998 13:30:46 GMT<BR> 
I have written a program to draw organic molecules
easily under X. You can store the picture as bitmapfile.
It is compiled with the Athena Widget Set and is also
compartible to UNIX.
<P>
You can download the sourcecode at:
<P>
<A HREF="http://www.uni-ulm.de/~s_tvolk/chemtool.html">
http://www.uni-ulm.de/~s_tvolk/chemtool.html</A> 
<P>
copyright is GPL
<P>
For more information: <BR> 
Thomas Volk, <A
HREF="mailto:thomas.volk@student.uni-ulm.de">thomas.volk@student.uni-ulm.de</A>,
<A
HREF="http://www.uni-ulm.de/~s_tvolk/">http://www.uni-ulm.de/~s_tvolk/</A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Toshiba Linux Utilities
</H3>
<P>
Date: Tue, 26 May 1998 13:43:46 GMT<BR> 
The Toshiba Linux Utilities are a series of three programs that I have
written to replace Toshiba supplied MS-DOS or Microsoft Windows programs
for controlling Toshiba laptops, with Linux versions. Full details and
source code can be found at
<P>
<A HREF="http://www2.prestel.co.uk/hex/toshiba.html">
http://www2.prestel.co.uk/hex/toshiba.html</A> 
<P>
FAN:
    A update to my fan program that uses a completely new version of turning
    the fan on/off. If you have tried a 1.x version of the program and it
    did not work on your laptop try this version. This version is known to
    work on the new Satellite Pro models (440x, 460x, 480x), and may work
    on others that the previous version did not. I am particularly keen to
    hear from owners of Tecra's.
<P>
SVPW:
    A direct replacement for the svpw.exe program found on the Companion
    diskette, for the setting/removal of supervisor passwords, and changing
    whether setup can be run in user mode. Known to work on a Satellite Pro
    400x, 430x, and 440x. I am keen to know if it works on other models.
<P>
    To anyone reading this, svpw does not, and cannot be made to remove
    passwords unless you already know the password. This is not a limitation
    impossed by me. I don't know how to *crack* the passwords on Toshiba
    laptops and have no interest in doing so. I will not answer any emails
    relating to this.
<P>
HOTKEY:
    This is not exactly a replacement for a Toshiba program, but provides
    the same functionality as MaxTime(tm) does under Microsoft Windows, under
    X11 when the power-up or battery save mode is changed with the Fn+F2,
    Fn+F3 key combinations. Namely a small window pops up in the centre of
    the screen with some icons to let you know what you are doing. It is
    know to work on a Satellite Pro 400x, 430x, Portage 610x, and Tecra 740x
<P>
For more information: <BR> 
Jonathan A. Buzzard, <A
HREF="mailto:jab@hex.prestel.co.uk">jab@hex.prestel.co.uk </A> 

<P> <hr> <P> 
<!-- =================================================================== -->

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
GNU Midnight Commander 4.1.35 file manager
</H3>
<P>
Date: Tue, 26 May 1998 14:11:12 GMT<BR> 
The Midnight Commander team has just released version 4.1.35 of the
GNU Midnight Commander.  For more information on the Midnight
Commander, please consult <BR> 
<A HREF="http://www.gnome.org/mc/">http://www.gnome.org/mc</A> 
<P>
This program is available now in:
<P>
<A HREF="ftp://ftp.nuclecu.unam.mx/linux/local/mc-4.1.35.tar.gz">
ftp://ftp.nuclecu.unam.mx/linux/local/mc-4.1.35.tar.gz</A> 
<P>
For more information: <BR> 
Miguel de Icaza, <A
HREF="mailto:miguel@nuclecu.unam.mx">miguel@nuclecu.unam.mx</A> 


<P> <hr> <P> 
<!--================================================================-->
<center>Published in <i>Linux Gazette</i> Issue 29, June 1998</center>
<P> <HR> <P>
<!-- =================================================================== -->
<A HREF="./lg_toc29.html"><IMG SRC="../gx/indexnew.gif" ALT="[ TABLE OF 
CONTENTS ]"></A>
<A HREF="../index.html"><IMG SRC="../gx/homenew.gif" ALT="[ FRONT 
PAGE ]"></A> 
<A HREF="./lg_tips29.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<A HREF="./lg_answer29.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>

<P><HR><P>
<h5>This page written and maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com">gazette@ssc.com</A><BR> 
Copyright &copy; 1998 Specialized Systems Consultants, Inc. </H5> 
<P> 
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <hr> <P>

<!-- ===============================================================  -->
<center>
<H1><A NAME="answer">
<img src="../gx/dennis/qbubble.gif" alt="(?)" border="0" align="middle">
<font color="#B03060">The Answer Guy</font>
<img src="../gx/dennis/bbubble.gif" alt="(!)" border="0" align="middle">
</A></H1> <BR>
<H4>By James T. Dennis,
<a href="mailto:answerguy@ssc.com">answerguy@ssc.com</a><BR>
Starshine Technical Services, 
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A> </H4>
</center>

<p><hr><p>
<H3>Contents:</H3>

<p><strong><A HREF="#tag_greeting"><img 
        src="../gx/dennis/bbub.gif" height="28" width="50" alt="(!)" 
        hspace="10" border="0">Greetings from Jim Dennis</a></strong></p>

<dL>
<!-- index_text begins -->
<dt><A HREF="tag_versions.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"><STRONG>Version-a-go-go 
	and the Tragedy of being "Left Behind"</STRONG></A>
<dt><A HREF="tag_lilo.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"><STRONG>Removing Lilo 
	from a multi-boot machine</STRONG></A>
<dt><A HREF="tag_virtdom.html"><img 
        src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" 
        hspace="10" border="0"></a>Question on sendmail... --or--
<dd><A HREF="tag_virtdom.html"><STRONG>'<tt>sendmail</tt>' <tt>FEATURE</tt> 
	creatures for virtual domain and generic re-write tables</STRONG></A>
<dt><A HREF="tag_kernel.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"><STRONG>Kernel 
	crashes</STRONG></A>
<dt><A HREF="tag_winmodem.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>Winmodems --or--
<dd><A HREF="tag_winmodem.html"><STRONG>More on 'WinModems': How to "lose" 
	Gracefully</STRONG></A> - Just say No!
<dt><A HREF="tag_basicmail.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>Mail on a LAN Linux 
	to NT --or--
<dd><A HREF="tag_basicmail.html"><STRONG>Basic e-mail Setup for 
	Linux?</STRONG></A>
<dt><A HREF="tag_betterbak.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"><STRONG>Remote Tape 
	Backups</STRONG></A>
<dt><A HREF="tag_shadow.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"
	><STRONG><tt>adduser</tt></STRONG></A>
<dt><A HREF="tag_dell.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"><STRONG>Letter to Dell 
	- Linux on Dell Hardware</STRONG></A>
<dt><A HREF="tag_dumbterm.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>Hello --or--
<dd><A HREF="tag_dumbterm.html"><STRONG>Connecting a Dumb Terminal to your 
	Linux System</STRONG></A>
<dt><A HREF="tag_whylinux.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"
	><STRONG>Why Linux?</STRONG></A>
<dt><A HREF="tag_redhat.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"
	><STRONG>Redhat telnet</STRONG></A>
<dt><A HREF="tag_netcard.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"
	><STRONG>Network Cards</STRONG></A>
<dt><A HREF="tag_macrovir.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>A little note about 
	&quot;good times&quot; or emailed viruses --or--
<dd><A HREF="tag_macrovir.html"><STRONG>&quot;Good Times&quot; 
	are Spread to the "Great Unwashed"</STRONG></A>
<dt><A HREF="tag_newlook.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>The Answer Guy --or--
<dd><A HREF="tag_newlook.html"><STRONG>Regarding the Column's 
	New Look</STRONG></A>
<dt><A HREF="tag_tacacs.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>TACACS+ client for 
	Linux --or--
<dd><A HREF="tag_tacacs.html"><STRONG>TACACS and RADIUS Authentication 
	Models for Linux and/or PAM</STRONG></A>
<dt><A HREF="tag_sendmail.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>Sendmail jam --or--
<dd><A HREF="tag_sendmail.html"><STRONG>'<tt>sendmail</tt>' Log Jams and 
	Capacity Problems</STRONG></A>: 
	running extra '<tt>sendmail -q</tt>' processes
<dt><A HREF="tag_dialdppp.html"><img 
        src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" 
        hspace="10" border="0"></a>PPP connection and diald --or--
<dd><A HREF="tag_dialdppp.html"><STRONG>Co-ordinating diald and Manual 
	PPP</STRONG></A>
<dt><A HREF="tag_ppp233.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"><STRONG>getting 
	ppp-2.3.3 to work</STRONG></A>
<dt><A HREF="tag_msmail.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>Mail access --or--
<dd><A HREF="tag_msmail.html"><STRONG>Getting at MS-Mail from within 
	Linux</STRONG></A>: The Myriad Ways to Co-exist with MS Windows
<dt><A HREF="tag_procmail.html"><img src="../gx/dennis/qbub.gif" height="28" 
	width="50" alt="(?)" hspace="10" border="0"></a>Program for 
	Mailer Daemons --or--
<dd><A HREF="tag_procmail.html"><STRONG>Automated Handling for MAILER-DAEMON 
	Messages</STRONG></A>: Read The Sources, Luke.
<!-- index_text ends -->
</dL>
<!-- *** -->
<a name="tag_greeting"><p><hr><p></a>
<h2>Linux Gazette: The Answer Guy for June, 1998</h2>

<p>
 The theme for this month seems to be "vendor support for Linux."  From
 the responses to my open letter to Dell, through the common problems
 with "winmodems" and "winprinters" and even to the impossible dream of
 running MS Windows applications and accessing Microsoft proprietary
 formats from native Linux applications --- we continue to fight uphill
 battles with so many vendors.

<br><br>
 This isn't new in the broader Unix world.  Readers of
 <em><a href="http://www.linuxjournal.com/issue12/rquarter.html">
A Quarter Century of Unix</a></em> by Peter H. Salus should recognize 
this as a as an attitude that has dominated hardware vendors for almost 
thirty years.  They've been prdicting the "death" of Unix (and the "death of
 the Internet) almost since from the beginning.

<br><br>
 There is some hope on the horizon.  As some of you may have heard or
 read <a href="http://www.corelcomputer.com">Corel Computer</a> 
	(the hardware division of the famous software
 company) is basing it's NC (network computer) on a Strong-ARM version of 
 Linux.  Within a week or two after that Corel Software announced their
 intention of porting the rest of the applications suite to Linux (their 
 WordPerfect 7 and 8 have been available in Linux versions for some
 time). 

<br><br>
 A little further afield it appears that 
	<a href="http://www.apple.com">Apple Inc</a> is starthing to make
 some sense with their future OS strategy --- by "thinking different", 
 or  "outside of the box" in a manner of speaking.  Specifically they've 
 apparently decided to skip the planned version of Rhapsody with its
 "blue" and "yellow" boxes that separated the MacOS and the
 Mach/NeXTStep (Unix) personalities.  Apparently buried in their
 announcement for 
<a href="http://developer.apple.com/macosx/">MacOS X</a> ("ten") is the i
	rumor that your "NeXT"
 (Rhapsody) native applications will co-exist on the same desktop
 with yor MacOS programs --- and that the MacOS API's will be seamlessly 
 supported with all the multi-threaded support that the Mach microkernel 
 can provide.    Of course you have to hear that as rumors, or read
 between the lines with a considerable background in the Macintosh
 architecture since it is not apparent from their own press releases,
 or from the <a href="http://www.mercurycenter.com/business/top/080332.htm"
 >San Jose Mercury News</a> articles on the subject.  The 
	<a href="http://www.examiner.com/daily/0511apple.html"
 >San Francisco Examiner</a> sings a similarly hollow tune.
 However, I'm not alone in my opinion as we see in 
 <a href="http://mackido.netgate.net/Opinion/RhapsodyDead.html"
	>David K. Every's article</a>.

<br><br>
 I suspect he knows <strong>way</strong> more than I do on the subject.

<br><br>
 Oddly the <a href="http://www.macosrumors.com/">MacOS Rumors</a> web site 
 seems to have no mention MacOS X on their site.

<br><br>
 What does this have to do with Linux?  Well, I can only continue to
 speculate that <a href="http://www.mklinux.apple.com/">mkLinux</a> 
 binaries will eventually run under MacOS X (Rhapsody). I can also still hope
 that, with the progress in the G3's, and the plans for the G4
 generations of the PowerPC platform, and hopefully the continued
 availability development of the DEC (Compaq) Alpha processor, we'll see
 some real choices and competition in the market place.  Linux is the 
 one OS that crosses all of these (and Sun 
 <a href="http://www.geog.ubc.ca/s_linux/faq.html">SPARC</a>'s and 
 <a href="http://www.linux.sgi.com/">SGI</a> MIPS and others).
 Some form of Unix is available on just about every platform, whether or not 
 it supports Linux.

<br><br>
 As we look beyond the world of PC clones we see that there is some
 vendor support.  There is some hope that Microsoft's legacy will be
 the separation of hardware vendors from their "control" hegemony.
 Before Microsoft it was the norm for computer manufacturers to almost
 completely control the availability of software for their platforms
 --- Unix has undermined that control for over two decades.  The popular 
 backlash from Microsoft's own unique form of control --- over the 
 collective Wintel platform --- may finally completely sever the
 puppet's strings.  The trickles of vendor support that you're seeing now
 is largely a survival strategy.  So not only will these vendors give up
 the efforts to control their customer's range of software choices,
 they'll be glad they did it, considering the alternative.
</p>
<hr width="10%" align="left">
<p><em><a href="mailto:jimd@starshine.org">Jim Dennis</a></em></p>

<!--================================================================-->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/ssc.copying.html"
	>Copyright &copy;</a> 1998, James T. Dennis <BR>
Published in <I>Linux Gazette</I> Issue 29 June 1998</H5>
<P> <hr> <P>
<!--================================================================-->
<A HREF="./lg_toc29.html"><IMG SRC="../gx/indexnew.gif" 
	ALT="[ Table Of Contents ]"></A> 
<A HREF="../index.html"><IMG SRC="../gx/homenew.gif" 
	ALT="[ Front Page ]"></A>
<A HREF="lg_bytes29.html"><IMG SRC="../gx/back2.gif" 
	ALT="[ Back ]"></A>
<A HREF="./hamilton.html"><IMG SRC="../gx/fwd.gif" 
	ALT="[ Next ]"></A>

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->

<center>
<h1><font color="maroon">GUI building using the Java 1.1 AWT</font></h1>
<h2><font color="maroon">Java Linux Audio CD Player--Part 2</font></h2>
<H4>By <a href="mailto:michael@actrix.gen.nz">Michael Hamilton</a></H4>
</center>
<P> <HR> <P>  
<H3>Contents:</H3>
<ul>
<li><a HREF="./hamilton.html#player">The Player Class</a>
<li><a HREF="./hamilton.html#form">The Form Panel</a>
<li><a HREF="./hamilton.html#menu">The Menu Bar</a>
<li><a HREF="./hamilton.html#awt">AWT Adapters</a>
<li><a HREF="./hamilton.html#main">The Main Button Control</a>
<li><a HREF="./hamilton.html#cd">The CD Player Status Display</a>
<li><a HREF="./hamilton.html#smart">The SmartDrive and the Monitor Thread</a>
<li><a HREF="./hamilton.html#program">The Program Window</a>
<li><a HREF="./hamilton.html#sum">Summary</a>
<li><a HREF="./hamilton.html#res">Resources</a>
</ul>

<p><hr><p>
In my previous article I described a simple CD player that can be
extended to create a GUI player such as Jcd, a freeware player I've
made available on the Web, see http://www.actrix.gen.nz/users/michael/giveaways.html
<p>
In this article I will describe how to extend the Drive object so that
it can carry out programmed play (play a list of tracks) and shuffle
play (play every track once in a random order).  
The structure of the new player is described by the class diagram in
the following figure. Rather than starting
with the low level components, I thought it would be more interesting
to start with a description of the GUI interface.  For the moment just
assume that there is a new SmartDrive version of Drive that includes
all the old functionality, plus monitoring of the Drive state and the
ability to accept and modify a list of tracks to be played.  I'll
introduce the use of the new functionality as we proceed.
<P> 
<img src="./gx/hamilton/class.gif">
<p>
In my previous article I described a Java class, called ``Drive'', that
provides the following CD player functionality:
<pre>
Drive Object:
	Informational methods: 
		currentTrack, currentIndex, numberOfTracks,
		currentAddress,
		cdEndAddress, trackAddress, trackLength

Control methods:
	play, stop, pause, resume, eject, setVolume
</pre>
In this article I will describe how to extend the Drive object so that
it can carry out programmed play (play a list of tracks) and shuffle
play (play every track once in a random order). But rather than start
with the low level components, I thought it would be more interesting
to start with a description of the GUI interface. For the moment just
assume that there is a new SmartDrive version of Drive that includes
all the old functionality, plus monitoring of the Drive state and the
ability to accept and modify a list of tracks to be played. I'll
introduce the use of the new functionality as we proceed.
<p>
Since writing my previous article, the Java Development Kit 1.1 has
been ported to Linux. This code in this article will use features of
the AWT from JDK 1.1. The article was originally written using the
JDK 1.0.1, and the original JDK 1.0.1 code is included in the tar
available at SSC's Linux Journal ftp site.
<P> <HR> <P> 
<a name="player"></A> 
<h3>The Player Class</h3>
<p> <HR> <P> 
The new CD player I'm going to describe is called Player and is run
from the command line by entering:
<pre>
setenv SBPCD 1 # if you have an old SoundBlaster connected drive
java Jcd.Player
</pre>
Running the application creates the GUI interface in <A HREF="#fig1">Figure
1</A> and <A HREF="#fig2">Figure 2</A>.
<p>
The source code for the Player class is presented in 
<A HREF="./hamilton/Player.java">Listing 1</A>. 
The
Player class has a static <b>main()</b> method on line 30, which is where
program execution will begin. On line 32 the main() method creates an
instance of the player class:
<pre>
Player player = new Player(); 
</pre>
On lines 38 to 43, the Player's class constructor sets up the
SmartDrive object that communicates with the CD player. The name of
the device to open (/dev/cdrom) and the location of the native module
(Jcd_Drive.so) is hard coded into the Player's constructor. The native
module implements the kernel interface to the CDROM drive. In a real
production version of the system, these parameters would be read from
a configuration file or deduced by interrogating the operating
environment.
<p>
As previously stated SmartDrive is an extended version of the hardware
interface class described in my first article--it has been enhanced
to support programmed play, and to provide notification events
concerning the CD players status. On line 56, the Player's
constructor starts the SmartDrive's monitor. The monitor will begin
delivering CD player events to any object that has registered for them.
<p>
<a name="fig1"></A> 
<center><img src="./gx/hamilton/hamfig1.gif"></center>
<center><H4>Figure 1. GUI Components</H4> </center>
I'll now go back over Player and look at some of the code involved in
the GUI. On lines 45 to 54 of 
<A HREF="./hamilton/Player.java">Listing 1</A>. 
the Player's constructor
creates the GUI components seen in Figure 1: a menu-bar; a display
area for track info; and a control area of push-button CD player
controls.
<p><HR> <P> 
<a name="form"></A> 
<h3>The Form Panel</h3>
<p><HR> <P> 
The AWT GUI toolkit provides components such as text-labels,
text-entry fields, menus, and buttons. Components are placed into
containers to build windows and pabels. The AWT's top level component
container is the Frame class. A Frame constructs a separate
free-standing window. Like other GUI toolkits, the AWT provides the
programmer with sub-container classes that can be used to control
component placement by subdividing a window into smaller areas. The
AWT's major sub-container is the Panel class. The AWT provides
further control over placement by allowing the programmer to configure
a Frame or Panel's layout policy. For example, the standard AWT
FlowLayout just places components left to right, top to bottom. A
Frame or Panel's layout can be assigned from the layouts provided by
the AWT or you can write your own.
<p>
On line 10 of <A HREF="./hamilton/Player.java">Listing 1</A>, the Player class is declared to extend the
Form class. The source code for Form is presented in <A
HREF="./hamilton/Form.java">Listing 2</A>. Form
is a class I've created that extends the normal top level AWT Frame
class. Player is a Form, a Form is a Frame, a Frame creates a
free-standing window, so Player creates a free-standing window. The
Form class uses the AWT GridBagLayout manager. The GridBagLayout
manager is the AWT's most flexible layout manager. It has a wide
variety of options for the spacing, and placement of objects with a
Frame or Panel. GridBagLayout's flexibility makes it complex to deal
with. Form simplifies dealing with the GridBagLayout by providing an
addCenter() method. On lines 23 to 32 of 
<A HREF="./hamilton/Form.java">Listing 2</A>, the addCenter()
method controls placement by placing the object at the next available
row and making it consume the entire row:
<pre>
c.gridx = 0;
...
c.gridwidth = GridBagConstraints.REMAINDER;
</pre>
It sets fill to NONE. It sets the inset space around the component to
1. The end effect is that the Form sub-class will place objects top to
button, one object per row, each consuming the space it needs plus
a little surrounding space.
<p><HR> <P> 
<a name="menu"></A> 
<h3>The Menu Bar</h3>
<p><HR> <P> 
Returning to the Player class. On lines 46 and 47 of <A
HREF="./hamilton/Player.java">Listing 1</A>,
the Player's constructor sets up the windows menu bar:
<pre>
setMenuBar(new MenuBar());
getMenuBar().add(createFileMenu()); 
</pre>
The actual drop-down menu is created by the <b>createFileMenu()</b> method on
Lines 70 to 78 of <A HREF="./hamilton/Player.java">Listing 1</A>.
It creates the player's file-menu, and
adds individual menu items to it. Lines 76 and 77 of createFileMenu()
setup the event handling for the menu:
<pre>
fileProgramItem.addActionListener(this);
fileExitItem.addActionListener(this); 
</pre>
These two lines set up the Player object (this) to handle the
ActionEvents from the file-menu's fileProgramItem and fileExitItem.
These events are generated when the user selects a menu item. In
order to be able to handle these events the Player class must
implement the ActionListener interface--it is declared as such on
<A HREF="./hamilton/Player.java">Listing 1</A> line 10:
<pre>
public class Player extends Form implements ActionListener
</pre>
What's going on here? Player inherits from--``extends''--Form, but
what does ``implements ActionLister'' mean? Player can only inherit
data and method definitions from a single parent--Java doesn't
support multiple inheritance--an object can only ``extend'' one parent
class. However, to provide some of the functionality of multiple
inheritance, Java provides the ``implements/interface'' mechanism. In
other languages multiple inheritance has to deal with the issue of
what to do when a class inherits two more implementations of the same
data-structure or method from two different parents. For example, say
both parents have an add() method, which one should be used in the
sub-class? Java's limited multiple inheritance mechanism, the
``interface'', doesn't support the inheritance of implementation.
Except for class-wide constants, interface definitions must be
completely abstract. An interface definition, such as ActionListener,
cannot provide an implementation of any of the methods it declares.
Any class wishing to ``implement'' an interface must provide its own
code to implement all the methods in the interface. A class can
implement any number of interfaces--a class could implement both
ActionListener and MouseListener and handle both kinds of events. By
not providing an implementation, interfaces leave conflict resolution
in the hands of the programmer designing the implementation.
<p>
Listener interfaces such as ActionListener, MouseListener, and others,
were newly introduced in JDK 1.1. The new JDK 1.1 AWT Event model
uses the Java interface mechanism to provide a more flexible event
handling mechanism that the earlier version of the JDK. There are
separate interfaces for different kinds of events such as the mouse or
the keyboard. Multiple objects can register for the same events and
they will all receive them.
<p>
In order to implement the ActionListener interface, the Player class
has to have an actionPerformed() method--the method is defined on on
Lines 59 to 68. The Player will be passed menu events via a call to
the actionPerformed() method. The actionPerformed() method checks
which component was the source of the event and invokes an appropriate
code fragment: at lines 62 to 65, the Player's actionPerformed method
checks if the source of the event was the fileProgramItem--if it was,
and there isn't an existing program showing, a new one is created. At
line 66, if the source of the event was fileExitItem the program is
terminated.
<p> <HR> <P> 
<a name="awt"></A> 
<h3>AWT Adapters</h3>
<p> <HR> <P> 
In some cases the interface necessary to handle an AWT event is quite
complex. To save the programmer the work of having to completely
define all of an AWT event interface, the AWT includes pre-written
Adapter classes that provide default implementations for the more
complex event interfaces. For example the MouseListener interface has
a corresponding MouseAdapter class that provides a default
implementation. These pre-canned AWT Adapter classes can be
sub-classed to selectively override any of their methods.
<p>
The Player class makes use of an Adapter class to handle close
requests from the window manager. Close requests are usually the
result of the user double clicking the close button on window's title
bar. On line 52 of <A HREF="./hamilton/Player.java">Listing 1</A>, the Player registers a WindowListener:
<pre>
addWindowListener(new DoClose());
</pre>
The WindowListener interface has several methods and I only want to
override one of them--the windowClosing() method. Unfortunately the
Player class can't inherit from the default WindowAdaptor class
because the Player class already inherits from the Form class. The
solution I've applied in this case is to use another new feature of
the JDK 1.1. JDK 1.1 adds Inner Classes to the Java language--this
means I can declare a class within a class:
<pre>
public class Player extends Form implements ActionListener {
...
addWindowListener(new DoClose());
...
private class DoClose extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}
...
}
</pre>
The Player uses addWindowListener() to register a new instance of its
own inner DoClose class. Because DoClose is an Inner Class of
Player it has access to Player's data and methods and can therefore be
more closely integrated into Player than a separately declared class.
In other languages it's quite common to solve situations such as this
by passing pointers to methods, functions, or code-fragments--but in
Java only objects can be passed, so Inner Classes were provided as one
solution.
<p> <HR> <P> 
<a name="main"></A> 
<h3>The Main Button Controls</h3>
<p> <HR> <P> 
Turning now to the remainder of the Player GUI interface: the Controls
and Display classes. I'll describe the Controls class first because
it's the simplest. Controls is a panel of buttons which you can see
on the bottom of <A HREF="#fig1">Figure 1</A>. <A HREF="./hamilton/Controls.java">Listing 3</A>
shows the source code for the
Controls class. Since it is intended to be a sub-panel of Player it
inherits from Panel:
<pre>
class Controls extends Panel implements ActionListener
</pre>
The Controls class also needs to take action when the buttons are
pressed, so it also implements the ActionLister interface.
<p>
Lines 17 to 22 of <A HREF="./hamilton/Controls.java">Listing 3</A> declares the set of buttons. The button
declarations also specify how to initialize the buttons when a
Controls object is created. On lines 26 to 32, the Controls
constructor adds each of the buttons to the Panel. The simple
GridLayout manager, not to be confused with the more complex
GridBagLayout manager, is used to control component placement within
the Panel. GridLayout places components left to right, top to bottom,
in equal sized cells in the grid specified:
<pre>
setLayout(new GridLayout(1, 6, 2, 2)); 
</pre>
In this case the grid is 1 row by 6 columns--a column for each
button. The last two arguments specify a horizontal and vertical gap
between grid cells of 2.
<p>
The <b>Controls add()</b> method, on lines 31 to 34, overrides the add()
method inherited from the Panel super-class. Add() behavour has been
modified to set the Controls object as the ActionListener for each
button:
<pre>
private void add(Button b) {
b.addActionListener(this); 
super.add(b); // Now call super class add() method.
}
</pre>
The Controls actionPerformed() method, lines 36 to 49, reponds to
button press events by invoking corresponding CdPlayer methods.
<p><HR> <P> 
<a name="cd"></A> 
<h3>The CD Player Status Display</h3>
<p><HR> <P> 
The final part of the interface shown in <A HREF="#fig1">Figure 1</A>
is the Display
panel, the source code for which can be seen in <A
HREF="./hamilton/Display.java">Listing 4</A>. The
Display panel consists of three text fields to display the CD track,
the CD index, and the CD track time remaining--trackField,
indexField, and timeField. They're declared on lines 13 to 15 of
<A HREF="./hamilton/Display.java">Listing 4</A> and will be initialized as new TextFields a Display object
is created (which only ever happens once in this application).
<p>
The Display() constructor method is on line 20 of <A
HREF="./hamilton/Display.java">Listing 4</A>. Lines 22
to 29 setup the basic components involved in the display. The Panel
is assigned the FlowLayout manager which means that calls to the add()
method will place the three text fields in a left to right layout
butted up to each other with a small amount of separation top and
bottom. And on Lines 23 and 24 I've made the indexField and timeField
read-only so the user can't alter their values:
<pre>
 indexField.setEditable(false);
 timeField.setEditable(false); 
</pre>
The trackField is left editable so that the user can enter the number
of a track to start playing from. In order to handle the trackField's
mouse focus events and keyboard events, we have to register a couple
of event Listeners:
<pre>
trackField.addFocusListener(new TrackFocusLost());
trackField.addKeyListener(new TrackKeyPress()); 
</pre>
Both of the Listeners are quite complex, so rather that write our own
complete implementations, two default Adapter classes are sub-classed
to handle the task on lines 53 to 74--more about them later.
<p>
On line 34 we register Display() as an Observer of the cdPlayer:
<pre>
cdPlayer.monitor.addObserver(this); 
</pre>
The status of the CD player is actually kept track of by a Monitor
object--the cdPlayer.monitor object. The monitor runs in its own
thread (a thread can be thought of as a light weight sub-process that
has shared access to the data of the main task). The need to monitor
events and notify other objects is a common programming problem. Java
provides the Observable Class, and its companion Observer Interface,
as a standard basis for addressing this kind of problem. The monitor
object is a sub-class of a Observable class. The Observable class
provides the code necessary to manage the Observer/Observable
relationship. The monitor class will be described in more detail
later. Display is declared to implement Observer, which means it must
define an update() method. The update() method will be called when an
Observable event takes place. Display's update() method is defined on
lines 37 to 51, it is passed the Observable object that caused the
event and an extra argument (which isn't used in this application).
<p>
Normally the trackField is updated once a second when the monitor
broadcasts a status update to its Observers. The user can also alter
the value of the trackField by entering a new track which will force
the player to skip to it immediately. To prevent the one second
update from clobbering the users input, the update() method is careful
not to update the trackField text unless the track really has changed:
<pre>
if (prevText.compareTo(newTrackText) != 0) {
trackField.setText(newTrackText);
prevText = newTrackText;
}
</pre>
Lines 53 to 75 of <A HREF="./hamilton/Display.java">Listing 4</A> define two inner classes to handle user
input into the trackField. TrackFocusLost restores the correct track
number when ever the user changes focus out of the trackField.
The inner class TrackKeyPress checks every key pressed in the
trackField for the enter key. If enter is pressed, an attempt is made
to parse the text entered into an integer value, if this succeeds the
cdPlayer is instructed to immediately start playing at this track.
<p> <HR> <P> 
<a name="smart"></A> 
<h3>The SmartDrive and the Monitor Thread</h3>
<p> <HR> <P> 
Before we go on to describe how to write a GUI for programmed track
play and shuffle play, we really have to understand more of the new
SmartDrive class that extends the Drive class from my first article.
SmartDrive.java can be seen in <A HREF="./hamilton/SmartDrive.java">Listing
5</A>. SmartDrive is a sub-class
of the original Drive class. SmartDrive mainly adds new methods to
provide for playing a list of tracks. 
<p>
In order to store the playlist of tracks, a new class called TrackList
is defined at lines 175 to 243. TrackList is a sub-class of the JDK
Vector class. A Vector is is a JDK implementation of a list-like
structure. A Vector can only store java Objects. I would like to
store int-type track numbers, but the int-type isn't a Java Object,
it's a primitive data-type and primitive data types aren't first-class
objects. To get around this problem the JDK provides a class wrapper
for each kind of primitive data type. In this case I have to use the
Integer wrapper class to contain each track number. When ever a track
is added to a TrackList, the code actually stores a corresponding
Integer object:
<pre>
addTrack(int t) { addElement(new Integer(t)); }
</pre>
TrackList provides methods to test the state of the list, to advance
along the list, and to reset the list. Because Vectors store generic
Objects, TrackList also has to do a fair bit of casting. For example,
elementAt() returns an Object that has to be cast to an Integer before
I can use it:
<pre>
Integer elem = (Integer) (elementAt(position)); // Cast Object to Integer
</pre>
The methods within TrackList have been declared as synchronized.
This prevents multiple threads from simultaneously trying to access
the same TrackList object. For example, we don't want the GUI to
attempt to clear the track list at the same time as the cdPlayer
attempts to advance to the next track in the track list. By declaring
the methods as synchronized we ensures that requests are handled one
at a time--waiting calls will block until the object is available.
<p>
In order to implement programmed play, the SmartDrive class includes
an instance of TrackList, called tracksToPlay. SmartDrive methods
such as next() and prev(), on lines 53 to 83, either just play tracks
in the normal numerical sequence, or in the order returned by
the tracksToPlay nextTrack(), prevTrack() methods.
<p>
Anytime the player gets to the end of track SmartDrive has to refer to
tracksToPlay and issue a new play() call to play the next track in the
program. In order to do this it sets up an instanse of the Monitor object 
mentioned earlier.
<p>
2b:The code for the Monitor class is in <A
HREF="./hamilton/Monitor.java">Listing 6</A>. As described earlier
the monitor object is a sub-class of a Observable class, a JDK class
that provides much of the code necessary to manage Observer/Observable
relationship. The Monitor class runs in a separate thread that
interrogates the hardware player and passes on its status every second.
<p>
The monitor is started by calling the monitor's start() method--in
this case the call to start() is made in the main() method in
<A HREF="./hamilton/Player.java">Listing 1</A>. The Monitor's start()
method, lines 57 to 65 of <A HREF="./hamilton/Monitor.java">Listing 6</A>,
creates a new thread and starts it running:
<pre>
if (updateThread == null) {
System.out.println(&quot;Starting thread&quot;);
updateThread = new Thread(this); 
updateThread.start();
}
</pre>
The Thread constructor expects to be passed an object that implements
the Runnable interface, in this case the Monitor is its own Runnable,
so it passes itself (``this''). To implement the Runnable interface,
Monitor has to define a run() method. The run() method provides the
code that will be executed in a new thread. When the
updateThread.start() method is called the new execution thread will be
created. The new thread will then call the the monitor's, run()
method. The run() method loops forever collecting status from the
cdPlayer, passing it on, and then sleeping one second. The update is
carried out in a synchronized statement:
<pre>
synchronized (cdPlayer) {
updateCdInfo(); 
setChanged();  // Force notifyObservers() to do its thing.
notifyObservers(); 
}    
</pre>
The synchronized statement will obtain a lock on the cdPlayer before
it updates its info and notifies each observer. This ensures that all
Observers get the same consistent picture. The monitor uses the
setChanged() method, inherited from Observable, to indicate that the
Observers need to be informed. It then calls the notifyObservers()
method, also inherited from Observers, which passes the update event
on to all Observers who have previous registered with the monitor.
<p>
The bulk of the Monitor class on lines 72 to 127 implements the
updateCDInfo() method that collects info from the Drive/SmartDrive
object. It caches the CD info to save having to bother the Linux
kernel with repeated requests for constant information such as the
length of the tracks on the current CD. The Drive interface was
extensively covered in my first article, so won't go into the
the details of the calls to the cdPlayer again here.
<p>
Although the monitor provides the main means for conveying status
information, the SmartDrives's update() method, lines 118 to 148 of
<A HREF="./hamilton/SmartDrive.java">Listing 5</A>, has to switch into more precise mode to handle the
transition from one track to the next. The normal one second update
from the monitor is insufficient to control precise switching between
tracks so the update() method does it's own frequent polling when ever
the end of track is near:
<pre>
if (monitor.currentAddress >= tend - 210) { // Near end of
track?
// Poll frequently so we don't miss the event.
while (currentAddress() 
&& monitor.status == Drive.STATUS_PLAY
&& currentAddress() != 0) {
try { Thread.sleep(100); } // Sleep 100 msec's.
catch (InterruptedException e) { }
}
</pre>
This ensures that the listener doesn't hear small sound bites of the
next track.
<p> <HR> <P> 
<a name="program"></A> 
<h3>The Program Window</h3>
<p> <HR> <P> 
<a name="fig2"></A> 
<center><img src="./gx/hamilton/hamfig2.gif"></center>
<center><H4>Figure 2. Program Window</H4> </center>
<P> 
Now we can address the final GUI component--the Program class that
creates the Program window. The Program window can be seen in
Figure 2. The source code for the program class can be seen in
<A HREF="./hamilton/Program.java">Listing 7</A>.
The Program class lays out its sub-panels by using the same
Form object described earlier. The Program constructor, lines 40 to
87, assembles three sub-panels:
<pre>
+ programListing - a text field;
+ trackPanel - a grid of track buttons;
+ and buttonPanel - a row of control buttons.
</pre>
The program class isn't really any more complex than the rest of the
GUI except that it features quite extensive use of Inner Classes and
Anonymous Classes newly introduced in Java 1.1. Most of the following
description will concentrate on these two new language features.
<p>
Lines 53 to 70 setup the buttonPanel and the actions to take when each
control button is pressed. The Program() constructor uses the Program's
own addButton() method to add the control buttons to the buttonPanel.
AddButton() expects to passed the panel; the button; and an object to
handle the associated button press action:
<pre>
void addButton(Panel panel, Button button, DoAction action)
{
panel.add(button);
button.addActionListener(action);
}
</pre>
The action parameter, is declared to be from the DoAction class.
DoAction is declared at the top of the Program class as an Inner
class--a class contained within the Program class:
<pre>
class Program extends Form implements Observer {
private abstract class DoAction implements ActionListener {
public void actionPerformed(ActionEvent event) {
this.invoke();
}
abstract void invoke();
}
</pre>
The DoAction class is abstract because it has no implementation for the
invoke() method. The implementation of invoke() is provided
individually for each button by new sub-classes of DoAction.
These new sub-classes are created inside the Program() constructor on lines
54 to 78--each addButton() call creates a new DoAction sub-class:
<pre>
addButton(buttonPanel,
 editButton,
 new DoAction() { void invoke() { setEditMode(); } });
</pre>
In each of these calls to addButton, the last paramter is an Anonymous
sub-class of DoAction. Like Inner Classes, Anonymous Classes were
added to Java to give programmers the means for implementing objects
like ActionListeners without the programmer having to creating
zillions of free standing mini classes. The new verb, normally used
to create a new object, is used here to create a new class:
<pre>
new DoAction() { void invoke() { setEditMode(); } }
</pre>
This code creates a new anonymous, i.e., unnamed, sub-class of DoAction.
The body of the class, in the curly-braces, provides an implementation
of the invoke() method specific to the editButton. In the same manner
6 other anonymous classes are created to handle each control button.
<p>
Another anonymous class is used to handle the close-request for the
Program window on lines 71 to 79. Rather than fully declare a single
class to handle the request, I've used an anonymous sub-class of the
AWT WindowAdapter class:
<pre>
new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dismiss(); // call dismiss(0) for the outer class.
}
}
</pre>
Again ``new'' is creating a new class. In this case a sub-class of
WindoAdapter is created with an override for the windowClosing()
method.
<p>
Because these anonymous classes are inner classes of Program, they
have access to its data and methods. For example, windowClosing() in
the previous example calls dismiss()--dismiss() is a method of the
Program class.
<p>
The suggested use for Anonymous classes is for small fragments of
code only. Larger code fragments are more tidily expressed as
named inner classes.
<p>
The updateTrackPanel() method, on lines 171 to 194, contains a tricky
use of inner classes. Here inner classes are used to carry extra
information around. When the Program window is created the
updateTrackPanel() method is called to set up the track-number
buttons. The method is also called whenever the number of buttons has
to be altered due to a change in CD.
<p>
When the user presses a track-number button, the button event handler
has to know which button was pressed. updateTrackPanel() achieves
this by sub-classing the DoAction class:
<pre>
for (int i = prev_n; i 
class TrackAction extends DoAction {
int track; 
public TrackAction(int i) { track = i; }
void invoke() { pickTrack(track); } 
} 
addButton(trackPanel,  
 new Button(Integer.toString(i + 1)),
 new TrackAction(i + 1)); 
} 
</pre>
Each TrackAction objects is initialised with the track number it is
associated with. 
<p>
The rest of the code in the Program class deals with the mechanics of
programmed mode play. This includes switching the mode of the track
panel between add (a track), del (a track), and play (immediately play
a track). The new java feature introduced by this code is the use of
the JDK Random class to select tracks at random on lines 152 to 169.
<p> <HR> <P> 
<a name="sum"></A> 
<h3>Summary</h3>
<p> <HR> <P> 
This concludes my description of how the CD player works. I started
this whole exercise to try out as much Java as possible, both in terms
of the compilers and tools, and in terms of the language and JDK
libraries. I've found that the langauge, libraries, and compilers are
stable enough to for me to write non trivial programs, the fully coded
Jcd clocks in at 3600 lines of Java and 450 lines of C. The compilers
work but are slow. The JDK libraries are quite functional and offer
far more standard facilities than originally provided with C or C++.
C integration is easily accomplished. Programming in a garbage
collected environment is a real boost to productivity. Xemacs provided
me with a really good Java editing environment.

<P> <HR> <P>
<a name="res"></A>  
<h3>Resources</h3>
<p><HR> <P> 
See previous article in <I>Linux Gazette</I> issue 28 for detailed references.
<p>
<A HREF="./hamilton/Jcd-2-listings.tar.gz">Tar file</A> containing all
listings in this article
<p>
<A HREF="http://www.actrix.gen.nz/users/michael/">My home page</A> 
containing more infomation on Jcd.
<P> 
<A HREF="ftp://sunsite.unc.edu/pub/Linux/apps/sound/cdrom/">Jcd</A> is
available on Sunsite.
<p>
<A HREF="http://www.blackdown.org/java-linux.html">
The Linux Java page</A>--a good starting point.

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, Michael Hamilton <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./lg_answer29.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./marsden.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->


<center>
<H1><font color="maroon">EMACSulation</font></H1>
<h4>by <a href="mailto:emarsden@mail.dotcom.fr">Eric Marsden</a>
</h4>
</center>


<blockquote><small>

   This column is devoted to making the best use of Emacs, text editor
   extraordinaire. Each issue I plan to present an Emacs extension
   which can improve your productivity, make the sun shine more brightly
   and the grass greener.

</small></blockquote>

<p><HR> <P> 

<h1>Emacs as a server</h1>

<p> Many people meet Emacs as the default program launched by Elm to edit
    an email message. Starting up Emacs in this way is a bit of a pain,
    because of the delay and memory use, but also because the fresh Emacs
    doesn't share buffers and a kill ring (storage for cut/copied text)
    with other invocations. Rather than starting up a new Emacs for each
    letter, you can set the environment variable <tt>EDITOR</tt> to
    <tt>emacsclient</tt>.

<p> The Emacs server mechanism allows one Emacs process to service editing
    requests from other applications. To enable it you need to add a line
    like <tt>(server-start)</tt> in <tt>~/.emacs</tt>. When you say
    <tt>emacsclient filename</tt>, the program searches for an Emacs
    process (launching one if necessary) and sends it a message asking it
    to edit <tt>filename</tt>. The caller process (the shell for example)
    is blocked while the file is being edited. When you're finished type
    <tt>C-x #</tt> and the client will be unblocked.

    
<h2>Gnuserv</h2>

<p> Gnuserv is a more sophisticated remote invocation mechanism for Emacs,
    written by <a href="http://hplbwww.hpl.hp.com/people/ange/">Andy
    Norman</a> (also the author of <a
    href="http://www.linuxgazette.com/issue26/marsden.html">ange-ftp</a>).
    It allows arbitrary Emacs Lisp commands to be sent to an Emacs process
    running either on the local machine or on another machine on the
    network.

<ol>
<li> If you're using XEmacs everything is already set up; you will only
     need to add a <tt>(gnuserv-start)</tt> to your <tt>~/.emacs</tt>.
     
<li> Obtain the gnuserv-2.1alpha RPM from Red Hat contrib, or <a
     href="http://cgi.debian.org/www-master/debian.org/Packages/unstable/editors/gnuserv.html">
     the .deb</a> for Debian Hamm and skip to 6&nbsp;;

<li> Download the <a
     href="http://hplbwww.hpl.hp.com/people/ange/gnuserv/">source</a>&nbsp;;

<li> Edit <tt>config.h</tt> (I suggest using <tt>#define
     DONT_USE_LITOUT</tt>) and <tt>gnuserv.h</tt>, where you choose the
     communication method (the default is Internet domain <a
     href="http://www.lowtek.com/sockets/">sockets</a>, which is necessary
     if you want to be able to do the remote stuff)&nbsp;;

<li> Put the file <tt>gnuserv.el</tt> somewhere in Emacs' load path. Let's
     assume you have an <tt>~/elisp/</tt> directory where you put your
     favorite Emacs Lisp extensions; an alternative is to copy gnuserv.el
     to a site-wide Emacs Lisp directory such as
     <tt>/usr/lib/emacs/site-lisp</tt> (type <tt>C-h v load-path</tt> in
     Emacs to see a list of possiblities)&nbsp;;

<li> Add something like this to your <tt>~/.emacs</tt>&nbsp;:

<pre>
    (setq load-path (cons (expand-file-name "~/elisp") load-path))
    (autoload 'gnuserv-start "gnuserv" "Better Emacs server support")
    (setq gnuserv-frame (current-frame))
    (gnuserv-start)
</pre>

<p> The second line tells Emacs that the function <tt>gnuserv-start</tt> is
    defined in a file called gnuserv.el, which Emacs will load on demand.
    The third line inhibits the default behaviour of opeing a new frame for
    each new file edited (leave this out if you prefer). The last line
    fires up the server.

</ol>    


<p> To check that everything is working, type

<pre><tt>
    ~$ gnuclient &lt;filename&gt;
</tt></pre>

<p> which asks Emacs to open <tt>&lt;filename&gt;</tt>, just like
    emacsclient. If this doesn't work (with a message like ``Refused
    connection'' or ``Broken pipe''), skip down to the <a
    href="#security">Security section</a>. You can also send off an
    arbitrary bit of Emacs Lisp&nbsp;:

<pre>    
    ~$ gnudoit '(message "Hi there, %s!" (user-full-name))'

</pre>


<h2>Applications</h2>

<p> Now you can do all sorts of silly things. You could get two Emacsen on
    networked machines to play ping pong, echoing messages back and forth.
    You could use Emacs as a CGI script server, profiting from its powerful
    library without incurring the overhead of launching an interpreter for
    each script (a little like the <a
    href="http://www.FastCGI.com/">FastCGI</a> mechanism). For example,
    let's hack together an external interface to Emacs' builtin
    psychologist&nbsp;:

    
<pre>
     (defun eliza-start ()
       "Fire up the doctor."
       (interactive)
       (doctor)
       ;; We only have to type return once under this interface.
       (re-search-backward " twice" nil t)
       (replace-match "")
       (goto-char (point-max))
       (buffer-substring (point-min) (point-max)))

     (defun eliza-continue (str)
       "Send a string to the doctor and return her response."
       (interactive)
       (switch-to-buffer "*doctor*")
       (insert "\n" str "\n")
       (doctor-read-print)
       (save-excursion
         (re-search-backward "\n\n\\(\\(.+\n?\\)+\\)\n\n")
         (match-string 1)))

     (defun eliza-cleanup ()
       "Pay the bill and leave."
       (interactive)
       (let ((buf (get-buffer "*doctor*")))
          (if buf (kill-buffer buf))))
</pre>

<p> This can be used from the command line (for CGI use you'd have to
    think about the trickier question of concurrent accesses) with a script
    such as

<pre>
     #! /bin/sh
     
     gnudoit '(eliza-start)'
     while read line
     do
         gnudoit "(eliza-continue \"$line\")"
     done
     gnudoit '(eliza-cleanup)'
</pre>

<p> You might even find constructive uses for the gnuserv technology, like
    starting <a href="http://www.Gnus.org/">Gnus</a> (an Emacs news/email
    client) and ange-ftp transfers from a ``network Emacs'', so that your
    primary Emacs isn't affected by networking delays. You could also
    communicate with Emacs from a crontab, telling it to fetch some web
    pages with Emacs/w3, or send someone an email. You could use
    Netscape's third party <a
    href="http://developer.netscape.com/software/sdks/index.html?content=mailnews.html">
    email/news API</a> to invoke Emacs instead of the builtin mail and news
    clients. It might also be useful for sending commands to Emacs from a
    <a href="http://www.plig.org/xwinman/">window manager</a> menu.


<h2>Security considerations<a name="security"></A></h2>

<p> More and more Linux distributions use good <a
    href="http://ciac.llnl.gov/ciac/documents/ciac2316.html">X security</a>
    as set up out of the box. You will notice for example that when you su
    to root on a modern system, you will no longer be able to launch X
    clients, because the X server is protected by an <a
    href="http://www.xs4all.nl/~zweije/xauth.html">xauth</a> cookie.

<p> While allowing access to your X display is bad enough (someone could
    capture all your keystrokes, for example), giving remote access to your
    Emacs process is much more worrying, since Emacs can execute arbitrary
    commands under your id, delete files, send insulting email to the
    President of the United States, etc.

<p> Since release 2.1, gnuserv is able to use MIT-MAGIC-COOKIE-1
    authentication for remote requests. This protocol uses the contents of
    your <tt>~/.Xauthority</tt> file, as described in the xauth(1) man page.
    Gnuserv requires a cookie for display number 999, which you can create
    as follows (blade is the name of the machine)&nbsp;:

<pre>    
      ~$ xauth add blade:999 . `cat /etc/passwd | md5sum` 
      ~$ xauth list
      blade/unix:0  MIT-MAGIC-COOKIE-1  bc1d627babdbabe9d1f288d2b57c348f
      blade:999  MIT-MAGIC-COOKIE-1  d89570b20925d401c05a79be67159cae
</pre>

<p> (<tt>`cat /etc/passwd | md5sum`</tt> is just a convenient way of
    generating a cookie; on most Linux systems you will be able to use the
    <a
    href="http://hegel.ittc.ukans.edu/topics/linux/man-pages/man1/mcookie.1.html">mcookie</a>
    command, or you can bake a cookie by hand). Now you should be able to
    use gnuclient/gnudoit on the local machine. The next step is to
    transfer the cookie to each remote machine from which you plan to
    access Emacs, with a command such as&nbsp;:

<pre>    
      ~$ xauth extract - blade:999 | rsh remotehost.edu xauth merge -
</pre>

<p> If you don't run X you will have to fall back to a host-based access
    control system&nbsp;: the environment variable <tt>GNU_SECURE</tt> is
    assumed to point to a file which contains a list of machines which are
    authorized to open connections to your Emacs process. Finally, if your
    machine isn't networked, you've probably already skipped to the next
    section.


<h2>How does it work?</h2>

<p> Your command takes a fairly convoluted route to reach Emacs. There are
    four parties involved in a transaction&nbsp;: the ``client'', or
    program which wants a service from Emacs (Elm for example), the
    gnuclient program (which runs on the requesting machine), the gnuserv
    process (which runs on the machine running Emacs), and of course the
    Emacs process itself. They communicate as indicated by the following
    diagram&nbsp;:

<p> <img src="./gx/marsden/gnuserv-arch.gif" alt="Communication diagram (3 kB)">

<p> The fragile aspect of the system is that if the gnuserv program dies
    for some reason, everything grinds to a halt. An alternative
    communication method which would involve fewer working parts could be
    inspired from the Netscape remote invocation protocol. The gnuclient
    capabilities would be added directly to Emacs, and a gnudoit request
    would look something like

<pre>
    emacs -remote -lisp '(message "Hi")'
</pre>

<p> The new Emacs process would search for an existing Emacs process to
    which it could dispatch the request, or service it directly. The
    disadvantage is that each request would be slower, since an Emacs needs
    to be forked each time. The image is most often in the disk cache, so
    this wouldn't be catastrophically slow (it works OK with Mozilla, which
    is <a
    href="http://x5.dejanews.com/getdoc.xp?AN=202452924&CONTEXT=896094230.406519988&hitnum=1">far
    bigger</a> than Emacs).

     
<h2>Next time ...</h2>

<p> I've received a fair bit of email asking how to customize various
    aspects of Emacs, so I'll try to scratch the surface of this vast topic
    next month, and discuss the Customize package. Don't hesitate to
    contact me at <tt>&lt;emarsden@mail.dotcom.fr&gt;</tt> with comments,
    corrections or suggestions (what's <em>your</em> favorite
    couldn't-do-without Emacs extension package?). <code>C-u 1000 M-x
    hail-emacs</code> !

<p> <b>PS</b> : Emacs isn't in any way limited to Linux, since
    implementations exist for many other operating systems (and some
    systems which only halfway operate). However, as one of the leading
    bits of free software, one of the most powerful, complex and
    customizable, I feel it has its place in the <i>Linux Gazette</i>.

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, Eric Marsden <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./hamilton.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./prelz.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->

<center>
<h1><font color="maroon">The Importance of Adopting an In-House Linux Expert</font></h1>
<H4>By <a href="mailto:fluido@fluido.markdata.pt">Carlo Prelz</a></H4>
</center>
<P> <HR> <P>  

Changes, even huge changes, are difficult to evaluate when you happen
to live close to whatever is undergoing the change, be it a child,
global politics, or the world of people who make a living with their
knowledge of information technology (IT) matters.
<p>
In our world, as the most common computer-dependent tasks get
standardized and as more and more raw computing power can be tapped
by more people, the figure of the white-clad ``computer priest'' is
about to vanish. But what is the world getting in exchange?
<p>
How is the young manager of a new company going to build its IT
infrastructure? No, he most likely won't phone IBM. Instead, he will order a bunch
of PCs, equipped with a various assortment of
Microsoft software. Other Microsoft software will follow, because
that's what <i>everybody</i> does.
<p>
Through a brief, fractal period, we have moved from one monopoly to
another, with the added disadvantage that people who blindly accept the new easy solution end up with
less-than-solid material. This material is much harder to
adapt to local needs. In the past, companies who could afford a high
level of informatization hire with a
handful of COBOL or RPGII programmers who could customize the software that needed
to be adapted.
<p>
Today, a manager will most probably be equipped with a
NT server, a Microsoft Office suite on Windows 95 for each desk, an
Ethernet network, and an assistance contract with some specialized
firm (who has to deal with dozens of other companies). He may organize
things so that his people have some limited sort of Internet
access. All standard, on a path that is being walked on by a huge mass
of people all around the globe.
<p>
As the path gets dug deeper and deeper, it gets harder to choose a
different one. This has to do with gravity: the deeper the path and
the steeper its sides, the harder the person, company or organization
has to <i>want</i> to choose a personal way to its own IT goals.
<p>
But why would a reasonable IT manager want to get out of the
mainstream? The keyword is <b>customization</b>.
<p>
Yes, you can program in Windows. But when it gets to having an
``intimate'' relationship with what actually happens, Windows leaves you
in the cold. You may find books, but unless you have uncommonly strong
links with the Microsoft engineering circles, you have no way to be
confident in the fact that whatever OS feature you are using won't
disappear without a trace in the next release. Which you will have to
use because everybody will be using it at a certain time. You end up
being <i>dependent</i> on the next brilliant idea they come up with at
Redmond, WA.
<p>
This strategy is evident. Human beings' laziness is again tapped, at
the benefit of a company that found itself at the right space-time
coordinates, and has been as un-principled as needed.
<p>
But if our young manager were to dedicate a moment of thought to how
to solve his IT problems, what are his choices?
<ul>
  <li> 	If he has enough resources, he can go the mainframe way. The road
is still open and fast becoming an elitist choice.
  <li> 	If his connections with IBM are vital, or for a series of
(constantly diminishing) other reasons, he may go the OS/2 way.
  <li> 	He may be romantic and like Macintoshes. There are concrete
rewards in these choices, although these give the impression of
diminishing, too.
  <li> 	He may instead choose the proprietary UNIX way--yes, the
overpriced one.
  <li> 	If he has a curious attitude, chances are that he has already met
Linux, and that he has seen Linux mentioned at an increasing rate
during the past months. Thanks to the Net, there is no scarcity of
information open to whomever decides to look around a bit.
  <li> 	He may also decide to either write or pay somebody to write an
operating system from scratch. This seems somewhat improbable.
</ul>
Let me know if I missed some important options. But of all the above,
the one that promises to bear more fruit is the Linux way. So, how to
give it a try? The best solution for a manager who would like his
computers do what is needed without learning the way himself, is to
engage the services of one or more Linux aficionados.
<P> <HR> <P>  
<h3>The Linux Aficionado</h3>
<P> <HR> <P>  
Linux has been growing like a big, healthy forest plant. Each branch
has been contributed by someone like us, who decided to spend a bit of
their free time to make the tree look and live better. Not ``for free'':
we humans always do things for a reward; it happens that money is not
the only (nor the best) reward. The impulse behind the Free Software
movement has been and still is to demonstrate to ourselves and to the
world that we worked well, that we brilliantly solved a problem. That
we created a handy tool, that was not there before. That is, that the
world is now a little bit nicer now than before we started developing
our ideas.
<p>
Of course, programmers need to survive, too. Here is what the Richard
Stallman has to say about the topic (excerpt from the GNU Manifesto):
<blockquote> 
``Won't programmers starve?''
</blockquote> <p><blockquote> 
I could answer that nobody is forced to be a programmer. Most of us
cannot manage to get any money for standing on the street and making
faces. But we are not, as a result, condemned to spend our lives
standing on the street making faces, and starving. We do something
else.
</blockquote> <p><blockquote> 
But that is the wrong answer because it accepts the questioner's
implicit assumption: that without ownership of software, programmers
cannot possibly be paid a cent. Supposedly it is all or nothing.
</blockquote> <p><blockquote> 
The real reason programmers will not starve is that it will still be
possible for them to get paid for programming; just not paid as much as
now.
</blockquote> <p><blockquote> 
Restricting copying is not the only basis for business in software.
It is the most common basis because it brings in the most money. If it
were prohibited, or rejected by the customer, software business would
move to other bases of organization which are now used less often.
There are always numerous ways to organize any kind of business.
</blockquote> <p><blockquote> 
Probably programming will not be as lucrative on the new basis as it
is now. But that is not an argument against the change. It is not
considered an injustice that sales clerks make the salaries that they
now do. If programmers made the same, that would not be an injustice
either. (In practice they would still make considerably more than
that.)
</blockquote> <p>
The above was written back in 1985, when programmers were still earning
big money; 12 years later, our market and contracting power has
diminished a lot. Gone are the days when a programmer could be the
best paid man in the company thanks to writing huge bits of database
access/data entry pieces of software that differed very little from
their brothers.
<p>
When the need arises for an application that is somehow different,
there is no other way than to call an actual programmer. Here are a
few characteristics that make a Linux aficionado an ideal choice for
such a special need:
<ul>
  <li> 	Passion. Something better than money as the reason for what we do.
  <li> 	Love for quality. Learning from previous experience, and being
able to judge and better our work.
  <li> 	Ability to solve problems. If a problem exists, we like see it
solved in the best possible way, and we generally find a way.
  <li> 	Loyalty. If we are given recognition, an interesting place to
work in, interesting things to do and a reasonable wage, we may oppose
more than normal resistance to the lure of head hunters.
</ul>
I may like to add a couple of counter-indications:
<ul>
  <li> 	Lack of particular enthusiasm for wearing ties or adopting
uniforms (or respecting poorly justified liberticide rules).
  <li> 	The wish to understand what one is doing renders less than
desirable a sort of job where you must focus on a tiny fraction of the
whole thing, knowing nothing about the complete picture.
</ul>
<P> <HR> <P>  
<h3>No Need for Another Windows95</h3>
<P> <HR> <P>  
There are recurring, well-financed efforts to create a new
good-for-everybody operating system on the robust structure of
Linux. These efforts are justified by the hope of snatching even a
small percentage of the huge market held by Microsoft.
A very small percentage of a very large sum may promise
reasonable earnings to those who follow this path.
<p>
Regardless of how things look like now, the omnipresent PC that
we see today has a limited time to live.
<p>
A very big slice of the PCs that are currently in use in the world are
used for standard operations: keeping one's correspondence, making
spreadsheet calculations, maintaining one's agenda, playing games and
looking around the Internet. How many PCs do you
know are being used with software that has been written especially for
them? The logical direction, one that much effort has been spent to
hamper, is that of including everything that a secretary, a
non-IT-oriented office worker or a common home user will ever need in
an idiot-proof box.
<p>
This tendency has at last emerged in the shape of network
computers. No matter which way is selected, the result of adopting an NC
is that, from the prospective of the user, there will simply be a
couple of plugs to insert into the respective sockets, and the user
will be ready to work or play. No need to reinstall Windows95 for the
nth time because the maintainer can't divine a better way to recover
from the cryptic error messages.
<p>
Along this way, comes the demise of shrink-wrap software.
If the server is the only place where a separate
operating system needs to be installed, it will be much harder for
Microsoft to maintain their stronghold on the computer market. NT has
very little advantage compared to the many UNIX options in the field. In
particular, it is not significantly easier to manage than UNIX by a
knowledgeable person. And if or when the networked world
becomes so easy to manage that a bunch of software <i>wizards</i> can
do the job, the next step will be NSes (Network Servers, I think I'll
patent the name...). Again, something that spells bad to a
software-only company that is programmed to EARN.
<p>
Isn't it futile to try to be the new Microsoft? As if it really
mattered much to have so much money that you will not have the
material possibility to spend it all in your lifetime.
<P> <HR> <P>  
<h3>Meet the Ideal Entrepreneur</h3>
<P> <HR> <P>  
So, what is there that is not futile? Doing something nice, that makes
the world a bit better. I said that before.
<p>
A human being has an idea. Some say they float around, and visit you
when you become receptive enough. She finds all the resources that are
needed to turn this idea into a practical product. After some time,
other people can exchange some of their own wealth to take advantage
of the idea of our entrepreneur.
<p>
Or the idea can be imported within a sufficiently fertile existing
corporation, one that will recognize the value of the idea and give
our human being enough space and resources to reach her goal.
<p>
Or the idea deals with bettering an established way of doing some
task.
<p>
What kind of enterprise can you think of, that won't benefit from the
use of IT? Most of the times, she will have to look for computer
assistance. It is to all the entrepreneurs who are
facing the problem of which way to informatize their pet project that
I would like to speak.
<p>
Linux may well be the best choice for you. But for Linux to adapt well
to <i>your</i> world, you will want to adopt one or more Linux
aficionados. You will want to secure the continuing services of a
person who deeply knows and appreciates the tools he works with. Who
can craft your personal solution. Who can maintain the operating
system that your solution works on abreast of the latest technical
progress.
<p>
Linux cannot be eternal. Nothing is. But it has reached a solid,
mature stage NOW. Especially, it is the ideal tool for tapping into
the networked world. Now is the time not to be lazy and to profit from
this situation. And keeping a Linux aficionado happy and well-fed now
might also imply finding yourself in a more elevated position in the
post-Microsoft world, tomorrow.

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, Carlo Prelz <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./marsden.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./nelson.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->

<center>
<h1><font color="maroon">Mastering Kernel Modules with Caldera</font></h1>
<H4>By <a href="mailto:nelson@er.doe.gov">David Nelson</a></H4>
</center>
<P> <HR> <P>  
You shouldn't have to read this article. The concept of Linux kernel
modules is fairly simple. Unfortunately, information needed to compile,
install and use modules is scattered over several HOWTOs, READMEs,
and man pages. Plus, the files which need to be modified are in several
obscure directories. 
<p>
I finally wrote this cookbook approach to get myself, and you, started.
Once you are up and running with modules, you can dig into the details
later. I tested this material on an X86 processor running Caldera Open
Linux 1.1, which is close to Red Hat 4.2. You mileage with other
processors and distributions may vary.
<p>
Why use modules? Modules let you compile a small, fast kernel, then
install and remove device drivers on demand. Without modules the Linux
kernel could bloat to resemble a certain commercial OS.
<p>
First, I recommend that you compile a base kernel
that includes all essential capabilities for your system without
modules. I know this sounds like we are going backwards, but you don't
want to lose the ability to boot up because you messed up your modules.
The README in usr/src/linux is your guide, but basically you execute
the command:
<pre>
make mrproper; make xconfig 
</pre>
(or <tt>menuconfig</tt> or <tt>config</tt>) to include
all needed capabilities, then run:
<pre>
make dep; make clean; make zImage
</pre>
Save your kernel configuration to a file named kernelconf.base, in case you need to
recompile. The xconfig menu prompts you to save and load configuration
files. If you use menuconfig or config, the current configuration is in
the file /usr/src/linux/.config; copy that file to kernelconf.base. If you
configured too big a kernel, final compilation will fail. If this
happens, execute <tt>make&nbsp;bzImage</tt> instead of zImage.
Your compiled
kernel will be in the directory /usr/src/linux/arch/i386/boot.
<p>
You might have made a mistake in compiling your base kernel, so don't
throw away your old one. If you are running LILO, rename your new
kernel to zImage.base and copy it to the location of your current kernel,
usually / or /boot. Add a section to /etc/lilo.conf that lets you
select either your default or base kernel on boot up. My lilo.conf
is shown here minus some comment lines:
<pre>
# general section
boot = /dev/hda3
install = /boot/boot.b
message = /boot/message
prompt
timeout = 50

# default entry
image = /bzImage
        label = linux
        root = /dev/hda3
        read-only

# base kernel
image = /zImage.base
        label = base
        root = /dev/hda3
        read-only
</pre>
The important addition to lilo.conf is the last section
(<tt>#base&nbsp;kernel</tt>) which tells LILO about your new kernel.
Also, be sure lilo.conf
has <tt>prompt</tt> and <tt>timeout</tt> lines. Now execute
<tt>lilo</tt> and then reboot.
LILO will pause giving the prompt <tt>boot:</tt>. If you hit TAB, you will be
given the choices <tt>linux</tt> and <tt>base</tt>. Enter
<tt>base</tt>, and your new kernel will
boot. You may get complaining messages about bad module dependencies,
but if your base kernel is complete that shouldn't bother you. If
something goes wrong, reboot and enter <tt>linux</tt> (or just wait the
timeout interval) and your old kernel will boot. Make sure you have a
working base kernel before proceeding. With this approach you
never burn your bridges (or kernel) behind you.
<p>
If you don't use LILO, make a boot floppy for your base kernel. To do
this, insert a floppy and execute <tt>make&nbsp;zdisk</tt>, instead of zImage.
<p>
You are now ready to compile a kernel with modules tailored to your
system. Execute the same commands as above, but when you execute xconfig or
menuconfig pick some features to compile as modules. I suggest
you experiment first by picking nice-to-have, but not-necessary,
modules to add to zImage.base. Good choices might be printer support or
floppy support (unless you are booting from the floppy). Save your
configuration as kernelconf.mod in case you need to go back. Also,
write down which modules you are compiling. To know exactly which
modules are compiled, I suggest you move or delete your old modules (if
any). The Caldera release includes a lot of modules. They are in
/lib/modules/2.0.29. I moved my old ones into subdirectories rather
than deleting them in case I needed to back up. If you are working
with a different release of the kernel, instead of subdirectory 2.0.29
you will have a subdirectory corresponding to your release number.
<p>
After executing <tt>make&nbsp;zImage</tt>, run:
<pre>
make modules; make modules_install
</pre>
As before, move (using <b>cd</b>) to the directory containing zImage,
rename it zImage.mod and
move it to the directory where LILO will look for it. Put a new section at
the bottom of lilo.conf to let you boot this kernel with the label
<tt>modules</tt>. If you don't use LILO, make another zDisk.
<p>
Now, execute
<tt>depmod -aq</tt>. This creates /lib/modules/2.0.29/modules.dep, needed by
module utilities. Next, execute the following:
<pre>
modprobe -c | grep -v '^path' > /etc/conf.modules
</pre>
This command sets up another file needed by the module utilities.
<p>
Now reboot, choosing label <tt>modules</tt> at the boot prompt.
Next, move to the
/etc/modules/2.0.29 directory. It should contain a file with a very long name
like the following:
<pre>
#1 Tue Feb 11 20:36:48 MET 1997.default
</pre>
This file is read at boot time by /etc/rc.d/rc.modules. It contains a
list of the default modules loaded when the kernel boots. You
need to change both the name and the contents. Fixing the name is the hard
part. In directory /etc/modules/2.0.29 execute the commands:
<pre>
FILE=i`uname -v`.default
cp &quot;#1 Tue&quot;* &quot;$FILE&quot;
</pre>
This magic creates a file with the name that rc.modules will look for
on bootup. The name is based on the time when the kernel was compiled.
If you recompile the kernel, you must repeat the magic.
<p>
Edit this file to contain just the modules you want loaded at bootup.
For example, it might contain the lines
<pre>
floppy
lp
</pre>
which would load the floppy and printer modules, assuming you compiled
them as modules. To get your editor to accept this file, you may need to put
quotes around the name.
<p>
To load a module manually, execute
<tt>insmod&nbsp;'modname'</tt>. To remove it execute
<tt>rmmod&nbsp;'modname'</tt>. To tell which
modules are currently loaded, execute <tt>lsmod</tt>.
<p>
The best toy is <b>kerneld</b>; it automatically loads and unloads modules as
needed. Assume you have compiled the floppy driver as a module. Check
whether it is loaded by executing lsmod. If it is, remove it by
executing <tt>rmmod floppy</tt>. Then execute
<tt>kerneld</tt>.
Now execute <tt>mount&nbsp;/mnt/floppy</tt>
(or whatever mounts your floppy). Magically, kerneld
installs the floppy module when needed. It will also uninstall modules
which haven't been used for a while, keeping your kernel lean and mean.
<p>
You now know enough to experiment with modules without crashing your
kernel on bootup. Read the Module mini-HOWTO, the kerneld mini-HOWTO, and
the man pages for the utilities to become a real expert. Happy
moduling!

<p><HR> <P> 
<h3>Resources</h3>
<p><HR> <P> 
<A HREF="http://www.linuxresources.com/LDP/HOWTO/mini/Modules.html">
Module mini-HOWTO</A> 
<p>
<A HREF="http://www.linuxresources.com/LDP/HOWTO/mini/Kerneld.html">
kerneld mini-HOWTO</A> 

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, David Nelson <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./prelz.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./coldiron.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->


<P><B><FONT SIZE=+4>Replacing Windows NT Server with Linux</FONT></B>
<BR>Copyright (c) 1997 Quinn P. Coldiron
<BR>qcoldiro@unlinfo.unl.edu
<BR><BR><BR><B><FONT SIZE=+2>Table of Contents</FONT></B>

<P><B><A HREF="#Introduction">Introduction</A></B>

<P><B>Section 1--<A HREF="#Outlining Our Situation">Outlining Our Situation</A></B>

<P><B>Section 2-- Why we chose RedHat Linux</B>
<UL>
<LI>
<A HREF="#Linux Features">Linux Features</A></LI>

<LI>
<A HREF="#Reliability">Reliability</A></LI>

<LI>
<A HREF="#Cross platform">Cross platform</A></LI>

<LI>
<A HREF="#Compatibility with Existing Applications">Compatibility</A></LI>

<LI>
<A HREF="#Speed">Speed</A></LI>

<LI>
<A HREF="#Speed">Inexpensive</A></LI>

<LI>
<A HREF="#Low hardware requirements">Low hardware requirements</A></LI>

<LI>
<A HREF="#Ease of administration">Ease of administration</A></LI>

<LI>
<A HREF="#Simple upgrade path">Simple upgrade path</A></LI>

<LI>
<A HREF="#Remote control and administration">Remote control and administration</A></LI>
</UL>
<B>Section 3--Under the Hood</B>
<UL>
<LI>
<A HREF="#Under the Hood">Setting up the server</A></LI>

<LI>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="#Linux installation">Linux
installation</A></LI>

<LI>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="#Samba Installation/Setup">Samba
installation/setup</A></LI>

<LI>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="#Netatalk Installation/Setup">Netatalk
installation/setup</A></LI>

<LI>
Installing The Cats Pajamas (Getting a DOS network application to run on
Linux)</LI>

<LI>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="#Installing Cats on the Server">Installing
Cats on the Server</A></LI>

<LI>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="#Configuring your Windows clients">Configuring
your Windows clients</A></LI>

<LI>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="#Configuring the DOS emulator to run Cats">Configuring
the DOS emulator to run Cats</A></LI>

<LI>
<A HREF="#Installing a RAID">Installing a RAID</A></LI>

<LI>
Daily administration</LI>

<LI>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="#System backups">System backups</A></LI>

<LI>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="#Scheduling events">Scheduling
events</A></LI>

<LI>
<A HREF="#Replacing your Desktop OS with Linux">Replacing your Desktop
OS with Linux</A></LI>
</UL>
<B>Appendix A--<A HREF="http://www.redhat.com/support/docs/rhl/manual/manual/">RedHat
5.0 Installation Guide</A></B>

<P><B>Appendix B--<A HREF="http://samba.anu.edu/samba/">Samba</A></B>
<UL>
<LI>
<A HREF="http://samba.anu.edu.au/cifs/docs/what-is-smb.html">Just What
is SMB?</A></LI>

<LI>
<A HREF="http://samba.anu.edu.au/samba/docs/faq/sambafaq.html">Samba FAQ</A></LI>

<LI>
<A HREF="http://samba.anu.edu.au/samba/docs/smb_serv/html/smb_se.html">Samba
HOW-TO</A></LI>
</UL>
<B>Appendix C--<A HREF="http://www.suse.com/~dosemu/doc-0.67/README.html">DOSEMU
Manual</A></B>
<BR>&nbsp;

<P>
<HR ALIGN=LEFT>
<BR><A NAME="Introduction"></A><B><FONT SIZE=+2>Introduction</FONT></B>

<P>Network Operating Systems (NOS) have many features and capabilities
that allow the Information Systems departments of most organizations to
better server your organization and help streamline work flow. Each NOS
has different features and a excels in different areas. Traditionally,
Novell Netware has been viewed as the best file/printer server, Unix was
viewed as the premiere application and database server and recently, Windows
NT has come in as a good choice for the smaller networks as a file/printer
server or application server. The market has become very aggressive with
each of these platforms branching out into each others market area. Microsoft
has expanded NT into the midrange server market once dominated by Novell
and is trying to get into the high end market which was once filled by
Unix venders such as Sun, Hewlett Packard and Silicone Graphics.

<P>I inherited an aging Novell Netware 3.11 server when I began my career
at the University of Nebraska Press that was on an under powered Pentium
90 and had older disk drives that were failing. I also wanted to expand
into other areas, so I knew this was going to be my first project. When
I began looking at my options to replace our aging Novell Netware server,
I of course turned first to the just released Windows NT Server 4.0. The
marketing materials, magazines and television advertisements all told me
that this was the one thing that would solve all my problems. The operating
system promised to be easier to setup and maintain than the Netware product
it was replacing and it could easily handle the 55 users on my network.
Fourteen months later, we are running Linux as our server.

<P>Linux is a completely free reimplementation of the POSIX specification,
with SYSV and BSD extensions (which means it looks like Unix, but does
not come from the same source code base), which is available in both source
code and binary form. Its copyright is owned by Linus Torvalds &lt;torvalds@transmeta.com>
and other contributors, and is freely redistributable under the terms of
the GNU General Public License (GPL). A copy of the GPL is included with
the Linux source; you can also get a copy from ftp://prep.ai.mit.edu/pub/gnu/COPYING.

<P>Linux is not public domain, nor is it `shareware'. It is `free' software,
commonly called freeware, and you may give away or sell copies, but you
must include the source code or make it available in the same way as any
binaries you give or sell. If you distribute any modifications, you are
legally bound to distribute the source for those modifications. See the
GNU General Public License for details.

<P>Linux is still free as of version 2.0, and will continue to be free.
Because of the nature of the GPL to which Linux is subject, it would be
illegal for it to be made not free. Note carefully: the `free' part involves
access to the source code rather than money; it is perfectly legal to charge
money for distributing Linux, so long as you also distribute the source
code. This is a generalization; if you want the fine points, read the GPL.

<P>Linux runs on 386/486/Pentium machines with ISA, EISA, PCI and VLB busses.
MCA (IBM's proprietary bus) is not well-supported in 2.0.x and earlier
versions, but support has been added to the current development tree, 2.1.x.
If you are interested, see http://glycerine.itsmm.uni.edu/mca

<P>There is a port to multiple Motorola 680x0 platforms (currently running
on some Amigas, Ataris, and VME machines), which now works quite well.
It requires a 68020 with an MMU, a 68030, 68040, or a 68060, and also requires
an FPU. Networking and X now work. See news:comp.os.linux.m68k

<P>Linux runs well on DEC's Alpha CPU, currently supporting the "Jensen",
"NoName", "Cabriolet", "Universal Desktop Box" (better known as the Multia),
and many other platforms. For more information, see http://www.azstarnet.com/~axplinux/FAQ.html

<P>Linux runs well on Sun SPARCs; most sun4c and sun4m machines now run
Linux, with support for sun4 and sun4u in active development. Red Hat Linux
is (as of this writing) the only Linux distribution available for SPARCs;
see http://www.redhat.com/support/docs/rhl-sparc/

<P>Linux is being actively ported to the PowerPC architecture, including
PowerMac (Nubus and PCI), Motorola, IBM, and Be machines. See http://www.cs.nmt.edu/~linuxppc/
and http://www.linuxppc.org/

<P>Ports to other machines, including MIPS and ARM, are under way and showing
various amounts of progress. Don't hold your breath, but if you are interested
and able to contribute, you may well find other developers who wish to
work with you.

<P>Linux is no longer considered to be in beta testing, as version 1.0
was released on March 14, 1994. There are still bugs in the system, and
new bugs will creep up and be fixed as time goes on. Because Linux follows
the ``open development model'', all new versions will be released to the
public, whether or not they are considered ``production quality''. However,
in order to help people tell whether they are getting a stable version
or not, the following scheme has been implemented: Versions 1.x.y, where
x is an even number, are stable versions, and only bug fixes will be applied
as y is incremented. So from version 1.2.2 to 1.2.3, there were only bug
fixes, and no new features. Versions 1.x.y, where x is an odd number, are
beta-quality releases for developers only, and may be unstable and may
crash, and are having new features added to them all the time. From time
to time, as the current development kernel stabilizes, it will be frozen
as the new ``stable'' kernel, and development will continue on a new development
version of the kernel.

<P>The current stable version is 2.0.31 (this will continue to change as
new device drivers get added and bugs fixed), and development has also
started on the experimental 2.1.x kernels. If 2.0.x is too new for you,
you may want to stick with 1.2.13 for the time being. However, the latest
releases of 2.0 have proved quite stable. Do note that in order to upgrade
from 1.2 to 2.0, you need to upgrade some utilities as well; you may wish
to upgrade to the latest version of your Linux distribution in order to
obtain those utilities. The Linux kernel source code also contains a file,
Documentation/Changes, which explains these changes and more.

<P>Most versions of Linux, beta or not, are quite stable, and you can keep
using those if they do what you need and you don't want to be on the bleeding
edge. One site had a computer running version 0.97p1 (dating from the summer
of 1992) for over 136 days without an error or crash. (It would have been
longer if the backhoe operator hadn't mistaken a main power transformer
for a dumpster...) Others have posted uptimes in excess of a year. One
site still had a computer running Linux 0.99p15s over 600 days at last
report.

<P>One thing to be aware of is that Linux is developed using an open and
distributed model, instead of a closed and centralized model like much
other software. This means that the current development version is always
public (with up to a week or two of delay) so that anybody can use it.
The result is that whenever a version with new functionality is released,
it almost always contains bugs, but it also results in a very rapid development
so that the bugs are found and corrected quickly, often in hours, as many
people work to fix them.

<P>In contrast, the closed and centralized model means that there is only
one person or team working on the project, and they only release software
that they think is working well. Often this leads to long intervals between
releases, long waiting for bug fixes, and slower development. The latest
release of such software to the public is sometimes of higher quality,
but the development speed is generally much slower.

<P>As of October 24, 1997, the current stable version of Linux is 2.0.31,
and the latest development version is 2.1.59.

<P>I will begin this report by covering the areas that we were concerned
about and giving reasons that were chose options that we went with. I will
not get very technical in this fist section, but will cover in detail how
we implemented each part of the system and give examples of the configuration
files in section two.
<DIV ALIGN=right>
<HR ALIGN=RIGHT></DIV>

<DIV ALIGN=right><FONT SIZE=+4>Section 1</FONT></DIV>

<DIV ALIGN=right><A NAME="Outlining Our Situation"></A><FONT SIZE=+4>Outlining
Our Situation</FONT></DIV>

<DIV ALIGN=right><B><FONT SIZE=+2>Our Situation</FONT></B></DIV>
When I became the Information Systems Department manager for the University
of Nebraska Press I inherited a very tired and aging Novell Netware 3.1
server that was handling all the network serving duties for approximately
fifty users. This is not a large network and our needs are not out of the
ordinary, but this machine was due for replacement. Novell was on version
4.x, NT 4.0 had just come out and this machine was only a Pentium 90 with
data drives that were noisier than Nebraska's memorial stadium.

<P>It was time to begin the search for replacements and I had the same
issues to deal with that my predecessors had, plus some new ones. The main
issue was compatibility with our order fulfillment and inventory system
called The Cat's Pajamas. This system was originally developed on the Data
General line of mini and mainframe computers using its interpreted language.
The system was ported to PC servers (mainly Novell Netware) when a company
called Subject Wills ported the interpreter to the PC platform. It has
a character based user interface, stores all its data in flat indexed text
files and is pretty fast and stable on the Novell platform. Our new requirements
were for remote access for our warehouse, and if possible, access for the
five Macs that we have, but spend as little money as possible.

<P>I was not very interested in upgrading our current Netware license,
since at this time Novell was playing the CEO of the Month game which had
caused me to lose much of my confidence in the company. The next logical
choice was Microsoft Windows NT. I called Cats and asked if the application
would run on NT and they told me that they had a few installations and
things seemed to be running fine, but I would need a different version
of the DBC interpreter, which they uploaded for me. I proceeded to copy
the entire system and database to the NT server and logged on from my Windows
95 PC. I had to rewrite the batch file that Cats uses to start because
they were using Netware network commands, but I was able to get them changed
and get a session up.

<P>At this point I thought this looked very good, so I ordered the production
server. The server was a dual CPU Pentium 150 with built in Adaptec 2940UW
SCSI controller and 256MB of RAM. I thought this would be perfect to act
as the CATS server, file server and printer server for 50 people, especially
since Netware was doing this on a Pentium 90 with 64 MB of RAM. I got the
server a few weeks later, installed NT 4.0 and Cats. After I got Cats installed
I had our business department and Customer Service department try running
some large and CPU intensive reports on it and things seemed to run great,
so we pushed it into service. At this same time I was setting up a RedHat
Linux 4.1 machine on a Pentium 100 with 32 MB of RAM. I had used RedHat
Linux in my previous position with great luck as a web server and StreamWorks
audio/video server so I wanted to see if it could fit in here, but I didn't
know where or how.

<P>Life after moving Cats to NT was a nightmare. The system was crashing
two to three times a day with no reason that I could find. I was on the
phone with Microsoft and Cats constantly, but nobody could figure it out.
Microsoft had me apply Service Packs one through three and a few HotFixes,
which helped, but it still was crashing at least twice a week with the
infamous "Blue Screen of Death". After many weeks and about $1500.00 in
phone support from Microsoft, the technical support rep told me that I
should find a better software package than The Cat's Pajamas. This is was
not the solution I was looking for, since this is the package that a sizeable
percentage of presses our size nationwide are running, so I was forced
to bring the old Novell server back into production until I could figure
something out.

<P>By this time I had upgraded the RedHat Linux machine to version 4.2,
but it still wasn't doing much, so I added two IDE 1.6 GB hard drives,
installed SAMBA and copied CATS over to this computer to play a little.
I was able to connect from my Windows 95 computer and run Cats without
any modifications to the batch file I had created for the NT server. I
had the Business manager and Customer Service manager try the reports again
and everything seemed fine, but I still had my doubts, so I just kept the
system up for myself and the IS department to test until a later date.

<P>The Netware server was still holding on and doing its job until I got
a call one Thursday night at about 9:00 from our Customer Service manager.
He had been running the reindexing program to prepare for the month-end
closing that was to start Friday, but the server had crashed. I worked
on it until about 12:30 am and finally got it working, but the whole thing
died again Friday morning at about 6:30 and again at 7:00, so I knew we
were in trouble. The only option left was to replace the server now and
the only thing I had was the Linux server, so I restored Cats off our Windows
NT tape backup machine to the Linux server and changed the login scripts
to connect the users to this server for the Cats drives. Within one hour,
we were back in operation.

<P>After completing the morning duties, we normally run a complete Cats
backup before we continue with closing which usually would take two hours
to complete on the Netware server. The Linux machine was able to do the
entire backup in 45 minutes, cutting a little over an hour off our closing
time. This increase in speed came from a decrease in hardware because the
Linux server was running only 32 MB in RAM and IDE hard drives where the
Netware server had 64 MB in RAM and SCSI drives. The speed increase has
been noticed in daily work also. I get almost daily remarks that the system
seems to be running faster and more reliable.

<P>We have recently upgraded the CPU to a 200Mhz Pentium and have upgraded
the Memory to 64 MB to handle the newest plans of making this server replace
our Windows NT file/printer server, which still crashes about twice a month
for no reason, even after an additional $1,500 in tech support with Microsoft.
This single computer running RedHat Linux will replace both our Novell
Netware 3.11 server and our Windows NT 4.0 server, while decreasing total
hardware requirements. With the recent advances from the Samba team in
supporting the NT domain structure and the December 1997 release of RedHat
5.0, I expect to have a very efficient and inexpensive server for our Windows
95, Windows NT and Macintosh clients.
<DIV ALIGN=right>
<HR ALIGN=RIGHT></DIV>

<DIV ALIGN=right><FONT SIZE=+4>Section 2</FONT></DIV>

<DIV ALIGN=right><A NAME="Why We Chose RedHat Linux"></A><FONT SIZE=+4>Why
We Chose RedHat Linux</FONT></DIV>

<DIV ALIGN=right><A NAME="Linux Features"></A><B><FONT SIZE=+2>Linux Features</FONT></B></DIV>
Linux is a very feature rich operating system. Many of its features are
not found on its commercial competitor Windows NT due to the fact that
Unix has been in constant development since it was invented in the early
1970's. Even though Linux has only been around since the early 90's, it
benefits from the rich archives of Unix applications and utilities because
of its POSIX compliance. Linux is unique in that the kernel does not use
any code from previous Unix implementations, but can still tap into the
libraries of BSD and System V distributions. I feel the strongest feature
of Linux is the Internet itself and the many technical users that are responsible
for the development of the many drivers and ports to other hardware platforms.
Many Intel platform bug fixes are release for Linux before they are release
in other ``mainstream'' operating systems mainly due to the fact the users
are also the developers.
<UL>
<LI>
&middot; multitasking: several programs running at once.</LI>

<LI>
&middot; multi-user: several users on the same machine at once (and no
two-user licenses!)..</LI>

<LI>
&middot; multiplatform: runs on many different CPUs, not just Intel.</LI>

<LI>
&middot; multiprocessor: SMP support is available on the Intel and SPARC
platforms (with work currently in progress on other platforms), and Linux
is used in several loosely-coupled MP applications, including Beowulf systems
(see http://cesdis.gsfc.nasa.gov/linux-web/beowulf/beowulf.html) and the
Fujitsu AP1000+ SPARC-based supercomputer.</LI>

<LI>
&middot; runs in protected mode on the 386.</LI>

<LI>
&middot; has memory protection between processes, so that one program can't
bring the whole system down.</LI>

<LI>
&middot; demand loads executables: Linux only reads from disk those parts
of a program that are actually used.</LI>

<LI>
&middot; shared copy-on-write pages among executables. This means that
multiple process can use the same memory to run in. When one tries to write
to that memory, that page (4KB piece of memory) is copied somewhere else.
Copy-on-write has two benefits: increasing speed and decreasing memory
use.</LI>

<LI>
&middot; virtual memory using paging (not swapping whole processes) to
disk: to a separate partition or a file in the filesystem, or both, with
the possibility of adding more swapping areas during runtime (yes, they're
still called swapping areas). A total of 16 of these 128 MB swapping areas
can be used at once, for a theoretical total of 2 GB of usable swap space.
It is simple to increase this if necessary, by changing a few lines of
source code.</LI>

<LI>
&middot; a unified memory pool for user programs and disk cache, so that
all free memory can be used for caching, and the cache can be reduced when
running large programs.</LI>

<LI>
&middot; dynamically linked shared libraries (DLL's), and static libraries
too, of course.</LI>

<LI>
&middot; does core dumps for post-mortem analysis, allowing the use of
a debugger on a program not only while it is running but also after it
has crashed.</LI>

<LI>
&middot; mostly compatible with POSIX, System V, and BSD at the source
level.</LI>

<LI>
&middot; through an iBCS2-compliant emulation module, mostly compatible
with SCO, SVR3, and SVR4 at the binary level.</LI>

<LI>
&middot; all source code is available, including the whole kernel and all
drivers, the development tools and all user programs; also, all of it is
freely distributable. Plenty of commercial programs are being provided
for Linux without source, but everything that has been free, including
the entire base operating system, is still free.</LI>

<LI>
&middot; POSIX job control.</LI>

<LI>
&middot; pseudoterminals (pty's).</LI>

<LI>
&middot; 387-emulation in the kernel so that programs don't need to do
their own math emulation. Every computer running Linux appears to have
a math coprocessor. Of course, if your computer already contains an FPU,
it will be used instead of the emulation, and you can even compile your
own kernel with math emulation removed, for a small memory gain.</LI>

<LI>
&middot; support for many national or customized keyboards, and it is fairly
easy to add new ones dynamically.</LI>

<LI>
&middot; multiple virtual consoles: several independent login sessions
through the console, you switch by pressing a hot-key combination (not
dependent on video hardware). These are dynamically a located; you can
use up to 64.</LI>

<LI>
&middot; Supports several common filesystems, including minix, Xenix, and
all the common system V file systems, and has an advanced filesystem of
its own, which offers filesystems of up to 4 TB, and names up to 255 characters
long.</LI>

<LI>
&middot; transparent access to MS-DOS partitions (or OS/2 FAT partitions)
via a special filesystem: you don't need any special commands to use the
MS-DOS partition, it looks just like a normal Unix filesystem (except for
funny restrictions on filenames, permissions, and so on). MS-DOS 6 co pressed
partitions do not work at this time without a patch (dmsdosfs). VFAT (WNT,
Windows 95) support is available in Linux 2.0 &middot;special filesystem
called UMSDOS which allows Linux to be installed on a DOS filesystem.</LI>

<LI>
&middot; read-only HPFS-2 support for OS/2 2.1</LI>

<LI>
&middot; HFS (Macintosh) file system support is available separately as
a module.</LI>

<LI>
&middot; CD-ROM filesystem which reads all standard formats of CD-ROMs.</LI>

<LI>
&middot; TCP/IP networking, including ftp, telnet, NFS, etc.</LI>

<LI>
&middot; AppleTalk server</LI>

<LI>
&middot; Netware client and server</LI>

<LI>
&middot; Lan Manager (SMB) client and server</LI>

<LI>
&middot; Many networking protocols: the base protocols available in the
latest development kernels include TCP, IPv4, IPv6, AX.25, X.25, IPX, DDP
(AppleTalk), NetBEUI, Netrom, and others. Stable ne work protocols included
in the stable kernels currently include TCP, IPv4, IPX, DDP, and AX.25.</LI>
</UL>

<DIV ALIGN=right><A NAME="Reliability"></A><B><FONT SIZE=+2>Reliability</FONT></B></DIV>

<DIV ALIGN=right><I>The system has to be available 365 days a year.</I></DIV>
The Linux server has proven to be as reliable as any other server operating
system I have ever used, and more reliable than most. My past experience
includes managing Novell Netware, Windows NT 3.51 and 4.0 and Irix (Silicon
Graphics) servers. I must say that Novell has always been a steady performer,
but I have always felt that it was more complex than it needed to be. The
Silicon Graphics machines were always rock solid, but they should be when
you pay more than $20,000 for a single server.

<P>My Linux server was initially setup in January 1997 as a test platform
to see if it could handle being a production server. At this time I had
installed a copy of The Cat's Pajamas, Apache, StreamWorks (audio/video
server) and Samba. Using Samba, I was able to connect the Information Systems
Department to this server so we could run Cats and test the audio/video
server. A typical day of testing the system would include reindexing and
reformatting Cats while serving multiple 100 megabyte video files and acting
as a file server. The Linux machine was able to handle all of this while
running on only 32 megabytes of RAM and using a Pentium 100 CPU.

<P>From January 1997 to July 1997, we experienced only three shutdowns
of this server, two of which were caused by power failures in the building
and the third time was due to stupidity on the administrator's part. This
reliability was a key factor in our judgment to use Linux as our server
platform.

<P>The installation of NT was simple, and it was easy to get the system
connected to all the printers, but it proved to be unreliable. We were
experiencing crashes every day, even after installing service packs one
and two. I then installed a hot fix to service pack two which was to fix
errors in the Macintosh services which helped. I was down to crashing just
one to two times a month. I also tried to run Cats off this system, which
was a complete disaster since we could not get more than five users at
a time in Cats, and reports would take forever to run.
<DIV ALIGN=right><A NAME="Cross platform"></A><B><FONT SIZE=+2>Cross platform</FONT></B></DIV>

<DIV ALIGN=right><I>The new server must be able to serve the Mac users
as well as the Windows clients.</I></DIV>
The server must be able to allow connections from Windows and Macintosh
clients. All major server operating system allow for this, including Linux.
To server Windows clients, Linux uses a package called Samba. Samba is
server software for computers running under Unix or another Unix-like operating
systems with standard TCP/IP available. Samba, as it stands right now,
depends on Unix file structure, permissions, system calls and services.
It provides file and printer services for clients using some variants of
SMB (Server Message Block) protocol. SMB is a "native" networking protocol
used by MS-DOS based (in a very broad sense, including derivatives) clients.
They include those from IBM, ICL, Microsoft and even one particular Novell
product. In particular clients are distributed with `Windows for Workgroups',
`Windows 95', 'Windows NT', 'OS/2 Warp and others.

<P>Some of Samba's server cousins include DEC Pathworks, Microsoft LAN
Manager/X, OS/2 Lan Manager, IBM LAN Server, Syntax Server and Windows
NT Server. Some clients such as Windows 95/Workgroups or Warp Connect can
also act as low volume servers with limited management facilities.

<P>SMB is becoming very popular, mainly owing to these factors:
<UL>
<LI>
&middot; Windows 95 has dial-up access to PPP servers with an included
service, and this service allows one to "browse" to public shares on the
Internet.</LI>

<LI>
&middot; Samba is "free" and this is a lot less expensive than Novell!
(friendlier too!)</LI>

<LI>
&middot; With Samba, Unix servers, well connected to a global network,
can speak in a "native" protocol of clients. It is much simpler to maintain
one more protocol on a capable server than teach new tricks to multiple
clients which were never meant to do something else.</LI>

<LI>
&middot; There is an established, well tested way of doing SMB over TCP/IP
described in publicly available RFC 1001 and RFC 1002 documents. This means
that SMB has a head start when it comes to Internet integration.</LI>
</UL>
&nbsp;
<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="667" HEIGHT="177" >
<TR>
<TD WIDTH="50%" HEIGHT="170">&nbsp;<IMG SRC="./gx/coldiron/netatalk.gif" NATURALSIZEFLAG="0" HEIGHT=125 WIDTH=384 ALIGN=BOTTOM></TD>

<TD WIDTH="50%">&nbsp;On the Macintosh side, Netatalk provides the connectivity
services. Netatalk is a Unix implementation of the AppleTalk Protocol Suite,
originally for BSD-derived systems. It includes support for routing AppleTalk,
serving Unix and AFS file systems over AFP (AppleShare), serving Unix printers
and accessing AppleTalk printers over PAP. A number of other minor printing
and debugging utilities are also included.</TD>
</TR>
</TABLE>
&nbsp;
<DIV ALIGN=right><A NAME="Compatibility with Existing Applications"></A></DIV>

<DIV ALIGN=right><B><FONT SIZE=+2>Compatibility with Existing Applications</FONT></B></DIV>

<DIV ALIGN=right><I>This server would have to be compatible with The Cat's
Pajamas</I></DIV>
When we tried to move to Windows NT, we were given a migration guideline
from The Cats Pajama's to follow. The instructions were simple and the
entire migration took little time, but performance was terrible. We needed
a system that could handle serving the system to the network and help maintain
the integrity of the Cats data files. I have been told that Unix heavily
caches file I/O activity (more so than Windows NT or Novell Netware), so
this added to my hopes that Linux would be a strong server platform for
Cats, which is a file I/O intensive application.

<P>My hopes were verified when we formally flipped the switch on the Linux
server and turned off the Novell server. Cats ran smoothly and gracefully
scaled up to the normal daily user level without any slowdowns or misfortunes.
The Novell Netware server would normally experience periods when the system
would slow down severely, and then speed back up to normal levels after
5 to 10 minutes. During these slowdowns, Cat's would become virtually useless,
and sometimes users would be booted out of Cat's totally.

<P>Another key area that I needed to be compatible with was the world Wide
Web. I needed to be able to get CGI programs that were already tested and
in use without having to develop them all myself. I also wanted to be able
to get help easily and cheaply on setting up the web server and fixing
it when it breaks. Linux uses Apache, the most widely used web server in
the world. I can easily get support from mailing lists , news groups and
Internet BBS's.
<BR><A HREF="http://www.netcraft.com/survey/">(http://www.netcraft.com/survey/)</A>
<DIV ALIGN=right><A NAME="Speed"></A><B><FONT SIZE=+2>Speed</FONT></B></DIV>

<DIV ALIGN=right><I>After installing the Windows NT server, many users
complained about slows access times for the network drives.</I></DIV>
My users equate network drive access speed with network quality. They were
very pleased with the speed of saving and opening files when they were
on the Novell Netware server, but expressed disappointment in the speed
of saving and opening files when we switch to the Windows NT server. One
way that I have very unscientifically measured the speed of the Linux server
was when we were using a Windows NT 4.0 machine to backup the Cats files
off the Linux machine. This operation took 45 minutes while the exact same
operation on the Novell server would take at least an hour longer. Currently
I am backing up CATS by creating a gzipped tar file directly on the Linux
server and it takes a little less than 45 minutes. Below is part of the
output from the df command that shows the drive I have Cats on. This shows
the current size of our Cats installation so you can get an idea of how
much information is backed up in 45 minutes.

<P>Filesystem 1024-blocks Used Available Capacity Mounted on

<P><FONT FACE="Courier New,Courier">/dev/hdc1 2417493 1584580 707923 69%
/usr/local/samba-sys</FONT>
<DIV ALIGN=right><A NAME="Inexpensive"></A><B><FONT SIZE=+2>Inexpensive</FONT></B></DIV>

<DIV ALIGN=right><I>I could not afford to go through another costly installation
</I>.</DIV>
During the twelve months of running Windows NT 4.0 server, I have spent
more than $3,000 in technical support with Microsoft to remedy various
problems, including the frequent crashes and problems running Cats. The
fix for the crashes was always ``Install the latest service pack or hot
fix and call us back tomorrow.'' The fix for Cats was ``Get rid of The
Cat's Pajamas and find a better system which was more Windows compatible
to replace it.'' I wish I would have documented that support call with
Microsoft so I had the name of the tech rep.

<P>Technical support is no the only area of expense involved with Windows
NT. The table below shows typical applications and the cost for each platform.
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 WIDTH="438" BGCOLOR="#CCCCCC" NOSAVE >
<TR VALIGN=TOP NOSAVE>
<TD ALIGN=CENTER WIDTH="19%" BGCOLOR="#000000" NOSAVE><B><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Service</FONT></FONT></B></TD>

<TD ALIGN=CENTER WIDTH="26%" BGCOLOR="#000000" NOSAVE><B><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Microsoft</FONT></FONT></B></TD>

<TD ALIGN=CENTER WIDTH="16%" BGCOLOR="#000000" NOSAVE><B><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Cost</FONT></FONT></B></TD>

<TD ALIGN=CENTER WIDTH="26%" BGCOLOR="#000000" NOSAVE><B><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Linux</FONT></FONT></B></TD>

<TD ALIGN=CENTER WIDTH="13%" BGCOLOR="#000000" NOSAVE><B><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Cost</FONT></FONT></B></TD>
</TR>

<TR VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Operating
System</FONT></FONT></TD>

<TD WIDTH="26%" NOSAVE><FONT SIZE=-2>Windows NT Server 4.0</FONT></TD>

<TD ALIGN=RIGHT WIDTH="16%"><FONT SIZE=-2>$2,950.00</FONT></TD>

<TD WIDTH="26%"><FONT SIZE=-2>Linux RedHat 5.0 (CD)</FONT></TD>

<TD ALIGN=RIGHT WIDTH="13%"><FONT SIZE=-2>$49.00</FONT></TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Web
Server</FONT></FONT></TD>

<TD WIDTH="26%"><FONT SIZE=-2>Internet Information Server</FONT></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>

<TD WIDTH="26%"><FONT SIZE=-2>Apache</FONT></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>E-Mail</FONT></FONT></TD>

<TD WIDTH="26%"><FONT SIZE=-2>Exchange 5.0 Enterprise</FONT></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><FONT SIZE=-2>$6,400.00</FONT></DIV>
</TD>

<TD WIDTH="26%"><FONT SIZE=-2>Sendmail,UW IMAP,POP-3</FONT></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Telnet
server</FONT></FONT></TD>

<TD WIDTH="26%"><FONT SIZE=-2>SLNet (4 user licensee)</FONT></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><FONT SIZE=-2>$300.00</FONT></DIV>
</TD>

<TD WIDTH="26%"><FONT SIZE=-2>Included free unlimited licensee</FONT></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>FTP
server</FONT></FONT></TD>

<TD WIDTH="26%" NOSAVE><FONT SIZE=-2>Included with IIS</FONT></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>

<TD WIDTH="26%" NOSAVE><FONT SIZE=-2>Included</FONT></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Relational
Database</FONT></FONT></TD>

<TD WIDTH="26%" NOSAVE><FONT SIZE=-2>SQL Server 6.5</FONT></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><FONT SIZE=-2>$10,650.00</FONT></DIV>
</TD>

<TD WIDTH="26%"><FONT SIZE=-2>Just Logic SQL</FONT></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><FONT SIZE=-2>$219.00</FONT></DIV>
</TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Proxy
Server</FONT></FONT></TD>

<TD WIDTH="26%"><FONT SIZE=-2>Microsoft Proxy Server</FONT></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><FONT SIZE=-2>$995.00</FONT></DIV>
</TD>

<TD WIDTH="26%"><FONT SIZE=-2>Squid Object Cache</FONT></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Backup
Software</FONT></FONT></TD>

<TD WIDTH="26%"><FONT SIZE=-2>Included</FONT></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>

<TD WIDTH="26%"><FONT SIZE=-2>BRU, included</FONT></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><FONT SIZE=-2>$0.00</FONT></DIV>
</TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Total
Cost</FONT></FONT></TD>

<TD WIDTH="26%"></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><FONT SIZE=-2>$20,995.00</FONT></DIV>
</TD>

<TD WIDTH="26%"></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><FONT SIZE=-2>$268.00</FONT></DIV>
</TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE></TD>

<TD WIDTH="26%"></TD>

<TD WIDTH="16%"></TD>

<TD WIDTH="26%"></TD>

<TD WIDTH="13%"></TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Number
of Users</FONT></FONT></TD>

<TD WIDTH="26%"><FONT SIZE=-2>100</FONT></TD>

<TD WIDTH="16%"></TD>

<TD WIDTH="26%"><FONT SIZE=-2>100</FONT></TD>

<TD WIDTH="13%"></TD>
</TR>

<TR ALIGN=RIGHT VALIGN=TOP NOSAVE>
<TD WIDTH="19%" BGCOLOR="#000000" NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE=-2>Cost
per seat</FONT></FONT></TD>

<TD WIDTH="26%"></TD>

<TD WIDTH="16%">
<DIV ALIGN=right><B><FONT SIZE=-2>$212.95</FONT></B></DIV>
</TD>

<TD WIDTH="26%"></TD>

<TD WIDTH="13%">
<DIV ALIGN=right><B><FONT SIZE=-2>$2.68</FONT></B></DIV>
</TD>
</TR>
</TABLE>
&nbsp;
<DIV ALIGN=right><A NAME="Low hardware requirements"></A></DIV>

<DIV ALIGN=right><B><FONT SIZE=+2>Low hardware requirements</FONT></B></DIV>

<DIV ALIGN=right><I>I did not want to build the next Cray just to serve
55 users.</I></DIV>
As at most University Press's, our operating budget is relatively small,
especially when compared to commercial business and some other campus departments.
This financial restriction did not allow me to purchase a server hardware
platform that I would have like to have for the NT server, but the system
was not low-end either.

<P><FONT SIZE=-1>Our Windows NT 4.0 server:</FONT>
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 WIDTH="225" >
<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="33%"><B><FONT SIZE=-1>OS</FONT></B></TD>

<TD WIDTH="67%"><FONT SIZE=-1>Windows NT Server 4.0 (SP3)</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="33%"><B><FONT SIZE=-1>CPU</FONT></B></TD>

<TD WIDTH="67%"><FONT SIZE=-1>2 x Pentium 150</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="33%"><B><FONT SIZE=-1>RAM</FONT></B></TD>

<TD WIDTH="67%"><FONT SIZE=-1>256 Megabytes</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="33%"><B><FONT SIZE=-1>SCSI</FONT></B></TD>

<TD WIDTH="67%"><FONT SIZE=-1>Adaptec 2940</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="33%"></TD>

<TD WIDTH="67%"><FONT SIZE=-1>-All data drives are SCSI</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="33%"></TD>

<TD WIDTH="67%"><FONT SIZE=-1>-Boot drive is IDE</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="33%"><B><FONT SIZE=-1>Ethernet</FONT></B></TD>

<TD WIDTH="67%"><FONT SIZE=-1>NE2000 clone</FONT></TD>
</TR>
</TABLE>
<FONT SIZE=-1>Our RedHat Linux 4.2 server:</FONT>
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 WIDTH="227" >
<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="34%"><B><FONT SIZE=-1>OS</FONT></B></TD>

<TD WIDTH="66%"><FONT SIZE=-1>RedHat 4.2</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="34%"><B><FONT SIZE=-1>CPU</FONT></B></TD>

<TD WIDTH="66%"><FONT SIZE=-1>Single Pentium 200</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="34%"><B><FONT SIZE=-1>RAM</FONT></B></TD>

<TD WIDTH="66%"><FONT SIZE=-1>64 megabytes</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="34%"><B><FONT SIZE=-1>SCSI</FONT></B></TD>

<TD WIDTH="66%"><FONT SIZE=-1>DPT SmartCache IV</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="34%"></TD>

<TD WIDTH="66%"><FONT SIZE=-1>-RAID Station 3 (RAID 5)</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="34%"></TD>

<TD WIDTH="66%"><FONT SIZE=-1>-Boot drive is IDE</FONT></TD>
</TR>

<TR VALIGN=TOP>
<TD ALIGN=RIGHT WIDTH="34%"><B><FONT SIZE=-1>Ethernet</FONT></B></TD>

<TD WIDTH="66%"><FONT SIZE=-1>NE2000 clone</FONT></TD>
</TR>
</TABLE>
<I><FONT SIZE=-1>The RAID which is listed on the Linux server was not purchased
strictly for the Linux server, but was purchased to be placed on whatever
server we decided to put into production.</FONT></I>
<DIV ALIGN=right><A NAME="Ease of administration"></A><B><FONT SIZE=+2>Ease
of administration</FONT></B></DIV>

<DIV ALIGN=right><I>For myself and staff</I> .</DIV>
&nbsp;
<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="450" >
<TR>
<TD WIDTH="41%"><IMG SRC="./gx/coldiron/control1.gif" NATURALSIZEFLAG="3" HEIGHT=392 WIDTH=157 ALIGN=BOTTOM></TD>

<TD WIDTH="59%">Unix usually gets the standard rap of being difficult to
manage and requiring a steep learning curve. While many of the tools that
will be used to manage the system are still command line based, a growing
number are graphical and comparable to Windows in ease of use. This is
especially true with the RedHat distribution, which includes a graphical
control panel which allows the administrator to change system setting without
working through the many text files which store this information. The control
panels I use the most are the ones which setup the printers, file system,
users and packages. If you use the included RedHat Package manager to install
new applications, they are listed in the package manager, which allows
you to graphically see what applications are installed on your system and
remove them if wanted, much like the uninstall option on Microsoft Windows.&nbsp;

<P><IMG SRC="./gx/coldiron/control2.gif" NATURALSIZEFLAG="3" HEIGHT=338 WIDTH=492 ALIGN=BOTTOM></TD>
</TR>
</TABLE>
<IMG SRC="./gx/coldiron/control3.gif" NATURALSIZEFLAG="3" HEIGHT=265 WIDTH=494 ALIGN=BOTTOM>
<DIV ALIGN=right><A NAME="Simple upgrade path"></A><B><FONT SIZE=+2>Simple
upgrade path</FONT></B></DIV>

<DIV ALIGN=right><I>I don't want to start over each time a new version
comes out.</I></DIV>
RedHat Linux provides a very simple upgrade system in its installation
set. The upgrade is actually better than the Microsoft Windows NT upgrade
path, since you do not have to uninstall the previous version first.

<P>While it is not required that you uninstall the previous version of
Windows NT before installing the current release (4.0), it is recommended.
This can be a very intensive installation, since you would need to setup
all the user accounts again, along with reinstalling any software and automated
systems and scripts.

<P>When I upgraded from RedHat 4.1 to 4.2, the installation when smoothly
whiteout any problems. While this was not a major revision step, RedHat
has assured me that the soon to be released version 5.0 will offer a smooth
transition from 4.2.

<P><FONT SIZE=-1>From the RedHat Linux manual:</FONT>
<BR>&nbsp;
<CENTER><TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="50%" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><FONT SIZE=-2>1.5 Upgrading from a Prior Version</FONT>&nbsp;

<P><FONT SIZE=-2>The installation process for Red Hat Linux 4.2 includes
the ability to upgrade from prior versions of Red Hat Linux (2.0, 2.1,
3.0.3, 4.0, and 4.1) which are based on RPM technology. Upgrading your
system installs the modular 2.0.x kernel as well as updated versions of
the packages which are installed on your machine. The upgrade process preserves
existing configuration files using a .rpmsave extension (e.g., sendmail.cf.rpmsave)
and leaves a log telling what actions it took in /tmp/upgradelog. As software
evolves, configuration file formats can change, so you should carefully
compare your original configuration files to the new files before integrating
your changes.</FONT>&nbsp;

<P><FONT SIZE=-2>To upgrade a Red Hat Linux system, you must use a boot
floppy (and possibly a supplemental floppy), just as if you were performing
a full install. After selecting the medium to install from (and setting
up networking information if it's required), the installation procedure
prompts you to either Install or Upgrade; select Upgrade. This upgrade
procedure is the functional equivalent of running the upgrade script in
prior versions of Red Hat Linux.</FONT>&nbsp;
<CENTER><IMG SRC="./gx/coldiron/upgrade-install.gif" NATURALSIZEFLAG="0" HEIGHT=214 WIDTH=319 ALIGN=BOTTOM></CENTER>


<P><FONT SIZE=-2>Please note that some upgraded packages may ``depend''
on other packages which may not be installed on your system. The upgrade
procedure takes care of these dependencies, but it may need to install
additional packages in order to satisfy them.</FONT>&nbsp;</TD>
</TR>
</TABLE></CENTER>
&nbsp;
<BR>&nbsp;
<DIV ALIGN=right><A NAME="Remote control and administration"></A></DIV>

<DIV ALIGN=right><B><FONT SIZE=+2>Remote control and administration</FONT></B></DIV>
One of the most attractive features of Linux (or Unix in general) is the
ability to truly remotely control the server. Since Linux comes with a
telnet server built in, you can use virtually any computer, regardless
of operating system to telnet into the computer to do all administrative
tasks. To remotely administer a Windows NT server, you must purchase a
separate application to allow remote control. The most popular program
for this is PCAnywhere by Symantec. This approach can become costly because
you must purchase a copy for the server to act as the host, and a copy
for each computer that needs to remotely control the server. How many remote
computers need to control the server? This depends on each installation,
but I have found that it save me a lot of running by having the ability
to control the server from every PC on my network, and from home.

<P>Telnet is text only, so this will be a drawback for many, but luckily
for us, Linux supports X Windows. X Windows can be used locally on the
server's console, like Windows NT, but can also be run remotely from any
computer that can run an X client. These remote terminals can by other
computers running Linux, or any other flavor of Unix and many X clients
can be downloaded or purchased for Windows, Windows NT and Macintosh computers.
Running X terminals does require more bandwidth, so I prefer just telneting
into the server.

<P>Another nice feature is the ability to display results of various system
utilities in a web page. One of the things our Customer Service manager
likes to know is which users have which files open and locked while using
Cats. I wrote a simple Perl script to run the smbstatus program and print
the results as a web page.

<P>The output web page:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><B><FONT FACE="Courier New,Courier">Snapshot of users for: Fri
Dec 5&nbsp;</FONT>&nbsp;</B>&nbsp;

<P><B><FONT FACE="Courier New,Courier">11:41:18 CST 1997&nbsp;</FONT>&nbsp;</B>&nbsp;

<P><FONT FACE="Courier New,Courier">This page shows currently logged on
users and locked files for the UNPLINUX server.&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">Right-click this page and select REFRESH
or RELOAD to force an update&nbsp;</FONT>&nbsp;

<P><FONT FACE="Courier New,Courier">Samba version 1.9.17p1&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">Service uid gid pid machine&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">----------------------------------------------&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">cdrom root root 11697 enterprise (129.93.31.35)
Thu Dec 4 16:35:23 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">quinn root root 11697 enterprise (129.93.31.35)
Thu Dec 4 16:35:23 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">M-DATA cbrumm cbrumm 11435 ds9 (129.93.31.14)
Thu Dec 4 16:08:16 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">programs root root 11697 enterprise
(129.93.31.35) Thu Dec 4 16:35:23 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">L-NE cbrumm cbrumm 11435 ds9 (129.93.31.14)
Thu Dec 4 16:08:29 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">N-DBC cbrumm cbrumm 11435 ds9 (129.93.31.14)
Thu Dec 4 16:08:29 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">O-WORK cbrumm cbrumm 11435 ds9 (129.93.31.14)
Thu Dec 4 16:08:29 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">P-HIST cbrumm cbrumm 11435 ds9 (129.93.31.14)
Thu Dec 4 16:08:29 1997&nbsp;</FONT>&nbsp;

<P><FONT FACE="Courier New,Courier">&lt;snip>&nbsp;</FONT>&nbsp;

<P><FONT FACE="Courier New,Courier">Locked files:&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">Pid DenyMode R/W Name&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">------------------------------&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">19818 DENY_NONE RDWR fileauth.txt
Fri Dec 5 11:41:14 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">21212 DENY_NONE RDWR fileauth.txt
Fri Dec 5 11:40:28 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">20590 DENY_NONE RDWR fileauth.txt
Fri Dec 5 11:38:56 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">21384 DENY_NONE RDWR fileauth.txt
Fri Dec 5 11:06:15 1997&nbsp;</FONT>&nbsp;

<P><FONT FACE="Courier New,Courier">&lt;snip>&nbsp;</FONT>&nbsp;

<P><FONT FACE="Courier New,Courier">19818 DENY_NONE RDWR filebac2.isi Fri
Dec 5 11:02:36 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">20590 DENY_NONE RDWR filebac2.isi
Fri Dec 5 10:14:44 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">19818 DENY_NONE RDWR fileauth.isi
Fri Dec 5 11:41:14 1997&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">21212 DENY_NONE RDWR fileauth.isi
Fri Dec 5 11:40:28 1997&nbsp;</FONT>&nbsp;

<P><FONT FACE="Courier New,Courier">Share mode memory usage (bytes):&nbsp;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">92584(90%) free + 7728(7%) used +
2088(2%) overhead = 102400(100%) total&nbsp;</FONT></TD>
</TR>
</TABLE>
&nbsp;
<BR>&nbsp;
<BR>The script that generates the above page:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD><FONT FACE="Courier New,Courier">#!/usr/bin/perl</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># ******************************************************</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># * *</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># * Author: Quinn P. Coldiron *</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># * Date: 12-1-97 *</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># * Program: This program shows current
users of the *</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># * Samba server. *</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># * *</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># ******************************************************</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"># Use cgi-lib CGI library for PERL.</FONT>&nbsp;

<P><FONT FACE="Courier New,Courier">require "/home/httpd/cgi-bin/cgi-lib.pl";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">$date = `date`;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">$users = `./smbstatus`;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">#Get the data from the form.</FONT>&nbsp;

<P><FONT FACE="Courier New,Courier">&amp;ReadParse;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print &amp;PrintHeader;</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;HTML>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;HEAD>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;TITLE>Logged In Samba Users&lt;/TITLE>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;/HEAD>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;BODY BGCOLOR= #D4D4D4>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;H1>Snapshot of users for:
$date&lt;/H1>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "This page shows currently logged
on users and locked files for the UNPLINUX server.&lt;br>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "Right-click this page and select
REFRESH or RELOAD to force an update&lt;br>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;PRE>$users&lt;/PRE>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;/BODY>\n";</FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier">print "&lt;/HTML>\n";</FONT>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;

<P>Windows NT provides a graphical program to show a chart us system performance,
but it is recommended that you do not run it on the server that you want
to monitor, because the monitor program itself takes too much of the system
resources, and thus skews the data. Linux provides a system monitoring
tool called TOP that is character based so it can be run on the server.
Since it is character based, you can telnet into the server and run it
from anywhere, getting an accurate picture of how the server is running.

<P><FONT SIZE=-1>Sample output of TOP:</FONT>
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD><FONT FACE="Courier New,Courier"><FONT SIZE=-2>11:55am up 1 day, 15:02,
3 users, load average: 0.08, 0.04, 0.00</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>83 processes: 82 sleeping,
1 running, 0 zombie, 0 stopped</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>CPU states: 2.7% user,
4.2% system, 5.9% nice, 93.7% idle</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>Mem: 63204K av, 62336K
used, 868K free, 38384K shrd, 5536K buff</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>Swap: 114908K av, 368K
used, 114540K free 29496K cached</FONT></FONT>&nbsp;

<P><FONT FACE="Courier New,Courier"><FONT SIZE=-2>PID USER PRI NI SIZE
RSS SHARE STAT LIB %CPU %MEM TIME COMMAND</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>22390 root 10 0 540
540 400 R 0 2.8 0.8 0:00 top</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>22388 cats 3 0 848 848
516 S 0 1.5 1.3 0:00 login</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>22391 cats 10 0 660
660 524 S 0 0.7 1.0 0:00 bash</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>6058 root 1 0 3568 3568
1396 S 0 0.5 5.6 1:25 tkdesksh</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>22283 root 0 0 552 552
424 S 0 0.3 0.8 0:00 in.telnetd</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>22387 root 1 0 552 552
424 S 0 0.3 0.8 0:00 in.telnetd</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>21212 quinn 0 0 1084
1084 660 S 0 0.1 1.7 0:02 smbd</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>20921 root 1 0 588 536
356 S 0 0.1 0.8 0:08 SWserver</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>1 root 0 0 312 312 244
S 0 0.0 0.4 0:02 init</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>2 root 0 0 0 0 0 SW
0 0.0 0.0 0:01 kflushd</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>3 root -12 -12 0 0 0
SW&lt; 0 0.0 0.0 0:00 kswapd</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>19509 root 0 0 1092
1092 652 S 0 0.0 1.7 0:18 smbd</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>331 root 0 0 812 812
480 S 0 0.0 1.2 0:00 login</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>21 root 0 0 280 280
216 S 0 0.0 0.4 0:00 kerneld</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>240 root 0 0 336 316
280 S 0 0.0 0.4 0:00 gpm</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>128 root 0 0 368 360
276 S 0 0.0 0.5 0:00 syslogd</FONT></FONT>&nbsp;
<BR><FONT FACE="Courier New,Courier"><FONT SIZE=-2>137 root 0 0 496 488
268 S 0 0.0 0.7 0:00 klogd</FONT></FONT>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<BR>&nbsp;
<DIV ALIGN=right>
<HR ALIGN=RIGHT></DIV>

<DIV ALIGN=right><FONT SIZE=+4>Section 3</FONT><A NAME="Under the Hood"></A></DIV>

<DIV ALIGN=right><FONT SIZE=+4>Under the Hood</FONT></DIV>

<DIV ALIGN=right><B><FONT SIZE=+2>Setting up the server</FONT></B></DIV>

<DIV ALIGN=right><A NAME="Linux installation"></A><B><I><FONT SIZE=+1>Linux
installation</FONT></I></B></DIV>
The actual installation of an operating system is often used as a judgement
on how good the system is. Just as with meeting people, you can never change
the first impression. I have found that setting up a RedHat Linux server
is as easy or even easier than setting up a Windows NT server. The setup
includes two floppies have everything needed to get the system to the point
that it can recognize the media (CDROM, FTP site, other server, etc.) that
the installation files are on. Windows NT supplies three floppies for this
purpose, but only supports CDROM installation. I have found that installing
RedHat Linux on a laptop can even be easier, since it can detect the PCMCIA
slots at installation time, while NT cannot. The most important factor
is to be familiar with the hardware you have installed in your machine,
including:
<UL>
<LI>
&middot; hard drive(s): number and size; if you have more than one, it's
helpful to know which one is first, second, etc.</LI>

<LI>
&middot; memory: amount of RAM.</LI>

<LI>
&middot; CD-ROM: its interface type (IDE, SCSI, or other interface), and,
for non-IDE, non-SCSI CD-ROMs, the make and model number.</LI>

<LI>
&middot; SCSI adapter: make and model number.</LI>

<LI>
&middot; network card: make and model number.</LI>

<LI>
&middot; mouse: type (serial, PS/2, or bus mouse), protocol (Logitech,
Microsoft, MouseMan, etc.), and number of buttons; also, for serial mice,
the com port it is connected to.</LI>

<LI>
&middot; If you will be connected to a network, be sure you know your IP
address, netmask, gateway IP address, name server IP addresses, domain
name, and hostname. If you don't know these values, ask your network administrator.</LI>

<LI>
Also, if you will be installing the X Window System, you should be familiar
with the following:</LI>

<LI>
&middot; your video card: make and model number or video chipset, amount
of video RAM.</LI>

<LI>
&middot; your monitor: make and model number, allowable range of horizontal
and vertical refresh rates.</LI>
</UL>
You can install or upgrade Red Hat Linux/Intel via any of several basic
methods. Depending on the method you use, you need either one or two formatted
high-density (1.44 MB) 3.5-inch diskettes.

<P>Installing from CD-ROM or via NFS requires only a boot diskette. Installing
from a hard drive, via FTP, from an SMB volume, or from a PCMCIA device
(including PCMCIA-based CD-ROMs) requires both a boot diskette and a supplemental
diskette. Section 2.3.1 below explains how to create boot and supplemental
diskettes.

<P>CD-ROM

<P>If you have a Red Hat Linux CD and a boot diskette you will need a supported
CD-ROM drive and either a 3.5 inch floppy drive or an operational installation
of MS-DOS on your machine in order to run the installation utility. If
a boot diskette did not accompany your CD, you will need access to a computer
running either Linux or MS-DOS to create a boot diskette from the CD.

<P>NFS

<P>If you wish to install over a network, you will need to mount the Red
Hat Linux CD-ROM on a machine that supports ISO-9660 file systems with
Rock Ridge extensions. The machine must also support NFS. Export the CD-ROM
file system via NFS. You will need to have name services configured, or
know the NFS server's IP address, and the path to the exported CD-ROM.

<P>FTP

<P>For an FTP install, you must have a boot disk and supplemental disk.
You will need to have a valid name server configured or the IP address
of the FTP server you will be using. You will also need the path to the
root of the Red Hat Linux directory on the FTP site.

<P>SMB Shared Volume

<P>If you wish to install from an SMB shared volume, you will need to mount
the Red Hat Linux CD-ROM on a Microsoft Windows NT or Windows 95 server
that supports shared volumes. You will need to have name services configured,
or know the server's IP address; you will also need the name of the shared
volume containing the Red Hat Linux CD-ROM and the account number and password
to use to access the volume.

<P>Hard Drive

<P>To install Red Hat Linux from a hard drive you will need the same boot
and supplemental disks used by the FTP install. You must first create a
RedHat directory at the top level of your directory tree. Everything you
will install should be placed in that directory. First copy the base subdirectory,
then copy the packages you want to install to another subdirectory called
RPMS. You can use available space on an existing DOS partition or a Linux
partition that is not required in the install procedure (for example, a
partition that would be used for data storage on the installed system).

<P>If you are using a DOS filesystem, you may not be able to use the full
Linux filenames for the RPM packages. The installation process does not
care what the filenames look like, but it is a good idea that you keep
track of them so you will know what you are installing.

<P>PCMCIA

<P>If your CD-ROM, Ethernet card, or local hard disk is connected to a
PCMCIA adapter, you must install with PCMCIA support. You need a supported
PCMCIA controller and a supported PCMCIA SCSI adapter or Ethernet card.
Installing via PCMCIA requires the use of a supplemental diskette.

<P>Please See Appendix A for The Official RedHat Installation Guide.
<DIV ALIGN=right><A NAME="Samba Installation/Setup"></A></DIV>

<DIV ALIGN=right><B><I><FONT SIZE=+2>Samba Installation/Setup</FONT></I></B></DIV>
Installing the Samba RPM is the easiest way to install, as you only need
to download the file and type rpm -I <I>filename</I> and it is installed.
Setting up Samba is simple, as you just edit a text file to tell it what
directories are going to be shared to the Windows clients. The text file's
name is smb.conf and is located in the /etc. directory if you installed
Samba using RPM. If you downloaded the .tar archive and installed Samba
using the default installation, you will find the smb.conf file in /usr/local/samba/lib/.

<P>An advantage to installing Samba using RPM is that it is easier. A disadvantage
is that the versions are not as current, but they are usually more stable
and reliable. I choose to go directly to the Samba web pages and download
the most current non-beta release.

<P>The picture on the left is the Network Neighborhood window on my NT
workstation and is currently showing everything that I have access to on
my Linux server.

<P>If you installed Samba using RPM, it will automatically be started on
system startup, but I had to manually add it to my rc.local script to have
it start on bootup because I did not install from the RPM. I chose to install
from the tarballs available at the official Samba site, so I could always
have a current installation. To start the server manually, I just issue
these commands:

<P><FONT FACE="Courier New,Courier">/usr/local/samba/bin/smbd -D</FONT>

<P><FONT FACE="Courier New,Courier">/usr/local/samba/bin/nmbd -D</FONT>

<P>Extensive has been accomplished that allows Samba to act more like an
NT server, including making a Linux server a Primary Domain Controller
and more features are currently being added. I have listed the steps that
I took in making my Linux server the Primary Domain Controller (PDC) for
our network.

<P>1. Set up the server.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a. Create the smb.conf file.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b. Create the netlogon directory.
I put mine in /home.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c. Restart Samba.

<P>2. Setup the Windows 95 clients. (We set our up for roaming profiles.)
<B>Do not reboot until step 3!</B>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a. Control Panel
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1. Click Passwords, then Profiles and choose these settings:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
a. Users can customize their settings.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
b. Include desktop items.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
c. Include start menu.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2. In the Control Panel, select Network.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
a. Under Identification, set your WORKGROUP name.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
b. Access control = USER-LEVEL.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
c. Obtain the list from YOUR SERVER NAME.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
d. Under Client Configuration
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1. Select CLIENT FOR MICROSOFT NETWORKS.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2. Under that client's properties.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
a. Log onto Windows NT domain.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
b. Enter your WORKGROUP name.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
c. Select LOG ON AND RESTORE CONNECTIONS.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e. Set primary network logon to CLIENT FOR MICROSOFT NETWORKS.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b. Set up the user profiles.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1. Install the Policy Editor from the Windows 95 CD.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2. Create a new profile called config.pol and save it into the NETLOGON
share on the Linux server. Make sure you add all the users on your server!
This step only has to be
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
done once, not on each client.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3. Using the Policy Editor, select Open registry from the File menu and
select the options you want.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
4. Save it as config.pol and copy into the netlogon share on the Linux
server. Set its permissions as 755.

<P>3. Reboot the Windows 95 computer(s) and logon.

<P>4. Possible problems.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Windows95 OSR2 seems to send
the passwords as uppercase, so try changing the passwords on the Linux
server to uppercase.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. I had problems making my Linux
server the WINS server, so you have some choices to fix this:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
a. If you do have another NT server, make it the WINS server and point
all the clients to it.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
b. Disable WINS on each client and edit the c:\windows\Lmhosts.sam file
and add the server and workstations to this file. Save the file as Lmhosts,<cr>
NOT Lmhosts.sam This file can be appended to from a server, but
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
I haven't tried doing it from Linux/Samba. The entries look like this:
<TT>xxx.xxx.xxx.xxx computername</TT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
c. Disable WINS. At this time, we are running our Win95 clients with WINS
disabled, but we do have a DNS server.

<P>My Samba configuration (smb.conf) file looks like this:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD>; *******************************************************************&nbsp;
<BR>; *&nbsp;
<BR>; * Samba config file for UNPLINUX&nbsp;
<BR>; * Quinn P. Coldiron&nbsp;
<BR>; *&nbsp;
<BR><TT>; *******************************************************************</TT>&nbsp;
<BR><TT>[global]</TT>&nbsp;
<BR><TT>workgroup = UNP</TT>&nbsp;
<BR><TT>comment = Unplinux Server</TT>&nbsp;
<BR><TT>volume = RedHat5</TT>&nbsp;
<BR><TT>lock directory = /var/lock/samba</TT>&nbsp;
<BR><TT>locking = yes</TT>&nbsp;
<BR><TT>strict locking = no</TT>&nbsp;
<BR><TT>share modes = yes</TT>&nbsp;
<BR><TT>security = user</TT>&nbsp;
<BR><TT>os level = 65</TT>&nbsp;
<BR><TT>domain master = yes</TT>&nbsp;
<BR><TT>local master = yes</TT>&nbsp;
<BR><TT>prefered master = yes</TT>&nbsp;
<BR><TT>domain logons = yes</TT>&nbsp;
<BR><TT>wins support = yes</TT>&nbsp;
<BR><TT>;logon script = %m.bat ; per workstation (machine)</TT>&nbsp;
<BR><TT>;logon script = logon.bat</TT>&nbsp;
<BR><TT>logon script = %U.bat</TT>&nbsp;
<BR><TT>preserve case = yes</TT>&nbsp;
<BR><TT>short case preserve = yes</TT>&nbsp;
<BR><TT>case sensitive = no</TT>&nbsp;
<BR><TT>; printing = BSD or SYSV or AIX, etc..</TT>&nbsp;
<BR><TT>printing = bsd</TT>&nbsp;
<BR><TT>printcap name = /etc/printcap</TT>&nbsp;
<BR><TT>load printers = yes</TT>&nbsp;
<BR><TT>print command = /usr/bin/lpr -r -P %p %s</TT>&nbsp;
<BR><TT>[netlogon]</TT>&nbsp;
<BR><TT>comment = Samba Network Logon Service</TT>&nbsp;
<BR><TT>path = /home/netlogon</TT>&nbsp;
<BR><TT>case sensitive = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>locking = no</TT>&nbsp;
<BR><TT>read only = yes</TT>&nbsp;
<BR><TT>browseable = yes ; say NO if you want to hide the NETLOGON share</TT>&nbsp;
<BR><TT>;admin users = @wheel</TT>&nbsp;
<BR><TT>create mode = 0755</TT>&nbsp;

<P><TT>; ###############################################################################</TT>&nbsp;
<BR><TT>; # #</TT>&nbsp;
<BR><TT>; # Printers #</TT>&nbsp;
<BR><TT>; # #</TT>&nbsp;
<BR><TT>; ###############################################################################</TT>&nbsp;
<BR><TT>; I couldn't get the generic printers section to work, so I commented
it out</TT>&nbsp;
<BR><TT>; and explicitly declared the printers.</TT>&nbsp;
<BR><TT>;[printers]</TT>&nbsp;
<BR><TT>; comment = All Printers</TT>&nbsp;
<BR><TT>; path = /var/spool/samba-print</TT>&nbsp;
<BR><TT>; browseable = yes</TT>&nbsp;
<BR><TT>; printable = yes</TT>&nbsp;
<BR><TT>; Set public = yes to allow user 'guest account' to print</TT>&nbsp;
<BR><TT>; public = no</TT>&nbsp;
<BR><TT>; writable = no</TT>&nbsp;
<BR><TT>; create mode = 0700</TT>&nbsp;

<P><TT>[Technology]</TT>&nbsp;
<BR><TT>comment = Technology Printer</TT>&nbsp;
<BR><TT>path = /var/spool/samba-print</TT>&nbsp;
<BR><TT>print = Technology</TT>&nbsp;
<BR><TT>browseable = yes</TT>&nbsp;
<BR><TT>printable = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>create mode = 0777</TT>&nbsp;

<P><TT>[Marketing2]</TT>&nbsp;
<BR><TT>comment = Technology Printer</TT>&nbsp;
<BR><TT>path = /var/spool/samba-print</TT>&nbsp;
<BR><TT>print = Marketing2</TT>&nbsp;
<BR><TT>browseable = yes</TT>&nbsp;
<BR><TT>printable = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>create mode = 0777</TT>&nbsp;

<P><TT>[Marketing1]</TT>&nbsp;
<BR><TT>comment = Technology Printer</TT>&nbsp;
<BR><TT>path = /var/spool/samba-print</TT>&nbsp;
<BR><TT>print = Marketing1</TT>&nbsp;
<BR><TT>browseable = yes</TT>&nbsp;
<BR><TT>printable = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>create mode = 0777</TT>&nbsp;

<P><TT>[CustServ]</TT>&nbsp;
<BR><TT>comment = Technology Printer</TT>&nbsp;
<BR><TT>path = /var/spool/samba-print</TT>&nbsp;
<BR><TT>print = CustServ</TT>&nbsp;
<BR><TT>browseable = yes</TT>&nbsp;
<BR><TT>printable = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>create mode = 0777</TT>&nbsp;

<P><TT>[CanonColor]</TT>&nbsp;
<BR><TT>comment = Color Laser Printer</TT>&nbsp;
<BR><TT>path = /var/spool/samba-print</TT>&nbsp;
<BR><TT>print = CanonColor</TT>&nbsp;
<BR><TT>browseable = yes</TT>&nbsp;
<BR><TT>printable = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>create mode = 0777</TT>&nbsp;

<P><TT>; ###############################################################################</TT>&nbsp;
<BR><TT>; # #</TT>&nbsp;
<BR><TT>; # Shared Volumes #</TT>&nbsp;
<BR><TT>; # #</TT>&nbsp;
<BR><TT>; ###############################################################################</TT>&nbsp;

<P><TT>[homes]</TT>&nbsp;
<BR><TT>comment = Home Directories</TT>&nbsp;
<BR><TT>browseable = no</TT>&nbsp;
<BR><TT>writable = yes</TT>&nbsp;
<BR><TT>read only = no</TT>&nbsp;
<BR><TT>preserve case = yes</TT>&nbsp;
<BR><TT>short preserve case = yes</TT>&nbsp;
<BR><TT>;create mode = 0777</TT>&nbsp;

<P><TT>[userdata]</TT>&nbsp;
<BR><TT>comment = All userdata that you are allowed to see.</TT>&nbsp;
<BR><TT>path = /home</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>;Full control for your stuff, full in you group, nothing for other</TT>&nbsp;
<BR><TT>;people's stuff.</TT>&nbsp;
<BR><TT>create mode = 0770</TT>&nbsp;

<P><TT>[sys]</TT>&nbsp;
<BR><TT>comment = System drive. Various Press utilities.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-sys/</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>create mode = 0777</TT>&nbsp;

<P><TT>[programs]</TT>&nbsp;
<BR><TT>comment = Program drive. Installation sets and programs.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-programs</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>create mode = 0777</TT>&nbsp;

<P><TT>[ulrich]</TT>&nbsp;
<BR><TT>comment = Ulrich's PLUS.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-programs/ulrich</TT>&nbsp;
<BR><TT>create mode = 555</TT>&nbsp;

<P><TT>[cdrom]</TT>&nbsp;
<BR><TT>comment = Internal IDE cdrom. For temporary usage.</TT>&nbsp;
<BR><TT>path = /mnt/cdrom</TT>&nbsp;

<P><TT>[dictionary]</TT>&nbsp;
<BR><TT>comment = Random House Dictionary.</TT>&nbsp;
<BR><TT>path = /mnt/scd1</TT>&nbsp;

<P><TT>[bip]</TT>&nbsp;
<BR><TT>comment = Bowker Books In Print CDROM</TT>&nbsp;
<BR><TT>path = /mnt/scd0</TT>&nbsp;

<P><TT>[msoffice]</TT>&nbsp;
<BR><TT>comment = Microsoft Office Bookshelf Reference.</TT>&nbsp;
<BR><TT>path = /mnt/scd3</TT>&nbsp;

<P><TT>[encarta]</TT>&nbsp;
<BR><TT>comment = Microsoft Encarta</TT>&nbsp;
<BR><TT>path = /mnt/scd2</TT>&nbsp;

<P><TT>[press]</TT>&nbsp;
<BR><TT>comment = Press share. Marketing maps this to U:</TT>&nbsp;
<BR><TT>path = /home/press</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>create mode = 0777</TT>&nbsp;

<P><TT>[CATS-VOL]</TT>&nbsp;
<BR><TT>comment = Entire Cats volume for backup</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[L-NE]</TT>&nbsp;
<BR><TT>comment = Cat's root. Map as L.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[M-DATA]</TT>&nbsp;
<BR><TT>comment = Cat's data drive. Map as M.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne/data</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[N-DBC]</TT>&nbsp;
<BR><TT>comment = Cat's program drive. Map as N.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne/dbc</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[O-WORK]</TT>&nbsp;
<BR><TT>comment = Cat's work drive. Map as O.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne/work</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[P-HIST]</TT>&nbsp;
<BR><TT>comment = Cat's history drive. Map as P.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne/hist</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;
<BR>&nbsp;</TD>
</TR>
</TABLE>
My actual logon.bat batch file is here:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD><TT>REM *******************************************************</TT>&nbsp;
<BR><TT>REM * *</TT>&nbsp;
<BR><TT>REM * University of Nebraska Press network logon script. *</TT>&nbsp;
<BR><TT>REM * *</TT>&nbsp;
<BR><TT>REM * Last modified : 10-16-97 *</TT>&nbsp;
<BR><TT>REM * By: Quinn *</TT>&nbsp;
<BR><TT>REM * *</TT>&nbsp;
<BR><TT>REM * The drive letter scheme is leftover from the past *</TT>&nbsp;
<BR><TT>REM * network administrator and the Novell Netware 3.1 *</TT>&nbsp;
<BR><TT>REM * server he had. *</TT>&nbsp;
<BR><TT>REM *******************************************************</TT>&nbsp;
<BR><TT>REM User's home drives</TT>&nbsp;
<BR><TT>net use e: \\unplinux\homes</TT>&nbsp;
<BR><TT>REM General network drives</TT>&nbsp;
<BR><TT>net use f: \\intrepid\sys</TT>&nbsp;
<BR><TT>net use g: \\intrepid\userdata</TT>&nbsp;
<BR><TT>net use h: \\intrepid\dictionary</TT>&nbsp;
<BR><TT>net use i: \\intrepid\bip</TT>&nbsp;
<BR><TT>net use j: \\intrepid\programs</TT>&nbsp;
<BR><TT>net use s: \\unplinux\ulrich</TT>&nbsp;
<BR><TT>REM CATS drives</TT>&nbsp;
<BR><TT>net use l: \\unplinux\l-ne</TT>&nbsp;
<BR><TT>net use m: \\unplinux\m-data</TT>&nbsp;
<BR><TT>net use n: \\unplinux\n-dbc</TT>&nbsp;
<BR><TT>net use o: \\unplinux\o-work</TT>&nbsp;
<BR><TT>net use p: \\unplinux\p-hist</TT>&nbsp;
<BR><TT>REM Temp entry for Robotronics</TT>&nbsp;
<BR><TT>REM The old system had robo on the T:\ drive but</TT>&nbsp;
<BR><TT>REM all new installations will run robo from the j:\ drive.</TT>&nbsp;
<BR><TT>net use t: \\unplinux\programs</TT>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<BR>&nbsp;
<DIV ALIGN=right><A NAME="Netatalk Installation/Setup"></A><B><I><FONT SIZE=+2>Netatalk
Installation/Setup</FONT></I></B></DIV>
Netatalk offers the same installation options as Samba, so you can choose
either the RPM, or .tar archives. I would choose the RPM here, as they
are the same versions as the .tar files and make life easier during installation.
I really don't have mush to say about this installation, since it was very
simple and straight forward. After installing the package, I just edited
the AppleVolumes.system file and started the daemon. Below is a very simple
AppleVolumes.system file that will give the Mac users their home directory
and a few other volumes that might have stuff they need.
<BR>&nbsp;
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD><TT>#</TT>&nbsp;
<BR><TT># This file is read before (after if -u is specified) the user's</TT>&nbsp;
<BR><TT># AppleVolume file. Add extension mappings and volumes here.</TT>&nbsp;
<BR><TT>#</TT>&nbsp;
<BR><TT>/usr/local/samba-sys Sys (F drive)</TT>&nbsp;
<BR><TT>/home Userdata (G drive)</TT>&nbsp;
<BR><TT>/usr/local/samba-programs Programs (J drive)</TT>&nbsp;
<BR><TT># default translation -- note that CR &lt;-> LF translation is
done on all</TT>&nbsp;
<BR><TT># files of type TEXT. The first line turns off translation for
files of</TT>&nbsp;
<BR><TT># unknown type, the second turns this translation on.</TT>&nbsp;
<BR><TT>. BINA UNIX</TT>&nbsp;
<BR><TT># . TEXT UNIX</TT>&nbsp;
<BR><TT># sounds</TT>&nbsp;
<BR><TT>.mod STrk STrk</TT>&nbsp;
<BR><TT>.mid Midi ttxt</TT>&nbsp;
<BR><TT>.aiff AIFF SNdm</TT>&nbsp;
<BR><TT>.wav WAVE SNdm</TT>&nbsp;
<BR><TT>.au ULAW SNdm</TT>&nbsp;
<BR><TT># video</TT>&nbsp;
<BR><TT>.moov MooV mMPG</TT>&nbsp;
<BR><TT>.mov MooV mMPG</TT>&nbsp;
<BR><TT>.mpg MPEG mMPG</TT>&nbsp;
<BR><TT>.mpeg MPEG mMPG</TT>&nbsp;
<BR><TT># formatted text</TT>&nbsp;
<BR><TT>.html TEXT MOS!</TT>&nbsp;
<BR><TT>.rtf TEXT MSWD</TT>&nbsp;
<BR><TT>.doc WDBN MSWD</TT>&nbsp;
<BR><TT># compressed archives</TT>&nbsp;
<BR><TT>.bin BINA MB2P</TT>&nbsp;
<BR><TT>.zip ZIP ZIP</TT>&nbsp;
<BR><TT>.tar TARF TAR!</TT>&nbsp;
<BR><TT>.gz Gzip Gzip</TT>&nbsp;
<BR><TT>.Z ZIVM LZIV</TT>&nbsp;
<BR><TT>.sea ???? SITx</TT>&nbsp;
<BR><TT>.cpt PACT CPCT</TT>&nbsp;
<BR><TT>.sit SIT! SIT!</TT>&nbsp;
<BR><TT>.hqx TEXT SITx</TT>&nbsp;
<BR><TT># graphics</TT>&nbsp;
<BR><TT>.tiff TIFF JVWR</TT>&nbsp;
<BR><TT>.tif TIFF JVWR</TT>&nbsp;
<BR><TT>.bmp BMPp JVWR</TT>&nbsp;
<BR><TT>.pct PICT ttxt</TT>&nbsp;
<BR><TT>.pict PICT ttxt</TT>&nbsp;
<BR><TT>.jpeg JPEG JVWR</TT>&nbsp;
<BR><TT>.jpg JPEG JVWR</TT>&nbsp;
<BR><TT>.gif GIFf JVWR</TT>&nbsp;</TD>
</TR>
</TABLE>
The other file that you need to edit with NetaTalk is papd.conf. This file
hold the printer information.
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD><TT># Attributes are:</TT>&nbsp;
<BR><TT>#</TT>&nbsp;
<BR><TT># Name Type Default Description</TT>&nbsp;
<BR><TT># pd str ".ppd" Pathname to ppd file.</TT>&nbsp;
<BR><TT># pr str "lp" LPD printer name.</TT>&nbsp;
<BR><TT># op str "operator" Operator name, for LPD spooling.</TT>&nbsp;
<BR><TT>#</TT>&nbsp;
<BR><TT># Some examples:</TT>&nbsp;
<BR><TT>#</TT>&nbsp;
<BR><TT># On many systems (notably not Solaris), no papd.conf is required,</TT>&nbsp;
<BR><TT># since papd shares the same defaults as lpd.</TT>&nbsp;
<BR><TT>#</TT>&nbsp;
<BR><TT># A simple example:</TT>&nbsp;
<BR><TT>#</TT>&nbsp;
<BR><TT># terminator:\</TT>&nbsp;
<BR><TT># :pr=lp:op=wes:\</TT>&nbsp;
<BR><TT># :pd=/usr/share/lib/ppd/HPLJ_4M.PPD:</TT>&nbsp;
<BR><TT>#</TT>&nbsp;
<BR><TT># Note also that papd.conf can list several printers.</TT>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<BR>&nbsp;
<DIV ALIGN=right><B><FONT SIZE=+2>Installing The Cats Pajamas</FONT></B></DIV>

<DIV ALIGN=right><A NAME="Installing Cats on the Server"></A><B><I><FONT SIZE=+2>Installing
Cats on the Server</FONT></I></B></DIV>
Installing Cats on a Linux server can be as simple as copying all the files
and directories from the old server to the Linux server's shared volume
for Cats. The way that I set up out server was to install another drive
in the Linux server to hold the Cats installation. I chose an IDE drive
mainly because I didn't have a SCSI card in the server, didn't have an
extra one handy and I was under an extreme time crunch to get Cats back
online. My intentions were to eventually replace the IDE drive with a SCSI
drive over Christmas break, but the performance has been more than satisfactory,
so we are going to leave the setup alone. I mount this drive as /usr/local/samba-cats
and have the permissions set open to the world by running the command chmod
777 /usr/local/samba-cats -R. This is a security risk, but Cats has told
me that the files must be world writeable and readable for Cats to work
properly. I also have the Samba configuration file set up with a mask of
0777, which will make sure that all files written will be readable by all
the users.

<P>The specific portion of the smb.conf file for Cats is listed here:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD><TT>[CATS-VOL]</TT>&nbsp;
<BR><TT>comment = Entire Cats volume for backup</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[L-NE]</TT>&nbsp;
<BR><TT>comment = Cat's root. Map as L.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[M-DATA]</TT>&nbsp;
<BR><TT>comment = Cat's data drive. Map as M.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne/data</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[N-DBC]</TT>&nbsp;
<BR><TT>comment = Cat's program drive. Map as N.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne/dbc</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[O-WORK]</TT>&nbsp;
<BR><TT>comment = Cat's work drive. Map as O.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne/work</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;

<P><TT>[P-HIST]</TT>&nbsp;
<BR><TT>comment = Cat's history drive. Map as P.</TT>&nbsp;
<BR><TT>path = /usr/local/samba-cats/ne/hist</TT>&nbsp;
<BR><TT>writeable = yes</TT>&nbsp;
<BR><TT>printable = no</TT>&nbsp;
<BR><TT>guest ok = yes</TT>&nbsp;
<BR><TT>public = yes</TT>&nbsp;
<BR><TT>create mask = 0777</TT>&nbsp;</TD>
</TR>
</TABLE>
At the time of this writing, we were still running Cats 2.3, so the major
directories were as follows:
<BR>&nbsp;
<TABLE BORDER=5 CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="24%" HEIGHT="170" BGCOLOR="#000099" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><FONT COLOR="#FFFFFF"><B><TT>ne----+</TT></B>&nbsp;</FONT>&nbsp;
<BR><FONT COLOR="#FFFFFF"><B><TT>&nbsp;&nbsp;&nbsp;&nbsp; |---> data</TT></B>&nbsp;</FONT>&nbsp;
<BR><FONT COLOR="#FFFFFF"><B><TT>&nbsp;&nbsp;&nbsp;&nbsp; |---> dbc</TT></B>&nbsp;</FONT>&nbsp;
<BR><FONT COLOR="#FFFFFF"><B><TT>&nbsp;&nbsp;&nbsp;&nbsp; |---> work</TT></B>&nbsp;</FONT>&nbsp;
<BR><B><TT><FONT COLOR="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp; |---> hist</FONT></TT></B></TD>
</TR>
</TABLE>
&nbsp;While we are currently able to get all of our system onto a 2.5 gigabyte
hard drive, I can see a day when we will have a large enough history that
we will need more space. We could just get a larger hard drive, but an
easier upgrade would be to just add another drive and mount it into the
directory tree. We could actually run four drives for Cats by mounting
a different drive into the ne directory for each subdirectory. By doing
this, data would be running on a drive, dbc would be a drive, work would
be a drive and hist would be a drive. In theory, the performance would
increase, since drive access to data would not slow down history searches,
or read/writes to the work drive.

<P>I have written a CGI Perl script to make it simple for our Business
Department and Customer service department to lock Cats during month-end
closing and reindexing procedures. The script asks for a password, and
then replaces the standard batch files to start Cats with another batch
file that says Cats is locked for closing or maintenance. When they are
finished, they can unlock Cats by running the unlock CGI script. The scripts
are listed here:

<P>Lock Cats:
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD>#!/usr/bin/perl&nbsp;
<BR># ******************************************************&nbsp;
<BR># * *&nbsp;
<BR># * Author: Quinn P. Coldiron *&nbsp;
<BR># * Date: 11-24-97 *&nbsp;
<BR># * Program: This locks Cats *&nbsp;
<BR># * *&nbsp;
<BR># ******************************************************&nbsp;
<BR># Use cgi-lib CGI library for PERL.&nbsp;
<BR>require "/home/httpd/cgi-bin/cgi-lib.pl";&nbsp;
<BR>#Get the data from the form.&nbsp;
<BR>&amp;ReadParse;&nbsp;
<BR>print &amp;PrintHeader;&nbsp;
<BR>print "&lt;HTML>\n";&nbsp;
<BR>print "&lt;HEAD>\n";&nbsp;
<BR>print "&lt;TITLE>Finished&lt;/TITLE>\n";&nbsp;
<BR>print "&lt;/HEAD>\n";&nbsp;
<BR>print "&lt;BODY BGCOLOR= #b7b7b7>\n";&nbsp;
<BR>if ( $in{password} =~ "PASSWORD") {&nbsp;
<BR>print "&lt;P>&lt;B>Finished.&lt;/B>&lt;/P>\n";&nbsp;
<BR>print "&lt;P>Batch files written and CATS is &lt;B>locked&lt;/B>.&lt;/P>\n";&nbsp;
<BR>print "&lt;BR>You may access CATS by going to the M: drive and typing
secret.bat\n";&nbsp;
<BR>print "This should only be used for Month-end closing, reindexing and
system repairs.\n";&nbsp;
<BR>print "&lt;BR>&lt;BR>Quinn.\n";&nbsp;
<BR>system ("cp /home/httpd/cgi-bin/cats/lock/*.bat /usr/local/samba-cats/ne/data/");&nbsp;
<BR>system ("chmod 777 /usr/local/samba-cats/ne/data/*");&nbsp;
<BR>} else {&nbsp;
<BR>print "Wrong password\n";&nbsp;
<BR>}&nbsp;
<BR>print "&lt;/BODY>\n";&nbsp;
<BR>print "&lt;/HTML>\n";&nbsp;</TD>
</TR>
</TABLE>
Unlock Cats:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD>#!/usr/bin/perl&nbsp;
<BR># ******************************************************&nbsp;
<BR># * *&nbsp;
<BR># * Author: Quinn P. Coldiron *&nbsp;
<BR># * Date: 11-24-97 *&nbsp;
<BR># * Program: This program copies that cats#.bat files *&nbsp;
<BR># * to the correct location. *&nbsp;
<BR># ******************************************************&nbsp;
<BR># Use cgi-lib CGI library for PERL.&nbsp;
<BR>require "/home/httpd/cgi-bin/cgi-lib.pl";&nbsp;
<BR>#Get the data from the form.&nbsp;
<BR>&amp;ReadParse;&nbsp;
<BR>print &amp;PrintHeader;&nbsp;
<BR>print "&lt;HTML>\n";&nbsp;
<BR>print "&lt;HEAD>\n";&nbsp;
<BR>print "&lt;TITLE>Finished&lt;/TITLE>\n";&nbsp;
<BR>print "&lt;/HEAD>\n";&nbsp;
<BR>print "&lt;BODY BGCOLOR= #b7b7b7>\n";&nbsp;
<BR>if ( $in{password} =~ "PASSWORD") {&nbsp;
<BR>print "&lt;P>&lt;B>Finished.&lt;/B>&lt;/P>\n";&nbsp;
<BR>print "&lt;P>Batch files written and CATS is unlocked.&lt;/P>\n";&nbsp;
<BR>print "&lt;BR>&lt;BR>Quinn.\n";&nbsp;
<BR>system ("cp /home/httpd/cgi-bin/cats/unlock/*.bat /usr/local/samba-cats/ne/data/");&nbsp;
<BR>system ("chmod 777 /usr/local/samba-cats/ne/data/*");&nbsp;
<BR>} else {&nbsp;
<BR>print "Wrong password!\n";&nbsp;
<BR>}&nbsp;
<BR>print "&lt;/BODY>\n";&nbsp;
<BR>print "&lt;/HTML>\n";&nbsp;
<BR>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<DIV ALIGN=right><A NAME="Configuring your Windows clients"></A><B><I><FONT SIZE=+2>Configuring
your Windows clients</FONT></I></B></DIV>
I have setup our Cats installation to share each required cats directory
as a hard mounted drive letter. The specific portion of the login script
that mounts cats is listed here:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="30%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD>REM CATS drives&nbsp;
<BR>net use l: \\unplinux\l-ne&nbsp;
<BR>net use m: \\unplinux\m-data&nbsp;
<BR>net use n: \\unplinux\n-dbc&nbsp;
<BR>net use o: \\unplinux\o-work&nbsp;
<BR>net use p: \\unplinux\p-hist&nbsp;</TD>
</TR>
</TABLE>
My cats batch file is here:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="40%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD>PATH=C:\;C:\WINNT;C:\WINDOWS;L:\;M:\;N:\;O:\;P:\&nbsp;
<BR>SET DBC_FILEPATH=L:\;M:\;N:\;O:\;P:\&nbsp;
<BR>Set DBC_PREP=M:&nbsp;
<BR>Set DBC_FILES=140&nbsp;
<BR>Set DBC_PGMSIZE=65024&nbsp;
<BR>Set DBC_CMDLINE=OLD&nbsp;
<BR>SET DBC_XKEYS=ON&nbsp;
<BR>Set DBC_COMPAT=DOS&nbsp;
<BR>Set DBC_PORT=24&nbsp;
<BR>SET DBC_DBCPATH=N:\&nbsp;
<BR>M:&nbsp;
<BR>DBC.EXE&nbsp;</TD>
</TR>
</TABLE>
I have also followed the suggestions on the Cats web site http://www.tcpj.com
for specific settings for Windows 95. I have found that all of these do
help in getting Cats to run better.
<DIV ALIGN=right><A NAME="Configuring the DOS emulator to run Cats"></A><B><I><FONT SIZE=+2>Configuring
the DOS emulator to run Cats</FONT></I></B></DIV>
Linux has a very interesting program called DOSEMU which creates a ``DOS
box'' that can run many DOS applications, including MS-DOS, PC-DOS, DR
DOS, Open DOS, Windows for Workgroups 3.11, the Novell Netware client and
many more. I had problems at first getting DOSEMU to run programs on the
redirected drives unless I called them by the full name (go.bat instead
of go) but tracked this down to the version of DOS that I was using. I
was using Novell DOS 7.0 but switched to MS-DOS 6.22 on the advice of Hans
Lermen (one of the DOSEMU developers) and this fixed the problem. He said
that this has been reported many times and it seems to be a bug in the
command.com code that many versions of non Microsoft DOS use.

<P>DOSEMU uses an image file of a hard disk to emulate a DOS hard drive
so you do not need to have a DOS partition. Using the /var/lib/dosemu/setup-hdimage
program will step you through making a basic hdimage file. The only required
item is a bootable DOS 6.22 floppy disk with whatever DOS tools you think
you might need. I included EDIT.COM and QBASIC.EXE. After running through
the setup-hdimage program, start the emulator with xdos or dos, depending
on if you are in X-Windows or not. The default setup gives you the Linux
hard drive as DOS drive D:\. To copy the programs I wanted off the floppy
to the hdimage file, I opened another xterm window and mounted the floppy
to /mnt/floppy, then switched back to DOSEMU, changed to D:\mnt\floppy
and copied EDIT.COM and QBASIC.EXE to C:\. I could now run the MS-DOS editor
to edit the config.sys and autoexec.bat files. If I wanted, I could also
write a quick QBASIC program.

<P>DOSEMU gives you a utility called LREDIR which redirects Linux directories
to DOS drive letters. Below is the AUTOEXEC.BAT that I use with DOSEMU
to give me the drive letters for Cats and for Robotronics.
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="50%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD>@echo off&nbsp;
<BR>path=c:\;l:\;m:\;n:\;o:\;p:\&nbsp;
<BR>prompt $p$g&nbsp;
<BR>rem set temp=c:\temp&nbsp;
<BR>lredir l: linux\fs\usr\local\samba-cats\ne&nbsp;
<BR>lredir m: linux\fs\usr\local\samba-cats\ne\data&nbsp;
<BR>lredir n: linux\fs\usr\local\samba-cats\ne\dbc&nbsp;
<BR>lredir o: linux\fs\usr\local\samba-cats\ne\work&nbsp;
<BR>lredir p: linux\fs\usr\local\samba-cats\ne\hist&nbsp;
<BR>lredir t: linux\fs\usr\local\samba-sys\programs\nesb&nbsp;
<BR>c:&nbsp;
<BR>menu.bat&nbsp;</TD>
</TR>
</TABLE>
This autoexec.bat file loads the redirected drives and displays a menu
which allows the user to select the DOS application they want to run (CATS
and Robotronics). I have set the dos emulator as the shell, so that as
soon as the Mac users or remote users telnet into the Linux server the
DOS emulator is started and they get the main menu. When they exit the
DOS emulator, they are disconnected from the server.
<DIV ALIGN=right><A NAME="Installing a RAID"></A><B><FONT SIZE=+2>Installing
a RAID</FONT></B></DIV>
<A HREF="http://www.dpt.com/"><IMG SRC="./gx/coldiron/RAID.JPG" BORDER=0 NATURALSIZEFLAG="3" HEIGHT=157 WIDTH=150 ALIGN=BOTTOM></A>The
RAID that we chose to purchase was a kit that contained a SCSI RAID controller
and subsystem storage cabinet from Distributed Processing Technology.

<P>The SCSI card is a PCI card with a caching module added to it. The cache
module has four SIMM slots on it and will accept any standard 32 pin SIMM
up to 16 meg each for a total of 64 megabytes of cache. The card comes
with a four meg module already installed, and that is what we currently
are using.

<P>The storage subsystem requires you to supply your own drives and comes
in two style. One supports narrow SCSI drives and the other supports wide
drives. We are using the narrow drive cabinet, mainly because I already
had three drives that I wanted to use. Installing the drives can be tricky,
as the data cable is not color coded and I could not tell what wire was
for pin one. The first time around I had the drives installed backwards,
but nothing was hurt. I called the tech support line and they were very
helpful in getting the problem fixed.

<P>After installing the card in the server, the next step is to configure
the RAID with the RAD level of choice. We chose to run RAID level 5. While
Linux does have built in drivers for the DPT controller card, DPT does
not offer Linux utilities to configure the unit. What I did was temporarily
plug a 200 meg IDE hard drive into the server to boot from and ran the
DOS configuration utilities which are graphical and easy to follow. Using
the mouse, I selected the three drives that I wanted to include in my RAID,
then selected the RAID level I wanted, saved the configuration and shutdown
the computer. I then unplugged the IDE DOS drive and reconnected the IDE
Linux boot drive.

<P>I kind of cheated when I installed the driver for the SCSI card by rerunning
the Linux setup program. I had other things that needed fixing, so I thought
this would be the best way. I could have just added the daemon by using
the tools in the control panel as well or by typing<TT> insmod eata-dma
</TT>at the command prompt and the driver would be loaded and I could see
the report that the system now recognizes my SCSI card and RAID. During
the installation, select YES when asked if you have a SCSI card and select
correct driver (EATA-DMA) for the card you have. When you are finished
and reboot the computer, you will see the RAID initialize and report the
settings you configured under DOS, then the kernel recognizing the card.

<P>Now, you need to create a partition and format the drive. To make a
partition, use the fdisk command and follow the menu to make a Linux primary
partition. Formatting the RAID is as easy as formatting any other drive.
Remember that the system sees your RAID as a single, large disk. To format
it in Linux, issue the mkefs2 /dev/sda1, or whatever SCSI drive it is.
To actually use the disk after formatting, you need to mount it someplace.
I wanted to use this disk for the home directories of our users, so I mounted
it as /home/raid. But, whenever I added a user, they were still being added
to /home and not on the RAID, so I edited the /usr/sbin/adduser script
(which is just a Perl script) and changed the home directory location to
/home/raid. Now, whenever I add a user, they are added to the RAID.
<DIV ALIGN=right><B><FONT SIZE=+2>Daily administration</FONT></B></DIV>

<DIV ALIGN=right><A NAME="System backups"></A><B><I><FONT SIZE=+2>System
backups</FONT></I></B></DIV>
I have a SCSI Hewlett Packard SureStore 6000 4mm DAT drive that I am setting
up for backup duties for our Linux server. Currently, I am backing up all
data through Samba to our Windows NT server using

<P>another SureStore 6000 tape drive and Cheyenne Arcserve software. I
have also been known to make a quick backup to the RAID using tar. Tar
is a simple utility that has been around Unix almost as long as Unix has
been around.

<P>To make a tar backup, just issue the following command:

<P>tar cvf archivename.tar /directory-to-archive

<P>This will create a tar file named archive.tar of the contents of the
directory directory-to-archive. While this works fine, the resulting file
might be very large because we did not apply any compression. By

<P>modifying the command to look like this:

<P>tar cvzf archivename.tar.gz /directory-to-archive

<P>We compress the tar file with gzip after the file is made. At a later
date, we might want to view what is in the tar file, so we can issue the
tar tvf archivename.tar.gz to list the files in the archive.

<P>While backing up to disk is OK for a temporary thing, you should always
backup to tape for critical data. Linux supports two types of tape drives.
The first is the style that connects to the floppy drive

<P>controller, like the Colorado drives and Iomega Ditto. The other style
connect to a SCSI controller. Floppy tape drives have the device names
of /dev/ft0, dev/ft1 and so on. SCSI drives are /dev/st0, /dev/st1 and
so on. These devices are "rewinding" devices which rewind the tape when
the operation is completed. IF you are archiving more than one session
to the tape, then use the non-rewinding devices /dev/nft0, /dev/nrft1,
/dev/nst0, /dev/nst1 and so on.

<P>After writing the archive to tape, you can use the mt (magnetic tape)
command to rewind, retention and find sessions on tape. The table below
shows the commands.

<P>mt /dev/nft0 rewind

<P>mt /dev/nft0 retention

<P>mt /dev/nft0 fsf 1 skips the current session to find the next session
on tape.

<P>To use the mt command, you must use the non-rewinding devices.

<P>Using tar to make backups has its good points and its bad points. On
the bad side, neither tar or gzip are fault-tolerant. Compressing tar files
with gzip will greatly reduce the amount of space on the backup

<P>media, but if even one block of the archive gets corrupted, which can
happen on tapes, the entire file can be useless. Usually, you will be able
to retrieve all data up to that point, though. A better solution is to
use a "real" backup system such as BRU (Backup and Restore Utility) that
comes with a purchased version of RedHat Linux 5.0. Backup systems usually
compress each file individually, so that if the media is damaged, you will
not usually lose the entire archive.

<P>BRU has both a command prompt interface and a graphical X-Windows interface
and is included with RedHat 5.0. BRU offers automated backup scheduling
and scripting, so it is very easy to setup a simple but effective and reliable
backup system. I find the system as easy to maintain as ArcServe on Windows
NT.
<DIV ALIGN=right><A NAME="Scheduling events"></A><B><I><FONT SIZE=+2>Scheduling
events</FONT></I></B></DIV>
Linux has a very easy to use scheduler program called cron that will run
commands, scripts or programs at the scheduled times. To edit the list
of events, issue the crontab -e command. This will start the default editor
(usually vi, but I changed mine to joe). When you exit the editor, cron
will install the new config file you just edited and schedule all the jobs.
You can view the schedule by issuing the crontab -l command:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="75%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD>SHELL=/bin/bash&nbsp;
<BR>PATH=/sbin:/bin:/usr/sbin:/usr/bin&nbsp;
<BR>MAILTO=root&nbsp;
<BR># Run any at jobs every minute&nbsp;
<BR># * * * * * root [ -x /usr/sbin/atrun ] &amp;&amp; /usr/sbin/atrun&nbsp;
<BR># run-parts&nbsp;
<BR># 01 * * * * root run-parts /etc/cron.hourly&nbsp;
<BR># 02 1 * * * root run-parts /etc/cron.daily&nbsp;
<BR># 02 2 * * 0 root run-parts /etc/cron.weekly&nbsp;
<BR># 02 3 1 * * root run-parts /etc/cron.monthly&nbsp;
<BR># Remove /tmp, /var/tmp files not accessed in 10 days (240 hours)&nbsp;
<BR># 41 02 * * * root /usr/sbin/tmpwatch 240 /tmp /var/tmp&nbsp;
<BR># Remove formatted man pages not accessed in 10 days&nbsp;
<BR># 39 02 * * * root /usr/sbin/tmpwatch 240 /var/catman/cat?&nbsp;
<BR>#############################################################&nbsp;
<BR># WWW logs. I run 2 so I can compare results.&nbsp;
<BR>#############################################################&nbsp;
<BR># Run web one web log utility 0 0-23 * * * /usr/bin/log&nbsp;
<BR>02 1 * * * /usr/bin/log&nbsp;
<BR># Run the other web log utility 0 0-23 * * * /usr/local/mkstats/mkstats.pl
-c mkstats.config&nbsp;
<BR>02 1 * * * /usr/local/mkstats/mkstats.pl -c mkstats.config&nbsp;
<BR>#############################################################&nbsp;
<BR>#############################################################&nbsp;
<BR># Live stream management&nbsp;
<BR>#############################################################&nbsp;
<BR># Create xdm file for live stream for Sports Nightly (5:45 pm)&nbsp;
<BR>45 17 * * 1,2,3,4,5 livestream-on&nbsp;
<BR># Kill xdm file for live stream for Sports Nightly (8:10 pm)&nbsp;
<BR>10 20 * * 1,2,3,4,5 livestream-off&nbsp;
<BR># Create xdm file for live stream for Saturday games (7:00 am)&nbsp;
<BR>0 7 * * 6 livestream-on&nbsp;
<BR># Kill xdm file for live stream for Saturday games (10:00 pm)&nbsp;
<BR>0 22 * * 6 livestream-off&nbsp;
<BR># Check the 3.0 server to see if it is running and not dead! (every
minute)&nbsp;
<BR>1-59 * * * * /usr/local/streamworks-3.0/checkSWserver&nbsp;
<BR>##############################################################&nbsp;
<BR># Check to see if network volumes are mounted (at 10:00 p.m.).&nbsp;
<BR># These need to be mounted since this machine performs the&nbsp;
<BR># backup at 11:55.&nbsp;
<BR>0 22 * * 1,2,3,4,5 checkmounts&nbsp;
<BR># copy BIP from Intrepid to exeter (WWW)&nbsp;
<BR>0 23 * * 1,2,3,4,5 /usr/local/bin/mvbip&nbsp;
<BR># backup userdata from intrepid&nbsp;
<BR>55 23 * * 1,2,3,4,5 bu-userdata&nbsp;
<BR># backup CATS&nbsp;
<BR>55 23 * * 1,2,3,4,5 bu-cats&nbsp;
<BR># backup Marketing&nbsp;
<BR>0 3 * * 1,2,3,4,5 bu-marketing&nbsp;
<BR># mail orders to quinn&nbsp;
<BR>0 8 * * 1,2,3,4,5 /usr/local/bin/mailunporders.pl&nbsp;</TD>
</TR>
</TABLE>
Each entry has a specific configuration to follow. If you want the command
to run every day at 1:00 AM, specify the minute as 0 and the hour as 1.
The other three fields should be asterisks, which means ``every day and
month at the given time.

<P>You might notice the entry

<P># Check to see if network volumes are mounted (at 10:00 p.m.).
<BR># These need to be mounted since this machine performs the
<BR># backup at 11:55.
<BR>0 22 * * 1,2,3,4,5 checkmounts

<P>This calls a script I wrote to check that the NT server is mounted so
I can backup all data on it. I mount the server using the smbmount command
which allows a Linux machine to mount shares from a Windows machine. This
script just verifies that a certain file or directory is actually at the
mount point. I use these ``reference'' files for checking purposes, so
they are read-only, so they can't be accidentally deleted by users. The
script is listed here:
<BR>&nbsp;
<TABLE BORDER CELLSPACING=2 CELLPADDING=0 COLS=1 WIDTH="50%" BGCOLOR="#D4D4D4" NOSAVE >
<TR>
<TD>#!/bin/sh&nbsp;
<BR># Cronjob to remount network drives if they are not mounted.&nbsp;
<BR># Author: Quinn P. Coldiron&nbsp;
<BR>if [ -z "`ls /mnt/exeter | grep InetPub | grep -v grep`" ]&nbsp;
<BR>then&nbsp;
<BR>umount /mnt/exeter&nbsp;
<BR>/mnt/mountexeter&nbsp;
<BR>echo "Exeter remounted `date`"&nbsp;
<BR>fi&nbsp;
<BR>if [ -z "`ls /mnt/intrepid-f | grep BLINE | grep -v grep`" ]&nbsp;
<BR>then&nbsp;
<BR>umount /mnt/intrepid-f&nbsp;
<BR>/mnt/mountintrepid-f&nbsp;
<BR>echo "Intrepid F remounted `date`"&nbsp;
<BR>fi&nbsp;
<BR>if [ -z "`ls /mnt/intrepid-g | grep QC | grep -v grep`" ]&nbsp;
<BR>then&nbsp;
<BR>umount /mnt/intrepid-g&nbsp;
<BR>/mnt/mountintrepid-g&nbsp;
<BR>echo "Intrepid G remounted `date`"&nbsp;
<BR>fi&nbsp;
<BR>if [ -z "`ls /mnt/intrepid-mrktdept | grep KK | grep -v grep`" ]&nbsp;
<BR>then&nbsp;
<BR>umount /mnt/mountintrepid-mrkt&nbsp;
<BR>/mnt/mountintrepid-mrktdept&nbsp;
<BR>echo "Marketing remounted `date`"&nbsp;
<BR>fi&nbsp;
<BR>echo "All network volumes mounted."&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<BR>&nbsp;
<DIV ALIGN=right><A NAME="Replacing your Desktop OS with Linux"></A><B><FONT SIZE=+2>Replacing
your Desktop OS with Linux</FONT></B></DIV>
Places to go:
<UL>
<LI>
<A HREF="http://www.redhat.com/">RedHat</A></LI>

<LI>
<A HREF="http://www.kde.org/">K Desktop</A></LI>

<LI>
<A HREF="http://www.info.polymtl.ca/ada2/coyote/www/linux_desktops.html">Amazing
Linux Desktops</A></LI>
</UL>
I have wanted to make Linux my desktop operating system for a long time,
but I couldn't because I needed to be able to run the following applications:
Microsoft Word, WordPerfect, Microsoft Excel, Microsoft Access, our internal
mail system (Pegasus), Microsoft Access and Microsoft Visual Basic. I have
recently narrowed the list of required applications that do not have a
Linux counterpart down to Access and Visual Basic, which we will analyze
later.

<P>I have found that, for the most part, I can replace Microsoft Office
with Applixware. Applixware is an office suite for Linux (an many other
Unix platforms) that can read and write Word and Excel files, which allows
me to share documents with the rest of the press. While I still cannot
read Access databases, I am working out a solution for that which we will
discuss later.

<P><B>Applix Words</B>
<UL>
<LI>
&middot; Live links to Applixware or third-party applications</LI>

<LI>
&middot; Mail-enabled compound document technology</LI>

<LI>
&middot; Landscape, portrait and merge printing</LI>

<LI>
&middot; Multiple undo and redo</LI>

<LI>
&middot; Hypertext with optional HTML output</LI>

<LI>
&middot; Forms editor</LI>

<LI>
&middot; International dictionaries, thesauri and spell checkers</LI>

<LI>
&middot; Conditional text and cross-referencing; find and replace</LI>

<LI>
&middot; Embedded equations and calculation support</LI>

<LI>
&middot; Multiple typefaces, type styles and sizes</LI>

<LI>
&middot; Highly graphical user interface</LI>

<LI>
&middot; Tables and frames; borders and shading</LI>

<LI>
&middot; Multimedia support including audio and video</LI>
</UL>
<B>Applix Spreadsheets</B>
<UL>
<LI>
&middot; Live links to other Applixware and external applications</LI>

<LI>
&middot; Calculation-based attributes</LI>

<LI>
&middot; 3D spreadsheets and charts</LI>

<LI>
&middot; Integration of external functions</LI>

<LI>
&middot; Built-in string, financial, mathematical, and statistical functions</LI>

<LI>
&middot; Goal seeking</LI>

<LI>
&middot; Multiple named views</LI>

<LI>
&middot; Dynamic inter-spreadsheet links</LI>

<LI>
&middot; Live graphs and charts</LI>

<LI>
&middot; Editable graph styles</LI>

<LI>
&middot; Print preview</LI>

<LI>
&middot; Borders and shading</LI>

<LI>
&middot; Drag-and-drop moving of cells</LI>

<LI>
&middot; Projection tables</LI>

<LI>
&middot; Relative and absolute cell references</LI>

<LI>
&middot; Built-in database functions</LI>

<LI>
&middot; Built-in shared library, RPC, and shell command mechanisms</LI>

<LI>
&middot; True minimal recalculation</LI>
</UL>
<B>Applix Presentation Graphics</B>
<UL>
<LI>
&middot; Feature-rich palette, fill patterns &amp; drawing tools</LI>

<LI>
&middot; Horizontal and vertical shearing</LI>

<LI>
&middot; User-definable fill patterns, brush styles and shapes</LI>

<LI>
&middot; Unlimited color support and point sizes</LI>

<LI>
&middot; Rotating and scaling options</LI>

<LI>
&middot; Drop shadows</LI>

<LI>
&middot; Text wrapping</LI>

<LI>
&middot; Image digitizing</LI>

<LI>
&middot; Pixel editing</LI>

<LI>
&middot; Managed layers and animation</LI>
</UL>
<B>Applix Mail</B>
<UL>
<LI>
&middot; Fully mail-enables all Applixware products</LI>

<LI>
&middot; Personal and global user lists, distribution lists and aliases</LI>

<LI>
&middot; Sorting, filing and querying on incoming messages</LI>

<LI>
&middot; Automatic conversion of messages/documents to recipient's preferences</LI>

<LI>
&middot; UNIX sendmail transport and MIME compliant</LI>

<LI>
&middot; Shared folders</LI>
</UL>
<B>Applix HTML Author</B>
<UL>
<LI>
&middot; Availability of a wide range of basic and advanced HTML concepts</LI>

<LI>
&middot; More than 25 standard HTML styles for headlines, subheads, lists
and text</LI>

<LI>
&middot; Auto-conversion of Applix Words styles to standard HTML styles</LI>

<LI>
&middot; Auto-conversion of Applix Graphics and Applix Presents to GIF,
including linked or embedded graphics</LI>

<LI>
&middot; Auto-conversion or creation of tables</LI>

<LI>
&middot; Full control over background color, text and hyperlink colors</LI>

<LI>
&middot; Auto-bulleting and auto-listing functions</LI>

<LI>
&middot; Dialog boxes and pull-down menus for all attributes and activities</LI>

<LI>
&middot; Straightforward linking and editing of existing GIF files</LI>
</UL>
<B>The Extension Language Facility (ELF) and Macros</B>
<UL>
<LI>
&middot; Robust interpretive programming language</LI>

<LI>
&middot; TCP/IP socket interface and remote procedure calls (RPCs)</LI>

<LI>
&middot; Interactive debugger, compiler/interpreter</LI>

<LI>
&middot; Arithmetic, string and Boolean operators</LI>

<LI>
&middot; Over 2500 built-in macros. Time-saving features for all users</LI>

<LI>
&middot; User-definable menu bars, dialog boxes and keybindings, menu-bar
editor across all Applixware products</LI>

<LI>
&middot; Keystroke and mousepick recorder</LI>

<LI>
&middot; Live linking and launching of external applications from Applix
Words,</LI>

<LI>
&middot; Spreadsheets, Presents, and Mail.</LI>

<LI>
&middot; User-definable ExpressLine icons for automating tasks</LI>

<LI>
&middot; Incremental zoom</LI>
</UL>
<B>Changes from Previous Version</B>

<P>This new version features advanced HTML authoring tools for adding pages
to your website simply and directly. It also has dramatically improved
filter technology enabling you, for example, to import and work on Word
or WordPerfect files and export back in those formats. If you want the
``real thing'', Corel has version 7.0 of Word Perfect available for Linux.

<P>The graphical user interface for Linux (and Unix in general) is X Windows.
A typical X Windows setup is shown below. This system is running the Common
Desktop Environment (CDE) window manager. X Windows is divided into two
subsystems consisting of a server and a client and you are free to change
either of these as your want. The main reason for changing an X server
is to gain better speed and better support for your video cards and monitors.
The main reason for changing window managers is to get the look and feel
you desire. You can not change the server or window manager under any of
the Windows products, because Microsoft has decided the look and feel you
get. The closest they get is the Plus! pack and its themes.

<P>Another possibility , which will save money and breath life into your
old 486's is to install Linux on them and use them as a NC (Network Computer).
Linux's GUI is X, so it is perfect for an X terminal (with either another
Linux machine as the server, or any other Unix system) and you can run
Insignia Solutions Inc.'s Keoke client under Java in order to turn your
Linux workstation into a thin client that runs Windows (virtual NT) applications.

<P>As a rule, Linux performs radically better than Windows 3.1 given the
same amount of RAM. Linux can run complete with a graphical desktop on
a 386 with 4MB of RAM, if you're patient. Add Netscape Navigator, and you
can get away with a 486 and 8MB of RAM. Consider 16MB of RAM a performance
sweet spot, especially if you use Communicator. Linux also has unimposing
disk space requirements. The bare-bones Caldera graphical client uses about
68MB of disk space. You'll want to install a few more packages than that
(Netscape, Java, and perhaps a friendlier window manager than the default
Fvwm), and you'll need at least a 32MB swap partition. When you consider
all the factors, a 200MB disk is plenty for most desktops.
<DIV ALIGN=right>&nbsp;</DIV>

<DIV ALIGN=right><B><FONT SIZE=+2>Appendix A</FONT></B></DIV>

<DIV ALIGN=right><A NAME="RedHat 5.0 Installation Guide"></A><B><FONT SIZE=+2>RedHat
5.0 Installation Guide</FONT></B></DIV>

<DIV ALIGN=right><B><FONT SIZE=+2>Appendix B</FONT></B></DIV>

<DIV ALIGN=right><A NAME="Samba"></A><B><FONT SIZE=+2>Samba</FONT></B></DIV>

<DIV ALIGN=right><B><FONT SIZE=+2>Appendix C</FONT></B></DIV>

<DIV ALIGN=right><A NAME="DOSEMU Manual"></A><B><FONT SIZE=+2>DOSEMU Manual</FONT></B></DIV>

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, Quinn P. Coldiron <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./nelson.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./kahn.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->

<CENTER>
<H1>
<FONT FACE="Arial,Helvetica">Revisiting VIM</FONT></H1></CENTER>

<CENTER><FONT FACE="Arial,Helvetica"><FONT SIZE=+1>
by <a href="mailto:kahn@zk3.dec.com">Andy Kahn</a></FONT></FONT></CENTER>

<CENTER><FONT FACE="Arial,Helvetica"><FONT SIZE=+1>April 29th, 1998</FONT></FONT></CENTER>
<HR>

<CENTER><FONT FACE="Arial,Helvetica">&nbsp;</FONT></CENTER>
<FONT FACE="Arial,Helvetica">Vim stands for "VI Improved", and certainly,
it a very much improved version of the old text editor, vi. It's been a
while since the gazette had an article on vim (over a year to be exact!),
and a lot has changed since then, including a major version release. I
decided to cover some of the new features (as well as some older features)
that I find extremely useful in vim, but not in vi.</FONT>
<BR>
<H3>
<FONT FACE="Arial,Helvetica">Features</FONT></H3>
<FONT FACE="Arial,Helvetica">First of all, let me just run down some of
the big features of the latest version of vim:</FONT>
<BLOCKQUOTE>
<LI>
<FONT FACE="Arial,Helvetica">Syntax highlighting</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">Win32 GUI version</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">BeOS version, including GUI</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">MacOS GUI version</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">VMS version</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">Built-in scripting language</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">Perl and Python support</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">Unlimited undo</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">Multiple windows</FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica">...and a ton of other good stuff</FONT></LI>
</BLOCKQUOTE>

<H3>
<FONT FACE="Arial,Helvetica">Syntax highlighting</FONT></H3>
<FONT FACE="Arial,Helvetica">Personally, I found the syntax highlighting
to be one of the most useful features of vim. Syntax highlighting (or coloring,
as some may call it), colors text according to their attributes. For editing
code, this allows you to have different colors for commented text, keywords,
numbers, etc. You may not think much of it, but believe me, after staring
at code for long periods of time, all the text on the screen starts looking
pretty much the same. It certainly helps to have some color differentiate
between actual code, and comments in the code! A picture is worth a thousand
words, so here's a screen shot of my vim setup editing main.c from the
vim source:</FONT><BR>
<BR>
<CENTER><IMG SRC="./gx/kahn/vim_syntax_highlighting1.gif" ></CENTER>


<P><FONT FACE="Arial,Helvetica">You may notice the curious string on the
very first line of the file: "</FONT><TT>vi:set ts=8 sts=4 sw=4:</TT><FONT FACE="Arial,Helvetica">"
This is just a little formatting shortcut. If you write code that other
people may look at and/or edit, if they also use vim, then the code will
be properly indented as you intended it to be! This is just like the magic
strings people use in emacs: "</FONT><TT>-*- Mode: C++; tab-width: 4; indent-tabs-mode:
nil; c-basic-offset: 4 -*-</TT><FONT FACE="Arial,Helvetica">" to make indentation
look consistent.</FONT><br>
<H3>
<FONT FACE="Arial,Helvetica">Gui versions</FONT></H3>
<FONT FACE="Arial,Helvetica">As for all the wonderful GUI versions of vim,
here's a screenshot I found at <A HREF="http://polder.ubc.kun.nl/~rhialto/be/vim-5.0s-screen1.gif">http://polder.ubc.kun.nl/~rhialto/be/vim-5.0s-screen1.gif</A>
showing off the BeOS version:</FONT>&nbsp;<BR>
<BR>
<CENTER><IMG SRC="./gx/kahn/vim-5.0s-screen1.gif" ></CENTER>


<P><FONT FACE="Arial,Helvetica">Here is a BIG screenshot of the Unix version
of vim with four different looks (vim in an xterm, vim using Athena, vim
using Athena with Xaw3d, and vim using Motif (for Linux users, Vim also
works with Lesstif)).  Click on the image for the full size version:</FONT>&nbsp;<BR>
<BR>
<CENTER><A HREF="./gx/kahn/vim_big.gif"><IMG SRC="./gx/kahn/vim_big-small.gif" ></A></CENTER><br>

<CENTER><FONT FACE="Arial,Helvetica"></FONT></CENTER>
<FONT FACE="Arial,Helvetica">There are plenty more screenshots <A HREF="http://www.vim.org/pics.html">here</A>.</FONT><br>
<H3>
<FONT FACE="Arial,Helvetica">Built-in Scripting</FONT></H3>
<FONT FACE="Arial,Helvetica">The built-in scripting language is a small
language (as opposed to Perl and Python) that let's you do some simple
things in your vim startup file (.exrc or rather, .vimrc). For example,
the simplest thing to do is to check for a version or feature:</FONT> <PRE>
<TT>    if version >= 500
    "   Switch on syntax highlighting.
        syntax on

        if has("cscope")
            set csexec=/usr/local/bin/cscope
            set csto=0
            set csta=1
            set csverb=0
            cs add cscope.out
            set csverb=1
        else
            map ^] g^]
        endif
    endif
</TT></PRE><br>

<H3>
<FONT FACE="Arial,Helvetica">Visual Text Selecting</FONT></H3>
<FONT FACE="Arial,Helvetica">A feature which is present even in the previous
version of vim that I use frequently is its "Visual" capability. By hitting
"v" when in command mode, you can highly lines and words and then perform
just about any normal vim operation on the selected text! This includes,
deleting, copying, pasting, running more ":ex" commands, and my favorite,
reindenting. For example, let's say I highlighted the following code:</FONT>&nbsp;<BR>
<BR>
<CENTER><IMG SRC="./gx/kahn/vim_visual1.gif" ></CENTER>


<P><FONT FACE="Arial,Helvetica">If I hit ">" (that's the greater-than sign,
or Shift-.), the result will look like this:</FONT>&nbsp;<BR>
<BR>
<CENTER><IMG SRC="./gx/kahn/vim_visual2.gif" ></CENTER>


<P><FONT FACE="Arial,Helvetica">Or if I were to hit "&lt;" (the less-than
sign, or Shift-,), I get this result:</FONT>&nbsp;<BR>
<BR>
<CENTER><IMG SRC="./gx/kahn/vim_visual3.gif" ></CENTER>


<P><FONT FACE="Arial,Helvetica">If I really wanted to, I could highlight
the entire function, and run then run it through the "indent" program:</FONT>&nbsp;<BR>
<BR>
<CENTER><FONT FACE="Arial,Helvetica">Before:<p><IMG SRC="./gx/kahn/vim_visual4.gif"  ALIGN=CENTER></A>&nbsp;&nbsp;<p>
After:<p></FONT><IMG SRC="./gx/kahn/vim_visual5.gif"  ALIGN=ABSCENTER></CENTER>

<CENTER>&nbsp;</CENTER><br>

<H3>
<FONT FACE="Arial,Helvetica">C and C++ tags</FONT></H3>
<FONT FACE="Arial,Helvetica">Another feature programmers will find handy
is vim's ability to deal with multiple tags. Vim comes with "Exhuberant
Ctags", and with it, you can store multiple definitions in the same tags
file. Once in vim, you can do use ":tselect" or ":tjump" on a tag, and
vim will present to you a list of the multiple tag entries. Just select
from the list, and vim will take you there as it normally would with a
single tag entry!</FONT><br>
<H3>
<FONT FACE="Arial,Helvetica">There's More!</FONT></H3>
<FONT FACE="Arial,Helvetica">Of course, I could go on and on about all
the little (as well as big!) things that make vim such a great editor.&nbsp;
But I&nbsp;won't bore you with the details. :)&nbsp;&nbsp;You can go read
about them yourself on vim's homepage:&nbsp;<A HREF="http://www.vim.org">www.vim.org</A>.&nbsp;
There's plenty of new things being worked on and added all the time, including
more features in the various GUI versions (contact me if you are interested
in doing a GTK&nbsp;and/or a QT version!), ports to other platforms (including
the Amiga), and other nifty features.</FONT><FONT FACE="Arial,Helvetica"></FONT>

<P><FONT FACE="Arial,Helvetica">There are certainly a lot of text editors
out there, and if you're a vi user, you should definitely consider using
vim if you aren't doing so already!</FONT><br>
<hr>
<FONT FACE="Arial,Helvetica">
Andy works at Digital Equipment Corporation doing
Digital Unix filesystems kernel development.
He thinks he's just hacking away at more and more C code,
and in his copious spare time, he hacks on lots of other
things, including all the trees in his neighborhood.
Feel free to send him
<a href="mailto:kahn@zk3.dec.com">email</a>.

</FONT><br>

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, Andy Kahn <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./coldiron.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./richardson.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->
<font color="navy">A <I>Linux Journal</I> Preview</font>:
This article will appear in the August issue of <I>Linux Journal</I>.
<P> <HR> <P> 

<center>
<H1><font color="maroon">Sun Joins Linux International</font></H1>
<H4>By <a href="mailto:gazette@ssc.com">Marjorie Richardson</a></H4>
</center>
<P> <HR> <P>  

In May, Sun Microsystems joined Linux International. In a
year where Netscape has released their source and many companies have
announced that their products will be supporting Linux, I felt Sun's move
was an interesting enough development to want to know more. Therefore, I
did a short e-mail interview with Charles Andres, a Group Manager in
Market Development Engineering at Sun Microsystems. Here's what he told me.
<p>
<i>
<b>Margie</b>:Why has Sun made the decision to join Linux International?
</i><p>
<b>Charles</b>: Sun Microsystems is responding to renewed interest in
running Linux on its UltraSPARC products, such as the Ultra 5.
SPARC products have always been designed to run UNIX extremely well.
Linux runs well on UltraSPARC platforms.
<p>
	It is important to note that this move in no way diminishes Sun's support
for Solaris, a proven reliable scalable operating system. The Solaris environment
will still be provided with all SPARC systems and is considered by us to be
the best operating system for enterprise and network computing.
<p>
<i>
<b>Margie</b>: Is Sun planning to have Linux support for all its products?
</i><p>
<b>Charles</b>: Sun Microsystems is not planning on selling any products that are bundled
with Linux. Sun bundles Solaris with every workstation and server
it currently ships. There are also no plans to provide support for
Linux directly. However, there are a number of Linux vendors that
support a variety of platforms. We are working to ensure that these
vendors include UltraSPARC platform support for their Linux products.
<p>
<i>
<b>Margie</b>: Does this move represent a shift in policy for Sun? Last year, we
asked for a picture of a SunSPARC workstation to use on our cover, and
were refused because ``Linux is a competitor.'' (We used a Ross SPARCplug instead.)
</i><p>
<b>Charles</b>: Sun Microsystems has never had an official policy regarding Linux up to now.
As stated above, Sun Microsystems has gone from having no policy regarding
Linux, to helping to ensure that Linux runs on SPARC by assisting companies who
sell supported versions of Linux.
<p>
<i>
<b>Margie</b>: How does Sun feel about the ``Open
Source'' movement? (Prominent in the news, because of Netscape
source release.)
</i><p>
<b>Charles</b>: Sun Microsystems has a long tradition of supporting open standards,
typically through standardized interfaces, many of which Sun has invented. Providing
source code may be appropriate in some specific instances, but typically works
well only in situations where trademarks associated with the source code are licensed.
Compatibility, consistency, reliability and upgrades require a
business model that can finance the effort required to provide them.
<p>
	Users who want the freedom of Open Source take on the responsibility of
maintaining their own source code, but cannot guarantee consistent results
with other variants. This could become a problem for Netscape source variants if
they are not uniquely identified. This is why we feel brand protection
through licensing
is so important.
<p>
<i>
<b>Margie</b>: Some people feel that Java should be made Open
Source. Any chance of that happening?
</i><p>
<b>Charles</b>: Source for the Java language is available to anyone who signs the Java
license which is free for non-commercial use. This is done to allow
Java to run anywhere, and to avoid problems that could occur when
source is modified to produce variants that are not consistent with
the Java language specification.
<p>
<i>
<b>Margie</b>: Anything else you'd like to add?
</i><p>
<b>Charles</b>: We look forward to working with you and the Linux community
to promote the advantages of UNIX and Linux on SPARC in the future.
<p>
<i>
<b>Margie</b>:Thank you for your time.</I> 

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, Marjorie Richardson <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./kahn.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./bryant.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->

<center>
<H1><font color="maroon">Tom's 2 cent Tips</font></H1>
<H4>By <a href="mailto:">Tom Bryant</a></H4>
</center>
<P> <HR> <P>  
   The notes listed below document the author's "show stoppers" which were
made as he learned UNIX, after working on DOS, VMS, and other systems.  There
is a small chance that you will make exactly the same error, and this document
will help you to solve it.  What is far more likely is that you will skim
through it, and hopefully learn one very important thing:
<P>
   Almost all errors are trivial, and result from your understanding a Unix
function *almost* completely.  Gross errors in understanding are very rare,
although when you hit a show stopper, you usually get the initial impression
that you are hopelessly in left field and will never understand this cryptic
operating system.  Not True!! *Do not give up*!
<P>
   I suppose that you have already guessed it, but the FAQs, man pages and
emacs info documentation comes with Linux, and *really* help out.  You have to
really dig: there are bookshelves of documentation in the above sources.  You
will probably learn more about certain topics than you wanted to, but after a
while all this knowledge begins to look good on your resume.  While I have
tried to avoid overlap in this document, some does exist.  It should give you
pause that there is so little overlap! A modern operating system is a complex,
many faceted beast.  Take it a facet at a time and you'll get around it!
<P>
   UNIX is largely free of the system crashes that plague DOS and the
MAC.  This is because a user account is almost incapable of accessing the
system resources required to crash the system.  When you're running in DOS or
MAC mode, you (or more often, programs that you run) can crash the system.  I
once complexly wiped my hard disk while running Borland's C++ compiler.  I have
never had this happen with Linux.  I've never, in five years, crashed the
system so badly that I had to reset.  Granted, some functions (X windows and
the modem) required a reset, but I could always get to a root virtual terminal
to shut down gracefully.  I've merrily crashed VMS, other Unicies, and of
course, anything Microsoft has ever produced, from DOS 3.3 to NT.  Linux is
robust. 
<P>
   I suppose no introduction is complete without a testimonial.  Here goes: I
mentioned above that I had worked on a number of systems before embracing
Unix.  Unix (especially Linux) is the best system I have *ever* worked on.
Give it a chance: it takes a while to collect a "critical mass" of Unix
commands to make the system really fly, but once you do, you'll become one of
those insufferable Unix propeller heads who claim (truthfully) that nothing
else even comes close!
<P>
   Please Note: The author has made every effort to insure the correctness of
the information which follows.  However, there are NO warranties, expressed or
implied, for this information.  In other words, if something goes wrong, it's
your problem.
<P><HR> <P> 
<H3>Contents:</H3>
<ul>
<li><a HREF="./bryant.html#add">adduser</a>
<li><a HREF="./bryant.html#ar">ar</a>
<li><a HREF="./bryant.html#bac">Backing Up</a>
<li><a HREF="./bryant.html#bas">bash</a>
<li><a HREF="./bryant.html#c">C</a>
<li><a HREF="./bryant.html#chm">chmod</a>
<li><a HREF="./bryant.html#csh">cshrc</a>
<li><a HREF="./bryant.html#fin">find</a>
<li><a HREF="./bryant.html#ftp">ftp</a>
<li><a HREF="./bryant.html#gdb">gdb</a>
<li><a HREF="./bryant.html#ima">imake</a>
<li><a HREF="./bryant.html#ker">kermit</a>
<li><a HREF="./bryant.html#log">login</a>
<li><a HREF="./bryant.html#les">less</a>
<li><a HREF="./bryant.html#lin">Linux</a>
<li><a HREF="./bryant.html#mai">mail</a>
<li><a HREF="./bryant.html#mak">make</a>
<li><a HREF="./bryant.html#mod">modem</a>
<li><a HREF="./bryant.html#net">Networking</a>
<li><a HREF="./bryant.html#nro">nroff</a>
<li><a HREF="./bryant.html#qso">qsort</a>
<li><a HREF="./bryant.html#ppp">PPP</a>
<li><a HREF="./bryant.html#rm">rm</a>
<li><a HREF="./bryant.html#set">Setup</a>
<li><a HREF="./bryant.html#swa">swapon</a>
<li><a HREF="./bryant.html#tar">tar</a>
<li><a HREF="./bryant.html#tes">test</a>
<li><a HREF="./bryant.html#tim">Time</a>
<li><a HREF="./bryant.html#use">useradd</a>
<li><a HREF="./bryant.html#vir">Virtual Terminals</a>
<li><a HREF="./bryant.html#x">X</a>
</ul>

<P><HR> <P> 
Alphabetical list of utilities with one or more tips with them:
<P><HR> <P> 
<a name="add"></A> 
<B>adduser</B>
<P>
    You can only run this from root, but it is an essential command.  Almost
    all of your time spent in Linux should be spent in a user account of your
    own creation, as this account is prevented from executing disastrous
    commands such as rm -rf /* (This cleans your disk in a disastrously
    complete fashion.)
<P>
    MORAL: Always run in a user account, not root unless you are doing some
           system administration which will only work in root.
<P><HR> <P> 
<a name="ar"></A> 
<B>ar</B> 
<P>
    Ar creates a library file, which, after you get a utility program you'll
    be using in other programs, allows you to easily access the object files
    of that program.  The files are created by the following command:
<PRE>
        ar -r libArchiveName.a objectfile.o
</PRE>
    ArchiveName is, by convention, named libArchiveName.a.  However, you refer
    to in your make file only by ArchiveName.  e.g
<PRE> 
       LIBFILES = ... -lArchiveName ...
</PRE> 
<P> <HR> <P> 
<a name="bac"></A> 
<B>Backing up.  </B> 
<P>
    Having your system crash and not loosing valuable data is what separates
    the computer pros from the also rans.  Here's how I do it.
<P>
    All of the software on my system is safely contained on the CD that I used
    to load it in.  There's no reason to back up this stuff.  CDs are more
    stable than any tape or disk backup I know of.
<P>
    I only back up files that I have fiddled with.  My programs, configuration
    files, documents, etc.  I have a script file, sall (save all) which goes
    to each directory that I have stuff in, tars it, gzips it and then saves
    it to floppy.
<P>
    This stuff all fits on one 1.44 Mb disk.  It represents about 730 pages of
    single spaced typewritten output.  That's a lot of typing.  Most books
    aren't that big.  If you have more stuff than this, I'd suspect that 80%
    of it is stuff you haven't touched in a year.  You can back it up to a
    disk, put the disk in a safe place and pretty much forget it.  Of course,
    if you gzip the result, you can usually more than triple the amount of
    stuff you back up.
<P>
    I have 15+ disks which I keep my backups on, and back up at the end of any
    day that I have done a substantial amount of input.  This gives me access
    to a month or more of past versions.
<P>
    You'll find your own way in this.  The important thing is to *do* it.
    Then you can feel almost smug when you hard disk finally dies.
<P><HR> <P> 
<a name="bas"></A> 
<B>bash (and ksh and sh)</B> 
<P>
    To set an environmental variable with bash use the following syntax:
<PRE> 
    VARIABLE=value
</PRE> 
    For example, to tell bash
    that your are a vt100 type terminal, enter:
<PRE> 
         TERM=vt100; export TERM
</PRE> 
    NOTE: There are no spaces around the equal sign.  This is true for
          all bash commands, not just setting environmental variables.
          Remember this and be saved frustration down the road.
<P><HR> <P> 
<a name="c"></A> 
<B>C</B> 
<ol>
<li>As Unix is currently configured, there is no easy way to get a single
    keystroke without using curses or changing the terminal characteristics.
    Your users will just have to get used to hitting Enter after an input.  If
    they can't, uses curses or the GCC C manual (actually a superb reference
    for C libraries well worth the $50+ bucks!)

<li>After you have output to an opened text file, it is a good idea to send a
    fflush(stdout) command.  This will flush the buffer and keep you from
    overflowing it if you get over 2048 characters in it, which is easy to do.

<li>To use math.h functions in a c program:<BR> 
    Link in the math libraries by typing:
<PRE> 
        gcc source.cxx -lm
</PRE> 
    Math libraries MUST be linked in last!!! Old UNIX linker convention!

<li>When declaring pointers, every variable must be proceeded by an asterisk!
<PRE> 
       int *v1,
            v2, 
            v3; 
</PRE> 
    Results in compiler complaints of bad unary operator arguments! Correct:
<PRE> 
       int *v1,
           *v2, 
           *v3; 
</PRE> 
<li>To capture the output of a compile which is causing problems, and
    outputting reams of digital vomit, use this construct from a sh based
    shell like bash:
<PRE> 
       gcc -c flaw.cxx &> TextCapture 
</PRE> 
or
<PRE> 
       gcc -c flaw.cxx 2> TextCapture
</PRE> 
    The errors will be captured in TextCapture.

<li>A static variable is initialized only once in a function.  All other calls
    to that function result in the existing value of the variable being used.

<li>Shifts in most Unix C compliers are actually integer divides and 
    multiplies by 2.  Never mind what the ANSI spec says: <BR> 
    This code gives problems:
<PRE> 
       long n = 0x80000000;
       for (i = 0; i < 24; i++) printf("\n n is now %lx.", n >> i);
</PRE> 
       n must be declared as an unsigned long for this to produce reasonable
       results.  The fact that n starts negative fowls the compiler up.  This
       also indicates that right and left shifts are implemented as divide and
       multiply by 2 with the GNU C++ compiler.

<li>This is perhaps my favorite subtle error.  If I only had a dollar for every
    hour I've spent searching for this self imposed klutziness...
<PRE> 
    for (i = 0; i < upper_limit; i++);
    {
        this = cant_happen;
        the_loop = wont_execute;
    }
</PRE> 
    See the semi-colon at the end of the for statement line?  The program
    pauses for an empty loop of upper_limit cycles, and then proceeds to do
    just the first installment of the loop and nothing else.  It's quite easy
    to to, too, even after you've been bitten a few times by it.

<li>You can core dump a program sooner than quicker by writing too much stuff 
    into a string, so that it doesn't end with that all important 0.  e.g.:
<PRE> 
       double age; 
       char oops[52]; 
       int len; ...  
       sprintf(oops,"The age of the universe in nanoseconds is %f.\n",age); 
       len = strlen(oops); 
</PRE> 
    The fragment will die at the strlen call, as the string is longer than 50
    characters, even if it is 10 character in the sprintf statement.  The age
    of the universe in nanoseconds is about 19 characters long.

<li>This code will pass a file pointer (tfile) to a function:
<PRE> 
    #include &lt;stdio.h&gt;  /* fclose, fopen, printf.*/
    #include &lt;stdlib.h&gt; /* exit.                 */

    void main(int argc, char* argv[]) 
    {
        /* Function Prototypes:*/

        int openfile(FILE** tfile);

        /* Variables:*/

        FILE *tfile;       /* Test file.*/

        /* Begin:*/

        printf("Starting program.  tfile = %p.\n", tfile);
        openfile(&tfile);
        printf("Back in main.  tfile = %p\n", tfile);
        fclose(tfile);
    }

    /* Open the file and return the pointer.*/

    int openfile(FILE **tfile)
    {
        *tfile = fopen("junk","wb");
        printf("Tfile just opened.  tfile = %p, *tfile = %p.\n", 
                tfile, *tfile);
        return 1;
    }
</PRE> 
<li>This code will allow you to reference an array of characters as an array
    of longs without using a union:
<PRE> 
    int bozo(void)
    {
        void use_long(long *array); // Function prototype.
        char *array;                // The character array.
    
        use_long((long*) array);
    }

    void use_long(long *array);
    {
        // Reference the array as longs here.
    }
</PRE> 
<li>Profiling:<BR> 
    Compile with the flag -pg (for gprof compatible output).
    Link with the -pg flag AT THE END OF THE LINK LIST.  e.g:
<PRE> 
    gcc  -o run_time_image my_main.o my_other_stuff.o -pg
 </PRE> 
    Even then, don't expect miracles.  This does not work on an mpeg2 package
    I found on the net.

<li>Reading in a globbed (wildcarded) file list:<BR> 
    If you want you program to work on all files in a directory, you can
    enter "myprog *".  Argc will count the number of files out there, and
    argv will be the char **list of their names. 

<li>The code 
 <PRE>    
        string1[i++] = string2[i]; 
</PRE> 
    Will take the nth component of string2 and put it the into the nth
    component of string1, then increment i.  This is how GCC and the SGI C
    compiler do it.
<P>
    The Motorola C compiler takes the (n + 1)th component of string2 and puts
    it into the nth component of string1.  I gets incremented *before* the
    assignment.  Safer is to just use this code:
<PRE> 
        string1[i] = string2[i]; 
        i++;
</PRE> 
<li>The code 
 <PRE>    
    if (index++ == NR_PTS) index = 0; // Fails to implement a circular buffer.
</PRE> 
    Does not implement the desired buffer.  Let's say that NR_PTS is 100, and
    index is 99.  The comparison is made when index is 99. Index is not reset,
    by then it is set to 100 by the ++.  Next time, of course, the index will
    be reset to 0, but by then, it's overwritten whatever was in buffer[100],
    which is the 101st entry in buffer, a 100 int (or whatever) array.
<P>
    use this instead:
<PRE> 
    if (++index == NR_PTS) index = 0; // Implements the circular buffer.
</PRE> 
<li>Occasionally, if you allocate a *huge* array (I needed one 10.7 MB to 
    make this one happen) the program will bomb as it tries to pass the array
    to another function.  For example:
<PRE> 
        char moby[20000000];  // A really big text file.
</PRE> 
    There simply wasn't enough room on the C/C++ stack to hold the array, 
    and the program bombed as soon as it tried to access it.  The compiler, 
    of course, didn't complain.
<P>
    The fix is to malloc (or new, in C++) the array:
<PRE> 
        char *moby;  // A really big text file. 
  
    moby = (char*) malloc(20000000);
    if (moby == NULL)
    {
        printf("Hey! I'm not big enough to hold moby!\n");
    }
</PRE> 
<li>When it works on one machine and not on others, or in the debugger and
    not out of it:<BR> 
    You might well be not initializing your variables properly.  Sometimes
    one machine will just happen to initialize a variable to a non lethal 
    value, and the others won't.  See inexplicable errors item 3 as well.

<li>Inexplicable errors:<BR> 
    Occasionally, you will face very odd errors.  A function works perfectly
    *most* of the time.  The rest of the time, it has very strange errors.
    Variables seem to change value in a capricious way, and your frustration
    index soars off of the charts.  If you're a beginner, you decide that
    programming is beyond you, and give up.  Don't despair, quite yet.  There
    are a few tricks, not written in any book that I have seen, that I have
    developed over the years to help you over these rough spots.  In general,
    try these in the order given.
<ol>
   <li>Rewrite your code until it is remorselessly neat.

   <li>Step through it line by line with a good debugger (I recommend
            GNU's GDB for C code. It's a bit flaky (1998) for C++).

   <li>If these steps did not fix the problem, try recompiling
            everything with a command like:
<PRE> 
                    rm *.o     // Important!
                    make       // Or whatever compilation command you use.
</PRE> 
    <li>If you have inconsistent program results, so that the program
            works most of the time, and inexplicably fails occasionally,
            carefully check to see that all of your variables have been
            initialized properly.

    <li>Sometimes the memory can be corrupted by new routines not fitting
            into word boundaries on your machine.  Granted, this is *not*
            supposed to happen, but it does anyway, even in the best
            compilers and linkers.  Try declaring arrays to be 1 index larger
            than they should be and see if that fixes it. (This is getting to
            be a rare C error (1998)).
<ol>
       <li>There are times when the program does not misbehave in the
            debugger, and if you put a few diagnostic printfs in it to further
            check it out, it still does not die.  These temporary measures may
            need to be made permanent as the extra variables you created to
            let you see what is going on have pushed the memory usage
            boundaries of the function to a more robust spot (i.e. to a word
            boundary).  
</ol>

        <li>Once you think you've fixed the problem, *TEST EVERYTHING* before
            you release anything.

        <li>Keep at it.  With practice, you can dumb yourself down to the
            intelligence level of a compiler.  Good Luck!
</ol></ol>
<P><HR> <P>  
<a name="chm"></A> 
<B>chmod </B> 
<P>
    The command chmod XXX .* can have unforeseen after effects.  It affects
    the directory you're in as well as the files in that directory! You might
    find that only root can access the files, and then only after chmoding
    them back to where they were supposed to be.
<P>
cpio (not often used, most Unix users use tar instead)
<P>
    To use cpio, for backups, specify:
<PRE> 
    find (path name) [-name] | cpio -oc > (destination file and directory.)
</PRE> 
    To extract a cpio file:
<PRE> 
    cpio -i [-F (full file specification)] [-r rename files]
</PRE> 
<P><HR> <P> 
<a name="csh"></A> 
<B>cshrc</B> 
<P>
    To change the erase key from ctrl h to <-, one has to add the line:
<PRE> 
        stty erase \x7F
</PRE> 
    To the .cshrc file.  Unfortunately, the C shell interpreter does not
    understand the sequence \x7F, and I needed to write a short C program to
    insert the byte with value 127 (7F hex) at the end of the file.
<P>
    To set the terminal from 'console' or 'Linux' to vt100 (needed by elm (a 
    mail handling utility)) on an SGI, put this line in your .cshrc file in
    you SGI home directory:
<PRE> 
        eval `tset -s -Q vt100`
</PRE> 
    If your etc/ttytype file is set up to recognize vt100s, this should work.
<P>
    Note this does not work on all machines.  These methods were useless on 
    a motorola, for example 
<P><HR> <P> 
<a name="fin"></A> 
<B>find   </B> 
<PRE> 
    find (path name) -name (file name) -print
</PRE> 
    wildcards at the beginning of a find names must be preceded by a \. e.g.:
<PRE>
        find / -name "\*bozo*" -print 
</PRE> 
    finds all files with the letters bozo in them.  Some systems require the
    quotes as well.
<P><HR> <P> 
<a name="ftp"></A> 
<B>ftp</B> 
<P>
    Make sure the line setting is binary.  Zipped files will not transfer
    correctly if this is not set.
<P><HR> <P> 
<a name="gdb"></A> 
<B>gdb (and dbx)</B> 
<P>
    To examine a core file:
<PRE> 
        gdb &lt;executable file name&gt; &lt;core file name&gt; 
</PRE> 
        The core file name is usually "core".
<P>
    To examine an array:
<PRE> 
	p *arrayName@number_of_bytes_you_want_to_see
</PRE> 
<P> <HR> <P> 
<a name="ima"></A> 
<B>imake</B> 
<P>
    The new way of handling compiling and linking programs is with a utility
    called imake.  It makes programs easier to move around from machine to
    machine.  To use it:
<ol>
      <li>Read the imake, make  and xmkmf man pages.  Also any README files 
            that came with the program you're trying to build.  If you're going
            to be getting into some serious program development, the emacs 
            info page on make is a must read.
        <li>Back up everything! Source, Makefile, imakefile, etc.
        <li>imake
        <li>If imake doesn't work, try xmkmf 
        <li>If it *still* doesn't work, go back to step 0. 
</ol>
<P> <HR> <P> 
<a name="ker"></A> 
<B>kermit (quick check of file integrity)</B> 
<P>
    This is true for any other data transfer protocol as well, such as ftp.
<P>
    Check the size of the files that you have transfered to the target system.
    If they are not the same size, something went wrong.
<P><HR><P> 
<a name="log"></A> 
<B>login</B> 
<P>
    To disable the annoying wait after an unsuccessful login, edit the file
    /etc/login.defs.  Change the parameter FAIL_DELAY from whatever it's set
    to to 0.  You'll have to be root to do this.
<PRE> 
link (ln)
    </PRE> 
    to create a symbolic link:
<PRE> 
        ln -s &lt;existing file or directory&gt; &lt;Linked file or directory$gt;
</PRE> 
    e.g.:
<PRE> 
	ln -s OldFile NewLink 
 </PRE> 
        This creates a symbolic link name NewLink that points to OldFile.
	When you access NewLink, Unix actually accesses OldFile.
	<P> 
     Links are mainly used to save disk space, allowing yu to have the same
     file in several different places without actually having maintain
     multiple copies of the file.
<P><HR> <P> 
<a name="les"></A> 
<B>less</B> 
<P>
    Less can't display ANSI color escape sequences like most of the other Unix
    text output utilities can.  It instead tries to print them with ugly
    results.  On other unicies, the work around is to use the pg function, but
    it's not avalible on Linux (yet).
<P><HR> <P> 
<a name="lin"></A> 
<B>Linux</B> 
<P>
    To regain text that has scrolled off of the screen, try shift-PageUp
    and/or shift-PageDown.  This will work on a given console until you shift
    to another one.  When you shift back, however, you will find that the
    scrolled text has been lost.
<P>
    To change from virtual console to virtual console, use left alt (only the
    left alt key works on my machine) FX where FX is one of the function keys
    F1 thru F6.  F7 will be your X window, and isn't set up for you to log
    into it, but see the note below.
<P>
    When you are in X, you can move back to the text consoles by simultaneously
    typing the control and alt keys, and then the function key of the virtual
    console you want to be in.
<P>
    To add more virtual consoles edit your /etc/ inittab file and add a line to
    the getty configuration section.  I added this line to inittab and it
    allowed me to add another virtual console:
<PRE> 
c7:456:respawn:/sbin/agetty 38400 tty7
</PRE> 
    This let me log into F7, but not as root.  To log in as root, I added this
    line to the /etc/securetty file:
<PRE> 
    tty7
</PRE> 
I did not add further consoles, as 7 is the canonical number for the
    maximum number of things you want to juggle at one time, and each virtual
    console takes up precious RAM even if it is dormant.
<P>
    When your screen gives weird output for lower case letters, try this:
<PRE> 
      echo "^V^[c" 
</PRE> 
    (that's E C H O space control-V escape C return) to fix it.
<P><HR> <P> 
<a name="mai"></A> 
<B>mail</B> 
<P>
    To send a message with a subject:
<PRE> 
    mail -s "This is the subject" recipient@computer.full.ip.address < message
</PRE> 
    To forward your mail:
<P> 
        Create a file in your root directory called .forward.  This file
    should contain the address of the machine that you want to send the
    mail to:
<P>
    e.g. My .forward file reads:
<PRE> 
        Thomas.V.Bryant.1@gsfc.nasa.gov
</PRE> 
<P> <HR> <P> 
<a name="mak"></A> 
<B>make</B> 
<P>
    The make utility *requires* that commands (as listed under a
    target:dependency line) begin with a tab (ASCII 09).
<P>
    If your emacs tab stops are set to under 8, emacs will insert spaces
    (ASCII 32), and not a tab.  This will stop make dead in its tracks.
    You'll have to reset your tabs to edit a makefile.
<P>
    If you break up the lines in your make file (a good idea: readability
    is king!) don't put anything after your backslash (line continuation
    symbol) or make will throw up on it:
<PRE> 
       LIBS = Lmylib Lyourlib ... \
                                   ^
                                   |
                                   |
                     No spaces or tabs or anything after here!!!
</PRE> 
<P> <HR> <P> 
<a name="mod"></A> 
<B>modem</B> 
<P>
    When you install linux, your serial ports will not be configured.  You have
    to enable the call to /etc/rc.d/rc.serial in /etc/rc/rc.S:
<PRE> 
    # Run serial port setup script:
    # (CAREFUL! This can make some systems hang if the rc.serial script isn't
    # set up correctly.  If this happens, you may have to edit the file from a
    # boot disk)
    #
    # You need to enable this line (remove the # comment symbol):

    . /etc/rc.d/rc.serial 

    #  for your modem to work.
</PRE> 
<P><HR> <P> 
<a name="net"></A> 
<B>Networking</B> 
   <P> 
    Installation (for Author's PPP link -- a *very* brief reminder list):
<PRE> 
    Load the networking module in the slakware file.
    Create or copy the /etc/hosts file.
    Create or copy the /etc/resolve.conf.
    Edit /etc/rc.d/rc.serial.
 </PRE> 

    Run time problems:   
<P>
        Try the ifconfig and netstat commands to find out what your current
        network configuration is.
<P>
	Use the ping command to check you connections.
<P>
        Make sure that your linux kernel has drivers both for your network
        card and ethernet.  Networking will not work without them.
<P><HR> <P> 
<a name="nro"></A> 
<B>nroff</B> 
<P>
    Many text files are quasi-readable, and filled with control characters.
    If the file turns out to be an nroff man page, you can read it with the
    command:
<PRE> 
        groff -Tascii -man file.name | less 
</PRE> 
    Often a variation of this command is necessary.  See the man pages for
    groff and grog.  Grog tries to look at the file for you and suggest a
    command.  This is one that repays a lot of fiddling.  Back up the original
    file, and groff away.  Usually you'll get it.  Remember also that
    postscript files (usually denoted by a .ps suffix) are read with the
    ghostscript command from X.
<P><HR> <P> 
<a name="qso"></A> 
<B>qsort</B> 
<P>
    Here's a wierd one.  The qsort function has a hard time calling it's
    comparison function from a C file compiled with gcc.  It works fine if gcc
    thinks it's compiling a C++ file.  Here's a pixel value sort I did,
    heavily edited:
<PRE> 
        int pixCmp(pixel*, pixel*); // Return -1, 0, or 1. For the qsort call.
        ...
        qsort(data, BigNumber, sizeof(pixel), pixCmp);
	...
        int pixCmp(pixel* a,
                   pixel* b)
        {
            if (a->clr > b->clr) return 1;
            else if (a->clr < b->clr) return -1;
            else return 0;
        }
</PRE> 
	If the file is named pixels.c, it produces the following gcc error:
<PRE> 
            pixels.c: In function `readData':
            pixels.c:164: warning: passing arg 4 of `qsort' from incompatible 
                                   pointer type
</PRE> 
	If the file is named pixels.C, it produces no errors:
<P><HR> <P> 
<a name="ppp"></A> 
<B>PPP</B> 
<P>
    Installing PPP to work with Linux can be done, but it is not trivial.
<P>
    I'll describe the steps that worked for me, so that you might get a
    variation on them to work for you.
<P>
    Don't expect it to work perfectly the first time.  You'll have to futz
    with it, unless you are very lucky.
<P>
    PPP must first be installed in your kernel.  To check if it is there:
<PRE> 
        dmesg | grep -i ppp
</PRE> 
    You should get something that looks like this:
<PRE> 
        PPP: version 0.2.7 (4 channels) NEW_TTY_DRIVERS OPTIMIZE_FLAGS
        PPP line discipline registered.
</PRE> 
    If you don't, you'll have to recompile your kernel, or get a copy of a
    kernel that has ppp on it from the net.  Instructions for doing this are
    found in the file /usr/doc/ppp/README.linux.gz.  This is where it is in my
    Slackware release, yours will probably be similar.  You need to read this
    file now.  Before you go any further.  Otherwise, what follows will read
    like gibberish.
<P>
    Read the Readme?  Good. Here's how my pppd/chat command looks:
<PRE> 
    /usr/sbin/pppd connect '/usr/sbin/chat "" ATDT7035551212 CONNECT "" ogin:\
    tbryant word: secret_password' /dev/modem 38400 -detach crtscts modem    \
    defaultroute noipdefault
</PRE> 
    Fill in your appropriate telephone number, user ID and password. 
<P>
    Run the script from your root directory,unless you have given pppd suid
    privileges (recommended).
<P>
    When I am running the script, I do so from an X windows term, so I can
    start netscape (or whatever X application I want) easily.
<P>
    Once I've established the connection, then I can run netscape, ftp, or
    telent to other internet connected machines.
<P>
    My ISP (Internet Service Provider) assigns me a different IP address each
    time I log on.  This IP address can be found with ifconfig, or from the 
    /var/log/messages file.  
<P>
    The last few lines have what you need:
<PRE> 
        Aug 28 20:01:23 3C273 pppd[168]: local IP address 205.252.11.62
    </PRE> 
    To log off, the PPP-HOWTO.gz document has the following logoff script:
<PRE> 
    #!/bin/sh
    DEVICE=ppp0
    #
    # If the ppp0 pid file is present then the program is running.  Stop it.
    if [ -r /var/run/$DEVICE.pid ]; then
            kill -INT `cat /var/run/$DEVICE.pid`
    #
    # If the kill did not work then there is no process running for this
    # pid.  It may also mean that the lock file will be left.  You may wish
    # to delete the lock file at the same time.
          if [ ! "$?" = "0" ]; then
                  rm -f /var/run/$DEVICE.pid
                  echo "ERROR: Removed stale pid file"
                  exit 1
          fi
    #
    # Success.  Let pppd clean up its own junk.
          echo "PPP link to $DEVICE terminated."
          exit 0
    fi
    #
    # The PPP process is not running for ppp0
    echo "ERROR: PPP link is not active on $DEVICE"
    exit 1
</PRE> 
    Additional hints not in the README.linux file:
<P>
        All exchanges between you and you host computer will be logged in the
        /var/log/messages file.  Deducing what's going wrong is much easier if
        you just look at the end of this file:
<PRE> 
	    tail /var/log/messages 
</PRE> 
        Keep trying, don't be afraid to futz around.  If you're well backed up
        (you *ARE*, aren't you?) you won't hurt any of you hardware, or
        permanently damage any software (even this is very unlikely).
        Good Luck!
<P><HR><P>  
<a name="rm"></A> 
<B>rm</B> 
<P>
    When a file absolutely refuses to go away, try surrounding its name
    with quotes.  This might kill it.  I needed to remove a file called
    #filename#.  Here's how I fared.
      <PRE> 
      rm #filename#    Refused to work.
      rm "#filename#"  Worked.
      rm '#filename#'  Worked.
      rm \#filename#   Worked.
</PRE> 
    The top command worked on the older versions of Linux and SGI's IRIX.
    This is probably a Posix compatibility problem that caused the more
    recent versions of Linux to stop working.
<P><HR> <P> 
<a name="set"></A> 
<B>Setup</B> 
<P>
    The setup script will not run unless you are in /usr/lib/setup, and
    running as root.  Be careful.  Back up everything before you start playing
    around with this.  Don't be afraid to play, however, as you can always
    improve on the defaults Linux comes with.
<P><HR> <P> 
<a name="swa"></A> 
<B>swapon</B> 
<P>
    To set up a swap file, (needed for installation)
 <ol>   
       <li>Start you new Linux box with the boot and root disks.

       <li>make a partition (The rule of thumb is 1 - 2 times the size of
           the RAM on your machine.) using fdisk.  Be sure and set the 
           data type to Linux swap.

	       <li>Format the partition: mkswap -c &lt;/dev/partitionName&gt;

       <li>Enable swapping in /etc/rc.d/rc.S: /sbin/swapon -a
</ol>
<P><HR> <P> 
<a name="tar"></A> 
<B>tar</B>
<P>  
    To make a tar file:
<PRE> 
       tar -cf tarfilename filename (or directory.  Directory is recursive)
</PRE> 
       This creates the file.
<PRE> 
       tar -rf tarfilename filename (or directory.  Directory is recursive)
</PRE> 
       This appends to an existing file.
<P>
    To extract a tar file:<BR> 
    Get into the directory where you want to have the files.
<PRE> 
       tar -xf (Complete filespec of the tar file to be extracted.)
</PRE> 
<P><HR> <P> 
<a name="tes"></A> 
<B>test</B> 
<P>
    *NEVER* *NEVER* *NEVER* name an executable test.  This is a very easy,
    logical thing to do.  When you try and run it, the shell will invoke it's
    test utility, find nothing there, and exit silently, leaving you very
    puzzled.
<P><HR> <P> 
<a name="tim"></A> 
<B>Time</B> 
<P>
    To set the system clock (CMOS) from Linux:
<P>
    Set the system time from the CMOS clock, adjusting the time to correct for
    systematic error, and writ- ting it back into the CMOS clock.
<P>
    This option uses the file /etc/adjtime to determine how the clock changes.
    It contains three numbers: The first number is the correction in seconds
    per day (for example, if your clock runs 5 seconds fast each day, the
    first number should read -5.0).
<P>
    The second number tells when clock was last used, in seconds since
    1/1/1970.
<P>
    The third number is the remaining part of a second that was left over
    after the last adjustment.
<P>
    The following instructions are from the source code:
<ol>
   <li>    create a file /etc/adjtime containing as the
           first and only line: '0.0 0 0.0'

   <li>    run clock -au  or  clock  -a,  depending  on whether  your  CMOS is
           in Universal or Local Time.  This updates the second number.

   <li>    set your system time using the date command. mmddhhmm[yy][.ss]

   <li>    update  your  CMOS  time  using clock -wu (for UT) or clock -w.

   <li>    replace the first number in /etc/adjtime by your correction.

   <li>    put  the  command  clock  -au or clock -a in your /etc/rc.local, 
           or let cron(8) start it regularly.
</ol>
<P><HR> <P> 
<a name="use"></A> 
<B>useradd</B> 
<P>
    When a user is added, you have to make sure that the user owns, or at least
    has read, write, and execute privileges on his/her home directory.  If you
    neglect this step, the new user will be unable to function properly, and
    perhaps will not be able to log on!
<P>
    The /usr/bin directory must have its privileges set to 755 in order for
    users to be able to execute the UNIX commands contained therein.
<P><HR> <P> 
<a name="vir"></A> 
<B>Virtual Terminals:</B> 
    <P> 
    To change from terminal to terminal: 
<PRE> 
                                Left Alt + fn
</PRE> 
       (n is the terminal number, from 1 - 6 and f is a function key.)
<P>
    To return to virtual terminal text mode from X:
<PRE> 
                           Left Alt + Control + fn
</PRE> 
        n is again the number of the terminal you want.
<P>
    To see text that has scrolled off of the screen:
  <PRE> 
                        Shift + Page up or Page down.
</PRE> 
        Moves you up and down by half a screen each time.
<P>
    To see task information:
<PRE> 
 + Scroll Lock
    </PRE> 
    To see memory information:
<PRE> 
                             Shift + Scroll Lock
</PRE> 
<P> <HR> <P> 
<a name="x"></A> 
<B>X:</B> 
<P>
    There are few short X tips.  You need to read much of the documentation
    that is out there, and but the O'Rielly series in X and Motif if you
    intend to do serious developemt.  It's an extrodinary, platform
    independent, system that solves some very difficult problems with
    accessing system resources in a uniform way.  It's also very complex, with
    all sorts of redundant functions and kludges.  Good Luck.
<P>
    If you're going to just start getting into building user interfaces, I
    suggest that you bypass X entirely, and concentrate on Java. Of course,
    Java for Unix platforms is based on X, but you shouldn't have to worry
    about that.

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, Tom Bryant <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./richardson.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./hughes.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->
<font color="navy">A <I>Linux Journal</I> Preview</font>:
This article will appear in the August issue of <I>Linux Journal</I>.
<P> <HR> <P> 

<center>
<H1><font color="maroon">UniForum '98 Report</font></H1>
<H4>By <a href="mailto:phil@ssc.com">Phil Hughes</a></H4>
</center>
<P> <HR> <P>  

I am writing this article as I fly back from the UniForum Association
Spring '98 Conference. This was the first ever East Coast conference
held by UniForum in its 17 year history. It was held in Ocean City,
Maryland--a beautiful town by the Atlantic Ocean.
<p>
UniForum is an advocacy
organization that promotes the use of Open Computing solutions--or, to
put it in succinct terms--the use of UNIX and UNIX-like solutions.
UniForum and Usenix have tended to complement each other with UniForum
being the conference for suits and Usenix the conference for T-shirts.
<p>
The conference was a two and a half day event that looked light on paper.
Once there, I discovered there was too much to do in such a
short time. For the first two days, there were three tracks: <i>New Open
Software Development Model and Linux</i>, <i>Network Computing</i> and
<i>Best of SCO Forum</i>. All tracks included common Plenary and Keynote
sessions. On the third day there were two three-hour sessions: one presented by
the Open Group and the other by Linux International.
I attended all the Linux track sessions as well as the common sessions.
<p>
Monday's Plenary session was Eric Raymond's presentation of his paper <i>The
Cathedral and the Bazaar</i> which is credited with convincing Netscape to
take their Open Source stance.
If you haven't heard the talk or read the paper, it is available on our
Linux Resources page.
<p>
After Jon Hall introduced the Linux track, Frank Hecker, who is a systems
engineer at Netscape, gave a talk entitled <i>The Why and the How</i> that
filled in the background of Netscape's decision to embrace the Open
Source model.
For those of us who have been involved in what I call ``revolution from
below''--that is, attempting to sell Linux or Open Source to those in the trenches
and let it move up the corporate ladder--Frank had some interesting
things to say.
He said the engineers didn't believe Open Source could happen with
Netscape. So, Frank went to Marc Andreessen with the idea, and the rest is
history.
<p>
After Frank's talk, we got together for the keynote lunch where Ralph
Nader (<A HREF="./uniforum2.html">UniForum Press Release</A>) spoke on the Microsoft monopoly and how Linux could be a big player
in an alternate solution.
It was a treat to get to meet Ralph and to hear the
word Linux come out of his mouth just a few days after hearing Marc
Andreessen saying it.
I brought up how U.S. government procurements used to require a
POSIX-compliant operating system be made available with any system they
purchased, and Ralph and his staffers are going to look into why that
requirement was dropped.
I asked him to keep <i>LJ</i> up to date on any findings, but you might also
wish to check out his web site at http://www.essential.org/.
<p>
Two afternoon sessions were held in the Linux track.
The first was presented by Ron Workman of Cygnus Solutions, and the second
was presented by me. Covering mine is easy--I went through a series of
articles which have appeared in our <i>Linux Means Business</i> column,
illustrating how companies identified a problem, then used Linux to
address that problem.
<p>
Ron's talk addressed Open Source software from a different direction:
how a company can succeed in the business of supporting freely
available software. Cygnus was
founded in 1989 to provide commercial support for open Internet technologies
and has grown to 160 employees. The company has succeeded by offering
consulting and support on such products as the Free Software
Foundation's GNU C Compiler.
<p>
Monday evening was filled with good food and bad beer (Coors
Light?--lucky Linus wasn't there) at a beach party hosted by Red Hat
Software.
Like most parties at these conferences, the evening was filled with
meeting others and talking about computers, the UNIX market and telling
Microsoft jokes.
I found it a valuable time to get to know people better, for example, Morgan Von
Essen and Garry Paxinos of Metro Link, and to thank Alan Fedder and Kathy
Goetz of UniForum for organizing the conference.
<p>
Tuesday morning started with a Plenary by Eid Eid, President of Corel
Computer (see <i>LJ</i>, Issue 48). If I had to choose one person who provided
me with the most
new information, I would choose Eid. I did cheat a little however, as I also
talked to him extensively over lunch.
<p>
Eid's Plenary was a pleasant combination of future fantasy and a look at
what is available today. The fantasy part consisted of describing a day in
the life of Mr. Twenty O'One, illustrating what we should
expect in the near future (2001 isn't that far away) from our personal
communicator: voice- and e-mail access,
voice commands and an interface to the Corel NetWinder.
<p>
At the office, Mr. Twenty O'One will have a typical Intel-based PC
but most of his work will be done on his personal communicator and his
NetWinder. The NetWinder is much faster for doing common tasks
because, while it is a complete Linux system, common tasks (everything
from e-mail to video conferencing and replying to e-mail with a
voice message automatically appended to e-mail) are trivial to
access.
<p>
After this fictional introduction, Eid went on to cover the pieces which
actually exist today, including the NetWinder, video conferencing, XML and capable
portable systems.
He went on to say that we need to make all the interfaces and
standards open so any vendor can produce pieces which interoperate.
I expect some people were surprised when he said, ``Corel, Lotus and
others
will have no choice but to provide some source code for commercial
products in the near future.'' 
<p>
Eid also pointed out that Microsoft
controls over 50% of the money made on PC applications.
Eid was the Chief Technical Officer for Corel Corporation, makers
of CorelDraw and owner of Corel Computer before coming President of Corel
Computer.
He explained how Corel had been a Microsoft partner until Corel acquired
WordPerfect, then Microsoft started hiding technology from them.
<p>
As many of us have concluded in the past, Eid believes you cannot
successfully fight Microsoft, but went on to point out what you can do.
He sees the network computer as the new wave, being less costly and more
maintainable.
The network computer opens up a new market and, done right, it can become a
market as large as today's personal computer market.
<p>
The morning session in the Linux Track included a presentation by Don
Rosenberg of Stromian Technologies on making money with Open Source as
an OEM/VAR.
Differing from Ron Workman's presentation of the previous day, Don's
presentation was a mini-tutorial on how to get into a market and how to
make the right distribution choices along the way.
<p>
Next, Morgan Von Essen, President of Metro Link, with the help of Garry
Paxinos, Vice President, presented a talk on Metro Link's cooperative
work with the XFree86 community--another model of a commercial
enterprise working with the free software community.
In this case, they developed technology needed for their
commercial customers and then gave that technology back to the
XFree86 community. Doing this makes it easier for Metro Link to continue
development, because their work becomes standard in new XFree86 releases.
<p>
Tuesday's keynote lunch was presented by Janpieter Scheerer who was
President of Sunsoft and has now moved to head the storage division of Sun.
He talked about WebTone and made some very interesting points
demonstrating how the non-Microsoft community is growing faster than
the Microsoft community.
His pointed out that while MS Windows sales are growing at 13% a year,
companies like Cisco are growing at 30%, and that while there are over
100,000,000 MS/PC users, that number is a small minority of the six
billion people on the planet.
He also pointed out that every Quicken user who registers their product
is a UNIX user since the Quicken on-line registration server runs on
Sun systems.
<p>
Janpieter explained that today most ISVs will port their product to
either NT or Solaris. By
mentioning an old Dutch saying, ``the enemy of my enemy is my
friend,'' he clearly
sees Linux as an ally. By the same reasoning, we need to see Sun ports as
potential Linux ports of the future.
<p>
Janpieter, like Eid, pointed out that the network computer is in--all
we need is a $150 device to connect to the Internet.
He then went on to talk about two subjects: first
``OPEN-standardization''
and then Java.
This got a reaction from both Eric Raymond and Eid Eid, who both pointed out that
for Java to be the answer, its standard needs to be open.
There was no resolution, but I am sure we were heard.
<p>
The afternoon Linux track brought Bob Young discussing the size of the
Linux market or, more accurately, explaining how hard it is to come up
with an accurate estimate.
Bob also announced the availability of the <i>Extreme Linux</i> CD which
includes all the Beowulf RPMs for those of you who want to build your
own supercomputer.
Jon Hall of Linux International closed the track with some general
comments and preparation work for the workshop the following morning.
<p>
On Wednesday the Linux track attendees changed their plans and 
attended the first hour of a presentation entitled <i>What Exciting
Technology is Emerging?</i> by The Open Group, the organization that owns
the UNIX brand and standards.
In this presentation, the Open Group announced the UNIX'98 standard.
<p>
Historically, vendors such as Digital, Hewlett-Packard and Sun have paid
a lot of money to use the UNIX brand.
This money goes to support The Open Group's work on the standards and
enforcement of the trademark.
While it would be great for Linux or a Linux distribution to be UNIX
branded, the cost is prohibitive.
<p>
The Open Group has now
recognized the advantage of getting the Linux community on board.
While Sun and others anchor the high end of the Open Systems community,
having an entry-level system compatible with the standard would be a plus.
This is not yet a done deal. While the use of the
UNIX trademark is limited to those who have paid the fees, the
opportunity will be present for a system to be conformant with the standard.
Stay tuned, this could be the <i>in</i> necessary to tighten the bond
between Linux and the rest of the UNIX community.
<p>
For more information on the UNIX'98 standard, see the web page
<A HREF="http://www.UNIX-systems.org/">http://www.UNIX-systems.org/</A>.
<p>
The melding of minds with regard to UNIX standards, Open Computing and Open
Source software needs a venue and UniForum has elected to be that venue.
Here's what Alan Fedder (<A HREF="./uniforum.html">UniForum Press Release</A>), President of UniForum had to say about it:
<p>
<blockquote>
UniForum Association is the only forum for open
discussion and open debate about open computing.
Where else could Eric Raymond and Mike Lambert [of The Open Group]
debate each other, listen to each other, and have a
better understanding of each other's position? Where
else could you hear Ralph Nader, Eid Eid, Janpieter
Scheerer, Eric Raymond--all quoting Eric Raymond?
Momentous things happened at the UniForum Spring
Conference in Ocean City--and I honestly believe
that five years from now, 5,000 people will be telling
each other they were there when UNIX was saved.
<p>
</blockquote>
In conclusion, I found attending the conference to be truly worthwhile
and look forward to going again next year.

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, Phil Hughes <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./bryant.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./pate.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->

<center>
<H2><font color="maroon">Using rdist for Backups</font></H2>
<H4>By <a href="mailto:johnny@dvc.org.uk">John Pate</a></H4>
</center>
<P> <HR> <P>  


In <STRONG>Linux Gazette</STRONG> Issue number 24 <STRONG>Gerd
Bavendiek</STRONG> described his script which he calls "mirror."  In this
script he makes use of the utility 'rdist' which is widely available on
Unix systems.  In my article I shall explain how I use 'rdist' which
I hope will give the beginning Linux user a background to Gerd's article
and show how useful 'rdist' is to those with multiple computers (which
should be every Linux user nowadays!)

<P>

In the UK today you can get a complete 486DX66 system including monitor
for a hundred pounds, which has got to be a bargain and ideal as a backup
system for your "main" computer.  Even if you feel its hard disk is too
small (typically they have them in the 200-300meg range) today you can
get a 2gig hard disk for under one hundred pounds or an 850meg one for
sixty pounds.  So for no more than a couple of a hundred pounds you not
only have a backup device but a working computer you can use in emergency
in the event of the failure of your "main" machine.  I have two 486DX66s,
both other peoples' discards which cost me nothing apart from extra RAM
and a bigger hard disk for the "main" machine (and a modem of course -
though now I have a couple of spare V32bis other people have junked,
isn't progress wonderful).  One has 40meg of RAM and is my "main" computer
running Slackware 3.3.  The other has 8meg of RAM and Slackware 3.3 again.
The "backup" has a half gig hard disk given to me because it makes an
unpleasant whine during operation.  In spite of the noise, the disk
works fine so is good for backup space.  A couple of discarded network
cards from a "parts bin" and a look at the <STRONG>NET-3-HOWTO</STRONG>
(you can find this in the directory '/usr/doc/faq/howto' in Slackware 3.3)
gets the two computers talking to each other.  Other alternatives are PLIP
or a null modem cable, but network cards are easy to come by nowadays.
(Note: network cards with RJ45 interfaces can connect two computers
together if you make a crossover cable, it works for me.)

<P>

Once the computers are talking you can use ftp or even Samba to
transfer files, as well as mounting various drives and partitions
by NFS.  All good clean fun.  But the ideal way to maintain a "mirror"
of your home directories so you don't lose any precious datafiles is
to use 'rdist'.  (Note: the following describes a Slackware 3.3 setup
but the procedure should give the rest of you a start.)  Firstly you
must amend the file 'hosts.equiv' on the "backup" machine (i.e. the
one you are going to back-up the files to) to allow users to 'rlogin'
(see the man page for 'rlogin') to the "backup" computer from the "main"
computer without having to supply a password.  'hosts.equiv' is found in
'/etc' (Slackware), the stock 'hosts.equiv' has one entry, 'localhost'.
Simply add the relevant name or IP address for your "main" computer (go
back and read the <STRONG>NET-3-HOWTO,</STRONG> you know you have to)
on a new line.  If you have accounts (same user name) on both machines,
you are now able to 'rlogin' to the "backup" from the "main" with the
command 'rlogin&nbsp;&lt;other_computer_name&gt;' and it should not
demand a password (unless you are 'root', but you don't want to mess
around letting 'root' rlogin without a password, do you?).

<P>

Now you're cooking with gas.  Make a file called 'distfile' in your 
home directory on your "main" computer.  Here's one I made earlier--

<P>

<BLOCKQUOTE>

<PRE>

HOSTS = ( johnny@pod )
FILES = ( ~/ )
EXCEPT = ( ~/.netscape ~/\(PROG\) ~/StarOffice-3.1 ~/.trash ~/.bash_history )

${FILES} -> ${HOSTS}
	install -oremove,chknfs,younger ;
	except ${EXCEPT} ;

</PRE>

</BLOCKQUOTE>

<P>

Now's the time for you to consult 'man rdist' to see what all this means.
The first three lines set variables - it is possible to give 'rdist'
command line switches to modify these, so it could be helpful when you
get more adventurous.  The last three lines are commands for 'rdist'.
The 'install' command copies/deletes files/directories as specified.
The 'except' command omits the specified files/directories from
processing.  (If you specify a directory it means that directory's
files and subdirectories and files.)  The '->' line tells it what to
where.  Note the 'host' is the "backup" computer and given of the form
'user@domain'.  This should be an account you can 'rlogin' to without
needing a password (modify 'hosts.equiv' see above).  If you look at
the above example, it says,

<BLOCKQUOTE>

"Copy the entire home directory to "pod," excepting the Netscape cache
directory, the trash directory, the StarOffice stuff and the .bash_history
file."

</BLOCKQUOTE>

The switches to 'install' say,

<BLOCKQUOTE>

"Remove any files on the backup that aren't on the main machine,
don't follow through NFS links, and don't update files on the backup
machine that are younger than the equivalent on the main machine."

</BLOCKQUOTE>

<STRONG>Note</STRONG> how 'remove'and 'younger' interact: 'remove'
will remove any orphan files, so 'younger' won't keep brand new files
on the backup that haven't been made on the main machine - decide what
you want!  In the case of a backup to an account you don't use then
'younger' isn't really necessary.  If it's an account you do use, then
don't use 'remove' but do use 'younger'.

<P>

A perusal of the 'rdist' man page should make this all clear.  Having made
the 'distfile,' all you have to do to synchronize the files on your
two machines is type 'rdist' at the prompt on the "main" machine and
it will go ahead and do it all for you and tell you about it.  'rdist'
will create directories as needed, preserve permissions, ownerships etc.,
will only change files that don't match (you can alter the criteria it
uses to decide this, see the 'man' page).  It is excellent!  Run 'rdist'
regularly and you need never "lose" your data-files.  Even better if
you back-up over the Internet to a remote location.

<P>

Now you can go back to <A HREF="../issue24/bavendiek.html">Gerd's
article</A> and see how he uses his script to keep his laptop and desktop
in synch.  A study of the 'rdist' man page will make evident that 'rdist' has
great power and flexibility for the adventurous.  There really is no
excuse for not backing up your work!

<P>

 <hr>
      <address><a href="mailto:johnny@dvc.org.uk">John Pate</a></address>

<!-- hhmts start -->
Last modified: Sat May  2 12:25:18 BST 1998
<!-- hhmts end -->

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1998, John Pate <BR> 
Published in Issue 29 of <i>Linux Gazette</i>, June 1998</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc29.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./hughes.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./lg_backpage29.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 
<center>
<H1><IMG SRC="../gx/backpage.gif" alt="Linux Gazette Back Page"></H1>

<H5>Copyright &copy; 1998 Specialized Systems Consultants, Inc.<br>
For information regarding copying and distribution of this material see the
<A HREF="../ssc.copying.html">Copying License</A>.</H5>
</center>

<P> <hr> <P> 

<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_backpage29.html#authors">About This Month's Authors</a>
<li><a HREF="./lg_backpage29.html#notlinux">Not Linux</a>
</ul>

<a name="authors"></a>
<P> <HR> <P> 
<!--======================================================================-->

<center><H3><font color="maroon">About This Month's Authors</font></H3></center>

<P> <HR> <P> 
<!--======================================================================-->

<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Tom Bryant</H4>
Tom has been working with computers since 1978.
Since then, I wrote my thesis (on emission lines in planetary nebulae)
on an Apple II, wrote the telemetry processing program with which NASA deduced
some of the early problems with the space telescope (its direct descendant is
still in use today), and lately a program that fixes a serious telemetry
formatting error on the EOS AM-1 satellite.  I've written programs that
display tesseracts, simulate a star cluster with accurate stellar motions,
implement a new language (related to forth), and play the piano!
My interests include (in alphabetical order) 35mm photography, the
American Civil war, Astronomy, Beethoven, Chopin, Classical piano,
Cryptography, Explorer post 1275, Fixing old cars, History, Mathematics,
Rachmaninov, Science, Single Malt Scotch, Sports cars, Telescope making...
My wife and I have 2 kids, 2 cars, 2 birds and 1 18 year old cat.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Jim Dennis</H4>
Jim is the proprietor of <A href="http://www.starshine.org">
Starshine Technical Services</A>.
His professional experience includes work in the technical 
support, quality assurance, and information services (MIS)
departments of software companies like 
<A href="http://www.quarterdeck.com"> Quarterdeck</A>, 
<A href="http://www.symantec.com"> Symantec/
Peter Norton Group</A>, and 
<A href="http://www.nai.com">McAfee Associates</A> -- as well as 
positions (field service rep) with smaller VAR's.
He's been using Linux since version 0.99p10 and is an active
participant on an ever-changing list of mailing lists and 
newsgroups.  He's just started collaborating on the 2nd Edition
for a book on Unix systems administration.
Jim is an avid science fiction fan -- and was
married at the World Science Fiction Convention in Anaheim. His wife,
<A HREF="mailto:star@starshine.org">Heather Stern, is now doing the HTML for his column.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Michael Hamilton</H4>
Michael has been working as a freelance Unix C/C++ developer
since 1989. More recently he's been working on web applications and
Unix server administration. Michael tripped over one of Linus's
postings back at the beginning of 1992 and has been hooked ever
since.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Phil Hughes</a></H4>
Phil Hughes is the publisher of <I>Linux Journal</I>, and thereby <I>Linux 
Gazette</I>. He dreams of permanently telecommuting from his home on the 
Pacific coast of the Olympic Peninsula.
As an employer, he is &quot;Vicious, Evil,
Mean, & Nasty, but kind of mellow&quot; as a boss should be.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Andy Kahn</a></H4>
Andy works at Digital Equipment Corporation doing
Digital Unix filesystems kernel development.
He thinks he's just hacking away at more and more C code,
and in his copious spare time, he hacks on lots of other
things, including all the trees in his neighborhood.
Feel free to send him
<a href="mailto:kahn@zk3.dec.com">email</a>.

<p>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Eric Marsden</H4>
<a href="http://www.chez.com/emarsden/">Eric</a> is studying computer
science in Toulouse, France, and is a member of the local Linux Users
Group. He enjoys programming, cycling and Led Zeppelin. He admits to
once having owned a Macintosh, but denies any connection with the the
<a href="http://locke.ccil.org/~esr/ecsl/">Eric Conspiracy Secret
Labs</a>.

<p>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">David Nelson</H4>
David manages scientific research at the U.S. Department of
Energy. Before that he earned his living as a theoretical plasma
physicist. He started programming on the IBM 650 using absolute machine
language and later graduated to CDC, DEC and Cray machines for his
research. But Linux is the most fun. He and his wife, Kathy, live
near Washington DC; they enjoy tennis, skiing, sailing, music, theater
and good food.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">John Pate</H4> 
John works part-time at <A HREF="http://www.cybersurf.co.uk/">Caf&eacute;
Cyberia Edinburgh</A> and is looking for a full-time job in Unix System
Administration.  John has a first degree in Psychology and has
been playing on the Internet since he first discovered it in the
late eighties.  Having worked for a while programming for Windows
3.1x he decided Linux was the way forward.  He can be contacted at <A
HREF="mailto:johnny@dvc.org.uk">johnny@dvc.org.uk</A> and his homepage
is at <A
HREF="http://www.dvc.org.uk/johnny/">http://www.dvc.org.uk/johnny</A>

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Carlo Prelz</H4>
Carlo is an Italian who does not live in Italy, an architect who
does not work as an architect. He spent the last decade developing
software for TV audience measurement calculation but he does not watch
TV. His secret wish is to become the in-house Linux expert for the
Tibetan government in exile in Dharamsala. Suggestions are welcome
at his e-mail address: fluido@fluido.markdata.pt

<a name="notlinux"></a>
<P> <hr> <P> 
<!--====================================================================-->

<center><H3><font color="maroon">Not Linux</font></H3></center>

<P> <HR> <P> 
<!--======================================================================-->
<P>
<img align="left" src="../gx/rose.gif">
Thanks to all our authors, not just the ones above, but also those who wrote
giving us their tips and tricks and making suggestions. Thanks also to our
new mirror sites. And a special thanks to Heather Stern for the great job
she is doing on htmlizing "The Answer Guy". It looks good and she's saving
me a lot of work. :-)
<P> 
My wonderful father-in-law, Ralph Richardson, has moved to Seattle from
Southern California. He's been here almost 2 weeks now and it's been fun
helping him get settled in and seeing him on a much more frequent basis. I
know we'll get used to him being here all the time, but right now getting 
to see so much of him feels like vacation. And I can use as much vacation
as I can get! :-)
<P> 
Have fun!

<P> <hr> <P> 
<A HREF="http://www.ssc.com/ssc/Employees/Margie/margie.html">
Marjorie L. Richardson</A> <br>
Editor, <A HREF="http://www.linuxgazette.com/"><i>Linux Gazette</i></A>, <A
HREF="mailto:gazette@ssc.com">gazette@ssc.com</a><BR> 
<I>Linux Gazette</I> Issue 29, June 1998,
<A HREF="http://www.linuxgazette.com/">http://www.linuxgazette.com</A><BR> 

<P> <HR> <P>
<!--====================================================================-->
<A HREF="./lg_toc29.html"><IMG SRC="../gx/indexnew.gif" ALT="[ TABLE OF 
CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG SRC="../gx/homenew.gif" ALT="[ FRONT 
PAGE ]"></A> 
<A HREF="./pate.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<p><hr><p>
This page written and maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A>
<P> 
</BODY>
</HTML>