File: issue19.html

package info (click to toggle)
lg-issue19 5-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,396 kB
  • ctags: 122
  • sloc: sh: 103; makefile: 34
file content (8178 lines) | stat: -rw-r--r-- 334,854 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
 <HTML>
<HEAD>
<TITLE> Linux Gazette Front Page </TITLE>
<META NAME="robots" CONTENT="noindex, nofollow">
</HEAD>

<BODY BGCOLOR="#EEE1CC" TEXT="#000000" LINK="#0000FF" VLINK="#0020F0"
ALINK="#FF0000" >
<center><H2>
<IMG SRC="../gx/banner.gif" 
ALT="Linux Gazette... making Linux just a little more fun!">
</H2>

<H5>Copyright &copy; 1996-97 Specialized Systems Consultants, Inc.
<A HREF="mailto:linux@ssc.com"><I>linux@ssc.com</I></A></H5>
</center>

<P> <HR> <P> 
<!--==================================================================-->
<center>
<H1>Welcome to Linux Gazette!<img src="../gx/tm.gif" alt="(tm)"></H1>
</center>
<P> 
Sponsored by:
<center>
<H1><A HREF="http://www.infomagic.com/"><img src=../gx/infologo.gif alt="InfoMagic"></A></H1>
</center> 
<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> <HR> <P> 
<H4>&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;</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_mail19.html#help">Help Wanted -- Article Ideas</a>
<li><a HREF="./lg_mail19.html#gen">General Mail</a>
</ul>
</td></tr></table>
</center>

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

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 23 Jun 1997 22:40:39 -0500<br>
From: Tom Cannon <a href="mailto:tomc@usit.net">tomc@usit.net</a><br>
Subject: Cobal

<p>Are there any Cobal compilers that will run under Linux,  I have a
serious need to move some code to the Linux platform if there is
something available.  Thanks.

<blockquote> <I>
(Check with Acucobol Inc., info@accubol.com, <A
HREF="http://www.acucobol.com/">http://www.acucobol.com</A> --Editor)
</I> </blockquote> 

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Sat, 21 Jun 1997 16:02:04 -0400<br>
From: Linda Brooks <a href="mailto:lbrooks@stc.net">lbrooks@stc.net</a><br>
Subject: Packard Bell SOUND16A Soundcard

<p>I have a Packard Bell Pack-Mate 4990CD, which has a soundcard apparently
called a "SOUND16A" (the documentation doesn't make it clear whether PB or
Aztech made it, or if it was a joint production).  It is a 16 bit sound
card, which I can use under Windows 95 as such.  However, in Linux, the
best I can do is 8 bit sound (via Sound Blaster Pro 2.0 emulation).  The
card claims to support MSS, but nowhere in the documentation or setup
program does it specify which IRQ this runs at, although it does tell what
port.  I have contacted Packard Bell's tech support, but they say they only
support Windows software for free, and that if I wanted to talk about Linux
or some such operating system, I would need to get "special support" which
would cost a ridiculously high number.

<p>As a struggling college student, I don't have much money to spend on the
computer (it is actually my family's that I scratched up enough space to
install Linux on), so I can't get a new sound card, and I am not even sure
if the commercial sound drivers support this particular sound card.

<p>I'm probably spoiled by Windows, but it's not asking too much for 16 bit
sound so I can listen to 44KHz samples in stereo (I'm quite a MOD fan),
listen to MP2's or MP3's, etc...

<p>I'm not much of a coder, so I can't go about writing my own drivers.  If
anyone knows of how to set up this sound card for full 161 bit sound,
please inform me.  Or, if you know of any 8 bit .MP? players, that would
work too =)



<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Thu, 19 Jun 1997 12:03:00 -0400<br>
From: Albert Race <a href="mailto:race@dgms.com">race@dgms.com</a><br>
Subject: Linux HELP!

<p>I would like to install Linux on a Sun 386i machine with 16 meg of ram, 2
350 meg scsii drives color video adapter and a tape drive, and Network
support. When I try to install using a boot disk, I get the following message.

<pre>	Boot: Device fd(0,0,0): Invalid Boot Block</pre>

<p>This occurs with any boot disk except for Sun. Is there a way I can get
Linux to install to this system?  Any suggestions would be greatly
appreciated. If you can not help me, Please redirect this message to
someone who could. I don't know where to get this type of information. I
received these machines for free and would like to put them to use using
Linux. 

<p>Thank you
Albert F. Race



<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 16 Jun 1997 11:44:43 +0200<br>
From: Claudio <a href="mailto:cricci@cpiprogetti.it">cricci@cpiprogetti.it</a><br>
Subject: Matrox

<p>Is there a chance to correctly configure a Matrox Mystique with 4MB RAM
under X or I must throw away it ?



<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Mon, 2 Jun 1997 00:11:40 -0300 (EST)<br>
From: Rildo Pragana <a href="mailto:rpragana@acm.org">rpragana@acm.org</a><br>
Subject: Interfacing Genius Color Page-CS Scanner

<p>Hello,

Please help-me to interface my Color Page CS desktop scanner to Linux.
Now, I can scan only from Windows (Argh!!) and it would be fine to have
The Gimp accessing my scanned material.  I can program in C and Tcl/tk, if
I at least have the information on its SCSI card, and the scanner itself.

Any information you may have is precious to me. When I have this job done,
of course, I'll be happy to publish my adventures in the Gazette.

<p>best regards,<br>
Rildo Pragana <br>
Greetings from Recife, the Brazilian's Venice


<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Thu, 12 Jun 1997 14:36:09 -0400 (EDT)<br>
From: David Bubar <a href="mailto:bubarda@sch.ge.com">bubarda@sch.ge.com</a><br>
Subject: Q: How do you un virtual a virtual screen?

<p>My screen maybe 800x600 but my virtual screen is set at something like 1600x1200. How do I change this?

Note: 
<ol>
<li>This is not virtual Desktops, I like use of the PAGER
<li>I wish you would put out a configuration guide for X that does NOT 
have to be a TOME but a small book(let) that helps users customize
X to work the way they want.
</ol>

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Mon Jun 16 13:46:14<br>
From: Ade Bellini, <a href="mailto:AdeBellini@aol.com">AdeBellini@aol.com</a><br>
Subject: *2+ Processing

<p>Sir, 
I am a 35 from Sweden using at present *2 90 Pentium /NT4 and Slakeware
1.2.13 and Red Hat 3.0 (and DOS 6.22 !) all on the same machine. (paranoid !)
I am interested in knowing how to take advantage of the *2 cpu's on a Linux
based machine.
Any thing regarding *2 + processing is of interest to me, as i use the NT4 as
a server and would like to try using Linux instead.
many thanks in advance
<p>Ade.


<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Tue, 3 Jun 1997 07:33:50 -0700 (PDT)<br>
From: David Mandel <a href="mailto:dmandel@transport.com">dmandel@transport.com</a><br>
Subject: CD Burners, Scanners, Digital Cammeras, etc.


<p>I have a mess of family photographs and possibly 35mm slides that I 
want to preserve.  One idea I'm considering is scanning these and putting
them on CDs.  So I have a few questions.
<ol>
<li>Will a Sony CDU926S burner work with xcdroast?
The documentation says a Sony CDU920S will work, but I don't know
     the differences between the CDU920S and CDU926S.  A bare bones
     (no docs, drivers, software) CDU926S is only $265.  The MS ready
     version is $350, but who would want that?

<li>What is a good, but cheap flatbed scanner to use?
     (Good means 24 bit color and &gt;= 300dpi optical resolution.)
     What software (in Linux) supports the scanner?

<li>I can't afford one, but...
     Are there any 35mm slide scanners on the market with Linux support?

<li>And as long as I'm asking dumb questions...
     Does Linux have support for any digital cameras yet?
     Someday many of us will want to change to digital photography,
     and it would be awful to have to learn Windows to do this.

</ol>
<p>Thank you for your time and help,<br>
         Dave Mandel
<blockquote> <I> 
(We'll have to depend on our readers for 1 and 3. As to 2, we use the HP5P
flatbed scanner, which fits your qualifications for good. As to cheap it
depends on your definition--it sells for around $400. The Linux software
that supports all HP scanners is XVscan, and a very nice program it is.
As to 4, the answer is yes; Hitach MP-EG1A, <A
HREF="http://www.mpegcam.net/">http://www.mpegcam.net/</A>. --Editor)
</I> </blockquote> 

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Tue, 3 Jun 1997 09:01:06 +0100 (BST)<br>
From: Andrew Philip Crook <a href="mailto:shu96apc@reading.ac.uk">shu96apc@reading.ac.uk</a><br>
Subject: Ascii Problems with FTP

<p>When I use a dos ftp(in ascii mode) program to download a Linux Script,
because it is not running yet, the script fails to work when installed. 
This is because a ^M is appended to every line, take them out and it works. 

<p>What's happening?

<p>How can I stop it?

<p>Or how can a filter all the ^M's out?

<p>Many Thanks<br>
Andrew Crook.

<blockquote> <I> 
(In a couple of last year's issues, there are several Tips & Tricks for
getting rid of ^M. You can't stop them from happening. I personally get
rid of them in vi using a global replace (e.g., :%s/^M//g); one command and
they're gone forever. --Editor)
</I> </blockquote> 
<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Thu, 05 Jun 1997 23:08:08 -0400<br>
From: Steve Malenfant, <a href="mailto:smalenfant@cablevision.qc.ca">smalenfant@cablevision.qc.ca</a><br> 
Subject: Problems with XFree86

<p>I'm a new user to Linux and the problem still XFree86!  So then I tried
to know want can I do to Linux community.  In Issue #16, you said
that the problem is not video card and is Monitor balancing.  So why
Windows 95 can have all these preset on monitor and Linux don't have?
Why we can't use the stuff in the Microsoft Lib to transfer it into the
database of XF86Setup or something like that.  Cause that's real that
the dotclock and all this is very scrambled!  Why not just resolution
and Virtual Refresh, that's all we need to know, the program could do
the rest!  We don't have to know what horizontal frequency and dotclock
it is!

<p>Steve Malenfant

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Thu, 19 Jun 1997 15:39:58 -0700<br>
From: Kevin Hartman <a href="mailto:KevinH@hsaeug.com">KevinH@hsaeug.com</a><br>
Subject: Afterstep

<p>Would anyone be interested in an Afterstep customization how-to/where to
get?

<p>Kevin 

<blockquote> <I> 
(Have you got one setup or just trying to find out if there's a need?
--Editor)
</I> </blockquote> 

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Sat, 07 Jun 1997 02:34:57 -0400<br>
From: sinyz, <a href="mailto:sinyz@superlink.net">sinyz@superlink.net</a><br>
Subject: Need Help

<p>Hi,
 If you happen to have time on your end please be so kind as to answer a
few questions for a newbie!

<p>Well , here is the situation and I need to get some serious advice
from people like you. I have been reading the newsgroups and HOWTO's .
They have been quite informative and ,increasingly so, as I continue .
 Now , thank GOD I got my Linux (RED HAT 4.1) box set up and running on
my slave drive with Win95 on the Master. It detected my CDROM and I also
configured my Xwindows (X11R6) .

<p>But there are couple of questions
<ol>
<li>I have a video card of type diamond s3 virge 3D 2000 . The driver
for S3 was a choice in the XF86Setup which I chose and everything seems
to work fine. Also I chose the 800*600 resolution SVGA monitor . I have
been hearing rumors from friends that the video card when being used by
Xwindows may mess up the monitor . This has been troubling me quite a
bit . What's up with this ??

<li>I read using the dmesg command  that Linux at boot time does not
notice that there is a device on  tty1 . The specific line reads this
 <pre>Serial driver version 4.13 with no serial options enabled
 tty00 at 0x03f8 (irq=4) is a 16550A
 tty03 at 0x02e8 (irq=3) is a 16550A</pre> 
There seems to be no mention of tty1 (com 2 irq 3) where my modem is
installed at !How  to fix this ?? By the way my modem happens to be a
plug-n-play modem -SUpra 28.8bps. I have heard that pnp modems have
problems with Linux and there are fixes for pnp types - please recommend
any.(In effect how do I get my Modem to work)

<li>Also I did not notice during the boot time messages any thing to do
with PPP Protocol which I definitely need to dialup to an ISP . Does
that mean recompiling the Kernel -- HOw ( if red hat distribution has
specific or simpler way of doing things  then let me know )
Thanks a lot in anticipation.
</ol>

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Wed, 11 Jun 1997 11:06:57 +0200 (MET DST)<br>
From: Martin Lersch <a
href="mailto:lersch@athene.informatik.uni-bonn.de">lersch@athene.informatik.uni-bonn.de</a><br>
Subject: User-Level Driver For HP ScanJet 5p?<br>

<P>Hello!

Please can you point me to some direction were I can find a user-level
driver for the HP ScanJet 5p? There exist the HPSCANPBM driver which
works in part, but does not support the -width and -height options
for the ScanJet 5p. I guess it was written for a ScanJet 4c or something like that. 
BTW: The homepage of HP does not give much support for Linux users. They do not publish the ESCAPE sequences of the scanners.

<p>Regards,

     Martin Lersch

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

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">


Date: Sun, 01 Jun 1997 00:56:52 -0500<br>
From: Piotr Mitros <a href="mailto:pmitros@mit.edu">pmitors@mit.edu</a><br>
Subject: WordPerfect for Linux

<p>Before more users spend many hours downloading the 50 megabyte (!) 
WordPerfect for Linux, you may want to note that the beta download lets
you get a demo version that times out after just 15 days. They seem to
have demo versions of WordPerfect 6 available, so it is not that big a
deal.

<p>However, I would like to see a comparison of WordPerfect for Linux, 
StarOffice's word processor and the what is planned for GNU WP.   

<p>Piotr
<blockquote> <I> 
(I'd like to see that comparisom too. --Editor)
</I> </blockquote> 

<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Thu, 12 Jun 1997 06:42:47 -0400<br>
From: Stephen L. Cito <a href="mailto:al256@detroit.freenet.org">al256@detroit.freenet.org</a><br>
Subject: Question about downloading the archive

<p>Hello,

I'd like to download the past issues of LG (having enjoyed LJ now since 
last fall), but I don't think I could even get an 11 meg file downloaded 
over my 14.4 modem within the 1 hour that I have before my local Internet 
connection (the Greater Detroit Free Net) times out on me.  Is there any 
way to download the past issues in smaller "chunks"?

<p>Thanks and have a real nice day...

<p>SC, Novi, MI

<blockquote> <I> 
(Hmmm, that is a problem. No, I don't save the individual tar files of
previous issues separately. There is, of course, TWDT,
option for each issue which gives you the issue as one great big
file. Not as nice as the normal multi-file format but very popular so must
work for some. --Editor)</I>


<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Wed, 04 Jun 1997 22:52:36 -0700<br>
From: James Zubb <a href="mailto:jimz_@ecom.net">jimz_@ecom.net</a><br>
Subject: ActiveX for Linux

<p>Hi,

I read the ActiveX for Linux question in the Answer Guy's article, I did a
little looking and came up with a web site:

<a href="http://www.sagus.com/Prod-i~1/Net-comp/dcom/index.htm">http://www.sagus.com/Prod-i~1/Net-comp/dcom/index.htm</a>

<p>I don't know if this is actually the ActiveX port for Linux or not, I
didn't feel like trying to figure it out, but there is a Beta for Linux
there.  Beats me what it does or how it does it...
<p>
--
Jim Zubb



<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date: Fri, 6 Jun 1997 19:01:40 +0100 (BST)<br>
From: Adrian Bridgett <a href="mailto:apb25@cam.ac.uk">apb25@cam.ac.uk</a><br>
Subject: Re: X Color Depth

<I>(In response to the message by Roland Smith)</I>

<P>Normally 8-bit displays use 256 colours chosen from 2^24 (16,777,216), and
15/16/24/32 bits displays just use a fixed number of colours spread
"evenly" throughout the colour spectrum. 

<p>16-bit displays use 5 bits for red, 5 bits for blue and 6 bits for green,
however the 65536 colours cannot be changed and so the overall
"resolution" of colour is lower than 256 bit displays. For instance you
can only have 2^5 different shades of green, rather than 2^8.

<p>Adrian


<P> <HR> <P> 
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">

Date:Thu June 12 08:39:19 PDT 1997<br>
Timothy Gray <a href="mailto:timgray@lambdanet.com">timgray@lambdanet.com</a><br>
Subject: CNE Certification for Linux?

<P>Oh, no not a certification suggestion......

<P>Linux was developed as a better and free version of UNIX.
Now someone wants to make a CNE for Linux? As a successful Linux Network
Administrator (and Business owner that proudly states no Microsoft here!)
I am appalled at charging ten's of thousands of dollars to get a piece of paper 
that states I can do my job.  As an Internet service provider and an avid
Linux, Freeware, and Free Software Foundation supporter I hire my network
administrators and Engineers( We call them System Administrators ) based on 
their abilities and trainability.  A CNE paper does not nor will ever impress
me. Even suggesting such an idea toward Linux is appalling. Let's keep our
last bastion of freedom from the clutches of cooperate greed! If we must 
have a Linux CNE make it 100% free and available to everyone on the planet.

<P>Thank you,

Timothy Gray


<P> <hr> <P> 
<!--================================================================-->
<center>Published in Linux Gazette Issue 19, July 1997</center>
<!--====================================================================-->
<P> <hr> <P> 
<A HREF="./index.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_tips19.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; 1997 Specialized Systems Consultants, Inc. </H5> 
<P> 
<H4>&quot;Linux Gazette...<I>making Linux just a little more fun!</I>
&quot;</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>
<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_tips19.html#rude">Rude Getty</a>
<li><a HREF="./lg_tips19.html#track">Keeping Track of File Size</a>
<li><a HREF="./lg_tips19.html#pack">What Packages Do I Need?</a>
<li><a HREF="./lg_tips19.html#sound">Sound Card Support</a>
<li><a HREF="./lg_tips19.html#install">InstallNTeX is Dangerous</a>
<li><a HREF="./lg_tips19.html#reply">Relpy to Dangerous InstallNTeX
Letter</a>
<li><a HREF="./lg_tips19.html#monitor">Monitoring An FTP Download</a>
<li><a HREF="./lg_tips19.html#ports">Programming Serial Ports</a>
<li><a HREF="./lg_tips19.html#grep">Grepping Files in a Directory Tree</a>
<li><a HREF="./lg_tips19.html#more">More Grepping Files</a>
<li><a HREF="./lg_tips19.html#still">Still More on Grepping Files</a>
<li><a HREF="./lg_tips19.html#files">More on Grepping Files in a Tree</a>
<li><a HREF="./lg_tips19.html#tree">Grepping</a>
<li><a HREF="./lg_tips19.html#zip">Untarring/Zip</a>
<li><a HREF="./lg_tips19.html#duplic">Hard Disk Duplication</a>
<li><a HREF="./lg_tips19.html#ncftp">Reply to ncftp</a>
<li><a HREF="./lg_tips19.html#pipes">Sockets and Pipes</a>
<li><a HREF="./lg_tips19.html#hex">Hex Dump</a>
<li><a HREF="./lg_tips19.html#hex2">More on Hex Dump</a>
<li><a HREF="./lg_tips19.html#zprotocol">Reply to Zprotocol</a>
</ul>


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

<a name="rude"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Rude Getty
</H3>
<P> 
Date: Mon, 23 June 1997 21:12:23<br>
From: Heather Stern <a href="mailto:star@starshine.org">star@starshine.org</a><br>

<p>I have a fairly important UNIX box at work, and I have come across a good
trick to keep around.

<p>Set one of your console getty's to a nice value of very rude, -17 or worse.
That way if a disaster comes up and you have to use the console, it won't
take forever to respond to you (because of whatever went wrong).



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

<a name="track"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Keeping Track of File Size
</H3>
<P> 
Date:Mon 16 June 1997 13:34:24<br>
From: Volker Hilsenstein <a href="mailto:vhilsens@aixterm1.urz.uni-heidelberg.de">vhilsens@aixterm1.urz.uni-heidelberg.de</a><br>

<p>Hello everyone,
I just read Bob Grabau's 2C-tip for keeping track of the size of
file. Since it is a bit inconvenient to type all these lines
each time you download something I wrote this little script:
<pre>
#!/bin/bash
# This script monitors the size of the files given
# on the command line.
while :
do
  clear
    for i in $@; do
     echo File $i has the size `ls -l $i   | tr -s " " | cut -f 5 -d " "` bytes;
   done
sleep 1
done
</pre>

<p>Bye ... Volker 


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

<a name="pack"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Reply to "What Packages do I Need?"
</H3>
<P> 
Date: Tue 24 June 1997 11:15:56<br>
From: Michael Hammel, <a href="mailto:mjhammel@long.emass.com">mjhammel@long.emass.com</a>
<P> 

You asked about what packages you could get rid of and mentioned that you
had AcceleratedX and that because of this you "can get rid of a lot off the
X stuff".  Well, thats not really true.  AcceleratedX provides the X
server, but you still need to hang onto the X applications
(/usr/X11R6/bin/*) and the libraries and include files (/usr/X11R6/lib and
/usr/X11R6/include) if you wish to compile X applications or run X binaries
that require shared libraries.
 
<p>Keep in mind that X is actually made up of three distinct parts:  the
clients (the X programs you run like XEmacs or Netscape or xterm), the
server (the display driver that talks to your video adapter), and the
development tools (the libs, header files, imake, etc).  General users
(non-developers) can forego installation of the development tools but need
to make sure to install the runtime libraries.  Each Linux distribution
packages these differently, so just be careful about which ones you remove.
 
<p>One caveat:  I used to work for Xi Graphics, but that was over a year and a
 half ago.  Although I keep in touch with them, I haven't really looked at
 the product line lately.  Its possible they ship the full X distributions
 now, but I kind of doubt it.  If they are shipping the full X distributions
 (clients, server, development tools) then disregard what I've said.
 
<p>Hope this helps.<br>
-- 
Michael J. Hammel           


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

<a name="sound"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Sound Card Support
</H3>
<P> 
Date: Mon 24 June 1997: 11:16:34<br>
From: Michael Hammel, <a href="mailto:mjhammel@long.emass.com">mjhammel@long.emass.com</a>

<p>With regards to your question in the LG about support for the MAD16 Pro from 
Shuttle Sound System under Linux, you might consider the OSS/Linux product 
from 4Front-Techologies.  The sound drivers they supply support a rather 
wide range of adapters.  The web paget http://www.4front-tech.com/osshw.html 
gives a list of what is and isn't supported.  The Shuttle Sound System 48 is 
listed as being supported as well as generic support for the OPTi 82C929 
chipset (which you listed as the chipset on this adapter).
 
<p>This is commercial software but its only $20.  I've been thinking of
getting it myself.  I have used its free predecessor, known at times as
OSS/Lite or OSS/Free, and found it rather easy to use.   I just haven't 
gotten around to ordering (mostly cuz I never seem to have time for doing
installation or any other kind of admin work).  I will eventually.
 
<p>4Front's web site is at http://www.4front-tech.com.
 
<p>Hope this helps.
<p>
-- 
Michael J. Hammel           

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

<a name="install"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
InstallNTeX is Dangerous
</H3>
<P> 
Date: Fri 06 June 1997 12:31:14<br>
From: Frank Langbein <a href="mailto:langbein@mathematik.uni-stuttgart.de">langbein@mathematik.uni-stuttgart.de</a><br>

<p>Dear James:<br>

<I>On Fri, 6 Jun 1997, James wrote:</I><br>

<p>You have still
 
  <pre> make_dir "       LOG" "$VARDIR/log"       $DOU 1777
 
   make_dir " TMP-FONTS" "$VARDIR/fonts"     $DOU 1777</pre>
 
<p>If I hadn't (now) commented-out your
 
    <pre>(cd "$2"; $RM -rf *)</pre>
 
then both my /var/log/* and /var/fonts/* files and directories would have
been deleted!

<p>Actually VARDIR should also be a directory reserved for NTeX only (something
like /var/lib/texmf). Deleting VARDIR/log is not really necessary unless
someone has some MakeTeX* logs in there which are not user writable. Any pk
or tfm files from older or non-NTeX installations could cause trouble later. 
Sometimes the font metrics change and if there are some old metrics used with
a new bitmap or similar the resulting document might look rather strange. 
Further log and fonts have to be world writable (there are ways to prevent
this, but I haven't implemented a wrapper for the MakeTeX* scripts yet), so
placing them directly under /var is not really a good idea. I am aware that
the documentation of the installation procedure is minimal which makes it
especially hard to select the directories freely. 

<p>The real problem is that allowing to choose the directories freely. Selecting
the TDS or the Linux filesystem standard is rather save and at most any other
TeX files are deleted. The only real secure option would be to remove the free
choice and only offer the Linux filesystem standard, the one from web2c 7.0
which is also TDS conform and a TDS conform sturcutre in a special NTeX
directory. The free selection would not be accessible for a new user. I could
add some expert option which still allows to use a totally free selection. 
Additional instead of deleting the directories they could be renamed. 

<p>There are plans for a new installation procedure, also supporting such things
as read only volumes/AFS, better support for multiple platform installation,
etc. This new release will not be available before I managed to implement all
the things which were planed for 2.0. But that also means that there will
probably be no new release this year as I have to concentrate on my studies. 
Nevertheless I will add a warning to the free selection in InstallNTeX. That's
currently the only thing I can do without risking to add further bugs to
InstallNTeX. Considering that my holiday starts next week I can't do more this
month.

<p>BTW, on another point, I had difficulty finding what directory was searched
for the packages to be installed.  Only in the ntex-guide, seemingly buried,
is there:

<p>This is caused by different ways to look for the package in NTeX-install, the
text version of InstallNTeX and the Tcl/Tk version of InstallNTeX. Therefore
you get some warnings even if NTeX-install would be able to install the
packages. The minimal documentation is one of the real big drawbacks of NTeX.
I'm currently working on a complete specification for the next release which
will turn into a real documentation.

<p>Thanks for pointing out the problems with the free selection of that paths. So
far I concentrated on setting the installation paths to non-existing
directories.
<p>
Regards,<br>
Frank

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

<a name="reply"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Reply to Dangerous InstallNTeX Letter
</H3>
<P> 

To: Frank Langbein, <a href="mailto:langbein@mathematik.uni-stuttgart.de">langbein@mathematik.uni-stuttgart.de</a><br>
Date: Sat, 07 Jun 1997 10:11:06 -0600<br>
From: James <a href="mailto:james@albion.glarp.com">james@albion.glarp.com</a>

<p>Dear Frank:<br>

The hidden application of the operation <pre>rm -rf *</pre> to the unpredictable and
unqualified input from a broad base of naive users is highly likely to
produce unexpected and undesired results for some of these users.  This is
the kind or circumstance more usually associated with a "prank".  If this is
_not_ your intent, then further modifications to the script "InstallNTeX"
are required.

<p>The script functions at issue include: mk_dirchain() ($RM -f $P), make_dir()
($RM -rf * and $RM -f "$2"), make_tds_ln() ($RM -f "$3"), and link_file()
($RM -rf "$2").  The impact of the operations when using unexpected
parameters, from misspellings or misinterpretations, for instance, should be
considered.

<p>You might simply replace these operations with an authorization dialog, or
you could create a dialog with several recovery options.  (For the moment, I
have replaced them with `echo "&lt;some &lt;warning parm&gr;"'.)


<p>James G. Feeney


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

<a name="monitor"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Monitoring An FTP Download
</H3>
<P> 

Date: Tue, 10 Jun 1997 19:54:25 +1000 (EST)<br>
From: Nathan Hand <a href="mailto:Nathan.Hand@anu.edu.au">Nathan.Hand@anu.edu.au</a><br>

<p>I saw the recent script someone posted in the 2c column to monitor
an ftp download using the clear ; <code>ls -l</code> ; sleep trick. I'd just like
to point out there's A Better Way.

<P>Some systems will have the "watch" command installed. This command
works pretty much like the script, except it uses curses and buffers
for lightning fast updates. You use it something like

<pre>   watch -n 1 ls -l</pre>

<p>And it prints out the current time, the file listing, and it does
the refreshes so fast that you don't see the <code>ls -l</code> redraws. I think
it looks a lot slicker, but otherwise it's the same as the script.

<p>I don't know where the watch command comes from. I'm using a stock
standard Red Hat system (4.0) so hopefully people with similar setups
will also have a copy of this nifty little tool.


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

<a name="ports"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Programming Serial Ports
</H3>
<P> 
Date: Wed 18 June 1997 14:15:23<br>
From: Tom Verbeure <a href="mailto:to_verbeure@mietec.be">to_verbeure@mietec.be</a>


<p>Hello,

A few days ago, I had to communicate using the serial port of a Sun workstation. 
A lot of information can be found here:

<a href="http://www.stokely.com/stokely/unix.serial.port.resources">http://www.stokely.com/stokely/unix.serial.port.resources</a>
and here:
<a href="http://www.easysw.com/~mike/serial">http://www.easysw.com/~mike/serial</a>

<P>Reading chapters 3 and 4 of that last page, can do wonders. It took me about 30 
minutes to communicate with the machine connected to the serial port. The code 
should work on virtually any unix machine.

<P>Hope this helps,

Tom Verbeure

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

<a name="grep"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Another Way of Grepping Files in a Directory Tree
</H3>
<P> 

Date: Thu 12 June 15:34:12<br>
From: Danny Yarbrough <a href="mailto:danny@interactive.visa.com">danny@interactive.visa.com</a>

<p>That's a good tip.  To work around the command line length limitation,
you can use xargs(1):
<pre>
find . -name "\*.c" -print | xargs grep foo
</pre>
this builds a command line containing "grep foo" (in this case), plus as
many arguments (one argument for each line of its standard input) as it
can to make the largest (but not too long) command line it can.  It then
executes the command.  It continues to build command lines and executing
them until it reaches the end of file on standard input.

<p>(Internally, I suppose xargs doesn't build command lines, but an array
of arguments to pass to one of the exec*(2) family of system calls.  The
concept, however is the same).

<p>xargs has a number of other useful options for inserting arguments into
the middle of a command string, running a command once for each line of
input, echoing each execution, etc.  Check out the man page for more.

<p>Cheers!

Danny


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

<a name="more"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
More Grepping Files
</H3>
<P> 
Date: Mon 16 June 1997 08:45:56<br>
From: Alec Clews <a href="mailto:Alec@tca.co.uk">Alec@tca.co.uk</a>

<pre>grep foo `find . -name \*.c -print`</pre>

<p>The only caveat here is that UNIX is configured to limit max chars in a
command line and the "find" command may generate a list of files too
huge for shell to digest when it tries to run the grep portion as a
command line. Typically this limit is 1024 chars per command line. 

<p>You can get around this with 

<pre>find . -type f -name \*.c -exec grep foo {} /dev/null \;</pre>

<p>Notes:
The <code>-type f</code> skips directories (and soft links, use <code>-follow</code> if
needed) that end with a <code>c</code>

<p>The /dev/null is required to make grep display the name of the file
it's searching. grep only displays the file name *and* the search string
when there are multiple files to search, and /dev/null is a 0 length
file.

<p>Regards,<br>
Alec

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

<a name="still"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Still More On Grepping Files
</H3>
<P> 
Date: Sat 14 June 1997 10:57:34<br>
From: Rick Bronson <a href="mailto:rick@efn.org">rick@efn.org</a>


<p>Here is similiar way to grep for files in a directory tree.  This
method uses xargs and as such does not suffer from the max chars in
a command line limit.

<pre>sea () 
{ 
    find . -name "$2" -print | xargs grep -i "$1"
}</pre>

<p>I've defined it as a function in my .bashrc file, you would use it
like:

<pre>sea "search this string" '*.[ch]'</pre>

<p>Rick

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

<a name="tree"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Grepping
</H3>
<P> 

Date: Thu 19 June 1997 09:29:12<br>
From: David Kastrup <a href="mailto:dak@neuroinformatik.ruhr-uni-bochum.de">dak@neuroinformatic.ruhr-uni-buchum.de</a><BR>
<I>Reply to "Grepping Files in a Tree Directory"</I>

<p>Well right. That's why most solutions to this problem are given
using the xargs command which will construct command lines of
appropriate size.

<p>You'd write
<pre>find . -name \*.c -print|xargs grep foo</pre>
for this.  This can be improved somewhat, however.  If you suspect
that you have files containing newlines or otherwise strange
characters in them, try
<pre>find . -name \*.c -print0|xargs -0 grep foo --</pre>
This will use a special format for passing the file list from find to
xargs which can properly identify all valid filenames.  The <tt>--</tt> tells
grep that even strange file names like "-s" are to be interpreted as
file names.

<p>Of course, we would want to have a corresponding file name listed even
if xargs calls a single grep in one of its invocation.  We can manage
this with
<pre>find . -name \*.c -print0|xargs -0 grep foo -- /dev/null</pre>
This will have at least two file names for grep (/dev/null and one given by
xargs), so grep will print the file name for found matches.

<p>The <tt>--</tt> is a good thing to keep in mind when writing shell scripts.
Most of the shell scripts searching through directories you find
flying around get confused by file names like "-i" or
"xxx\
yyy"

and similar perversities.

<p>David Kastrup


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

<a name="files"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
More on Grepping Files in a Tree
</H3>
<P> 
Date: Mon 02 June 1997 15:34:23<br>
From: Chris Cox <a href="mailto:ccox@central.beasys.com">ccox@central.geasys.com</a>

<p>My favorite trick for look for a string (or strings - egrep) in
a tree:

<pre>$ find . -type f -print | xargs file | grep -i text |
   cut -f1 -d: | xargs grep pattern</pre>

<p>This is a useful technique for other things...not just
grepping.



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

<a name="zip"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Untarring/Zip
</H3>
<P> 
Date: Sun 22 June 1997 13:23:14<br>
From: Mark Moran <a href="mailto:mmoran@mmoran.com">mmoran@mmoran.com</a> 

<p>I read the following 2-cent tip and was excited to think that I've
finally reached a point in my 'linux' expertise I COULD contribute a
2-cent tip!  I typically run:<br>

<pre>tar xzf foo.tar.gz</pre><br>

to unzip and untar a program.  But as Paul mentions the directory
structure isn't included in the archive and it dumps in your current
directory.  Well before I do the above I run:<br>

<pre>tar tzf foo.tar.gz</pre><br>

<p>This will dump out to your console what going to be unarchived easily
allowing you to see if there's a directory structure!!!!
<p>
Mark

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

<a name="duplic"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
An Addition to Hard Disk Duplication (LG #18)
</H3>
<P> 
Date: Thu 12 June 1997 15:34:32<br>
From: Andreas Schiffler <a href="mailto:schiffler@zkm.de">schiffler@zkm.de</a><br>


<p>Not suprisingly, Linux can do that of course for free and - even from a
floppy bootimage for example (i.e. Slackware bootdisk console). 

<p>For identical harddrives the following will do the job:
<pre>cat /dev/hda &gt;/dev/hdb</pre>

<p>For non-identical harddrives one has to repartition the target first:
<table>
<tr>
<td>fdisk /dev/hda</td> <td>record the partitions (size, type)</td>
</tr>
<tr>
<td>fdisk /dev/hdb</td>  <td>create same partitions</td>
</tr>
<tr>
<td>cat /dev/hda1 &gt;/dev/hdb1</td>  <td>copy partitions</td>
</tr>
<tr>
<td>cat /dev/hda2 &gt;/dev/hdb2</td>
</tr>
</table>
...

<p>To create image files, simply redirect the target device to a file.
<pre>cat /dev/hda &gt;image-file</pre>

<p>To reinstall the MBR and lilo, just boot with a floppy using parameters
that point to the root partition (as in LILO&gt; linux root=/dev/hda1) and
rerun lilo from within Linux.

<p>Have fun<br>
  Andreas



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

<a name="ncftp"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Reply to ncftp (LG #18)
</H3>
<P> 
Date: Fri 20 June 1997 14:23:12<br>
From: Andrew M. Dyer, <a href="mailto:adyer@mcs.com">adyer@mcs.com</a>

<p>To monitor an ftp session I like to use ncftp which puts up a nice
status bar.  It comes in many linux distributions.  When using the
standard ftp program you can also use the <pre>hash</pre> command which prints
a <pre>#</pre> every 1K bytes received.  Some ftp clients also have the <pre>bell</pre>
command which will send a bell character to your console for every file
transferred.


<p>For grepping files in a directory tree I like to use the -exec
option to find.  The syntax is cryptic, but there is no problem with
overflowing the shell argument list.  A version of the command shown in
#18 whould be like this:

<pre>find . -name \*.c -exec grep foo {} /dev/null \;</pre> 

(note the /dev/null forces grep to print the filename of the matched
file).  Another way to do this is with the mightily cool xargs
program, which also solves the overflow problem and its a bit easier to
remember:

<pre>find . -name \*.c -print | xargs grep foo /dev/null</pre>

(this last one is stolen from "UNIX Power Tools" by Jerry Peek, Tim
O'Reilly and Mike Loukides - a whole big book of 2 cent tips. 

<p>For disk duplication we sometimes use a linux box with a secondary
IDE controller, and use <pre>dd</pre> to copy the data over.  

<pre>dd if=/dev/hdc of=/dev/hdd bs=1024k</pre>

this would copy the contents of /dev/hdc to /dev/hdd.  The bs=1024k
tells linux to use a large block size to speed the transfer.

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

<a name="pipes"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Sockets and Pipes
</H3>
<P> 
Date: Thu, 12 Jun 1997 23:22:38 +1000 (EST)
From: Waye-Ian Cheiw, <a href="mailto:itchy@jaguar.snafu.com">itchy@jaguar.snafu.com</a> 

<p>Hello!

<p>Here's a tip!

<p>Ever tried to pipe things, then realised what you want to pipe to is on another
machine?

<pre>spiffy $ sort &lt; file 
sh: sort: command not found 
spiffy $ # no sort installed here! gahck!</pre>

<p>Try "socket", a simple utility that's included in the Debian distribution.
Socket is a tool which can treat a network connection as part of a pipe.

<pre>spiffy $ cat file
c 
b
a
spiffy $ cat file | socket -s 7000 &   # Make pipe available at port 7000.
spiffy $ rlogin taffy
taffy $ socket spiffy 7000 | sort      # Continue pipe by connecting to spiffy.
a
b
c</pre>

<p>It's also very handy for transferring files and directories in a snap.

<pre>spiffy $ ls -F 
mail/	project/
spiffy $ tar cf - mail project | gzip | socket -qs 6666 &
spiffy $ rlogin taffy
taffy $ socket spiffy 6666 | gunzip | tar xf - 
taffy $ ls -F
mail/   project/</pre>

<p>The -q switch will close the connection on an end-of-file and conveniently
terminate the pipes on both sides after the transfer.

<p>It can also connect a shell command's input and output to a socket.  There is
also a switch, -l, which restarts that command every time someone connects to
the socket.

<pre>spiffy $ socket -s 9999 -l -p "fortune" &
spiffy $ telnet localhost 9999
"Baseball is ninety percent mental.  The other half is physical." 
Connection closed by foreign host. </pre>

Will make a cute service on port 9999 that spits out fortunes.


<p>-- Ian!!


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

<a name="hex"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Hex Dump
</H3>
<P> 
Date: Tue 24 June 1997 22:54:12<br>
From: Arne Wichmann <a href="mailto:aw@math.uni-sb.de">aw@math.uni-sb.de</a>

<p>Hi.

<p>One of my friends once wrote a small vi-compatible hex-editor. It can be
found (as source) under vieta.math.uni-sb.de:/pub/misc/hexer-0.1.4c.tar.gz
<P> <hr> <P> 
<!--================================================================-->

<a name="hex2"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
More on Hex Dump
</H3>
<P> 

Date: Wed, 18 Jun 1997 10:15:26 -0700<br>
From: James Gilb <a href="mailto:p27451@am371.geg.mot.com">p27451@am371.geg.mot.com</a>

<p>I liked your gawk solution to displaying hex data.  Two things (which
people have probably already pointed out to you).
<ol>
<li>If you don't want similar lines to be replaced by *  *, use the -v
option to hexdump.  From the man page:

     <p>-v    The -v option causes hexdump to display all input data.
           Without the -v option, any number of groups of output lines,
           which would be identical to the immediately preceding group
           of output lines (except for the input offsets), are replaced
           with a line comprised of a single asterisk.

<li>In emacs, you can get a similar display using ESC-x hexl-mode.  The
output looks something like this:
<pre>
00000000: 01df 0007 30c3 8680 0000 334e 0000 00ff  ....0.....3N....
00000010: 0048 1002 010b 0001 0000 1a90 0000 07e4  .H..............
00000020: 0000 2724 0000 0758 0000 0200 0000 0000  ..'$...X........
00000030: 0000 0760 0004 0002 0004 0004 0007 0005  ...`............
00000040: 0003 0003 314c 0000 0000 0000 0000 0000  ....1L..........
00000050: 0000 0000 0000 0000 0000 0000 2e70 6164  .............pad
00000060: 0000 0000 0000 0000 0000 0000 0000 0014  ................
00000070: 0000 01ec 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0008 2e74 6578 7400 0000 0000 0200  .....text.......
00000090: 0000 0200 0000 1a90 0000 0200 0000 2a98  ..............*.
</pre>
(I don't suppose it is supprising that emacs does this, after all, emacs
is not just and editor, it is its own operating system.)

</ol>



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

<a name="zprotocol"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Reply to Z Protocol
</H3>
<P> 
Date: Mon 09 June 1997 19:34:54<br>
From: Gregor Gerstmann <a href="mailto:gerstman@tfh-berlin.de">gerstman@tfh-berlin.de</a>

<p>In reply to my remarks regarding file transfer with the z protocol 
in LinuxGazette issue17, April 1997, I received an e-mail that may
be interesting to others too:

<p>Hello!

<p>I noticed your article in the Linux Gazette about the sz command, and really
don't think you need to split up your downloads into smaller chunks.

<p>The sz command uses the ZMODEM protocol, which is built to handle transmission
errors.  If sz reports a CRC error or a bad packet, it does not mean that the
file produced by the download will be tainted.  sz automatically retransmits
bad packets.

<p>If you have an old serial UART chip ( 8250 ), then you might be getting
intermittent serial errors.  If the link is unreliable, then sz may spend most
of its time tied up in retransmission loops. 

<p>In this case, you should use a ZMODEM window to force the sending end to expect
an `OK' acknowledgement every few packets.

 <pre>  sz -w1024</pre>

Will specify a window of 1024 bytes.

<p>
-- Ian!!

<P> <hr> <P> 
<!--================================================================-->
<center>Published in Linux Gazette Issue 19, July 1997</center>
<P> <hr> <P> 
<!--================================================================-->
<A HREF="./index.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_mail19.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<A HREF="./lg_bytes19.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; 1997 Specialized Systems Consultants, Inc. </H5> 
<P> 
<H4>&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;</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_bytes19.html#general">News in General</a>
<li><a HREF="./lg_bytes19.html#software">Software Announcements</a>
</ul>
</td></tr></table>
</center>

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


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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
SPAM Counter Attack!
</H3> 
<P> 
If you'd like to have your voice heard regarding SPAM mail, why don't you
consider writing a letter to your representative? 

<p>If you're not sure of who your representatives are, check the Congressional
websites:
<ul>
<li>House: <a href="http://www.house.gov/writerep/">http://www.house.gov/writerep/</a>
<li>Senate: <a href="http://www.senate.gov/senator/index.html">http://www.senate.gov/senator/index.html</a>
</ul>

<p>The postal addresses for your members are:

<table>
<tr>
<td>The Honorable (Senator name)</td>     <td>The Honorable (Rep. name)</td>

<td>Washington, DC 20510</td>           <td>Washington, DC  20515</td>
</tr>
</table>

<p>The letter doesn't have to be long... two paragraphs is as effective as 10
pages. And you don't need to write different letters, the same one can be
sent to each Member. (Just remember to change the mailing address!)

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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Linux-Access Web Pages
</H3> 
<P> 

The Center for Disabled Student Services at the University of 
Utah in Salt Lake City Utah, today announced it's newly re-designed
linux-access web pages.  linux-access is a mailing list hosted by   
CDSS which is used by both developers and users of the Linux operating  
system in order to aid development and integration of access related
technology into the Linux OS and available software.

<p>Both users and developers of Linux are encouraged to join the
mailing list and help Linux become more accessible to everyone.  Among
those encouraged to subscribe to the list are companies making Linux
distributions so that they can incorporate access technology into their
products as well as get valuable feedback from users.

<p>Location of the new pages is at:
<a href="http://ssv1.union.utah.edu/linux-access/">http://ssv1.union.utah.edu/linux-access/</a>.<br>

Location of the blinux FTP mirror is at
        <a href="ftp://ssv1.union.utah.edu/pub/mirrors/blinux/">ftp://ssv1.union.utah.edu/pub/mirrors/blinux/</a>.<br>

<p>An archive of the mailing list can be found on the Linux v2 Information HQ
site at:
  <a href="http://www.linuxhq.com/lnxlists/linux-access/">http://www.linuxhq.com/lnxlists/linux-access/</a>.

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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Supreme Court Ruling
</H3> 
<P> 

The U.S. Supreme Court extended free-speech rights
to cyberspace in its recent ruling striking down a federal law
that restricted indecent pictures and words on the Internet computer
network. 

<p>The court declared the law that bans the dissemination of
sexually explicit material to anyone younger than 18 unconstitutional. 

<p>"Notwithstanding the legitimacy and importance of the congressional goal
of protecting children from harmful materials, we agree ... that the
statute abridges 'freedom of speech' protected by the First Amendment,"
Justice John Paul Stevens said for the court majority in the 40-page
opinion. 

<p>The ruling represented a major victory for the American Civil Liberties
Union (ACLU) and groups representing libraries, publishers and the
computer on-line industry, which brought the lawsuit challenging the law. 



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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
The Power OS
</H3> 
<P> 
 
Matthew Borowski has created a new website featuring Linux information. Entitled
"Linux - THE POWER OS", and featuring Linux links, software, help,
and a discussion forum, Linux - THE POWER OS is also a member of the
Linux Webring.

<p>The software listing is top-of-the-line, featuring a list of powerful
applications that will change the way you make use of Linux. The modem
setup section will help you get your modem working under Linux,
and the StarOffice-miniHOWTO will help fix Libc problems when 
installing Staroffice under Linux.

<p>If you have a chance, visit "Linux - THE POWER OS" at:
<a href="http://www.jnpcs.com/mkb/linux/">http://www.jnpcs.com/mkb/linux</a>
or
<a href="http://www.mkb.home.ml.org/linux/">http://www.mkb.home.ml.org/linux/</a>

<p>For more information write to 
<a href="mailto:mkb@poboxes.com">mkb@poboxes.com</a>

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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
June 1997 PowerPC Project
</H3>
<P> 
  
The Linux for PowerPC project announces its June 1997 CD of the Linux
operating system for the PowerPC. The CD is the second release following
the first one in January 1997. The June release is significantly faster
and has improved memory handling. It now contains over 400 different
software packages and everything needed to install and run Linux on any
of the PowerPC machines manufactured by Be Inc, Apple Computer, IBM,
Motorola and most other manufactures of PowerPC computers. Go to
<a href="http://www.linuxppc.org/">http://www.linuxppc.org/</a> to order your own CD or to find out more
about


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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Sunsite Link
</H3> 
<P> 


Check out
<a href="http://sunsite.unc.edu/paulc/liv">http://sunsite.unc.edu/paulc/liv</a>

<p>This lets you view the contents of SunSITE's /pub/Linux/Incoming 
directory, but extracts all the descriptions out of the map files (.lsm) 
and displays them in a table. It has links for 24 hours/7 day/14 day and 
28 day lists.

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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
GLUE Announcement
</H3> 
<P> 


Caldera has announced that it will give a free copy of OpenLinux
Lite on CD-ROM for each group member of GLUE. Caldera, Inc. 
(http://www.caldera.com/) is located in Provo, Utah. For full details on
GLUE and to register your group as a member, visit the GLUE web site at
<a href="http://www.ssc.com/glue/">http://www.ssc.com/glue</a>.




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

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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Woven Goods for LINUX
</H3>
<P> 


World-Wide Web (WWW) Applications and Hypertext-based Information about
LINUX. It is ready configured for the Slackware Distribution and
currently
tested with Version 3.2 (ELF). The Power Linux LST Distribution contains
this collection as an integral part with some changes.

<p>The Collection consists of five Parts, so it can be used for multiple
purposes depending on the installed Parts:

<p>The five Parts of Woven Goods for LINUX are:
<ol>
<li>World-wide Web Browser
The World-wide Web Browser from Netscape for X11 and Lynx for
ASCII terminals.

<li>LINUX Documents
The LINUX Documents contain the HTML Pages of Woven Goods for
LINUX,
FAQs, HOWTOs, LDP Documents and more in different formats like
Hypertext Markup Language (HTML), Text, PDF and Postscript.

<li>World-wide Web Server
The Apache World-wide Web Server with additional CGI Scripts for
Statistics, viewing MAN Pages and Counters, Glimpse Search Engine
and
the Documentation for Apache Server. Furthermore the Apache Module
PHP/FI as well as the BSCW system and the necessary Python
interpreter
are included.

<li>Hypertext Markup Language
The HTML-Editor asWedit allows the creation of HTML-Pages.
Some Graphic Tools allow the creation and modification of GIFs.

<li>External Viewers
The external Viewers are nessesary to present Information which can
not
be viewed by the WWW Browsers. Only the usefull Viewers (xanim,
acroread, ia, raplayer, str, splay, swplayer, vrweb, etc.) are
included
which are not part of the Slackware Distribution (xv, ghostview,
showaudio).
</ol>
<p>Availabilty & Download

<p>Woven Goods for LINUX is available via anonymous FTP from:

<a href="ftp://ftp.fokus.gmd.de/pub/Linux/woven">ftp://ftp.fokus.gmd.de/pub/Linux/woven</a>

<p>Installation

<p>For Installation Instructions see the Installation Guide:

<a href="ftp://ftp.fokus.gmd.de/pub/Linux/woven/README.install">ftp://ftp.fokus.gmd.de/pub/Linux/woven/README.install</a> or
<a href="http://www.fokus.gmd.de/linux/install.html">http://www.fokus.gmd.de/linux/install.html</a>


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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
Qbib Version 1.1
</H3>
<P> 

Qbib is a bibliography management system based on Qddb. Features include
the Qddb database, import BibTeX .bib giles, custom export options and a
friendly user-interface just to name a few.

<p>For more information about Qbib (including an on-line manual),
see

<a href="http://www.hsdi.com/qddb/commercial">http://www.hsdi.com/qddb/commercial</a>

<p>To order Qbib or other Qddb products/services, visit the Qddb store:

<a href="http://www.hsdi.com/qddb/orders">http://www.hsdi.com/qddb/orders</a>


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

<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
WipeOut Version 1.07
</H3>
<P> 

WipeOut is an integrated development environment for C++ and Java. It
contains project manager, class browser, make tool, central text editor
with syntax highlighting and a debugger frontend. WipeOut is available
for Linux and SunOS/Solaris both under XView.

<p>For the new release we have especially extended the class browser and
the text editor. 
Check out the changes list for all new features and fixed bugs.

<p>You can obtain the software and documentation at:
<a href="http://www.softwarebuero.de/index-eng.html">http://www.softwarebuero.de/ndex-eng.html</a>



<P> <hr> <P> 
<!--================================================================-->
<center>Published in Linux Gazette Issue 19, July 1997</center>
<P> <HR> <P>
<!-- =================================================================== -->
<A HREF="./index.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_tips19.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<A HREF="./lg_answer19.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; 1997 Specialized Systems Consultants, Inc. </H5> 
<P> 
<H4>&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>
<P> <hr> <P> 

<!-- ===============================================================  -->
<center>
<H1><A NAME="answer">
<img src="../gx/ans.gif" alt="" border=0 align=middle>
The Answer Guy
<img src="../gx/ans.gif" alt="" border=0 align=middle>
</A></H1> <BR>
<H4>By James T. Dennis,
<a href="mailto:jimd@starshine.org">jimd@starshine.org</a><BR> 
Starshine Technical Services, <A HREF="http://www.starshine.org/">
http://www.starshine.org/</A> </H4> 
</center>

<p><hr><p>
<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_answer19.html#mount">Mounting Disks Under Red Hat 4.0</a>
<li><a HREF="./lg_answer19.html#lilo">Weird LILO Problems</a>
<li><a HREF="./lg_answer19.html#file">Running FileRunner</a>
<li><a HREF="./lg_answer19.html#xlt">Adding Linux To a DEC XLT-366</a>
<li><a HREF="./lg_answer19.html#disk">Disk Support</a>
<li><a HREF="./lg_answer19.html#legib">Legibility</a>
<li><a HREF="./lg_answer19.html#metro">MetroX Problems</a>
<li><a HREF="./lg_answer19.html#install">Installing Linux</a>
<li><a HREF="./lg_answer19.html#menus">Adding Programs to the Pull Down
Menus</a>
<li><a HREF="./lg_answer19.html#skip">Linux Skip</a>
<li><a HREF="./lg_answer19.html#active">ActiveX for Linux</a>
<li><a HREF="./lg_answer19.html#bash">Bash String Manipulations</a>
<li><a HREF="./lg_answer19.html#blink">Blinking Underline Cursor</a>
<li><a HREF="./lg_answer19.html#files">File Permissions</a>
</ul>

<p><hr><p> 
<!--================================================================-->

<a name="mount"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Mounting Disks Under Red Hat 4.0
</h3>
<P> <B> 
From: Bigby, Bruce W. <a href="mailto:bbigby@frontiernet.net">bbigby@frontiernet.net</a>

<p>Hi.  The RedHat 4.0 control-panel has an interesting problem.  I have
two entries in my /etc/fstab file for my SCSI Zip Drive--one for
mounting a Win95 Zip removable disk and another for mounting a removable
Linux ext2fs disk--

<pre>/dev/sda4 /mnt/zip   ext2fs rw,noauto 0 0
/dev/sda4 /mnt/zip95 vfat   rw,noauto 0 0</pre>

I do this so that I can easily mount a removable zip disk by supplying
only the appropriate mount point to the mount command--for example, by
supplying

<pre>mount /mnt/zip</pre>

when I want to mount a Linux ext2fs disk, and

<pre>mount /mnt/zip95</pre>

when I want to mount a Windows 95 Zip disk.

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Yes, 

	I do this all the time (except that I use the command
	line for all of this -- and vi to edit my fstab).  I also
	add the "user" and a bunch of "nosuid,nodev,..." parameters
	to my options field.  This allows me or my wife (the only 
	two users with console access to the machine) to mount a
	new magneto optical, floppy, or CD without having to 
	'su').
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
Unfortunately, the control-panel's mount utility treats the two lines as
duplicates and removes the additional lines that begin with /dev/sda4. 
Consequently, the control panel's mount utility only sees the first
line,
 
<pre>/dev/sda4 /mnt/zip   ext2fs rw,noauto 0 0</pre>

In addition, the utility also modifies my original /etc/fstab.  I do not

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Bummer!  Since I don't use the GUI controls I never noticed
	that.
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
desire this behavior.  I prefer that the utility be fairly dumb and not
modify my original /etc/fstab.  Has RedHat fixed this problem in 4.2? 


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">
	I don't know.  There are certainly enough other fixes and
	upgrades to be worth installing it (although -- with a .1 
	version coming out every other month -- maybe you want to 
	just download selective fixes and wait for the big 5.0).

<p>	(My current guess -- totally unsubstantiated by even 
	an inside rumor -- is that they'll shoot for integrating
	glibc -- the GNU C library -- into their next release.
	That would be a big enough job to warrant a jump in 
	release numbers).
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">

Can I obtain the sources and modify the control-panel's mount utility so
that it does not remove, "so-called," duplicates?


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Last I heard the control-panel was all written in Python
	(I think they converted all the TCL to Python by 4.0)
	In any event I pretty sure that it's TCL, Python and Tk
	(with maybe some bash for some parts).  So you already have
	the sources.


<p>	The really important question here is why you aren't asking
	the support team at RedHat (or at least posting to their
	"bugs@" address).  This 'control-panel' is certainly 
	specific to Red Hat's package.

<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
 
<p>According to the bash man page, bash is supposed to source the .profile,
or .profile_bash, in my home directory.  However, when I login, bash
does not source my .profile.  How can I ensure that bash sources the
.profile of my login account--$HOME/.profile?


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">


	The man page and the particular configuration (compilation)
	options in your binary might not match.

<p>	You might have an (empty?) ~/.bash_profile or ~/.bash_login
	(the man page looks for these in that order -- with .profile
	being the last -- and only it sources the first of them that 
	it finds).

<p>	You might have something weird in your /etc/profile or
	/etc/bashrc that's preventing your ~/.bash_* or ~/.profile
	from being sourced.

<p>	Finally you might want to double check that you really are 
	running bash as your login shell.  There could be all sorts
	of weird bugs in your configuration that effectively start
	bash and fail to signal to it that this is a "login" shell.

<p>	Normally login exec()'s bash with an "ARG[0]" of "-bash"
	(preceding the name with a dash).  I won't get into the 
	gory details -- but if you were logging in with something that
	failed to do this: bash wouldn't "know" that it was a login
	shell -- and would behave as though it were a "secondary"
	shell (like you invoked it from your editor)).

<p>	If all else fails go over to prep.ai.mit.edu and grab the
	latest version of the GNU bash sources.  Compile them
	yourself.
<p>
--
Jim 




<p><hr><p> 
<!--================================================================-->

<a name="lilo"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Weird LILO Problem
</h3>
<P> <B> 
From: David Runnels <a href="mailto:david_runnels@smb.com">david_runnels@smb.com</a>

<p>Hi Jim. I read your column in the Linux Gazette and I have a question. (If I
should have submitted it some other way I apologize.)
</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">
 
	I recommend using the tag@starshine.org address for now.
	At some point I hope to have SSC set up a tag@gazette.ssc.com
	address -- or maybe get linux.org to give me an account and 
	set up some custom mail scripts.


<p><b>
<img align=bottom alt=" " src="../gx/ques.gif">
I've been using Linux casually for the last couple of years and several
months ago I installed RedHat 4.0 on the second IDE drive of a Win95
system. Though I've used System Commander in the past I don't like
using it with Win95 so I had the RedHat install process create a boot
floppy. This has always worked fine, and I made a second backup floppy
using dd) which I also made sure booted fine.


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	This probably isn't really a "boot" floppy.  It sounds 
	like a "lilo" floppy to me.  The difference is that a 
	boot floppy has a kernel on it -- a "lilo" floppy just has
	the loader on it.

<p>	The confusing thing about Linux is that it can be 
	booted in so many ways.  In a "normal" configuration
	you have Lilo as the master boot program (on the first
	hard drive -- in the first sector of track 0 -- with
	the partition table).  Another common configuration places
	lilo in the "superblock" (logical boot record) of the 
	Linux "root" partition (allowing the DOS boot block,
	or the OS/2 or NT boot manager -- or some third party
	package like System Commander) to process the partition
	table and select the "active" partition -- which *might*
	be the Linux root partition.

<p>	Less common ways of loading Linux:  use LOADLIN.EXE
	(or SYSLINUX.EXE) -- which are DOS programs that can 
	load a Linux kernel (kicking DOS out from under them
	so to speak), put Lilo on a floppy (which is otherwise
	blank) -- or on a none Linux boot block (which sounds
	like your situation).

<p>	Two others:  You can put Lilo on a floppy *with* a 
	Linux kernel -- or you can even write a Linux kernel
	to a floppy with no lilo.  That last option is rarely
	used.

<p>	The point of confusion is this:  LILO loads the Linux
	kernel using BIOS calls.  It offers one the opportunity
	to pass parameters to the kernel (compiled into it's 
	boot image via the "append" directive in /etc/lilo.conf --
	or entered manually at boot time at the lilo prompt).

<p>	Another source of confusion is the concept that LILO 
	is a block of code and data that's written to a point
	that's outside the filesystems on a drive -- /sbin/lilo
	is a program that writes this block of boot code according
	to a set of directives in the /etc/lilo.conf.  It's best
	to think of the program /sbin/lilo as a "compiler" that
	"compiles" a set of boot images according to the
	lilo.conf and writes them to some place outside of your
	filesystem.

<p>	Yet another source of confusion is that the Linux
	kernel has a number of default parameters compiled into
	it.  These can be changed using the 'rdev' command
	(which was originally used to set the "root device"
	flags in a kernel image file).  'rdev' basically 
	patches values into a file.  It can be be used to set
	the "root device," the "initial video mode" and a 
	number of other things.  Some of these settings can
	be over-ridden via the LILO prompt and append lines.
	LOADLIN.EXE can also pass parameters to the kernel that
	it loads.

<p>	There's a big difference between using a kernel image written
	directly on a floppy -- and a LILO that's built to load an 
	image that's located on a floppy filesystem (probably minix 
	or ext2fs).  With LILO the kernel must be located on some
	device that is accessible with straight BIOS calls.  

<p>	This usually prevents one from using LILO to boot off of a 
	third IDE or SCSI disk drive (since most systems require a 
	software driver to allow DOS or other OS' to "see" these 
	devices).  I say "usually" because there are some BIOS' and
	especially some BIOS extensions on some SCSI and EIDE 
	controllers that may allow LILO to access devices other than
	the first two floppies and the first two hard drives.  However,
	those are rare.  Most PC hardware can only "see" two floppy
	drives and two hard drives -- which must be on the same 
	controller -- until an OS loads some sort of drivers.

<p>	In the case where a kernel is directly located on the 
	raw floppy -- and in the case where the kernel is 
	located on the floppy with LILO -- the kernel has the 
	driver code for your root device (and controllers) built
	in.  (There are also complex new options using 'initrd'
	-- an "initial RAM disk" which allows a modular kernel
	to load the drivers for it's root devices.

<p>	Yet another thing that's confusing to the DOS user -- and 
	most transplants from other forms of Unix -- is that the 
	kernel doesn't have to be located on the root device.  In 
	fact LOADLIN.EXE requires that the kernel be located on 
	a DOS filesystem.

<p>	To make matters more complicated you can have multiple
	kernels on any filesystem, any of them might use any
	filesystem as their root device and these relationships
	(between kernel and root device/filesystem can be set
	in several ways -- i.e. by 'rdev' or at compile time,
	vs. via the LOADLIN or LILO command lines).

<p>	I recommend that serious Linux users reserve a small
	(20 or 30 Mb) partition with just a minimal installation
	of the root/base Linux software on it.  This should be
	on a separate device from your main Linux filesystems.

<p>	Using this you have an alternative (hard drive based)
	boot method which is much faster and more convenient than
	digging out the installation boot/root floppies (or having 
	to go to a working machine and build a new set!).   I recommend
	the same thing for most Solaris and FreeBSD installations.
	If you have a DOS filesystem on the box -- at least stash a 
	copy of LOADLIN.EXE and a few copies of your favorite kernels
	in C:\LINUX\ (or wherever).

<p> 	Now that more PC SCSI cards support booting off of CD-ROM's
	(a feature that's been long overdue!) you can get by 
	without heeding my advice -- IF YOU HAVE SUCH A CONTROLLER
	AND A CD TO MATCH. 

<p>		(Incidentally -- I found out quite by 
		accident that the Red Hat 4.1 CD is "bootable"
		on Adaptec 2940 controllers -- if you have the
		Adaptec configured to allow it.  I've also heard
		that the NCR SymBIOS PCI controller supports this
		-- though I haven't tested that yet).

<p>	In any event we should all make "rescue disks" -- 
	unfortunately these are trickier than they should be.
	Look for the Bootdisk HOWTO for real details about this.

<p><b>
<img align=bottom alt=" " src="../gx/ques.gif">

About a week ago I put the Linux floppy in the diskette drive, reset
the machine and waited for the LILO prompt. Everything went fine, but
all I got were the letters LI and everything stopped. I have tried
several times, using the original and the backup diskette, with the
same results.


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Did you add a new drive to the system?

<p><b>
<img align=bottom alt=" " src="../gx/ques.gif">

I have done nothing (that I can think of!) to my machine and I'm at a
loss as to what might be causing this. Just to ensure that the floppy
drive wasn't acting funny, I've booted DOS from it and that went fine.


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	When you booted DOS where you able to see the drive?

	I'd get out your installation floppy (or floppies --
	I don't remember whether Red Hat 4.0 had a single
	floppy system or not -- 4.1 and 4.2 only require one
	for most hardware).  Boot from that and choose "rescue"
	or switch out of the installation script to a shell
	prompt.  You should then be able to attempt mounting
	your root filesystem.

<p>	If that fails you can try to 'fsck' it.  After that
	it's probably a matter of reinstallation and restoring
	from backups.

<p><b>
<img align=bottom alt=" " src="../gx/ques.gif">

Any ideas you have would be appreciated. Thanks for your time.
<p>Dave Runnels 
</B>

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

Glad I could help.
<p><hr><p> 
<!--================================================================-->

<a name="file"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Running FileRunner
</h3>
<P> <B> 

David E. Stern <a href="mailto:kotsya@u.washington.edu">kotsya@u.washington.edu</a> 

I wanted to let you know that you were right about relying too heavily
on rpm.  In the distant past, I used file text-based file compression
utilities, so I tried it again and tarballs are actually quite nice.  I
also found that rpm --nodeps will help.  Tarballs are also nice because
not all apps are distributed with rpm. (bonus! :-)  I'm also told that
multiple versions of tcl/tlk can peacably coexist, although rpm won't
allow it by default.  Another ploy with rpm which I didn't see
documented was that to avoid circular dependencies, update multiple rpms
at the same time; i.e.: rpm -Uvh app1.rpm app2.rpm app3.rpm .  Another
thing I learned about was that there are some non-standard (contributed)
libraries that are required for certain apps, like afio and xpm.  Thanks
for the great ideas and encouragement.
  
<p>The end goal: to install FileRunner, I simply MUST have it! 
My intermediate goal is to install Tcl/Tk 7.6/4.2, because FileRunner
needs these to install, and I only have 7.5/4.1 . However, when I try to
upgrade tcl/tlk, other apps rely on older tcl/tk libraries, at least that's
what the messages allude to:
 
<pre>libtcl7.5.so is needed by some-app
libtk4.1.so is needed by some-app</pre>
 
<p>(where some-app is python, expect, blt, ical, tclx, tix, tk, tkstep,...)
 
<p>I have enough experience to know that apps may break if I upgrade the
libraries they depend on. I've tried updating some of those other apps,
but I run into further and circular dependencies--like a cat chasing it's
tail. 
 
<p>In your opinion, what is the preferred method of handling this scenario?
I must have FileRunner, but not at the expense of other apps.

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	It sounds like you're relying too heavily on RPM's.
 	If you can't afford to risk breaking your current stuff,
 	and you "must" have the upgrade you'll have to do some
 	stuff beyond what the RPM system seems to do.
 
 <p>	One method would be to grab the sources (SRPM or tarball)
 	and manually compile the new TCL and tk into /usr/local
 	(possibly with some changes to their library default 
 	paths, etc).  Now you'll probably need to grab the 
 	FileRunner sources and compile that to force it to use the
 	/usr/local/wish or /usr/local/tclsh (which, in turn, will
 	use the /usr/local/lib/tk if you've compiled it all right).
 
 <p>	Another approach is to set up a separate environment 
 	(separate disk, a large subtree of an existing disk
 	-- into which you chroot, or a separate system entirely)
 	and test the upgrade path where it won't inconvenience you
 	by failing.  A similar approach is to do a backup, test your
 	upgrade plan -- (if the upgrade fails, restore the backup).
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
Thanks, -david

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">
 
 	You're welcome.
 	This is a big problem in all computing environments (and
 	far worse in DOS, Windows, and NT systems than in most 
 	multi-user operating systems.  At least with Unix you have
 	the option of installing a "playpen" (accessing it with the
 	chroot call -- or by completely rebooting on another partition
 	if you like).  
 
 <p>	Complex interdepencies are unavoidable unless you require that
 	every application be statically linked and completely self-sufficient
 	(without even allowing their configuration files to be separate.
 	So this will remain an aspect of system administration where
 	experience and creativity are called for (and a good backup
 	may be the only thing between you and major inconvenience).
<p>
--
Jim 


<p><hr><p> 
<!--================================================================-->

<a name="xlt"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Adding Linux t a DEC XLT-366
</h3>
<P> <B> 
From: Alex Pikus <a href="mailto:alex@webexpress.net">alex@webexpress.net</a>

<p>I have a DEC XLT-366 with NTS4.0 and I would like to add Linux to it.  I
have been running Linux on an i386 for a while.

<p>I have created 3 floppies:
<ul>
<li>Linload.exe and MILO (from DEC site)
<li>Linux kernel 2.0.25
<li>RAM disk
</ul>
<p>I have upgrade AlphaBIOS to v5.24 (latest from DEC) and added a Linux
boot option that points to a:\

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	You have me at a severe disadvantage.   I've never
	run Linux on an Alpha.

	So I'll have to try answering this blind.
<P><B> 
<img align=bottom alt=" " src="../gx/ques.gif">
When I load MILO I get the "MILO>" prompt without any problem.  When I
do <pre>show</pre> or <pre>boot ...</pre> at the MILO I get the following result ...

<p>SCSI controller gets identified as NCR810 on IRQ 28 ... test1 runs and
gets stuck "due to a lost interrupt" and the system hangs ...

<p>In WinNTS4.0 the NCR810 appears on IRQ 29.


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	My first instinct is the ask if the autoprobe code in
	Linux (Alpha) is broken.  Can you use a set of command-line
	(MILO) parameters to tell pass information about your 
	SCSI controller to your kernel?  You could also see about
	getting someone else with an Alpha based system to compile
	a kernel for you -- and make sure that it has values in 
	it's scsi.h file that are appropriate to your system -- as
	well as insuring that the corrective drivers are built in.
<P><B> 
<img align=bottom alt=" " src="../gx/ques.gif">
How can make further progress here?

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">


	It's a tough question.  Another thing I'd look at 
	is to see if the Alpha system allows booting from a
	CD-ROM.  Then I'd check out Red Hat's (or Craftworks')
	Linux for Alpha CD's -- asking each of them if they 
	support this sort of boot.

<p>	(I happened to discover that the Red Hat Linux 4.1 (Intel)
	CD-ROM was bootable when I was working with one system that 
	had an Adaptec 2940 controller where that was set as an 
	option.  This feature is also quite common on other Unix
	platforms such as SPARC and PA-RISC systems -- so it is 
	a rather late addition to the PC world).
 
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
Thanks!<br>
Alex.
</B>

<p><hr><p> 
<!--================================================================-->

<a name="disk"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Disk Support
</h3>
<P> <B> 

From: Andrew Ng <a href="mailto:lulu@asiaonline.net">lulu@@asiaonline.net</a>

 
<p>Dear Sir,
 
I have a question to ask:	
Does Linux support disks with density
2048bytes/sector?


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Apparently not.

	This is a common size for CD-ROM's -- but it not
	at all normal for any other media.
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
I have bought a Fujitsu MO drive which support up to 640MB MO disks with
density 2048bytes/sector. The Slackware Linux system does not support
access to disks with this density. Windows 95 and NT support this density
and work very well. Is there any version of Linux which support
2048bytes/sector? If not, is there any project working on that?


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">
	
	I believe the drive ships with drivers for DOS, Windows,
	Windows '95 and NT.  The OS' don't "support it"  the manufacturer
	supports these OS'.  

<p>	Linux, other the other hand, does support most hardware 
	(without drivers being supplied by the hardware manufacturers).
	Granted we get some co-operation from many manufacturers.  
	Some even contribute code to the main kernel development.

<p>	We prefer the model where the hardware manufacturer releases
	free code to drive their hardware -- whether that code is 
	written for Linux, FreeBSD or any other OS.  Release it once
	and all OS' can port and benefit by it.

<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
I hear a lot of praise about Linux. Is Linux superior to Windows NT in all
aspect?


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	That's controversial question.  Any statement like:

		Is "foo" superior to "bar" in all aspects?

	... is bound to cause endless (and probably acrimonious)
	debate.

<p>	Currently NT has a couple of advantages:  Microsoft is a 
	large company with lots of money to spend on marketing and
	packaging.  They are very aggressive in making "partnerships"
	and building "strategic relationships" with the management of
	large companies.  

<p>	Microsoft has slowly risen to dominance in the core applications 
	markets (word processors, spreadsheets, and databases).  Many 
	industry "insiders" (myself included) view this as being the
	result of "trust"-worthy business practices (a.k.a. "verging
	on monopolistic").  

<p>	In other words may people believe that MS Word isn't the
	dominant word processor because it is technically the superior
	product -- but because MS was able to supply the OS features
	they needed when they wanted (and perhaps able to slip the
	schedules of certain releases during the critical development
	phases of their competitors).  

<p>	The fact that the OS, and the principal programming tools, 
	and the major applications are all from the same source has
	generated a amazing amount of market antagonism towards 
	Microsoft.  (Personally I think it's a bit extreme -- but
	I can understand how many people feel "trapped" and understand
	the frustration of thinking that there's "no choice").

<p>	Linux doesn't have a single dominant applications suite.
	There are several packages out there -- Applixware, StarOffice,
	Caldera's Internet Office Suite.  Hopefully Corel's Java Office
	will also be a useful to Linux, FreeBSD and other users
	(including Windows and NT).

<p>	In addition to these "suites" there are also several individual
	applications like Wingz (a spreadsheet system), Mathematica,
	(the premier symbolic mathematics package), LyX (the free word
	processor -- LaTeX front-end -- that's under development),
	Empress, /rdb (database systems), Flagship and dbMan IV
	(xBase database development packages), Postgres '95, mSQL,
	InfoFlex, Just Logic's SQL, MySQL (database servers) and a 
	many more.  (Browse through the Linux Journal _Buyer's_Guide_
	for a large list -- also waltz around the web a bit).

<p>	Microsoft's SQL Server for NT is getting to be pretty good.
	Also, there are alot of people who program for it -- more 
	than you'll find for InfoFlex, Postgres '95 etc.  A major
	problem with SQL is that the servers are all different enough
	to call for significant differences in the front end applications
	-- which translates to lots of programmer time (and money!)  if 
	you switch from one to another.  MS has been very successful
	getting companies to adopt NT Servers for their "small" SQL projects
	(which has been hurting the big three -- Oracle, Sybase and 
	Informix).  Unfortunately for Linux -- database programmers and
	administrators are very conservative -- they are a "hard sell."

<p>	So Linux -- despite the excellent stability and performance --
	is not likely to make a significant impact as a database server
	for a couple of years at least.  Oracle, Sybase and Informix
	have "strategic relationships" with SCO, Sun, and other Unix
	companies.  

<p>	The established Unix companies viewed Linux as a threat until
	recently. They now seem to see it as a mixed blessing.  On the 
	up side Linux has just about doubled the number of systems
	running Unix-like OS', attracted somewhere between two and
	eight million new converts away from the "Wintel" paradigm,
	and even wedged a little bit of "choice" into the minds of 
	the industry media.  On the down side SCO can no longer charge
	thousands of dollars for the low end of their systems.  This 
	doesn't really affect Sun, DEC, and HP so much -- since they are
	primarily hardware vendors who only got into the OS business to 
	keep their iron moving out the door.  SCO and BSDI have the 
	tough fight since the bulk of their business is OS sales.

<p>	(Note: BSDI is *not* to be confused with the FreeBSD, NetBSD,
	OpenBSD, or 386BSD (Jolix) packages.  They are a company that
	produces a commercial Unix, BSDI/OS.  The whole Free|Net|Open-BSD
	set of programming projects evolved out of the work of 
	Mr. and Mrs. Jolitz -- which was called 386BSD -- and I call
	"Jolix" -- a name with I also spotted in the _Using_C-Kermit_
	book from Digital Press).

<p>	So there don't seem to be any Oracle, SyBase, or Informix 
	servers available for Linux.  The small guys like JustLogic
	and InfoFlex have an opportunity here -- but it's a small
	crack in a heavy door and some of them are likely to get their
	toes broken in the process.

<p>	Meanwhile NT will keep getting market share -- because their
	entry level still a tiny fraction of the price of any of the
	"big guys."

<p>	I've just barely scratched the tip of the iceberg (to thoroughly
	blend those metaphors).  There are so many other aspects of
	comparison it's hard to even list them -- let alone talk about
	who Linux and NT measure up to them.

<p>	It's also important to realize that it's not just NT vs.
	Linux.  There are many forms of Unix -- most of them are 
	quite similar to Linux from a user and even from an 
	administrators point of view.  There are many operating systems
	that are vastly different than either NT (which is supposed to
	be fundamentally based on VMS) and the various Unix variants.

<p>	There are things like Sprite (a Berkeley research project),
	Amoeba and Chorus (distributed network operating systems),
	EROS, and many others.

<p>	Here's a link where you can find out more about operating 
	systems in general:

<a href="http://www.yahoo.com/text/Computers_and_Internet/Operating_Systems/Research/">Yahoo!
Computers and Internet: Operating Systems: Research</a>
<p>
--
Jim 


<p><hr><p> 
<!--================================================================-->

<a name="legib"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Legibility
</h3>
<P> <B> 

From: Robert E Glacken <a href="mailto:glacken@bc.seflin.org">glacken@bc.seflin.org</a>

<p>I use a 256 shade monochrome monitor. The QUESTIONS are invisible.

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	What questions?
	What OS?
	What GUI? (I presume that the normal text is visible in
	text mode so you must be using a GUI of some sort)?

<p>	I wouldn't expect much from a monochrome monitor set to 
	show 256 (or even 127) shades of grey.  That's almost no
	one in the PC/Linux world that uses those -- so there almost
	no one that tunes their color tables and applications to 
	support it.

<p>	Suggestions -- get a color screen -- or drop the GUI and 
	use text mode.

<p>
--
Jim 

<p><hr><p> 
<!--================================================================-->

<a name="metro"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
MetroX Problems
</h3>
<P> <B> 


From: Allen Atamer <a href="mailto:atamer@ecf.toronto.edu">atamer@ecf.toronto.edu</a>


<p>I am having trouble setting up my XServer.  Whether or not I use MetroX
or Xfree86 to set it up it's still not working.

<p>When I originally chose metrox to install, i got to the setup screen,
chose my card and resolution, saved and exited.  Then i started up the
xwindows, and my screen loaded the Xserver, but the graphics were all
messed up.  I exited, then changed some settings, and now i can't even
load the xserver.  The Xerrors file says it had problems loading the
'core'.

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Hmm.  You don't mention what sort of video card you're using
	or what was "messed up."  As I've said many times in my 
	column -- I'm not must of an "Xpert" (or much of a "TeXpert"
	for that matter).

<p>	MetroX and XFree86 each have their own support pages
	on the web -- and there are several X specific newsgroups
	where you'd find people who are much better with X than I.

<p>	Before you go there to post I'd suggest that you type up
	the type of video card and monitor you have in excruciating
	detail -- and make sure you go through the X HOWTO's and
	the Red Hat manual.  Also be sure to check the errata 
	page at Red Hat (http://www.redhat.com/errata.html) --
	this will let you know about any problems that were discovered
	after the release of 4.1.

<p>	One other thing you might try is getting the new version
	(4.2 -- Biltmore) -- and check it's errata sheet.  You can 
	buy a new set of CD's (http://www.cheapbytes.com is one
	inexpensive source) or you can use up a bunch of bandwidth
	by downloading it all.  The middle road is to to download
	just the parts you need.

<p>	I notice (looking at the errata sheets as I type this)
	that XFree86 is up to version 3.3.1 (at least).  This upgrade
	is apparently primarily to fix some buffer overflow (security)
	problems in the X libraries.
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">

By the way, how do I mount what's on the second cd and read it?
(vanderbilt 4.1)


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	First umount the first CD with a command like:

		umount /cdrom
	
	Remove it. 
	Then 'mount' the other one with a command like:

		mount -t iso9660 -o ro /cdrom /dev/scd0

	... where /cdrom is some (arbitrary but extent) mount point
	and /dev/scd0 is the device node that points to your CD drive
	(that would be the first SCSI CD-ROM on your system -- 
	IDE and various other CD's have different device names).

<p>	To find out the device name for your CD use the mount command
	BEFORE you unmount the other CD.  It will show each mounted
	device and the current mount point.

<p>	Personally I use /mnt/cd as my mount point for most CD's.

	I recommend adding an entry to your /etc/fstab file 
	(the "filesystems table" for Unix/Linux) that looks something 
	like this:
<pre>
# /etc/fstab
/dev/scd0      /mnt/cd            iso9660 noauto,ro,user,nodev,nosuid 0 0
</pre>
<p>	This will allow you to use the mount and umount commands
	as a normal user (without the need to su to 'root').

<p>	I also recommend changing the permissions of the mount
	command to something like:

<pre>-rwsr-x---   1 root     console		26116 Jun  3  1996 /bin/mount
</pre>
	(chgrp console `which mount && chmod 4550 `which mount`)

<p>	... so that only members of the group "console" can use the 
	mount command.  Then add your normal user account to that 
	group.

<p>	The idea of all this is to strike a balance between the 
	convenience and reduced "fumblefingers" exposure of running
	the privileged command as a normal user -- and the potential
	for (as yet undiscovered buffer overflows) to compromise the 
	system by "guest" users.

<p>	(I recommend similar procedures for ALL SUID binaries -- but 
	this is an advanced issue that goes *WAY* beyond the scope of
	this question).

<p>	Allen,

	You really need to get a copy of the "Getting Started"
	guide from the Linux Documentation Project.  This can be 
	downloaded and printed (there's probably a copy on your
	CD's) or you can buy the professionally bound editions from
	any of several publishers -- my favorite being O'Reilly &
	Associates (http://www.ora.com).  

<p>	Remember that the Linux Gazette "Answer Guy" is no 
	substitute for reading the manuals and participating in 
	Linux newsgroups and mailing lists.  

<p>
--
Jim 

<p><hr><p> 
<!--================================================================-->

<a name="install"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Installing Linux
</h3>
<P> <B> 

From: Aryeh Goretsky <a href="mailto:aryeh@tribal.com">aryeh@tribal.com</a><br>

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

[ Aryeh, I'm copying my Linux Gazette editor on this since I've put in 
  enough explanation to be worth publishing it ]
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
.....  why ... don't they just call
it a disk boot sector .  ....

Okay, I've just got to figure out what the problem is, then.  Are
there any utilities like NDD for Linux I can run that will point 
out any errors I made when entering the superblock info?


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">
	
	Nothing with a simple, colorful interface.  'fsck' is
	at least as good with ext2 filesystems as NDD is with
	FAT (MS-DOS) partitions.  However 'fsck' (or, more specifically,
	e2fsck) has a major advantage since the ext2fs was designed
	to be robust.  The FAT filesystem was designed to be simple
	enough that the driver code and the rest of the OS could fit
	on a 48K (yes, forty-eight kilobytes) PC (not XT, not AT, and
	not even close to a 386).  So, I'm not knocking NDD when I 
	say that fsck works "at least" as well.

<p>	However, fsck doesn't touch your MBR -- it will
	check your superblock and recommand a command to restore
	the superblock from one of the backups if yours is damaged.
	Normally the newfs (like MS-DOS' FORMAT) or mke2fs
	(basically the same thing) will scatter extra copies of the
	superblock every 8K sectors across the filesystem (or so).
	So there are usually plenty of backups.
	
<p>	So, usually, you'd just run fdisk to check your 
	partitions and /sbin/lilo to write a new MBR (or other
	boot sector).  /sbin/lilo will also update its own 
	"map" file -- and may (optionally) make a backup of 
	your original boot sector or MBR.

<p>		(Note:  There was an amusing incident on
		one of the mailing lists or newsgroups -- in which
		a user complained that Red Hat had "infected his
		system with a virus."  It turns out that lilo had moved 
		the existing (PC/MBR) virus from his MBR to a 
		backup file -- where it was finally discovered.
		So, lilo had actually *cured* his system of the 
		virus).

<p>	Actually when you run /sbin/lilo you're "compiling" the
	information in the /etc/lilo.conf file and writing that
	to the "boot" location -- which you specify in the .conf
	file.

<p>	You can actually call your lilo.conf anything you like --
	and you can put it anywhere you like -- you'd just have to
	call /sbin/lilo with a -C switch and a path/file name.
	/etc/lilo.conf is just the built-in default which the -C
	option over-rides.

<p>	Here's a copy of my lilo.conf (which I don't actually use
	-- since I use LOADLIN.EXE on this system).
	As with many (most?) Unix configuration files the comments
	start with hash (#) signs.
<pre>
boot=/dev/hda
# write the resulting boot block to my first IDE hard drive's MBR.
# if this was /dev/hdb4 (for example) /sbin/lilo would write the 
# resulting block to the logical boot record on the fourth partition
# of my second IDE hard drive.   /dev/sdc would mean to write it to
# the MBR of the third SCSI disk.
# /sbin/lilo will print a warning if the boot location is likely to 
# be inaccessible to most BIOS' (i.e. would require a software driver
# for DOS to access it).

## NOTE:  Throughout this discussion I use /sbin/lilo to refer to the 
## Linux executable binary program and LILO to refer to the resulting
## boot code that's "compiled" and written by /sbin/lilo to whatever
## boot sector your lilo.conf calls for.  I hope this will minimize the
## confusion -- though I've liberally re-iterated this with parenthetical
## comments as well.

# The common case is to put boot=/dev/fd0H1440 to specify that the
# resulting boot code should be written to a floppy in the 1.44Mb
# "A:" drive when /sbin/lilo is run.  Naturally this would require
# that you use this diskette to boot any of the images and "other"
# stanzas listed in the rest of this file.  Note that the floppy
# could be completely blank -- no kernel or files are copied to it
# -- just the boot sector!


map=/boot/map
	# This is where /sbin/lilo will store a copy of the map file --
	# which contains the cylinder/sector/side address of the images
	# and message files  (see below)
	# It's important to re-run /sbin/lilo to regenerate the map
	# file any time you've done anything that might move any of 
	# these image or message files (like defragging the disk,
	# restoring any of these images from a backup -- that sort
	# of thing!).


install=/boot/boot.b
	# This file contains code for LILO (the boot loader) -- this is 
	# an optional directive -- and necessary in this case since it 
	# simply specifies the default location.
	
prompt
	# This instructs the LILO boot code to prompt the user for 
	# input.  Without this directive  LILO would just wait
	# upto "delay" time (default 0 tenths of a second -- none)
	# and boot using the default stanza.
	# if you leave this and the "timeout" directives out --
	# but you put in a delay=X directive -- then LILO won't 
	# prompt the user -- but will wait for X tenths of a second
	# (600 is 10 seconds).  During that delay the user can hit a 
	# shift key, or any of the NumLock, Scroll Lock type keys to 
	# request a LILO prompt.

timeout=50
	# This sets the amount of time LILO (the boot code) will 
	# wait at the prompt before proceeding to the default
	# 0 means 'wait forever'

message=/etc/lilo.message
	# this directive tells /sbin/lilo (the conf. "compiler") to 
	# include the contents of this message in the prompt which LILO
	# (the boot code) displays at boot time.  It is a handy place to
	# put some site specific help/reminder messages about what
	# you call your kernels and where you put your alternative bootable
	# partitions and what you're going to do to people who reboot your 
	# Linux server without a very good reason.

other=/dev/hda1
	label=dos
	table=/dev/hda
	# This is a "stanza"
	# the keyword "other" means that this is referring to a non-Linux
	# OS -- the location tells LILO (boot code) where to find the 
	# "other" OS' boot code (in the first partition of the first IDE --
	# that's a DOS limitation rather than a Linux constraint).
	# The label directive is an arbitrary but unique name for this stanza
	# to allow one to select this as a boot option from the LILO 
	# (boot code) prompt.

	# Because it is the first stanza it is the the default OS --
	# LILO will boot this partition if it reaches timeout or is 
	# told not to prompt.  You could also over-ride that using a 
	# default=$labelname$ directive up in the "global" section of the
	# file.

image=/vmlinuz
	label=linux
	root=/dev/sda5
	read-only
	# This is my "normal" boot partition and kernel.
	# the "root" directive is a parameter that is passed to the 
	# kernel as it loads -- to tell the kernel where its root filesystem
	# is located.  The "read-only" is a message to the kernel to initially
	# mount the root filesystem read-only -- so the rc (AUTOEXEC.BAT) 
	# scripts can fsck (do filesystem checks -- like CHKDSK) on it.  
	# Those rc scripts will then normally remount the fs in "read/write" 
	# mode.

image=/vmlinuz.old
	label=old
	root=/dev/sda5
	append= single
	read-only
	# This example is the same except that it loads a different kernel
	# (presumably and older one -- duh!).  The append= directive allows
	# me to pass arbitrary directives on to the kernel -- I could use this
	# to tell the kernel where to find my Ethernet card in I/O, IRQ, and 
	# DMA space -- here I'm using it to tell the kernel that I want to come
	# up in "single-user" (fix a problem, don't start all those networking
	# gizmos) mode.

image=/mnt/tmp/vmlinuz
	label=alt
	root=/dev/sdb1
	read-only

	# This last example is the most confusing.  My image is on some other
	# filesystem (at the time that I run /sbin/lilo to "compile" this 
	# stanza). The root fs is on the first partition of the 2nd SCSI drive.
	# It is likely that /dev/sdb1 would be the filesystem mounted under 
	# /mnt/tmp when I would run /sbin/lilo.  However it's not "required"
	# My kernel image file could be on any filesystem that was mounted
	# /sbin/lilo will warn me if the image is likely to be inaccessible
	# by the BIOS -- it's can't say for sure since there are a lot of 
	# BIOS' out there -- some of the newer SCSI BIOS' will boot off of a 
	# CD-ROM!
</pre>

<p>I hope that helps.  The lilo.conf man page (in section 5) gives
*lots* more options -- like the one I just saw while writing this
that allows you to have a password for each of your images -- or 
for the whole set.  Also there are a number of kernel options
described in the BootPrompt-HOWTO.  One of the intriguing ones is
panic= -- which allows you to tell the Linux kernel how long to 
sit there displaying a kernel panic.  The default is "forever" --
but you can use the append= line in your lilo.conf to pass a 
panic= parameter to your kernel -- telling it how many seconds to 
wait before attempting to reboot.

<p>In the years that I've used Linux I've only seen a couple (like 
two or three) kernel panics (that could be identified as such).  Perhaps
a dozen times I've had a Linux system freeze or go comatose enough that 
I hard reset it.  (Most of those involve very bad hardware IRQ conflicts).
Once I've even tricked my kernel into scribbling garbage all over one of 
my filesystems (don't play with linear and membase in your XConfig file --
and, in particular don't specify a video memory base address that's 
inside of your system's RAM address space).  

<p>So I'm not sure if setting a panic= switch would help much.  I'd be 
much more inclined to get a hardware watchdog timer card and enable
the existing support for that in the kernel.  Linux is the only PC
OS that I know of that comes with this support "built-in"

<p>For those that aren't familiar with them a watchdog timer card is 
a card (typically taking an ISA slot) that implements a simple count-down
and reset (strobing the reset line on the system bus) feature.  This is 
activated by a driver (which could be a DOS device driver, a Netware
Loadable Module, or a little chunk of code in the Linux kernel.  Once 
started the card must be updated periodically (the period is set as
part of the activation/update).  So -- if the software hangs -- the
card *will* strobe the reset line.

<p>(Note: this isn't completely fool-proof.  Some hardware states might
require a complete power cycle and some sorts of critical server failures
will render the systems services unavailable without killing the 
timer driver software.  However it is a good sight better than just
hanging).

<p>These cards cost about $100 (U.S.) -- which is a pity since there's
only about $5 worth of hardware there.  I think most Sun workstations
have this feature designed into the motherboard -- which is what 
PC manufacturers should scramble to do.
<br><hr><p>
 
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
AG

<p>At 11:43 AM 6/10/97 -0700, you wrote:

Subject: Once again, I try to install Linux...
...and fail miserably.
 
This is getting depressing.

Someone wanna explain this whole superblock concept to me?  Use
small words....


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Aryeh,

	Remember master boot records (MBR's)?  Remember "logical"
	boot records -- for volume boot records?

<p>	A superblock is the Unix term for a logical boot record.
	Linux uses normal partitions that are compatible with the
	DOS, OS/2, NT (et al) hard disk partitioning scheme.  

<p>	To boot Linux you can use LILO (the Linux loader) which can
	be written to your MBR (most common), to your "superblock"
	or to the "superblock" of a floppy.  This little chunk of code
	contains a reference (or "map") to the device and logical sector
	of one or more Linux kernels or DOS (or OS/2) bootable partitions.

<p>	There is a program called "lilo" which "compiles" a lilo.conf
	(configuration file) into this LILO "boot block" and puts it
	onto the MBR, superblock or floppy boot block for you.  This is 
	the source of most of the confusion about LILO.  I can create a 
	boot floppy with nothing put this boot block on it -- no 
	kernel, no filesystems, nothing.  LILO doesn't care where I put
	any of my linux kernels -- so long as it can get to it using 
	BIOS calls (which usually limits you to putting the kernel on 
	the one of the first two drives connected to the first drive
	controller on your system).

<p>	Another approach is to use LOADLIN.EXE -- this is a DOS 
	program that loads a Linux (or FreeBSD) kernel.  The advantage
	of this is that you can have as many kernel files as you like, 
	and they can be located on any DOS accessible device (even if you
	had to load various weird device drivers to be able to see that
	device.

<p>	LOADLIN.EXE is used by some CD-ROM based installation packages
	-- avoiding the necessity of using a boot floppy.

<p>	The disadvantages of LOADLIN include the fact that you may have
	loaded some device drivers and memory managers that have re-mapped
	(hooked into) critical BIOS interrupt vectors.  LOADLIN often needs
	a "boot time hardware vector table"  (which it usually writes as
	C:\REALBIOS.INT -- a small hidden/system file).  Creating this file
	involves booting from a "stub" floppy (which saves the table) and 
	rebooting/restarting the LOADLIN configuration to tell it to 
	copy the table from the floppy to your HD.  This must be done whenever
	you change video cards, add any controller with a BIOS extension
	(a ROM) or otherwise play with the innards of your machine.

<p>	Call me and we can go over your configuration to narrow down the
	discussion.  If you like you can point your web browser at 
	www.ssc.com/lg and look for articles by "The Answer Guy" there.
	I've described this a greater length in some of my articles there.

<p>
--
Jim 

<p><hr><p> 
<!--================================================================-->

<a name="menus"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Adding Programs to the Pull Down Menus
</h3>
<P> <B> 

From: Ronald B. Simon <a href="mailto:rbsimon@anet.bna.boeing.com">rbsimon@anet.bna.boeing.com</a><br>

<P>Thank you for responding to my request.
By the way I am using RedHat release 4 and I think TheNextLevel window 
manager.  I did find a .fvwm2rc.programs tucked away in... 


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

Ronald,  
	TheNextLevel is an fvwm derivative.  

<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">

/etc/X11/TheNextLevel/.  I added a define ProgramCM(Title,,,program 
name) and under the start/applications menu I saw Title.  When I put 
the cursor over it and pressed the mouse button, everything froze.  I 
came to the conclusion that I am in way over my head and that I 
probably need to open a window within the program that I am trying to 
execute.  Any way I will search for some 'C' code that shows me how to 
do that.
Thanks again!

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	I forgot to mention that any non X program should be run
	through an xterm.

	This is normally done with a line in your rc file like:

		Exec "Your Shell App" exec xterm -e /path/to/your/app &

	... (I'm using fvwm syntax here -- I'll trust you to translate
	to TNL format).

	Try that -- it should fix you right up.

<p>	Also -- when you think your X session is locked up --
	try the Ctrl-Alt-Fx key (where Fx is the function key
	that corresponds to one of your virtual consoles).
	This should switch you out of GUI mode and into your 
	normal console environment.  You might also try Alt-SysReq
	(Print-Screen on most keyboards) followed by a digit from
	the alphanumeric portion of you keyboard (i.e. NOT from the
	numeric keypad).  This is an alternative binding for VC
	switching that might be enabled on a few systems.

	If all of that fails you can try Ctrl-Alt-Backspace. This 
	should (normally) signal the X server to shutdown.

<p>	Mostly I doubt that your server actually hung.  I suspect
	that you confused it a bit by running a non-X program 
	not "backgrounded" (you DO need those trailing ampersands)
	and failing to supply it with communications channel back to
	X (an xterm).

<p>	Please remember that my knowlege of X is very weak.  I 
	hardly ever use and almost never administer/customize it.
	So you'll want to look at the L.U.S.T. mailing list, or
	the comp.windows.x or (maybe) the comp.os.linux.x (although
	there is nothing to these questions which is Linux specific).

	I looked extensively for information about TheNextLevel
	on the web (in Yahoo! and Alta Vista).  Unfortunately
	the one page that almost all of the references pointed
	to was down

<p>	The FVWM home page is at: 
<a href="http://www3.hmc.edu/~tkelly/docs/proj/fvwm.html">http://www3.hmc.edu/~tkelly/docs/proj/fvwm.html</a>

<p>
--
Jim 

<p><hr><p> 
<!--================================================================-->

<a name="skip"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Linux Skip                    
</h3>
<P> <B> 

From: Jesse Montrose <a href="mailto:jesse@spine.com">jesse@spine.com</a>


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

<I>Time warp:

This message was lost in my drafts folder while I was
looking up some of the information.  As it turns out the
wait was to our advantage.  Read on.</I>
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">
Date: Sun, 16 Mar 1997 13:54:34 -0800

<p>Greetings, this question is intended for the Answer Guy associated with
the Linux Gazette..

<p>I've recently discovered and enjoyed your column in the Linux Gazette,
I'm hoping you might have news about a linux port of sun's skip ip
encryption protocol.

<p>Here's the blurb from skip.incog.com:

  SKIP secures the network at the IP packet level. Any networked
  application gains the benefits of encryption, without requiring
  modification. SKIP is unique in that an Internet host can send an
  encrypted packet to another host without requiring a prior message
  exchange to set up a secure channel. SKIP is particularly well-suited
  to IP networks, as both are stateless protocols. Some of the
  advantages of SKIP include:
<ul>
    <li> No connection setup overhead
    <li> High availability - encryption gateways that fail can reboot and
      resume decrypting packets instantly, without having to
      renegotiate (potentially thousands) of existing connections
    <li> Allows uni-directional IP (for example, IP broadcast via
      satellite or cable)
    <li> Scalable multicast key distribution
    <li> SKIP gateways can be configured in parallel to perform
      instant-failover                                               
</ul>
</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	I heard a bit about SKIP while I was at a recent IETF
	conference.  However I must admit that it got lost in
	the crowd of other security protocols and issues.

<p>	So far I've paid a bit more attention to the Free S/WAN
	project that's being promoted by John Gilmore of the 
	EFF.

	I finally got ahold of a friend of mine (Hugh Daniel --
	one of the architects of Sun's NeWS project -- and 
	well-known cypherpunk and computer security professional)

<p>	He explained that SKIP is the "Secure Key Interchange Protocol"
	-- that is is a key management protocol (incorporated in
	ISAKMP/Oakley).  

<p>	For secure communications you need:
<ul>
<li>		Key management (which -- between strangers 
		 requires some sort of RSA (Public Key) or 
		 Diffie-Hellman key exchange or even some
		 variant of elliptic curve -- from what
		 I've heard).  

<li>		Encrypted Link (which will be built into
		 IPv6 and will be available as IPSec extensions
		 to IPv4 -- using tunnelled interfaces from 
		 what I gather).

<li>		Secure-DNS (this is related to the key management
		 problem -- we need a trustworthy source of 
		 public key information -- Verisign and Thawte
		 offer commercial "Certification Authority" 
		 services -- but the 'net needs something a 
		 bit more open and standards based).

</ul>
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">

My employer is primarily an NT shop (with sun servers), but since I
develop in Java, I'm able to do my work in linux.  I am one of about a
dozen telecommuters in our organization, and we use on-demand ISDN to
dial in directly to the office modem bank, in many cases a long distance
call.


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	I'm finally working on configuring my dial-on-demand ISDN
	line here at my place.  I've had diald (dial-on-demand over
	a 28.8 modem) running for about a month now.  I just want to
	cut down on that dial time.

<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">


We're considering switching to public Internet connections, using skip
to maintain security.  Skip binaries are available for a few platforms
(windows, freebsd, sunos), but not linux.  Fortunately the source is
available (http://skip.incog.com/source.html) but it's freebsd, and I
don't know nearly enough deep linux to get it compiled (I tried making
source modifications).

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">


	If I understand it correctly SKIP is only a small part of 
	the solution.

<p>	Hopefully FreeS/WAN will be available soon.  You can 
	do quite a bit with ssh (and I've heard of people 
	who are experimenting with routing through some 
	custom made tunnelled interface).  FreeBSD and Linux 
	both support IP tunneling now.

<p>	For information on using ssh and IP tunnels to build a 
	custom VPN (virtual private network) look in this
	month's issue of Sys Admin Magazine (July '97).

	(Shameless plug: I have an article about C-Kermit appearing 
	in the same issue).

<p>	Another method might be to get NetCrypto.  Currently the
	package isn't available for Linux -- however McAfee  is 
	working on a port.  Look at http://www.mcafee.com 

<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">

After much time with several search engines, the best I could come up
with was another fellow also looking for a linux version of skip :)

Thanks!
jesse montrose       

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">


<I>	Jesse,

	Sorry I took so long to answer this question.  However,
	as I say, this stuff has changed considerably -- even in 
	the two months between the time I started this draft message
	and now.</I>
<p>
--
Jim 

<p><hr><p> 
<!--================================================================-->

<a name="active"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
ActiveX for Linux      
</h3>
<P> <B> 

From: Gerald Hewes <a href="mailto:hewes@OpenMarket.com">hewes@OpenMarket.com</a>

<p>Jim,

I read your response on ActiveX in the Linux Gazette. 
At <a href="../issue18/lg_answer18.html#active">../issue18/lg_answer18.html#active</a>

<p>Software AG is porting the non GUI portions of ActiveX called DCOM
to Linux. Their US site where it should be hosted appears down
as I write this e-mail message
but there is a link of their home page on a Linux DCOM beta:

<a href="http://www.softwareag.com/">http:/www.sotwareag.com</a>

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">
 
	I beleive the link ought to be 

<a href="http://www.sagus.com/prod-i~1/net-comp/dcom/index.htm">http://www.sagus.com/prod-i~1/net-comp/dcom/index.htm</a>

<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">

As for DCOM, its main value for the Linux community is in making
Microsoft Distributed Object Technology available to the Linux
community. Microsoft is trying to push DCOM over CORBA.


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	I know that MS is "trying to push DCOM over CORBA"
	(and OpenDOC, and now, JavaBeans).  I'm also aware that
	DCOM stands for "distributed component object model" and
	CORBA is the "common object request broker" and SOM is 
	IBM's "system object model" (OS/2).

<p>	The media "newshounds" have dragged these little bones
	around and gnawed on them until we've all seen them.
	Nonetheless I don't see its "main value to the Linux
	community."

<p>	These "components" or "reusable objects" will not make
	any difference so long as significant portions of their
	functionality are tied to specific OS (GUI) semantics.
	However, this coupling between specific OS' has been a 
	key feature of each of these technologies.  

	<p>It's Apple's OpenDoc, IBM's DSOM, and Microsoft's DSOM!

<p>	While I'm sure that each as their merits from the programmer's
	point of view (and I'm in no position to comment on their
	relative technical pros or cons) -- I have yet to see any *benefit*
	from a user or administrative point of view.

<p>	So I suppose the question here becomes:


	<p>	Is there any ActiveX (DCOM) control (component)
		that delivers any real benefit to any Linux user?

		Do any of the ActiveX controls not have a GUI component
		to them?

		What does it mean to make the "non-GUI portions" of
		DCOM available?

		Is there any new network protocol that this gives
		us?  If so, what is that protocol good for?
	
<p>For more information, checkout <a href="http://www.microsoft.com/oledev/">http://www.microsoft.com/oledev</a>

<p>	While I encourage people to browse around -- I think 
	I'll wait until someone can point out one DCOM component,
	one JavaBean, one CORBA object, or one whatever-buzzword-
	you-want-to-call-it-today and can explain in simple "Duh!
	I'm a user!" terms what the *benefit* is.

<p>	Some time ago -- in another venue -- I provided the net
	with an extensive commentary on the difference between
	"benefits" and "features."  The short form is this:

<p>		I benefit is relevant to your customer.  To
		offer a benefit requires that you understand
		your customer.  "Features" bear no relation to
		a customers needs.  However mass marketing 
		necessitates the promotion of features -- since
		the *mass* marketer can't address individual and 
		niche needs.

<p>	Example:  Microsoft operating systems offer a "easy to use 
	graphical interfaces" -- first "easy to use" is highly subjective.
	In this case it means that there are options listed on menus
	and buttons and the user can guess at which ones apply to 
	their need and experiment until something works.  That is a feature
	-- one I personally loathe.  To me "easy to use" means having
	documentation that includes examples that are close to what
	I'm trying to do -- so I can "fill in the blanks"  Next there is
	the ubiquitously touted "GUI."  That's another *feature*.  To 
	me it's of no benefit -- I spend 8 to 16 hours a day looking at 
	my screen.  Text mode screens are far easier on the eyes than
	any monitor in graphical mode.  

<p>	To some people, such as the blind GUI's are a giant step 
	backward in accessibility.  The GUI literally threatens to cut 
	these people off from vital employment resources.

<p>	I'm not saying that the majority of the world should abandon
	GUI's just because of a small minority of people who can't 
	use them and a smaller, crotchety contingent of people like
	me that just don't like them.  I'm merely trying to point
	out the difference between a "feature" and a "benefit."

<p>	The "writing wizards" offered by MS Word are another feature
	that I eschew.  My writing isn't perfect and I make my share
	of typos, as well as spelling and grammatical errors.  However
	Most of what I write goes straight from my fingers to the 
	recipient -- no proofreading and no editing.  When I've 
	experimented with spell checkers and "fog indexes" I've consistently
	found that my discourse is beyond their capabilities -- much too
	specialized and involving far too much technical terminology.
	So I have to over-ride more than 90% of the "recommendations of 
	these tools.

<p>	Although my examples have highlighted Microsoft products we
	can turn this around and talk about Linux' famed "32-bit 
	power" and "robust stability."  These, too are *features*.
	Stability is a benefit to someone who manages a server -- 
	particularly a co-located server at a remote location.  However
	the average desktop applications user could care less about
	stability.  So long as their application manage to autosave
	the last three versions of his/her documents the occasional
	reboot is just a good excuse to go get a cup of coffee.

<p>	Multi-user is a feature.  Most users don't consider this to 
	be a benefit -- and the idea of sharing "their" system with
	others is thoroughly repugnant to most modern computer users.
	On top of that the network services features which implement
	multi-user access to Linux (and other Unix systems) and NT are
	gaping security problems so far as most IS users are concerned.
	So having a multi-user system is not a benefit to must of us.
	This is particularly true of the shell access that most people
	identify as *the* multi-user feature of Unix (as opposed to the
	file sharing and multiple user profiles, accounts and passwords
	that passes for "multi-user" under Windows for Workgroups and 
	NT).

<p>	So, getting back to ActiveX/DCOM -- I've heard of all sorts
	of features.  I'd like to hear about some benefits.  Keep in
	mind that any feature may be a benefit to someone -- so 
	benefits generally have to be expressed in terms of *who*
	is the beneficiary.   

<p>	Allegedly programmers are the beneficiary of all these
	competing component and object schema.  "Use our model
	and you'll be able to impress your boss with glitzy results
	in a fraction of the time it would take to do any programming"
	(that seems to be the siren song to seduce people to any of these).

<p>	So, who else benefits?

<p> 
--
Jim 

<p><hr><p> 
<!--================================================================-->

<a name="bash"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Bash String Manipulations
</h3>
<P> <B> 

From: Niles Mills <a href="mailto:nmills@dnsppp.net">nmills@dnsppp.net</a>

<p>Oddly enough -- while it is easy to redirect the standard error
of processes under bash -- there doesn't seem to be
an easy portable way to explicitly generate message or redirect
output to stderr. The best method I've come up with
is to use the /proc/ filesystem (process table) like so: 

<pre>function error { echo "$*" &gt; /proc/self/fd/2 }</pre> 

<p>Hmmmm...how about good old <pre>&gt;&2</pre>?
<pre>
$ cat example
#!/bin/bash
echo normal
echo error >&2
$ ./example
normal
error
$ ./example > file
error
$ cat ./file
normal
$ bash -version
$ bash -version
bash -version
GNU bash, version 1.14.4(1)
</pre>
<p>Best Regards,
Niles Mills

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	I guess that works.  I don't know why I couldn't come up
	with that on my own.  But my comment worked -- a couple of 
	people piped right up with the answer.
<P><B> 
<img align=bottom alt=" " src="../gx/ques.gif">
Amigo, that little item dates back to day zero of Unix and 
works on all known flavors.  

Best of luck in your ventures.

<p>Niles Mills
</B>
<p><hr><p> 
<!--================================================================-->

<a name="blink"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
Blinking Underline Cursor
</h3>
<P> <B> 


From: Joseph Hartmann <a href="mailto:joeh@arakis.sugar-river.net">joeh@arakis.sugar-river.net</a>

<p>I know an IBM compatible PC is "capable" of having a blinking
underline cursor, or a blinking block cursor.  

<p>My linux system "came" with a blinking underline, which is very
difficult to see.  But I have not been able (for the past several
hours) to make *any* headway about finding out how to change the
cursor to a blinking block.  

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">


	You got me there.  I used to know about five lines of 
	x86 assembly language to call the BIOS routine that sets
	the size of your cursor.  Of course that wouldn't work under
	Linux since the BIOS is mapped out of existence during the 
	trip into protected mode.

<p>	I had a friend who worked with me back at Peter Norton
	Computing -- he wrote a toy program that provided an
	animated cursor -- and had several need animated sequences
	to show with it -- a "steaming coffee cup," a "running man,"
	and a "spinning galaxy" are the ones I remember.

<p>	If you wanted to do some kernel hacking it looks like
	you'd change the value of the "currcons" structure in
	one of the /usr/src/linux/drivers/char/ files -- 
	maybe it would be "vga.c"

<p>	On the assumption that you are not interested in that 
	approach (I don't blame you) I've copied the author of 
	SVGATextMode (a utility for providing text console mode
	access to the advanced features of most VGA video cards)

<p>	Hopefully <a href="mailto:koen.gadeyne@barco.com"> Koen</a> doesn't mind the
	imposition.  Perhaps he can help.

<p>	I've also copied Eugene Crosser and Andries Brouwer 
	the authors of the 'setfont' and 'mapscrn' programs 
	(which don't seem to do cursors -- but do some cool 
	console VGA stuff).  'setfont' lets you pick your
	text mode console font.

<p>	Finally I've copied Thomas Koenig who maintains the 
	Kernel "WishList" in the hopes that he'll add this as
	a possible entry to that.

<p>
Any hints?
Best Regards,


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Joe,

	As you can see I don't feel stumped very often -- and
	now that I think about it -- I think this would be a neat
	feature for the Linux console.  This is especially true since
	the people who are most likely to stay away from X Windows are
	laptop users -- and those are precisely the people who are 
	most likely to need this feature.


<p>
--
Jim 

<p><hr><p> 
<!--================================================================-->

<a name="files"></a>
<h3><img align=bottom alt=" " src="../gx/ques.gif">
File Permissions
</h3>
<P> <B> 

From: John Gotschall <a href="mailto:johng@frugal.com">johng@frugal.com</a>
 
<p>Hi!

I was wondering if anyone there knew how I might actually change the 
file permissions on one of my linux box's DOS partition.


<p>I have Netscape running on one box on our local network, but it can't
write to another linux box's MSDOS filesystem, when that filesystem
is NFS mounted.  It can write to various Linux directories that have
proper permissions, but the MSDOS directory won't keep a permissions
setting, it keeps it stuck as owned by, read by and execute by root.

</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	What you're bumping into is two different issues.  

	The default permissions under which a DOS FAT filesystem 
	is mounted (which is "root.root 755"  that is: owned by
	user root, group root, rwx for owner, r-x for group and
	other).

<p>	You can change that with options to the mount (8) command.
	Specifically you want to use something like:

<pre>mount -t msdos -o uid=??,gid=??,umask=775</pre>

<p>	... where you pick suitable values for the UID and GID from
	your /etc/passwd and /etc/group files (respectively).

<p>	The other culprit in this is the default behavior of NFS.
	For your own protection NFS defaults to using a feature called
	"root squash" (which is not a part of a vegetable).  This
	prevents someone who has root access to some other system
	(as allowed by your /etc/exports file) from accessing your
	files with the same permissions as you're own local root account.

<p>	If you pick a better set of mount options (and put them in your
	/etc/fstab in the fourth field) then you won't have to worry 
	about this feature.  I DO NOT recommend that you over-ride that
	setting with the NFS no_root_squash option in the /etc/exports
	file (see 'man 5 exports' for details).  I personally would 
	*never* use that option with any export that was mounted
	read-only -- not even in my own home between two systems that
	have no live connection to the net!  (I do use the no_root_squash
	option with the read-only option -- but that's a minor risk
	in my case).
<P><B>
<img align=bottom alt=" " src="../gx/ques.gif">

Is there a way to change the MS-DOS permissions somehow?


</B> <P> 
<img align=bottom alt=" " src="../gx/ans2.gif">

	Yes.  See the mount(8) options for uid=, gid=, and umask=.
	I think you can also use the umsdos filesytem type 
	and effectively change the permissions on your FAT based
	filesystem mount points.

<p>	This was a source of some confusion for me and I've never
	really gotten it straight to my satisfaction.  Luckily I find
	that I hardly ever use my DOS partitions any more.


<!--================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, James T. Dennis <BR> 
Published in Issue 19 of the Linux Gazette July 1997</H5></center>

<P> <hr> <P> 
<!--================================================================-->
<A HREF="./index.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_bytes19.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<A HREF="./redhat.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center>
<H2>Adventures in Linux: A Redhat Newbie Boldly Treks Onto the Internet
Frontier</H2>
<H4>By A. Cliff Seruntine,
<a href="mailto:cliff@micronet.net">cliff@micronet.net</a></H4>
</center>
<p><hr>
<p>Ever tried using chat to dial out with your modem? If you have, then
after a few hours of mind-numbing inproductivity you may have found
yourself developing an odd, convulsive twitch and banging your head
against your monitor? Another dozen hours of typing in reworded chat
scripts and you will find yourself wishing the program was a living,
tangible entity so you could delete it once and for all out of the known
universe, and thus gain a measure of relief knowing that you have spared
others the terrible ordeal of sitting in front of their monitors for
perhaps days on end coding pleas for chat to just dial the #!%$
telephone. Truthfully, I have found few programs under any of the
operating systems I am familiar with give me the jitters the way chat
does.


<p>I recall one frosty summer morning (I live in Alaska, so I can honestly
describe some summer mornings as being frosty) when I boldly set off
where no Microsoft hacker has gone before-Linux, the final frontier.
Well, that's a bit extreme. Many Microsoft hackers have seen the light
and made the transition. Anyway, I had decided I was going to resist
Bill Gatus of Borg, and not be assimilated, so I put a new hard drive in
my computer, downloaded Redhat Linux 4.1 from Redhat's ftp server (a two
day ordeal with a 33.6 modem, I might add) and read enough of the
install documentation to get started.

<p>Now friends already familiar with the Linux OS offered to come by and
help me set it up. But I'd have none of it. After all, I owned a
computer and electronics service center. I was the expert. And I was
firmly convinced that the best way to truly learn something is to plow
through it yourself. So I sat down in front of my PC with a cup of tea,
made the two required floppy disks for a hard drive install, and began
my voyage into Linux gurudom.

<p>About 45 minutes later I was surprised to discover that I was done.
Linux had been installed on my system and little fishies were swimming
around my monitor in X windows. Well, I was impressed with myself.
"Hah!" I said to the walls. "They said it couldn't be done. Not without
background. Not without experience. But I've showed them. I've showed
them all! Hah! Hah! Hah!" And then, being the compulsive hacker that I
am, I began to do what comes naturally. I hacked. And being the Net buff
that I am, the first thing I decided to do was get on the Internet
through Linux. And all the stuff I'd read about in my printed copy of
the works of the Linux Documentation Project said that the way to dial
out with Linux was through chat.

<p>Four days later I found myself on my knees in front of my computer,
wearily typing in yet another reworded script for chat, half plea, half
incantation, hoping beyond reason that this time chat would perform the
miracle I had so long sought and just dial the $#%! phone. Yes, I was by
that time a broken man. Worse, a broken hacker. My spirit was crushed.
My unique identity was in peril. I could hear Bill Gatus in the
distance, but getting closer, closer, saying, "Resistance is futile. You
will be assimilated." Resigned to my fate, I wrung my hands, achy and
sore from writing enough script variants to fill a novel the size of War
and Peace, and prepared to type halt and reboot into Windows 95.

<p>Then a voice said, "Luke. Luke! Use the X, Luke!" I don't know why the
voice was calling me "Luke" since my name is Cliff, but somehow I knew
to trust that voice. I moved the cursor onto the background, clicked,
and opened up the applications menu. There I found a nifty little
program called Minicom. I clicked on Minicom, it opened, initialized the
modem, and a press of [CTRL-a, d] brought up the dial out options. I
selected the edit option with the arrow keys, and at the top entered the
name and number of my server. Then I selected the dial option with the
arrow keys, and pressed [RETURN]. The X was with me, the modem dialed
out, logged into my server, and with a beep announced that I should
press any button. Minicom then asked me to enter my login name and
password. I breathed a sigh of relief, opened up Arena, typed in an
address, and . . . nothing happened. Worse, after about a minute, the
modem hung up.

<p>"What?" I wondered aloud, squinting into my monitor, certain that behind
the phosphorescent glow I could see little Bill Gatuses frantically
chewing away the inner workings of my computer. "Join me, Cliff," they
were saying. "It is your destiny."

<p>"I'll never join you," I cried out and whipped out my Linux
Encyclopedia. I couldn't find anything in the index on how to avoid
assimilation, but I did find out that I needed to activate the ppp
daemon and give control of the connection from Minicom to the daemon.
The command line that worked best was:

<pre>pppd /dev/cua2 115200 -detach crtscts modem defaultroute</pre>

<p><pre>-detach</pre> is the most important option to include here. It causes the
daemon to take over control of the modem from Minicom. pppd activates
the Point to Point Protocol daemon. /dev/cua* should be given whatever
number corresponds to the serial port your modem is attached to, as long
as you have a serial modem. 115200 is the max speed of my modem with
compression. You should set this to the max speed of your own modem.
crtscts tells your modem to negotiate high speed transmissions. modem
simply indicates the daemon should use the modem as its means of
networking. It is a default setting, but I like to set it anyway to
remind me whats going on. And defaultroute tells the daemon which route
the incoming and outgoing data are going through.

<p>The trick is to enter all this before the Minicom connection times out.
You could go through the trouble writing it out every time you log on,
but a better way is to edit an alias in .bashrc. Go down to the /root
directory and type emacs .bashrc (or whatever your prefered editor is)
and enter the line below as follows:

<pre>alias daemon = &lt;pppd /dev/cua* &lt;your modem speed&gt; -detach crtscts modem
defaultroute&gt;</pre><br>

(Do not forget the quotes or your alias will not function.)

<p>Finally, go into the control panel, double click on the networking icon,
and select the last tab that appears. There you will find near the top
the option to set your default gateway and your device. Set your default
gateway to whatever your Internet server specifies. Specify your device
as /dev/cua (whatever serial port your modem is attached to). Sometimes
simply /dev/modem will work if it has been symbolically linked in your
system.  (By the way, if you haven't already done it, in X you also need
to double click the modem icon in the control panel and set your modem
to the correct /dev/cua(serial port number) there too).  And if you have
a SLIP account (rare these days) add the pertinent info while setting up
your gateway.

<p>Reboot your system. Now your new alias and settings will all be in
effect. Now just invoke Minicom and dial out. Then at xterminal type
daemon. Minicom will beep at you for taking away its control of the
modem. To be on the safe side, I like to kill Minicom to make sure it
stops fighting with the daemon for control of the modem. Occasionally it
will succeed and weird things will happen. Then invoke your browser and
you are on the World Wide Web.

<p>As a final note, Arena's HTML is kind of weak, and you may find it
locking up with newer, more powerful web code. It is a good idea to
download a more capable browser such as Netscape 3.01, which makes a
fine Linux browser, and install and use that as soon as possible.

<p>And that's all there is to taking your Linux webship onto the
Information frontier.  Well, I'm enjoying my time on the web. I think
I'll build a new site dedicated to stopping the assimilation.


<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Cliff Seruntine<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center>
<H2>Atlanta Showcase Report</H2>
<H4>By Phil Hughes,
<a href="mailto:phil@ssc.com">phil@ssc.com</a> 
<a href="mailto:todds@ontko.com">todds@ontko.com</a></H4>
</center>
<P><HR>
<a href="http://www.ale.org/showcase">The Atlanta Linux Showcase</a>
is over, and everyone is beginning to recover.
Recover, that is, from being awake too long, being on a plane too long and
stuffing more Linux than will fit into one weekend.

<p>ALS was put together by the Atlanta Linux Enthusiasts, the local
Linux user's group in Atlanta, Georgia.
The show began on Friday evening, June 6 and ran through Sunday
afternoon.
More than 500 people attended.
The report following this one by Todd Shrider covers much of the show,
including the talks.

<p>I want to thank Amy Ayers and Karen Bushaw for making their photos
available to us with a special thank you to Amy for getting them scanned and
uploaded to the SSC ftp site.

<p>I spent most of my time in the <I>Linux Journal</I> booth giving away
magazines and talking to show attendees.
One aspect that made this show special for me is that I didn't spend
most of my time explaining that Linux is a Unix-like operating system to
the attendees.
Instead, I got to discuss Linux with experienced people with thoughtful
questions, letting them know in the process how <I>LJ</I> could help them.
Each attendee was truly interested in Linux and stopped at each booth in
the show.
I expect attendees appreciated the low signal-to-noise ratio in the
booths; that is, conversations were solely about Linux.

<h3>The Roast</h3>

<p>On Saturday night there was a roast--no, I didn't change from a
vegetarian into a meat eater overnight--we were roasting Linus.
That is, a group of people presented interesting stories about Linus,
intended to only slightly embarrass him.
At the end of the evening, I felt that the roast had been successful in
every way.

<p>In front of a crowd of about 115 people, Eric Raymond, David Miller, Jon
"maddog" Hall and I got to pick on this Linus character.
Topics varied from Linus almost being hit by a car in Boston because he was
so engrossed in talking about a particular aspect of kernel code, to the evolution of
the top-half/bottom-half concept in interrupt handlers and to why Linus was
apparently moving from geekdom to becoming a "hunk"
sportswear model. (See the cover of the San Jose <I>Metro</I>, May 8-14, 1997.)

<p>Maddog finished the roasting by telling a few Helsinki stories and showing
a video that included Tove's parents talking about Linus.
A good time was had by the roasters and the audience and, as Linus'
closing comment was "I love you all," we assume he had a good
time too and wasn't offended by our gentle ribbing.

<h3>The Future</H3>

<P>The show came off very well. I consider this sucess an amazing feat for an
all-volunteer effort.
The ALE members plan to write an article for <I>Linux Gazette</I> about how
they made this happen.
We'll also make this information available on the <a
href="http://www.ssc.com/glue">GLUE web site</a>.
I would like to see more shows put on by user groups.
The local involvement, the enthusiasm of the attendees and the all Linux
flavor of the show made this weekend a great experience.
We are already thinking about a Seattle or Portland show and would like to
help others make regional shows a reality.
<P><HR>
<p><a href="./alephotos.html">Take a look at the ALS Photo Album.</a>
<center><H2>More on ALS</H2>
by Todd M. Shrider, 
<a href="mailto:todds@ontko.com">todds@ontko.com</a></H4></center>
<P><HR>
<P>I first started writing this article in my hotel room late Sunday evening
(or early Monday morning) planning to get just enough sleep that I would
wake up in time to catch my plane. The plan didn't work--I
missed my 6:00 AM flight out of Atlanta.
I did the second draft while waiting for my new 9:45 AM flight.
The third draft
came (yes, you guessed it) while waiting for my 1:30 PM connection from
Detroit to Dayton, also having missed the previous connection because of
my first flight's late arrival. Suffice it to say, I'm now back home in
Indiana and still enjoying the high received from the Atlanta Linux
Showcase.

<P>Thanks to all the sponsors and to our host, the Atlanta Linux Enthusiasts
user group, the conference started with a bang and went off
without a hitch. The conference was a three day event, starting with
registration Friday and ending Sunday with a kernel hacking session led
by none other than Linus himself. In between there were numerous
conferences found in both a business and technical track, several birds of
a feather (BoF) sessions and a floor show. These events were broken up
with frequent trips to local pubs and very little sleep.

<P>This was my first (but not last) Linux conference, and I found that an
added benefit of ALS was meeting all the people who
use Linux as a viable business platform/tool. (These same people tend to be doing
very cool things with Linux on the side).
From companies such as Red Hat to Caldera to others such as
MessageNet, Cyclades and DCG Computers, it was obvious that many people
have very creative ways to make money with
Linux. This wasn't limited, by any means, to the vendors. Many of the
conference speakers talked of ways to make money with Linux or of their
experiences with Linux in a professional environment.

<P>
All of these efforts seemed to compliment the key-note address, World
Domination 101, where Linus Torvalds, called for applications,
applications, applications. Did I say he thought Linux needed a few
more useful applications? Anyway, he pointed out the more or less obvious
fact that, if Linux is going to be a
success in a world of commercial operating systems, we need every
application type you find in other commercial operating systems. In other
words, if you're thinking about doing--don't think--just
do it.
Another thing that Linus pointed out, and that I was glad to hear echoed
throughout the conference, was that Linux needs to be easy to use. It
needs to be so easy that a secretary or corporate executive
could sit and be as productive as they would be
with Windows 95. We need to make people realize that Linux has gotten rid
of the high learning curve usually associated with Unix.

<P>Something pointed out by Don Rosenberg, while speaking on the "how-to" and
"what's needed next" of commercial Linux, was that we are now in a stage
where the innovators (that's us) and the early adopters (that's us as well
as the people using Linux in the business world today) must continue to
push forward so that we can get a group of early adopters (the old DOS
users) to take us seriously. In Maddog's closing remarks he urged us all
to find two DOS users, convert them to Linux and then tell them to do the
same. As a step in this direction, today I introduced a local computer corporate sales
firm to Linux; whether they take my advice and run is left to be seen, but
believe me, I'm pushing.

<P>The rest of the conference was filled with business and technical talks.
The business talks included things such as Eric Raymond's "The Cathedral
and the Bazaar", talks on OpenLinux by both Jeff Farnsworth and Steve
Webb and "Linux Connectivity for Humans" by none other than Phil Hughes.
Lloyd Brodsky was on hand to talk about Intranet Support of Collaborative
Planning while Lester Hightower brought us the story of PCC and their
efforts to bring Linux to the business world. Mark Bolzern spoke of the
significance of Linux and Bob Young talked of the "process" not
the "product" of Linux.

<P>The technical discussion track started with Richard Henderson's discussion
of the shared libraries and their function across several architectures.
Michael Maher gave a HOWTO of Red Hat's RPM package management system and
Jim Paradis discussed EM86 and what remains to be done,
so that one can run Intel/Linux binaries under Alpha
Linux. David Miller then followed giving a boost of enthusiasm with his
discussion of the tasks involved in porting Linux to SPARC and Miguel de
Icaza took us on a trip to the world of RAID and Linux. We convened the next
day to hear David Mandelstam discuss what is involved with wide-area
networks and Mike Warfields anatomy of a cracker's intrusion.

<P>All in all, the conference was a huge success. What I might suggest as an
improvement for next year is more involvement from the vendors (or maybe
just more vendors), a possible sale from the vendors of their special
Linux wares to the conference attendees and a possible tutorial session
like the ones seen at Uselinux (Anaheim, California, January 1997). Other than
that, a few virtual beers (I owe
you Maddog) and lots of great geek conversation made for one wild weekend.


<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Phil Hughes and Todd M. Shrider<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<P>SSC is expanding Matt Welsh's <I>Linux Installation & Getting
Started</I> by adding chapters about each of the major distributions. Each
chapter is being written by a different author in the Linux community.
Here's a sneak preview--the Caldera chapter by Evan Leibovitch.--editor 
<P><HR><P>

<center>
<H2>Caldera OpenLinux </H2>
<H4>By Evan Leibovitch,
<a href="mailto:evan@teely.on.ca">evan@teely.on.ca</a></H4>
</center>
<P><HR>

<p>This section deals with issues specific to the Caldera releases of
Linux, how to install the current release (Caldera OpenLinux) and
prepare for the steps outlined in the following chapters. It is
intended to be a complement to, not a replacement for, the "Getting
Started Guides" Caldera ships with all of its Linux-based
products. References to the Getting Started Guide for Caldera Open
Linux Base will be indicated throughout this chapter simply as "the
Guide".

<h3>What is Caldera?</h3>

<p>The beginnings of Caldera the company come from an internal Novell
project called "Corsair". While Novell had owned Unix System V in
the early 1990s, Corsair was formed to see if there were things Novell
could learn from Linux.

<p>Corsair was a casualty of the changing of the guard at Novell that
also caused it to sell off Unix to SCO and WordPerfect to
Corel. Novell founder Ray Noorda gave startup capital to this group
with the intention of making Linux available in a manner that would be
as acceptable to business users and corporate MIS as commercial
versions of Unix. Caldera is a privately-held company based in Orem,
Utah.

<p>The implementation of this goal has resulted in a series of
Linux-based products that "broken the mold" in a number of
ways. Caldera was the first Linux distribution to bundle-in commercial
software such as premium X servers, GUI desktops, backup software and
web browsers; at the time of writing, Caldera is the only Linux
distribution officially supported by Netscape.

<h3>The Caldera Network Desktop</h3>

<p>Caldera's first product, the Caldera Network Desktop (CND), was
released to the public in early 1995 in a $29 "preview" form (a
rather unusual manner to run a beta test), and in final release
version in early 1996.  The CND was based on the 1.2.13 Linux kernel,
and included Netscape Navigator, Accelerated-X, CrispLite, and the
Looking Glass GUI desktop.  It also was the first Linux release to
offer NetWare client capabilities, being able to share servers and
printers on existing Novell networks.  Production and sale of CND
ceased in March 1997.

<h3>Caldera OpenLinux</h3>

<p>In late 1996, Caldera announced its releases based on the Linux 2.0.25
kernel would be named Caldera Open Linux (COL) and would be made
available at three levels;

<ul>
<li>COL Base, which includes Navigator, CrispLite, and the Metro-X server;

<li>COL Standard, which would add the Netscape FastTrack secure web
server, the StarOffice desktop productivity suite, and NetWare
connectivity;

<li>COL Deluxe, which incorporates all the features of Standard and
also offers NetWare--server--capabilities.
</ul>

<p>As this is written, only the COL Base release is shipping,
and feature sets of the other packages are still being determined.
For specific and up-to-date lists of the comparative features of the
three levels, check the Caldera web site <a href="http://www.caldera.com">http://www.caldera.com</a>.

<p>Because all three levels of COL build on the Base release, all three
are installed the same way. The only difference is in the different
auxiliary packages available; their installation and configuration
issues are beyond the scope of this guide. Most of COL's add-on
packages contain their own documentation; check the /doc directory of
the Caldera CD-ROM for more details.

<h3>Obtaining Caldera</h3>

<p>Unlike most other Linux distributions, COL is not available for
downloading from the Internet, nor can it be distributed freely or
passed around. This is because of the commercial packages which are
part of COL; while most of the components of COL are under the GNU
Public License, the commercial components, such as Looking Glass and
Metro-X, are not. In the list of packages included on the COL media
starting on page 196 of the Guide, the commercial packages are noted
by an asterisk.

<p>COL is available directly from Caldera, or through a network of
Partners around the world who have committed to supporting Caldera
products. These Partners can usually provide professional assistance,
configuration and training for Caldera users. For a current list of
Partners, check the Caldera web site.

<h3>Preparing to Install Caldera Open Linux</h3>

<p>Caldera support the same hardware as any other release based on Linux
2.0 kernels. Appendix A of the Guide (p145) lists most of the SCSI
hosts supported and configuration parameters necessary for many
hardware combinations.

<p>Taking a page out of the Novell manual style, Caldera's Guide provides
an installation worksheet (page 2) that assists you in having at hand
all the details of your system that you'll need for installation. It
is highly recommended you complete this before starting installation;
while some parameters, such as setting up your network, are not
required for installation, doing it all at one time is usually far
easier than having to come back to it. Sometimes this can't be
avoided, but do as much at installation time as possible.

<h3>Creating boot/modules floppies</h3>

<p>The COL distribution does not come with the floppy disks required for
installation. There are two floppies involved; one is used for
booting, the other is a "modules" disk which contains many hardware
drivers.

<p>While the Guide recommends you create the floppies by copying them
from the CD-ROM, it is better to get newer versions of the disks from
the Caldera web site. The floppy images on some CD-ROMs have errors
that cause problems, especially with installations using SCSI disks
and large partitions.

<p>To get newer versions of the floppy images, download them from
Caldera's FTP site. In directory {\tt pub/col-1.0/updates/Helsinki}, you'll
find a bunch of numbered directories. Check out the directories in
descending order---that will make sure you get the latest versions.

<p>If you find one of these directories has a subdirectory called
<pre>bootdisk</pre>, the contents of that directory
are what you want.

<p>You should find two files:

<pre>install-2.0.25-XXX.img
modules-2.0.25-XXX.img</pre>

<p>The <pre>XXX</pre> is replaced by the version number of the disk images.
At the time of writing, the current images are 034 and located in the
001 directory.

<p>Once you have these images, transfer them onto two floppies using the
methods described on page 4 of the Guide, using RAWRITE from the
Caldera CD-ROM if copying from a DOS/Windows system or
<pre>dd</pre> from a Linux system.

<p>While Caldera's CD-ROM is bootable (if your system's BIOS allows it),
if possible use the downloaded floppies anyway, since they are newer
and will contain bug-fixes that won't be in the CD versions.

<h3>Preparing the hard disks</h3>

<p>This procedure is no different from that of other Linux distributions.
You must use fdisk on your booted hard disk to allocate at least two
Linux partitions, one for the swap area and one for the root
file system. If you are planning to make your system dual-boot COL
with another operating system such as MS Windows or DOS or even OS/2,
it's usually preferable to install COL last; its "fdisk" recognizes
"foreign" OS types better than the disk partitioning tools of most
other operating systems.

<p>To run the Linux fdisk, you'll need to start your system using the
boot (and maybe the modules) floppy mentioned above. That's because
you need to tell COL what kind of disk and disk controller you have;
you can't even get as far as entering <pre>fdisk</pre> if Linux doesn't
recognize your hard disk!

<p>To do this, follow the bootup instructions in the Guide, from step 2
on page 33 to the end of page 36. Don't bother going through the
installation or detection of CDROMs or network cards at this time; all
that matters at this point is Linux sees the booting hard disk so you
can partition it using fdisk. A brief description of the use of the
Linux fdisk is provided on page 28 of the Guide.

<p>Remember that when running fdisk, you need to set up both your root
file system (type 83) and your swap space (type 82) as new partitions.
A brief discussion of how much swap space to allocate is offered on
page 10 of the Guide.

<p>As soon as you have completed this and written the partition table
information to make it permanent, you will need to reboot.

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Evan Leibovitch<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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


<html><ClueLess.html, a new user help document>
<center><h3>CLUELESS at the Prompt: A new column for new users</h3></p>
<P>by Mike List,
<a href="mailto:troll@net-link.net">troll@net-link.net</a></center>
<P><HR><P>
<body><center><IMG ALIGN=MIDDLE SRC = "../gx/list/gnub.jpg" ></center><p>
<h4>Welcome to installment 6 of Clueless at the Prompt:
a new column for new users.</h4>
<P><HR><P>
This time let's take a quick look at
the XF86Setup utility. at X window managers, concentrating on FVWM, adding
popup menus, adding and subtracting apps from existing popups and other
relatively easy ways to get a custom appearance and feel. 
<hr>
 <h4>Using XF86Setup to configure X</h4><p>
Judging from the posts I've seen on the usenet, a lot of people aren't
aware that there's an easier way to get X up and running than configuring
it the old confusing way(at least I found it to be that way), using a
tcl/tk script called XF86Setup. While it doesn't totally eliminate the
need to manually edit your XConfig, it does provide a method of getting a
usable configuration for most common video cards and monitors.  XF86Setup
first appeared in the XFree86 3.2 distribution, and uses the lowest common
denominator VGA 16 color mode server and a tcl/tk(corrections welcome)
script to start the config process in X and by using the graphical nature
of this utility script you can be almost certain to have X running in a
couple of tries, and if worst comes to worst you can have it running in 16
color mode until you can get the details to optimize it to your video
hardware. Current downloads of Xfree86 all seem to have this included, and
if your CDROM diskribution has X 3.2 or better you already have it
available to install to your HD. If you download it from xf86.org, be sure
to read the Relnotes for the component files necessary to insure a
successful install. You'll need :<ul>
<li>preinst.sh      Pre-installation script
<li>postinst.sh     Post-installation script
<li>X3?bin.tgz      Clients, run-time libs, and app-defaults files
<li>X3?doc.tgz      Documentation
<li>X3?fnts.tgz     75dpi, misc and PEX fonts
<li>X3?lib.tgz      Data files required at run-time
<li>X3?man.tgz      Manual pages
<li>X3?set.tgz      XF86Setup utility
<li>X3?VG16.tgz     16 colour VGA server (XF86Setup needs this
server)</ul>, where ?=the level of the distribution you're using, ie.3.2,
3.3 etc.,
for all installations, read the relnotes for any oher files your specific
hardware might need.
Since the 3.3 version just came out, if you are just getting around to
setting up X you will most likely want to get this distribution, since
every successive version has support for more hardware and often better
support for hardware already supported.
<p>OK, you have the files you need, that is the ones listed above, and the
server for your particular video card, in my case the SVGA server, you may
need to do a little detective work to determine which server to use.
If you are using the X version that comes on your CDROM, you can probably
install all the servers(assuming there's space on your HD)and let the
XF86Setup prog make the choice. To install,type:
<pre>
       cd /usr/X11R6
</pre>
Next, copy the preinst.sh and postinst.sh scripts to /var/tmp, then go to
/usr/X11R6 and type:
<pre>

        cd /usr/X11R6
        sh /var/tmp/preinst.sh
</pre>
the script will remove some symbolic links, and check to see that all the
files you need are available, and may output a message asking for those
files that are needed but not present. But assuming that you have followed
the above, everything should be in place, and you should get a generally
encouraging message on exit from the script.
<p>
Now for the installation itself,type:
<pre>
       tar -zxvf /wherever/you/have/X3?files.tgz
</pre>
you'll have to repeat this step with each of the required files, although
if you have these files in a directory by themselves, you may be able
to type:
<pre>
       tar -zxvf /wherever/youhavethem/*.tgz
</pre>
although it's been awhile, and I can't recall if it works, it won't hurt
anything to try, since the alternative is to unpack each tgz file
separately.
<p> Next you run the postinst.sh script in the same manner as the
preinst.sh above, this will make sure that you have all the X components
in the correct places.Run ldconfig something like:
<pre>
       ldconfig -m /usr/X11R6/lib
</pre>
or reboot to run ldconfig automatically. This links the libraries
necessary to run X. At this point you should be able to start the actual
setup by typing, naturally:
<pre>
       XF86Setup
</pre>
which will present a dialog box asking if you want to start in graphical
mode or tell you it will start momentarily.
At this point you'll be in X, using the 16 color VGA server.Read all the
instructions, and follow the routine, which I found to be pretty
self-explanatory. You will probably have the most trouble finding the
right mouse device and protocol, but try each one in turn if you aren't
sure. You'll probably also want to change the keyboard to 102key  US
International keyboard. Specify the video card, and monitor info, don't
worry if you don't know the salient monitor inf, you cna start at the top
of the list and work your way down the list until you reach a good
setting.Much easier if you have your monitor manual available, so have it
on hand if you can. Finish the routine when you think it's right and that
should do it. Congratulations on your hopefully valid Xconfiguration. If
you muff it just try again using slightly different settings until you do
get it right.
<hr>
<h4>Window Managers</h4>
Most Linux distributions that i'm familiar with use the FVWM window
manager as default and the rest of them should have it present, unless you
downloaded the files directly from xf86.org, in which case the default is
TWM.
<p>
FVWM is highly configurable by editing the 
/var/X11R6/lib/fvwm/system.fvwmrc file.You can use the file as it is,
since it has the most common installed features already configured, but
you can comment out those programs that you don't have installed by adding
a "#" at the beginning of the lines you wish to drop, change colors, add
popup menus, and more just by following the examples. Just be sure to save
the system.fvwmrc by typing:
<pre>
       cp /var/X11R6/lib/fvwm/system.fvwmrc
/var/X11R6/lib/fvwm/system.fvwmrc.old
</pre>
or something similar, so if you do mess up on your customization you can
always start from scratch by cp'ing .old to the original system.fvwmrc.A
couple of months ago The Weekend Mechanic column had some very cool ideas
on wallpapering the root window, so you might want to check them out.
<p>I made "Internet" and "PPP" popup menus to include lynx, Netscape and a
couple of telnet sites, as well as an IRC client, and to use the chat
script from X. you may have other ideas more to your liking, don't be
afraid to try, you can always start over again if you don't like the
results.
<p>
Take a look at my <a href="cluelist">system.fvwmrc</a>, nothing too
sophisticated, but if you compare it to the original you should get the
idea. I commented the changes that I made so you can see some of the
ways in which you can customize yours.
<p> 

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Mike List<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

<P> <HR> <P> 
<!--===================================================================-->
<HEAD>
<TITLE>
Graphics Muse
</TITLE>
</HEAD>


<!-- =============================================================
		This Page Designed by Michael J. Hammel.
		Permission to use all graphics and other content for private,
		non-commerical use is granted provided you give me (or the 
		original authors/artists) credit for the work.

		CD-ROM distributors and commercial ventures interested in 
		providing the Graphics Muse for a fee must contact me,
		Michael J. Hammel (mjhammel@csn.net), for permission.
     ============================================================= !-->

<!--  The Button box as a client side imagemap -->
<MAP NAME="nav-main">
<AREA SHAPE="rect" HREF="#mews" coords="3,10 158,56">
<AREA SHAPE="rect" HREF="#musings" coords="5,85 142,116">
<AREA SHAPE="rect" HREF="#resources" coords="5,152 177,182">
</MAP>


<TABLE width=560>
<tr>
	<td width=441 valign="top" align=left cellpadding=0 cellspacing=0>

		<!-- The title graphics -->
		<IMG SRC=../gx/hammel/gm3.gif ALT="Welcom to the Graphics Muse"
				ALIGN="left" WIDTH="441" HEIGHT="216" border="0"></td>

	<td width=119 align=right valign="bottom">
		<table>
		<tr>
			<td align=center>
				<FONT size=2>
				Set your browser to the width of the line below for best viewing.
				</FONT>
				<!-- The Copyright -->
				<BR><FONT size=1>
				&copy 1997 by
				<A HREF="mailto:mjhammel@csn.net">mjh</A>
				</FONT></td>
			</tr>
		</table></td>

<tr>
	<!-- Provide a measure for readers to adjust their browsers to. 
	  -- These pages should fit on a 640 pixel wide window, so laptop
	  -- users should be able to read them too.
	  -->
	<td width=100% cellspacing=0 cellpadding=0 
			valign=bottom align=center colspan=2>
		<HR>
		</td>
</table>

<TABLE width=560>
<tr>
	<!-- td width=177 align=left valign=top>
		-->
	<td width=17% align=left valign=top>
		<IMG SRC=../gx/hammel/buttons3.gif ALT="Button Bar"
				ALIGN="left" WIDTH="177" HEIGHT="185" 
				USEMAP="#nav-main" border="0"></td>


	<!-- td width=463 align=left valign=top>
		-->
	<td width=83% align=left valign=top>
		<!-- What is a Graphics Muse? -->
		<FONT size=4><B>muse:</B></FONT>
		<OL>
			<LI><I>v;</I> to become absorbed in thought
			<LI><I>n;</I> [ fr. Any of the nine sister goddesses of learning and the
				arts in Greek Mythology ]: a source of inspiration
		</OL>
		<IMG SRC=../gx/hammel/w.gif ALT="W" ALIGN="left" 
			HSPACE="0" VSPACE="0" WIDTH="36" HEIGHT="28">elcome 
		to the Graphics Muse!  Why a "muse"?  
		Well, except for the sisters aspect, the above definitions are
		pretty much the way I'd describe my own interest in computer graphics:  
		it keeps me deep in thought and it is a daily source of inspiration.

		<!-- Text based navigation -->
		<P>
		<CENTER>
		<FONT size=2>
		[<A HREF="#mews">Graphics Mews</A>]
		[<A HREF="#musings">Musings</A>]
		[<A HREF="#resources">Resources</A>]
		</FONT>
		<CENTER></td>

</table>

<TABLE width=560>
<tr>
	<td>
	<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
		HSPACE="8" WIDTH="1" HEIGHT="1">
	<IMG SRC=../gx/hammel/t.gif ALT="T" ALIGN="left" 
		HSPACE="0" VSPACE="0" WIDTH="26" HEIGHT="28">his 
	column is dedicated to the use, creation, distribution, and discussion of 
	computer graphics tools for Linux systems.  

	<BR clear=both>
	&nbsp; &nbsp; &nbsp;
	This month has been even more hectic than most.  I finished the first
	pass of an article on the 1.0 release of the GIMP and submitted it to the
	LInux Journal editors.  That will be out in the November Graphics issue.
	I'll probably have to do some updates after I get back the marked up
	version.  I'm also working on the cover art for that issue, using the
	developers release (currently at 0.99.10) of the GIMP.  I've also had
	quite of bit of regular work (that kind that pays the rent) since I'm
	getting very close to my code freeze date.  This weekend I'll be writing up
	documentation for it so I can give an introductory class to testers, other
	developers, Tech Pubs, Tech Support, and Marketing on Monday.  I think I
	picked a bad time to start lifting weights again.

	<BR clear=both>
	&nbsp; &nbsp; &nbsp;
	In this months column I'll be covering ...
	<UL>
		<LI> More experiences with printing using the Epson Stylus Colro 500
		<LI> A brief discussion about DPI, LPI, and Halftoning
		<LI> An even briefer discussion about 3:2 pulldown - transerring film
			to video.
	</UL>

	Next month may not be much better.  I don't know exactly what I'll be
	writing about, although I do have a wide list from which to choose.  Mostly
	I'm looking forward to my trip to SIGGRAPH in August.  Any one else going?
	I should have plenty to talk about after that.  I plan on going to at
	least two of the OpenGL courses being taught at the Conference.  I haven't
	completely decided which courses I'm going to take, however.

	<BR clear=both>
	&nbsp; &nbsp; &nbsp;
	I'm also looking forward to a trip to DC in August as well.  A real
	vacation.  No computers.  Just museums and monuments.  I may need to take 
	some sort of anti-depressant.  Nah.  I need the break.

	<P>
	
	</td>
</table>


<!-- Netscape has a bug when applying a Name tag to an image, so we have to
     stick the image in a table so the image will be the top item on the
     page.
  -->
<A NAME="mews">
<table width=560>
<tr>
<td align=left>
<IMG SRC=../gx/hammel/mews.gif ALT="Graphics Mews" ALIGN="left" 
	HSPACE="0" VSPACE="0" WIDTH="242" HEIGHT="53">
</td>
</table>
</A>

<BR clear=both>
<TABLE width=560 border=0>
<tr>
	<td colspan=4>
	<BR clear=both>
	&nbsp; &nbsp; &nbsp;
		Disclaimer:
		Before I get too far into this I should note that any of the news items I
		post in this section are just that - news.  Either I happened to run 
		across
		them via some mailing list I was on, via some Usenet newsgroup, or via
		email from someone.  I'm not necessarily endorsing these products (some of
		which may be commercial), I'm just letting you know I'd heard about 
		them in the past month.
		<P>

<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>

<tr>
	<td width="50%">
		<H4> Announcing bttv version 0.4.0 </H4>
		&nbsp; &nbsp; &nbsp;
		BTTV is a device driver for Booktree Bt848 based frame grabber cards 
		like the
		Hauppauge Win/TV pci, Miro PCTV, STB TV PCI, Diamond DTV2000, and
		AverMedia.  Major new features in version 0.4.0 are rudimentary 
		support for grabbing into user memory and for decoding VBI data 
		like teletext, VPS, etc. in software.
		<P>
		The Motif application xtvscreen now has better support for selecting 
		channels and also works in the dual visual modes (255+24 mil. colors) 
		of Xi Graphics AcceleratedX 3.1 X server.
		<P>
		Author:
		<BR>
		&nbsp; &nbsp; &nbsp;
			Ralph Metzler <A HREF="mailto:rjkm@thp.uni-koeln.de">
			rjkm@thp.uni-koeln.de </A>
		<BR>
		&nbsp; &nbsp; &nbsp;
			Marcus Metzler	<A HREF="mailto:mocm@thp.uni-koeln.de">
			mocm@thp.uni-koeln.de </A>
		<BR>
		Web Site:
		<BR>
		&nbsp; &nbsp; &nbsp;
			<A HREF="http://www.thp.uni-koeln.de/~rjkm/linux/bttv.html">
			http://www.thp.uni-koeln.de/~rjkm/linux/bttv.html</A>

		</td>


	<td bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>
	<td bgcolor="#ffffff" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			WIDTH="0" HEIGHT="0"></td>

	<td width="49%" valign=top>
		<H4>
		OpenGL4Java 0.3
		</H4>
		&nbsp; &nbsp; &nbsp;
		This is an initial developer's release of an (unoffical) port of
		OpenGL(tm) for java.  Leo Chan's original package has been
		ported to both WindowsNT/95 and to Linux.  
		Several features have been added, the main
		one being OpenGl now draws into a Java Frame.  
		What advantage does this provide?  Well, you can now add menus 
		to the OpenGL widget as well as receiving all normal events such 
		as MouseMotion and Window events.  You
		could very simply have a user rotate a OpenGL object by moving the mouse
		around in the Frame ( the demo for the next release will have this
		feature ).
		<P>
		You can grab it from the developers web page at 
		<A HREF="http://www.magma.ca/~aking/java">
		http://www.magma.ca/~aking/java</A>.

		</td>

<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>

<tr>
	<td colspan=4>
		<H4>
		WebMagick Image Web Generator - Version 1.29
		</H4>
		WebMagick is a package which makes putting images on the Web as
		easy as magick.  You want WebMagick if you:

		<UL>
		<LI>Have access to a Unix system
		<LI>Have a collection of images you want to put on the Web
		<LI>Are tired of editing page after page of HTML by hand
		<LI>Want to generate sophisticated pages to showcase your images
		<LI>Want to be in control
		<LI>Are not afraid of installing sophisticated software packages
		<LI>Want to use well-documented software (33 page manual!)
		<LI>Support free software
		</UL>

		After nine months of development, WebMagick is chock-full of
		features. WebMagick recurses through directory trees, building
		HTML pages, imagemap files, and client-side/server-side maps to
		allow the user to navigate through collections of thumbnail
		images (somewhat similar to xv's Visual Schnauzer) and select
		the image to view with a mouse click. In fact, WebMagick
		supports xv's thumbnail cache format so it can be used in
		conjunction with xv.
		<P>

		The primary focus of WebMagick is performance. Image thumbnails
		are reduced and composed into a single image to reduce client
		accesses, reducing server load and improving client performance.
		Everything is pre-computed. During operation WebMagick employs
		innovative caching and work-avoidance techniques to make
		successive executions much faster. WebMagick has been
		successfully executed on directory trees containing many tens of
		directories and thousands of images ranging from tiny icons to
		large JPEGs or PDF files.
   
		<P>
		Here is a small sampling of the image formats that WebMagick
		supports:
   
		<UL>
			<LI>Windows Bitmap image (BMP)
			<LI>Postscript (PS)
			<LI>Encapsulated Postscript (EPS)
			<LI>Acrobat (PDF)
			<LI>JPEG
			<LI>GIF (including animations)
			<LI>PNG
			<LI>MPEG
			<LI>TIFF
			<LI>Photo CD
		</UL>
   
		WebMagick is written in PERL and requires the ImageMagick (3.8.4
		or later) and PerlMagick (1.0.3 or later) packages as well as a
		recent version of PERL 5 (5.002 or later). Installation
		instructions are provided in the WebMagick distribution.

		<P>
		Obtain WebMagick from the WebMagick page at
		<A HREF="http://www.cyberramp.net/~bfriesen/webmagick/dist/">
		http://www.cyberramp.net/~bfriesen/webmagick/dist/</A>. 
		WebMagick
		can also be obtained from the ImageMagick distribution site at
		<A HREF="ftp://ftp.wizards.dupont.com/pub/ImageMagick/perl">
		ftp://ftp.wizards.dupont.com/pub/ImageMagick/perl</A>.

		</td>

<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>

<tr>
	<td width="50%">
		<H4>
		EasternGraphics announces public release of `opengl' widget
		</H4>
		&nbsp; &nbsp; &nbsp;
		EasternGraphics announces the public release of `opengl' widget
		which allows windows with three-dimensional graphics output,
		produced by OpenGL to be integrated into Tk applications. The
		widget is available for Unix and MS-Windows platforms.
		<P>
		You can download the package from
		<A HREF="ftp://ftp.EasternGraphics.com/pub/egr/tkopengl/tkopengl1.0.tar.gz">
		ftp://ftp.EasternGraphics.com/
		<BR>
		&nbsp; &nbsp; &nbsp;
			pub/egr/tkopengl/tkopengl1.0.tar.gz</A>
		<P>
		Email: <A HREF="mailto:wicht@EasternGraphics.com">
			wicht@EasternGraphics.com</A>
		<BR>
		WWW: <A HREF="http://www.EasternGraphics.com/">
			http://www.EasternGraphics.com/</A>
		</td>

	<td bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>
	<td bgcolor="#ffffff" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			WIDTH="0" HEIGHT="0"></td>

	<td width="49%">
		<H4>
		ELECTROGIG's GIG 3DGO 3.2 for Linux for $99.
		</H4>
		&nbsp; &nbsp; &nbsp;
		There is a free demo package for Linux.  Its roughly 36M tarred
		and compressed.  A 9M demo's file is also available for download.
		I had placed a notice about this package in the May's Muse column,
		but I guess ELECTROGIG had missed that, so they sent me another
		announcement (I got the first one from comp.os.linux.announce).
		Anyway, one thing I didn't mention in May was the price for the
		full Linux product:  $99.  This is the complete product, although
		I'm not sure if this includes any documentation or not (it doesn't
		appear to).  The Linux version does not come with any product
		support, however.  You need a 2.0 Linux kernel to run GIG 3DGO.

		<P>
		I also gave a URL that takes you to an FTP site for downloading the
		demo.  A slightly more informative page for downloading the demo and
		its associated files is at 
		<A HREF="http://www.gig.nl/support/indexftp.html">
		http://www.gig.nl/support/indexftp.html</A>

		</td>

<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>

<tr>
	<td colspan=4>
		<H4>
		Type1Inst updated
		</H4>
		&nbsp; &nbsp; &nbsp;
		<A HREF="mailto:J.Macnicol@student.anu.edu.au">James Macnicol</A>
		uploaded version 0.5b of his type1inst font installation utility
		to sunsite.unc.edu.  If its not already there, it will end up in
		/pub/Linux/X11/xutils.
		<P>
		Type1inst is a small perl script which generates the
		"fonts.scale" file required by an X11 server to use any
		Type 1 PostScript fonts which exist in a particular
		directory.  It gathers this informatiom from the font files
		themselves, a task which previously was done by hand.  The
		script is also capable of generating the similar "Fontmap"
		file used by ghostscript.  It can also generate sample sheets
		for the fonts.
		<P>
		FTP: 
		<A HREF="ftp://sunsite.unc.edu/pub/Linux/X11/xutils/type1inst-0.5b.tar.gz">
		ftp://sunsite.unc.edu/pub/Linux/X11/xutils/type1inst-0.5b.tar.gz</A>
		<P>
		Editors note:  I highly recommend this little utility if you 
		are intent on doing any graphics arts style work, such as with
		the GIMP.

		</td>
  
<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>

<tr>
	<td colspan=4>
		<H4> 
		libgr-2.0.13 has been updated to png-0.96
		</H4>
		&nbsp; &nbsp; &nbsp;
		It seems the interface to
		png-0.96 is not binary compatible with png-0.89, so the major
		version of the shared library was bumped to libpng.so.2.0.96 
		(last version was libpng.so.1.0.89).
		<P>
		WHAT IS LIBGR?
		<BR>
		Libgr is a collection of graphics libraries, 
		based on libgr-1.3, by Rob Hooft (hooft@EMBL-Heidelberg.DE),
		that includes:
		<UL>
			<LI>fbm
			<LI>jpeg
			<LI>pbm
			<LI>pgm
			<LI>png
			<LI>pnm
			<LI>ppm
			<LI>rle
			<LI>tiff
			<LI>zlib, for compression
		</UL>
		These are configured to build ELF static and shared libraries.
		This collection (libgr2) is being maintained by 
		<A HREF="mailto:neal@ctd.comsat.com">
		Neal Becker</A> &lt;neal@ctd.comsat.com&gt;

		<P>
		FTP:
			<A HREF="ftp://ftp.ctd.comsat.com:/pub/linux/ELF">
			ftp.ctd.comsat.com:/pub/linux/ELF</A>

	</td>


<tr>
	<td colspan=4 bgcolor="#ffffff" cellpadding=1 cellspacing=0 valign=top>
	<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
		VSPACE="5" HSPACE="10" WIDTH="1" HEIGHT="1"></td>
<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=1 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>
<tr>
	<td colspan=4 bgcolor="#ffffff" cellpadding=1 cellspacing=0 valign=top>
	<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
		VSPACE="5" HSPACE="10" WIDTH="1" HEIGHT="1"></td>

<tr>
	<td colspan=4>
		<!--
		  -- Did You Know Section
		  -->
		<H4>Did You Know?</H4>
		...there is a site devoted to settign up Wacom tablets under XFree86?
      <A HREF="http://www.dorsai.org/~stasic/wacomx.htm">
      http://www.dorsai.org/~stasic/wacomx.htm</A>
		The pages maintainer,
			<A HREF="mailto:stasic@dorsai.org">Edward</A>, says:
		<BLOCKQUOTE>
		So far, nobody has told me that he or she couldn't follow the
		instructions.
		<P>
		Fred Lepied is the man who actually created the support for the
		Wacom tablets under XFree86. He gave me instructions on setting
		my ArtPad II up and I repeated this, periodically, on Usenet.
		When the requests for help there turned into a steady stream,
		I decided to put up a web page (mainly to show that I can make
		one but not use it for a lame ego trip).
		</BLOCKQUOTE>
		<A HREF="mailto:adam@uunet.pipex.com">Adam D. Moss</A>
		&lt;adam@uunet.pipex.com&gt; has said he's also gotten this to work
		and offered to help others who might need assistance getting 
		things set up.


		<P>
		...there is rumored work being done on 3Dfx support for Linux?
		<A HREF="mailto:tige@umr.edu">Tige</A> writes:
		<BLOCKQUOTE>
		I was looking around for info about the 3Dfx based cards and came across
		a guy's page that said he is working on a full OpenGl driver for 3Dfx
		boards for NT.  What does this have to do with Linux?  Well, he says
		that after the NT driver is done, he is going to start work on 3Dfx
		drivers for Linux and an OpenGl driver for XFree86/3Dfx.
		<P>
		The guy's name is Zanshin and the address of his site is:
		<A HREF="http://www.planetquake.com/gldojo/">
		http://www.planetquake.com/gldojo/</A>
		<P>
		Most of this stuff is in the News Archives section under 4/18/97
		Oh yeah, he also mentions hacking SGIQuake to work with Linux, so we may
		get to see a hardware accelerated version of Quake for Linux.
		</BLOCKQUOTE>

		<P>
		...the MindsEye Developers mailing list has moved to
		<A HREF="mailto:mindseye@luna.nl">
		mindseye@luna.nl</A>.
		unsubscribing can be done by sending a body of
		<PRE>
         unsubscribe
		</PRE>
		to 
		<A HREF="mailto:mindseye-request@luna.nl">
		mindseye-request@luna.nl</A>
		and a body of
		<PRE>
         unsubscribe mindseye@luna.nl
		</PRE>
		to 
		<A HREF="mailto:majordomo@luna.nl">
		majordomo@luna.nl</A>
		Other majordomo commands should be send to majordomo@luna.nl
		a body of 'help' gives an overview.
		Users which are subscribed to the old mindseye@ronix.ptf.hro.nl adress
		do not need to unsubscribe.  The list will be removed shortly afterwards.
		They will get this message twice: one from mindseye@luna.nl and one from
		mindseye@ronix.ptf.hro.nl.
		A HTML interface by using hypermail is under construction.


		<!--
		  -- Q and A Section
		  -->
		<P><FONT size=3><B>Q and A</B></FONT>
		<P>
		<I>Q: 
		Forgive what might be a dumb question, but what exactly is meant by
		"overlays"?
		</I>
		<P>A: 
		Imagine a 24bpp image plane, that can be addressed by 24bpp visuals.
		Imagine an 8bpp plane in front of the 24bpp image plane, addressed by
		8bpp visuals.
		<P>
		One or more of the 8bpp visuals, preferably the default visual, should
		offer a 'transparent pixel' index.  When the 8bpp image plane is painted
		with the transparent pixel, you can see through to the 24bpp plane.
		You can call an arrangement like this, a 24bpp underlay, or refer to the
		8bpp visuals as an overlay.
		<P>
		Strictly, we call this "multiple concurrent visuals with different color
		depths", but that's rather a mouthful.  Hence, shorthand we refer to it
		as "24+8" or "overlays", with "24+8" as the preferred description.
		<P>
		<FONT size=2>
		From Jeremy Chatfield @ <A HREF="http://www.xi.com/">Xi Graphics, Inc.</A>
 
		</td>

<tr>
	<td colspan=4 bgcolor="#ffffff" cellpadding=1 cellspacing=0 valign=top>
	<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
		VSPACE="5" HSPACE="10" WIDTH="1" HEIGHT="1"></td>
<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=1 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>
<tr>
	<td colspan=4 bgcolor="#ffffff" cellpadding=1 cellspacing=0 valign=top>
	<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
		VSPACE="5" HSPACE="10" WIDTH="1" HEIGHT="1"></td>
</table>



<P>
<A NAME="musings">
<table>
<tr>
<td>
<IMG SRC=../gx/hammel/musings.gif ALT="Musings" ALIGN="left" 
	HSPACE="0" VSPACE="0" WIDTH="247" HEIGHT="52">
</td>
</table>
</A>
<BR clear=both>

<TABLE width=560>
<tr>
	<td valign=top>
		<H4>
		Microstation update
		</H4>
		&nbsp; &nbsp; &nbsp;
		After last months 3D Modeller update I received email
		from Mark Hamstra at Bentley Systems, Inc.  Mark is the man 
		responsible for the ports of Bentley's MicroStation and Masterpiece
		products that are available for Linux.  I've included his response
		below.  The stuff in italics is what I had orginally written:

		<BLOCKQUOTE>
		Thanks for the mention in Gazette #18 --it's kinda fun watching where
		MicroStation/Linux info pops up.  Being the guy that actually did the
		ports of MicroStation and Masterpiece, I'll lay claim to knowing the most
		about these products.  Unfortunately, you've got a few errors in Gazette
		#18; allow me to correct them:

		<P>
		<I>
  		Includes programming support with a BASIC language and linkages
  		to various commericial databases such as Oracle and Informix.
		</I>

		<P>
		Programming support in the current product includes the MicroStation
		Development Language (C syntax code that compiles to platform-independent
		byte-code), BASIC, and support for linking MDL with both MDL shared
		libraries and native code shared libraries (i.e., Linux .so ELF
		libraries).  For a look at the future direction of Bentley and 
		MicroStation, take a look on our web site at the recent announcement by
		Keith Bentley at the  AEC Systems tradeshow of MicroStation/J and our
		licensing agreement with Javasoft.  

		<P>
		Because of the lack of commercial database support for Linux, there are
		no database linkage facilities in the current Linux port of MicroStation.

		<P>
		<I>
  		This looks like the place to go for a commercial modeller, although
  		I'm not certain if they'll sell their educational products to the
  		general public or not.
		</I>

		<P>
		Nope, academic-only at this time; although we're collecting requests for
		commercial licensing (at our normal commercial prices) at
		<A HREF="http://www.bentley.com/products/change-request.html">
		http://www.bentley.com/products/change-request.html</A>.
		The <B>only</B> thing preventing MicroStation from being available 
		commercially for Linux is a lack of adequate expressed interest.

		<P>
		<I>
		Note that the Linux ports have not been released (to my knowledge - I'm
		going by whats on the web pages).
		</I>

		<P>
		The first two of our new Engineering Academic Suites that contain the
		Linux ports, the Building Engineering and GeoEngineering Suites, have been
		available in North America since the middle of February.  European and
		worldwide distribution should be underway now too, although it took a
		little longer.  Incidentally, the web pages you list are for our Europe,
		Middle East, and Africa (ema) division; you probably actually want
		<A HREF="http://www.bentley.com/academic">
		http://www.bentley.com/academic</A>.

		<P>
		<I>
		[output formats] Unknown
		</I>

		<P>
		We output a wide range of formats (and import a wider range than you give
		us credit for).  I always forget just which ones are actually in the
		product and which are only in my current builds from the most recent
		source, so I'll just refer you to
		<A HREF="http://www.bentley.com/products/microstation95">
		http://www.bentley.com/products/microstation95</A> and
		<A HREF="http://www.bentley.com/products/masterpiece">
		http://www.bentley.com/products/masterpiece</A>, and note that my copy of
		MicroStation/Linux currently lists DGN, DWG, DXF, IGES, CGM, SVF, GRD,
		RIB, VRML, Postscript, HPGL, PCL, TIFF, TGA, BMP, and a couple other
		raster and animation formats as output options -- and I know I haven't
		currently got some of our soon-to-be-released translators compiled.  Like
		I said, probably not all of these are in the current Linux port, but it's
		a simple matter to add whatever's not there to future versions of the
		Linux products, provided there's enough demand to keep the project
		going.  

		</BLOCKQUOTE>
		I wasn't sure what a few of these formats were, so I wrote Mark back
		to ask about them.  He informed me on the following (which were the ones I
		had asked specifically about):

		<UL>
			<LI> DGN is MicroStation-native design file format and 
				has its ancestry in the Intergraph IGDS file format.  
			<LI> SVF is the Simple Vector Format (see
				<A HREF="http://www.softsource.com">
				http://www.softsource.com</A>), 
				which works pretty good for web browser plug-ins.  
			<LI> GRD is used by our MicroStation Field product.  
			<LI> CGM is the Computer Graphics Metafile format, a 
				vendor-independent standard supported in various software 
				packages, browser plug-ins, printers/plotters, etc.
		</UL>

		I want to thank Mark for offering updated information so quickly.  My
		information is only as good as what I can find or am fed, and it helps 
		when vendors, developers or end users provide me with useful info like 
		this.  Many thanks Mark.

		<P>
		If you've used this product on MS platforms feel free to drop me a
		line and let me know what you thought of it.  I'm always out to support
		commercial ports of graphics-related products to Linux.
		</td>

<tr>
	<td bgcolor="#000000" cellpadding=1 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			WIDTH="1" HEIGHT="1"></td>

</table>

<TABLE width=560>
<tr>
	<td valign=top width="44%">
		<H4><I>
		Printing with an Epson Stylus Color 500
		</I> </H4>
		&nbsp; &nbsp; &nbsp;
		I bought an Epson Stylus Color 500 printer back in December of last year 
		so I could print in color.  I had done some 
		<A HREF="../issue14/gm.html">
		research into what printers would be best</A>, 
		based in part on reviews in online PC magazines 
		and also on support available in the Ghostscript 4.03 package.  The
		Epson Stylus Color 500 was rated very high by the reviews and I found a 
		<A HREF="http://www.pe.net/~williams">
		web page</A> 
		which provided information on how to configure Ghostscript
		for use with the printer.  I bought the printer, got Ghostscript
		working in a very marginal way (that is to say, it printed straight 
		text in black and white).  But thats as far as it went.  I had gotten
		some minor printing in color done, but nothing very impressive and 
		most of it was downright bad.

		<BR>
		&nbsp; &nbsp; &nbsp;
		Earlier this month I was given the opportunity to work on the cover
		art for an issue of the Linux Journal.  A few trial runs were given
		the preliminary ok but they were too small - the size of the image
		needed to be more than twice as big as the original I had created.
		Also, because the conversion of an image from the monitors display to
		printed paper is not a straightforward one (see the discussion on
		LPI/DPI elsewhere in this months column) it became apparent I needed
		to try printing my artwork to sample how it would really look on paper.
		I had to get my printer configuration working properly.

		<BR>
		&nbsp; &nbsp; &nbsp;
		Well, it turned out to be easier than I thought.  The hardest part
		is to get Ghostscript compiled properly.  The first thing to do is 
		to be sure to read the text files that accompany the source code.
		There are 3 files to read:  
		<UL>
			<LI>make.txt - general compiling and installation instructions
			<LI>drivers.txt - configuration information for support of the 
					various devices you'll need for your system.
			<LI>unix-lpr.txt - help on setting up a print spooler for Unix
					systems.
		</UL>
		The first two are the ones that made the most difference to me.  I 
		didn't really use the latter, but my solution isn't very elegant.
		However, what it lacks in grace it makes up for in simplicity.
		
		<BR>
		&nbsp; &nbsp; &nbsp;
		Building the drivers was fairly simple for me - I took most of the
		defaults, except I added support for the Epson Stylus Color printers.
		There is a section in make.txt devoted specifically to compiling on
		Unix systems (search for <I>How to build Ghostscript from source
		(Unix version)</I> in that file).  In most cases you'll just be able
		to type "make" after linking the correct compiler specific makefile 
		to <I>makefile</I>.  However, I needed to configure in the Epson
		printers first.
		
		<BR>
		&nbsp; &nbsp; &nbsp;
		What I did was to edit the unix-gcc.mak file 
		to change one line.  The line that begins
		<BR><B>
		&nbsp; &nbsp; &nbsp;
			DEVICE_DEVS=
		</B><BR>
		was modified to add
		<BR><B>
		&nbsp; &nbsp; &nbsp;
			stcolor.dev
		</B><BR>
		right after the equal sign.  I also didn't need support for
		any of the HP DeskJet (DEVICE_DEVS3 and DEVICE_DEVS4) or 
		Bubble Jet (DEVICE_DEVS6) devices so I commented out those lines.
		Now, once this file had been linked to <I>makefile</I> I could just
		run 
		<BR><B>
		&nbsp; &nbsp; &nbsp;
			make
		<BR>
		&nbsp; &nbsp; &nbsp;
			make install
		</B><BR>
		At this point the Ghostsript package was ready for use.  Note that
		many of the current distributions already include Ghostscript, but may not
		have the 4.03 release.  Run 
		<BR><B>
		&nbsp; &nbsp; &nbsp;
			gs -v
		</B><BR>
		to find out if you have Ghostscript 4.03.  You'll need it to work
		with the Epson Stylus Color 500.

		<BR>
		&nbsp; &nbsp; &nbsp;
		Now I needed to set up my print spooler.  This turned out to be
		rather easy.  First, you need to know that the stcolor driver
		(which is the name of the driver Ghostscript uses to talk to 
		Epson Stylus printers) has a pre-built Postscript file that is
		used to prepare the printer for printing.  This file, called
		stcolor.ps, is included with the 4.03 distribution.  The file
		contains special commands that are interpreted by the printer,
		however it does not actually cause anything to be printed.

		<P clear=both>
		<CENTER>
		<A HREF="#next-column">-Top of next column-</A>
		</CENTER>
		</td>

	<td bgcolor="#ffffff" cellpadding=1 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			WIDTH="0" HEIGHT="0"></td>
	<td bgcolor="#000000" cellpadding=1 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>
	<td bgcolor="#ffffff" cellpadding=1 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			WIDTH="0" HEIGHT="0"></td>


	<td valign=top width="53%" cellpadding=0 cellspacing=0>
	<table>
	<tr>
		<td valign=top cellpadding=0 cellspacing=0>
			<UL>
				<LH>
					<A NAME="next-column">
					<B>More Musings...</B>
					</A>
					</LH>
				<LI>
					<A HREF="more-musings.html#1">
					DPI, LPI, Halftoning and other strange things
					</A> - A short discussion on printing computer
					images.
				<LI>
					<A HREF="more-musings.html#2">
					How many frames makes a movie?
					</A> - a discussion with Larry Gritz about
					how video animations are transferred from film.

			</UL>
			<table width=100%>
			<tr>
				<td width=100% bgcolor="#000000" cellpadding=1 
						cellspacing=0 valign=top>
					<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
						HSPACE="0" WIDTH="0" HEIGHT="0"></td>
			</table>

			<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
				VSPACE="5" WIDTH="1" HEIGHT="1">
			<BR clear=both>
			When you
			want to print something you need to first print this file followed
			by the file or files you want to print.  Don't worry about how to 
			do this just yet - I have a set of scripts to make this easier.

			<BR clear=both>
			&nbsp; &nbsp; &nbsp;
			There were a number of options I could use with Ghostscript for
			my printer, but I found I only needed to work with one:  display
			resolution or Dots Per Inch (DPI).  In order to handle the two 
			resolutions I simply created two scripts which could be used as
			input filters for lpr (the print spooler).  The 
			<A HREF="./stcolor.txt">
			scripts</A>
			are almost
			exactly the same, except one is called <I>stcolor</I> and one
			is called <I>stcolor-high</I>, the latter being for the higher
			resolution.   Both of these were installed under
			/var/spool/lpd/lp and given execute permissions.
		
			<BR clear=both>
			&nbsp; &nbsp; &nbsp;
			Next came the configuration for lpr.  I needed to edit the 
			<A HREF="./printcap.txt">
			/etc/printcap</A>
			file to create entries for the new printer filters.
			I decided to give the printers different names than the standard,
			non-filtered printer name.  In this way I could print ordinary
			text files (which I do more than anything else)  using the default
			printer and use the other printer names for various draft or
			final prints of images, like the cover art.

			<BR clear=both>
			&nbsp; &nbsp; &nbsp;
			Now the system was ready to print my images, but I still needed 
			to do a couple more things.  First, I wanted to write a script
			for handling printing of my images in the most common formats 
			I created.  I wrote a
			<A HREF="./print-tga.txt">
			script</A>
			to do this which I named <I>print-tga.sh</I>.  I made symbollic
			links from this file to variations on the name.  The script
			uses the name used to invoke it to determine which type of
			conversions to run before printing the file.
			The script converts the various formats, using the tools in
			the NetPBM kit, to Postscript files and then prints them to the
			high resolution printer setup in the previously mentioned printcap 
			file.

			<BR clear=both>
			&nbsp; &nbsp; &nbsp;
			Once I got all this done I was able to print full page images
			on high-gloss paper.  They come out beautifully.  The images I
			created for the cover art are far bigger than the paper, so Ghostscript
			resizes them to fit.  It wasn't until I got this working that I 
			realized just how good Ghostscript is.  Or just how good the Epson
			Stylus Color 500 is.

			<BR clear=both>
			&nbsp; &nbsp; &nbsp;
			As a side bonus, I also discovered that I could now print pages
			from my Netscape browser to my printer.  I configured the 
			print command to be <I>lpr -llpps</I> (using the lower resolution
			printer from the /etc/printcap file) in the Print dialog.  Since
			Netscape passes the page as a Postscript file to the filter, there
			is no need to do any conversions like I do with my images.  I now
			get full color prints of the pages I wish to save (like SIGGRAPH's
			registration forms).  I also can print directly from Applixware
			using the same printer configurations.  I just had to set up the
			print options to output as Postscript, which was simply enough to do.

			<BR clear=both>
			&nbsp; &nbsp; &nbsp;
			There are a number of other settings that can be set using the
			filters.  If you are interested in using these you should consult the
			devices.txt file for information on the stcolor driver.  There are
			probably some better settings than what I'm using for other types of
			printing needs.

			<BR clear=both>
			&nbsp; &nbsp; &nbsp;
			Well, thats about it.  I hope this was of some use to you.  I was
			really thankful when I got it working.  My setup is probably not
			exactly like anyone elses, but if you have the Epson Stylus Color
			500 you should be able to get similar results.  Don't forget:  if
			you plan on printing high resolution images using the 360 DPI (as 
			opposed to the 180 DPI also supported by the printer) then you'll 
			probably want to print on high-gloss paper.  This paper can be rather 
			expensive.  The high-gloss paper Epson sells specifically for this 
			printer is about $36US for 15 sheets.  Also, I should note that
			I recently heard Epson now has a a model 600 that is to replace
			the model 500 as their entry level color printer.   I haven't
			heard if the 600 will work with the stcolor driver in Ghostscript
			so you may want to contact the drivers author (who is listed
			in the devices.txt file, along with a web site for more info) if 
			you plan on getting the model 600.
		</td>

	<tr>
		<td bgcolor="#000000" cellpadding=1 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			WIDTH="1" HEIGHT="1"></td>

	<tr>
		<td valign=top cellpadding=0 cellspacing=0>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="8" WIDTH="1" HEIGHT="1">
		<BR clear=both>

		</td>
	</table>
	</td>



</table>


<P>
<A NAME="resources">
<table>
<tr>
<td>
<IMG SRC=../gx/hammel/resources.gif ALT="Resources" ALIGN="left" 
	HSPACE="0" VSPACE="0" WIDTH="246" HEIGHT="57">
</td>
</table>
</A>

<BR clear=both>
The following links are just starting points for finding more information
about computer graphics and multimedia in general for Linux systems.  If
you have some application specific information for me, I'll add them to my
other pages or you can contact the maintainer of some other web site.  I'll
consider adding other general references here, but application or site
specific information needs to go into one of the following general 
references and not listed here.

<BR clear=both>
<P>

<A HREF="http://www.csn.net/~mjhammel/linux/lgh.html">
Linux Graphics mini-Howto
</A>

<BR>
<A HREF="http://www.csn.net/~mjhammel/ugu/ugu.html">
Unix Graphics Utilities
</A>  

<BR>
<A HREF="http://www.digiserve.com/ar/linux-snd/">
Linux Multimedia Page
</A>  

<P>
Some of the Mailing Lists and Newsgroups I keep an eye on and where I get alot
of the information in this column:

<P> <A HREF="http://www.XCF.Berkeley.EDU/~gimp/">
		The Gimp User and Gimp Developer Mailing Lists</A>.
<BR> <A HREF="http://www.irtc.org">
		The IRTC-L discussion list</A>
<BR> <A HREF="news:comp.graphics.rendering.raytracing">
		comp.graphics.rendering.raytracing</A>
<BR> <A HREF="news:comp.graphics.rendering.renderman">
		comp.graphics.rendering.renderman</A>
<BR> <A HREF="news:comp.graphics.api.opengl">
		comp.graphics.api.opengl</A>
<BR> <A HREF="news:comp.os.linux.announce">
		comp.os.linux.announce</A>

<br>


<P>
<A NAME="future">
<H2>Future Directions</H2>
</A>
Next month:
<BLOCKQUOTE>
	I have no idea.  I have a ton of things that need doing, but I just
		haven't had time to figure out what I *should* do.  I still have part 3 of
		the BMRT series to do, which I plan on doing as part of the process of
		creating an animation.  The animation is another topic I'd like to do.
		I've also had requests for a number of other topics.  One good one was to
		cover the various Image Libraries that are available (libgr or its
		individual components, for example).  I have a review of Image Alchemy to
		do (long ago promised and still not done *sigh*).  Well, at least I'll
		never be short a topic.
</BLOCKQUOTE>

<P>
<A HREF="mailto:mjhammel@csn.net">
Let me know what you'd like to hear about!</A>

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Michael J. Hammel<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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


<BODY>
<HEAD>
<TITLE>
Graphics Muse
</TITLE>
</HEAD>

<BODY text="#000000" bgcolor="#ffffff"
	vlink="#fa3333" alink="#33CC33" link="#0000FA">

<!-- =============================================================
		This Page Designed by Michael J. Hammel.
		Permission to use all graphics and other content for private,
		non-commerical use is granted provided you give me (or the 
		original authors/artists) credit for the work.

		CD-ROM distributors and commercial ventures interested in 
		providing the Graphics Muse for a fee must contact me,
		Michael J. Hammel (mjhammel@csn.net), for permission.
     ============================================================= !-->

<A NAME="musings">
<table>
<tr>
<td>
<H2>More...</H2>
<BR clear=both>
<IMG SRC=../gx/hammel/musings.gif ALT="Musings" ALIGN="left" 
	HSPACE="0" VSPACE="0" WIDTH="247" HEIGHT="52">
</td>
</table>
</A>
<BR clear=both>

<table>
<tr><td>
<UL>
	<LI><A HREF="#1">DPI, LPI, Halftoning and other strange things</A>
	<LI><A HREF="#2">How many frames makes a movie?</A>
</UL></td>
</table>

<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
	VSPACE="5" WIDTH="1" HEIGHT="1">
<BR clear=both>
<table width=100%>
<tr>
	<td width="100%" align=right>
	<FONT size=1>
	&copy 1997 <A HREF="mailto:mjhammel@csn.net">Michael J. Hammel</A>
	</FONT></td>
<tr>
	<td bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>
</table>

<P>

<A NAME="1">
<H4>
</H4>
</A>
<BR>
&nbsp;&nbsp;&nbsp;
Raster images are always discussed in terms of pixels, the
number of dots on the screen that make up the height and width of the
image.  As long as the image remains on the computer there is no need to
worry about converting this to some other resolution using some other
terminology.  Pixel dimensions work well for Web pages, for example.

<BR>
&nbsp;&nbsp;&nbsp;
The reality is that many images aren't very useful if they remain on the
computer.  Their real usefulness lies in their transfer to film, video tape or
printed paper such as magazines or posters.  The trouble with this is that
printing an image is much different than simply viewing it on the screen.
There are problems related to color conversions (RGB to CMYK), for example.
We'll have to deal with that some other time (like when I learn something
about it).  Printing also requires a different set of dimensions
because of the way they work.  Printed images are handled by the number of
Dots Per Inch that the printer can handle.  In order to get the image to
look the way you want it on the printer, you'll need to understand how
printers work.

<BR>
First, some background information:

<UL>
	<LI>Printer resolution is given in dots per inch (DPI).  That is the number
		of dots the device can output in an inch.
	<LI>
		Lines per inch (LPI) relates to halftoning.  Many devices (such as
		printers) only have bilevel channels, that is, either they paint a
		colored dot or they don't (there are no smooth steps).  Halftoning
		means using different patterns of dots to simulate a greater
		number of color shades.  Obviously, several dots must be used in
		certain on/off combinations to simulate having more shades.
</UL>
LPI comes from the world of photography while DPI comes from the world of 
design.  Whether it makes sense to speak of DPI resolution for a raster image
depends on what you'll be using that image for.  Most magazines, such as 
Time, are printed with 153 LPI or less.  Newspapers such as the Wall Street 
Journal are printed at 45-120 LPI.

<BR>
&nbsp;&nbsp;&nbsp;
<I>Halftoning masks</I> are the patterns used to create the shades of color
or levels of gray seen in the lines per inch on the printed media.
Most masks are square.  Let's say you have a printer which can do 300 DPI,
that is, it can print 300 dots in an inch.  If the halftoning mask is
4 pixels wide, then you'll have 300/4 = 75 lines per inch (LPI) for
the halftones.  That is the effective resolution of the device, since
you are interested in nice shaded printouts and not in single bilevel
dots.

<BR>
&nbsp;&nbsp;&nbsp;
An ultra-expensive 1200 DPI typesetter will be able to do 300 LPI if
you use 4-pixel wide halftone masks.  Of course, the larger the
halftone size, the more shades you'll get, but the lower the effective
resolution will be.

<BR>
&nbsp;&nbsp;&nbsp;
If you are only going to display an image on your screen, then perhaps
speaking of DPIs in the image is pointless.  You'll be mapping one
pixel in the image to one pixel on your display, so how physically
big the image looks will depend only on the size of your monitor.
This makes sense; when you create images for display on a monitor, you
usually only think in terms of available screen space (in pixels), not
about final physical displayed size.  I.e. when you create a web page
you try to make your images so that they'll fit on the browser's
window, regardless of the size of your monitor.

<BR>
&nbsp;&nbsp;&nbsp;
The story is a bit different when you are creating images for output
on a hardcopy device.  You see, sheets of paper have definite physical
sizes and people do care about them.  That's why everyone tries to
print Letter-sized documents on A4 paper and vice-versa.

<BR>
&nbsp;&nbsp;&nbsp;
The simplest thing to do is to just create images considering the
physical output resolution of your printer.  Let's say you have a 300
DPI printer and you create an image which is 900 pixels wide.  If you
map one image pixel to one device pixel (or dot), you'll get a 3-inch wide
image:  
<P>
<FONT size=2>
<CENTER>
900 pixels in image  / 300 dots per inch for printing = 3 inches of image.
</CENTER>
</FONT>

<BR>
&nbsp;&nbsp;&nbsp;
That sucks, because most likely your printer uses bilevel dots and
you'll get very ugly results if you print a photograph with one image
pixel mapped to one device pixel.  You can get only so many color
combinations for a single dot on your printer --- if it uses three
inks, Cyan/Magenta/Yellow (CMY) and if it uses bilevel dots (spit ink
or do not spit ink, and that's it), you'll only be able to get a
maximum of 2*2*2 = 8 colors on that printer.  Obviously 8 colors is
not enough for a photograph.

<BR>
&nbsp;&nbsp;&nbsp;
So you decide to do the Right Thing and use halftoning.  A halftone
block is usually a small square of pixels which sets different
dot patterns depending on which shade you want to create.
Let's say you use 4-pixel square halftones like in the previous
paragraphs.  If you map one image pixel to one halftone block, then
your printed image will be four times as large as if you had simply
mapped one image pixel to one printer dot.

<BR>
&nbsp;&nbsp;&nbsp;
A good rule of thumb for deciding at what size to create images is the
following.  Take the number of lines per inch (LPI) that your printer
or printing software will use, that is, the number of halftone blocks
per inch that it will use, and multiply that by 2.  Use that as the
number of dots per inch (DPI) for your image.

<BR>
&nbsp;&nbsp;&nbsp;
Say you have a 600 DPI color printer that uses 4-pixel halftone
blocks.  That is, it will use 600/4 = 150 LPI.  You should then create
your images at 150*2 = 300 DPI.  So, if you want an image to be 5
inches wide, then you'll have to make it 300*5 = 1500 pixels wide.
Your printing software should take all that into account to create the
proper halftoning mask.  For example, when you use PostScript, you can
tell the interpreter to use a certain halftone size and it will convert
images appropriately.  However, most Linux software doesn't do this yet.
If you have a need to create an image destined for print you should check
with the printer to get either the LPI or DPI and the number of pixels used
in the Halftone that will be used.  You can then compute the number of
pixels you'll need in your image.

<BR>
&nbsp;&nbsp;&nbsp;
The story is very different if you do not use regular halftoning
masks.  If you use a stochastic (based on randomness) dithering
technique, like Floyd-Steinberg dithering, then it may be a good idea
to design images with the same resolution as the physical (DPI)
resolution on your output device.  Stochastic screening is based on
distributing the dithering error over all the image pixels, so you
(usually) get output without ugly Moire patterns and such.  Then
again, using the same physical resolution as your output device can
result in really <B>big</B> images (in number of bytes), so you may want to
use a lower resolution.  Since the dithering is more or less random,
most people won't notice the difference.

<P>
&nbsp;&nbsp;&nbsp;
My thanks to Federico Mena Quintero for the majority of this discussion.
He summarized the discussion for the GIMP Developers Mailing List quite
some time back.  Fortunately, I happened to hang onto this his posting.

<P>

<table width=100%>
<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>
</table>


<P>

<!-- ------------------------------------------------------------- -->
<!-- Part 2, if any                                                -->
<!-- ------------------------------------------------------------- -->

<A NAME="2">
<H4>How many frames makes a movie?</H4>
</A>

<BR>
&nbsp; &nbsp; &nbsp;
The following comes from Larry Gritz in response to a question I posed to
him regarding something I noticed while framing through my copy of <I>Toy
Story</I> one day.  I thought his explanation was so good it deserved a
spot in the Muse.  So here it is.

<P>
<I>
BTW:  I noticed, as I framed through various scenes, that I had 4 frames of
movement and one frame of "fill" (exactly the same as the previous frame).
Standard video is 30 frames/sec and I've read that 15 or 10 animated frames
is acceptable for film but that this requires some fill frames.  Lets see,
if you did 15 frames per second you could actually render 12 frames with 3
fill frames.  Is this about right?
</I>

<P>
&nbsp; &nbsp; &nbsp;
No, we render and record film at a full 24 frames a second.  We
do not "render on two's", as many stop motion animators do.

<BR>
&nbsp; &nbsp; &nbsp;
When 24 fps film is converted to video, something called 3:2 pulldown
is done.  Video is 30 frames, but actually 60 fields per second --
alternating even and odd scanlines.  The 3:2 pulldown process records
one frame for three fields of video, then the next frame for 2 fields
of video.  So you get something like this:

<table>
<tr>
	<th align=center> video frame   
	<th align=center> video field   
	<th align=center> film frame
<tr>
	<td align=center> 1
	<td align=center> 1 (even)
	<td align=center> 1
<tr>
	<td align=center> 1
	<td align=center> 2 (odd)
	<td align=center> 1
<tr>
	<td align=center> 2 
	<td align=center> 1 (even)
	<td align=center> 1
<tr>
	<td align=center> 2 
	<td align=center> 2 (odd)
	<td align=center> 2 
<tr>
	<td align=center> 3
	<td align=center> 1 (even)
	<td align=center> 2
<tr>
	<td align=center> 3
	<td align=center> 2 (odd)
	<td align=center> 3
<tr>
	<td align=center> 4
	<td align=center> 1 (even)
	<td align=center> 3
<tr>
	<td align=center> 4
	<td align=center> 2 (odd)
	<td align=center> 3
<tr>
	<td align=center> 5
	<td align=center> 1 (even)
	<td align=center> 4
<tr>
	<td align=center> 5
	<td align=center> 2 (odd)
	<td align=center> 4
</table>

So every 4 film frames get expanded into 5 video frames, and hey,
30/24 == 5/4 !  This is how all films are transferred to video
in a way that doesn't mess up the original timing.

<BR>
&nbsp; &nbsp; &nbsp;
Your video probably only shows the first field when you're paused,
which makes it look like 1 in 5 frames is doubled, but it's actually
just a bit more complicated than that.


<P>

<table width=100%>
<tr>
	<td colspan=4 bgcolor="#000000" cellpadding=0 cellspacing=0 valign=top>
		<IMG SRC=../gx/hammel/cleardot.gif ALT="indent" ALIGN="left" 
			HSPACE="0" WIDTH="0" HEIGHT="0"></td>
</table>

<table width=100%>
<tr>
	<td align=right>
		<FONT size=1>
		&copy 1997 by <A HREF="mailto:mjhammel@csn.net">Michael J. Hammel</A>
		</FONT>
</table>


<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center>
<H2>Intranet Hallways Systems Based on Linux</H2>
<H4>By Justin Seiferth,
<a href="mailto:seifertj@af.pentagon.mil">seifertj@af.pentagon.mil</a>
</center></H4><P><HR>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.0b5 [en] (Win16; I) [Netscape]">
<p>
<CENTER><FONT FACE="Arial,Helvetica"><FONT SIZE=+2>Using Linux: An Intranet
Hallways System</FONT></FONT></CENTER>
<FONT FACE="Arial,Helvetica">Like many of you, I like to use Unix, esp.
Linux when ever and where ever it seems to be the best fit for the job.
This means I have to work fast and be creative; making opportunities when
and where ever I can't take them. I had just such an opportunity recently
when I put together a system which allows <A HREF="http://www.disa.mil">my
workplace</A> to publish the common file sharing areas of its Microsoft
Windows NT based desktops. I thought others might be interested in this
system and created a <A HREF="ftp://www.disa.mil/pub/linux_gazette/">distribution</A>
have your own Intranet Hallways system or as the popular press would put
it an "enterprise information warehouse".&nbsp; Don't let on how easy it
is and you'll be able to make a bundle reselling the system.&nbsp; Here's
what you need to do to make it happen:</FONT>
<LI>
<FONT FACE="Arial,Helvetica"><A HREF="#Show">Kernel Options</A></FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica"><A HREF="#utilities">Support Utilities</A></FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica"><A HREF="#pages">HTML pages</A> and <A HREF="#scripts">scripts</A></FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica"><A HREF="#Stage">Some Configuration Changes</A></FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica"><A HREF="#install">A Quick installation</A></FONT></LI>

<LI>
<FONT FACE="Arial,Helvetica"><A HREF="#Applause">Other things</A> you might
do with it</FONT></LI>


<P><FONT FACE="Arial,Helvetica">Once you've retrieved the distribution,
it shouldn't take more than an hour to get things running; let <A HREF="mailto:seiferth@erols.com">me</A>
know what you think about the system when you do.</FONT>

<P><B><FONT FACE="Arial,Helvetica"><FONT SIZE=+1>The Opportunity</FONT></FONT></B>
<BR><FONT FACE="Arial,Helvetica">Microsoft's Windows NT suffers from a
file system inherited from its MS-DOS lineage. For those of you who haven't
had the displeasure this means file systems are cryptically named A-Z,
can't automount and the process of manually mounting them is much more
complicated and error prone than the more user friendly tools like <A HREF="http://www.redhat.com">Red
Hat's</A>
fstool. These problems have been worked around somewhat at my agency through
a series of .bat files which mount server drives in standard places so
users can say "Just look at the T: drive" or something similar. This still
left users with problems searching tens of thousands of files spread thousands
of directories located on servers across the world. The Microsoft Windows
NT operators were trying to figure out a way to present an efficient, agency-wide
view of these servers so that users could easily find and retrieve things.
We used Linux to integrate and publish these file sharing areas on our
intranet.</FONT>

<P><B><FONT FACE="Arial,Helvetica"><FONT SIZE=+1>Before the<A NAME="Show"></A>Show</FONT></FONT></B>
<BR><FONT FACE="Arial,Helvetica">Key to the system is the ability of the
Linux kernel (later 2.0 and 2.1 versions) to mount <A HREF="http://www.informatik.hu-berlin.de:80/~loewis/ntfs/">local</A>
NTFS and remote <A HREF="http://samba.anu.edu.au/cifs/docs/smb-history.html">SMB</A>
volumes. There's nothing esoteric about enabling or using this option,
just <A HREF="http://www.disa.mil/.drafts/smbselect.gif">check it off </A>when
you're compiling the kernel. (Don't run away at the thought of compiling
a kernel! Most <A HREF="http://www.xnet.com/~blatura/linux.shtml#src">distributions</A>
include these options in their default kernel so you probably don't have
do anything- just try it out </FONT><TT>smbmount</TT><FONT FACE="Arial,Helvetica">
and see if it works). If any of your network shares are coming from Windows
95 machines, make sure to also select the patch for Windows 95 machines
and long file names. If you are just serving Microsoft Windows NT or Samba
shares, don't use the Windows 95 option as I've found it has a noticeable
impact on the speed of the SMB mount and file operations.</FONT>

<P><FONT FACE="Arial,Helvetica">Once you've got an SMB capable kernel installed
you're almost ready to go. The other critical components are the<A NAME="utilities"></A><A HREF="http://134.76.140.96/linux-lan/">smbfs</A>
utilities, the <A HREF="ftp://ftp.caldera.com/pub/mirrors">wu-ftpd</A>
suite, a <A HREF="http://www.apache.org">web server</A>, a search engine
and a javascript - capable <A HREF="http://home.netscape.com">browser</A>.
Your distribution has probably installed an operational FTP and HTTP server
and most people nowadays have a Netscape browser installed so all you really
need to do is compile the smbfs utilities and setup a search engine. If
most of the documents on your SMB shares are in text or HTML format, there
are a number of search engines that you can choose from- htdig and glimpse
come to mind. If you want to be able to search non-HTML documents then
you might need one of the commercial search engine. We use Netscape's catalog
server for Solaris.</FONT>

<P><FONT FACE="Arial,Helvetica">The system will work without a javascript
browser; it just won't be a easy to use.</FONT> <FONT FACE="Arial,Helvetica">Hit
the links to grab the software tools you need from the list above set it
up. If you run into problems, be sure and check out the linux HOWTOs and
mailing list documentation on the sites offering the software.&nbsp; If
you have RedHat's RPM or Debian's package tools somebody else has probably
already made a binary available; just check your local archive.</FONT>

<P><B><FONT FACE="Arial,Helvetica"><FONT SIZE=+1>Set and<A NAME="Stage"></A>Stage</FONT></FONT></B>
<BR><FONT FACE="Arial,Helvetica">I'm assuming you've tested your kernel
to make sure you can indeed mount SMB shares and that your ftp server is
up and alive. Before we can start serving your "enterprise information
warehouse" there are a few files which need to be added to or modified
on your system in addition to the <A HREF="http://www.w3.org">HTML</A>
files we'll discuss later. The first addition is a new init.d file for
automatically mounting SMB shares when you boot your system. Then we'll
enable a few features of your FTP server.</FONT>

<P><FONT FACE="Arial,Helvetica">First, let's contend with mounting shares
automatically. I do this with a standard run-level 3/5 initscript; here's
an excerpt with the most critical lines:</FONT>
<BR>
<HR SIZE=1 WIDTH="100%">
<BR><B><TT># Check that networking is up.</TT></B>
<BR><B><TT>[ ${NETWORKING} = "no" ] exit 0</TT></B>

<P><B><TT># See how we were called.</TT></B>
<BR><B><TT>case "$1" in</TT></B>
<BR><B><TT>start)</TT></B>
<BR><B><TT>echo -n "Mounting SMB shares..."</TT></B>
<BR><B><TT>echo "Mounting share1"</TT></B>
<BR><B><TT>/usr/sbin/smbmount //hostname/share /home/ftp/mountpoint -n
-uftp -gftp -f755 -Ihostnames_IP_address</TT></B>
<BR><B><TT># mount your other shares</TT></B>
<BR><B><TT>echo ""</TT></B>
<BR><B><TT>;;</TT></B>
<BR><B><TT>stop)</TT></B>
<BR><B><TT>echo -n "Umounting SMB shares..."</TT></B>
<BR><B><TT>/usr/sbin/umount /home/ftp/mountpoint</TT></B>
<BR><B><TT>#insert other mount comments here ....</TT></B>
<BR><B><TT>echo ""</TT></B>
<BR><B><TT>;;</TT></B>
<BR><B><TT>*)</TT></B>
<BR><B><TT>echo "Usage: hallways {start|stop}"</TT></B>
<BR><B><TT>exit 1</TT></B>
<BR><B><TT>esac</TT></B>
<BR>
<HR SIZE=1 WIDTH="100%">
<BR><FONT FACE="Arial,Helvetica">The </FONT><TT>smbmount(8)</TT><FONT FACE="Arial,Helvetica">
and </FONT><TT>umount(8)</TT><FONT FACE="Arial,Helvetica"> man pages have
more details on what all those flags are about. Basically, we are mounting
the shares into a directory accessible via anonymous FTP. The permissions
and groups are "fake" in the sense that they don't map to anything sensible
in the NT file system; they are only for the convenience and protection
of the Unix system. Our common shares are read/write for everyone; if your
site is more cautious you may want to review the implications of the file
permissions and ownership or perhaps impose access controls using your
file system and web server's security mechanisms.</FONT>

<P><FONT FACE="Arial,Helvetica">Now, let's take a look at the scripts used
to startup your FTP server. You have to make sure you're taking advantage
of wu-ftpd's </FONT><TT>ftpaccess(5)</TT><FONT FACE="Arial,Helvetica">
configuration capabilities. If you start your FTP daemon using the </FONT><TT>-a</TT><FONT FACE="Arial,Helvetica">
option the </FONT><TT>/etc/ftpaccess</TT><FONT FACE="Arial,Helvetica">
file will allow you to customize many aspects of the FTP server's performance
and capabilities. Normally, you enable the -a option of your FTP server
in your </FONT><TT>/etc/inetd.conf</TT> <FONT FACE="Arial,Helvetica">file;
some people run their FTP full time, in this case check out the startup
files in your </FONT><TT>/etc/rc.d/rc3.d</TT><FONT FACE="Arial,Helvetica">
or </FONT><TT>rc5.d</TT><FONT FACE="Arial,Helvetica"> directory and add
the option when the daemon is started up. Among the benefits of using </FONT><TT>ftpaccess</TT><FONT FACE="Arial,Helvetica">
is the ability to specify header and trailer messages in the directory
listings generated by your FTP server. These directives, </FONT><TT>message
</TT><FONT FACE="Arial,Helvetica">and </FONT><TT>readme </TT><FONT FACE="Arial,Helvetica">are
key to our system's capabilities.</FONT>

<P><A NAME="pages"></A><FONT FACE="Arial,Helvetica">We created an HTML
file within the directory structure accessible to the FTP daemon; in our
case it is called 'welcome.html', this file is placed in the root directory
of the FTP daemon's file area and the entry in </FONT><TT>ftpaccess </TT><FONT FACE="Arial,Helvetica">looks
like:</FONT>
<BR><B><TT>...</TT></B>
<BR><B><TT>message /welcome.html login</TT></B>
<BR><B><TT>...</TT></B>
<BR><FONT FACE="Arial,Helvetica">Now the contents of </FONT><TT>welcome.html</TT><FONT FACE="Arial,Helvetica">
will be displayed at the beginning of directory listings. The contents
of </FONT><TT>welcome.html</TT><FONT FACE="Arial,Helvetica"> are a little
tricky if you're not familiar with javascript. They are designed to both
dynamically tailor the HTML based on the position of the page within a
browser.&nbsp; These dynamic web pages tailor the help message to the context
of the display.</FONT>
<BR>
<HR SIZE=1 WIDTH="100%">
<BR><B><TT>&lt;HTML></TT></B>
<BR><B><TT>&lt;HEAD></TT></B>
<BR><B><TT>&lt;SCRIPT LANGUAGE="JavaScript"></TT></B>

<P><A NAME="scripts"></A><B><TT>function OpenNewWindow()</TT></B>
<BR><B><TT>{</TT></B>
<BR><B><TT>alert("To Upload a file go to file...Upload File on the browser's
button bar")</TT></B>
<BR><B><TT>parent.frames[2].location.protocol = "ftp:"</TT></B>
<BR><B><TT>window.open(parent.frames[2].location.href)</TT></B>
<BR><B><TT>}</TT></B>

<P><B><TT>&lt;/SCRIPT></TT></B>
<BR><B><TT>&lt;/HEAD</TT></B>
<BR><B><TT>&lt;BODY bgcolor="#FFFFFF"></TT></B>
<BR><B><TT>&lt;FORM></TT></B>
<BR><B><TT>&lt;SCRIPT LANGUAGE="JavaScript"></TT></B>
<BR><B><TT>if (self!=top) {</TT></B>
<BR><B><TT>document.write('&lt;i>&lt;B>Hi!&lt;/b>&lt;/i>' + "You can preview,
download files or search for information here.&lt;p>You can also upload
a file&lt;br>" + '&lt;FORM>' +</TT></B>
<BR><B><TT>'&lt;CENTER>' + '&lt;INPUT TYPE="button" Value="Upload File"
onClick="OpenNewWindow()</TT></B>
<BR><B><TT>">' + '&lt;/CENTER>' + '&lt;/FORM>');</TT></B>
<BR><B><TT>}</TT></B>
<BR><B><TT>else</TT></B>
<BR><B><TT>{</TT></B>
<BR><B><TT>document.write('&lt;i>&lt;B>Hi!&lt;/b>&lt;/i> This is a special
screen for adding information to hallways.&lt;p> To Upload a file, go to
FILE | Upload, like &lt;a href="http://webserver/access_directory/<A HREF="http://www.disa.mil/.drafts/file_upload.gif">file_upload.gif</A>"></TT></B>
<BR><B><TT>this&lt;/a></TT></B>
<BR><B><TT>&lt;p>');</TT></B>
<BR><B><TT>}</TT></B>
<BR><B><TT>&lt;/SCRIPT></TT></B>
<BR><B><TT>&lt;/FORM></TT></B>
<BR><B><TT>&lt;/BODY></TT></B>
<BR><B><TT>&lt;/HTML></TT></B>
<BR>
<HR SIZE=1 WIDTH="100%">

<P><FONT FACE="Arial,Helvetica">This interface is not the first one we
tried. I really wanted to make the system intuitive; then we'd have to
spend less time answering questions and could spend more time working on
new ideas. The tests we conducted showed most people knew how to download
files but were not aware you could upload files or view the contents of
non-HTML files. We tried HTTP uploads and downloads but settled on the
combination of FTP and HTTP generated screens. We needed a design which
allowed easy navigation around a complicated system and kept at least minimal
help hints in front of the users all the time. The final HTTP based frame
design allowed us to put together an attractive interface. Encapsulating
the FTP file display simplified uploads and downloads. Unlike a web server,
our FTP server labels all files as a single MIME type allowing us to use
a single helper application to easily display all files.; Getting this
preview function to work will require editing the association of mine types
with an application on the user's computer. We use a universal viewer,
you can use one of these if your network already has one installed or you
might investigate one of the many plug-ins which allow viewing files within
the browser itself.</FONT>

<P><B><TT><FONT FACE="Arial,Helvetica"><FONT SIZE=+1>The&nbsp;<A NAME="Curtain"></A>Curtain
Rises</FONT></FONT></TT></B>
<BR><FONT FACE="Arial,Helvetica">&nbsp;<A NAME="install"></A>Now the majority
of the work and trickery is done; all that remains is a frame based <A HREF="http://www.disa.mil/.drafts/interface.gif">user
interface</A>, a few snazzy graphics and some help files. In a nutshell,
if the FTP listing is contained within a frame then the if part of the
conditional is presented. This HTML allows the user to press an "upload"
button which will pop open another browser instance with the FTP directory
within the root window. When </FONT><TT>welcome.html</TT><FONT FACE="Arial,Helvetica">
is displayed within this root window, it contains instructions on how to
upload a file using the FTP capabilities of the browser.</FONT> <FONT FACE="Arial,Helvetica">The
best way to understand how the code works is of course to just load it
up and experiment.</FONT>

<P><FONT FACE="Arial,Helvetica">This isn't a tutorial on HTML so I'll just
let you know you can download this whole package (minus a few of the graphics
we used in our user interface) from ftp://www.disa.mil/pub/linux_gazette_stuff.tgz.
We can't redistribute some of the graphics we use but you can just draw
up your own and stick them into HTML code.</FONT>

<P><FONT FACE="Arial,Helvetica">During your review of the code you may
notice that our frame definition document distributes this system across
several machines; for us this is an important feature. We make use of local
proxy servers for FTP and HTTP traffic. These proxy servers keep down the
loading of our backbone. Our system is distributed such that the web server
documents and graphics will be served from a local departmental web server
while the FTP server distributes information from another, centralized
location. Since the proxy and web are local to our subnet documents stored
on the SMB hallways area are served from the proxy (cache)- speeding up
the file transfer times dramatically and reducing our wide area network
traffic. We are also using the Solaris version of the Netscape Catalog
Server to allow users to expediently find any document or content within
a wide variety of popular Unix, MacIntosh and Windows application formats.
This feature provides some much needed help to users who must retrieve
one of several hundred thousand documents stored on servers spread across
the globe; it was absolutely infeasible using the Microsoft Windows NT
file manager search feature previously recommended by the Microsoft Windows
NT operators</FONT>

<P><A NAME="Applause"></A><B><TT><FONT FACE="Arial,Helvetica"><FONT SIZE=+1>Applause
and Royalties</FONT></FONT></TT></B>
<BR><FONT FACE="Arial,Helvetica">You can provide many other enhancements
such as browser access to multiple file system types (NFS, Appleshare,
SMB, AFS, etc) and internet/intranet FTP areas are easily added. We are
also working on a management add-on using PHP/FI and Postgress to present
users with a fully graphical file upload facility which will also store
meta data on documents such as the originator of the information, the originators
e-mail address, etc. In fact I think with a little more work this system
is a pretty good replacement for some the proprietary commercial document
management applications that cost tens of thousands of dollars.</FONT><FONT FACE="Arial,Helvetica"></FONT>

<P><FONT FACE="Arial,Helvetica">I hope these ideas and this system will
help you and your workplace out. If you have other creative examples of
simple systems that help bring people working around the world together,
<A HREF="mailto:seiferth@erols.com">I'd</A> like to here about them. Thanks
for listening...</FONT>

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Justin Seiferth<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center>
<H2>Linux and Artificial Intelligence</H2>
<H4>By John Eikenberry,
<a href="mailto:jae@ai.uga.edu">jae@ai.uga.edu</a></H4>
</center>
<P><HR>


    Three years ago when I was starting my last year of my masters of
    philosophy degree.  I found myself asking that eternal question,
    "Ok, now what in the hell am I going to do?" Not wanting to
    continue on in philosophy, what could a philosopher (and computer
    enthusiast) do that would be both fun and profitable. Artificial
    Intelligence of course (but you saw that coming didn't you?)
    <P></P>

    I had fallen in love with Linux in late 1993 and after seeing all
    the Suns scattered about the AI Dept, it seemed like the perfect
    OS for AI research. Guess what, I was right. I have found so many
    resources available for doing AI research on Linux that I had to
    write them all down (warning: blatant plug follows), thus my <a
    href="http://www.ai.uga.edu/students/jae/ai.html">Linux AI/Alife
    mini-HOWTO</a> came into being.  <P></P>
      
    Ok, enough of this drivel, now on to the meat of the article.
    <P></P>
      
    Modern AI is a many faceted field of research, dealing with
    everything from 'traditional' logic based systems, to
    connectionism, evolutionary computing, artificial life, and
    autonomous agents. With Unix being the main platform for AI, there
    are many excellent resources available for Linux in each of these
    areas. The rest of this article I'll give a brief description
    of each of these areas along with one of the more interesting
    resources available to the Linux user.  <P></P>

    <hr>
    
    <DL>

      <DT><b>PROGRAMMING LANGUAGES</B>
	
      <DD>
	I know I didn't mention this above, but there are many
	programming languages that have been specifically designed
	with AI applications in mind.
      </DD>
      
    <P></P>

      <DT>DFKI OZ<BR>
	Web page: <A HREF="http://www.ps.uni-sb.de/oz/">www.ps.uni-sb.de/oz/</A><BR>
	FTP site: <A HREF="ftp://ps-ftp.dfki.uni-sb.de/pub/oz2/">ps-ftp.dfki.uni-sb.de/pub/oz2/</A>
	
      <DD>
	Oz is a high-level programming language designed for
	concurrent symbolic computation.  It is based on a new
	computation model providing a uniform and simple foundation
	for several programming paradigms, including higher-order
	functional, constraint logic, and concurrent object-oriented
	programming.  Oz is designed as a successor to languages such
	as Lisp, Prolog and Smalltalk, which fail to support
	applications that require concurrency, reactivity, and
	real-time control.  <P></P>

	DFKI Oz is an interactive implementation of Oz featuring a
	programming interface based on GNU Emacs, a concurrent
	browser, an object-oriented interface to Tcl/Tk, powerful
	interoperability features (sockets, C, C++), an incremental
	compiler, a garbage collector, and support for stand-alone
	applications.  Performance is competitive with commercial
	Prolog and Lisp systems.
      </DD>
    </DL>
    
    <hr>

    <DL>

      <DT><B>TRADITIONAL ARTIFICIAL INTELLIGENCE</B>
	
      <DD>
	Traditional AI is based around the ideas of logic, rule
	systems, linguistics, and the concept of rationality.  At its
	roots are programming languages such as Lisp and Prolog.
	Expert systems are the largest successful example of this
	paradigm.  An expert system consists of a detailed knowledge
	base and a complex rule system to utilize it.  Such systems
	have been used for such things as medical diagnosis support
	and credit checking systems.
      </DD>
      
    <P></P>

      <DT>SNePS<BR> 
	Web site: <A
	HREF="http://www.cs.buffalo.edu/pub/sneps/WWW/">www.cs.buffalo.edu/pub/sneps/WWW/</A><BR>
	FTP site: <A
	HREF="ftp://ftp.cs.buffalo.edu/pub/sneps/">ftp.cs.buffalo.edu/pub/sneps/</A>
	
      <DD>
	The long-term goal of The SNePS Research Group is the design
	and construction of a natural-language-using computerized
	cognitive agent, and carrying out the research in artificial
	intelligence, computational linguistics, and cognitive science
	necessary for that endeavor. The three-part focus of the group
	is on knowledge representation, reasoning, and natural-language
	understanding and generation. The group is widely known for its
	development of the SNePS knowledge representation/reasoning
	system, and Cassie, its computerized cognitive agent.
      </DD>
    </DL>
    
    <hr>

    <DL>

      <DT><B>CONNECTIONISM</B> 

      <DD>
	Connectionism is a technical term for a group of related
	techniques. These techniques include areas such as Artificial
	Neural Networks, Semantic Networks and a few other similar
	ideas. My present focus is on neural networks (though I am
	looking for resources on the other techniques). Neural
	networks are programs designed to simulate the workings of the
	brain. They consist of a network of small mathematical-based
	nodes, which work together to form patterns of information.
	They have tremendous potential and currently seem to be having
	a great deal of success with image processing and robot
	control.
      </DD>

    <P></P>
      
      <DT>PDP++<BR>
	Web site: <a href="http://www.cnbc.cmu.edu/PDP++/">www.cnbc.cmu.edu/PDP++/</a><br>
	FTP site (US): <a href="ftp://cnbc.cmu.edu/pub/pdp++/">cnbc.cmu.edu/pub/pdp++/</a><br>
	FTP site (Europe): <a href="ftp://unix.hensa.ac.uk/mirrors/pdp++/">
unix.hensa.ac.uk/mirrors/pdp++/ </a>

      <DD>
	As the field of connectionist modeling has grown, so has the
	need for a comprehensive simulation environment for the
	development and testing of connectionist models. Our goal in
	developing PDP++ has been to integrate several powerful
	software development and user interface tools into a general
	purpose simulation environment that is both user friendly and
	user extensible. The simulator is built in the C++ programming
	language, and incorporates a state of the art script
	interpreter with the full expressive power of C++. The
	graphical user interface is built with the Interviews toolkit,
	and allows full access to the data structures and processing
	modules out of which the simulator is built. We have
	constructed several useful graphical modules for easy
	interaction with the structure and the contents of neural
	networks, and we've made it possible to change and adapt many
	things. At the programming level, we have set things up in
	such a way as to make user extensions as painless as
	possible. The programmer creates new C++ objects, which might
	be new kinds of units or new kinds of processes; once compiled
	and linked into the simulator, these new objects can then be
	accessed and used like any other.
      </DD>
    </DL>

    <hr>

    <DL>
      
      <DT><B>EVOLUTIONARY COMPUTING [EC]</B>

      <DD>
	Evolutionary computing is actually a broad term for a vast
	array of programming techniques, including genetic algorithms,
	complex adaptive systems, evolutionary programming, etc.
	The main thrust of all these techniques is the idea of
	evolution. The idea that a program can be written that will
	<i>evolve</i> toward a certain goal.  This goal can be
	anything from solving some engineering problem to winning a
	game.
      </DD>

    <P></P>

      <DT>GAGS<BR>
	Web site: <A HREF="http://kal-el.ugr.es/gags.html">kal-el.ugr.es/gags.html</A><BR>
	FTP site: <A HREF="ftp://kal-el.ugr.es/GAGS/">kal-el.ugr.es/GAGS/</A>

      <DD>
	Genetic Algorithm </a> application generator and class library
	written mainly in C++.
	<BR>
	As a class library, and among other thing, GAGS includes:
        <UL>
	  <LI>A <em>chromosome hierarchy</em> with variable length
	  chromosomes.  <em>Genetic operators</em>: 2-point crossover,
	  uniform crossover, bit-flip mutation, transposition (gene
	  interchange between 2 parts of the chromosome), and
	  variable-length operators: duplication, elimination, and
	  random addition.  
	  <LI><em>Population level operators</em> include steady
	  state, roulette wheel and tournament selection.
	  <LI><em>Gnuplot wrapper</em>: turns gnuplot into a
	  <code>iostreams</code>-like class.
	  <LI>Easy sample file loading and configuration file parsing.
        </ul>
	As an application generator (written in <code>PERL</code>),
	you only need to supply it with an ANSI-C or C++ fitness
	function, and it creates a C++ program that uses the above
	library to 90% capacity, compiles it, and runs it, saving
	results and presenting fitness thru <code>gnuplot</code>.
      </DD>
      
    </DL>

    <hr>

    <DL>

      <DT><b>ALIFE</b>
	
      <DD>
	Alife takes yet another approach to exploring the mysteries of
	intelligence.  It has many aspects similar to EC and
	connectionism, but takes these ideas and gives them a
	meta-level twist. Alife emphasizes the development of
	intelligence through <i>emergent</i> behavior of <i>complex
	adaptive systems</i>.  Alife stresses the social or group
	based aspects of intelligence. It seeks to understand life and
	survival. By studying the behaviors of groups of 'beings' Alife
	seeks to discover the way intelligence or higher order
	activity emerges from seemingly simple individuals. Cellular
	Automata and Conway's Game of Life are probably the most
	commonly known applications of this field.
      </DD>

    <P></P>

      <DT>Tierra<BR>
	Web site: <A HREF="http://www.hip.atr.co.jp/~ray/tierra/tierra.html">www.hip.atr.co.jp/~ray/tierra/tierra.html</A> <br>
	FTP site: <A HREF="ftp://alife.santafe.edu/pub/SOFTWARE/Tierra/">alife.santafe.edu/pub/SOFTWARE/Tierra/</A><BR>
	Alternate FTP site: <a href="ftp://ftp.cc.gatech.edu/ac121/linux/science/biology/">ftp.cc.gatech.edu/ac121/linux/science/biology/</a>

      <DD>
	Tierra's written in the C programming language. This source
	code creates a virtual computer and its operating system,
	whose architecture has been designed in such a way that the
	executable machine codes are evolvable. This means that the
	machine code can be mutated (by flipping bits at random) or
	recombined (by swapping segments of code between algorithms),
	and the resulting code remains functional enough of the time
	for natural (or presumably artificial) selection to be able to
	improve the code over time.
      </DD>

    </DL>

    <hr>

    <DL>

      <DT><B>AUTONOMOUS AGENTS</B>

      <DD>
	Also known as intelligent software agents or just agents, this
	area of AI research deals with simple applications of small
	programs that aid the user in his/her work. They can be mobile
	(able to stop their execution on one machine and resume it on
	another) or static (live in one machine). They are usually
	specific to the task (and therefore fairly simple) and meant
	to help the user much as an assistant would. The most popular
	(ie. widely known) use of this type of application to date are
	the web robots that many of the indexing engines
	(eg. webcrawler) use.
      </DD>

    <P></P>

      <DT>Ara<BR>
	Web site: <A HREF="http://www.uni-kl.de/AG-Nehmer/Ara/">www.uni-kl.de/AG-Nehmer/Ara/</A>

      <DD>
	Ara is a platform for the portable and secure execution of
	mobile agents in heterogeneous networks. Mobile agents in this
	sense are programs with the ability to change their host
	machine during execution while preserving their internal
	state. This enables them to handle interactions locally which
	otherwise had to be performed remotely. Ara's specific aim in
	comparison to similar platforms is to provide full mobile
	agent functionality while retaining as much as possible of
	established programming models and languages.
      </DD>
    </DL>

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, John Eikenberry<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center>
<H2>Linux: For Programmer Only--NOT!</H2>
<H4>By Mike List,
<a href="mailto:troll@net-link.net">troll@net-line.net</a></H4>
</center>
<P><HR>


<p>A couple of weeks ago, I was in a computer repair shop, trying to get a
deal on some hardware. The owner was trying to sell me on how cool Win95 is. I told
him I run Linux, then gave him the same hard/soft sell I give to every
one that I think might have use for Linux. I'm just a glutton for
punishment that way. He looked at me blankly, and said Unix is a
programmer's OS and it's not good for the average user. My turn to look
blankly, "Apparently that means that MS is an illiterate's OS, and not
good for the educated user". I didn't say that but I thought it
very loudly, and the conversation was over....

<p>I should have been more understanding of his attitude. Part of the reason
that Linux hasn't become more mainstream is the belief that you must be a 
highly trained programmer to make it run. That simply isn't the case.

<p>I hope to dispel some of this notion by pointing out my personal
experience with Linux. I am not a  programmer, I can barely write a good
shell script, but I am happy as a clam with my Slackware 3.2 beta
installation and only very infrequently boot to the DOS/WFWG 3.11
partition.
 
<p>Programming consists of writing code and compiling it, and
very little of this is required to effectively use Linux. Although many
applications are distributed as source code, the source code in most cases
require very little modification. Compiling source code, moreover is not
as complicated as it might seem. One command, "make" can usually 
accomplish this compilation and the advice to inspect MakeFiles can
largely be ignored(I probably should be horsewhipped for the previous
statement, but in my experience it's nonetheless true.).
There is no doubt that the Linux experience is enhanced by programming
ability. Linux does lend itself to source code modification, which is part
of the reason that its development and bug fixes have been so rapid, and
continuous improvement has been the hallmark of Linux, as well as the
whole of the GNU organization. 
 
<p>It might be closer to the truth to consider Linux a hacker's medium,
simply because "hacker" means different things to different people.I do
not consider myself a hacker, although several MS Windows users have
described me that way. "Hacker", "cracker" and "programmer" are, in my
opinion often erroneously used as synonyms, by people who haven't acquired
computer skills beyond user level.

<p>This myth is probably furthered by manufacturers of the more well known
OS, although not necessarily deliberately. Salesmanship requires
manipulation of certain facts, and in the case of OS software, this is
even more likely to be the case. FACT: There is no perfect OS. FACT:
Proponents of any OS tend to misplace that fact, even Linux advocates.

<p>In my own family there exists a conflict of opinion regarding WFWG 3.11
vs. Linux, which in time is growing weaker, with Linux becoming more
acceptable to my wife and kids(I have admittedly used subversive
techniques to accomplish this goal, such as leaving the computer on all
the time, in X). In addition, I made sure to download programs that were
similar to ones used by my kids in WFWG, such as xpaint, and Netscape, as
well as several games, both SVGALIB, and X. Koules is a big favorite, as
is SASTEROIDS, and some while ago I had a flight sim, FLY8111, that was a
litle too challenging so it quietly disappeared. I have put the BSD text
based games on as an inducement to get my 15 year old foster son to read
with some enthusiasm, with moderate success. All I have to do now is find
a word processing application that my wife will accept readily, and I'll
experience little resistance, hopefully to commandeering the drive that's
currently loaded with DOS and WFWG.When I recompiled the kernel, I added
sound support, and even though I've had a little trouble installing a
sound playing program, the kids and I still make use of a pair of 
extremely basic scripts based on the drivers README that allow us to
record and playback music. My sound card is an old eight bit SoundBlaster
so the sound quality isn't great, but I used it to rehearse the song I
sang at my oldest daughter's wedding, to good effect.

<p>Earlier, I stated that I'm not really capable of writing a decent shell
script, but very simple scripts similar to DOS batch files can be written
by nearly anyone, and examples of scripts abound on many sites, so
keystroke saving measures are available to any one who cares to try their
hand at it. The Linux Gazette, in particular has provided me with plenty
of template like scripts from which I have learned what little I know
about more advanced scripting.

<p>Linux advocates need, in my opinion to show patience with new users to a
greater degree than is currently the fashion. Banter among the initiated
has camaraderie value, but often puts off the prospective Linux convert.
When I was investigating Linux, I was told by one respondent to my usenet
posting "Do not meddle in the ways of wizards for their ways are subtle
and quick to anger." Hardly an encouraging statement, but with my
temperament it served to strengthen my resolve to show the SOB. I daresay
most casual computer users would not respond as I did, however.

<p>For the advancement of Linux I would recommend that you (Linux gurus)
choke on RTFM, unless you're sure that the person you are talking to has
acquired the skills needed to effectively read those FMs. My experience
has shown me that Linux distributions are almost as plug and play as
anything MS, IBM, Apple or anyone else has to offer. This provides a
jumping off point that will motivate users to learn skills that they
previously thought to be beyond them. By drawing them into Linux operation
slowly, they may become capable programmers, at which point they will have
made it their OS. A programmer's OS. 

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Mike List<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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


<center><h1>QPS, A New Qt-Based Monitor</h1></center>

<center>
<h4><a href="mailto: layers@vax2.rainis.net">by Larry Ayers</a></h4>
</center>
<P>
<hr>

<center><h3>Introduction</h3></center>

<p>The Qt C++ software development toolkit, by Norway's Troll Tech, has been
available long enough now that applications are beginning to appear which use
Qt rather than Motif, Xlib or Tcl/TK.  Programs developed with Qt have an
identifiable and distinctive appearance, with some resemblance to both Windows
and Motif.  There has been some resistance in the Linux community to
widespread adoption of the toolkit due to its hybrid licensing arrangement.
The toolkit is freely available in the Linux version, and its use in the
development of free, GNU-ish software is free and unrestricted, but for other
platforms and for commercial Linux software Qt is a commercial product.

<p>Remember when Tcl/Tk began to become widely used a couple of years ago?
Applications and utilities written with the toolkit began to proliferate, one
reason being that the learning curve is relatively gentle and a quick X
interface to a command-line utility could be contrived in a short time.  C
programmers found that the guts of a program could be written in C, while the
tricky X-windows interface could be quickly put together with Tcl/Tk.  This
benefited the Linux community as a whole, making it easier for new users and
developers to gain a foothold on the sometimes forbiddingly steep unix
terrain.

<p>Qt is an entirely different sort of toolkit than Tk, since it is based on
C++ and doesn't have the interpreted script layer of Tk.  (It more closely
resembles Bruce Wampler's <a href="http://www.cs.umn.edu/~wampler">V</a>
package, described in the Dec. 1996 issue of Linux Journal.)  In order to run QT
applications the <em>libqt</em> shared lib must be available as well as a
small executable, <em>moc</em>.  The Qt header (include) files are needed as
well to compile these applications from scratch.  The Qt source package is
available from <a href="ftp://ftp.troll.no/qt">the Troll Tech FTP site</a>.
Many small sample applications and demos, as well tutorials and ample
documentation, are included in the package.

<center><h3>QPS</h3></center>

<p><a href="mailto: f91-men@nada.kth.se">Mattias Engdegrd</a> has recently
written and released a process monitor similar to <em>top</em>, the classic
interface to <em>ps</em>.  <em>Top</em>, though a character-mode application,
is commonly run in an xterm or rxvt window in an X session.  There is one
problem with <em>top</em> in a window; scrolling down to the bottom of the
process list doesn't work, so the entries at the bottom are inaccessible
without resizing the window.  There may be a way to do this, but I haven't
been able to find one.  A minor issue, I suppose, since the
ordering of the entries can be easily toggled so that either the most
memory-intensive or the most CPU-intensive processes appear at the top.

<p>Qps is a more X-friendly application than <em>top</em>, with scrollbars and 
a mouse-oriented interface.  Clicking on any of the header categories, such as 
%CPU, SIZE, or %MEM, will sort the processes in descending order.
<kbd>Alt-k</kbd> will kill a highlighted process.  A series of bar-graphs
along with an xload-like meter form a status bar at the top of the window.
This can be toggled on and off from the menu-bar.  When Qps is iconified the
icon is the small xload-like pane from the status-bar, which is a nice touch.    

<p>Here's a screenshot:<br>
<p>

<img alt="Qps screenshot" src="./gx/ayers/qps.gif">
<hr>

<p>Qt applications don't use the X resources typical of most X programs; one
result of this is that Qps seems to be confined to the default white, gray,
and black color scheme.  It <em>can</em> generate a resource file in your home
directory which specifies which fields you'd like to see and whether the
status-bar should be visible or not. 

<p>Qps could be thought of as a sort of second-generation Linux utility,
written for users who rarely work from the console and boot directly into an X
session.  It should fit in well with the <a href="http://www.kde.org">KDE</a> 
suite of applications, which are also being developed with Qt.  Though it uses
more memory than <em>top</em> in an rxvt window, I find myself using it often
while running X.  I think this is a solid, dependable application and deserves
attention from the Linux community.

<center><h3>Availability</h3></center>

<p>Currently the Qps-1.1 source is in the Sunsite 
<a href="ftp://sunsite.unc.edu/pub/Linux/Incoming">Incoming</a> directory, but
will most likely end up in the
<a href="ftp://sunsite.unc.edu/pub/Linux/system/status">status</a> directory.
An alternate Swedish site is
<a href="ftp://ptah.lnf.kth.se/pub/qps">here</a>.


<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Larry Ayers<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center><h1>The UnRpm-Install Package</h1></center>
<center>

<h4><a href="mailto: layers@vax2.rainis.net">by Larry Ayers</a></h4>
</center>

<P><hr>
<center><h3>Introduction</h3></center>

<p>No matter what distribution of Linux you have installed, there will come a
time when you would like to install a package in one of the other
distribution's formats.  No one distribution has available every possible
package, and the updates to packages often depend on a volunteer's inclination 
and time constraints.

<p>On a reasonably current and well-maintained Linux system, most of the
quality source-code packages will compile without much effort beyond perusal
of the README and INSTALL files.  In other words, <em>*.rpm</em> and
<em>*.deb</em> packages aren't vitally necessary, though the ease of upgrading
or removal possible with these packages makes them a time-saving convenience.

<p>But few people have both the time and/or inclination to compile every new
program from source.  It <em>does</em> take more time than using a precompiled 
package, and often a package maintainer will have access to patches which
haven't yet been incorporated into an official release.  One of these patches
might be just what it takes to insure a successful installation on your
system! Therefore it stands to reason that the more different genera of
precompiled packages you have available, the wider the pool of available
software.

<p>A year and a half ago I was running a Slackware 3.0 system, but had used
Redhat just long enough to appreciate the value of an <b>rpm</b> package.  As I
remember, there were a few pieces of software which I was unable, no matter
what tweaking I did, to successfully compile.  The <b>rpm</b>'s available for those
packages were tempting, but I didn't want to start from scratch and reinstall
the Redhat Linux distribution just for a few packages.  Poking around the
Redhat FTP site, I saw that the source for the then-current version of <b>rpm</b>
was available, and after various trials and tribulations I managed to
successfully compile and install it.  The crucial factor which made it all
work was downloading and installing a newer version of <i>cpio</i>, which was
right there in the Redhat <b>rpm</b> directory.  It wasn't the easiest installation
I've ever done, but I don't blame the folks at Redhat for not making it a
no-brainer.  After all, they evidently worked long and hard developing the <b>rpm</b> 
package system and they surely wanted to leverage its value in influencing
users to buy their distribution.  Redhat is to be commended for resisting
purely commercial urges and making <b>rpm</b> freely available.

<p>Two distributions later, I never have gotten around to reinstalling <b>rpm</b>,
partly because the Debian distribution has a utility called <b>alien</b>,
which will convert an <em>*.rpm</em> file into a <em>*.deb</em> file.  This is 
a nice utility, but sometimes I'd just like to poke around inside a package
and see what's there without actually installing it.  Both <b>rpm</b> and Debian's
<b>dpkg</b> utility have command-line switches for just listing the
contents, or extracting individual files from a package.  These aren't the
sort of switches I would use often enough to memorize, and it's a pain to read 
the man page each time.  So I gradually meander my way to the point of this
article...

<center><h3>UnRpm-Install</h3></center>

<p>Recently, in nearly daily updates, <a href="mailto: robotti@pop.erols.com">
Kent Robotti</a> has been releasing to the Sunsite archive site a
package of programs and scripts which simplify working with these various
package formats.  UnRpm is most useful when used in conjunction with the 
<b>Midnight Commander</b> file manager, as one component of the package is a
set of entries meant to be appended to the <em>mc</em> user menu.

<p>This is what the package includes:<br>

<ul>
  <li>the version of <b>cpio</b> which works well with <b>rpm</b>
  <li>two shell scripts from the Slackware distribution, <b>installpkg</b>
      and <b>removepkg</b>
  <li><b>rpm2cpio</b>, a program from Redhat which converts an <b>rpm</b>
      archive to a <b>cpio</b> archive
  <li><b>dpkgdeb</b>, a program from the Debian distribution which unpacks,
      packs, or provides information about a Debian archive file
  <li><b>unrpm</b> and <b>undeb</b>, two shell scripts which can either be 
      used as is or be called by the <b>Midnight Commander</b>.
  <li><b>Update.mc</b>, a shell script which will append entries for the above
      scripts and programs to the <kbd>/usr/lib/mc/mc.menu</kbd> file
  <li><b>Install</b>, a shell script which installs the above binaries and
      shell scripts, and also thoughtfully renames any pre-existing
      equivalents in case you may want to back out any of the installed files
</ul>

<p>The earlier versions of UnRpm-Install included statically-linked binaries, no
 doubt to make them usable by a wider variety of users, but with the
 disadvantage of large binaries.  Since most systems have compatible
<em>libc</em> versions installed, which is the only library linked with the
binaries, recent versions have included the smaller dynamically-linked
versions.

<p>The <b>Midnight Commander</b> in its recent incarnations has excellent
support built-in for treating these various archive formats as virtual
file-systems, allowing the user to browse through their contents without
actually expanding them.  The menu entries provided by UnRpm expand upon these 
capabilities, making it easier than ever to convert one format to another and
to see just what an archive will install on your system.

<p>There's nothing in UnRpm-Install which you couldn't gather up yourself, from
various FTP sites or distribution cd's.  What makes the package valuable is
that Kent Robotti has done this for you, and presented these disparate
binaries and scripts as a coherent whole, bound together by the Midnight
Commander used as archive manager.

<center><h3>Availability</h3></center>

<p>Various versions of UnRpm-Install are still in the /pub/Linux/Incoming directory of 
the <a href="ftp://sunsite.unc.edu/pub/Linux/Incoming">Sunsite</a> FTP
archive, but the most recent version will eventually make its way into
<a href="ftp://sunsite.unc.edu/pub/Linux/utils/compress">the archive
utility</a> directory.


<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Larry Ayers<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center>
<H2>Single-User Booting Under Linux</H2>
<H4>By John Gatewood Ham,
<a href="mailto:zappaman@alphabox.compsci.buu.ac.th">zappaman@alphabox.compsci.buu.ac.th</a></H4>
</center>
<P><HR>
I was trained as a system administrator on HP, IBM, and Sun workstations 
while working as a DRT consultant assigned to Informix as an alpha-tester.  
There I learned the need for a true single-user operating mode in Unix.  
When I tried to use the single user mode with Linux, it did not work in the 
way that I expected.  After many, many reboots I worked out the right 
configuration to support a true single-user mode on the distribution I was 
using, Slackware 3.2, by modifying the boot process.
</P>
<P>
This article will now explain how to setup the bootup process for Linux so 
that single-user mode really works if you are using the Slackware 3.2 
distribution (or a derivative).  I will begin by assuming that your kernel 
is correctly configured and that the <CODE>init</CODE> program starts successfully.  
See the Installation-HOWTO at
<A HREF=ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/Installation-HOWTO><code>ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/Installation-HOWTO</code></A>
for help to get this far.  Once you have a system that boots, however, you 
have only begun.  Why?  Most distributions will give you a generic set of 
initialization scripts that are designed to work for an average installation.  
You will want to customize this in order to run extra things you want and/or 
to prevent  running things you do not want.  With the dozen or so standard 
startup scripts things can seem confusing, but after you read this article 
you should be able to understand enough to create a custom environment 
when you boot that exactly suits you.
</P>
<P>
As I stated earlier, I will begin by assuming that <CODE>init</CODE> has started 
successfully.  It will examine the file <CODE>/etc/inittab</CODE> to determine 
what to do.  In that file are located the lines to activate your login 
devices such as terminals, modems, and your virtual consoles.  Leave that 
stuff alone.  What we are interested in are the lines which call the 
startup/shutdown scripts.  These lines will look something like this:
</P>
<PRE>
# Default runlevel.
id:3:initdefault:

# System initialization (runs when system boots).
si::sysinit:/etc/rc.d/rc.S

# Script to run when going single user (runlevel 1).
l1:1:wait:/etc/rc.d/rc.K

# Script to run when going single user (runlevel S or s)
mm:S:wait:/etc/rc.d/rc.K2

# Script to run when going multi user.
rc:23456:wait:/etc/rc.d/rc.M

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6
</PRE>
<P>
The comments are present and are very helpful.  First you need to determine 
your default runlevel.  In this case it is 3.  The format of the <CODE>/etc/inittab</CODE>
file section we are looking at is simple.  Blank lines are ignored.  Lines 
with '#' as the first character are comments and are ignored.  Other lines 
have 4 parts separated by the colon character.  These parts are 1. symbolic 
label, 2. runlevel, 3. action and 4.command to run.  These are documented in 
the section 5 manual page for <CODE>/etc/inittab</CODE> (<CODE>man 5 inittab</CODE>).  First
we must find a line with an action of <CODE>initdefault</CODE>, and then see what runlevel 
it has.  That will be the default runlevel.  Obviously you should not have 2 
lines that have <CODE>initdefault</CODE> as the action in an <CODE>/etc/inittab</CODE> file.  Once you know 
the default runlevel, you will be able to know what <CODE>/etc/inittab</CODE> entries 
will be processed by <CODE>init</CODE>.  The 1 runlevel is considered single-user 
maintenance mode, but it supported multiple simultaneous logins in virtual 
terminals with the default <CODE>/etc/inittab</CODE> on my systems.  You can prevent this by 
removing the 1 from the getty lines of the tty2, tty3, tty4, etc.  The 3 
runlevel is considered the normal multi-user mode with full networking 
support.  The S runlevel is supposed to be true single-user, and you can 
theoretically enter that runlevel using the <CODE>lilo</CODE> parameter 
<CODE>single</CODE>.  However, for the Slackware 3.2 distribution, that does 
not put you in a single-user mode as you would expect, but instead you wind 
up in runlevel 3.  The <CODE>/etc/inittab</CODE> file I show here does not have that problem 
however.  Once you have read this article you can change the system to 
behave in the expected manner.  So we know we will go to runlevel 3.  That 
means <CODE>init</CODE> will perform every command in the <CODE>/etc/inittab</CODE> file that has a <CODE>sysinit</CODE>, 
then <CODE>boot</CODE>, or <CODE>bootwait</CODE>, and finally any entries for our runlevel 3.  When you 
want to run a script when entering a runlevel, it doesn't make sense to have 
more than one script line in the <CODE>/etc/inittab</CODE> file for that level.  Instead, you 
should put everything in 1 script, or call scripts from within the script 
mentioned in the <CODE>/etc/inittab</CODE> file using the dot method.  Once thing to note is 
that field 2, the runlevel field, can have more than 1 runlevel specified.  
The <CODE>init</CODE> program will first run the <CODE>si</CODE> entry 
(and we will wait for it to finish running <CODE>/etc/rc.d/rc.S</CODE>) since it has 
<CODE>sysinit</CODE> (which implies <CODE>wait</CODE>) in the third field.  Then it will run everything 
with 3 specified.  So in our example file we will run the <CODE>si</CODE> target, then 
the <CODE>rc</CODE> target (and we will wait for it to finish running the 
<CODE>/etc/rc.d/rc.M</CODE> script since the third field is <CODE>wait</CODE>), and finally 
we it will do the <CODE>c1</CODE> through <CODE>c6</CODE> targets which set up the virtual ttys during 
a normal boot.  
</P>
<P>
If we boot (via <CODE>lilo</CODE>) and add the <CODE>single</CODE> 
parameter, we will still run the <CODE>si</CODE> target (<CODE>/etc/rc.d/rc.S</CODE>) and wait for it to 
complete, but then we will run the <CODE>mm</CODE> target (<CODE>/etc/rc.d/rc.K2</CODE>).  Keep in mind 
that runlevel 1 and runlevel S are essentially the same when you enter them, 
but how you get there is very different.  Runlevel 1 can be entered by using 
the command <CODE>/sbin/telinit 1</CODE>, but <CODE>/sbin/telinit s</CODE> will send you to runlevel 5 
often for some reason (some kind of bug).  Runlevel 1 will give you a normal 
log in, and allows 1 user (<I>any</I> 1 user) to log in at the console.  
With this setup, runlevel S will give you a special root-only login that 
allows only root to use the console.  Since only root can log in, only a 
special password prompt is displayed.  If you press enter or ctl-D, the system 
will return to runlevel 3.  This root-only login is accomplished by using 
the <CODE>/bin/sulogin</CODE> program.  Runlevel S is probably what you want when you think 
single-user, but you have to reboot the machine and use <CODE>lilo</CODE> and have the 
single parameter to make it work.  You can use runlevel 1 to accomplish the 
same things, but remember you will have to manually return to runlevel 3 
when you are done with another call to <CODE>/sbin/telinit 3</CODE> or a reboot, and you 
must insure that nobody else can get to the console but the root user.  
WARNING: The true single-user mode entered with the single parameter to 
<CODE>lilo</CODE> with  my <CODE>/etc/inittab</CODE> and <CODE>/etc/rc.d/rc.K2</CODE> will support only 1 console and no other 
virtual terminals.  Do not run anything that locks up the terminal!
</P>
<P>
Ok, so what do we know now?  We know what scripts <CODE>init</CODE> will call and when they 
will be called.  But what can be in those scripts?  The scripts should be 
written for bash unless you are a real guru and KNOW the other shell you 
wrote scripts for will be available during boot.  There is nothing preventing 
you from using <CODE>perl</CODE> or <CODE>tcsh</CODE> or whatever, but traditionally most everyone uses 
<CODE>bash</CODE> scripts (ok, ok, Bourne shell scripts) for unix boot scripts.  The <CODE>/etc/rc.d/rc.S</CODE>
script which is called at system boot time should take care of things like 
<CODE>fsck</CODE>'ing your file systems, mounting them, and starting up swapping and other 
essential daemons.  These are things that you need independent of runlevel.  
The <CODE>/etc/rc.d/rc.M</CODE> script which is called when you enter runlevel 3 should start all 
the processes that remain that you usually need during normal system 
operation EXCEPT things like <CODE>getty</CODE>.  Processes that must be restarted whenever 
they stop running like <CODE>getty</CODE> should be placed in the <CODE>/etc/inittab</CODE> file instead of 
being started by a boot script.  So what is in a typical <CODE>/etc/rc.d/rc.M</CODE> script?  
Usually configuring the network , starting web servers, sendmail, and 
anything else you want to always run like database servers, quota 
programs, etc.
</P>
<P>
The only startup script I mention in my <CODE>/etc/inittab</CODE> that is not included in the
Slackware 3.2 distribution is <CODE>/etc/rc.d/rc.K2</CODE>, and it is merely a modified version 
of <CODE>/etc/rc.d/rc.K</CODE> set up for single user mode.  Remember this is the startup script 
that will be used if you choose to enter the <CODE>single</CODE> parameter to <CODE>lilo</CODE>.  At 
the end of this file you will see a line:
</P>
<PRE>
exec /bin/sulogin /dev/console
</PRE>
<P>
This will replace the current process which is running the script with the 
<CODE>/bin/sulogin</CODE> program.  This means, of course, that this has to be the last 
line in your script, since nothing after this line will be processed by <CODE>bash</CODE>.
After that program starts, it displays a message to either enter the root 
password or press ctl-D.  If you enter the correct root password, you will 
be logged in as root in a true single-user mode.  Be careful, though, 
because when you exit that shell the machine will go into runlevel 3.  
If you want to reboot before entering runlevel 3 you must remember to do 
it (via <CODE>shutdown</CODE>) instead of just exiting the shell.  If you press ctl-D 
instead of the root password, the system will enter runlevel 3.  I have 
changed the incorrect calls to <CODE>kill</CODE> to use the <CODE>killall5</CODE> program, since 
the lines with <CODE>kill</CODE> caused <CODE>init</CODE> to be killed and a runlevel change was
happening incorrectly.
</P>
<P>
Well, I hope that this description of how I enabled my Linux machine to 
have a single-user mode similar to that of the big-name workstations 
proves helpful to you.  Customizing your boot process is not too hard, 
once you understand something about how the <CODE>/etc/inittab</CODE> 
and <CODE>/etc/rc.d/*</CODE>
scripts work.  Be sure you 1. backup your entire system, 2. have a boot 
floppy, and 3. a rescue floppy that can restore the backup (or any 
individual files) you made in step 1 using the boot floppy from step 2 to 
boot the machine.  If you make a 1 character typo you can prevent the 
machine from booting, so the backup steps, while tedious, are really 
necessary to protect yourself before you experiment.
</P>
<h1><CENTER>The Files</CENTER></h1>
<P>
Here are the files I used.  Use at your own risk.  They work for me, but
may need to be modified to work for you.
</P>
<hr>
<h2><Center><code>/etc/inittab</code></center></h2>
<PRE>
#
# inittab	This file describes how the INIT process should set up
#		the system in a certain run-level.
#
# Version:	@(#)inittab		2.04	17/05/93	MvS
#                                       2.10    02/10/95        PV
#
# Author:	Miquel van Smoorenburg, <a href="mailto:miquels@drinkel.nl.mugnet.org">miquel@drinkel.nl.jugnet.org</a>
# Modified by:	Patrick J. Volkerding, <a href="mailto:volkerdi@ftp.cdrom.com">volkerdi@ftp.cdrom.com</a>
# Modified by:  John Gatewood Ham, <a href="mailto:zappaman@alphabox.compsci.buu.ac.th">zappaman@alphabox.compsci.buu.ac.th</a>
#
# Default runlevel.
id:3:initdefault:

# System initialization (runs when system boots).
si::sysinit:/etc/rc.d/rc.S

# Script to run when going maintenance mode (runlevel 1).
l1:1:wait:/etc/rc.d/rc.K

# Script to run when going single user (runlevel s)
mm:S:wait:/etc/rc.d/rc.K2

# Script to run when going multi user.
rc:23456:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
# make the machine halt on ctl-alt-del
ca::ctrlaltdel:/sbin/shutdown -h now "going down on ctl-alt-del"

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6

# What to do when power fails (shutdown to single user).
pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"

# If power is back before shutdown, cancel the running shutdown.
pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"

# If power comes back in single user mode, return to multi user mode.
ps:S:powerokwait:/sbin/init 5

# The getties in multi user mode on consoles an serial lines.
#
# NOTE NOTE NOTE adjust this to your getty or you will not be
#                able to login !!
#
# Note: for 'agetty' you use linespeed, line.
# for 'getty_ps' you use line, linespeed and also use 'gettydefs'
# we really don't want multiple logins in single user mode...
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:235:respawn:/sbin/agetty 38400 tty2 linux
c3:235:respawn:/sbin/agetty 38400 tty3 linux
c4:235:respawn:/sbin/agetty 38400 tty4 linux
c5:235:respawn:/sbin/agetty 38400 tty5 linux
c6:235:respawn:/sbin/agetty 38400 tty6 linux

# Serial lines
#s1:12345:respawn:/sbin/agetty 19200 ttyS0 vt100
#s2:12345:respawn:/sbin/agetty 19200 ttyS1 vt100

# Dialup lines
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

# Runlevel 4 used to be for an X-window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all 
# the time. Thus, there is now one getty opened on tty1. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something 
# happens to X.
x1:4:wait:/etc/rc.d/rc.4

# End of /etc/inittab
</PRE>
<hr>
<h2><Center><code>/etc/rc.d/rc.K</code></center></h2>
<PRE>
# /bin/sh
#
# rc.K 		This file is executed by init when it goes into runlevel
#		1, which is the administrative state. It kills all
#		deamons and then puts the system into single user mode.
#		Note that the file systems are kept mounted.
#
# Version:	@(#)/etc/rc.d/rc.K	1.50	1994-01-18
# Version:	@(#)/etc/rc.d/rc.K	1.60	1995-10-02 (PV)
#
# Author:	Miquel van Smoorenburg <a href="mailto:miquels@drinkel.nl.mugnet.org">miquels@drinkel.nl.mugnet.org</a>
# Modified by:  Patrick J. Volkerding <a href="mailto:volkerdi@ftp.cdrom.com">volkerdi@ftp.cdrom.com</a>
# Modified by:  John Gatewood Ham <a href="mailto:zappaman@alphabox.compsci.buu.ac.th">zappaman@alphabox.compsci.buu.ac.th</a>
#
  # Set the path.
  PATH=/sbin:/etc:/bin:/usr/bin

  # Kill all processes.
  echo
  echo "Sending all processes the TERM signal."
  killall5 -15
  echo -n "Waiting for processes to terminate"
  for loop in 0 1 2 3 4 5 6 7 ; do
    sleep 1
    echo -n "."
  done
  echo
  echo "Sending all processes the KILL signal."
  killall5 -9

  # Try to turn off quota and accounting.
  if [ -x /usr/sbin/quotaoff ]
  then
	echo "Turning off quota.."
	/usr/sbin/quotaoff -a
  fi
  if [ -x /sbin/accton ]
  then
	echo "Turning off accounting.."
	/sbin/accton
  fi

</PRE>
<hr>
<h2><Center><code>/etc/rc.d/rc.K2</code></center></h2>
<PRE>
# /bin/sh
#
# rc.K 		This file is executed by init when it goes into runlevel
#		1, which is the administrative state. It kills all
#		deamons and then puts the system into single user mode.
#		Note that the file systems are kept mounted.
#
# Version:	@(#)/etc/rc.d/rc.K	1.50	1994-01-18
# Version:	@(#)/etc/rc.d/rc.K	1.60	1995-10-02 (PV)
#
# Author:	Miquel van Smoorenburg <a href="mailto:miquels@drinkel.nl.mugnet.org">miquels@drinkel.nl.mugnet.org</a>
# Modified by:  Patrick J. Volkerding <a href="mailto:volkerdi@ftp.cdrom.com">volkerdi@ftp.cdrom.com</a>
# Modified by:  John Gatewood Ham <a href="mailto:zappaman@alphabox.compsci.buu.ac.th">zappaman@alphabox.compsci.buu.ac.th</a>
#
# Set the path.
PATH=/sbin:/etc:/bin:/usr/bin

# Kill all processes.
echo
echo "Sending all processes the TERM signal."
killall5 -15
echo -n "Waiting for processes to terminate"
for loop in 0 1 2 3 4 5 6 7 ; do
  sleep 1
  echo -n "."
done
echo
echo "Sending all processes the KILL signal."
killall5 -9

# Try to turn off quota and accounting.
if [ -x /usr/sbin/quotaoff ]
then
	echo "Turning off quota.."
	/usr/sbin/quotaoff -a
fi
if [ -x /sbin/accton ]
then
	echo "Turning off accounting.."
	/sbin/accton
fi

# Now go to the single user level
exec /bin/sulogin /dev/console
</PRE>
<HR>
<address>
<A HREF="mailto:zappaman@alphabox.compsci.buu.ac.th">zappaman@alphabox.compsci.buu.ac.th</A>
<BR>
<A HREF="http://alphabox.compsci.buu.ac.th/~zappaman">Information about me.</A>
</address>


<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, John Gatewood Ham<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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


<title>User Groups and Trade Shows:  Lessons from the Atlanta Linux Showcase</title>
</head>
<h1 align="center">User Groups and Trade Shows</h1>
<h3 align="center">Lessons from the Atlanta Linux Showcase</h3>
<a href="http://www.ale.org/showcase/">
<p align="center"><img src="./gx/als2-sm.jpg" width="214" height="90" align="bottom" ></a><a href="mailto:lfs@eskimo.com">

<p align="center">by Andrew Newton</a>
<P><HR>
<p>Trade shows and expos are not at all uncommon in the computer industry. But not since the early
days of microcomputers, when CP/M was King and toggle switches were the user interface, have
user groups been heavily involved. So in the era of powerful non-commercial software, couldn't
the trade shows also be non-commercial?

<p>We, the members of the <a href="http://www.ale.org/">Atlanta Linux Enthusiasts (ALE)</a>, found out the answer is yes. 
Originating from correspondence with <a href="http://www.li.org/">Linux International</a> for some local help for Linux vendors
at COMDEX and our own Linux demo fest (called the "Geek-Off") a year earlier, we put
together a non-commercial, user group organized trade show.  On June 7, 1997, we put on the
largest Linux vendor showcase to date.

<p><strong>Get Started With The Essentials</strong>

<p>So let's say you, being the Linux activist of your community, want to do your bit to spread the
word.  Where would you start?

<p>Although we didn't necessarily do this, we learned there are two essential things to get a Linux
trade show off the ground:  1) a time and place, and 2) a checking account.  And in the words of
our own Marc Torres, once you have those two items, "the rest grows from there."

<p>It was a given that we would hold the Atlanta Linux Showcase as close to COMDEX as possible. 
After all, this whole idea came from helping out the Linux vendors at COMDEX.  Plus the idea
of getting the COMDEX crowd was good.  We theorized that many people flying in for
COMDEX would stay over the following weekend to save on air fare.  And they could easily
justify it if they were attending another computer show.

<p>Picking the place was a little more troublesome, but not impossible. We finally decided on The
Inforum because it was located only blocks away from the venue for COMDEX, was in
downtown Atlanta, and well known to many.

<p>Finally, the checking account is very important.  As it turns out we didn't do this immediately
and paid the price in countless hours of meetings discussing logistics.  A checking account is
important because it gives you a place from which to send money and, more importantly, a place
to receive money.  People like it better when they can write checks to "Big Time Linux Event"
instead of "Bob Smurd."

<p>One of the major inhibitors behind our acquisition of a checking account was our incredible lack
of knowledge when it comes to the law.  After all, we are a bunch of computer jocks, not
attorneys.  We had many seemingly endless discussions on issues such as incorporation,
non-profit status, tax codes, the right to bear arms, etc.  In the end, David Hamm, one of our most
active members,  just ended up going to a bank and getting a new checking account under his
control.  Incidentally, David became the treasurer.

<p align="center"><img src="./gx/ssc6b.jpg" width="313" height="521" align="bottom" >

<p align="center"><em>David Miller eyes a bottle of ALS Ale. </em>- Photo by Amy Ayers

<p><strong>Put Time On Your Side</strong>

<p>Unfortunately, we didn't.  Of course, we had the COMDEX target date to shoot for giving us
little time between our mobilization and the event. If you can pick a date over six months out, do
so.  There are multiple reasons for this, most of which have to do with reserving space.

<p>First, you must reserve space somewhere to hold your event.  We lucked out in our case, but
many venues will require booking many months ahead of time, especially the ones that don't
often cost so much money such as college campuses and state buildings.

<p>Second, you must reserve space in print media for advertising and publicity.  While we were able
to get ads in our local computer magazines and the event listed in some calendars, we did miss
deadlines elsewhere. You may have noticed there were no advertisements for the Atlanta Linux
Showcase in Linux Journal.  We missed the deadline.  In addition, it takes time to grease the
wheels for free publicity.

<p><em>A brief word about FREE PUBLICITY</em> -  There is no such thing; you'll work for every last bit of
it.  Free publicity means getting listed in upcoming events calendars and maybe an article or two
about Linux in the local paper with a small plug at the end for the event.  If you do take the time
to pay for advertising, use the advertising representative as a way of getting your event some
extra publicity in that publication.  Many publications put on the appearance that their articles are
completely disjoint from their advertising on the basis of journalistic ethics, but with the
exception of SSC that isn't true.

<p><em>A brief word about paid advertising</em> - It is like buying a used car. What an ad rep puts on a rate
card isn't necessarily the price you have to pay. Try talking them down.  Again, this doesn't apply
to SSC.

<p><strong>Organize Your Volunteers</strong>

<p>We divided our group into two major camps, organizers and volunteers.  The first were the
people that planned the event out for months and did a lot of the leg work.  The second were the
people that showed up the day of the show and manned the registration desk, checked badges,
etc.

<p>You don't want to have too many organizers as it becomes difficult to manage a large group of
people over a large span of time.  We divided up our group into teams of 3 or 4, with many
people being on 2 or more teams.  This gave us what philosophical management types like to call
cross-functional teams.  By having more than one person on a team, it helped insure no one
person was the only source of information or action.

<p>We had the following teams:

<ul>
  <li>Vendor - contacted vendors</li>
  <li>Talks - organized the speakers and presenters</li>
  <li>Publicity - handled advertising and publicity</li>
  <li>Finance - dealt with our mounds of gold</li>
  <li>Logistics - managed booth layouts and site coordination</li>
</ul>

<p>In hind sight, we should have also created a "Registration" team to handle all the registrations for
both walk-in and pre-paid registrations.  Our answer to this was to make the Talks team and the
Logistics team work together, which worked but not as smoothly as we would have liked.  It is
better to have a group of people who are solely in charge of registration and aren't distracted with
other problems.

<p>We didn't solicit for volunteers until a month before our show.  In retrospect, it probably should
have been two months. We gave our volunteers a briefing the day before the Showcase and had a
work schedule already printed when they arrived. We also required them to work 2 three-hour
shifts for manageability purposes and to keep the number of volunteers to a minimum but in the
end solicited for some more at the last minute (thanks Ben and Vicki).

<p><em>A brief note about Volunteers</em> - Treat them well, because they are working for free.  And if you
do that, most will go the extra mile treating the attendees well and pulling those extra shifts or
duties you didn't anticipate (thanks James).  Also put your "people-person" types at the
registration desk where they will likely be needed the most.  More personable people will be able
to sell t-shirts and so forth much more easily (thanks Karen).  Finally, thank your volunteers. 
Everybody likes to be told they've done a good job (thanks everyone else).

<p>Another seemingly weird thing we did was to make our volunteers pay for the honor to work our
event.  It seems odd, but it worked.  The idea was to have them show us they weren't going to
volunteer and then back out on us at the last minute.  In exchange for their $30, they got a polo
shirt and were able to see all the presentations at a lower price than anyone else.  And the cash
flow didn't hurt either.  While we didn't mandate this for the organizers, it wouldn't be a bad idea. 
However, all the organizers did have to pay for their own shirts and many loaned hundreds of
dollars to the effort.

<p align="center"><img src="./gx/ssc3b.jpg" width="426" height="292" align="bottom" >

<p align="center"><em>Linus, Tove and Patricia meet Zeph Hull, a showcase volunteer. </em>- Photo by Amy Ayers

<p><strong>Coordinate Vendors</strong>

<p>Organize your vendor team so everybody knows which person is calling what company but only
one person is calling each.  It is nice for everyone to know the status of a potential vendor.  It is
not nice to have 3 separate people make 3 separate cold calls to the same potential vendor.

<p>When contacting vendors, use the phone as your primary means of communications and not
e-mail.  While it seems e-mail would work, it is human nature to give it a much lower priority
than a phone call.  We found many companies that ignored our e-mail's responded quite
positively to our phone calls.

<p>One of the things we should have done sooner was bill the vendors.  We charged each vendor
$400 for a booth and sent them an invoice.  While we were expecting one week turn turnarounds
on payment, the business world doesn't work that way.  In many cases, paperwork and payments
can take up to 30 days to get through the accounting offices of some companies.

<p><strong>Get People To Talk</strong>

<p>We solicited for speakers and presenters over the comp.os.linux.announce news group. This had
to be done multiple times, but eventually the offers started rolling in. We also drew upon some
local talent.  And in many cases, the vendors also wanted to give presentations.

<p>Getting speakers to volunteer was the easy part.  Getting them to the Showcase was the difficult
part.  We had to solicit money from sponsoring companies and the vendors in order to pay for the
travel and lodging expenses for Linus Torvalds, Eric Raymond, David Miller, Richard
Henderson, Miguel de Icaza, and the rest of the crew (and we still owe a debt of gratitude to
Digital and Caldera for all they did in this department).

<p>Once the money was appropriated, travel plans and hotel accommodations were made - at least
that's how it works in the ideal world. A lot of the travel costs were floated on the credit cards of
organizers until they could be reimbursed. Do make plane reservations and travel arrangements
as far ahead of time as possible; you can save on air fare that way.

<p><strong>Work The System</strong>

<p>This involves taking advantage of perks and getting the extras out of the people with whom you
are doing business.  For example, we decided to also rent some conference rooms at the Days Inn
which was just next store to The Inforum.  These conference rooms were used for Birds Of A
Feather sessions and impromptu meetings by our attendees.  In order to secure a good price on
the room rental, we made an agreement with the hotel management that we would guarantee they
got a certain number of room bookings based on our event.  We then set-up that hotel as our
"Official" hotel and asked most of our out-of-town guests to try the Days Inn first.  In addition,
our attendees were able to get a reasonable rate at a downtown hotel.  Our guest speakers were
also booked there. <a href="http://www.genietravel.com">

<p>Genie Travel</a> also became our "Official" travel agent.  Genie gave us a certain percentage on
every flight booked through them, and their air fares were very reasonable.  Although we didn't
take advantage of this until very late in the game, it would be very advantageous for us to do it
again.  Genie Travel<strong> </strong>uses Linux in their day-to-day operations and probably would be very happy
to repeat this arrangement with another Linux event.

<p>Another good idea would be to solicit the help of other Linux users groups.  Often other users
groups that are geographically close by may be able to help.  Be sure to get them in on it early in
the planning stage.  For instance, we solicited SALUG (Southern Alabama) and CHUGALUG
(Athens, GA), albeit at the last minute.  Coordinating with other users groups also insures that
the Linux community isn't throwing a trade show every month in towns only 100 miles apart
(this stretches the resources of the Linux vendors and the enthusiasm these shows generate)..

<p>One last thing that can help is to have a Sugar-Daddy.  In our case it was <a href="http://www.li.org/">Linux International</a>. 
Jon "Maddog" Hall of Linux International helped get us credit through which we were able
secure our lease on the rooms at The Inforum.  If you ask him nicely, he may do the same for
you.

<p><strong>Have Fun</strong>

<p>Keep in mind that organizing such an event is very hard word and requires a lot of time.  We
estimate over 2000 man hours were spent by ALE members putting together our show.  But with
any luck, your user group will be able to pull off a grand Linux event. And remember, have fun. 
Don't hold your trade show to make money.  Do it to spread the word of Linux and to cavort with
other like-minded Linux hobbyists.

<p>Finally, we'd like to thank all our volunteers, vendors, speakers, and organizers for helping out
with the Atlanta Linux Showcase.  If you are interested in any videos of the presentations at the
1997 Atlanta Linux Showcase or t-shirts and polo shirts, please visit our web site at
<a href="http://www.ale.org/showcase/">http://www.ale.org/showcase/</a>.  And if you have any questions, please feel free to send us e-mail
at <a href="mailto:ale-expo@cc.gatech.edu">ale-expo@cc.gatech.edu</a>.

<p align="center"><img src="./gx/greg2b.jpg" width="600" height="422" align="bottom" >

<p align="center"><em>Greg Hankins hangs out with Maddog and David Hamm.</em> - Photo by Amy Ayers

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Andrew Newton<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center>
<H2>Using Python to Generate HTML Pages</H2>
<H4>By Richie Bielak,
<a href="mailto:richieb@netlabs.net">richieb@netlabs.net</a></H4>
</center>
<P><HR>


<h2>Introduction</h2>

<p>I have waited for a long time to set up my own Web site, mostly
because I didn't know what to put there that others may want to
see. Then I got an idea. Since I'm an avid reader and an aviation
enthusiast, I decided to create pages with a list of aviation books I
have read. My initial intention was to write reviews for each book.
<p>

Setting up the pages was easy to start with, but as I added more books
the maintenance became tedious. I had to update couple of indices with
the same data and I had to sort them by hand, and alphabetizing was
never my strong suit. I needed to find a better way.
<p>

Around the same time I became interested in the programming language
Python and it seemed that Python would be a good tool to automatically
generate the various HTML pages from a simple text file. This would
greatly simplify the updates of my book pages, as I would only add one
entry to one file and then create complete pages by running a Python
script.
<p>

I was attracted to Python for two main reasons: it's very good at
processing strings and it's object oriented. Of course the fact that
Python interpreter is free and that it runs on many different systems
helped. At first I installed Python on my Win95 machine, but I just
couldn't force myself to do any programming in the Windows
environment, even in Python. Instead I installed Linux and moved all
my Web projects there.
<p>

<h2>The Problem</h2>

The main goal of the program is to generate three different book
indices, by author, by title and by subject, from a single input
file.  I started by defining the format of this file. Here is what a
typical entry describing one book looks like:
<pre>
	title: Zero Three Bravo
	author: Gosnell, Mariana
	subject: General Aviation
	url: 3zb.htm
	# this is a comment
</pre>
Each line starts with a keyword (eg. "title:" or "author:") and is
followed by a value that will be shown in the final HTML
page. Description of each book must start the "title:" line, there
must be at least one "author:" tag, and the "url:" entry points to a
review of the book, if there is one.  
<p>

Since Python is object-oriented we begin program design by
looking for "objects". In a nutshell, object oriented (OO) programming
is a way to structure your code around the things, that is "objects",
that the program is working with. This rather simple idea of
organizing software around what it works with (objects), rather than
what it does (functions), turns out to be surprisingly powerful.
<p>

Within an OO program similar objects are grouped into "classes" and the
code we write describes each class. Objects that belong to a given
class are called "instances of the class".
<p>

I hope it is pretty obvious to you that since the program will
manipulate "book" objects, we need a Python class that will represent
a single book. Just knowing this is enough to let us suspend design
and write some code.
<p>

<h2>The Book Class</h2>

Before we start looking at the code we need to consider briefly how
Python programs are organized. Each program consists of a number of
modules, each module is contained in a file (usually named with the
extension ".py") and the name of the file (without the ".py") serves
as the module name.  A module can contain any number of routines or
classes. Typically things that are related are kept in one module. For
example, there is <tt>string</tt> module that contains functions that
operate on strings. To access functions or classes from another module
we use the <tt>import</tt> statement. For example the first line of
the <tt>Book</tt> module is:
<pre>
    from string import split, strip
</pre>
which says that the routines <tt>split</tt> and <tt>strip</tt> are
obtained from the <tt>strings</tt> module.<p>

Next, I have to point out few syntactic features of Python that are
not immediately obvious the code. The most important is the fact that
in Python indentation is part of the syntax. To see which statements
will be executed following an "if", all you need to look at is
indentation - there is no need for curly braces, <tt>BEGIN/END</tt>
pairs or "fi" statements.<p>

Here is a typical "if" statement extracted from the <tt>set_author</tt>
routine in the <tt>Book</tt> class:
<pre>
	if new_author:
	    names = split (new_author, ",")
	    self.last_name.append (strip (names[0]))
	    self.first_name.append (strip (names[1]))
	else:
	    self.last_name = []
	    self.first_name = []
</pre>
The three statements following the "if" are executed if "new_author"
variable contains a non-null value. The amount of indentation is not
important, but it must be consistent. Also note the colon (":") which
is used to terminate the header of each compound statement.<p>


The <tt>Book</tt> class turns out to be very simple. It consists
of routines that set the values for author, title, subject and the URL
for each book. For example, here is the <tt>set_title</tt> routine:
<pre>
    def set_title (self, new_title):
	self.title = new_title
</pre>
The first argument to the "set_title" method (that is a routine which
belongs to a class) is "self". This argument always refers to the
instance to which the method is applied. Furthermore, the attributes
(i.e. the data contained in each object) must be qualified with "self"
when referenced within the body of a method.  In the example above the
attribute "title" of a "Book" object is set to value of "new_title".
<p>
If in another part of a program we have variable "b" that references an
instance of a "Book" class this call would set the book's title:
<pre>
    b.set_title ("Fate is the Hunter")
</pre>
Note that the "self" argument is <i>not</i> present in the call,
instead the object to which the method is applied (i.e. the object
before the ".", "b" above) becomes the "self" argument.
<p>


At this point a reasonable question to ask is "Where do the objects
come from?"  Each object is created by a special call that uses the
class name as the name of a function. In addition a class can define a
method with the name <tt>__init__</tt> which will automatically be
called to initialize the new object's attributes (in C++ such a
routine is called a constructor).
<p>
Here is the <tt>__init__</tt> routine for the <tt>Book</tt> class:
<pre>
    def __init__ (self, t="", a="", s="", u=""):
	#
	# Create an instance of Book
	#
	self.title = t
	self.last_name = []
	self.first_name = []
	self.set_author (a)
	self.subject = s
	self.url = u
</pre>
The main purpose of the above routine is to create all the attributes
of the new "Book" object. Note that the arguments to "__init__" are
specified with default values, so that the caller needs only to pass the
arguments that differ from the default.
<p>

Here are some examples of calls to create "Book" objects:
<pre>
    a = Book()
    b = Book ("Fate is the Hunter")
    c = Book ("Some book", "First, Author")
</pre>
<p>
There is one small complication in the "Book" class. It is possible
for a book to have more than one author. That's why the attributes
"first_name" and "last_name" are actually lists. We'll look more at
lists in the next section. <p>

The complete <tt>Book</tt> class is show in <a href=book.html>
Listing #1</a>. To test the class we add a little piece of code at the end
of the file to test if the code is running as <tt>__main__</tt> routine, 
that is execution started in this file. If so, the code to test the <tt>Book</tt>
will run.       

<h2>The Book_List Class</h2>

Once the <tt>Book</tt> is tested we can go back to designing. The next
obvious object is a list which will contain all the "book"
objects. For the purposes of our program we have to be able to create
the book list from the input file and we have to sort the books in the
list by author, title or subject. Sorted list will then be used as
input into the code that actually generates HTML pages. <p>

As it turns out one of Python's built-in data structures is a list. Here is
a snippet of code showing creation of a list and addition of some items
(this example was produced by running Python interactively):
<pre> 
Python 1.4 (Dec 18 1996)  [GCC 2.7.2.1]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
&gt;&gt;&gt; s = []
&gt;&gt;&gt; s.append ("a")
&gt;&gt;&gt; s.append ("hello")
&gt;&gt;&gt; s.append (1)
&gt;&gt;&gt; print s
['a', 'hello', 1]
</pre>
Above we create a list called "s" and add three items to it. Lists
allow "slicing" operations, which let you pull out pieces of a list by
specifying element numbers. These examples illustrate the idea:
<pre>
&gt;&gt;&gt; print s[1]
hello
&gt;&gt;&gt; print s[1:]
['hello', 1]
&gt;&gt;&gt; print s[:2]
['a', 'hello']
&gt;&gt;&gt; print s[0]
a
</pre>
<tt>s[1]</tt> denotes the second element of the list (indexing starts
at zero), <tt>s[1:]</tt> is the slice from the second element to the
end of the list, <tt>s[:2]</tt> goes from the start to the third
element, and <tt>s[0]</tt> is the first item.
<p>

Finally, lists have a "sort" operator which sorts the elements according to
a user supplied comparison function.
<p>
Armed with the knowledge of Python lists, writing the <tt>Book_List</tt> class
is easy. The class will have a single attribute, "contents", which will be a
list of books. 
<p>
The constructor for the <tt>Book_List</tt> class simply creates a
"contents" attribute and initializes it to be an empty list. The
routine that parses the input file and creates list elements is called
"make_from_file" and it begins with the code:
<pre>
   def make_from_file (self, file):
	#
	# Read the file and create a book list
	#
	lines = file.readlines ()
	self.contents = []
</pre>
The "file" argument is a handle to an open text file that contains the
descriptions of the books. The first step this routine performs is to
read the entire file into a list of strings, each string representing
one line of text. Next, using Python's "for" loop we step through this
list and examine each line of text:
<pre>
	#
	# Parse each line and create a list of Book objects
	#
	for one_line in lines:
	    # It's  not a comment or empty line 
	    if (len(one_line) &gt; 0) and (one_line[0] != "#"):
    	            # Split into tokens
		    tokens = string.split (one_line)
</pre>
If the line is not empty or is not a comment (that is the first
character is not a "#") then we split the line into words, a word
being a sequence of characters without spaces. The call "tokens =
string.split (one_line)" uses the "split" routine from the "string"
module. "split" returns the words it found in a list.
<pre>
		    if len (tokens) &gt; 0:
			if (tokens[0] == "title:"):
			    current_book = book.Book (string.join (tokens[1:]))
			    self.contents.append (current_book)
			elif (tokens[0] == "author:"):
			    current_book.set_author (string.join (tokens[1:]))
			elif (tokens[0] == "subject:"):
			    current_book.set_subject (string.join (tokens[1:]))
			elif (tokens[0] == "url:"):
			    current_book.set_url (string.join (tokens[1:]))

</pre>
The first token (i.e. word) on the line is the keyword that tells us
what to do. If it is "title:" then we create a new <tt>Book</tt>
object and append it to the list of books, otherwise we just set the
proper attributes. Note that the remaining tokens found on each line
are joined together into a string (using "string.join" routine). There
is probably a more efficient way to code this, but for my purposes
this code works fast enough.
<p>
The other interesting parts of the <tt>Book_List</tt> class are the sort
routines. Here is how the list is sorted by title:
<pre>
    def sort_by_title (self):
	#
	# Sort book list by title
	#
	self.contents.sort (lambda x, y: cmp (x.title, y.title))

</pre>
We simply call "sort" routine on the list. To get proper ordering we
need to supply a function that compares two <tt>Book</tt> objects. For
sorting by title we have to supply an anonymous function, which is
introduced with the keyword "lambda" (those of you familiar with Lisp,
or other functional languages should recognize this construct). The definition:
<pre>
      lambda x, y: cmp (x.title, y.title)
</pre>
simply says that this is a function of two arguments and function result comes
from calling the Python built-in function "cmp" (i.e. compare) on the "title"
attribute of the two objects.<p>

The other sort routines are similar, except that in "sort_by_author" I
used a local function instead of a "lambda", because the comparison
was little more complicated - I wanted to have all the books with the
same author appear alphabetically by title.
<p>

<h2>Generating Pages:</h2>

Now that we have constructed a list of books, the next step is to create
the HTML pages. We begin by creating a class, called <tt>Html_Page</tt>, that
generates basic outline of a page and then we extend that class to create
the titles, authors and subjects pages.<p>

The idea that existing code can be extended yet not changed is the
second most import idea of OO programming. The mechanism for doing
this is called "inheritance" and it allows the programmer to create a
new class by adding new properties to an old class and the old class
does not have to change. A way to think about inheritance is as
"programming by differences". In our program we will create three
classes that inherit from <tt>Html_Page</tt>.<p>

<tt>Html_Page</tt> is quite simple. It consists of routines that
generate the header and the trailer tags for an HTML page. It also
contains an empty routine for generating the body of the page. This
routine will be defined in descendant classes. The <tt>__init__</tt>
routine let's the user of this class specify a title and a top level
heading for the page.<p>

When I first tested the output of the HTML generators I simply printed
it to the screen and manually saved it into a file, so I could see the
page in a browser. But once I was happy with the appearance, I had to
change the code to save the data into a file. That's why in <tt>Html_Page</tt>
you will see code like this:
<pre>
	self.f.write ("&lt;html&gt;\n")
	self.f.write ("&lt;head&gt;\n")
</pre>
for writing the output to a file referenced by the attribute "f". <p>
However, since the actual output file will be different for each page
opening of the file is deferred to a descendant class. <p>

You can see complete code for <tt>Html_Page</tt> in
<a href="html_page.html">Listing #3</a>.

The three classes <tt>Authors_Page</tt>, <tt>Titles_Page</tt> and
<tt>Subjects_Page</tt> are used to create the final HTML pages. Since these
classes belong together I put them in one module, called <tt>books_pages</tt>.
Because the code for these is classes is very similar we will only look at
the first one.<p>

Here is how <tt>Authors_Page</tt> begins:
<pre>
class Authors_Page (Html_Page):

    def __init__ (self):
	Html_Page.__init__ (self, "Aviation Books: by Author",
			    "&lt;i&gt;Aviation Books: indexed by Author&lt;/i&gt;")
	self.f = open ("books_by_author.html", "w")
	print "Authors page in--&gt; " + self.f.name
</pre>
To start with that the class heading lists the name of the class from
which <tt>Authors_Page</tt> inherits, mainly <tt>Html_Page</tt>. Next
notice that the constructor invokes the constructor from the parent
class, by calling the <tt>__init__</tt> routine qualified by the class
name. Finally, the constructor names and opens the output file. I decided
not to make the file name a parameter for my own convenience to keep
things simple. <p>

Since the book list is needed for to generate the body of each page I added
a <tt>book_list</tt> attribute to each page class. This attribute is set
before HTML generation starts. <p>

The <tt>generate_body</tt> routine redefines the empty routine from
the parent class. Although fairly long, the code is pretty easy to
understand once you know that the book list is represented as an HTML
table and the "+" is the concatenation operator for strings. <p>

In addition to replacing  the <tt>generate_body</tt> routine we also redefine
<tt>generate_trailer</tt> routine in order to put a back link to the book index
at the bottom of each page:
<pre>
    def generate_trailer (self):
	self.f.write ("&lt;hr&gt;\n")
	self.f.write ("&lt;center&gt;&lt;a href=books.html&gt;Back to Aviation Books Top Page&lt;/a&gt;&lt;/center&gt;\n")
	self.f.write ("&lt;hr&gt;\n")
	Html_Page.generate_trailer (self)
</pre>
Notice how right after we generate the back link, we include a call to 
parent's <tt>generate_trailer</tt> routine to finish off the page with
correct terminating tags.<p>

Complete listing for the three page generating classes are found in 
<a href="books_pages.html">Listing #4</a>.<p>


The main line of the entire program is shown in 
<a href="book_page_gen.html">Listing #5</a>. By now the code there
should be self explanatory.

<h2>Summary</h2>

As you can see this particular program was not hard to write. Python is
well suited for these types of tasks, you can quickly put together
a useful program with minimal fuss. <p>

After I have got the program to work I realized that its design
is not the best. For example, the HTML generating code could be more
general, perhaps the <tt>Book</tt> class should generate it's own
HTML table entries. But for now the program fits my purposes, but
I will modify if I need to create other HTML generating applications.<p>

If you like to see the results of this script visit my 
<a href="http://www.netlabs.net/hp/richieb/books.html">book page.</a><p>

To learn more about Python you should start with the <a
href="http://www.python.org">Python Home Page</a> which will point you
to many Python resources on the net. I also found the O'Reilly book
<i>Programming in Python</i> by Mark Lutz extremely helpful.
<p>
Finally, any mistakes in the description of Python features are
my own fault, as I'm still a Python novice.
<p>


<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Richie Bielak<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

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

<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>

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

<center>
<H2>Using SAMBA to Mount Windows 95</H2>
<H4>By Jonathon Stroud,
<a href="mailto:jgstroud@eos.ncsu.edu">jgstroud@eos.ncsu.edu</a></H4>
</center>
<P><HR>
<p>Many major universities are now offering network connections to
students in their rooms. This is really a wonderful thing for the
Linux community. Whereas, the majority of student owned computers
on these networks are still running Windows 95, many students are
making the switch to Linux. One thing that newcomers to Linux are
constantly asking is, "Can I access a directory shared by a
Windows 95 computer in the 'Network Neighborhood', and can I
share files to Windows 95 users?" The answer, of course, is YES.
I keep trying to tell them that there is nothing that Linux can
not do, yet they continue to come to me and ask if they can do
this in Linux, or if they can do that. I have never once answered
no.

<h3>Samba</h3>

<p>To mount a Windows 95 share, we use a program called Samba. Samba
is a program that allows Linux to talk to computers running
Windows for Workgroups, Windows 95, Windows NT, Mac OS, and Novel
Netware. Samba even allows you to share a printer between
computers using these different operating systems. Samba comes
with most distributions of Linux, but if you do not have it
installed, you can obtain a copy from the Samba home page at
http://lake.canberra.edu.au/pub/samba/. 


<h3>Mounting Windows 95 Shares</h3>

<p>The first thing you will probably want to do, is check to see
what directories are shared on the computer you are trying to
mount off of.  To do this type smbclient -L computername. This
will list all the directories shared by the machine. To mount the
directory, we use the command smbmount. Smbmount can be a little
tricky though. I have created a script, named smb, that allows
users to mount drives using smbmount, with relative ease.

<pre>   #usage  smb computername sharename
   #!/bin/sh
   if [ $UID = 0 ]; then
      if [ ! d /mnt/$1 ]; then
         mkdir /mnt/$1
      fi
   #You may want to add the -u option here also if you need to 
   #specify a login id (ie: mounting drives on Windows NT)
      /usr/sbin/smbmount //$1/$2 /mnt/$1 I $1 c etc
   else
      if [ ! d ~/mnt/ ]; then
         mkdir ~/mnt/
      fi
      if [ ! d ~/mnt/$1 ]; then
         mkdir ~/mnt/$1
      fi
   #You may want to add the -u option here also if you need to 
   #specify a login id (ie: mounting drives on Windows NT)
      /usr/sbin/smbmount //$1/$2 ~/mnt/$1 I $1 c etcfi</pre>

<p>To execute this script you simply type smb followed by the name
of the computer you are mounting off of, and then the directory
you wish to mount (ex. smb workstation files). If you are root,
the script creates a directory in /mnt by the same name as the
computer, and mounts the directory there. For any other user, the
script makes a directory in the users home directory named mnt.
In that directory it makes another directory by the same name as
the computer and mounts the share there.

<h3>Sharing files with Windows 95</h3>

<p>Now to share a file. This also is not too difficult. To share a
directory you need to edit /etc/smb.conf. By default, Samba
shares users' home directories, but they are only visible (and
accessible) to the owner. This means that the person accessing
the share should be logged into Windows 95 with the same loginid,
as they use to log into your Linux box. 

<p>Let's say you want to let 'bob' access the directory
'/shares/files', and you do not want anyone else to access it. To
do this, add these lines to your /etc/smb.conf file.

<pre>   [bobsfiles]
      comment = files for bob
      path = /shares/files
      valid users = bob
      public = no
      writable = yes
      printable = no</pre>

<ol>
<li> indicates the name the directory will be shared under. 

<li> is a comment that can be displayed in the Windows 95
Network Neighborhood.

<li> lists the directory on your computer that will be shared

<li> when set to yes allows users to access the directory with
guest privileges.

<li> indicates whether or not the user has write permissions to
the indicated directory

<li> when set to yes allows users to spool print jobs from that
directory
</ol>

<p>More examples on sharing files can be found in the default
smb.conf file.  For more help on setting up this file, see the
Samba web page, or type man smb.conf.

<h3>More cool Samba stuff</h3>

<p>If a Windows 95 user on your network is running winpopup (an
instant massaging program), you can send them a winpopup message
using Samba. To do this just type <pre>smbclient -M computername
message_text</pre>.



<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1997, Jonathon Stroud<BR> 
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>

<center>
<H1><IMG SRC="../gx/backpage.gif" alt="Linux Gazette Back Page"></H1>

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

<P> <hr> <P> 

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

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

<center><H3> About This Month's Authors </H3></center>

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

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Larry Ayers</H4>
Larry Ayers lives on a small farm
in northern Missouri, where he is currently engaged in building a
timber-frame house for his family. He operates a portable band-saw mill,
does general woodworking, plays the fiddle and searches for rare
prairie plants, as well as growing shiitake mushrooms. He is also
struggling with configuring a Usenet news server for his local ISP.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Jim Dennis</H4>
Jim Dennis 
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.mcafee.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.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">John Eikenberry</H4>
John currently lives in Athens, GA where he is both a student and an
employee of the University of Georgia. He is working on his masters thesis
in artificial intelligence while working full time as a system administration
and programmer for the College of Education. Prior to his coming to Athens,
John studied psychology and philosophy ending with a Masters of Philosophy
from the University of Toledo. He has been using Linux since 1994 and
maintains the <a href="http://www.ai.uga.edu/~jae/ai.html">Linux Ai/Alife
mini-Howto</a>.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">John Gatewood Ham</H4>
John Ham was born June 10, 1964, in Florence, Alabama.
He has a
B.S., Mathematics, from The University of the South, Sewanee, TN and an
M.S., Computer Science, from The University of Missouri-Rolla, Rolla, MO.
He is currently working as an Instructor in the Computer Science Department
at Burapha University, Bang Saen, Cholburi, Thailand.
He teachs in English -- he does not speak Thai. He lives in Thailand, because his
wife is Thai and did not wish to live in the United States.
<A HREF="http://alphabox.compsci.buu.ac.th/~zappaman/">His Home Page</A>

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Michael J. Hammel</H4>
Michael J. Hammel,
is a transient software engineer with a background in
everything from data communications to GUI development to Interactive Cable
systems--all based in Unix. His interests outside of computers
include 5K/10K races, skiing, Thai food and gardening. He suggests if you
have any serious interest in finding out more about him, you visit his home
pages at http://www.csn.net/~mjhammel. You'll find out more
there than you really wanted to know. 

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Evan Leibovitch</H4>
Evan is a Senior Analyst for Sound Software of Brampton, Ontario, Canada.
He's installed almost every kind of Unix available for Intel systems over
the past dozen years, and this year his company became Canada's first
Caldera Channel Partner.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Mike List </H4>
Mike List is a father of four teenagers, musician, printer (not
laserjet), and recently reformed technophobe, who has been into computers
since April,1996, and Linux since July.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Andy Newton</H4>
Andy Newton is a Java programmer for Automated Logic Corporation and has
been an active member of the Atlanta Linux Enthusiasts for two years.
When not playing with computers, he enjoys running, backpacking, political
banter and spending time with his fiancee, Karen.
<A HREF="http://www.eskimo.com/~lfs/">His Home Page</A> 

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Justin Seiferth</H4>
When Justin's
not busy improving our nation's information boreen, he's at home hacking
<A HREF="http://butler.disa.mil/ApacheConfig">various projects</A>.&nbsp;
If you are cut off by a silver <A HREF="http://www.xs4all.nl/~explorer/M635CSi/root.html">coupe</A>
with New Mexico plates on the roads around our nation's capital, feel free
to wave hello!&nbsp; Justin and his family will be making their annual
sojourn to relatives in <A HREF="http://www.mayo-ireland.ie/MotM.htm">Ireland</A>
during July- he'd like to hear from fellow Linux users over there.</FONT>

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Cliff Serutine</H4>
Cliff Seruntine is a writer and an electronics and computer technician,
web designer and all around hacker. He lives in Alaska with his family
of four where they fight a never-ending battle against the evil computer
assimilators and spend their weekends salmon fishing. He'd love to have
you over to visit. Meet him at <a href="http://www.micronet.net/~cybertronics">http://www.micronet.net</a>

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

<center><H3> Not Linux </H3></center>

<P> <HR> <P> 
<!--======================================================================-->
<P>
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. 

<P> 
<IMG ALIGN=CENTER ALT="" SRC="../gx/rose.gif">
My assistant, Amy Kukuk, did all the work again this month.
She's so good to me. Thank you, Amy.

<P>
I'm going on vacation from July 3 to July 13, and I am truly looking
forward to it. I've been working much too hard since taking over as Editor
of <I>Linux Journal</I>, and a week or so with no work in my thoughts is
going to be a much needed break. Riley and I are flying to Southern
California to visit his dad--the esteemed UCLA Professor Emeritus, Dr.
Ralph Richardson. We also will be visiting my daughter Lara and her
children. Pictures of all my grandchildren are on my home page--they are, of
course, the most beautiful and most intelligent grandkids in the world. I
am very proud of them, as you can see.
<P> 
Have fun!

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

<P> <HR> <P>
<!--====================================================================-->
<A HREF="./index.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="./micro.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<p><hr><p>
<I>Linux Gazette</I> Issue 19, July 1997, http://www.ssc.com/lg/<BR> 
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>