File: issue61.html

package info (click to toggle)
lg-issue61 1-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,248 kB
  • ctags: 212
  • sloc: makefile: 36; sh: 4
file content (10599 lines) | stat: -rw-r--r-- 427,166 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
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> Linux Gazette Table of Contents LG #61</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000" >
<center>
<!-- A HREF="http://www.linuxgazette.com/">
<H1><IMG SRC="../gx/newlogo.jpg" ALT="LINUX GAZETTE" border="0"></H1></A> --> 
<A HREF="http://www.linuxgazette.com/">
<H1><IMG ALT="LINUX GAZETTE" SRC="../gx/lglogo.jpg" 
	WIDTH="600" HEIGHT="124" border="0"></H1></A> 
<H2>January 2001, Issue 61 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Published by <I>Linux Journal</I></H2> 

<A HREF=../lg_frontpage.html>Front Page</A> &nbsp;|&nbsp;
<A HREF=../lg_frontpage.html>Back Issues</A> &nbsp;|&nbsp;
<A HREF=../lg_faq.html>FAQ</A> &nbsp;|&nbsp;
<A HREF=../mirrors.html>Mirrors</A> &nbsp;|&nbsp;
<A HREF=http://www.linuxgazette.com/wgindex.html>Search</A>
</center>

<!--=================================================================-->

<table>
<TR>
<TD COLSPAN="3" WIDTH="100%" BGCOLOR="#000000"><IMG
SRC="../gx/hammel/cleardot.gif" ALT="" HSPACE=30 VSPACE=2 HEIGHT=1
WIDTH=1 ALIGN=LEFT></TD>
<TD></TD>
</TR>
<tr><td>
<table>
<tr>
<td VALIGN="top"><H1><font color="#BB0000">Visit Our Sponsors:</font></H1></td></tr>



<!-- *** BEGIN sponsors *** -->
<TR><TD>
	<A HREF="http://www.linuxnetworx.com"><IMG ALT="Linux NetworX" SRC="../gx/sponsors/linuxnetworx.gif" BORDER="0" VSPACE="10"></A>
</TD></TR>

<TR><TD>
	<A HREF="http://www.penguincomputing.com"><IMG ALT="Penguin Computing" SRC="../gx/sponsors/penguincomputing.gif" BORDER="0" VSPACE="10"></A>
</TD></TR>

<TR><TD>
	<A HREF="http://www.redhat.com"><IMG ALT="Red Hat" SRC="../gx/sponsors/redhat.jpg" BORDER="0" VSPACE="10"></A>
</TD></TR>

<TR><TD>
	<A HREF="http://www.tuxtops.com"><IMG ALT="Tuxtops" SRC="../gx/sponsors/tuxtops.gif" BORDER="0" VSPACE="10"></A>
</TD></TR>

<TR><TD>
	<A HREF="http://www.elinux.com/xwb00120"><IMG ALT="eLinux.com" SRC="../gx/sponsors/elinux.gif" BORDER="0" VSPACE="10"></A>
</TD></TR>

<TR><TD>
	<A HREF="http://www.linuxcare.com"><IMG ALT="LinuxCare" SRC="../gx/linuxcare.gif" BORDER="0" VSPACE="10"></A>
</TD></TR>

<TR><TD>
	<A HREF="http://www.linuxmall.com/"><IMG ALT="LinuxMall" SRC="../gx/linuxmall.gif" BORDER="0" VSPACE="10"></A>
</TD></TR>

<TR><TD>
	<A HREF="http://www.vmware.com"><IMG ALT="VMware" SRC="../gx/sponsors/vmware.jpg" BORDER="0" VSPACE="10"></A>
</TD></TR>


<!-- *** END sponsors *** -->




</table>
</td>
<!--==================================================================-->
<TD ROWSPAN="3" WIDTH="2" BGCOLOR="#000000" NOSAVE><IMG
SRC="../gx/hammel/cleardot.gif" ALT="" HSPACE=1 HEIGHT=1 WIDTH=1%></TD>
<td VALIGN=top>
<H1><font color="#BB0000">Table of Contents:</font></H1>




<!-- *** BEGIN toc *** -->
<UL>
	<LI>  <a HREF="lg_mail61.html">The MailBag</A> 
	<LI>  <a HREF="lg_bytes61.html">News Bytes</A> 
	<UL>
		<LI>  <a HREF="lg_bytes61.html#distro">Distro News</A> 
		<LI>  <a HREF="lg_bytes61.html#general">News in General</A> 
		<LI>  <a HREF="lg_bytes61.html#software">Software Announcements</A> 
	</UL>
	<LI>  <a HREF="lg_answer61.html">The Answer Gang</A> , <EM>by The <EM>Linux Gazette</EM> Answer Gang</EM>
	<LI>  <a HREF="lg_tips61.html">More 2-Cent Tips</A> 
	<LI>  <a HREF="andreiana.html">Linux On Your Desktop: Setting Up GNOME</A> , <EM>by Marius Andreiana</EM>
	<LI>  <a HREF="collinge.html">HelpDex</A> , <EM>by Shane Collinge</EM>
	<LI>  <a HREF="dellomodarme.html">Using ssh</A> , <EM>by Matteo Dell'Omodarme</EM>
	<LI>  <a HREF="evans.html">The emelfm File Manager</A> , <EM>by Paul Evans</EM>
	<LI>  <a HREF="kasten.html">Tuxedo Tails</A> , <EM>by Eric Kasten</EM>
	<LI>  <a HREF="nielsen.html">Using the Wireless Modem Ricochet</A> , <EM>by Mark Nielsen</EM>
	<LI>  <a HREF="nielsen2.html">When Apache Redirect Doesn't Work the First Time</A> , <EM>by Mark Nielsen</EM>
	<LI>  <a HREF="okopnik.html">Learning Perl, part 1</A> , <EM>by Ben Okopnik</EM>
	<LI>  <a HREF="padala.html">Booting Linux from the NT Boot Menu</A> , <EM>by Pradeep Padala</EM>
	<LI>  <a HREF="steffler.html">Making Smalltalk:  Bags o' Fun</A> , <EM>by Jason Steffler</EM>
	<LI>  <a HREF="ward.html">Setting Up a Linux Laptop With No CD-ROM Drive</A> , <EM>by Alan Ward</EM>
	<LI>  <a HREF="lg_backpage61.html">The Back Page</A> 
	<UL>
		<LI>  <a HREF="lg_backpage61.html#authors">About This Month's Authors</A> 
		<LI>  <a HREF="lg_backpage61.html#notlinux">Not Linux</A> 
	</UL>
</UL>

<!-- *** END toc *** -->




</td>
</tr>
<TR>
<TD COLSPAN="3" WIDTH="100%" BGCOLOR="#000000"><IMG
	SRC="../gx/hammel/cleardot.gif" 
	ALT="-------------------------------------------------------------" 
	HSPACE=30 VSPACE=2 HEIGHT=1 WIDTH=1 ALIGN=LEFT></TD>
<TD></TD>
</TR>
</table> <!-- ******************************************* -->

<H3 ALIGN="center"><EM>Linux Gazette</EM> Staff and The Answer Gang</H3>
<BLOCKQUOTE>
<STRONG>Editor:</STRONG> Michael Orr<BR>
<STRONG>Technical Editor:</STRONG> Heather Stern<BR>
<STRONG>Senior Contributing Editor:</STRONG> Jim Dennis<BR>
<STRONG>Contributing Editors:</STRONG>
Michael "Alex" Williams, Don Marti, Ben Okopnik
</BLOCKQUOTE>

<TABLE WIDTH="100%"><TR>
<TD WIDTH="100%" BGCOLOR="#000000"><IMG
SRC="../gx/hammel/cleardot.gif" ALT="" HSPACE=30 VSPACE=2 HEIGHT=1
WIDTH=1 ALIGN=LEFT></TD>
</TR></TABLE>

<P> <!-- ************************************************** -->
<table>
<tr><td>
<A HREF="issue61.txt.gz">TWDT 1 (gzipped text file)</A><BR>
<A HREF="issue61.html">TWDT 2 (HTML file)</A><BR>
are files containing the entire issue: one in text format, one in HTML. 
They are provided 
strictly as a way to save the contents as one file for later printing in
the format of your choice; 
there is no guarantee of working links in the HTML version.
 </td></tr>
<!--==================================================================-->
<TR>
<TD COLSPAN="3" WIDTH="100%" BGCOLOR="#000000"><IMG
SRC="../gx/hammel/cleardot.gif" ALT="" HSPACE=30 VSPACE=2 HEIGHT=1
WIDTH=1 ALIGN=LEFT></TD>
<TD></TD>
</TR>
<tr><td>
<center>
<I>Linux Gazette</I><img alt="[tm]" src="../gx/tm.gif">, 
<A HREF="http://www.linuxgazette.com/">http://www.linuxgazette.com/</A><BR> 
This page maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com"> gazette@ssc.com</A>
<P> 
<H5>Copyright &copy; 1996-2001 Specialized Systems Consultants, Inc.</H5>
</center>
</td></tr>
<TR>
<TD COLSPAN="3" WIDTH="100%" BGCOLOR="#000000"><IMG
SRC="../gx/hammel/cleardot.gif" ALT="" HSPACE=30 VSPACE=2 HEIGHT=1
WIDTH=1 ALIGN=LEFT></TD>
<TD></TD>
</TR>
</table>
<center>
<table width="100%" cellpadding=7><tr><td>
<H2><a NAME="mail"><IMG SRC="../gx/mailbox.gif" ALIGN=MIDDLE ALT=" ">
The Mailbag!</a> </H2>
</td><td>
<H3>Contents:</H3>
<ul>
<li><a HREF="#help">Help Wanted -- Article Ideas</a>
<li><a HREF="#gen">General Mail</a>
<li><a HREF="#gaz">Gazette Matters</a>
</ul>
</td></tr></table>
Write the <i>Linux Gazette</i> at 
<A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A>.  Send technical 
questions to the Answer Gang at 
<A HREF="mailto:tag@ssc.com">tag@ssc.com</A>.
</center>

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

<P>These questions have been selected among the hundreds the <I>Gazette</I>
recieves each month.  Article submissions on these topics will be eagerly 
accepted at <a href="mailto:gazette@ssc.com">gazette@ssc.com</a>, and posted 
in the next issue.

<P>
Answers to these questions should be sent directly to the e-mail address of
the inquirer with or without a copy to gazette@ssc.com. Answers that are
copied to <I>LG</I> will be printed in the next issue -- in the Tips column 
if simple, the Answer Gang if more complex and detailed.

<P> <STRONG>Before asking a question, please check the
<A HREF=../lg_faq.html><I>Linux Gazette</I> FAQ</A> to see if it has been
answered there.  The AnswerGuy 
"<a href="../lg_index_tag.html">past answers index</a>" may also be helpful 
(if a bit dusty).
</STRONG>

<P> <HR> <P>
<!--====================================================================-->
<UL>
<!-- index_text begins -->
<li><A HREF="#wanted/1"
	><strong>Internet Cafe Management Software</strong></a>
<li><A HREF="#wanted/4"
	><strong>geforce card</strong></a>
<li><A HREF="#wanted/5"
	><strong>Hiding samba shares across multiple networks</strong></a>
<!-- index_text ends -->
</UL>
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="wanted/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Internet Cafe Management Software</FONT></H3>
Wed, 27 Dec 2000 08:39:31 -0600 (CST)
<BR>From: Alan Pater &lt;<A HREF="mailto:tag@ssc.com?cc:alan@celasmaya.edu.gt"
	>alan@celasmaya.edu.gt</A>&gt;
<P>
Hi Folks.
</P>
<P>
I've taken a quick look around the web for Linux based Internet
Cafe Software, with no luck. There's a few windows based packages
around, but that will just not do. What I'm looking for is
something which can record when people login and logoff and
calculate how much they should pay. Have you seen anything like
that? Even a set of instructions on how to do it with a set of
scripts would be cool.
</P>
<P>
Alan Pater
</P>
<P>
www.celasmaya.edu.gt
</P>

<p>Can any of our fair readers find some good internet cafe or "walk in ISP"
	software?  We can only offer the following leads: </p>

<em>
<p>Try looking around including the keyword Coffeenet.  That was a Linux
based cafe in the S.F. area; he closed shop when he had his lease end,
but it was successful before that, the building owner just didn't want
to renew.  I'm pretty sure he open sourced the distro he created, but
note, it depends on having a serious NFS server in the back.
</P>
<P>
I know the <A HREF="http://www.valinux.com/">VA Linux</A> "mail garden" machines and his, had a similar feature
of cleaning up after anything local, so the machines never have any
interesting leftovers from previous clients.  xdm or gdm have control
files for stuff to do before and after a session, so it should be possible
to add accounting functions to logging in and out, and to add cleanup
to logging out, quite easily.    Keeping people from accessing text mode
is a little more work, but I don't think Coffeenet was preventing that.
</P>
<P>
Neither of these actually kick someone out when their time is up, so you
still have some work to do if your shop is too big to merely keep an eye
on people and rely on a popup "you've been on for awhile" note.
<br>-- Heather
</P>
</em>
<P>
I don't know of any scripts, but "last" gives you login/logout times
by user.  Should be possible to dump the output into a database
via some pretty simple awk, perl, python, or even sh scripts.
</P>
<P>
Last reads wtmp, so watch out for when your wtmp gets rotated.
Most log rotation scripts will move wtmp to a backup, for example
wtmp.1, and "last" will take a filename as a parameter.
</P>
<P>
Sample output from "last":
</P>
<P><BLOCKQuote><PRE>
[ ... ]
dlong    ttyp3        passenger.ssc.co Fri Dec  1 09:21 <TT>-</TT> 09:22  (00:00)
carrie   ttyp5        catnip.ssc.com   Fri Dec  1 08:48 <TT>-</TT> 17:04  (08:15)
fax_inc  ttyS0              +39 45 877 Fri Dec  1 08:43 <TT>-</TT> 08:44  (00:01)
annie    ttyp4        passenger.ssc.co Fri Dec  1 08:42 <TT>-</TT> 14:48  (06:06)
dlong    ttyp3        passenger.ssc.co Fri Dec  1 08:20 <TT>-</TT> 09:03  (00:42)
[ ... ]
</PRE></BLOCKQuote></P>
<P>
See "man last".
<br>-- Dan Wilder
</P>


<!-- end 3 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="wanted/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">geforce card</FONT></H3>
Mon, 25 Dec 2000 12:27:50 +1100
<BR>From: "Ron Nicholls" &lt;<A HREF="mailto:tag@ssc.com?cc:nykysle@bigpond.com"
	>nykysle@bigpond.com</A>&gt;

<P>
I have RH 7.0 which has XFree86 4.0.1 which does not
support Geforce 2 chips yet.
Is there a patch or update or howto to install the necessary
support.
</P>
<P>
Regards
RonN
</P>

<em><p>Any developer types want to help him out here?  Xfree86 4.0.2
came out, but it still has no special support for this card, so unless
it works in VESA mode, he's out of luck for now...</p>

<p>And, we'll galdly take articles on adding support for new cards to X
version 4! -- Heather</p>
</em>

<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="wanted/5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Hiding samba shares across multiple networks</FONT></H3>
Fri, 15 Dec 2000 10:07:36 -0800 (PST)
<BR>From: Faber Fedor &lt;<A HREF="mailto:tag@ssc.com?cc:faberfedor@yahoo.com"
	>faberfedor@yahoo.com</A>&gt;

<P>
Hi guys (and Heather 
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)" 
		height="24" width="20" align="middle">!
</P>
<P>
I've got an interesting little problem with Samba and hiding shares when
multiple networks are involved.  I'm hoping one of you can help out, or maybe
one of the Gentle Readers has already done this.
</P>
<P>
I have one Samba box with two network interfaces (on one NIC using virtual
lans), say 192.168.1.10 and 192.168.2.10. Two companies sit on each network and
can't learn about the other. Let's call them "Acme, Limited" (192.168.1.0/24)
and "Coyotes-R-Us" (192.168.2.0/24). They, of course, use Another Operating
System.
</P>
<P>
What I want to do is to create shares on the Samba box for Acme and Coyote to
store their files.  That's easy enough, the problem is in restricting what they
see.
</P>
<P>
If I create Acme and Coyote as users and share the home directories via the
[homes] default share, Acme will not see Coyote's share and vice versa.  This
is good.  However, if the CEO of "Coyotes-R-Us", Mr. Wiley, logs onto the Acme
network, he will see the Coyote [home] share appear on the Acme network.  This
is NOT a Good Thing.
</P>
<P>
(I tested this by placing a Windows box on Acme's network via a port on a Cisco
switch that was set up to handle only Acme's vlan.)
</P>
<P>
If, OTOH, I set them up as separate shares and restrict them via IP addresses a
la "allowed_hosts=", both companies can see the other's share, which is Not A
Good Thing, even though they cannot access the other's share (always a good
thing).
</P>
<P>
I've been hacking at this for several days trying to figure something out, as
well as surfing Google, Deja.com, the samba mailing lists, and any other place
I could think of. You are my Last Great Hope. 
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)" 
		height="24" width="20" align="middle">
</P>
<P>
TIA!
</P>
<P>
=====
Sincerely,
Faber Fedor
</P>

<em><p>It looks like the Answer Gang could stand to be joined by a serious
Samba expert.  Anyone care to jump in?</p></em>
<!-- end 5 -->
<P> <hr> <P>
<!-- =================================================================== -->
<a name="gen"></a>
<center><H3><font color="maroon">General Mail</font></H3></center>

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

<!-- BEGIN general mail -->

<UL>
<!-- index_text begins -->
<li><A HREF="#mailbag/1"
	><strong>Thank you for your telnet logging screen article</strong></a>
<li><A HREF="#mailbag/2"
	><strong>LG</strong></a>
<li><A HREF="#mailbag/3"
	><strong>install</strong></a>
<li><A HREF="#mailbag/4"
	><strong>Security articles</strong></a>
<!-- index_text ends -->
</UL>
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="mailbag/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Thank you for your telnet logging screen article</FONT></H3>
Thu, 21 Dec 2000 17:53:00 -0500
<BR>From: chris dillon &lt;<A HREF="mailto:gazette@ssc.com?cc:thebin@mailandnews.com"
	>thebin@mailandnews.com</A>&gt;

<P>
I scoured the net and your article gave me the answer so that might log my
telnet session.
</P>
<P>
Thank you.
</P>
<HR width="10%" align="left"><P><em>
I've been doing a lot of abstract painting lately, extremely abstract. No brush, no
paint, no canvas, I just think about it.
-- Steven Wright
</em></P>


<!-- end 1 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="mailbag/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">LG</FONT></H3>
Fri, 1 Dec 2000 18:02:15 +1100
<BR>From: "BanDiDo" &lt;<A HREF="mailto:gazette@ssc.com?cc:bandido@drinkordie.com"
	>bandido@drinkordie.com</A>&gt;

<P><STRONG>
LG is awesome, if you charged for it I would subscribe. When I
get some free time one of these I hope to pen a few articles and
such.
</STRONG></P>
<P>
Thanks.  Linux Gazette was established as a free zine and we firmly
intend to keep it that way.  There are already paid magazines out
there (we publish one of them 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">, but LG fills a unique niche.  No
other e-zine I know of (Linux or otherwise) is read, not just
through a single point of access, but in large part via mirrors or
off-line (via FTP files, CD-ROMS, etc).
</P>
<P>
Also, because LG's articles are written by our readers, you
(readers) are truly writing your own magazine.  I only put things
together and insert a few comments here and there, and occasionally
write an article. If it weren't for our volunteer authors, there
would be no Linux
Gazette.  When I first took over editing in June 1999, I used
to wonder every month whether there would be enough articles.  But
every month my mailbox magically fills with enough articles not
just for a minimal zine (5-10 technical articles), but for a robust
zine with 15+ articles covering a variety of content (for newbies
and oldbies, technical articles and cartoons).  A year ago, we
never predicted there would be cartoons in the Gazette, but the
authors just wrote in and offered them, and it's been a great
addition.  It is truly a privilege to work with such a responsive
group of readers, and years from now when I'm retired (hi,
Margie!), I'm sure I will remember fondly what an opportunity it
was.
</P>
<P>
Our biggest thanks go to The Answer Gang, especially Heather and
Jim, who each spend 20+ hours a month <em>unpaid</em> compiling The Answer
Gang, 2-Cent Tips and The Mailbag.  This has really made things a
lot easier for me.
</P>

<p><em>Awwww, shux.  I do get the occasional consulting lead from this,
	though. -- <a href="mailto:star@starshine.org">Heather</a></em></p>

<P>
we look forward to printing some articles with your name on them.
See the Author Info section at
<A HREF="http://www.linuxgazette.com/lg_faq.html#author"
	>http://www.linuxgazette.com/lg_faq.html#author</A>
</P>
<P>
And you other readers who haven't contributed anything yet, get off
your asses and send something in!  Write a letter for the Mailbag,
answer a tech-support question, join The Answer Gang, do a
translation for our foreign-language sites, or write an article.
What do <EM>you</EM> wish the Gazette had more of?  <em>That's</em> what it needs
from you.
</P>
<P>
--
Mike Orr
</P>

<P><strong>
Would be lovely if you guys established an EFNET irc channel 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
<br> -- BanDiDo
</strong></P>

<!-- end 2 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="mailbag/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">install</FONT></H3>
Sun, 10 Dec 2000 11:10:00 -0500
<BR>From: Ben Okopnik &lt;<A HREF="mailto:tag@ssc.com"
	>The Answer Gang</A>&gt;

<P>
On Sun, Dec 10, 2000 at 07:36:50AM <TT>-0000</TT>, &lt;Name Snipped&gt; wrote:
</P>
<P><BLOCKQuote>
&lt;A querent asked that we not publish his email&gt;
</BLOCKQuote></P>
<P>
If all you meant was not to publish your e-mail <EM>address</EM>, then please
write back with your question and be sure to clarify that. If not, then
consider this:
</P>
<P>
I can't speak for the whole Answer Gang, nor do I set Linux Gazette policy
- but I, for one, have absolutely zero interest in being a free
one-on-one tutor for the general public, although I'm always willing to
help my friends. I enjoy the fact that the effort I expend in answering
these questions goes toward helping everyone in the Linux community: even
those that don't read the LG benefit from the general dispersion of good,
useful Linux knowledge. This is precisely <EM>why</EM> I expend the effort, or is
at least one of my major motivations for doing so.
</P>
<P>
For anyone wanting one-on-one tech support and tutoring, it's "cash on the
barrel" in a "what you get is what you pay for" economy. Cash preferred,
bank checks are OK, major credit cards cheerfully accepted.
</P>
<P>
Ben Okopnik
</P>


<!-- end 3 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="mailbag/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Security articles</FONT></H3>
Thu, 28 Dec 2000 09:54:31 -0800
<BR>tag@ssc.com, Kapil Sharma <kapil@linux4biz.net>,<a href="mailto:tag@ssc.com?cc:gazette@ssc.com">gazette@ssc.com</a>

<P>
[A guest commentary from our News Bytes editor.  I asked him to
summarize the controversy on <A HREF="http://www.slashdot.org/">Slashdot</A> regarding SSH/SSL vulnerabilities,
and to assess whether we need an article on it. -Mike]
</P>
<P>
Date: Thu, 28 Dec 2000 16:55:56 +0000
Subject: Re: Late News Bytes additions
<br>From: Michael Conry <A HREF="mailto:michael.conry@softhome.net"
	>michael.conry@softhome.net</A>
</P>
<P>
Hi Mike,
please find attached the
&lt;A HREF="lg_bytes61.html"&gt;news bytes 61 file&lt;/A&gt;.
I did go through the SSH issues, and summarised them briefly. I kind of
skirted around the SSL because it seemed less clear cut, and very much an
issue of implementation and protecting users from themselves. Most
discussion in the links focussed on SSH in any case.
</P>
<P>
I would recommend, not an article on Holes in SSH, but rather an article on
security in general. Lots of contradictory messages on Slashdot indicate
that people still don't really understand what is going on or how exactly to
administer a public key system.
</P>
<P>
The issues are not new, but are inherent in public key systems.
pgp,gnupg is the same (how can i be sure the key i think is yours is really
yours?). The biggest issue is probably users (lusers) ignoring warning
messages.
</P>
<P>
The new dsniff software is probably worth commenting on also. I included a
link in my short discussion, but have not studied it. What could be very
interesting would be for an article to highlight how to use tools like this
to strengthen your system/network by scrutinising it and probing it. Focus
tends to be on how these tools allow malicious people to break other
people's systems.
</P>
<P>
bye for now
<br>michael
</P>

<BLOCKQUOTE><EM>
	[There were several other messages this month, but it's 10:45pm on New
	Year's Eve, and I want to publish </EM>LG<EM> and get to the club by
	12.  The letters will be printed next month. -Mike.]
</EM></BLOCKQUOTE>

<!-- end 4 -->
<H4 ALIGN="center">"Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<HR>

<center>
<table cellpadding=7><tr><td>
<IMG SRC="../gx/bytes.gif" border=1  ALT="News Bytes">
</td><td>
<H3>Contents:</H3>
<ul>
<li><a HREF="#distro">Distro News</A>
<li><a HREF="#general">News in General</a>
<li><a HREF="#software">Software Announcements</a>
</ul>
</td></tr></table>

<STRONG>Selected and formatted by  <A HREF="mailto:michael.conry@softhome.net">Michael Conry</A></STRONG>
</center>


<P> Submitters, send your News Bytes items in 
<FONT SIZE="+2"><STRONG>PLAIN TEXT</STRONG></FONT>
format.  Other formats may be rejected without reading.  You have been
warned!  A one- or two-paragraph summary plus URL gets you a better
announcement than an entire press release.





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

<center>
<IMG ALT="Linux Journal 81 cover"   SRC="misc/cover81.jpg" WIDTH=200 HEIGHT=268>
</center>
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<font color="green">
January 2000 <I>Linux Journal</I>
</font>
</H3>

<P> 
The January issue of <A HREF="http://www.linuxjournal.com/"><I>Linux
Journal</I></A> is on newsstands now.
This issue focuses on Multimedia.  Click 
<A HREF="http://www.linuxjournal.com/lj-issues/81/index.html">here</A>
to view the table of contents, or 
<A HREF="http://www.linuxjournal.com/subscribe/index.html">here</A> 
to subscribe.
<FONT COLOR="green">All articles through December 1999 are available for
public reading at 
<A HREF="http://www.linuxjournal.com/lj-issues/mags.html">http://www.linuxjournal.com/lj-issues/mags.html</A></FONT>.  
Recent articles are available on-line for subscribers only at 
<A HREF="http://interactive.linuxjournal.com">
http://interactive.linuxjournal.com/</A>.  


<P> <BIG><STRONG>Vendors:</STRONG> <I>Linux Journal's</I>
2001 Buyer's Guide wants <EM>your</EM> product listings!  Listings are
absolutely FREE of charge, however you must register your products by
<STRONG>January 15, 2000</STRONG>. The deadline is firm so make certain
to get your free listings in today. <A
+HREF="http://www.linuxjournal.com/bg/">http://www.linuxjournal.com/bg/</A>.
.</BIG>  


<a name="distro"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="green">Distro News</font></H3></center>

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



<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Caldera
</FONT>
</H3> 

<P> OREM, UT-December 19, 2000-
<a href="http://www.calderasystems.com/">
Caldera Systems, Inc., </a>
announced that they have contracted with Richard Sharpe of the Samba team to
create a client library that will make Linux and Microsoft integration
easier for developers.  The Caldera-funded project includes the development
of library source code, associated reorganization and reuse of Samba code
and documentation of the library API. 
The library and documentation will be available
under the General Public License (GPL).  Caldera's engineering group will
work with the Samba team to complete the project by February 2001.
<p>
"Richard Sharpe is perfectly suited for this project," said John Terpstra,
vice president of technology and Open Source strategist for Caldera Systems,
"We believe this library built with Samba code will become the
standard for developers writing software that integrates with Microsoft
networks."
	
<p>
Developers interested in more technical detail on the project can
visit the 
<a href="http://samba.org/samba">
Samba Web page.</a>



<P> <hr> <P> 
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Mandrake
</FONT>
</H3> 


<P> CAMBRIDGE, MASSACHUSETTS, USA (December 4, 2000) - 
<a href="http://www.ics.com/">Integrated Computer Solutions, Inc. (ICS)</a>,
the leading supplier of commercial OSF/Motif
products and support, and MandrakeSoft, publisher of the Linux-Mandrake
operating system, announced the immediate availability of Open Motif
optimized for the Linux-Mandrake operating system.

More details are available in the 
<a href=" http://www.ics.com/about/whatshot/press_releases/ome_mandrake.html">
press release
</a>
<p>
Open Motif optimized for the Linux-Mandrake 7.2 operating system is
available for free downloads at the MotifZone, ICS's Motif portal site
(<a href="http://www.motifzone.net">www.motifzone.net</a>). Open Motif is
also bundled with the Linux-Mandrake 7.2 PowerPack Deluxe.


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Red Hat
</FONT>
</H3> 


<P> RESEARCH TRIANGLE PARK, N.C.--December 11, 2000--
<a href="http://www.redhat.com">Red Hat, Inc.</a>
today announced that Cradle Technologies, Inc., is leveraging a broad set of
Red Hat's embedded technologies and services as part of its strategy to
supply a revolutionary silicon platform for stream processing applications.

<P> The Cradle contract 
includes consulting services and porting of Red Hat's GNUPro embedded
development tools, eCos and embedded Linux operating systems, to Cradle's
Universal Microsystem platform (UMS). Cradle's UMS platform will make it
possible for new embedded systems to be developed simply by redesigning 
software, rather than by constantly rebuilding the entire chip hardware.
<p>

<hr noshade width="20%">

<P> RESEARCH TRIANGLE PARK, N.C.--December 13, 2000--
In further embedded Linux developments, Red Hat announces a deal with
<a href="http://www.rymic.com">Rymic Systems</a>
that will put Red Hat Linux (uClinux) behind as many as 50,000
Army trucks and fighting vehicles.  These vehicles will run a
next-generation Rymic appliance that assesses, in real time, the likelihood
of vehicle failure.  

<P> The device will monitor dozens of specific variables on an array of
military vehicles, and provide decision-makers with additional information
when considering which forces to deploy, which fighting vehicles to pull
back from the battlefield and which vehicles require immediate maintenance
and repairs.
<p>
For more information on Red Hat Embedded Linux please visit
<a href="http://www.redhat.com/embedded">www.redhat.com/embedded</a>.


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">SuSE
</FONT>
</H3> 

<P> Oakland, Calif., USA (December 1, 2000) --  
<a href="http://www.suse.com">SuSE Linux</a>
announced a new strategic alliance with SGI.
Under the alliance agreement, SGI will make an equity investment
in SuSE Linux and will co-operate on the development, deployment and
support of the Linux operating system and infrastructure code.

<P> Earlier this year, the companies successfully introduced Linux FailSafe, a
scalable and modular high-availability solution based on IRIS FailSafe system 
software developed for the SGI IRIX operating system.  Linux FailSafe offers
advanced clustering capabilities to Linux. SuSE, SGI and others also
cooperated in the highly regarded IA-64 Trillian Linux effort.
<p>
<hr noshade width="20%">

<P> SuSE have also brought it to our attention that
there is integrated backward-compatible Pentium 4 recognition in the
standard Linux kernel 2.2.16 included in SuSE Linux 7.0.
A boot disk image of the kernel can be downloaded from
<a href="ftp://ftp.suse.com/pub/suse/i386/update/7.0/kernel/pentium4/p4-bootdisk">
their ftp site
</a>


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



<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Upcoming conferences and events
</FONT>
</H3> 


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">SSH/SSL Vulnerability
</FONT>
</H3>
<p>
There have been a few articles going around regarding possible security
risks associated with the use of SSH and SSL. Kurt Seifried has written
several times on this subject, as far back as 
<a href="http://www.securityportal.com/closet/closet19990930.html">
September 1999</a>. More recently he has returned to the topic in
<a href="http://securityportal.com/cover/coverstory20001218.html">
an article</a> on 
<a href="http://www.securityportal.com/">www.SecurityPortal.com</a>, and a
<a href="http://www.securityportal.com/seifried/sslssh-followup20001222.html">
follow up article</a> responding to some of the feedback he got from
readers. This topic seems to have stirred up quite a reaction, and has been
further 
<a href="http://slashdot.org/article.pl?sid=00/12/18/0759236&mode=nested">
discussed</a> by the contributors to Slashdot.
<p>
Without wanting to repeat too much of the discussion that has gone before,
the issue basically boil down to one of key exchange and trust. The only
real risk to SSH security is in the initial contact with a machine when you
do not know whether it is in fact the host you think it is. This is not an
SSH problem, as such, but rather is a difficulty with any public key
encryption system. The trick is to find a secure way to distribute your
public key that does not inconvenience your users too much.
<p>
Also, the largest risk to security is not, in general, software problems. Many
problems actually originate from users who ignore  or do not  understand
warning signs that something is wrong. The problems with software
highlighted in these articles are the extent to which they leave themselves
open to poor use.
<p>
It is certainly worth pointing out that none of these links highlight any
NEW flaw in the SSH/SSL system or implementation. The main reason for the
recent focus on these issues is the release of a new piece of software:
<a href="http://www.monkey.org/~dugsong/dsniff/">
dsniff</a>, which makes easy interception of SSH traffic more convenient for
a wider number of people. This is not because it exploits any weakness,
rather it provides some handy tools to automate the interception process.
However, wide availability of these tools does increase the chance of casual
attacks on systems.
<p>
The take-home message is that the best way to keep a system secure is by
educating yourself your boss and your users about security. It is only by
understanding what is going on that you have any chance of keeping your system
healthy (hardly earth-shattering news, but true none-the-less).
<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Linux Clusters Powering Genome Research
</FONT>
</H3> 

<P> SALT LAKE CITY, UTAH, Dec. 14, 2000 - 
<a href="http://www.linuxnetworx.com">Linux NetworX, Inc.</a>, 
a provider of large-scale clustered computer solutions
announced that the Lawrence
Berkeley National Laboratory, Berkeley Calif., has selected a Linux NetworX
cluster computer system for its Drosophila Genome Project.

<P> Using the Linux NetworX cluster system with 40 processors, Berkeley Lab
is analyzing and sequencing the Drosophila (fruit fly) genome. 
The Drosophila's 15,000 genes are similar to a human's 100,000 genes and
have been used extensively in the past as a model organism for research
studies. 

<P> "The Linux NetworX cluster is much more cost efficient than the systems
we've used in the past," said Erwin Frise, systems manager and biomedical
scientist, Lawrence Berkeley National Laboratory.  Frise also explains that
because clusters are highly scalable, Berkeley Lab will in the future be
able to add additional compute modules to the system to keep it up to date,
something not feasible with a supercomputer. 



<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">New look for ShowMeLinux
</FONT>
</H3> 

<P> Vancouver, British Columbia. December 1st, 2000 - 
<a href="http://www.lutelinux.com">LuteLinux.com</a>,
a Canadian-based Linux developer announces
the unveiling of 
<a href="http://www.showmelinux.com">ShowMeLinux</a>'s exciting new look.
LuteLinux had previously announced the addition of ShowMeLinux to their
family of services, LuteLinux is hosting all future issues and has taken
over as publisher of ShowMeLinux.
The new look was created by Adam Puchalski, a welcomed new addition to
both LuteLinux and ShowMeLinux, as their Graphic/Web designer, and
co-editor of ShowMeLinux.
<P> ShowMeLinux is published with the goal of helping readers develop an
in-depth understanding of the Linux movement through rich, beginner
friendly content.  It explores practices for configuring, deploying and
maintaining the latest Linux technology.


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">HP and Sprint PCS Form Wireless Email Alliance</FONT>
</H3> 


PALO ALTO, Calif. and KANSAS CITY, Mo., Dec. 19, 2000 -- 
<a href="http://www.hp.com">
Hewlett-Packard</a>
and 
<a href="http://www.sprintpcs.com">
Sprint PCS</a>
announced an agreement to jointly market and sell
the HP Openmail Anywhere solution as part of the Sprint PCS Wireless Web for
Business. The solution enables business customers to wirelessly access their
corporate email on Sprint PCS Internet-ready Phones. 
Openmail is HP's strategic business messaging and collaboration solution
for Linux and UNIX(R) systems, based on Internet standards. More
information about Openmail is available at
<a href="http://www.hp.com/go/openmail">http://www.hp.com/go/openmail</a>.


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Linux based BizRelations Inc. Announces First Fully Functional Wireless Email in time for Holidays
</FONT>
</H3> 

Dec. 14, 2000 8:30am - BizRelations Inc.
(
<a href="http://www.BizRelations.com">WEB</a>
and
<a href="http://www.BizRelations.net">WAP</a>),
has announced Canada's first FULLY functional
and FREE Wireless Email system.
From any digital mobile phone equipped with wireless internet data
services users will be able
to Send and Receive emails, access  their wireless
addressbook, check their email folders, and use the unique Quick
Reply Messaging function.  
<p>
BizRelations have largely based their IT infrastructure on an Open Source
Linux foundation.
BizRelations has successfully been using the
<a href="http://www.linuxvirtualserver.org">Linux Virtual Server (LVS)</a>
along with
<a href="http://www.redhat.com/products/software/linux/haserver/">
RedHat's Piranha clustering tool</a>
to provide high availability and scalability for web, email and SQL services. 
Sybase ASE 11.0.3.3 for Linux was the SQL server chosen by BizRelations,
while the email solution chosen was qmail 
Another core function  is monitoring the
availability of systems and networks.
To fill this requirement 
<a href="http://www.netsaint.org">
NetSaint</a> was used.
"If there are any problems, an email gets sent to
the support cellphone stating the nature of the problem." says Patrick Petersen
(President of BizRelations).
After running with RedHat Linux for over a
year, even if Windows 2000 was a free alternative, BizRelations would
willingly shell out the money for Linux.

<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Linux Links
</FONT>
</H3> 
<p>

<a href="http://www.salon.com/tech/feature/2000/12/01/wireless_ethernet/index.html">
Salon</a> take a look at free wireless TCP/IP networks in the US. The
originators see it as an extension of the Open-Source/Free-Software ethos.
<p>

ZD-Net take an in-depth look at running Linux on
<a href="http://lhd.zdnet.com/superguides/laptops.html">
laptops</a>. (For anyone wanting to turn their shiny new toy into a real
computer!)
<p>

<a href="http://www.newsforge.com/article.pl?sid=00/12/05/1145237">
Newsforge</a> comment on Bruce Perens' move to HP as head of the company's
Linux and open-source strategies. This is being touted as the first
Open-Source foray into the upper echelons of Big Business
<p>

<a href="http://www.eastbayexpress.com/archive/120100/cover_120100.html">
East Bay Express</a> looks at a life in a TelCo call centre. Makes you look
a bit differently at those frustrating periods on hold.
<p>

There is an interview with Eben Moglen (subtitled the "The Encryption Wars")
available on immaterial.net. It is in two parts:
<a href="http://www.immaterial.net/page.php3?id=44">
part 1</a>
and
<a href="http://www.immaterial.net/page.php3?id=45">
part 2</a>, strangely enough.
<p>

Some links courtesy of Slashdot:
<ul>
    <li> NSA Linux distribution is discussed in a 
    <a href="http://slashdot.org/articles/00/12/22/0157229.shtml">
    Slashdot article</a> and in a different tone on the 
    <a href="http://www.nsa.gov/selinux/">
    official website</a> where, incidentally, you can download it for
    yourself. Look it up soon, though, because they still aren't 100% sure
    they can continue to distribute it.

    <li>
    <a href="http://www.lwn.net/2000/features/Timeline/?month=all">
    Linux 2000 timeline</a>

    <li> Turbolinux have demonstrated the use of a Linux cluster to crack
    5-character NT passwords in just one minute. Read more
    <a href="http://www.businesswire.com/webbox/bw.111300/203180468.htm">
    here</a>. 
    (Please note, Turbolinux does not endorse breaking passwords,
    they just like building good clusters!)

    <li>A
    <a href="http://www.lwn.net/2000/0113/a/ucita.html">
    look</a>
    at why UCITA is BAD. The issues are complicated, but this is a very
    important issue to the future of software distribution and engineering.
</ul>

<a href="http://www.thedukeofurl.com">The Duke of URL</a> has some new
reviews that may be of interest to you:
<ul>

    <li>For those wanting to keep in touch with the BSD side of things, the
    Duke of URL has a 
    <a href="http://www.thedukeofurl.org/reviews/misc/freebsd42"> 
    review</a> of
    Free BSD 4.2 (even draws comparisons against Linux).

    <li>The Finnish Software Engineering distribtion Best Linux
    2000 R3 is out. Read the 
    <a href="http://www.thedukeofurl.org/reviews/misc/bestlinux2kr3">
    review </a> 
    and find out how good Linux is in the homeland.

</ul>
<p>

The Linuxcare support Database is 
<a href="http://www.linuxcare.com/help-yourself/kbsearch/simple-search.epl">
available online</a> if you have some problems you need solutions for.
<p>

<a href="http://www.osopinion.com/perl/story/5954.html">
OS Opinion</a> take a look at the difficulties with complicated software, in
particular the ramifications of OSX's UNIX/BSD heritage.
<p>

Some highlights from Linux Weekly News:
<ul>
    <li>
    If anyone is still in doubt what Linux IS, and would like a smile, check
    out this 
    <a href="http://www.lwn.net/2000/1221/">
    article</a>.
    <li>
    Those of an artistic temperament should look at 
    <a href="http://www.lwn.net/Gallery/">
    Penguin Art.</a>
    <li> Also, courtesy of LWN comes this link to 
    <a href="http://www.salon.com">Salon's</a> round up of tech 
    <a href="http://www.salon.com/tech/feature/2000/12/22/five_best/index.html">
    stories and non-stories</a> of 2000AD.
</ul>

Finally, for the fashion conscious (or cold ;-), 
<a href="http://www.tuxwear.net">Tuxwear</a> has a range of Linux apparel
(perfect treat to cheer one up in the post-Xmas season!).

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


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">KDE 2.0.1
</FONT>
</H3> 

<p><a href="http://www.kde.org">KDE</a> have announced release of KDE 2.0.1.

The official announcement is available
<a href="http://www.kde.org/announcements/announce-2.0.1.html">here</a>.
<p>
There is also a KDE Beta available for
<a href="http://www.lwn.net/2000/1221/a/kde-2.1b1.php3">
download</a>.

<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">XFree86 4.0.2
</FONT>
</H3> 
<p>
<a href="http://www.xfree86.org/">XFree86</a> have released XFree86
4.0.2, and the 
<a href="http://www.thedukeofurl.org">Duke of URL</a> has posted a 
<a href="http://www.thedukeofurl.org/reviews/misc/xfree86402">
review </a>.
Highlights include ATI Radeon support.
<p>
For the official news, refer to the XFree86 
<a href="http://www.xfree.org/#news">
news section</a>. Before you actually download or use this you will also
probably want to check out the
<a href="http://www.xfree.org/4.0.2/RELNOTES.html">
Release Notes</a>

<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Smart Batteries
</FONT>
</H3> 

<P> 
<a href="http://www.softtools.net">SoftTools Technology, Inc.</a>
has announced their new Linux Smart
Battery System Software Suite (Linux SBS3).  The Linux SBS3 
is a complete software solution for Portable systems that provides support
for systems that incorporate Smart Battery System components under Linux.  A
User Friendly applet with a GUI for multiple smart batteries and/or regular
batteries that read and provide accurate information to the user is also
available.


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Free Download of Configuration Management System Elego ComPact
</FONT>
</H3> 

<P> The establishment of elego Software Solutions GmbH has been announced in
Berlin. The new company specializes in software configuration
management (SCM), and offers a wide range of support, service, and
general consulting in the area of configuration management (CM).

<P> Elego ComPact is a full-featured configuration management (CM) system
based on the well-known and reliable version control system CVS. Elego ComPact
extends CVS capabilities by adding new functions and concepts,
including build management and component model.

Elego ComPact may be used freely for all non-commercial purposes;
commercial users must obtain a license.

<P> Elego ComPact claims to add missing features and concepts to the basic
CVS system: 

<P> You may download a current development snapshot of Elego ComPact
for evaluation purposes or free private use via FTP or HTTP from their
<a href="http://www.elego-software-solutions.com/download.html">
download page</a>.


<P> For more information see 
<a href="http://www.elego-software-solutions.com">
www.elego-software-solutions.com</a>



<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">VMware Enters Server Market
</FONT>
</H3> 
<P> PALO ALTO, Calif., December 5, 2000 - 
<a href="http://www.vmware.com/">VMware, Inc.</a>.
For the latest VMware press releases, check out: 
<a href="http://www.vmware.com/news/">www.vmware.com/news/</a>.

<P> VMware have made a number of announcements around two new server products:
<ul>
<li>   - VMware Enables Intel Server Customers to Scale 
    their Internet Computing Infrastructures Safely, 
    Reliably and on Demand

<li>   - VMware Announces Initial Adopters of its 
    New Server Products - CenterBeam, Inc., 
    eOnline, Inc., Merrill Lynch, and ProTier

<li>   - Compaq, Dell, IBM and VA Linux are Founding 
    Partners in VMware's Preferred Server Hardware 
    Vendor Program

<li>   - VMware Forms Professional Services Organization 
    and Announces New Offerings to Ensure 
    Customer Success
</ul>
Rather than give all the details here, I will point you to the 
<a href="http://www.vmware.com/news/">news</a>.
section of VMware's website where you can get the full stories.

<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">WARP Aim to Improve Web Performance
</FONT>
</H3> 

<P>  NEW YORK, NY * November 1, 2000 * 
<a href="http://www.warpsolutions.com">WARP Solutions, Inc.</a>, 
providers of Web
infrastructure software for the  area of optimum
performance of Internet applications, have launched the WARP Performance
Suite, initially consisting of WARP Intelligent Content Distributor, WARP
Global Load Balancer and WARP Load Balancer.  
Additional products - - WARP Dynamic Content Director, WARP Cache Master
and WARP Secure - - are being rolled out on an individual basis during the
fourth quarter and early next year.  This suite of modules aim to
enhance web-server performance with emphasis on "performance, reliability,
scalability, security, speed and interoperability".

WARP's initial launch will
run on Solaris, Compaq Tru64 and Linux platforms.

<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">ACCESS Introduces Linux-based Browser Development Kit
</FONT> </H3> 

<P> MILPITAS, Calif./TOKYO, Japan - December 11, 2000 - 
<a href="http://www.access-us-inc.com/">ACCESS Co., Ltd.</a>
introduced a NetFront 2.6 Linux Software Development Kit (SDK) for the
worldwide market. This should speed the integration of ACCESS' popular NetFront
browser into Linux-based Internet appliances and other non-PC applications.
<p>
Since its introduction in 1995,
NetFront browsers have been shipped in over 18 million embedded devices from
40 manufacturers. NetFront is an ideal browser for Internet TVs, PDAs
(personal digital assistants), set-top boxes, car navigation systems, smart
phones, web/screen phones, vertical Internet terminals, video game consoles
and Internet kiosks.
<p>
The browser kernel
is less than 270 KB of code and fits in 1.3 megabytes of ROM and 2 megabytes
of RAM. It supports the full HTML 3.2 specification and selected portions of
HTML 4.0. It supports frames, JavaScript, cookies, web printing and
multilingual capabilities.
<p>
This SDK lets developers customize the user
interface to their desired look and feel and add plug-in applications
tailored for specific applications.
NetFront version 2.6 SDK for Linux will be available as a full source
code package. The SDK includes the NetFront version 2.6 browser kernel, a
sample user interface module and PIM suite, the Internet mail module, a
sample library for peer interface layer and graphics layer (GTK/SDL), and
documentation.
An SDK with five-seat development license is
available for $40,000 including three months support.



<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Linux-Based Intranet Broadcast Solutions
</FONT>
</H3> 

San Jose, CA-
<a href="http://www.2netFX.com/">2netFX</a>, 
a provider of streaming solutions for 
intranet and broadband Internet media delivery, and 
<a href="http://www.zapex.net/">Zapex Technologies, Inc.</a>
an industry leader of MPEG-2 compression 
products, are in alliance to design and deliver innovative hardware 
and software broadcast solutions to be used in the IP distance 
learning market.
<p>
The first system offered by the alliance is a Linux-based server 
solution, providing users a viable means to stream 
broadcast-quality transmissions. It includes 2netFX's StreamRider 
client and ThunderCast/IP server software and Zapex's ZL-330 
encoder with Dolby digital audio and MPEG-2 video. It is the first 
encoder of its type to achieve Dolby certification for Linux 
operating systems, and it eliminates inherent lip-sync issues by 
providing Transport Stream multiplexing within the Zapex encoder. 
<p>

The ZL-330 produces high quality video images at low bit rates. 
"The resulting low-bandwidth video stream from the ZL-330 permits 
an unlimited number of users to access a multicast video," says 
Gary Marsh, Zapex vice president of sales and marketing. "Coupled 
with the 2netFX software, PC users can interactively select which 
programming they wish to view, then capture and store the video 
locally. Effectively, customers can select their own viewing 
schedules, depending on application."


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Linux2order.com
</FONT>
</H3> 
Eric Vogel has brought his new site
<a href="http://www.linux2order.com">Linux2Order.com</a>
to our attention. He describes it as "dedicated to
offering the largest collection of Linux applications available on the
Internet".  A wide range of distribution methods are available.  In addition
to the standard free download, the user can have a custom CD burned or
register for a priority download subscription.


<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Fox On Linux
</FONT>
</H3> 
<p>
Fox on Linux is a commercial Linux application, providing
businesses with a sophisticated, graphical software package to deal
with their core financial accounting needs.
Fox on Linux can be integrated with other corporate front-end
applications and comes with online support and training. Flexible in its
operation, multi-user, and with a 12KBS low bandwidth requirement it can be
accessed over the Internet. Installation is claimed to be easy, so a system
can be up and running in a very short time. 
For further briefing or a chance to trial Fox on Linux software go to
<a href="http://www.foxonlinux.com/">www.foxonlinux.com</a>.

<P> <hr> <P> 
<!-- =================================================================== -->
<H3><IMG ALT=" "   SRC="../gx/bolt.gif">
<FONT COLOR="green">Other Software
</FONT>
</H3> 

<A HREF="http://www.tm.informatik.uni-frankfurt.de/~razi/steak/steak.html">
Steak: the Dictionary</A> is an English-German translation program with GUI
dialogs. (GPL)

<hr noshade width="20%">

Anyone interested in Electronic Design Applications, you might like to check
out <a href="http://www.yaeda.org">yaEDA</a>. It is available with
sourcecode.


<hr noshade width="20%">

<a href="http://www.provenacct.com">
PROVEN SOFTWARE, INC.</a> have announced the release of their new internet
shopping cart for linux, eCHOICE. This new feature will allow easy
integration with PROVEN CHOICE Accounting Systems. Full details are
<a href="http://www.provenacct.com/pr/echoice.html">here</a>, and an
evaluation copy is also offered.





<!-- *** BEGIN copyright *** -->
<P> <hr> <P> 
<H5 ALIGN=center>
Copyright &copy; 2000, Michael Conry and 
the Editors of <A HREF="mailto:gazette@ssc.com"><I>Linux Gazette</I></A>.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->

<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
	<img src="../gx/dennis/qbubble.gif" alt="(?)" 
		border="0" align="middle">
	<font color="#B03060">The Answer Gang</font>
	<img src="../gx/dennis/bbubble.gif" alt="(!)" 
		border="0" align="middle">
</A></H1> 
<BR>
<H4>By Jim Dennis, Ben Okopnik, Dan Wilder, Chris Giamakopolous, the Editors of Linux Gazette... 
	and You!
<br>Send questions (or interesting answers) to
	<a href="mailto:tag@ssc.com">tag@ssc.com</a>
</H4>
</center>

<p><hr><p>
<!--  endcut ======================================================= -->
<H3>Contents:</H3>
<dl>
<dt><a href="#tag/greeting"
	><strong>&para;: Greetings From Heather Stern</strong></A></dl>

<DL>
<!-- index_text begins -->
<dt><A HREF="#tag/1"
	><img src="../gx/dennis/bbub.gif" height="28" width="50"
	  alt="(!)" border="0"
	><strong>Baffled</strong></a>
<dt><A HREF="#tag/3"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>A rather unique query (I hope)</strong></a>
<dt><A HREF="#tag/4"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>info needed --or--
<dd><A HREF="#tag/4"
	><strong>What is Linux?</strong></a>
<br>the screensavers look great!
<dt><A HREF="#tag/5"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Linux Installation question</strong></a>
<dt><A HREF="#tag/6"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>Abt.. Michael Lauzon's Q in issue 60.. --or--
<dd><A HREF="#tag/6"
	><strong>Tell me about the K guys</strong></a>
<br>SCI-Linux project to use multiple package types?
<dt><A HREF="#tag/7"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a> minimum configuration Linux ? --or--
<dd><A HREF="#tag/7"
	><strong>Data Recovery Vendor Seeks Linux Basics</strong></a>
	RAIDs do not guarantee safety for your data	

<dt><A HREF="#tag/8"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>a question --or--
<dd><A HREF="#tag/8"
	><strong>Linux, UNIX, what's the difference?</strong></a>

<dt><A HREF="#tag/9"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>linux question</strong></a>
<dt><A HREF="#tag/10"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Red Hat 7.0</strong></a> Crackerz!

<dt><A HREF="#tag/11"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Transmitting PaperPort files with .max</strong></a>
	Definitely some Windows file format
<dt><A HREF="#tag/12"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Help Me Delete Linux</strong></a>
<dt><A HREF="#tag/19"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Removing Linux: Sacrilege!</strong></a>
<dt><A HREF="#tag/32"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>uninstall linux --or--
<dd><A HREF="#tag/32"
	><strong>Another uninstall: Getting to a Root Prompt to Blow it All Away</strong></a>

<dt><A HREF="#tag/13"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>setting root password</strong></a>
<dt><A HREF="#tag/14"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>I can't seem to write to my vfat (Windoze) file system with any user other than root.</strong></a>
<dt><A HREF="#tag/15"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>For Jim Dennis...Hello from South Texas --or--
<dd><A HREF="#tag/15"
	><strong>Firewall for a SOHO</strong></a>
<br>Small World, isn't it?
<dt><A HREF="#tag/16"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Something comparable to Services in NT</strong></a>
<dt><A HREF="#tag/17"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Editing fstab file for tape backup</strong></a>
<dt><A HREF="#tag/18"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Mail gets nowhere?</strong></a>
<dt><A HREF="#tag/20"
	><img src="../gx/dennis/bbub.gif" height="28" width="50"
	  alt="(!)" border="0"
	><strong>Loading SuSE Linux 6.4 via NFS</strong></a>
<dt><A HREF="#tag/21"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>RE: classified disk</strong></a>
<dt><A HREF="#tag/22"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>multiple subnets, one DNS</strong></a>
<dt><A HREF="#tag/23"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>Linux vs. DESQview??? --or--
<dd><A HREF="#tag/23"
	><strong>responding to DESQview/386 Die Hards into the Next Millennia</strong></a>

<dt><A HREF="#tag/24"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>DOS partition from Linux</strong></a>
<dt><A HREF="#tag/25"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>e-mails not getting through</strong></a>
<dt><A HREF="#tag/26"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>exit X & shutdown --or--
<dd><A HREF="#tag/26"
	><strong>Exiting X and Rebooting with One Keystroke</strong></a>

<dt><A HREF="#tag/27"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Multiplexing ppp connections</strong></a>
<dt><A HREF="#tag/28"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>[Tony@thermo-king.com: new to Linux]</strong></a>
<dt><A HREF="#tag/29"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Trident Providia 9685</strong></a>
<dt><A HREF="#tag/30"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>The New network On The BLock</strong></a>
<dt><A HREF="#tag/31"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Mail Daily sylog message to remote e-mail</strong></a>
<dt><A HREF="#tag/33"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>automation for minicom --or--
<dd><A HREF="#tag/33"
	><strong>Scripted Serial Sessions</strong></a>

<dt><A HREF="#tag/34"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	></a>About Epson Stilus Color 670 --or--
<dd><A HREF="#tag/34"
	><strong>Setting up print filters.</strong></a>

<dt><A HREF="#tag/35"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>Xwindows</strong></a>
<dt><A HREF="#tag/36"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>diald on a smoothwall box</strong></a>
<dt><A HREF="#tag/37"
	><img src="../gx/dennis/qbub.gif" height="28" width="50"
	  alt="(?)" border="0"
	><strong>...a bulk friendly ISP?</strong></a>

<!-- index_text ends -->
</DL>
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/greeting"><HR WIDTH="75%" ALIGN="center"></A>
<H3 align="left"><img src="../gx/dennis/hbubble.gif" 
	height="50" width="60" alt="(&para;) " border="0"
	>Greetings from Heather Stern</H3>
<!-- begin hgreeting -->
<p>
Hello everyone, and welcome once again to The Answer Gang.  As the fog starts
to lift this morning I am enjoying the fluffy greyness and savoring a good 
cup of coffee.  I leave it entirely to your imagination whether I'm talking
about the weather or my clouded thoughts.
</p><p>
We have some really juicy threads this month and I hope you like them.  I'd 
like to encourage anybody who feels like asking us questions, to consider
the following guidelines:
</p>
<ul>
<li>
Please use a real subject.  We hate having to reply to "your mail" (the 
classic default coughed up by our mailers, when replying to a blank subject 
line). "Help" or "Linux trouble" is not much help to us.  I know it sounds 
strange, there's a batch of us here, but it will probably greatly increase 
your chance of being one of the lucky souls who gets a direct answer.  Try 
actually stating your linux flavor, and what kind of trouble.
Examples: "RH 7 sound config?" "SuSE NFS install" etc.

<li>
This is a <em>Linux</em> webzine - ask us questions about free software.
For those of you from AOL, if the members' help forum can't answer you,
don't expect us to be any help at all (unless it's about Linux).
Windows has its own magazines and sites, and frankly most of the Gang hasn't
used Windows except in a cross-platform context in a long time. 
<br>
That said, If you work for a Windows 'zine, you should really read one or
two of the items this issue...

<li>
Requests for anonymity are honored here.  But if you don't want us to 
publish your question and the answers, don't expect us to be interested in 
helping you much.  Several of us are consultants for a living, so unless it's 
helping a few hundred people at once, we're not inclined to do freebies.

<li>
If you're using a foreign language and can manage to use an English subject,
please give a shot at asking your question in English, too.  We're quite 
forgiving of spotty English, if we can tell what you're asking.  Otherwise 
there's a couple of months lag while we have a translator look at your stuff,
if we even have someone to translate for your language.  Babelfish is only
good for a laugh.

<li>
We reserve the right to be curmudgeonly.  So flaming us for a lack of formality
will get you laughed at.  We've also got ethics here and if you don't, you'll 
get a serious drubbing.  However, we don't bother publishing answers that don't
have some meat to them.
</ul>

<p>
Spam seems to be down this month, and I don't think we got any non-computing
questions this time around.  Must be a Christmas present 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
                height="24" width="20" align="middle">


</p><p>
It's a new year and I look forward to some interesting New Year's resolutions.
In past years I've made selections such as 1600x1200 (the year I got the
beautiful monitor I use daily) and 600 dpi (a printer, of course)...
</p>


<!-- end hgreeting -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/1"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 1 -->
<H3 align="left"><img src="../gx/dennis/bbubble.gif" 
	height="50" width="60" alt="(!) " border="0"
	>Baffled</H3>

<p><strong>From Patrick Green
</strong></p> 
<p align="right"><strong>Answered By Jim Dennis
<br></strong></p>
<P><STRONG>
James I am at a loss here so I thought I would give you a try. I exited out
of a root session (not su) and I go back a couple hours later to login. I
enter my user name and lo and behold, no password prompt. So I cold boot it
(hate that) comes back up just fine, go to login ...no password prompt. Any
ideas?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
First you'll want to get to a shell prompt.  I'd treat this as
though your <TT>/etc/passwd</TT> or <TT>/bin/login</TT> files are corrupt.  So,
start Linux using the init=/bin/sh kernel parameter (passed
from the LILO: prompt --- or LOADLIN, GRUB or whatever boot
loader you're using.
</BLOCKQUOTE>
<BLOCKQUOTE>
If that doesn't work, get out a rescue diskette or CD.
Remember Tom's (<A HREF="http://www.toms.net/rb"
	>http://www.toms.net/rb</A>).
</BLOCKQUOTE>
<BLOCKQUOTE>
Once you've done that try to confirm that your <TT>/etc/passwd</TT>,
<TT>/etc/group</TT>  and various <TT>/etc/pam.d</TT> files are sane.  They
should "look right" (if you've seen copies before).
</BLOCKQUOTE>
<BLOCKQUOTE>
If you have backups of your <TT>/etc/passwd</TT> and <TT>/etc/group</TT> files,
restore them to an alternate location (<TT>/tmp</TT>) and run diff
on them.  See if the differences seem reasonable.
</BLOCKQUOTE>
<BLOCKQUOTE>
If this is an RPM based system try the rpm <TT>-Va</TT> command
to verify the integrity of your <TT>/bin/login</TT> and other binaries.
(If you have a full tar backup of your root and <TT>/usr</TT> filesystems
you can use the 'tar df' or 'tar dzf' directives to report on
differences between your current files and those in your backup.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you're running <A HREF="http://www.debian.org/">Debian</A> there are several ways to check the
integrity of your files; none of them is as easy to explain
and/or type as rpm <TT>-Va</TT> (that's one of the very few deficiencies
in the apt and dpkg systems).  You can run debsums or tripwire or
aide if you have any of them --- but that's probably a matter of
closing the barn door while the horses are already astray in
this case.
</BLOCKQUOTE>
<BLOCKQUOTE>
There is a possibility that your <TT>/bin/login</TT> program is corrupt
or that an attacker has compromised your system and attempted
to replace <TT>/bin/login</TT> (or some other files) with a broken
version (perhaps linked against some library you don't have
even just having the wrong permissions or something like
that).
</BLOCKQUOTE>
<BLOCKQUOTE>
Of course I'd also check the <TT>/var/log/messages</TT> and related files
to see if there are any clues in there; do a fsck on your
root filesystem, try to run <TT>/bin/login</TT> from a rescue shell
prompt, etc.  You can even temporarily replace <TT>/bin/login</TT> with a
one-line wrapper script. Rename it to login.binary or some such
an write a shell script like:
</BLOCKQUOTE>

<blockquote><pre>       #!/bin/sh
       exec /usr/sbin/strace -o /tmp/login.strace/$$.out /bin/login.binary
</pre></blockquote>
<BLOCKQUOTE>
... then try to login (rebooting as necessary, or just start
a shell on one of your virtual console with an appropriate
line in your <TT>/etc/inittab</TT> files).
</BLOCKQUOTE>
<BLOCKQUOTE>
It's an unusual problem, but these sorts of techniques will
help you narrow down what's happening.
</BLOCKQUOTE>
<BLOCKQUOTE>
(Obviously your kernel, your root filesystem and the init
program are working.  Your getty seems to be working
enough to display an "issue" file and accept a username.
So we've already narrowed it down to getty and login ---
either getty is failing to successfully execute the login
command, or the login command is failing to emit a password
prompt.  Since the latter is somewhat more likely we focus
on it.)
</BLOCKQUOTE>

<!-- end 2 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/3"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 3 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>A rather unique query (I hope)</H3>


<p><strong>From Karen Gartner 
</strong></p> 
<p align="right"><strong>Answered By Ben Okopnik, Mike Orr
<br></strong></p>
<P><STRONG>
Running RH 7 - Dell Precision 420, 18GB SCSI HD @ 10K rpm, 1 CD-ROM, 1
CD-RW, 19" screen w. Diamond Fire GL1 video card and therein is the start
of my problem.
</STRONG></P>
<P><STRONG>
The latest version of the Diamond fire GL1 driver for linux will only
work with kernel 2.2.14. RH 7 uses 2.2.16 so I have to backtrack to an
earlier kernel in order to use Gnome &amp; <A HREF="http://www.kde.org/">KDE</A> (I'm stuck in consoleland right
now).
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Interesting. The first possibility that I would explore would be to search
the web (or possibly contact the author) for a patch for the Diamond video
code, rather than downgrading the kernel. Chances are relatively high that
the necessary changes would be trivial (on the other hand, it may require
a major code rewrite, but it wouldn't hurt to check.)
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Indeed I have installed the new (old?) kernel but on booting, only 1 scsi
host is recognized where there should be 3, there's an IDE recognition
problem, and ultimately I get the message "kernel panic: VFS: unable to
mount root fs 08:02". I have checked lilo.conf and all is well there.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Well, the "kernel panic" message says that it's not finding a bootable
device/useable boot record on device 08:02 (if I recall correctly, that
means "device with major number 8, minor number 2", otherwise known as
"<TT>/dev/sda2</TT>", the 2nd partition of your 1st SCSI HD.) Is that what your
boot device is supposed to be? (side query: have you re-run "lilo"? It
never hurts to do so, and if you've changed <EM>anything</EM> having to do with
booting - and you have - you <EM>must</EM> do so.)
</BLOCKQUOTE>

<blockquote>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Not finding the <EM>root partition</EM> to mount.  The boot sector is a different
story, and if you made it this far, it's functioning correctly.
</BLOCKQUOTE>
<BLOCKQUOTE>
At least your panic message has the word "root" in it.  When it happens
to me, I get a cryptic "unable to open initial VC" (=virtual console) or
something like that.  Because displaying a login: prompt requires a
virtual console, which requires a device in the <TT>/dev/</TT> directory, which
requires a root partition to be mounted.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
If you are unable to mount the root partition (you are correct in that
regard - I misspoke), I don't think that you will ever get anywhere near
the login prompt; the boot will fail at that point. It is true, though,
that a missing or damaged "<TT>/dev</TT>" directory will cause the "VC" message -
as will a "no virtual terminals" setting in the kernel configuration.
</BLOCKQUOTE>
</blockquote>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Where did the new (old?) kernel come from? If it's a "stock" RedHat
kernel, I would be rather surprised - RH compiles theirs with every bell,
whistle, and gilliwhillikin included. I certainly haven't had any fail to
detect SCSI hosts/devices, but that may just be because I've done only a
few "RH on SCSI" installations. I certainly have not had any SCSI
detection problems with <A HREF="http://www.debian.org/">Debian</A>, even SCSI-emulation setups (that being
what I have at home.)
</BLOCKQUOTE>
<BLOCKQUOTE>
If it's a kernel that someone else compiled, I would definitely check the
configuration... scratch that. I would not <EM>use</EM> a custom-compiled kernel
while bringing up a new system in the first place. I recommend that you
don't either.
</BLOCKQUOTE>
<BLOCKQUOTE>
By the way, are you certain that you should see 3 SCSI <EM>hosts</EM>, rather
than three SCSI <em>devices</em>? There is a difference, and it's an important
one. The host adapters are interfaces between the PC and the SCSI devices;
it would be exceedingly rare (if even possible) to find three of them in
one system.
</BLOCKQUOTE>

<blockquote>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
You should find out which device it's complaining about.  Look in
Documentation/devices.txt in your kernel source.  Block device 8:2 is
indeed <TT>/dev/sda2.</TT>
</BLOCKQUOTE>
<BLOCKQUOTE>
(You can also look in the <TT>/dev/MAKEDEV</TT> script, because this is the
script that made all those device files.  However, I find it harder to
read.)
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
It's even easier to look in the "<TT>/dev</TT>" directory using Midnight Commander,
and scroll down until you see a match for those numbers. Possibly simplest
of all would be
</BLOCKQUOTE>

<blockquote><pre>ls /dev|grep "8, *2 "
</pre></blockquote>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Provided the <TT>/dev</TT> directory is there and is intact.
</BLOCKQUOTE>

<BLOCKQUOTE>
Note also that there are two types of devices, "block" and "character".
Disk drives are block devices.  The same major number may be assigned
to one block device and a different character device.
</BLOCKQUOTE>
</blockquote>

<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
What I would like to do is take the config file from 2.2.16 and copy it
to 2.2.14. Everything but the video card works tickety boo in 2.2.16. The
problem is, where do I find the config file from 2.2.16? 2.2.14 is in
usr/src/linux of course, which was created on the install, but where does
the old .config file reside?
</STRONG></P>
<P><STRONG>
Is that even a good idea to solve the issue? Any and all help is mightily
appreciated.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
I would say that this is not a good idea at all. Configurations - and
thus, config files - vary wildly between kernel versions. On the other
hand, printing out the old configuration and walking through the new one
to make sure that it's as close as possible to the original would be very
useful. On my system (I'm running Debian, but I don't think it would be
very different on others), the config file is in
</BLOCKQUOTE>
<BLOCKQUOTE>
"<TT>/usr/src/kernel-source-</tt>&lt;version&gt;<tt>/.config</TT>"
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
This is the normal Linux convention.  Actually, you can place your build
tree anywhere, but you should make <TT>/usr/src/linux</TT> a symlink to it so
that the compiler will find the include files.  (Is this still required
now that glibc has its own kernel headers?)
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Good luck in resolving your problem.
</BLOCKQUOTE>

<!-- end 3 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/4"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 4 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>What is Linux?</H3>
<H4 ALIGN="center">the screensavers look great!</H4>


<p><strong>From David Cruz 
</strong></p> 
<p align="right"><strong>Answered By Mike Orr, Heather Stern
<br></strong></p>
<!-- ::
What is Linux?
~~~~~~~~~~~~~~
the screensavers look great!
:: -->

<P><STRONG>
i live in south africa and find it hard to source help from anyone here.i
recently saw a friend how is running his pc on linux software.very
impressive.i myself have windows 2000,which works well but when it comes to
graphics and proffessional look you're way ahead.i've been trying hard
searching the net for the last week for your softwear but came up with
nothing.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
The following URLs contain material on what Linux is, what you can do
with it, and where to find it:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
<A HREF="http://www.linuxresources.com"
	>http://www.linuxresources.com</A> , sections:
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
<UL>
	<LI>"What is Linux"?
	<LI>"About Linux distributions" (general information)
	<LI>"Linux distributions" (information about each major distribution)
	<LI>"GLUE" (look for a Linux users group in South Africa)
</UL>
</BLOCKQUOTE>
<BLOCKQUOTE>
<A HREF="http://www.linuxdoc.org/HOWTO/META-FAQ.html"
	>http://www.linuxdoc.org/HOWTO/META-FAQ.html</A>
This is the Linux Meta-HOWTO, which gives an overview of where to find
different kinds of Linux information.
</BLOCKQUOTE>
<BLOCKQUOTE>
<A HREF="http://www.linuxdoc.org"
	>http://www.linuxdoc.org</A>
Home site for Linux documentation.  Click on "mirrors" and find a mirror
in South Africa to read; it will be faster and cheaper than using the
USA server.
</BLOCKQUOTE>
<BLOCKQUOTE>
<A HREF="http://www.linuxnewbie.org"
	>http://www.linuxnewbie.org</A>
A site dedicated to helping new Linux users and those who just want to
see what Linux is before deciding whether to run it.
</BLOCKQUOTE>
<BLOCKQUOTE>
<A HREF="http://www.linuxstart.com"
	>http://www.linuxstart.com</A>
A site which tries to be a "user-friendly index of Linux information".
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
.the one thing i
found incredible was your screensavers- radar, bumps(the blue torch
searching in the dark,compass
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Does anybody know which programs he's talking about?  Is it the standard
X screensavers (xlockmore), the xscreensaver package, or something that
comes with <A HREF="http://www.kde.org/">KDE</A> or Gnome?
</BLOCKQUOTE>
<BLOCKQUOTE>
I don't use screensavers; I prefer to make the screen go black and switch
to power-saving mode.  If I want to watch "eye candy", I'll run an
application which does this.  Fortunately, xscreensaver screen savers can
also be run as applications in their own windows, not just as screen savers.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
The radar screensaver he is talking about is one of the utilities which
can be used as an xscreensaver module, or simply run as a seperate app.
By default it just looks cute, but it has command line options to "ping"
some specified hosts your local network and thus be more realistic "sonar"
for your situation.  Several of the nicer toys like this need to be fetched
seperately from xscreensaver package itself.
</BLOCKQUOTE>
<BLOCKQUOTE>
Gnome uses a GTK based front end to xscreensaver, which shows a number of
these sorts of descriptions, including for the extras (it mentions their
homesites, so you know where to get them from.  Maybe handy even if you
hate Gnome?)  I have to say it was useful when I was trying to decide
which modules to not bother using.  I don't really like the idea of a <EM>truly</EM>
random screen toy, as some of these artsy things are just plain ugly.
</BLOCKQUOTE>
<BLOCKQUOTE>
I don't remember what K uses.  Anyways asking whether a given module is in
xscreensaver or in xlockmore is a lost cause.  The two are always in a race
and at any given time, both have lots of cool eye candy, and a lot of it is
GPL so you could port it if you felt like.  You can have both installed, but 
only run one or the other at a time.
</BLOCKQUOTE>

<!-- end 4 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/5"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 5 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Linux Installation question</H3>


<p><strong>From Layne Gossett 
</strong></p> 
<p align="right"><strong>Answered By Mike Orr, Heather Stern
<br></strong></p>
<P><STRONG>
Is there an option for specifying that I would like to be prompted for all of
the kernel options during installation, much like you get when building your
own kernel?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
I assume that by "during installation" you mean you want to customize
the kernel options at each boot, not the first time you install Linux
using your distribution's install program.
</BLOCKQUOTE>
<BLOCKQUOTE>
You cannot set the compile-time options (=the "make menuconfig" options)
at boot time.  However, there are lots and lots of other kernel options
you can set from the LILO: promit or by adding an
</BLOCKQUOTE>
<BLOCKQUOTE><code>
append="myoption1 myoption2=myvalue1,myvalue2"
</code></BLOCKQUOTE>
<BLOCKQUOTE>
line in <TT>/etc/conf.lilo</TT> and re-running lilo.  See the Bootprompt-HOWTO
for all the options you can set.
<A HREF="http://www.linuxdoc.org/HOWTO/BootPrompt-HOWTO.html"
	>http://www.linuxdoc.org/HOWTO/BootPrompt-HOWTO.html</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
Some other options can be set at runtime via the <TT>/proc</TT> filesystem.  For
instance,
</BLOCKQUOTE>
<BLOCKQUOTE><code>
echo 1 &gt;/proc/sys/net/ipv4/ip_forward
</code></BLOCKQUOTE>
<BLOCKQUOTE>
will turn on IP forwarding.  Echoing a zero will turn it off.
Documentation for these files is in the appropriate subsystems' docs and
HOWTOs.  (And actually, most are not documented very well.)
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Although I have read the HOWTOs on building my own kernel, I still have not
been able to get it to work out yet.  I've had a lot of luck installing Red
Hat from the CD, but I'd like to have firewalling and IP Masq capabilities
from a "clean" installation (and remove things like PCMCIA, etc.).
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
For masquerading, you must compile the kernel with IP forwarding and IP
masquerading.  Then you need to enable it in one of your boot scripts.
For instance, my <A HREF="http://www.debian.org/">Debian</A> <TT>/etc/init.d/rc.firewall</TT> contains:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
/sbin/modprobe ip_masq_ftp # Only neded if masquerading non-passive FTP.
<BR>echo "1" &gt; /proc/sys/net/ipv4/ip_forward # Turn on IP forwarding.
<BR>/sbin/ipchains -M -S 7200 10 160 # Debian default timeouts.
<BR>/sbin/ipchains -P forward DENY # Deny any other kinds of forwarding.
<BR>/sbin/ipchains -A forward -s 10.0.0.0/8 -j MASQ
<BR># Masquerade from the 10.0.0.0 network to the outside world.
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
Try running these commands manually and see if you can get masquerading
working with your current kernel.
</BLOCKQUOTE>
<BLOCKQUOTE>
For more security, you can build a more elaborate set of ipchains rules.
(Note: ipchains requires a 2.2.x kernel, which I assume is what you
have.)
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
The Debian installer does ask about these things, but just to prepare
the modules listing, not to prepare a whole kernel.  And its prompts are
rather wimpy - you really have best luck if you already know what you are
looking for.
</BLOCKQUOTE>

<!-- end 5 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/6"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 6 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Tell me about the K guys</H3>
<H4 ALIGN="center">SCI-Linux project to use multiple package types?</H4>


<p><strong>From Manoj Warrier 
</strong></p> 
<p align="right"><strong>Answered By Heather Stern, Mike Orr
<br></strong></p>
<!-- ::
Tell me about the K guys
~~~~~~~~~~~~~~~~~~~~~~~~~
SCI-Linux project to use multiple package types?
:: -->
<P><STRONG>
Dan is right. Use one of the user friendly, mouth feeding distros
and U stay a newbie unless U make a habit of reading the Linux
Gazette and Linux Journal articles out of curiosity as to what happens
under the hood...
</STRONG></P>
<P><STRONG>
But, my ears picked up at Heather's comment <TT>-&gt;</TT> "I think the K guys
have the right idea, writing a front end that deals with more than
one package type". It sounds exactly like something I need. We are
compiling a set of software (most of the links provided at
"<A HREF="http://Scilinux.freeservers.com"
	>http://Scilinux.freeservers.com</A>") which we think go into making an
Enviornment for scientific computing on Linux. We plan to make a CDROM
by April 2001 (GPL) with the sources <TT>/</TT> RPMs <TT>/</TT> other binaries and have
a Tcl/Tk interface to install these on a existing Linux/GNU PC.
We are still wondering if there is "a front end GUI that can deal with
more than 1 pacakage type".
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
kpackage is allegedly able to deal with both .deb and .rpm package types.
I assume that you still need the underlying libraries, so it knows what to
call.  It may also be strongly dependent on alien, a script which eases the
conversion between package types.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you're going to write your own GUI, definitely take a look at alien, the
packaging APIs, and the apps which already exist to deal with these package
types alone. Just make sure not to mix licenses in any incompatible ways...
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
So who are this K guys? <A HREF="http://www.kde.org/">KDE</A> develoment team? ...
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Yes.  The full name of KDE is "the K Desktop Environment" where according
to the FAQ, K stands for Kool.  But they refer throughout their docs to K,
for example, the K menus, the K button, etc.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Of course, it was named after CDE, the Common Desktop Environment GUI
that many commercial Unices use.
</BLOCKQUOTE>

<p><em>... to which Manoj replies ...</em></p>


<P><STRONG><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Hi and thanks,
</STRONG></P>
<P><STRONG>
Elaborating more on my task at hand,
</STRONG></P>
<P><STRONG>
Work to be done <TT>-&gt;</TT> Create a CDROM with scientific software which can
be installed on a PC already running Linux.
</STRONG></P>
<P><STRONG>
Problem faced <TT>-&gt;</TT> There are various distros of Linux, various versions
of Linux software, therefore a binary which works on one may not
work on the other.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
This is more a matter of the library dependencies than the limits of
any one distro.  ldd &lt;binaryname&gt; would tell you which libraries it
expects, and if those are really already present, you can force it to
install, over its packagemaneger's objection, and it will work.
</BLOCKQUOTE>
<blockquote>
<p><strong><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> 
(1) Thanks. I did not know this.
</strong></p>
</blockquote>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
In some cases the kernel may lack something, in which case providing a
usable kernel with modules would be a good idea.  Don't forget pcmcia
modules and setup if you want to gracefully handle laptops.
</BLOCKQUOTE>

<blockquote>
<p><strong><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Not planning on this (at least not in the pre-alpha version). Also
wondering where I can keep the CDROM for free downloading (Power cuts,
etc, are quiet common this place).
</strong></p>
</blockquote>

<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Policy <TT>-&gt;</TT> Do not want to creae another distro of Linux (Linux from
scratch is the way to do it ... am I right??) on which we can then
make pre-compiled binaries.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Sort of contrary to this, people call "Bastille Linux" a distro even
though it's strictly symbiotic to RedHat.  You might look at Rock Linux
(designed to put the whole thing together from sources) or piggyback on
<A HREF="http://www.slackware.org/">Slackware</A> (which was an early distro, and is pretty strong in the compiler
department) or on debian (if it's got the packages you want already, since
it has so many).
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Therefore plan <TT>-&gt;</TT> Have the sources, binaries (*.rpm, slackware *.tgz,
*.deb, etc..) on a CDROM and have a Tcl/Tk script to install your
choice. The script would try to compile the sources for your Linux
distro if none of the binaries packed with the CDROM works for you.
I realise that a script that compiles from source for your distro of
linux will take a loooooot of time, and it is close to impossible
to make it work for all distros .. SO ANY IDEAS??
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
with the aid of alien I use rpm's on my debian box and .deb's on my <A HREF="http://www.suse.com/">SuSE</A>
box fairly freely.  Admittedly I did grab 3 deb's to bring lynx-ssl over
but it was worth it... and not very hard, debian's dependency tree was
accurate.
</BLOCKQUOTE>

<blockquote>
<p><strong><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> 
(2) Using alien seems to be a stop gap solution ( I still have to check it
out ).
</strong></p>
</blockquote>


<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
If you also provide the basic libraries that your packages expect, and you
are <EM>really</EM> careful about adding them, you could do okay.  The tricky part
is things like libjpeg6a versus libjpeg6b (for example).  If you get some
app that really only wants a specific libary and nothing else will do, you'll
have to use LD_PRELOAD variables.
</BLOCKQUOTE>

<blockquote>
<p><strong><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
(3) Hopefully we will not need to use LD_PRELOAD. Providing basic libraries
is most appealing (after using ldd "binaryname" to find the library
dependencies for all the softwarewe plan to pack).
</strong></p>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
The point of using LD_PRELOAD would be if using this with an unknown locally
installed system - if your users will be booting from your CD-ROM, then you'll
know their environment is correct, and LD_PRELOAD will be unnecessary.
</BLOCKQUOTE>
</blockquote>

<BLOCKQUOTE>
You can use them anyway, and keep all your known support libraries in a little
link farm, or something.  Probably don't even need hardlinks.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Why go into it at all <TT>-&gt;</TT> At my Institute (Insttute for plasma research,
Ahmedabad, India) we have a lot of ppl using Linux and most of them
do not have Octave, Scilab, Numerical libraries, yorick, xfig, lyx,
AbiWord, pvm, mpich, ftncheck, etc. etc. etc... on thier Linux PCs.
It would be convinient to therefore have a CDROM which would install
these on thier PCs.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Just offhand I've seen most of those in a debian capt list.  Make note,
I do point at non-free and non-US, so you may need to do that, or fight
licensing hassles, to distribute them.
</BLOCKQUOTE>

<blockquote>
<p><strong><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> 
Never used <A HREF="http://www.debian.org/">Debian</A> (Indian PC mags have never given a free version). Here
RedHat sems to rule the roost. We get at least 2 CDROMS every year..
</strong></p>
</blockquote>

<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Another problem is getting started using these new
software. Detailed 100+page manuals are very useful after you get
started. therefore we have plans of short getting started guides for
these software. I guess there are other people who also might find
such a CDROM useful. Thats why we started this.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
All my best wishes go to you, the Linux world needs more documenters 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Meanwhile Ill be exploring alien and kpackage. kpackage would probably
need the underlying libraries ... Not everybody has this.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
There are tricks for unwrapping an rpm or a deb without having the library
installed yet.  The <A HREF="http://www.linuxcare.com/">Linuxcare</A> Bootable Business Card (BBC) does this to
install ssh on-the-fly since when they began the project, the U.S. still
had overly eager anti-crypto laws.  (It can be argued that they're still
rather crazy - see the EFF - but I'll leave that be for now.)  You can get
the BBC at its new site: <A HREF="http://open-projects.linuxcare.com/BBC"
	>http://open-projects.linuxcare.com/BBC</A>
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Which leads me to ask <TT>-&gt;</TT> Dont youll think fondly
about the window manager which you could work on within 5 seconds
of typing "startx" at your console on your 16 MB RAM 486? This
could be a silly sentiment ...
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
I recommend looking at fvwm2, it's what I use for a lightweight setup that
still offers "normal" menus.  And flwm (fast light window manager) comes
highly recommended from the debian-laptops mailing list.
</BLOCKQUOTE>

<blockquote>
<p><strong><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> 
I use fvwm. flwm sounds good. Must check it out.
</strong></p>
</blockquote>


<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
If you're going to write your own GUI, definitely take a look at alien, the
packaging APIs, and the apps which already exist to deal with these package
types alone. Just make sure not to mix licenses in any incompatible ways...
</BLOCKQUOTE>

<blockquote>
<p><strong><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> 
and YES !! we have to check out licenses in detail (the least attractive
part of the project), but I guess we might be able to distribute most of
it since this is never going to be a commercial CDROM. Ill put it up
for free downloading (Is there anyone who will provide this service -
A mount point for a CDROM having a tar gzipped version of it?). Dont know
if I can convince my Institute to CDwrite and mail the CDROM to whoever
requests it and pays mailing charges. In fact dont know if anybody will
want it, but we learn quiet a lot (ldd "binary name", alien, etc..)
doing this.
</strong></p>
</blockquote>

<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Thanks once again.
</STRONG></P>
<P><STRONG>
Manoj
</STRONG></P>
<p><em>
Then there was this great - user friendly OS which
overwrote your MBR whenever you installed it...
</em></p>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
You're welcome, and good luck in your project.
</BLOCKQUOTE>


<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/7"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 7 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Data Recovery Vendor Seeks Linux Basics</H3>
<h4 align="center">RAIDs do not guarantee safety for your data</h4>

<p><strong>From Support 
</strong></p> 
<p align="right"><strong>Answered By Jim Dennis, Mike Orr  
<br></strong></p>
<!-- ::
Data Recovery Vendor Seeks Linux Basics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
I wonder if you could point me to a FAQ that would answer the
following question:
</STRONG></P>
<P><STRONG>
We are a small company specializing in Data Recovery. HardDisk
"crashes" and the like.
</STRONG></P>
<P><STRONG>
We have a client that used a network Disk Drive from a company
called NETGEAR. It appears that they have built their product
round Linux (The good news !)
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Yes.  I've heard that the Netgear NAS (network attached storage)
products use an embedded Linux system).  However I don't know
any details about their configuration.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
I have a bit of sympathy in my heart for data recovery companies,
because we had to use one at the hospital I worked at in 1994.  I was
doing data entry into a FoxPro database and the Novell server crashed.
To top it off, this was 3pm on Christmas Eve and most people were gone.
Troubleshooting proved that the server would reliably crash when
accessing the middle of certain files in the NetWare filesystem--and
these were the database data files.
</BLOCKQUOTE>
<BLOCKQUOTE>
It took a week to recover.  We were between sysadmins and didn't have a
backup, because our disk capacity was 2 GB but our tape drive had not
kept pace -- it was still a measly 250 MB model.  A guest sysadmin from
the hospital-wide pool came, did the standard bindery tests (akin to
fsck), called a couple consultants who didn't help, called a CNE but
didn't engage him since he wouldn't have done more than we'd already
done--but would have charged $50 anyway!
</BLOCKQUOTE>
<BLOCKQUOTE>
We discovered that disk mirroring is not always a good thing.  The
mirror drive was supposed to be our backup.  And it did backup well:
it backed up the corrupted data!
</BLOCKQUOTE>
<BLOCKQUOTE>
The sysadmin noted my comments about the hard drive making noises, and
wrote in a report, "It done sound like a car need bearings."  We sent
the drive to OnTrack; they took it apart, charged $2000, and sent back a
tape containing all the files they could recover.  Out of all the
consultants and CNEs we called, they were the only competent ones in
this whole process.  They also sent back an amusing analysis report:
"Severe hard drive damage.  Drive should be replaced."  Duh!
</BLOCKQUOTE>
<BLOCKQUOTE>
We replaced both drives, because the other one was acting up too.  Both
were part of a bad Maxtor batch that were causing problems in other
parts of the hospital as well.  They had 12-month warranties, and the
drives were failing in the 11th or 13th months.
</BLOCKQUOTE>

<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Thus far, we have regrettably no experience of Linux. I wish to
Install a minimum configuration of Linux on a Win98 test PC in
order that i may copy the data on their (undamaged) harddisk to
another FAT32 harddisk and thereafter backup to CD's.
</STRONG></P>
<P><STRONG>
Right now i'm downloading 2 * 675Mb of "Linux" in ISO format. I
doubt that i need 10% of it for this task, but i have no knowledge of
the required files to get a minimal system running.
Is there an FAQ that would explain to a willing but uneducated guy,
how to proceed.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
You don't mention <EM>which</EM> ISO images you're downloading.  It's
probably excessive in any event.  Generally you can install a
fairly full Linux distribution from one CD (the second CD on many
distributions contains source code and/or extra software, sometimes
including shareware and other "non-free" stuff (demoware, etc)).
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
1. how to install a minimum version of Linux
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
This is a very difficult question to answer given that you haven't
told me which distribution you're downloading.  Distributions differ
more in their installation and initial configuration than in any other
regard.
</BLOCKQUOTE>
<BLOCKQUOTE>
It would also be difficult, even if you had provided this information,
since it requires essentially a chapter length exposition.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
If you want just a minimal Linux installation to just copy data off a
Linux partition, consider Tom's Root Boot.  It's a minimal Linux system
on a bootable floppy, with the utilities needed in a typical rescue
situation.  Our sysadmins swear by it for all manner of workstation
setup tasks.
</BLOCKQUOTE>
<BLOCKQUOTE>
<A HREF="http://www.toms.net/rb"
	>http://www.toms.net/rb</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
However, I echo Jim's statement that you need to know the basics of
Linux utilities in order to do an effective data transfer.  Many people
have had to embark on an unanticipated self-taught crash course, but it
means spending a weekend with the HOWTOs and manual pages or a book.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
2. how to copy files from a Linux Partition on  one disk to a fat 32
partition on a second disk.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
This part would be quite easy once you have Linux installed.
Linux support FAT32 and MS-DOS filesystems (including the VFAT
long filename support).  So you'd use a command sequence
something like this:
</BLOCKQUOTE>

<blockquote><pre>  mkdir /mnt/netgear
  mkdir /mnt/windows
  mount -t ext2 /dev/hdb1 /mnt/netgear
  mount -t vfat /dev/sda1 /mnt/windows
  cd /mnt/netgear &amp;&amp; cp -ax . /mnt/windows
</pre></blockquote>
<BLOCKQUOTE>
... this assumes that you have installed Linux unto your first
IDE drive (the master on the primary controller) which is called
<TT>/dev/hda</TT> under Linux.  It therefore assumes that the hard drive
which you've extracted from the Netgear NAS unit is the second
IDE drive (slave on the primary IDE controller) which is called
<TT>/dev/hdb</TT> under Linux.  This all presumes that you made the necessary
changes to the pin settings on your hard drives to get the hardware
working.
</BLOCKQUOTE>
<BLOCKQUOTE>
I also assume that you're using a SCSI disk (though you could use
a third or fourth IDE drive --- or even a fifth, sixth, etc).
<TT>/dev/sda</TT> is the first SCSI hard drive on any normal Linux system
(though this may change in the future, with devfs).
</BLOCKQUOTE>
<BLOCKQUOTE>
So, this example makes many assumptions about how you've
installed Linux and what hardware you have available.  There are
<EM>MANY</EM> other ways to do this.
</BLOCKQUOTE>
<BLOCKQUOTE>
Other than that the example basically makes a pair of mountpoints
(places at which filesystem can be connected), mounts the
Netgear drive to one and the Win '9x drive/filesystem to another
changes to the top of the netgear directory tree and copies
everything on that filesystem (recursively) unto the VFAT partition.
</BLOCKQUOTE>
<BLOCKQUOTE>
Note: I'm also assuming that the Netgear is not functioning as a
NAS and that you're removing the hard disk from it and connnecting
it to one of your lab machines.  That seems pretty obvious to me,
since you'd just attach to it via the network directly from a
Win '9x/NT box if the NAS services were working; right?
</BLOCKQUOTE>
<BLOCKQUOTE>
I'm also assuming that Netgear is using ext2 (the dominant Linux
native filesystem).  If they're using Reiserfs or some other
filesystem --- then you'd have to do things a bit differently.
If that is the case; you'd be best advised to use the <A HREF="http://www.suse.com/">SuSE</A>
distribution which already includes support for Reiserfs ---
otherwise you'd have to patch and build your own custom kernels;
which is not a task to be undertaken by novices.
</BLOCKQUOTE>
<BLOCKQUOTE>
(S.u.S.E. is the only major distribution that already supports
Reiserfs.  Netgear <EM>might</EM> have patched their system to support
it given that Reiserfs' "journaling" features would be <EM>very</EM>
desirable on any Linux-based headless NAS device!)
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
3. Am i inventing work unnecessarily. maybe there exist tools to
read Linux partitions and copy DATA to Fat32. Something in the
Style of Partition magic ( but to actually COPY files.)
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
There used to be a set of ext2 (Linux extended filesystem version
2) utilities for OS/2 and Win32 (NT and '9x).  However I'm not
sure that they are the best for your purposes.
</BLOCKQUOTE>
<BLOCKQUOTE>
It would probably be best to buy a nice large hard drive
(6Gb or better), put it in one of your lab workstations,
install Linux from CD (I prefer <A HREF="http://www.debian.org/">Debian</A>; but S.u.S.E. might
be more to your liking --- S.u.S.E. is the most popular
distribution in Europe and has very good support for various
continental languages).
</BLOCKQUOTE>
<BLOCKQUOTE>
Once you have Linux installed and the Netgear drive attached
you can "dump" a raw (bitwise) image of the entire drive into
a single Linux file using a command like:
</BLOCKQUOTE>

<blockquote><pre>   dd if=/dev/hdb of=/some/path/with/lots/of/free/space bs=1024k
</pre></blockquote>
<BLOCKQUOTE>
... or you could dump each filesystem/partition by using
the commands:
</BLOCKQUOTE>

<blockquote><pre>   fdisk -l /dev/hdb
</pre></blockquote>
<BLOCKQUOTE>
... and then (for each of the partitions listed there:
let's say it's 1, 2, 3, <EM>5</EM> and 6; skipping 4 since it might/would
be the extended partiton container:
</BLOCKQUOTE>

<blockquote><pre>   for i in 1 2 3 5 6; do
      dd if=/dev/hdb$i of=/lots-of-space/netgear-image.hdb$i.bin
      done
</pre></blockquote>
<BLOCKQUOTE>
(This last is a bit fancy for a novice.  However, you can just
type the commands one at a time until that little snippet of
shell code makes sense).  (Obviously you'll need to put in
your own names in place of the of= paths that I've listed here).
</BLOCKQUOTE>
<BLOCKQUOTE>
NOTE:  if the netgear filesystems are larger than 2Gb then
you might need a very new kernel with LFS (large filesystem support)
or you could use "raw" partitions (unallocated space) on your
new large Linux disk.
</BLOCKQUOTE>
<BLOCKQUOTE>
This "dd" approach is handy if you want to preserve a full
snapshot of the filesystem (in it's damaged state) before attempting
data recovery.  That way, if your filesystem check and repair
efforts cause <EM>more</EM> damage you can always start from scratch.
</BLOCKQUOTE>
<BLOCKQUOTE>
In general I'd say that there is <EM>way</EM> too much about Linux to
learn before you'd understand how to do filesystem or data recovery.
As I'm sure you know from your experience with FAT/VFAT/FAT32 based
filesystems, one must generally be expert in an OS prior to being
competant at data recovery under it.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
I would be most grateful for any advice you could offer.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
You could look for a good Linux training consultant to come
in and give you're team a crash course.  You'll find that Linux
really is a data recovery person's dream tool suite.  Although it's
not "easy to use" it does offer <EM>full</EM> access to the system
hardware and has very good support for the filesystems of various
operating systems.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
My best Christmas greetings from Sweden,
Tony Kvarnstrom
</STRONG></P>

<!-- end 7 -->

<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/8"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 8 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Linux, UNIX, what's the difference?</H3>


<p><strong>From Alex 
</strong></p> 
<p align="right"><strong>Answered By Heather Stern
<br></strong></p>
<!-- ::
Linux, UNIX, what's the difference?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
Hi, I have a question that's been on my mind lately.
I've looked around the web and gotten some roundabout
answers.  The question is, what is Linux?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Linux began life as a kernel that would act like Minix but run on Linus'
80386 and mount up his minix filesystems.  He shared it and was encouraged
by folks submitting their own patches.  People just can't make their mouth
say "Linus' Minix" for very long, but I can't pinpoint when it got compressed
to Linux.  Maybe one of our readers could 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Vaguely I recall Lars Wirzenius mentioning the origin of the
name Linux in a talk at Linux Expo 1998.  I think he said something
like it wasn't Linus who came up with the name.  He just uploaded it
to the FTP site and the FTP admin had to come up with a label for it,
so he called it Linux.  But I may be remembering wrong.
</BLOCKQUOTE>
<BLOCKQUOTE>
Where's that message where Linus recounts how his first success in
building Linux was to develop a multitasker that allowed one process
to write "a" repeatedly to the screen while another process wrote "b"?
I think in there it mentions that one of his early names for the
system, when he was in an extremely frustrated mood, was Buggix.
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
As time rolled on and "distributions" were gathered and sold, the press
likes to call the distributions Linux too, while others argue that only
the kernel is Linux and the rest is (for example) <A HREF="http://www.redhat.com/">Red Hat</A> or <A HREF="http://www.suse.com/">SuSE</A> or whatever.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
The most popular answer on the net seems to be "Linux
is a UNIX-like OS".  Well, then what is UNIX?  And why
isn't Linux UNIX?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
There is someone who presently administers the trademark work UNIX and they
don't feel like branding Linux with it for free.  <A HREF="http://www.freebsd.org/">FreeBSD</A> has the same
"problem" - both are at this point well established systems that people
already experienced in UNIX will find comfortable features in.
</BLOCKQUOTE>
<BLOCKQUOTE>
The trademark began life as AT&amp;T Bell Labs UNIX, and has been traded and
sold a number of times since.  For a while Novell owned it ... in fact,
for a brief time it looked like Novell could become the source of a new,
completely non Microsoft based system, because they had Netware, they
had DR DOS, they had WordPerfect and its family of apps... but they either
didn't see it or had so many internal politics they couldn't do it.
</BLOCKQUOTE>
<BLOCKQUOTE>
The current trademark holders are the Open Group.   Their babble about
rights to use their trademark is at:
<A HREF="http://www.unix-systems.org/trademark.html"
	>http://www.unix-systems.org/trademark.html</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
Anyways, UNIX shouldn't be used as a generic term, because that's against
the principles of trademark.  Let me illustrate with an example that a few
more people will understand.  You can't call something Coca-Cola
(<A HREF="http://www.coca-cola.com"
	>http://www.coca-cola.com</A>) that's not.  You're not supposed to call it Pepsi
either (<A HREF="http://www.pepsi.com"
	>http://www.pepsi.com</A>, but you can't use the site at all from lynx;
try their investor relations site, <A HREF="http://www.pepsico.com"
	>http://www.pepsico.com</A> instead) unless it's
really Pepsi.  But you can call it a "Coca-Cola like soda" or say something
"tastes kinda like Pepsi" and you're safest with "a cola" or "a soda pop".
For the curious out there, I drink either, but prefer RC
(<A HREF="http://www.rccola.com"
	>http://www.rccola.com</A>).
</BLOCKQUOTE>
<BLOCKQUOTE>
So Linux is "an operating system" which only "tastes like MS Windows" if you
select a window manager with a theme that tries really hard to do that,
but tends to "taste like UNIX".  Admittedly it tastes a bit more like these
if you go the extra mile and run <A HREF="http://www.winehq.com/">WINE</A> or have the iBCS compatability module
around so you could try to run the respective binaries.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Funny, just today I saw a story in Linux Weekly News where Sun claims
Solaris is a version of Linux because it can run programs compiled for
Linux, and maddog says this proves we've never come to a consensus on
what "Linux" really means.  Purists say Linux means just the kernel, but
maddog cites Linus as predicting that mainframes with highly-customized
kernels will also be "Linux sytems" in the future.
</BLOCKQUOTE>
<BLOCKQUOTE>
<A HREF="http://www.lwn.net/2000/1221"
	>http://www.lwn.net/2000/1221</A>
</BLOCKQUOTE>

<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Is AIX or Solaris or SunOS or HP-UX a UNIX?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
AIX and Solaris are blessed with this trademark under "UNIX 98", HP-UX and
Tru64 among others are blessed under "UNIX 95". (You can see the Open
Group's Registered Product Catalog if you care:
<A HREF="http://www.opengroup.org/regproducts/catalog.htm"
	>http://www.opengroup.org/regproducts/catalog.htm</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
I don't think SunOS ever got so blessed; it was a BSD derivitive after all.
You can read some about the confusions between SunOS and Solaris in this
handy note:
<A HREF="http://www.math.umd.edu/~helpdesk/Online/GettingStarted/SunOS-Solaris.html"
	>http://www.math.umd.edu/~helpdesk/Online/GettingStarted/SunOS-Solaris.html</A>
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
If so, what makes them a UNIX and Linux <EM>not</EM>
a UNIX?  Is it kernel specific?  What's the deal?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
I hope this helped.
</BLOCKQUOTE>

<!-- end 8 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/9"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 9 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>linux question</H3>


<p><strong>From Ted Mims 
</strong></p> 
<p align="right"><strong>Answered By Dan Wilder
<br></strong></p>
<P><STRONG>
I hope you can help me out.  I am running a box with Linux 6.0.  I had a
hacker a few weeks ago that primarily set up some shielded irc channels
and modified my dns for his needs (exactly what they were, I am not
sure).  Anyway, somehow he made it so that my securetty file is ignored.
I am having no luck locking root out of telnet.  securetty has the
correct format and permissions and pam_securetty.so is not commented in
the <TT>/etc/pam.d/login</TT> file.  Do you happen to have any suggestions?  All
I want to do is re-restrict direct-in root access.  I would greatly
appreciate any elightenment you can offer.  Thanks
</STRONG></P>
<P><STRONG>
Ted H. Mims
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Dan]
The executive summary: reinstall, secure the new system,
copy data from the old.
</BLOCKQUOTE>
<BLOCKQUOTE>
Unfortunately, once a system is compromised, you can't trust
the pieces.  The skilful cracker, or even the less skilled
in this day of script kiddees, will have replaced system binaries
such as <TT>/bin/login</TT>, <TT>/bin/ls</TT>, <TT>/bin/ps</TT>, and on and on.  This places
you in a shifting hall of mirrors when you attempt repair on a
running system.  Especially if you attempt this repair while the
system is connected to the network.  I know very few sysadmins
who would be up to this challenge, fewer still who would be
assured of success, and almost none who would attempt it except
on a wager or as a sport.  I would be the last to suggest
you attempt this based on a few pointers.
</BLOCKQUOTE>
<BLOCKQUOTE>
The prudent course of action is a fresh install on a new hard drive.
Do this on a system without any connection to an outside network.
</BLOCKQUOTE>
<BLOCKQUOTE>
Upgrade named.  <A HREF="http://www.isc.org/products/BIND"
	>http://www.isc.org/products/BIND</A> is the URL.
Use bind-8.2.2 patchlevel 7 for an easy upgrade from what's on
most 6.0 distributions.  Or, see if the ftp site for your
distribution has an upgrade.  Eight bugs, including one
allowing remote exploit and providing the attacker with
full access at whatever privilege level named runs at, have
been located in older versions of bind.
</BLOCKQUOTE>
<BLOCKQUOTE>
Eliminate all services the system does not need, by turning them
off in <TT>/etc/inetd.conf</TT> or the equivalent xinetd config files.
</BLOCKQUOTE>
<BLOCKQUOTE>
Establish secure passwords for all accounts.
</BLOCKQUOTE>
<BLOCKQUOTE>
At that point, take the hard drive from the old system and mount
it for example on <TT>/mnt.</TT>  Copy valuable data from the old hard drive
to the new.  Examine all configuration files you may copy over
carefully.
</BLOCKQUOTE>
<BLOCKQUOTE>
Don't allow telnet from remote systems.  The password is
transmitted in plaintext, not a very good idea in this
age of sniffers.
</BLOCKQUOTE>
<BLOCKQUOTE>
Consider instead installing ssh or openssh, if remote access
is needed, or if you're on a LAN with more than a handful
of hosts or with users who are not highly trusted employees.
Be aware that even ssh is not 100% proof against "man in the middle"
compromise.
</BLOCKQUOTE>
<blockquote>
<BLOCKQUOTE>
&lt;digression&gt;
That "6.0" doesn't mean much if you don't specify the distribution,
for example "<A HREF="http://www.redhat.com/">Red Hat</A>" or "<A HREF="http://www.suse.com/">SuSE</A>"  Each Linux distribution
maintains its own versioning system, with only very rough
equivalence between distributions.
&lt;/digression&gt;
</BLOCKQUOTE>
</blockquote>

<p><em>.... Ted found the breakage ...</em></p>
<p><strong><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	> 
I just needed to actually pen the question to someone.  I figured it out
all by my lonesome.  Thanks anyway.  He had bypassed pam and sent it
back to the login.defs file which of course did not have a CONSOLE
directive.
</strong></p>
<p><strong>
Ted H. Mims
</strong></p>

<!-- end 9 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/10"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 10 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Red Hat 7.0</H3>
<h4 align="center">Crackerz!</h4>


<p><strong>From George Hawthorn 
</strong></p> 
<p align="right"><strong>Answered By  Ben Okopnik, Heather Stern
<br></strong></p>
<P><STRONG>
Answer Guy,
</STRONG></P>
<P><STRONG>
I've searched every Linux site I can find to understand why after months of
trouble free operation, I am unable to login to my RH 7.0 server at the
terminal.  Everything is working fine, web server, ftp, router but I simply
cannot login as root or anybody else for that matter.  I can do a 'linux
single' boot but under a normal boot, when I get the login: prompt and type
root, I'm back at the login prompt again.
I realize this is an imposition, but I'm getting desperate.
</STRONG></P>
<P><STRONG>
Thanks for your time,
</STRONG></P>
<P><STRONG>
George Hawthorn
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
First, a quick possibility:  Take a look at my 
'<a href="../issue52/okopnik.html"><em>"Cannot execute <TT>/bin/bash:</TT> Permission denied" - solved!</em></a>' article in Issue #52 of the Linux Gazette.
It may contain an answer to your question. Note also that people <EM>are</EM>
able to log in if your ftp, etc. services are usable - they are logging in
as a very low-privilege user ("nobody", or "ftp"), but they <EM>are</EM> logging
in.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Here's an even faster possibility (maybe even the same) - did you upgrade
PAM recently by any chance?  The default files from a PAM upgrade usually
are not the same as your normal policy.  One time I ended up only being
able to get in via ssh ... and that, only because my key was already in
place, so it wasn't dropping down to standard authentication.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Second - when you do log in via 'single', what does the system look like?
Has the password file changed? (Hint: it is a Good Idea to have dated
snapshots of "<TT>/etc</TT>" along with your regular backups; a tarred/gzipped
archive should easily fit on a floppy.) Try making a copy of "<TT>/etc/passwd</TT>"
(or "<TT>/etc/shadow</TT>" if you use shadow passwords), then edit it to remove the
password hash for root -
</BLOCKQUOTE>

<blockquote><pre>root:1XaFDYn7EapuP:0:0:root:/root:/bin/bash
</pre></blockquote>
<BLOCKQUOTE>
Chop out the second field:
</BLOCKQUOTE>

<blockquote><pre>root::0:0:root:/root:/bin/bash
</pre></blockquote>
<BLOCKQUOTE>
When you next log in as "root", you won't need a password - just make sure
to create one immediately. If you <EM>still</EM> cannot log in, then something in
the system itself is giving you problems; once again, refer to the above
article.
</BLOCKQUOTE>
<BLOCKQUOTE>
As to reasons <EM>why</EM> this happened in the first place: well, the scary-but-
obvious reason could be that some "script-kiddie" got into your system and
did a dance on it. Not to panic; as long as you've got good backups, the
damage can be undone (and if you're running a publicly accessible server
and _don't_ have backups, I'm afraid you've gone beyond any help I can
give.) It could also be that some program you've installed - and I haven't
heard of anything like this with progs from established distributions,
whereas just slapping in a random tarball could do this - has messed up
your libraries or other vital files.
</BLOCKQUOTE>
<BLOCKQUOTE>
In my experience with Linux, I've come to an expectation that I did not
have with MS Windows or OS/2 - "stuff" doesn't just happen. There <EM>is</EM> a
reason for this; whether a security problem caused by random services
enabled in "<TT>/etc/inetd.conf</TT>" (I strongly suggest reading the Security-HOWTO
if you have not done so previously) or a problematic program installation,
you need to track it down and resolve it. Particularly in the case of a
break-in, it is not something you want to happen again.
</BLOCKQUOTE>
<BLOCKQUOTE>
Good luck
</BLOCKQUOTE>

<p><em>... George adds some context ...</em></p>

<P><STRONG>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	> 
Ben,
</strong></p>
<P><STRONG>
Thanks so much for the speedy reply.  I'm going to read through your e-mail
very carefully.  I can tell you that I've done nothing to the server for
months accept FTP files to it, Telnet to it, add a couple of users etc.
It's been running perfectly since August of this year, and so I "think" I
can rule out my actions as the cause.  I haven't installed any additional
programs.  As for the security issue, this was and still is my immediate
concern.  I wonder if someone has got in and done "something".  I did see a
couple of bad login attempts using lastb.  I do have copies of ALL important
files, and so could simply reinstall the OS, but then I'd be no better
off...just waiting for it to happen again.
Thanks once again for your help.  I'll let you know if I find the cause.
</strong></p>

<p><em>... then following Ben's advice, investigates more carefully ...</em></p>

<P><STRONG>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	> 
Ben,
Following your article in issue #52, I looked at <TT>/bin/login</TT> (using linux
single) and noticed that it is owned by root and lp (have no idea what lp is
...sounds like a print queue).
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Just to hazard a guess - since I don't know the layout of your system or
anything else about it - an attacker may indeed have come in via your
remote print system; there are exploits (if I remember correctly) that use
it, since it requires a high level of privilege to access the hardware
ports. I would at least check into security measures involving the print
system - the first of which would be to make sure that I'm running "rlpr"
or "lprng" for my remote services. The second would most likely be a
search of COTSE &lt;<A HREF="http://www.cotse.com/unix.htm&gt"
	>http://www.cotse.com/unix.htm&gt</A>;, Insecure.org
&lt;<A HREF="http://www.insecure.org/sploits_linux.html&gt"
	>http://www.insecure.org/sploits_linux.html&gt</A>;, or NetworkICE
&lt;<A HREF="http://www.networkice.com/advice/Exploits&gt"
	>http://www.networkice.com/advice/Exploits&gt</A>; for known exploits against
whatever I <EM>am</EM> running.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
I booted up another pc with RH 7.0 and
noticed that its <TT>/bin/login</TT> ownership is root and root.  I tried chown
root.root login, but get the 'permission denied response'.  I also edited
<TT>/etc/shadow</TT> with no luck.  I agree with your theory that reinstalling
teaches you nothing.  My master plan was to FTP the login "program" from a
working pc to the server in the hope that login is somehow corrupted on the
server.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
"<TT>/bin/login</TT>" and "<TT>/bin/bash</TT>" are typically good things to check when
looking for intrusion "footprints", especially a "<TT>/bin/bash</TT>" that's been
set SUID (this means that anyone running that shell has full root
privileges!) The fact that you're unable to chown "login" means that
FTPing a good "login" binary will not help - you probably won't be able to
delete the old one. In fact, it's a pretty strong indicator that...
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
I rebooted the server using the linux single command, and then SU to login
as root.  I was scrolling through previous commands and was surprised to see
many commands that I didn't enter.  Someone created a user called "Poped" as
far as I can tell, and then entered commands such as
</STRONG></P>
<P><STRONG>
rm <TT>-f</TT> <TT>/bin/login</TT>
chattr <TT>-i</TT> <TT>/bin/login</TT>
</STRONG></P>
<P><STRONG>
It would seem that someone gained access.  What do you think?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
...somebody got in. I assume I don't need to mention that you need to
immediately take your system off the network - given that he has root
access, your attacker could easily wipe out your entire system.
</BLOCKQUOTE>
<BLOCKQUOTE>
I would guess, even though you haven't mentioned this, that they ran a
"chattr +i" on the "<TT>/bin/login</TT>" that they had installed - this would be the
reason that you can't delete "<TT>/bin/login</TT>". You can remove the "immutable"
flag set by "chattr" by running "chattr <TT>-i</TT> <TT>/bin/login</TT>"; this should allow
you to delete/replace it with a non-'rootkit' "login".
</BLOCKQUOTE>
<BLOCKQUOTE>
By the way - one of the ways you can usually tell the replacements is by
looking at the size of the executable. The 'rootkit' types, due to the
fact that they can't be dynamically linked (they have to be able to work on
a system whether it has their required libraries or not), are normally much
larger.
</BLOCKQUOTE>
<BLOCKQUOTE>
In a way, you should consider yourself lucky - a really knowledgeable
cracker would have replaced your "<TT>/sbin/syslogd</TT>" and cleaned up your
logfiles. You would never have known that anyone had been in there. Also,
the very fact that he screwed up "login" to that degree shows him to be an
amateur - a successful system crack is nowhere nearly that obvious or
crude.
</BLOCKQUOTE>
<BLOCKQUOTE>
Once again, I strongly recommend reading the Security-HOWTO and doing some
research. Leave your system off-line until you're satisfied 1) that you
understand how the attacker got in, 2) have securely patched that hole,
and 3) have done a general security survey of your system and are
reasonably satisfied with its state. If you're setting up a publicly-
accessible server and have not studied the security aspect, you're letting
yourself in for a large heap of trouble - as you have found out.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Thanks for any help.
</STRONG></P>
<P><STRONG>
P.S. so much for my firewall.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Ah, <EM>more</EM> reading to do! 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle"> Firewall setup is not as "automatic" as a lot
of folks think. Most of the time, it's not particularly difficult - but it
<EM>does</EM> require attention and a bit of study. See the (are you surprised?)
Firewall-HOWTO.
</BLOCKQUOTE>

<p><em>... George will go one better ...</em></p>

<P><STRONG>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Ben,
I'm really grateful for your excellent responses.  You've been a tremendous
help and I plan on taking your advice.  I bought "Building Linux and Open
BSD Firewalls" a few months ago and will delve more deeply into the book.
</STRONG></P>
<P><STRONG>
Happy Christmas, and thanks once again.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Glad I could be of help, George; sounds like you're taking an effective
tack to resolve the problem. Merry Christmas to you as well, and the best
of luck.
</BLOCKQUOTE>

<!-- end 10 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/11"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 11 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Transmitting PaperPort files with .max</H3>
<h4 align="center">Definitely some Windows file format</h4>


<p><strong>From Elizabeth Sedgwick 
</strong></p> 
<p align="right"><strong>Answered By  Mike Orr, Heather Stern, Don Marti
<br></strong></p>
<p><strong>
Gees, I hope you can help me.
</strong></p>
<p><strong>
I just loaded PaperPort software for windows, which is used
with a scanner for photographs, etc. onto my computer.  The
extension for the software is .max.  When I send photographs
to friends, they cant open them.  Do they have to have the
software on their computer to open the files?
</strong></p>
<p><strong>
In trying to solve this problem, I saved the photos with a
.jpeg extension and am sending them this way.  Some of my
friends do not have .jpeg type software in their computers.
Is there some way to download jpeg software from the
internet if you dont have it on your computer?
</strong></p>
<p><strong>
Your help with be so appreciated?
Elizabeth
</strong></p>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
This is Linux Gazette, not Windows Gazette.  You'd get a better
answer by asking a Windows group.
</BLOCKQUOTE>
<BLOCKQUOTE>
.max is not a normal image extension like .jpg, .gif, .png.  It
is very likely the recipient does not have a .max reader installed.
Nowadays they probably DO have a .jpg viewer of some sort
already installed.  How to view the image depends totally on the
recipient's mail program and other software.  At worst, they can save
the .jpg's as files and view them in Netscape or Internet Explorer using
a URL like file:/directory/filename.jpg .  (May need "\" or "\\"
and a "c:" prefix under Windows?)
</BLOCKQUOTE>
<BLOCKQUOTE>
IF they are running Windows, it's possible something called "File
Associations" has a bad configuration.  This is a table that tells
Windows which program to use to open a .jpg or .jpeg file when you
double-click it.  In Win95, it was a setting in Windows Explorer off one
of the menus somewhere.  In Win98/2000, I have no idea where it is.
</BLOCKQUOTE>

<p><em>... Great help, but Elizabeth is confused ...</em></p>

<P><STRONG><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Thank you for your help.
</strong></p>
<p><strong>
When I transmitted my email, it was sent to <A HREF="mailto:answerguy@ssc.com"
	>answerguy@ssc.com</A>.  How it
reached you is beyond me.
</strong></p>
<p><strong>
Thanks for your ideas!!  You're right about jpeg.
</strong></p>
<p><strong>
For your info, I learned that jpeg software comes with Microsoft Explorer.
I tried it, and the photos were highly enlarged at the receiver's end.  It
worked, but you had to look through several screens to see the whole photo.
The photo was smaller than screen size when I sent it.
</strong></p>
<p><strong>
I did find a solution that seems to work.  I use the extension of .exe and
people are able to open the file without special software.
</strong></p>
<p><strong>
Thanks again!!!
</strong></p>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
<A HREF="mailto:answerguy@ssc.com"
	>answerguy@ssc.com</A> was originally an alias for Jim Dennis, who answered the
questions and collected the threads to publish in Linux Gazette.
To ease the burden on him, we expanded it to The Answer Gang
(<A HREF="mailto:tag@ssc.com"
	>tag@ssc.com</A>), a mailing list with about ten subscribers.  All of them
see the questions and try to respond.  This also improves the quality of
the answers.
</BLOCKQUOTE>

<p><em>... Elizabeth is right to wonder ...</em></p>

<P><STRONG><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Does <A HREF="mailto:tag@ssc.com"
	>tag@ssc.com</A> answer questions about windows?
</strong></p>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
No.  Sometimes we will anyway, but generally not.
</BLOCKQUOTE>
<BLOCKQUOTE>
I used to do Windows support at a hospital, so I remember the tricks
I used then.  But I haven't used Windows hardly at all since 1998.
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Don]
About Windows/Linux interoperability, yes.  If there's no Linux in
the picture at all, then no.
</BLOCKQUOTE>
<BLOCKQUOTE><em>
Any technology distinguishable from magic is insufficiently advanced.
</em></BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
We actually try to answer questions, but only have any interest in
answering Linux questions.  There are lots of sites dedicated to Windows.
</BLOCKQUOTE>
<BLOCKQUOTE>
Perhaps a better question would be, if one of the Gang feels inclined to
answer a Windows question anyway, do we publish it?  Usually not.  If it 
involves interoperability, or it looks like Linux users
might also somehow benefit from the answer, or it gives our crew an
opportunity to advocate Linux a bit, then we do.
</BLOCKQUOTE>

<p><em>... Fair enough, but then ...</em></p>

<P><STRONG><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Thank you for corresponding with me.  Is there another web location I can
contact to obtain answers to Windows questions?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Not that I know of in particular.  There are USENET newsgroups
(comp.os.ms-windows.* I think), which you can access at 
<a href="http://www.deja.com/">www.deja.com</a>.
</BLOCKQUOTE>
<BLOCKQUOTE>
Or go to Google (<A HREF="http://www.google.com"
	>http://www.google.com</A>) and type some keywords.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
There's a tips area at <a href="http://www.winfiles.com">winfiles.com</a>, 
but it's nothing like we have.  Here is a real nice opportunity for one of 
the Windows related magazines to do a Windows Answers column like ours on 
their website...
</BLOCKQUOTE>

<!-- end 11 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/12"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 12 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Help Me Delete Linux</H3>


<p><strong>From Antony 
</strong></p> 
<p align="right"><strong>Answered By Mike Orr
<br></strong></p>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Hi, I recently attempted to install Linux Mandrake, but I did it wrong and know Windows has been
deleted and linux won't work, all I want to do is Delete linux  so I can reinstall Windows and be
happy again, I cant even install windows at the moment because linux is taking up too much room on
the hard drive. Mum is heaps annoyed as she can't use the computer so can you please help me
quickly? Thanks
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Hmm, three questions about uninstalling Linux in two days.  I wonder what
that means.
</BLOCKQUOTE>
<BLOCKQUOTE>
Doesn't the Windows setup program allow you to repartition your disk as
part of the process?  If not, that's a big omission.
</BLOCKQUOTE>
<BLOCKQUOTE>
Anybody here use Mandrake?  Does it come with a boot floppy that can be
used as a rescue disk?  If so, you should be able to boot from the floppy,
press Alt-F2 to go to the second virtual console, run "cfdisk" or "fdisk"
and delete the Linux partitions (or all the partitions), and then reboot
and run the Windows install program.
</BLOCKQUOTE>

<!-- end 12 -->

<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/19"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 19 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Removing Linux: Sacrilege!</H3>
<H4 ALIGN="center">or: <TT>/bin/dd</TT> is your friend!</H4>


<p><strong>From Kevin Gray 
</strong></p> 
<p align="right"><strong>Answered By Mike Orr, Jim Dennis
<br></strong></p>
<!-- ::
Removing Linux: Sacrilege!
~~~~~~~~~~~~~~~~~~~~~~~~~~
or: <TT>/bin/dd</TT> is your friend!
:: -->
<P><STRONG>
hello i was just wondering how to remove linux from my system. I have two
hard drives one with linux and the other with windows 98. Everything works
fine but I just never use linux and since I don't have the time or technical
know how as to operate linux i would like to get my hard drive back. Is
there a way to do this? Any help would be appreciated. Thank you.
</STRONG></P>
<P><STRONG>
Until your next letter I remain,
<br>Sincerely Yours,
<br>Kevin Gray
</STRONG></P>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Is Linux on your primary drive or second drive?  If it's on your second
drive, use Windows fdisk program to delete the Linux partitions and
create DOS partition(s).  If you can't find a graphical fdisk program
under the start menu, open a DOS box and type "fdisk".  Choose the
option to switch drives if necessary), then the option to print
partition information.  Verify which are the Linux partition(s) and
delete them.  Then either make one big DOS partition or several small
ones.  Close and reboot, open My Computer, right-click on each new
partition and choose "Format" from the menu.
</BLOCKQUOTE>
<BLOCKQUOTE>
If Linux is on your primary drive, can you switch the drive cables
and/or jumpers to make Windows the primary drive?  Be warned that
Windows programs tend to go into convulsions if you change drive letters on
them.  Windows assigns drive letters according to which partitions it
finds first, so moving drives around or changing DOS partitions changes
the drive letters.  Use the Windows utility to make a rescue floppy
first.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you're using LILO to boot, you can eliminate it by using
"<TT>fdisk /mbr</TT>", an undocumented option to Windows' fdisk program.  This
replaces the master boot record on the disk with Windows' default
version.  Note that Windows' boot loader is primitive: it won't
give you a menu, it'll just boot whichever primary partition is active
(on the first disk only).  You must first make that partition active
(=bootable) using fdisk, and ensure ONLY ONE partition is active.
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Note that most versions of MS FDISK will refuse to remove
non-MS-DOS partitions.  You can use Linux fdisk to remove partitions
or you can use dd to complete wipe out all data on the Linux
disk which will make it look like it's fresh from the factory
so far as MS is concerned.
</BLOCKQUOTE>
<BLOCKQUOTE>
Also note that swapping drive letters out from under a MS OS
installation is basically guaranteed to hurt worse than backing
up your data to floppies, re-installing the OS from scratch,
re-installing all applications and restore copies of your data
into place.  (This re-installation process has the added benefit
of ensure that you have backups and of cleaning out all of the
cruft that tends to accumulate in Microsoft based operating
systems over time).
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
When I use it, it just asks, "Delete non-DOS partition?" and does
it.
</BLOCKQUOTE>
<BLOCKQUOTE>
You can use Linux fdisk to delete the partition, but be careful,
because then Linux won't exist but will still be running.  Do it
in single-user mode (type "linux single" at the LILO prompt),
then reboot immediately after exiting the program.  Even better
would be to boot from a Linux rescue floppy (which probably came
with your distribution) so that you're not deleting the
currently-running system.
</BLOCKQUOTE>

<p><em>... and the real nitty gritty instructions ...</em></p>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Let's assume that you have two IDE drives and that you have
Linux installed on what MS-DOS/MS Windows would call your "D:"
drive (<TT>/dev/hdb</TT> or <TT>/dev/hdc</TT> or even possibly <TT>/dev/hdd</TT> under Linux).
Obviously that could be <TT>/dev/sda</TT> if you're using a combination of IDE
and SCSI or <TT>/dev/sdb</TT> if you have two SCSI drives.
</BLOCKQUOTE>
<BLOCKQUOTE>
So, let's assume that MS Windows is installed on <TT>/dev/hda</TT> and
that Linux is on <TT>/dev/hdc</TT> (perhaps your CD-ROM drive is <TT>/dev/hdb</TT>
<TT>/dev/hdd</TT>).
</BLOCKQUOTE>
<BLOCKQUOTE>
To remove Linux as though it had NEVER been there you can follow
these steps:
</BLOCKQUOTE>

<blockquote><pre>      lilo -u /dev/hda
</pre></blockquote>
<BLOCKQUOTE>
... should attempt to copy <TT>/boot/boot.0300</TT> back into <TT>/dev/hda</TT>
(that should have been the backup copy of your original master
boot record --- MBR).  If that does work then prepare an MS-DOS
boot floppy (ask Microsoft how to do that with newer versions
of Win'9x; they'll swear that Win'9x isn't really DOS anymore,
but they're lying, of course).
</BLOCKQUOTE>
<BLOCKQUOTE>
Now to wipe out EVERYTHING from <TT>/dev/hdc.</TT>
</BLOCKQUOTE>
<font color="#990000">
<hr width="20%" align="center">
<BLOCKQUOTE>
WARNING!!!
</BLOCKQUOTE>
<BLOCKQUOTE>
The following will irrevocably wipe out all data
on a hard drive!  Mistyping it can wipe out everything
on the wrong drive!  IF YOU CARE ABOUT ANY OF YOUR
DATA, BACK IT UP!  MAKE COPIES DON'T AND DON'T COME
CRYING TO US IF YOU FLUB THIS UP!!!!
</BLOCKQUOTE>
<BLOCKQUOTE>
WARNING!!!
</BLOCKQUOTE>
<hr width="20%" align="center">
</font>

<blockquote><pre>     dd if=/dev/zero of=/dev/hdc bs=1024k  # DANGER! Will Robinson!
</pre></blockquote>
<BLOCKQUOTE>
... this will scribble streams of ASCII "zeroes" (NUL characters) all
over <TT>/dev/hdc</TT> --- wiping out Linux.
</BLOCKQUOTE>
<BLOCKQUOTE>
When you reboot Linux will be gone (the kernel and the dd program
were in memory, but that's cleaned up on a system reboot).
</BLOCKQUOTE>
<BLOCKQUOTE>
If your system doesn't boot from its hard drive after this, then
pull out that MS-DOS boot floppy.  By the way, you should have one
of those around for various recovery reasons --- it is a vital
part of running MS-DOS and recovery from any virus that your system
catches.  Then run:
</BLOCKQUOTE>

<blockquote><pre>     FDISK /MBR
</pre></blockquote>
<BLOCKQUOTE>
(That's a DOS command that should create a new boot record for
you).
</BLOCKQUOTE>
<BLOCKQUOTE>
If it still doesn't come up after this than refer to the huge
WARNING that precedes this dangerous command example.  Sigh,
re-install MS-Windows and restore from backup.
</BLOCKQUOTE>

<!-- end 19 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/32"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 32 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Another uninstall: Getting to a Root Prompt to Blow it All Away</H3>


<p><strong>From Lynn Johnson 
</strong></p> 
<p align="right"><strong>Answered By  Jim Dennis
<br></strong></p>
<!-- ::
Another uninstall: Getting to a Root Prompt to Blow it All Away
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
I am trying to remove linux - i logged in as root but where do I
type fdisk?  I don't see a place to type anything - pls help -
thanks, lynn
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
I'm going to guess that you're logging through some graphical
service (xdm, kdm, gdm, etc).  That would be the most common case
where you could log in as root and not see a text console and a
shell prompt.
</BLOCKQUOTE>
<BLOCKQUOTE>
So, assuming that this is the case the question becomes:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
How do I get to a root shell prompt?
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
There are many possibilities.  X can be configured to run any
of a number of GUIs (graphical user interfaces) such as <A HREF="http://www.kde.org/">KDE</A>,
<A HREF="http://www.gnome.org/">GNOME</A>, twm, fvwm, etc.  Any of those can be configured to offer
a very limited number of menus (possibly no menus at all).
</BLOCKQUOTE>
<BLOCKQUOTE>
Typically you access your GUI's menus under X by clicking on the
"wall paper" (or screen "background" which is technically called the
"root window" in X parlance).  That will bring up the "root menu."
(The windows and menus in X are thought of as a tree, just as your
filesystems are trees of directories, and subdirectories (branches)
and files (leaves).  You might have to click with your right or
middle mouse buttons. That is configurable in most X window managers.
There might even be different menus that come up for each mouse
button.  Typically one set of them would be the main set of menu
options and the other(s) would contain some special window manager
features to resize, raise, lower, move and destroy windows, select
"minimized" or "hidden" applications etc.
</BLOCKQUOTE>
<BLOCKQUOTE>
When you find the main menu tree you can search it for some entry
such as "xterm" or "rxvt" or "eterm" or "kterm" or for entries
that are referred to as "shells."  Since X is completely configurable
the labels on the menus can be <EM>anything</EM>.
</BLOCKQUOTE>
<BLOCKQUOTE>
All of that aside it's probably easiest to skip all of this GUI
rigamarole. There are a couple of ways to do this.  On most
systems you could switch away from X (and/or any of the display
managers -- the various graphical login tools) using the following
keystrokes:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
[Ctrl]+[Alt]+[F1]
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
(That's holding down the "control" and the "alt" keys and typing
in the first function key).  That should bring you to a text mode
login console (which is a virtual terminal/console running any of
the "getty" programs, usually mingetty under Linux.
</BLOCKQUOTE>
<BLOCKQUOTE>
From there you can log in as root and you should be presented with
a shell prompt (usually ending in a "#" hash/pound sign which
conventionally indicates a root prompt).
</BLOCKQUOTE>
<BLOCKQUOTE>
If that fails then you'll probably want to "break in" by rebooting.
It's possible for someone to configure a Linux box such that
there are no getty's running on any virtual consoles.  It's even
possible to configure one to run multiple different X sessions
concurrently.  I have a workstation at my new office which is
running four different xdm sessions.
</BLOCKQUOTE>
<BLOCKQUOTE>
So, if you system has been configured to remove the text
virtual consoles, or if you're running a distribution that only
makes a GUI available by default, then you'll want to reboot.
</BLOCKQUOTE>
<BLOCKQUOTE>
The easiest way to reboot from a graphical session under Linux
is to type:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
[Ctrl]+[Alt]+[Backspace], [Ctrl]+[Alt]+[Del]
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
...in rapid succession.  The first keystroke combination will
kill the X server, the other one will signal init (the process
manager under Linux) to perform a reboot.
</BLOCKQUOTE>
<BLOCKQUOTE>
Of course either of these features <EM>might</EM> also be disabled!
If that's the case then just hit the reset button on your
system, or flip the power switch (wait about 30 seconds and
turn it back on) or pull the power plug.
</BLOCKQUOTE>
<BLOCKQUOTE>
While it's booting wait for the keyboard lights to flash a
couple of times (while the system counts its memory, checks
it's floppies, etc).  There will <EM>probably</EM> be a LILO prompt
(possibly this will be quite brief.  So, as soon as you see
the keyboard caps lock, scroll lock, and num lock lights
flicker, turn on the caps and/or scroll lock.  If they flick
back off in a second, turn them back on and hold down any
shift or control key.
</BLOCKQUOTE>
<BLOCKQUOTE>
All of these shenanigans are intended to interrupt LILO
(the most popular Linux loader) and convince it to give you
a prompt.  At that prompt type:
</BLOCKQUOTE>

<blockquote><pre>	    linux init=/bin/sh rw
</pre></blockquote>
<BLOCKQUOTE>
Actually you might have to replace the first word in that
line with something else.  What else?  That depends.  LILO
can be configured to call the Linux installations or "stanzas"
by any name you'd like.  Also LILO can be configured not
to allow any interruption or it can be configured to require a
password to boot or to bypass the normal boot procedure.
</BLOCKQUOTE>
<BLOCKQUOTE>
However, more than 99% of all the Linux boxes in the world
today will give you a root prompt if you follow this last
procedure.  There are only a few freaks like me that know enough
about Linux to configure LILO with passwords and/or to ignore
all attempts to get at a LILO prompt.  (Of course there are
other boot managers for Linux.  In particular newer versions
of Mandrake might use GRUB --- the grand unified bootloader;
and I haven't studied that one at all.
</BLOCKQUOTE>
<BLOCKQUOTE>
In the <EM>highly</EM> unlikely event that you <EM>still</EM> can't get at
a root prompt then you'll want to boot from a floppy or a
CD (such as the <A HREF="http://www.linuxcare.com/">Linuxcare</A> bootable business card or one of
its clones).  I'm not going to go into the details on that
for right now.  If you need to know how to do that just
search Google! (<A HREF="http://www.google.com/linux"
	>http://www.google.com/linux</A>) for "recovery
disk" or go to Tom Oehser's site and read about Tom's
"root/boot" disk images (<A HREF="http://www.toms.net/rb"
	>http://www.toms.net/rb</A>).
</BLOCKQUOTE>
<BLOCKQUOTE>
Notice that most of the difficulty here is that I have
no idea how your Linux system is configured, nor do I have
any idea what distribution you're running.  As you might have
guessed from this long set of directions Linux is a bit
configurable.
</BLOCKQUOTE>
<BLOCKQUOTE>
Obviously once you get to a root prompt you can just
use the command:
</BLOCKQUOTE>

<blockquote><pre>        fdisk /dev/hda
</pre></blockquote>
<BLOCKQUOTE>
... to work on the partitions on your primary IDE drive.
(You can use <TT>/dev/hdb</TT> for the secondardy IDE on the first
controller, <TT>/dev/hdc</TT> for the primary drive on the secondary
controller, etc; and you can use <TT>/dev/sda</TT>, <TT>/dev/sdb</TT>, etc
if you're using SCSI drives).
</BLOCKQUOTE>

<!-- end 32 -->

<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/13"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 13 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>setting root password</H3>

<p><strong>From Tom Weingarten  
</strong></p> 
<p align="right"><strong>Answered By Ben Okopnik 
<br></strong></p>
<P><STRONG>
I've managed to work myself into quite the dilemma. Somehow my root
password has been deleted, so I can no longer enter my system except by
a second login, which does not have write permissions on anything or the
ability to acces linuxconf or userconf. I'm using RedHat Linux on a
dual-pentium box. However, I've found that the RedHat cd is far from
adequate for rescue purposes, so I created a mandrake cd, and can use it
to edit files. What do you suggest I do? Thanks in advance for your time
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
I've found that the RedHat CD (or boot floppy) actually works reasonably
well as a rescue disk - flipping to the 2nd console via "Alt-F2" and
mounting the existing hard drive is the answer (RedHat tech support told me
it couldn't be done and I should reinstall. &lt;sigh&gt
<IMG SRC="../gx/dennis/smily.gif" ALT=";)" 
		height="24" width="20" align="middle"> Whichever you choose,
fixing the root password problem is pretty easy - and before anybody starts
storming about it being a HUGE security hole, remember that "physical
access=root access". Period. It's the reason that locked server closets and
machine rooms exist. If you want just that tiny bit of extra security (your
eight-year-old computer genius has been trying random passwords against
"root" or some such), disable the floppy/CD boot and password the BIOS
(write your hard drive's cylinder/head/sector info on the side of the PC
case and *don't* lose <EM>that</EM> password; resetting the BIOS can be a touchy
business.)
</BLOCKQUOTE>
<BLOCKQUOTE>
So - boot your machine via a boot disk or CD. Mount the offending drive -
for this example, we'll say you have it under "<TT>/mnt</TT>". Edit
"<TT>/mnt/etc/passwd</TT>" (or "<TT>/mnt/etc/shadow</TT>" if you use shadow passwords) and
clear out the second field in the "root" entry (fields are separated by
colons) - that's the encrypted password. In other words, given an entry
that looks like this:
</BLOCKQUOTE>

<blockquote><pre>root:2St5fADe4oOcSE:0:0:root:/root:/bin/bash
</pre></blockquote>
<BLOCKQUOTE>
you should end up with this:
</BLOCKQUOTE>

<blockquote><pre>root::0:0:root:/root:/bin/bash
</pre></blockquote>
<BLOCKQUOTE>
Save the file and reboot, this time without the boot disk. Log in as root (no
password necessary) and immediately assign one using the "passwd" utility.
No muss, no fuss, no greasy aftertaste. And, umm, keep a close watch on
Junior: he might be reading this too... 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>

<p><em>... Ben's a hero! ...</em></p>

<p><strong>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Thanks a million. You've saved me the fate of hundreds of users asking what the
heck happened to their character files (I run an online game). Also, btw, while
searching desperately for a solution, I found that if you edit <TT>/etc/pam.d/login</TT>
and change everything to optional, you can login as root with the wrong
password. Then you can change the password, all from the boot cd. Although, your
method is infinitely simpler. 
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)" 
		height="24" width="20" align="middle">
</strong></p>
<p><strong>
Thanks again for your help.
Tom
</strong></p>

<!-- end 13 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/14"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 14 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>I can't seem to write to my vfat (Windoze) file system with any user other than root.</H3>


<p><strong>From John Fox 
</strong></p> 
<p align="right"><strong>Answered By  Ben Okopnik
<br></strong></p>
<P><STRONG>
I currently run Red hat 7.0 and am attempting to follow the suggested
procedures of not logging on as root unless I absolutely have to.  When I am
logged in to the system as my non-root user id, I am unable to write files
to the vfat file system.
</STRONG></P>
<P><STRONG>
I have tried to chown the mount point, I have even gone so far as to try to
chown and change the file permissions of a file on the vfat file system(to
no avail).  I have checked the mount and all the vfat mounts all show (rw).
</STRONG></P>
<P><STRONG>
The following is the error message I receive when I attempt to copy a file:
cp: cannot create regular file `filename.ext': permission denied.
</STRONG></P>
<P><STRONG>
Does anyone have any idea?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Yep; I remember cursing and scratching my head over this one quite a while
ago. You've got the right idea in looking at the permissions/ownership of
the mount point - but as you've found out, you can't just change them.
</BLOCKQUOTE>
<BLOCKQUOTE>
Here's the solution that I've used. I like this one, since it would work
well on a multiuser system as well as a regular home system. First, create
a group called "msdos". Note its GID (the number associated with that
group; take a look with 'vigr'.) Add yourself to that group -
</BLOCKQUOTE>

<blockquote><pre>adduser jfox msdos
</pre></blockquote>
<BLOCKQUOTE>
(assuming your username is 'jfox'.) Now, in your '<TT>/etc/fstab</TT>', add the
"noexec", "umask" and "gid" parameters to the appropriate partition:
</BLOCKQUOTE>

<blockquote><pre>/dev/hda3  /mnt/msdos  vfat  noexec,umask=003,gid=1001  0 0
</pre></blockquote>
<BLOCKQUOTE>
Obviously, the GID would be that of the "msdos" group.
</BLOCKQUOTE>
<BLOCKQUOTE>
What we're doing here is mounting that partition with the appropriate group
ID and setting the umask - this masks <EM>out</EM> the permissions that the
mounted partition will have. The "noexec" parameter works with in concert
with the other two to produce the following conditions:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
Directory access under the mountpoint is allowed to members of GID 1001
All files under the mountpoint are readable <EM>and</EM> writable by GID 1001
The files are "read-only" to the other users
None of the files are executable (does not apply to DOS emulation)
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
It takes a bit to get used to this three-parameter control system, but
it is actually very flexible and can be used to set up just about any
combination of permissions and directory accessibility you could want.
</BLOCKQUOTE>
<BLOCKQUOTE>
From this point on, if you want to give a user on your system read/write
access to the files on that partition, simply add them to the "msdos"
group.
</BLOCKQUOTE>

<p><em>... wishing the docs were better ...</em></p>

<P><STRONG>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Ben,
</STRONG></P>
<P><STRONG>
Thanks for your help.  That did the trick.  I think they could have made it
easier by putting somthing in the faq. On their site.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
You're welcome - glad I could help! Just as an idea, if you perceive this
as a topic that lacks coverage in the Linux community, consider writing a
HOWTO - the Linux Documentation Project, under whose auspices the LG
operates, is always on the lookout for more useful info that can be shared.
It's yet another way to put something back in as a return for the effort
that other Linux folks have put out - and this kind of feedback is
precisely what allows a community to grow.
</BLOCKQUOTE>

<p><em>... you can do it John! ...</em></p>

<p><strong>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Will do Ben,
</strong></p>
<p><strong>
I would be happy to contribute to the community.  I thought you had to be
hooked up with the right people in order to contribute.  I will seriously
consider writing something up.  Especially considering that I am on Vacation
until the end of the year and will have plenty of free time on my hands.
</strong></p>

<!-- end 14 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/15"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 15 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Firewall for a SOHO</H3>
<H4 ALIGN="center">Small World, isn't it?</H4>


<p><strong>From Tom Bynum 
</strong></p> 
<p align="right"><strong>Answered By  Jim Dennis
<br></strong></p>
<!-- ::
Firewall for a SOHO
~~~~~~~~~~~~~~~~~~~~~~
Small World, isn't it?
:: -->
<P><STRONG>
Actually, hello from your mom's next door neighbor (...well....two
doors...damn it...close enough...).  Anyway, I was talking with her out in
the cul-de-sac Sunday evening and she lent me her copy of your book to
browse.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Mom mentioned that she'd been chatting with you.
</BLOCKQUOTE>
<blockquote>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Jim wrote a book?
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Yeah, Linux System Administration by 
<a href="http://www.newriders.com">New Riders Publishing</a>.  
purple edge stripe,
"landmark" series with a view of the French river (the Seine I think) on the
cover's top quarter stripe.
</BLOCKQUOTE>
<BLOCKQUOTE>
Wherein the first half describes policies so real decisions can be made, and
the second half describes practicum, so sysadmins can Do Cool Stuff.  eg. to
have an awk script "vette" the logs of all the boring ordinary stuff amd leave
you the stuff that looks new or weird.
</BLOCKQUOTE>
<BLOCKQUOTE>
It's a good thing 
<IMG SRC="../gx/dennis/smily.gif" ALT=":&gt;" 
		height="24" width="20" align="middle">

</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
That's cool that
New Riders has a Linux book.  Several of us at SSC have been very impressed
with the two New Riders' books on Python and PHP, so I'll have to take a look
at this one.  The other two books are very concise: they give you a lot of
information in a small space, and answer questions you didn't think to ask,
more so than books three times their size.
</BLOCKQUOTE>
</blockquote>


<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
I spend about 99.8% of my time in Windoze.......(snore.....) so please
forgive some rather newbie questions, but I have an idea that incorporates
Linux in a big way.
</STRONG></P>
<P><STRONG>
Let me give you a short Linux bio...
I was first exposed to Linux back in 1997 when someone at my ISP mentioned
using it for an internal mail server.  I figured "...how hard can it be..".
I went and bought a book which included 3 distros.  I ended up using <A HREF="http://www.caldera.com/">Caldera</A>
Openlinux Lite 1.0.  (because it was the only one that would install)  In
about a week I got Sendmail to work with the ISP through a dial-up SLIP/PPP
connection.  At that time we only had a single company dial-up account so I
had the machine using a crontab to dial-up and kick the SMTP server every 3
hours or so.  The "kicking" part was something I found to make SMTP work
through a dynamic dial-up account.  Later I installed ISDN and a router and
got a static IP so we were live and just had to turn off the crontab.  I got
burned on "relaying" with that server and didn't know how to turn it off so
I installed Caldera OpenLinux 2.3 because it contained the new distribution
of Sendmail with relaying blocked out-of-the-box.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Yes.  Sendmail has a near vertical learning curve (and qmail is even
more confusing for me).  I actually like Postfix (now that I've tried it)
but I'm NOT recommending that you switch to a new MTA (mail transport
agent).  You got something that works well enough.  You've learned enough
to get by; and if you need to hire a consultant than there are LOTS of
them that know sendmail and very few who understand the corresponding
intricacies of qmail, Postfix, exim or any other MTA.
</BLOCKQUOTE>
<BLOCKQUOTE>
There is a really cool option to consider.  You could buy the commercial
sendmail package and use it's little configuration system.  You'd still
be running the same sendmail that you are now; but you'd have a somewhat
less gruesome interface for doing the basic configuration.  (If you later
had really special needs you could have someone start with those basic
configuration files.
</BLOCKQUOTE>
<BLOCKQUOTE>
Look at <A HREF="http://www.sendmail.com"
	>http://www.sendmail.com</A> for information on pricing and all of
that.
</BLOCKQUOTE>
<BLOCKQUOTE>
As for setting the "maximum message size" limit: you should be able
to edit your <TT>.../sendmail.cf</TT> file (either in <TT>/etc/</TT> or in <TT>/etc/mail/</TT>
depending on your distribution) and find a line that looks something
like:
</BLOCKQUOTE>

<blockquote><pre>#O MaxMessageSize=1000000
</pre></blockquote>
<BLOCKQUOTE>
... to make that work just remove that first character (the '#' or
hash sign) which "uncomments" that line.  The value is in characters
or octets (I'm not really sure which --- but they are the same for
ASCII and I doubt that you're getting alot of Unicode or UTF8 traffic
yet).
</BLOCKQUOTE>
<BLOCKQUOTE>
If you don't find this line then insert it somewhere in the
first section of the .cf file.  That means to put it before the
first line that starts with a P (which looks like the following
line in one of my sendmail.cf files):
</BLOCKQUOTE>

<blockquote><pre>Pfirst-class=0
</pre></blockquote>
<BLOCKQUOTE>
Sendmail isn't terribly picky about what order the options
appear in, but it can be picky about which "section" they're
in.  (In other words the options should all be grouped together
near the top of the cf file, the re-writing rules should all
be grouped together near the end of the file.
</BLOCKQUOTE>
<BLOCKQUOTE>
Note:  It's better if you're using a macro config file (usually
named &lt;something&gt;.mc).  So, here's a simple sample .mc file
showing a valid confMAX_MESSAGE_SIZE definition:
</BLOCKQUOTE>

<blockquote><pre>divert(-1)
# After the `divert(0)' all lines starting with `dnl' are
# comments until the next newline character.
include(`/usr/share/sendmail/m4/cf.m4')
divert(0)dnl
VERSIONID(`Linux Dec 19 16:43:03 PST 2000')
OSTYPE(`linux')dnl
dnl
define(`confMAX_MESSAGE_SIZE', `1234567890')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn')dnl
define(`LUSER_RELAY', `local:postmaster')dnl
FEATURE(`nocanonify')dnl
FEATURE(use_cw_file)dnl
FEATURE(`always_add_domain')dnl
MASQUERADE_AS(`PUT_YOUR_DOMAIN_HERE')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`allmasquerade')dnl
MAILER(`local')dnl
MAILER(`procmail')dnl
MAILER(`smtp')dnl
MAILER(`uucp')dnl
MAILER(`bsmtp')dnl
MAILER(`fido')dnl
dnl
LOCAL_CONFIG

</pre></blockquote>
<BLOCKQUOTE>
Most of represents a typical sendmail .mc file.  In order to
use this to generate a .cf file (which is what sendmail uses)
we issue a command like:
</BLOCKQUOTE>

<blockquote><pre>	m4 &lt; $THIS_MC_FILE_NAME &gt; /etc/sendmail.cf
</pre></blockquote>
<BLOCKQUOTE>
(Note: DON'T DO THIS using the sample I've given.  You'll
wipe out your existing sendmail.cf file!)
</BLOCKQUOTE>
<BLOCKQUOTE>
The idea here is not really that complicated.  sendmail uses
the cf file which is in a format that's convenient for the program.
For years people maintained cf files directly (using a text editor).
For some of us (myself included) it is still easier to make a small
change to an existing .cf file then it is figure out the corresponding
.mc file directive.
</BLOCKQUOTE>
<BLOCKQUOTE>
However, most of the text in the .cf file looks like line noise.
So mere mortals among us prefer to create shorter files that summarize
what we want sendmail to do.  Then we pass these shorter .mc files
through a macro expansion tool (the m4 program) and they get expanded
into the .cf files that sendmail uses.
</BLOCKQUOTE>
<BLOCKQUOTE>
But enough about sendmail.  On to your question.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
"Whew"...all right, here I am today.  The box runs, I don't screw with it.
Every now and then some bozo over in drafting tries to stuff a CAD drawing
in an email message, but after a little staff chastising and a re-boot,
everything's back to normal.  BTW, I've seen that "max message size" line in
the sendmail.cf, but everytime I try and make the line active, the server
issues an error when booting the sendmail daemon so I had to rem it out
again...sorry, back to my point...
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
(See above)
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
I want to set up a Linux box to implement Firewall and Proxy services.  For
you that might be straight forward, but all the information I find is
sending me in mental circles...
</STRONG></P>
<P><STRONG>
This is what we currently have setup...Static address from ISP <TT>--&gt;</TT>  Router
(with ISDN modem) using NAT <TT>--&gt;</TT> Private address on the Lan side of the
router.  DHCP running on the network tells all the clients that the router
address is the gateway.  All works...thanks for shopping at Kmart.  Not very
safe...
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
I like to use pictures when I'm designing networks.
</BLOCKQUOTE>
<BLOCKQUOTE>
It sounds like you have this:
</BLOCKQUOTE>

<blockquote><pre>                                         * eth0
                                         v
               +---------+     +--------+     +-----+
               |   ISP   |-----| Router |--+--| LAN |
               +---------+     +--------+  |  +-----+
                              ^            |
                              * eth1       |   +-----------+
                                           +---| Linux Box |
                                               +-----------+
</pre></blockquote>
<BLOCKQUOTE>
... but it's not clear.  Clearly your Linux box cannot be
receiving mail from the Internet if it's using a "private"
(non-routable RFC1918) IP address.  That is to say that you
can't advertise a 192.168.*.*, 10.*.*.* or 172.16.*.* through
172.31.*.* address to the Internet as your MX (mail exchanger).
If you did so, then no one would be able to route SMTP (or any
other IP traffic) to you.
</BLOCKQUOTE>
<BLOCKQUOTE>
However, it's possible that you could have a feature/rule on your
router such that it relayed any incoming traffic on TCP port 25
on eth1 (the outer interface) to the same port on your Linux box.
</BLOCKQUOTE>
<BLOCKQUOTE>
This is one way to put a "hidden" server behind a router.  However,
it assumes that you have a router that is capable of doing such
relaying (or "transparent proxying").  There are a number of programs
capable of doing this for Linux.
</BLOCKQUOTE>
<BLOCKQUOTE>
(Another, less interesting and less useful solution would be for
your ISP to act as a your MX record AND for them to maintain their
own routes to your RFC1918 network.  Of course then you'd have to
co-ordinate this with your ISP and they'd have to assign different
RFC1918 address blocks to each of their customers that wanted this
service, and you'd have to maintain split DNS, and ... anyway
forget I mentioned that).
</BLOCKQUOTE>
<BLOCKQUOTE>
Another option would be to use the Linux box <EM>as</EM> both the
router and the sendmail host.  This is possible (so long as you
can connect your ISDN modem or TA to your Linux box).
</BLOCKQUOTE>
<BLOCKQUOTE>
Yet another option would be to have your ISP give you more than
one static IP address.  Two would be sufficient; four would be a
relatively normal subnet, though only two would be usable in
that.
</BLOCKQUOTE>
<BLOCKQUOTE>
Note: most of these configurations are NOT recommended.  They
offer little or no protection for the sendmail boxes, and
nothing protects your internal network from a potentially
compromised sendmail box.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Here's what I want. (It sounds safer....so I'm gonna try and draw you a
mental picture here so bear with me...)
</STRONG></P>
<P><STRONG>
Static address from ISP <TT>--&gt;</TT> Router (with ISDN modem) using NAT <TT>--&gt;</TT> Firewall
(eth1 on linux box) <TT>--&gt;</TT> Firewall/Proxy/NAT services running inside box <TT>--&gt;</TT>
Gateway (eth0 on linux box)--&gt; Network
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
It sounds like you're saying that you want something like:
</BLOCKQUOTE>

<blockquote><pre>               +---------+     +--------+    +-----+
               |   ISP   |-----| Router |----| LAN |
               +---------+     +---+----+    +-----+
                                   |
                                   |   +-----------+
                                   +---| Linux Box |
                                       +-----------+
</pre></blockquote>
<BLOCKQUOTE>
This is a reasonable configuration.  You still need to
have some way of routing traffic to the Linux box.  That can
still be a TCP relay utility or feature running on the router
and redirecting all inbound SMTP (TCP port 25) traffic to
the Linux mail host.  It could be a different DRIP (directly
routable IP address) from your ISP.
</BLOCKQUOTE>
<BLOCKQUOTE>
It could even be a hack where all your incoming mail gets
stored by your ISP and is fetched into your domain via
POP or IMAP.  (I suspect that this is the way you were doing
it when you were in dial-up.  I suppose it might be what you're
still doing; it's not clear from your message).  Another trick
is for your ISP to be your primary MX, and for them to relay
it to you via UUCP (over TCP).
</BLOCKQUOTE>
<BLOCKQUOTE>
I used to get my mail via UUCP, and that was only a couple
years ago.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Basically just insert it between the network and the router.  Does that make
sense?  Here's the reason for the router being on the end...it has my ISDN
modem built-in.  It's the only device I have that can run the ISDN
connection.  Things are too $tight$ to get a nice connection like a T1 with
expensive firewalls and such, so I'm trying to make this work cheap!  I also
want the logging and auditing provided by the proxy.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
The problem here is getting the incoming traffic to your Linux
box.  I'm guessing that you might have something like a Trancell Webramp
ISDN TA/router.  You could replace that with an ISDN card or an external
ISDN "modem" (which connects to your Linux box via a serial port).
</BLOCKQUOTE>
<BLOCKQUOTE>
In those cases you'd have the routing and mail services running on
a single system (which is not a good security profile since a
compromise of your mail host constitutes  a loss of control of
all of your routing).
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
The final effect is, a second "private" network between the linux box and
the router. So I will have one subnet for the LAN in general and eth0 of the
box on that side.  A second private address space and "subnet" available
only between eth1 and the router, and then of course our static IP on the
outside.  To me it kind of resembles a "DMZ" which most modern routers have
built in.  Let's call it a poor man's "DMZ".
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Oh you mean:
</BLOCKQUOTE>

<blockquote><pre>               +---------+     +--------+                  +-----+
               |   ISP   |-----| Router |            +-----| LAN |
               +---------+     +---+----+            |     +-----+
                                   |                 |
                                   |   +-----------+ |
                                   +---| Linux Box |-+
                                       +-----------+
</pre></blockquote>
<BLOCKQUOTE>
... that's O.K.  In this case Linux is acting as an interior
router (and as a mail host).  Even better would be:
</BLOCKQUOTE>

<blockquote><pre>               +---------+     +--------+                     +-----+
               |   ISP   |-----| Router |               +-----| LAN |
               +---------+     +---+----+               |     +-----+
                                   |                    |
                                   |   +--------------+ |
                                   +---| Linux Router |-+
                                   |   +--------------+
                                   |
                                   |   +-------------------+
                                   +---| Linux Mail Server |
                                       +-------------------+
</pre></blockquote>
<BLOCKQUOTE>
Where you use two different Linux boxes, one as a router and
the other as a mail server.
</BLOCKQUOTE>
<BLOCKQUOTE>
You'd still want your ISP to give you one or two more DRIP
addresses (for the exterior interface on your Linux box(es)).
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Does this sound off the wall?  Every "how-to" I find for using Linux as a
firewall talks about it being the "router" at the end of the line between
the LAN/WAN.  I haven't heard of it being used as I have described and I'm
really not sure where to go from here.  It all sounds good on
paper..."...Client on the net ships a packet off to the gateway (eth0)...The
linux box runs it's firewall/proxy voodoo magic stuff and ships it out the
other side (eth1) to the router which of course really ships it out...".
But how about on the return trip?  With the firewall and the router both
using NAT...the router won't care, but how about inside the linux box?  Will
the packets still back and forth to each client OK?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Linux can be used as a border router and/or as an interior router.
</BLOCKQUOTE>
<BLOCKQUOTE>
An even better configuration would be:
</BLOCKQUOTE>

<blockquote><pre>               +---------+     +--------+                     +-----+
               |   ISP   |-----| Router |               +-----| LAN |
               +---------+     +---+----+               |     +-----+
                                   |                    |
                         Note ---&gt; |   +--------------+ |
                                   +---| Linux Router |-+
                                       +------+-------+
                                              |
                                              |
                                       +------+-------+
                                       | Linux Server |
                                       +--------------+
</pre></blockquote>
<BLOCKQUOTE>
... where you have three ethernet interface in your Linux Router
(a three legged firewall).
</BLOCKQUOTE>
<BLOCKQUOTE>
Note: this could be an ether crossover cable between the ISDN
router and the Linux box, or it could be a serial connection
between the Linux box and an external ISDN modem/TA (terminal
adapter) or the whole thing could be replaced with an internal
ISDN card that's plugged into the Linux Router.  (In that last
case, think of this line as being the Linux Router's internal
PCI or ISA bus).
</BLOCKQUOTE>
<BLOCKQUOTE>
The advantage here is that all traffic passes through the Linux
Router (where you can do packet filtering, IP redirection, logging).
However, if the Mail Server gets compromised then it can't be
easily used to attack the LAN machines.  (The mail server is not
trusted by the LAN machines, it is only allowed to received outbound
mail, and POP or other mail fetching connections from ther internal
hosts.
</BLOCKQUOTE>
<BLOCKQUOTE>
You can also sequester other services on the Linux Server.  You can
put a DNS server on it, etc.  Note that each service that you run on
the Linux Server the greater the risk that one of those services can
be used as a whole through which an attacker can compromise that
machine.  So, if you run mail, DNS, web and FTP all on that one
Linux server, then any exploit in any one of those can affect
the whole server, and thus compromise all of your DNS, mail, web,
and FTP services.
</BLOCKQUOTE>
<BLOCKQUOTE>
That's why we don't run those services on the router.  On my
router at home, there are NO services running (not even ssh).
I cannot access it remotely.  I must sit at the keyboard and work
from the console directly.  In fact there are IP packet filtering
rules that prevent that system from accepting <EM>any</EM> packets that
are addressed to it.  You can't even ping it!  (It will only
permit traffic that is supposed to go <EM>through</EM> it, not <EM>to</EM> it).
</BLOCKQUOTE>
<BLOCKQUOTE>
You could hang as many seperate Linux servers off of this eth2
interface (DMZ network segment) as you like.  However, you'll
either need to have separate real IP addresses (DRIPs) for each,
or you'll have to configure the Linux router to do TCP and UDP
redirection for each service to each server.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
I feel like a five year old asking why the sky is blue... I did find out one
thing this past weekend...IPchains works in here somewhere...that's about
all I know.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Actually your question is reasonably sophisticated, and your
criticism of the HOWTOs is well taken.
</BLOCKQUOTE>
<BLOCKQUOTE>
The biggest issue here is that you have two different problems
to solve.  First you need routing to work.  You need more IP
addresses or you need to install some form of TCP/UDP redirect
utility.  Keep in mind that the TCP/UDP redirect utilities might
be running as 'root' (if they are listening on "privileged" ports)
and, therefore might be a security risk <EM>on the router</EM>. There's a
way to use IPChains to redirect TCP traffic into a Unix domain socket
and I think there should be a utility to relay connections from
a Unix domain socket back to a TCP connection.  However, I haven't
looked for one recently and I don't remember if there was one the
last time a question like this came up.
</BLOCKQUOTE>
<BLOCKQUOTE>
(The advantage of this approach would be that it would allow the
redirection utilities to run as "nobody", or (better yet) as a
set of mutually non-trusting "nobody" UIDs --- which minimizes
the risk to the router).
</BLOCKQUOTE>
<BLOCKQUOTE>
That's why the router in a firewall is called a "bastion."  You
want it to be relatively simple with as few windows, doors as
possible and NO ornamentation.
</BLOCKQUOTE>
<BLOCKQUOTE>
I currently have a block of IP addresses, so I haven't had to
resort to incoming IP redirection.  (Otherwise I'd tell you the
name of the utility that I was using).
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
I've said more than enough...time for a beer.  Hope to hear from you soon.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
I agree.  I'm off to BALUG (<A HREF="http://www.balug.org"
	>http://www.balug.org</A>) where I'll fill up
on Tsing Tao and other chinese food.
</BLOCKQUOTE>

<!-- end 15 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/16"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 16 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Something comparable to Services in NT</H3>


<p><strong>From Michael Swanson 
</strong></p> 
<p align="right"><strong>Answered By  Mike Orr
<br></strong></p>
<P><STRONG>
I've been playing with Linux for years, and just recently decided that I
wanted to learn more about it.  At this point I feel as though I know
nothing.  I have compiled and installed a proxy server in my Mandrake 7.1
system.  But I have to log in as ROOT to run it.  And I must run it everytime
I reboot.  I would like to have this run at start everytime.  As  I
understand it, anything run at startup is root, and this program (squid) says
it changes user after initialization.  The documentation mentions how the
program will respond after being automatically started, but gives no mention
at all on how to achieve this.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
See if Mandrake uses the System V init scheme like <A HREF="http://www.redhat.com/">Red Hat</A> and <A HREF="http://www.debian.org/">Debian</A>
do.  You have one directory containing start/stop scripts, and other
directories containing symlinks to those scripts.  On Debian (which I'm
familiar with), the script directory is <TT>/etc/init.d</TT>, and the normal
symlink directory is <TT>/etc/rc2.d</TT> .  In that directory, put a link called
S##squid pointing to the script.  (Replace "##" with a 2-digit number
indicating which order to run it--lower numbers get started first.)
Mandrake is probably the same but the directories may be named
slightly differently.
</BLOCKQUOTE>
<BLOCKQUOTE>
Look for a README in the script directory, <TT>/usr/doc/sysvinit</TT>,
"man init", etc.  There's also a HOWTO "From Power Up to the Bash
Prompt"
(<A HREF="http://www.ssc.com/mirrors/LDP/HOWTO/From-PowerUp-To-Bash-Prompt-HOWTO.html"
	>http://www.ssc.com/mirrors/LDP/HOWTO/From-PowerUp-To-Bash-Prompt-HOWTO.html</A>)
that explains everything that happens when the computer boots up;
this is worth looking through even just to know what info is available
in it.
</BLOCKQUOTE>

<!-- end 16 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/17"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 17 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Editing fstab file for tape backup</H3>


<p><strong>From Michael Dodge
</strong></p> 
<p align="right"><strong>Answered By Mike Orr, Dan Wilder
<br></strong></p>
<P><STRONG>
Dear Answer Guy:
</STRONG></P>
<P><STRONG>
I have installed a tape drive onto a 586 intel.  The tape drive is an HP
SCSI drive.  I had someone that I know compile the Kernel to support SCSI,
but I wasn't able to mount the tape drive.  I think that it is because I
haven't proplerly edited the fstab file.
</STRONG></P>
<P><STRONG>
I reads:
</STRONG></P>
<P><STRONG><BLOCKQuote>
<TT>/mnt/N</TT>    tape
</BLOCKQuote></STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
I haven't actually used a tape drive, but I've never seen any that are
mountable in the way floppy disks are.  So you don't need an entry in
fstab.  (If you did, it would be
</BLOCKQUOTE>
<BLOCKQUOTE><pre>/dev/DEVICE    /mnt/N    FILESYSTEM_TYPE   OPTIONS   0  0
</pre></BLOCKQUOTE>
<BLOCKQUOTE>
)
You would especially want the "noauto" option to prevent it from
automatically mounting the tape at boot time.  (Which would cause an
unpleasant delay if there was no tape in the drive.)
</BLOCKQUOTE>
<BLOCKQUOTE>
But as I said, I doubt you can mount tapes at all anyway.
</BLOCKQUOTE>
<BLOCKQUOTE>
Normally, you must figure out which device it is, and then use that as
the "filename" argument to your backup program (e.g., tar).  E.g.,
</BLOCKQUOTE>
<BLOCKQUOTE><pre>tar tvf /dev/rmt8 /home/me
</pre></BLOCKQUOTE>
<BLOCKQUOTE>
You use the "mt" command to skip forward or backward
over one or more tarfiles on the tape, rewind the tape, retension it, etc.
</BLOCKQUOTE>
<BLOCKQUOTE>
There is a ftape HOWTO.  Although that's not the kind of tape drive you
have, section 7 ("Backing up and restoring data") may be of help.
</BLOCKQUOTE>

<p><em>... thanks, now to <strong>make</strong> the backup ...</em></p>

<P><STRONG>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Tag,
</STRONG></P>
<P><STRONG>
Thanks for the advice.  I have another question though.  I use the tar
command to read from the tape, but how do I write to the tape.  I would
greatly appreciate any advice on this matter.  Thanks.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Dan]
To write to tape:
</BLOCKQUOTE>

<blockquote><pre>  tar cf /dev/st0 files-to-tar
</pre></blockquote>
<BLOCKQUOTE>
To read from tape:
</BLOCKQUOTE>

<blockquote><pre>  tar xf /dev/st0 files-to-tar
</pre></blockquote>
<BLOCKQUOTE>
"c" means "create" archive, "x" means "extract".  In this case,
"<TT>/dev/st0</TT>" is your archive.
</BLOCKQUOTE>
<BLOCKQUOTE>
The answers to this and many other questions  about "tar" are found
if you type
</BLOCKQUOTE>

<blockquote><pre>  man tar
</pre></blockquote>

<p><em>... kudos gang! ...</em></p>

<P><STRONG>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
I would like to thank Dan for the final piece of advice on this matter.  You
have helped me solve a problem that I have been working on for some time.  I
know that this stuff is probably cake for you guys at tag, but for someone
not as experienced with LINUX (myself for example), these tips really save
the day.
</STRONG></P>
<P><STRONG>
Sincerely,
<br>Mike Dodge
</STRONG></P>

<!-- end 17 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/18"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 18 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Mail gets nowhere?</H3>


<p><strong>From anonymous 
</strong></p> 
<p align="right"><strong>Answered By Mike Orr
<br></strong></p>
<P><STRONG>
Do I ask you what does it mean when I get permanent fatal errs for
</STRONG></P>

<pre><strong> MAILER-DAEMON@aol.com &lt;mailto:MAILER-DAEMON@aol.com&gt;  transcript of session
 follows while talking to yd.mx.aol.com
 RCPT to:MAILER-DAEMON@aol.com &lt;mailto:MAILER-DAEMON@aol.com&gt;
 &lt;&lt;550MAILER-DAEMON@aol.com &lt;mailto:550MAILER-DAEMON@aol.com&gt; &gt;...User
 unknown
</strong></pre>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
"User unknown" really does mean user unknown.  aol.com has no user
"MAILER-DAEMON".
</BLOCKQUOTE>
<BLOCKQUOTE>
If something comes "from" MAILER-DAEMON, it's an error message, probably
reporting a previously-failed message.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
If I am asking the wrong person please direct me to the appropriate person.
What prompt to e-mail MAILER-DAEMON was an user unknown message from an aol
subscriber.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Then either the person's account expired or AOL is messed up.  You did
verify you typed the address correctly, no?  If you think AOL is at fault,
complain to <A HREF="mailto:postmaster@aol.com"
	>postmaster@aol.com</A>.  (Ditto for any other site.)  There's no
reason to write to MAILER-DAEMON, because there's nobody there to read it.
</BLOCKQUOTE>

<p><strong>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Thank you for your prompt reply.
</strong></p>

<!-- end 18 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/20"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 20 -->
<H3 align="left"><img src="../gx/dennis/bbubble.gif" 
	height="50" width="60" alt="(!) " border="0"
	>Loading SuSE Linux 6.4 via NFS</H3>


<p align="right"><strong>Answer By Chris Gianakopoulos 
<br></strong></p>
<BLOCKQUOTE>
Hi all,
</BLOCKQUOTE>
<BLOCKQUOTE>
This weekend, I decided to load <A HREF="http://www.suse.com/">SuSE</A> Linux 6.4 onto my son's IBM
PS/ValuePoint computer.
</BLOCKQUOTE>
<BLOCKQUOTE>
The network configuration is illustrated below.
</BLOCKQUOTE>

<blockquote><pre>      -----------------------                      -------------------------
      |                     |  10Base2 Ethernet    |                       |
      |      IBM            |----------------------| Linux Machine         |
      | PS/ValuePoint       |                      | Host: stargate        |
      | Host: strikeforce   |                      | with CDROM            |
      -----------------------                      -------------------------
       Target machine for                                    NFS server for
       Linux install                                          Linux install
</pre></blockquote>
<BLOCKQUOTE>
I have NFS running on my Linux machine, so I decided to install Linux
onto the IBM machine via NFS. I installed a minimal system so that I
could install user accounts in case problems occurred when I added more
packages to the system.
</BLOCKQUOTE>
<BLOCKQUOTE>
Once I had a minimal system up and running, I decided to use YAST (the
installation program) to added more packages into the system.
Everything worked fine until I was prompted to install CD2 of the
distribution.  I was told that I was loading the wrong CD!
</BLOCKQUOTE>
<BLOCKQUOTE>
I investigated the problem by executing "tcpdump" on my Linux machine so
that I could observe traffic over the ethernet.  To my surprise, I found
that the IBM machine was being denied access to CD2 (the second CD of
the SuSE distribution).
</BLOCKQUOTE>
<BLOCKQUOTE>
I then logged in as a user (not root) and then changed myself to root
with the 'su' command.  This allowed me to mount remote filesystems
using NFS (for example:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
I decided to continue observing ethernet traffic while I manually (for
example: mount <TT>-t</TT> nfs stargate:/cdrom myMountDirectory, where
myMountDirectory is a local directory on host strikeforce).  I now had a
controlled experiment, and I was able to determine that, out of the 6
CDs supplied with SuSE 6.4, CD number 2 could not be viewed, and this
was confirmed by the denied access packets observed via tcpdump on host
stargate.
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
It turned out that, on CD number two the directory "." only had root
priviledges.  On the other CDs, there existed read and execute
priviledge for group and world.
</BLOCKQUOTE>
<BLOCKQUOTE>
My solution was to copy the image of CD2 onto a top level directory of
my Linux machine (host stargate), make sure that group and world had
read and execute rights, and modify <TT>/etc/exports</TT> (the NFS export file
which allows other users to view your filesystem) to reference the
directory.
</BLOCKQUOTE>
<BLOCKQUOTE>
The lines in <TT>/etc/exports</TT> looks like this:
</BLOCKQUOTE>

<blockquote><pre>--------------------------------------- start of file ----------------
# used for all other CDs
/cdrom    strikeforce(ro)
# used for CD number 2
/test/cdrom  strikeforce(ro)
--------------------------------------- end of file ------------------
</pre></blockquote>
<BLOCKQUOTE>
I noticed one odd thing during this exercise (installing Linux via NFS).
</BLOCKQUOTE>
<BLOCKQUOTE>
Even though host strikeforce had unmounted the remote filesystem on
</BLOCKQUOTE>
<BLOCKQUOTE>
host stargate (I confirmed this via a telnet session onto host
strikeforce), I could not unmount my cdrom.  In order to unmount the
cdrom, I had to comment out the line, in <TT>/etc/exports</TT>, which refers to
<TT>/cdrom</TT>, restart the NFS server by typing "nfsserver restart", and then
typing "unmount <TT>/dev/cdrom</TT>".  I could then unmount the cdrom, change the
cdrom, mount the new cdrom, uncomment the abovementioned line in
<TT>/etc/exports</TT>,  and restart the NFS server.
</BLOCKQUOTE>
<BLOCKQUOTE>
Perhaps, you do not have to unmount cdroms before changing them, but, I
would think that you would have to in order to maintain the proper
notion of the contents of the mounted cdrom.
</BLOCKQUOTE>
<BLOCKQUOTE>
The bottom line: My copy of SuSE Linux 6.4 does not have group and world
access rights to CD number 2, thus, you have to install from an image
copied onto the hard disk of the NFS server.
</BLOCKQUOTE>
<BLOCKQUOTE>
Perhaps this message is too long winded (I tend to ramble) for a 2 cent
tip.  I'll let all of you decide if this message is worth posting.  All
I know is that if I did not have strong networking and protocol
experience (my NFS knowledge is questionable), I wouldn't have known how
to use tcpdump, and I wouldn't have solved the problem in the speedy 5
hours that it took me.
</BLOCKQUOTE>
<BLOCKQUOTE>
Keep up the fantastic work, and thanks for all of your hard work for
this fine magazine!
</BLOCKQUOTE>
<BLOCKQUOTE>
Chris G.
</BLOCKQUOTE>

<!-- end 20 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/21"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 21 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>RE: classified disk</H3>


<p><strong>From Anonymous 
</strong></p> 
<p align="right"><strong>Answered By Ben Okopnik, Dan Wilder
<br></strong></p>
<P><STRONG>
Hey there gang!  I was in the Air Force for almost 21 years and worked in
the intelligence career field.  Depending on the level of classification the
overwrite method is not always allowable.  Shane Welton needs to contact his
security manager for clarification.  I took several computer security
courses taought by the NSA (yeah, I know the None Such Agency) and they
would not allow overwriting because they were able to recover all the data.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Heh. When I was in the Military Intelligence (yep, it's a non-sequitur
like "giant shrimp"), we dealt with NoneSuch; their "set in stone because
we say so" policies provoked a lot of comment among my fellow soldiers.
</BLOCKQUOTE>
<BLOCKQUOTE>
The ability to recover data through a simple format is the reason for the
7X overwrite method with random garbage. As long as 15 years ago, I
remember there being a guy in California who had a SQUID (Super-Conducting
Quantum Interference Detector) that could pull up a relatively high
percentage of data from a hard drive that had been through six low-level
formats (of course, he charged a few pennies for the privilege - $60k was
the figure I heard.) Those are typically just overwrites with all zeroes,
and he simply had to dig for a faint-but-present remainder of the original
ones and zeroes. He would try, but did not promise anything, with a
<EM>single</EM> data overwrite (I believe he was relying on the blank spots in the
current data.) After seven overwrites with random bits, there's <EM>nothing</EM>
of the original data left to be read - there's absolutely no way to
distinguish a '1' written seven overwrites ago from a '1' two overwrites
ago.
</BLOCKQUOTE>

<blockquote>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Dan]
If that's true, why not just overwrite seven times with all "0" or all
"1", on alternating passes?  Or run "badblocks <TT>-w</TT>" which writes
all 0xaa, 0x55, 0xff, then 0x00, several times?  Seems like it'd
be a lot faster than waiting for entropy on the <TT>/dev/*random.</TT>  And,
it guarantees that every bit gets flipped multiple times.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
&lt;Shrug&gt; I always thought it would be sufficient, but the government spec
requires randomness. Given that "<TT>/dev/urandom</TT>" is non-blocking, I can't
see it as being much slower than any of the above, and I believe that a
pseudo-random source still qualifies - but given that my familiarity with
the pertinent regulations is from many years back, Your Mileage May Vary.
</BLOCKQUOTE>
</blockquote>

<BLOCKQUOTE>
If a company's the security policy disallows this kind of a solution, fine;
the technology is still a valid one.
</BLOCKQUOTE>

<p><em>... to which our spooky querent replies ...</em></p>

<p><strong>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Yeah, I know what you mean.  I dealt with SCI material, we couldn't even
think of declassifying anything.  We finally got permission for me only
since in a prior life i was a machinist (my dad owned a machine shop) to be
able to take a hard drive apart, chuck up the drive platter and remove the
top .030 (thirty thousandths) on each side AND then we had to smash the
platter.  The easiest thing was to just box up any drives and have the
courier take them up to Fort (Fumble) George G. Meade for them to destroy.
</strong></p>
<p><strong>
Hey, thanks for the trip down memory lane.  Linux lives!!!
</strong></p>

<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/22"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 22 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>multiple subnets, one DNS</H3>


<p><strong>From Damir Horvat 
</strong></p> 
<p align="right"><strong>Answered By Dan Wilder
<br></strong></p>
<P><STRONG>
Hello!
</STRONG></P>
<P><STRONG>
I have one linux server and 2 subnets on private network.
</STRONG></P>
<P><STRONG>
I would like to have this:
If the request (nslookup) come from subnet #1, DNS server would
show only the subnet #1 net table. And the other way around. The
two subnets should not "see" eachother.
</STRONG></P>
<P><STRONG>
any ideas?
</STRONG></P>
<P><STRONG>
kind regards,
<br>damir horvat
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Dan]
A so-called "split DNS" arrangement will do that.
</BLOCKQUOTE>
<BLOCKQUOTE>
Each subnet runs its own DNS server, which considers itself
authoritative for your domain.  Each server forwards other
requests to one or more third servers, possibly those of your
ISP, which handle all other requests.
</BLOCKQUOTE>
<BLOCKQUOTE>
The server on subnet #1 has entries in its zone table
only for hosts on subnet #1, and for any outside
hosts belonging to your domain that need to be reachable
from subnet #1.  Likewise, subnet #2.
</BLOCKQUOTE>
<BLOCKQUOTE>
Assuming your local subnets are 192.168.1.0 and .2.0
and that your ISPs nameservers are 10.0.0.1 and 10.0.0.2,
with BIND-8.2, your boot file (often <TT>/etc/named.conf</TT>),
has stanzas containing:
</BLOCKQUOTE>

<blockquote><pre>options {
        directory "/var/named";
        allow-query { 192.168.1.0/24; 127.0.0.1; };
        notify no;
        allow-transfer { none; };
        datasize 20M;
        forward only;
        forwarders {
        10.0.0.1;
        10.0.0.2;
        };
};

zone "your.domain." IN {
        type master;
        file "your.domain.zone";
};
</pre></blockquote>
<BLOCKQUOTE>
along with any other options and stanzas you need.
</BLOCKQUOTE>
<BLOCKQUOTE>
"<TT>/var/named/your.domain.zone</TT>" on each subnet lists <EM>all</EM> hosts
belonging to your domain that are visible from that subnet.
This includes any hosts off the subnet, as this setup will not
query the third-party DNS for hosts it doesn't know about in
your domain.
</BLOCKQUOTE>
<BLOCKQUOTE>
Substitute the proper IPs.  Subnet #1 lists 192.168.1.0 network
in its allow-query field; subnet #2, 192.168.2.0.  Hosts
on each subnet point to their own nameserver.  If the subnet is
large enough to warrant the effort, set up two nameservers on each
subnet, the second a slave to or a mirror of the first, so the
subnet won't be left without name service if you have to take
the nameserver down.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you have only one Linux server to implement this with,
run two copies of BIND, each listening only on the IP connected
to its respective subnet.  Use the "listen-on" directive for that;
for more information, see "man named.conf.5".
</BLOCKQUOTE>

<p><em>... Damir replies ...</em></p>

<p><strong>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Hello!
</strong></p>
<p><strong>
Thank you. Yesterday I've done some reading myself, and
successfuly setup one box with two NICs.
</strong></p>
<p><strong>
Kind Regards.
</strong></p>

<!-- end 22 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/23"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 23 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>responding to DESQview/386 Die Hards into the Next Millennia</H3>


<p><strong>From Jim Barnett 
</strong></p> 
<p align="right"><strong>Answered By Heather Stern
<br></strong></p>

<P><STRONG>
Jim,
</STRONG></P>
<P><STRONG>
I'm beginning the serious stage of a large AI project.  For several reasons I (naturally) looked to Linux.  However, what I really need is a robust but SIMPLE multitasking OS that will juggle my ANSI C code and stay out of the way.  So far it looks like it may take the rest of my life to learn Linux, all the while I make no progress on my real project.
</STRONG></P>
<P><STRONG>
Then I remembered DESQview.
</STRONG></P>
<P><STRONG>
In a previous comment, 
</STRONG></P>

<blockquote><font color="#00007f"><em>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
I presume that Quarterdeck's aquisition by Symantec has spelled complete obscurity and orphanage to DV. They probably didn't even have the decency to release the sources to a "free world."
</STRONG></P>
<P><STRONG>
You might be far better off with a combination of Linux and its <A HREF="http://www.dosemu.org/">DOSEMU</A> or VMWare. It's a pity that you'd lose DESQview's UI (I'd really like to see a Linux console manager that would match the features and feel of the DESQview popup menu system --- but add configurability like DV/X). However you gain support for modern hardware (including CD's, CD-R, CD-RW, DVD and DVD-RAM) and procotols (running DV under a TCP/IP stack used to be like waltzing with a bear in a china shop!). You also lose all problems with memory management (forget about conventional vs. EMS and "largest program size").
</STRONG></P>
<P><STRONG>
All that and you get the sources, too. (A feature that would be even more exciting if I were a real programmer, and not just the occasional hack).
</STRONG></P>
</em></font></blockquote>


<p><strong>
you said it would probably not be possible to get Dv drivers for modern devices like CDROMs.  Just doing some preliminary surfing today, it looks like you may be right.  However, if I can find a copy of the actual program (there are tons of add-ons &amp; utilities online), I'd like to give DESKview a shot.
</STRONG></P>
<P><STRONG>
Assuming I stick with Linux, do you have any suggestions for shortening my learning curve?  Is there a small, non-network, non-graphics release of Linux you would recommend?
</STRONG></P>
<P><STRONG>
Trying not to fall down the learning curve,
<br>Jim
</STRONG></P>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Sorry to run a mite late, but you can easily consider Tom's Root Boot (it
runs off a floppy, needs no graphics whatsoever, and lives in RAMdisks) or
<A HREF="http://www.debian.org/">Debian</A> base (the install is a bit annoying, tho) - I think <A HREF="http://www.libranet.com/">LibraNet</A> can give
you a somewhat easier Debian setup without attempting to use graphics.
</BLOCKQUOTE>
<BLOCKQUOTE>
TomsRtbt is a libc5 based Linux system.  Tom Oehser says he lives in it
day to day, and I assume he is able to use a compiler in it, since he creates
the code for new small utilities on his disk. It <em>does</em> have networking.
</BLOCKQUOTE>
<BLOCKQUOTE>
The advantage of Debian would be the ability to use their apt-get package
manager to fetch new applications or languages if you need them, eg. Lisp,
scheme, etc.  The full-screen textmode utility 'console-apt' is also worth
the time to download, since you can use that to read descriptions of packages
that you're considering.
</BLOCKQUOTE>

<!-- end 23 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/24"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 24 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>DOS partition from Linux</H3>


<p><strong>From Rick Rodgers
</strong></p> 
<p align="right"><strong>Answered By Mike Orr
<br></strong></p>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Does anyone know how to create a bootable DOS partition on a hardisk
using Linux? It seems that fdisk doesn't do it right and FreeDOS can
not boot.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
First, the DOS partition has to be a primary partition (one of the first four
partitions).  Exactly one partition should be marked 'active' using fdisk.
This is the partition that will boot.  If the DOS partition is active, you
will boot only into DOS.  If your Linux partition is active AND you set up
LILO, or if you set up LILO on the master boot record, you can choose Linux
or DOS from the LILO menu.  See the LILO documentation in <TT>/usr/doc/lilo/</TT> or
thereabouts, and the LILO HOWTO and the other HOWTOs at 
<a href="http://www.linuxdoc.org/">www.linuxdoc.org</a>.
</BLOCKQUOTE>
<BLOCKQUOTE>
Actually, there is a DOS program called loadlin that will allow you to first
boot DOS, then go into Linux, but usually people use LILO instead.
</BLOCKQUOTE>
<BLOCKQUOTE>
I don't know about FreeDOS, but in MS-DOS or you have to copy the system files
in order to make a bootable disk.  You can do that when you format the disk
by using the <TT>/s</TT> option to the DOS FORMAT command, or by using the DOS SYS
command to copy the system files from a disk that already has then (e.g., a
bootable floppy: &quot;<tt>SYS A: C:</tt>&quot
<IMG SRC="../gx/dennis/smily.gif" ALT=";)" 
		height="24" width="20" align="middle">.  The required files are <tt>IO.SYS</tt>, <tt>MSDOS.SYS</tt> and
<TT>COMMAND.COM</TT>.  IO.SYS and MSDOS.SYS are hidden files in the root of your C:directory (or A:\ on bootable floppies).  COMMAND.COM is the DOS shell that
gives you the C:\&gt; prompt.  Without these three files, the DOS partition is
not bootable.
</BLOCKQUOTE>
<BLOCKQUOTE>
In Windows95, these same three files and commands are used, and bring up Win95
in MS-DOS mode (without the GUI).  For the GUI, you'll have to install Windows.
If you have the Windows installation files on a CD, you can copy them to the
DOS partition from Linux, boot DOS somehow, and then run the Windows SETUP.EXE
program.  You probably won't be able to use the CD-ROM from DOS without
Windows; that's why you'd need to copy the setup files to the hard drive first.
</BLOCKQUOTE>
<BLOCKQUOTE>
All bets are off with Windows 2000.
</BLOCKQUOTE>
<BLOCKQUOTE>
If this doesn't answer your question, tell us more specifically what the
problem is (what error messages you're getting, what partitions you have),
and that may help us give a better answer.
</BLOCKQUOTE>

<!-- end 24 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/25"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 25 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>e-mails not getting through</H3>


<p><strong>From DJ Bellerose 
</strong></p> 
<p align="right"><strong>Answered By  Mike Orr
<br></strong></p>

<p><strong>
Dear James,
</strong></p>
<p><strong>
Could you please give me some info as to why my e-mails are not being
recieved by the intended recipient. After sending them I do not get them
back in my own mail saying that they were undeliverable. I have on
occasion gotten some back but the ones I am sending to my boyfriend are
not getting to him although it says they are being sent. I have sent a
few and then have gone to his place so we could see what was happening
but nothing shows in his mailbox. All my other e-mails do make it to
whomever I send them to. Also the e-mails I have sent to my boyfriend
before have made it but for some reason in the past week and a half none
of them were sent to his mailbox. I know I have the right addy as he has
been here with me when we sent some. I hope you can help with this. If
you need his addy or mine I will send them to you upon request. When
they do come back to me it is from Mailer Daemon.
</strong></p>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
This is the biggest clue right here.  It should be an error message
saying (perhaps cryptically) why the mail is being returned. Also look
at the headers of the original message (which the error message will
hopefully include).  Every mail system the message passes through will
add a Received: line before the other Received: lines.  Did the message
go all the way to his ISP?  Can you write to his ISP's tech support
address or to <A HREF="mailto:postmaster@his-isp.com"
	>postmaster@his-isp.com</A>?  You need to determine whether it's
only his address that's failing or all addresses at his ISP.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you are on a Linux system (which you are, right, since you wrote to
<en>Linux Gazette</em>?), look in your mail log (in <TT>/var/log/mail</TT> or
<TT>/var/log/exim</TT>, etc) to verify the message was successfully sent off
your computer and where it was sent to.
</BLOCKQUOTE>

<!-- end 25 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/26"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 26 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Exiting X and Rebooting with One Keystroke</H3>


<p><strong>From stefan 
</strong></p> 
<p align="right"><strong>Answered By Ben Okopnik, Jim Dennis
<br></strong></p>
<!-- ::
Exiting X and Rebooting with One Keystroke
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
i've following problem:
i've set up a couple linux-pc's with X, but w/o a windowmanager, on which i
run an icaclient (citrix, u know!).
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
I'm not familiar with Citrix/ICA client, but a quick look at their website
tells me that the solution that I had in mind would work, as long as you
can create either desktop or toolbar icons.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
now for shutting down the computer the user first has to exit
X (by ctrl+alt+backspace) an can then press ctrl+alt+del.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Try creating an icon that runs "super halt". A number of people out there
don't like "super", but as far as I know, its security problems
(particularly the "buffer overflow" bug) have been fixed, and it is very
handy for something like this. "super" allows a user to run a specific
command as if they were root, which "halt" requires. When I did this
myself, initially, I was concerned about some possibility of creating a
problem by not exiting X directly, but then realized that it was simply an
old MS-Windows mental block: after all, "Ctrl-Alt-BkSp" kills X; what can
shutting down do that's any worse?
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
If you always want to reboot after exiting X then just start X
with a script like:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
#!/bin/sh
<BR>startx
<BR>exec /sbin/shutdown -r now
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
... so any exit from X will then execute the next line of your shell
script.  I'm sure there are more elegant ways.  You might even want
to patch the X sources to use [Ctrl]+[Alt]+[Del] as the "Zap"
key instead of [Ctrl]+[Alt]+[Backspace].  I don't know of an option
to configure that.  However, I haven't even looked at XFree86 version
4.x yet!
</BLOCKQUOTE>

<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
but this is a little to complicated (very dumb users 
<IMG SRC="../gx/dennis/smily.gif" ALT="; )" 
		height="24" width="20" align="middle">).
i'm looking for a possibility to assign a key-combination
(eg. ctrl+alt+f12) for shutting down X and the pc in one step.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
I don't know how this would be any different from simply hitting
"Ctrl-Alt-Del", unless "ica-client" intercepts that. If it doesn't, simply
make sure that your "<TT>/etc/inittab</TT>" contains lines that look like this:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
# What to do when CTRL-ALT-DEL is pressed.
<BR>ca:12345:ctrlaltdel:/usr/bin/super /sbin/halt
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
Hint: if you make "halt" an alias for "super halt", everyone who is
authorized via "<TT>/etc/super.tab</TT>" will be able to shut down the machine
simply by typing "halt" in an xterm.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
thanks,
stefan
</STRONG></P>
<P><STRONG>
ps: sorry for my bad english.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
I find that most folks who apologize for their English - and yours is fine,
by the way - tend to be far more understandable (since they make an effort
to be understood) than native english speakers who write in with things
like "dOOdz U got 2 hepl mE My proBlM nVIDIa caRD WhaT I dO noW?????????"
It's not even the kOOl or 3l33t slang, but simply the fact that they don't
take the trouble to relay any useful information... oops, one of my
favorite rants. I'll stop now. 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>

<!-- end 26 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/27"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 27 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Multiplexing ppp connections</H3>


<p><strong>From David Hunt  
</strong></p> 
<p align="right"><strong>Answered By Ben Okopnik 
<br></strong></p>
<P><STRONG>
Dear Answer Gang
</STRONG></P>
<P><STRONG>
I have a RedHat 6.1 box that we use for dial out internet
access using ppp at 19200 baud. We would like to increase
our bandwidth, but according to our ISP the only way we can
do this, due to their system, is to have two dial out
connections and multiplex them together or have one for
outgoing and the other for incoming.
</STRONG></P>
<P><STRONG>
Is this possible to do in linux?
</STRONG></P>
<P><STRONG>
Where can I find documentation about how to do this?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Oh-oh. Time for me to put on The Curmudgeon Hat. The "baud vs. bps"
confusion is one of my Rant Topics (don't worry; it's a general rather
than a directed rant.)
</BLOCKQUOTE>
<BLOCKQUOTE>
If you are indeed connecting at 19200 baud (and that is far from certain),
it means absolutely nothing - unless you're doing something like packet
radio stuff, in which case you'd be dealing with the raw numbers. "baud"
refers to the actual switching frequency of the modem, which, given the
communication protocols in use today, bears less and less relation to the
bps (bytes per second) transmitted or received - the only thing that we
really care about, as it is the "real" data transfer rate (barring some
esoteric considerations.)
</BLOCKQUOTE>
<BLOCKQUOTE>
(By the way, doing a search for "bps baud confused" on Google produces
over 7,000 hits. Don't feel like you're alone. 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE>
Let's see... by using Deep Magic, I can see that you're coming out of (or
at least e-mailing from) the Great State of Texas. Chances are pretty high
that the average ISP down thataway will let you connect at speeds up to
56k (nominally, that is; 53k is the actual upper limit due to phone system
voltage restrictions, unless they've changed it and forgot to notify me 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
If your ISP is restricting you to something below that, changing your ISP
is probably the best bet.
</BLOCKQUOTE>
<BLOCKQUOTE>
Now, all that out of the way - if you actually do want to multiplex two
modems, and your ISP supports the scheme - and according to what you've
written, they do, then, yes, Linux does indeed support modem multiplexing.
Take a look at the "eql" package in the distribution, as well as
</BLOCKQUOTE>
<BLOCKQUOTE>
"<TT>/usr/src/kernel-source-&lt;version&gt;/Documentation/networking/eql.txt</TT>"
</BLOCKQUOTE>
<BLOCKQUOTE>
in the source tree. (This assumes that you have the kernel source
installed.) Note that modem multiplexing of this sort does not decrease
your latency, which is an entirely different issue and has quite a lot to
do with perceived "speed" of communications.
</BLOCKQUOTE>
<BLOCKQUOTE><dl><dt>
Also, check out Robert Novak's "EQL HOWTO" -
<dd><A HREF="http://home.indyramp.com/masq/eql/eql.html"
	>http://home.indyramp.com/masq/eql/eql.html</A>
</dl></BLOCKQUOTE>
<BLOCKQUOTE>
Pretty good stuff for load balancing info, which sounds like what you're
trying to do - unless switching ISPs is a better answer.
</BLOCKQUOTE>

<p><em>... David responds ...</em></p>

<P><STRONG>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Thanks very much for your quick reply. This was exactly what I
was after. After hearing about EQL from you I have since found a
lot of info about it.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
You are certainly welcome; I'm very glad that the information was of use
to you.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Just to let you know why I'm after multiplexing 2 19200bps lines.
Firstly we are not in the States but in the middle of Asia.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Ah. 'sil.org' is in Texas, and I gather you're posting via their web/mail
interface. If your ISP is AsiaOnLine.net, you have my profound sympathy; I
have several acquaintances who are vehement about calling it AphasiaOnLine
(it "forgets" a high percentage of their mail) and are unanimous in cursing
it to high heaven.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Also
there is only one ISP in our area and for some reason or another
they say the max connection speed is 19200bps. One last
complication is we don't have a land line but only a microwave
connection to the nearest town.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
Well - sounds like load-balancing experimentation is not a hobby for you
but more of a necessity. I must say that I find it interesting that your
ISP supports EQL; I assume you realize that it has to be supported at both
ends. Since they are the ones who suggested it, they most likely do. I wish
you the best of luck.
</BLOCKQUOTE>

<!-- end 27 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/28"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 28 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>[Tony@thermo-king.com: new to Linux]</H3>


<p><strong>From Tony Ormsby 
</strong></p> 
<p align="right"><strong>Answered By Heather Stern
<br></strong></p>
<P><STRONG>
Hi;
</STRONG></P>
<P><STRONG>
I am currently a Windows 98ME user. I have recently started studying Linux
OS at Tech.
I am looking at installing Linux onto an old PC at home to start with before
looking at possibly
replacing my current OS later on down the track.
My old PC is a i386 with 8Mb of RAM and about 250Mb of HDD space.
I am about to ask some silly questions which I hope you may be able to help
me with.
</STRONG></P>
<P><STRONG>
Firstly, for such an old system, is there a Linux OS available for it? (with
or without a GUI)
Secondly, I have an old Linux OS (similar to the old MS-DOS 3.3 OS) which I
am playing with
and am looking at writing a script which will help me to do the following:
</STRONG></P>

<strong><ul>
<li> advise user of terminal
<li> advise user of others logged on
<li> make an ext2 file system on a floppy
<li> mount a floppy at a location /mnt/floppy
<li> unmount the floppy from /mnt/floppy
<li> display date
<li> create back up of users home directory to floppy
<li> display current directory
<li> exit menu script.
</ul></strong>
<P><STRONG>
Actually, I'm also going through some old books but they don't five examples
of how these scripts
should be approached. I'm hoping that if I can get an example, it will give
me more of an idea on how
Linux directory system operates.
It does appears that the floppy drive once mounted becomes part of the root
directory rather than remain
a seperate drive as in MS OS .
</STRONG></P>
<P><STRONG>
I would like to know more about Linux. I believe that in the next few years,
it will grow more competitive
and become a real alternative to Windows.
I also have a copy of <A HREF="http://www.redhat.com/">Red Hat</A> 6.2 which I am looking at putting onto a spare
i486 with 16MB RAM
which I have in pieces.
I have been told however, that Mandrake 7.0 is a much easier alternative
when starting out in Linux.
I guess I'm looking for some help in determining which direction I'm going.
</STRONG></P>
<P><STRONG>
kind regards;
Tony Ormsby
</STRONG></P>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
<A HREF="http://www.debian.org/">Debian</A> can run easily in the limitation you described - its "base" only
uses about 60 Mb or so.  (might be less, I haven't really counted it).
Graphical setups cost a lot more space - you should avoid using weighty
applications like Emacs, the big environments like Gnome, K or the Office
Suites, because they will be very slow for you, if you even get them to fit.
</BLOCKQUOTE>
<BLOCKQUOTE>
You probably want to investigate some of the specialty distributions listed
at Linux Weekly News (<a href="http://www.lwn.net/">www.lwn.net</a>).
</BLOCKQUOTE>
<BLOCKQUOTE>
Whichever distro you use for the 386, make sure that you are fairly minimal
about what you allow it to install.  You might even consider calling the
staff for the companies (in the case of corporate distributions like <A HREF="http://linux.corel.com/">Corel</A>
or Redhat) and asking them what is the minimum space they can be installed
in, and the minimum RAM that configuration will run with.
</BLOCKQUOTE>
<BLOCKQUOTE>
The 486 you describe has a better chance of using something fairly ordinary,
though you'll probably still want to be picky about how to use your disk
space.  Again, 16 Mb is okay but a bit low, so the weightier apps won't be
all that happy in it.
</BLOCKQUOTE>
<BLOCKQUOTE>
Mandrake is a nice distro (when it works at all in your system) but since
it is optimized for 586 or higher-powered processors only, it won't work on
either of the two systems you mentioned.  Sorry.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you have to, you can always use a much earlier distribution (though it
will have the security bugs that plagued those releases) or you can use a
"mini" distribution - usually optimized for running from floppies, but many
of them can be carefully set up to run from hard disks as well.
</BLOCKQUOTE>
<BLOCKQUOTE>
Tom's root boot is a nice tiny distro (floppy based) to use to learn more
about things under Linux without getting too complex.  It runs from RAM so
you don't have to ruin any harddisks until you decide what you want to do.
Of course, its documentation is very minimal, because too much wouldn't fit
on a floppy.  You can find his work at <A HREF="http://www.toms.net/rb"
	>http://www.toms.net/rb</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
Best of Luck
</BLOCKQUOTE>
<!-- end 28 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/29"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 29 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Trident Providia 9685</H3>


<p><strong>From J C White 
</strong></p> 
<p align="right"><strong>Answered By Heather Stern
<br></strong></p>
<P><STRONG>
Hi There,
</STRONG></P>
<P><STRONG>
I was told you might be able to direct me to where I can
find the drivers (Win98SE) for the Trident PV 9685...I have
this PCI vid
card with no drivers...I also have the AGP version...again
no drivers
</STRONG></P>
<P><STRONG>
any assistance will be greatly appreciated
</STRONG></P>
<P><STRONG>
J C White
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
The card that you have has actually come up before in The Answer Guy column,
in issue 31.  (<A HREF="../issue31/tag_trident.html">www.linuxgazette.com/issue31/tag_trident.html</A>) It's been
supported in <A HREF="http://www.redhat.com/">Red Hat</A> (at least on a hardware list) since at least version
4.2.  So, the card's been around awhile, and we can at least assure you that
it works for Linux...
</BLOCKQUOTE>
<BLOCKQUOTE>
Unfortunately that's not what you've asked.  Sadly, we have no particularly
great idea where to find just about anything specific for Windows (any
revision)... that's not the OS we write about.
</BLOCKQUOTE>
<BLOCKQUOTE>
However, I do find an occasional gem for Windows (when I have to go looking)
at either winfiles.com, or TUCOWS.  That's short for: The Ultimate Collection
Of Windows Software.  They've of course spread out into more OS flavors and
hardware such as Palm pilots andd our fave, Linux.
</BLOCKQUOTE>
<BLOCKQUOTE>
Under Linux, the card you mention works under Xfree86 version 3.3.6 as well
as the new, restructured to be nice and fast, 4.0.  I even saw a mention of
a 64-bit version of it being okay (AGP wasm't mentioned over in the list at
www.xfree86.org, but I'm guessing that's what you really have).  Metro-X has
a commercial server for it too.
</BLOCKQUOTE>
<BLOCKQUOTE>
Though it's mentioned in scattered references as "unsupported" I have to add
that in Linux terms, that means Trident has been worthless in helping us use
their stuff, so it doesn't mean exactly that it doesn't work, it means that
we probably are not making the card behave at its very best.  We might be -
we might even do a better job than your missing Windows drivers - but we
really can't tell.  Not a lot of developers will throw extra money at more
pieces of unusable hardware if they should fry one while trying to code things
to make it work.
</BLOCKQUOTE>
<BLOCKQUOTE>
To be utterly fair to Trident, there aren't that many companies that are
"supported" in the sense of really giving us data that we can use for coding
up new X server support.  It's kind of strange that vendors won't help, even
with some raw information about expected input and output signals, since they
claim they want to sell hardware.  Even if it would somehow reveal some great
secret about their hardware (I find this difficult to believe), you don't see
very many companies helping us out even with their <EM>older</EM> cards, saving juicy
protectionism for the Hottest New Toy.  There are a few...  <A HREF="http://www.suse.com/">SuSE</A> and Precision
Insight have given a lot of extra help to the X Free86 project by helping
convince and aid vendors in going our route... as for the others, too bad for
them.  We tend to buy what we can use, and we're really good at friendly word
of mouth for helpful vendors.  So if things don't work out for you (though I
hope they do), allow me to recommend 3D Labs, ATI (we handle so many ATI cards
I stopped counting them.  Get a Rage 128 and save yourself from wondering
which server entry to pick), Matrox (Milleniums are excellent), 3Dfx, or any
of the other vendors who've done XFCom servers.  They can use the
encouragement 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE>
[Note]
3dfx appears to be effectively out of business since Nvidia bought them,
which might not matter to you, but it seemed wise to mention, as you might
not want to buy cards that have been orphaned that way.
</BLOCKQUOTE>

<p><em>... John went on to find the REAL answer he needed ...</em></p>

<P><STRONG><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
found ALL drivers and will forward to list...even found
jumper settings to use as SVGA, S-Vid, or NtSC output in
Win95 or 95; again , will send....gimme addy where to upload
these gems to as well as a Trident total support page with
drivers for everything they ma(de)ke!!
</STRONG></P>
<P><STRONG>
Thanks Again
</STRONG></P>
<P><STRONG>
John
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
You can reply to <A HREF="mailto:tag@ssc.com"
	>tag@ssc.com</A> and I'll publish ... mainly because the
jumper details might be useful to Linux'ers too.   If you create
your own web page where you're keeping track of these, you can tell
us the link.  And, that'd make it pretty easy for you to submit the
tip to Windows related sites, as well.
</BLOCKQUOTE>
<BLOCKQUOTE>
I don't know if Trident maintains such a "total support page" - do
they?  But as time marches on, lots of companies stop maintaining
details for older cards.
</BLOCKQUOTE>
<BLOCKQUOTE>
[Note] John didn't forward the drivers, but if anybody needs to get ahold of
him for these, send a note to The Answer Gang (<A HREF="mailto:tag@ssc.com"
	>tag@ssc.com</A>) and I'll
forward it along to him.
</BLOCKQUOTE>

<!-- end 29 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/30"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 30 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>The New network On The BLock</H3>


<p><strong>From Robert Smith
</strong></p> 
<p align="right"><strong>Answered By Dan Wilder
<br></strong></p>
<P><STRONG>
Next year i'm hoping to set up a home network that will have internet connection through a firwall, then a DSL connection. With such a set up, is there any need to set up DNS services if we are to have a static IP address, or can we use the ISP's?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Dan]
You can use the ISP's DNS services.  Put internal hostnames in
the <TT>/etc/hosts</TT> files, or equivalent for other OSs, and point
all hosts to the ISPs nameservers for resolution of external
hosts.  On Linux, <TT>/etc/host.conf</TT> should read
</BLOCKQUOTE>

<blockquote><pre>order hosts,bind
multi on
</pre></blockquote>
<BLOCKQUOTE>
and <TT>/etc/resolv.conf</TT> should have:
</BLOCKQUOTE>

<blockquote><pre>search your.internal.domain
nameserver IP.for.your.ISPs.nameserver
nameserver IP.for.another.of.your.ISPs.nameserver
</pre></blockquote>
<BLOCKQUOTE>
"your.internal.domain" is whatever you call your network.  No need
for it to be a registered domain.  "IP.for.your.ISPs.nameserver"
is the IP number for your ISP's nameserver.
</BLOCKQUOTE>
<BLOCKQUOTE>
It becomes worthwhile to set up an internal nameserver when
the internal network grows large enough to make propogating
the <TT>/etc/hosts</TT> files (and equivalent) a nuisance.  There are
a couple of other reasons to set up internal nameservers ...
consigning external banner ad servers to oblivion, for example ...
but AFAIK, these are all amenities you can easily live without.
</BLOCKQUOTE>

<!-- end 30 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/31"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 31 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Mail Daily sylog message to remote e-mail</H3>


<p><strong>From Ling Ling  
</strong></p> 
<p align="right"><strong>Answered By Ben Okopnik 
<br></strong></p>
<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
I am sorry about the interruption. But I have no way to find a help except
to try my luck everywhere I can (at least that's what I perceived). I have a
RH 6.2 server running as FTP server. Upon customer response, I will have to
send certain syslog message to their LAN account, like say <em>admin@system.com</em>.
I have read all the manual and even posted up a question on the linux
mailing list, but I have still no receiving the answer I want ... I now how
to redirect to a file or a local user, but this users is not a local system
users (but stay in the same domain), do you mind to guide me on this ??
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
I'm not exactly sure of what you're asking, but here is my best guess:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
1) You have a user connecting via FTP.
2) On a response (What kind of response? What kind is <EM>possible</EM> via
FTP?), you want to send e-mail to that user.
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
Assuming that the response - however it's done - contains the user's name
and host, the answer is an easy one:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
tail /var/log/messages | mail -s "Your syslog info" <A HREF="mailto:Username@Host"
	>Username@Host</A>
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
The above, for example, would send the last 10 lines of
"<TT>/var/log/messages</TT>" to the specified user. You can, of course, specify
whatever information you want to send, and use whatever subject you want
(the '<TT>-s</TT>' switch on the above command line) - this is purely an example,
since you didn't say what it is that you wanted from the syslog. Note that
you may have a decision to make with regard to file permissions, as most
log files are only readable by 'root'.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Thank you very much.
</STRONG></P>
<P><STRONG>
Regards,
Ling Ling
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
You're welcome. If I'm off in my understanding of what you're trying to
do, please feel free to write back.
</BLOCKQUOTE>

<!-- end 31 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/33"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 33 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Scripted Serial Sessions</H3>


<p><strong>From nir 
</strong></p> 
<p align="right"><strong>Answered By Jim Dennis
<br></strong></p>
<!-- ::
Scripted Serial Sessions
~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
Hellow
</STRONG></P>
<P><STRONG>
I am qa engineer
</STRONG></P>
<P><STRONG>
I want to write send and recieve file script for minicom, so i will
be able to check a lot off AT commands.  do you know about any tools
that could help me, or examples for those scripts.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
Read the man pages:
</BLOCKQUOTE>

<blockquote><pre>RUNSCRIPT(1)                                         RUNSCRIPT(1)

NAME
       runscript - script interpreter for minicom

SYNOPSIS
       runscript scriptname [homedir]

DESCRIPTION
       runscript  is  a  simple  script  interpreter  that can be
       called from within the minicom communications  program  to
       automate  tasks  like  logging in to a unix system or your
       favorite bbs.
</pre></blockquote>
<BLOCKQUOTE>
runscript is a utility that comes with minicom.
</BLOCKQUOTE>
<BLOCKQUOTE>
Of course, I can't just leave it at that.  That would be far
too simple an answer.  I really have to put in a plug for
Kermit if you're going to be doing any serious communications
scripting.  Kermit is a rich programming/scripting language for
automating serial and network communications.  I really suggest
that you try it instead of minicom's runscript.
</BLOCKQUOTE>
<BLOCKQUOTE>
I must admit that I usually use minicom for most of my simple
interactive serial terminal needs.  However that's purely born of
laziness. Minicom is included with most LInux distributions while I'd
have to fetch kermit and build it from sources.  If it was
"apt-get'able" from the <A HREF="http://www.debian.org/">Debian</A> archive system; I'd go back in a
heartbeat.
</BLOCKQUOTE>
<BLOCKQUOTE>
All of that aside, runscript can probably do what you need,
and if that doesn't give you enough power to do the job then
look at the 'expect' programming language from Don Libes.  That
can automate any terminal/curses appllication under Linux/UNIX
and it supports the full TCL programming language.  There is also
an "expect.pm" module for PERL if you prefer its syntax and features.
</BLOCKQUOTE>



<p><strong>
<img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>
Thank you.
</strong></p>
<p><strong>
Kermit is very good but their is one problem, i cant put AT commands in my
script.
i have the same problem in minicom (it dowsnt recognize AT commands)
i try even to combine the both (minicom and kermit).
i think kermit is powerful and thanks to you i learn it.
</strong></p>
<p><strong>
thanks again!!!
<br>Nir
</strong></p>

<!-- end 33 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/34"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 34 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Setting up print filters.</H3>


<p><strong>From Neo  
</strong></p> 
<p align="right"><strong>Answered By Ben Okopnik 
<br></strong></p>
<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
I'm a totally newbie about Linux, but I found it a real great OS (I
normally used Win98 !!!), but I have a small problem. I have just changed
my printer, a brand new Epson Stilus Color 670, but my Linux box won't use it
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Ben]
The main reason, Neo, is - of course - that the Matrix has you. 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE>
Generally, I would not respond - few people would - to a request for help
that gives so little useful information. The reason that I'm answering this
question at all is because printing setups can be troublesome, and what I
want to do here is write a sort of a mini-troubleshooting guide. "My Linux
box won't use it" is rather useless; what does that mean? Are you
physically unable to connect the printer to the box? Does it not fit on the
same desk as the computer? Does it print perfectly except for skipping
every other comma? There is no way to tell, and most of us aren't into
guessing. Please try to make yourself clearer when asking for help; there's
no such thing as "too much information" when doing so.
</BLOCKQUOTE>
<BLOCKQUOTE>
If there's one bit of advice that I'd want to emphasize to the newcomers
in the Linux community, this would be it - make yourself as clear as
possible when asking for help, and include as much information as you
think necessary... and then add some more.
</BLOCKQUOTE>
<!-- ::
Check the hardware for compatibility.
~~~
:: -->
<BLOCKQUOTE>
A quick check of Epson's website didn't give me any specs on this printer,
just advertising crud. I suspect, though, that it is not a WinPrinter -
that's what I wanted to check up on. If it was, you'd have a bit of trouble
(software is available, but it's problematic.) In any case, WinPrinters
are beyond the scope of what I want to cover. We'll assume that you have a
real, honest-to-goodness printer with its own brain, and go from there.
</BLOCKQUOTE>
<!-- ::
Test the hardware at the lowest level of complexity.
~~~
:: -->
<BLOCKQUOTE>
Once you have connected the parallel cable (once again, USB printers are
outside the scope - look up the USB-HOWTO on the Web), powered up the
machine and the printer (DO NOT connect or disconnect parallel peripherals
under power: you stand a high chance of frying the peripheral and the
machine), and made sure that the printer's power light is on, it's time
for the basic test. Pick a text file that is about 1k in size - the
default "<TT>/etc/inittab</TT>" is a pretty fair example - and shove it straight out
through the parallel port:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
cat /etc/inittab &gt; /dev/lp0
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
This assumes two things: 1) that you are logged in as root, and 2) that
the first parallel port, "lp0" (known as "LPT1:" under DOS/Windows) is
where your printer is connected.
</BLOCKQUOTE>
<BLOCKQUOTE>
If this doesn't work, look at any error messages that may be generated:
"Permission denied" probably means that you *didn't* log in as root.
"Device not configured" would mean that you either don't have the "lp"
module loaded (check by typing "lsmod") or do not have the kernel
parallel-port driver enabled, which would be a strange thing to do (but
I've seen it happen.)
</BLOCKQUOTE>
<BLOCKQUOTE>
If no error messages are generated and there's still no output, try
assuming that it's the other parallel port - there are rarely more than
two on machines today; for that matter, more than one is becoming rare.
Anyway, try
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
cat /etc/inittab &gt; /dev/lp1
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
- it can't hurt.
</BLOCKQUOTE>
<BLOCKQUOTE>
One rare, odd thing that can make this test fail - check the parallel port
settings in your BIOS. I've seen an "ECP/EPP" setting disable a Brother
printer under both Linux and Windows; all other settings allowed it to
work. Yes, Brother printers are weird - but this was about as strange as
snake suspenders...
</BLOCKQUOTE>
<BLOCKQUOTE>
If none of the above works, check the hardware by booting into DOS or
Windows and printing from there. If you still can't get it to print,
there's a problem with your hardware - port, cable, or printer. Curse life,
weep loudly, and replace whatever is necessary.
</BLOCKQUOTE>
<!-- ::
Setting up the printer spooler.
~~~
:: -->
<BLOCKQUOTE>
Install "lpr" or "lprng". For a home user, it makes no difference which
one you choose. Either one handles the tricky bit with the permissions -
you don't have to be root to print anymore. "cupsys", available with the
new version of <A HREF="http://www.debian.org/">Debian</A> (and probably other distros) takes care of this and
the next (filtering) stage. Make sure your "<TT>/etc/printcap</TT>" is correct (see
"man printcap") and test the system by typing
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
lpr /etc/inittab
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<!-- ::
Setting up print filters.
~~~
:: -->
<BLOCKQUOTE>
If all you were going to do is print text, you'd be done at this point.
However, most folks like their graphics and want to pretty-print stuff
like Web pages, etc. For this, you need a series of "translators" that
accept an arbitrary file type and turn it into language that is
appropriate for your printer. "magicfilter" and "apsfilter", in my
experience, can both be rather fussy about installation - I've had
problems with both. Test the system by printing a <EM>small</EM> graphics file,
preferably something like a black 4x4 pixel GIF or JPG - if you only get a
dot (the correct output), try a larger image; if the filters are messed
up, you won't get more than a page of random garbage.
</BLOCKQUOTE>
<BLOCKQUOTE>
At this point, you're done. The next move, as the original Neo said, is up
to you.
</BLOCKQUOTE>

<!-- end 34 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/35"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 35 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Xwindows</H3>


<p><strong>From Wes Ragle 
</strong></p> 
<p align="right"><strong>Answered By Mike Orr, Heather Stern
<br></strong></p>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Is Xwindows a generic
part of Linux?  All I ever see while researching the question is xfree86?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
"Linux" refers only to the kernel.  All Linux software comes from third
parties, including stuff that's necessary to boot and produce a shell
prompt.  X-windows is just a protocol; Xfree86 is a concrete
implementation of that protocol.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Actually strictly speaking, X is the protocol, windows are what it is about
painting, and people rarely see them apart unless they are programming an
X based application.  Especially if they're programming a window manager;
window managers (whose names often end in wm: fvwm, qvwm, twm, flwm, icewm;
but not necessarily: blackbox, enlightenment, sawfish) are responsible for
listening to X protocol messages like "you got clicked" or "keystroke M" or
"please repaint coordinates so-and-so" and telling the right applications
what to do.  It's the window manager that owns the scrollbars, the title
bar, and the background.
</BLOCKQUOTE>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
XFree86 describes itself as "a non-profit organisation which produces
XFree86, a freely redistributable open-source implementation of the X
Window System that runs on UNIX(R) and UNIX-like (like Linux, the BSDs,
Mac OS X (aka Darwin) and Solaris x86 series) operating systems and
OS/2."  (<A HREF="http://www.xfree86.org"
	>http://www.xfree86.org</A>)
</BLOCKQUOTE>
<BLOCKQUOTE>
Linuxers adopted Xfree86 over other versions of X-windows because (1) it
runs on the x86 CPUs (a sine que non), (2) it's affordable (back when X
was unusable under Linux I almost bought BSDi [another UNIX-like OS]
instead, but didn't because of its price tag), and (3) meets our
standards for open source (not counting a few minor squabbles along the
way).
</BLOCKQUOTE>
<BLOCKQUOTE>
Linuxers chose X-windows over other graphical systems (e.g., MGR)
because almost all the graphical applications available for UNIX are
designed for X.
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
There are other implementations of X, also... tinyX is one.  You can read
far more than any of us can say here by following some of the links at
Kenton Lee's site:
<A HREF="http://www.rahul.net/kenton/xsites.html"
	>http://www.rahul.net/kenton/xsites.html</A>
</BLOCKQUOTE>


<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Four other graphical "systems" to look at are the framebuffer, SVGAlib,
Berlin and GGI.
</BLOCKQUOTE>
<BLOCKQUOTE>
The framebuffer is an optional part of the Linux kernel
that runs the video card in graphics mode.  This is required for
non-Intel systems (which don't have a text mode, so it must be
emulated).  It's also useful on Intel because X-windows normally takes
control of the video card itself, and because X is such a huge beast,
buggy X programs and drivers can crash the X server, freezing the
screen+keyboard+mouse and necessitating a reboot.  But with the
framebuffer, the kernel retains control of the video card and can tell
the X server where to go.
</BLOCKQUOTE>
<BLOCKQUOTE>
SVGAlib is a library that allows non-X programs to use graphics mode.
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
However, there's only one fellow in charge of it and video cards keep moving
onward.  Last I saw, he's not adding support for new cards - although many
with VESA 2.0 compatability will work.
</BLOCKQUOTE>


<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
Berlin is/was a project to make a windowing system better than X.  I
can't find a URL for it, so I'm not sure if it still exists.  (I thought
it was www.berlin.org, but that goes to www.berlin.de, which contains
tourist information about the city.  Google and MetaCrawler don't seem
to have any links to it.)
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
Funny, I went to Google, typed in the keywords "berlin" and "gui" and it
popped right up:
<A HREF="http://www.berlin-consortium.org"
	>http://www.berlin-consortium.org</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
The trick is to make sure you don't get references to the city, by putting
in a more limiting keyword to go with it 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">  They have news as of late
November, so I guess the project is still alive.
</BLOCKQUOTE>

<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
GGI ("General Graphics Interface",
<A HREF="http://www.ggi-project.org"
	>http://www.ggi-project.org</A>) is a portable graphics interface
of the "write once, run anywhere" variety.  It can run with X and/or the
framebuffer and in other combinations.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Would you please straighten me out as to
exactly what is involved in generating nice graphics in Linux?  Does Mesa
only work with drivers for a select few video chips?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
I'll let others answer these since I don't know.
</BLOCKQUOTE>


<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Heather]
I don't think that is the case... although certain video chips may get a
significant boost from having OpenGL support directly, Mesa is software that
allows non-supporting cards to display applications designed around OpenGL.
Mostly.  The author is very careful to state that it is not a licensed SGI
implementation of OpenGL so if something isn't a perfect match, sorry.  You
can read all about that at the Mesa project homesite, again not quite obvious:
<A HREF="http://www.mesa3d.org"
	>http://www.mesa3d.org</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
Anyways I hope that helps a bit.  Since I don't know what kind of nice graphics
you're trying to do, I don't know if any of the APIs optimized for helping
gamers might help you out too.  But this should be a good start.
</BLOCKQUOTE>

<!--              . . . . . . . . . . . . . . . . . . .              -->
<HR WIDTH="40%" ALIGN="center">
<!-- begin 35 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>Xfree 4.0.2</H3>


<BLOCKQUOTE><dL>
<dt>Definitely worth mentioning --
Xfree86 4.0.2 just came out.  Release notes:
<dd><A HREF="http://www.xfree.org/4.0.2/RELNOTES.html"
	>http://www.xfree.org/4.0.2/RELNOTES.html</A>
</ul></BLOCKQUOTE>

<!-- end 35 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/36"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 36 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>diald on a smoothwall box</H3>


<p><strong>From jim watkins 
</strong></p> 
<p align="right"><strong>Answered By  Mike Orr
<br></strong></p>
<P><STRONG>
This may be the wrong place to ask a question! in which case please take no
notice.However if not......
</STRONG></P>
<P><STRONG>
I just made a box running smoothwall, a sucess until....I realized it
did not dial on demand...then I found diald ....to me this looks like
it should achieve what I want...
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Mike]
<br>1) What are you trying to do?
</BLOCKQUOTE>
<BLOCKQUOTE>
2) What's smoothwall?
</BLOCKQUOTE>
<BLOCKQUOTE>
Diald's main use is to automatically initiate a ppp connection when
there's outgoing traffic at your site but the link is down, and then
to tell ppp to hang up when the outgoing traffic has been idle for a
certain period of time.
</BLOCKQUOTE>
<BLOCKQUOTE>
For an ordinary firewall situation with ppp and an analog modem, where
you want the connection to go up and down automatically as needed, yes,
you would use diald.
</BLOCKQUOTE>
<BLOCKQUOTE>
Note that diald cannot measure <EM>incoming</EM> traffic when the link is
down.  This would require something like diald at the ISP's end.
</BLOCKQUOTE>

<!-- end 36 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<A NAME="tag/37"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 37 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif" 
	height="50" width="60" alt="(?) " border="0"
	>...a bulk friendly ISP?</H3>


<p><strong>From needbulkisp 
</strong></p> 
<p align="right"><strong>Answered By Jim Dennis
<br></strong></p>
<!-- ::
...a bulk friendly ISP?
~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<BLOCKQUOTE>
[the editor notes that the querent sent his mail as all HTML. Yuck.]
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	>
Hello!
</STRONG></P>
<P><STRONG>
I'm trying to find a bulk friendly ISP, to host a very small website.
Can you help?
</STRONG></P>
<P><STRONG>
OR
</STRONG></P>
<P><STRONG>
Can you refer me to anyone?
</STRONG></P>
<P><STRONG>
Thanks very much,
</STRONG></P>
<P><STRONG>
HAPPY NEW YEAR!
</STRONG></P>
<P><STRONG>
From: <A HREF="mailto:needbulkisp@yahoo.com"
	>needbulkisp@yahoo.com</A>
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
	HEIGHT="28" WIDTH="50" BORDER="0"
	> [Jim]
I don't know what you mean by "bulk friendly."  However, you should
be aware that the phrase carries very negative connotations to
experience internet professionals.
</BLOCKQUOTE>
<BLOCKQUOTE>
To must of us that suggests that you are planning to spam (e-mail)
people and you want to hook up with an ISP that will tolerate your
abuse of the Internet and shield you from the wrath of the people
that you offend.
</BLOCKQUOTE>
<BLOCKQUOTE>
Since you say it's a "very small website" I presume that you don't
mean that you have a "bulk" of content that you wish to make
available.  Perhaps you mean that you have a small volume of content
that you believe will get an immense amount of traffic.  Obviously
there are lots of ISP and co-location facilities out there.  For
commercial traffic they are <EM>very</EM> "bulk friendly" (since they
charge for all the traffic --- the more traffic you generate, the
more money they charge and the friendlier they get).
</BLOCKQUOTE>
<BLOCKQUOTE>
Anyway, I'll refrain from suggested actual companies here.  Among
other things I don't know enough about your needs and resources
(money) to make any reasonable suggestions, and I'm not in the
business of shopping for ISPs (bulk-friendly or otherwise).
</BLOCKQUOTE>
<BLOCKQUOTE>
However, I've left your name in this message since your
e-mail address is clearly and solicitation for relevant advertising.
I'm sure that "bulk friendly" ISPs will just be banging down your
inbox within a few days.  (Normally we filter e-mail addresses
out of LG Answer Gang articles to protect or correspondents from
spammers; however this appears to be a "trowaway" e-mail account
which will be abandonned as soon as you've made your selection
--- so I'll suggest to my editors that we make an exception in your
case).
</BLOCKQUOTE>

<!-- end 37 -->
<center>
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.jpg">
More 2&cent; Tips!</A></H1> <BR>
Send Linux Tips and Tricks to <A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A></center>
<!-- BEGIN tips -->

<UL>
<!-- index_text begins -->
<li><A HREF="#2c/1"
	><strong>Let cron put backup files into your Gnome trashcan</strong></a>
<li><A HREF="#2c/2"
	></a>Baffled --or--
<br><A HREF="#2c/2"
	><strong>Seeing what's changed since your tar backup</strong></a>

<li><A HREF="#2c/3"
	><strong>2cent tip: lynx mpg123 and mp3.com</strong></a>
<li><A HREF="#2c/4"
	></a>Dohhh! Check if your screen is really locked --or--
<br><A HREF="#2c/4"
	><strong>The Unattended Risk</strong></a> Lock your system!
<li><A HREF="#2c/7"
	><strong>Modem Question - Easy One</strong></a>
<li><A HREF="#2c/9"
	><strong>Monitor goes blank in X</strong></a>

<li><A HREF="#2c/12"
	><strong>Tips: sendmail offline</strong></a>
<li><A HREF="#2c/13"
	><strong>Measure your modem connection - Bogospeed</strong></a>
<li><A HREF="#2c/14"
	><strong>2-cent tip - module resource detection</strong></a>
<li><A HREF="#2c/15"
	><strong>Backup via shell script</strong></a>
<li><A HREF="#2c/17"
	><strong>devices list</strong></a>
<li><A HREF="#2c/19"
	><strong>Linux core files</strong></a>
<li><A HREF="#2c/21"
	><strong>linux login problem</strong></a>
<li><A HREF="#2c/23"
	><strong>networked machine goes to sleep?</strong></a>
<li><A HREF="#2c/24"
	><strong>NT Log on a Linux Box</strong></a>
<li><A HREF="#2c/25"
	><strong>Graphics Programming for Printing / Faxing (Issue 60)</strong></a>
<li><A HREF="#2c/26"
	><strong>About RS422</strong></a>
<li><A HREF="#2c/27"
	><strong>x-base languages for Linux</strong></a>
<li><A HREF="#2c/28"
	><strong>NT Event Reporting in Unix/Linux</strong></a>
<li><A HREF="#2c/29"
	><strong>Need Outlook to speak to Linux</strong></a>
<li><A HREF="#2c/31"
	><strong>Fat 32 Linux instillation</strong></a>
<li><A HREF="#2c/32"
	><strong>Available spcae avail on Hd!</strong></a>
<!-- index_text ends -->
</UL>
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Let cron put backup files into your Gnome trashcan</FONT></H3>
Sat, 30 Dec 2000 01:02:24 -0500
<BR>From: Allan Peda (<a href="mailto:tag@ssc.com?cc:tl082@yahoo.com">tl082@yahoo.com</a>)

<BLOCKQUOTE>
Cron to put bacup files in trash (if you have a gnome desktop):
</BLOCKQUOTE>
<BLOCKQUOTE>
I typed this up to keep my home dir clean, it assumes backup files over
1 day old should
be moved to the trashcan.   I run it every 5 minutes under cron
</BLOCKQUOTE>
<BLOCKQUOTE><pre>
#!/bin/sh
# script to move trash files to trash can
# use cron to run this every 5 minutes

if [ x"$HOME" = x ]; then
  echo "\$HOME not defined"
  exit 1
fi

TRASHCAN=${HOME}'/.gnome-desktop/Trash/'
if [ ! -d $TRASHCAN ]; then
  echo "Need a trash can to work"
  exit 1
fi

FARGS=' -maxdepth 1 -type f -mtime +1 '
find ~ $FARGS -name '.saves-*' -exec mv {} $TRASHCAN \;
find ~ $FARGS -name  '\#*\#'   -exec mv {} $TRASHCAN \;
</pre></BLOCKQUOTE>

<!-- sig -->


<!-- end 1 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Seeing what's changed since your tar backup</FONT></H3>
Fri, 29 Dec 2000 09:35:11 -0800
<BR>Jim Dennis (<a href="mailto:tag@ssc.com">The Answer Guy</a>)

<BLOCKQuote>
(If you have a full tar backup of your root and <TT>/usr</TT> filesystems
you can use the '<tt>tar df</tt>' or '<tt>tar dzf</tt>' directives to report on
differences between your current files and those in your backup.
</BLOCKQuote>

<!-- sig -->

<!-- end 2 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">2cent tip: lynx mpg123 and mp3.com</FONT></H3>
Mon, 11 Dec 2000 19:58:01 -0800
<BR>From: collver@softhome.net(<a href="mailto:tag@ssc.com?cc:collver@softhome.net">collver@softome.net</a>)

<BLOCKQUOTE>
mp3.com uses MIME to describe audio content to web browsers.
A year or two ago, mp3.com had instructions to set up audio/mpeg and
audio/mpegurl in Netscape.  These MIME types no longer work because
mp3.com now uses audio/x-mpeg and audio/x-mpegurl instead.
</BLOCKQUOTE>
<BLOCKQUOTE>
Two places to configure viewers for MIME types:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
/etc/mailcap
$HOME/.mailcap
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
I suggest editting $HOME<tt>/.mailcap</tt> as it overrides <TT>/etc/mailcap</TT>.
</BLOCKQUOTE>
<BLOCKQUOTE>
You might already have entries placed by Netscape.  If so, they assume you
only use X and they look like:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
#mailcap entry added by Netscape Helper
<BR>audio/x-scpls;xmms %s
<BR>#mailcap entry added by Netscape Helper
<BR>audio/x-mpegurl;xmms %s
<BR>#mailcap entry added by Netscape Helper
<BR>audio/x-mpeg;xmms %s
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
If you don't want to use xmms, delete these lines.
If you want to use xmms when in X, replace '<TT>xmms %s</TT>'
with '<TT>xmms %s; test=test -n "$DISPLAY"</TT>'
</BLOCKQUOTE>
<BLOCKQUOTE>
Then add:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote><code>
audio/x-scpls; mpg123 -@ %s
<br>audio/x-mpegurl; mpg123 -@ %s
<br>audio/x-mpeg; mpg123 $s
</code></BLOCKQuote></BLOCKQUOTE>

<!-- sig -->


<!-- end 3 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">The Unattended Risk</FONT></H3>
Thu, 28 Dec 2000 18:57:54 -0800
<BR>allan 

<P><STRONG>
I realized the other day that locking your screen is next to useless if
you start your linux box in text mode, performing a "startx &amp;" to begin
an X session, <em>unless</em>  you Ctrl-Alt-F1 to your text virtual console
and Ctrl-D logout, then you can Ctrl-Alt-F7 back to the X console, and
lock the screen.  Otherwise all a passerby need do is switch virtual
terminals and use you account.
</STRONG></P>
<P><STRONG>
It's sorta obvious when you think about it.  Of course an unattended
Linux machine is not really secure, but still, just switching virtual
consoles is a little <em>too</em> easy.
</STRONG></P>
<P><STRONG>
Allan
</STRONG></P>
<BLOCKQUOTE>
I've been doing "<tt>exec startx</tt>" from non-xdm machines to save myself
having to log out when I quit my X session.  I think it would help with
this situation too. -- Don Marti
</BLOCKQUOTE>

<BLOCKQUOTE>
... or
<br><code>startx &amp; vlock</code>
<br>... to ensure that your login session will not be
inadvertantly be left unlocked and unattended.
</BLOCKQUOTE>
<BLOCKQUOTE>
Naturally you'll also want to look at xautolock --- adding
it to your .Xclients, .xsession or other 
windowing system start-up/configuration files as necessary.
<br> -- Jim Dennis
</BLOCKQUOTE>


<!-- end 4 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/7"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Modem Question - Easy One</FONT></H3>
Sun, 17 Dec 2000 19:59:45 EST
<BR>From: Franklyn
 (<a href="mailto:tag@ssc.com?cc:I3utane@aol.com">I3utane@aol.com</a>)

<p><strong>
Answer Guy,
</strong></p>
<p><strong>
I've read an response that you posted about a win modem running in linux, it
wont'.  But I it was posted on Feb 22, 1999.  So I was hoping that came out
and gave us the source and stuff.  I have a US Robotics 56k Voice Win.  If
they haven't, i'm out to comp usa to buy a external 3 comm (or is a internal
ok?).
</strong></p>
<p><strong>
Be good man - thanx in advance.
</strong></p>
<p><strong>
Franklyn
</strong></p>

<BLOCKQUOTE>
See if <A HREF="http://linmodems.org"
	>http://linmodems.org</A> or the Linmodem Mini HOWTO
www.linuxdoc.org/HOWTO/Linmodem-HOWTO.html+linmodem&amp;hl=en
help.
</BLOCKQUOTE>
<BLOCKQUOTE>
An external modem is usually better anyway because modems generate
a lot of heat, plus external modems don't have any OS-specific
idiosynchracies.
</BLOCKQUOTE>
<BLOCKQUOTE>
--
Mike Orr
</BLOCKQUOTE>


<!-- end 8 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/9"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Monitor goes blank</FONT></H3>
Sun, 24 Dec 2000 15:29:28 +0200
<BR>From: Marius Andreiana 

<P><STRONG>
I'd like to turn off blanking of the monitor in X. After 10 min or so
it goes blank, so I have to move the mouse from time to time when
watching movies 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</STRONG></P>
<P><STRONG>
I've tried setterm <TT>-blank</TT> 0 before starting the movie (put that in
rc.local too)
but no effect. setterm <TT>-blank</TT> 60 won't work either.
</STRONG></P>
<BLOCKQUOTE>
setterm affects only the console.  My ~/.xsession has the following
command:
</BLOCKQUOTE>
<BLOCKQUOTE>
&quot;`
xset dpms 1800 2400 3600
&quot;'
</BLOCKQUOTE>
<BLOCKQUOTE>
which blanks the screen at 30 minutes, goes into power-save mode at 40
minutes, and "off" at 60 minutes.  I use such a long time so it doesn't
blank out when I'm moving back and forth between the computer and the
kitchen.
</BLOCKQUOTE>
<BLOCKQUOTE>
There are also some options in XF86Config you can try.  See
"man 5 XF86Config-v3" or "man 5 XF86Config".  You have to put in a
"power_saver" option; then set the BlankTime, StandbyTime, SuspendTime,
and OffTime in the Screen section.  These are overridden by xset.
</BLOCKQUOTE>
<BLOCKQUOTE>
--
Mike Orr
</BLOCKQUOTE>


<BLOCKQUOTE>
You're on the right track but in the wrong lane.  The setterm
command only affects the (virtual) <EM>terminal</EM> settings.  You
want the xset command.
</BLOCKQUOTE>
<BLOCKQUOTE>
Try the command:
</BLOCKQUOTE>

<blockquote><pre>     xset s off

</pre></blockquote>
<BLOCKQUOTE>
... from any xterm.  Then start your moving, kick back, and
watch the show.
<br>-- Jim Dennis
</BLOCKQUOTE>


<!-- end 11 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/12"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Tips: sendmail offline</FONT></H3>
Tue, 26 Dec 2000 23:35:19 +0100 (MET)
<BR>From: Karl-Heinz Herrmann 
(<A HREF="mailto:k.-h.herrmann@fz-juelich.de"
	>k.-h.herrmann@fz-juelich.de</A>)

<BLOCKQUOTE>
Hi,
</BLOCKQUOTE>
<BLOCKQUOTE>
since I just solved a little nuisance with the newer Sendmail 8.9.3 on my system I
thought it could help somebody else.
</BLOCKQUOTE>
<BLOCKQUOTE>
My setup: dialup connection, local sendmail is handling all outgoing e-mail and is
</BLOCKQUOTE>
<BLOCKQUOTE>
queuing them until online. In my ppp-start scripts sendmail will then be
triggered by '<TT>sendmail -q</TT>' to run the queue.
</BLOCKQUOTE>
<BLOCKQUOTE>
Now since the last upgrade this didn't always work for mails sent offline but would
work for mails sent while I was online. I now found out that sendmail is keeping a
persistent host status directory.
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
sendmail.cf says:
<BR>-------
<BR># persistent host status directory
<BR>O HostStatusDirectory=.hoststat
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
[...]
</BLOCKQUOTE>
<BLOCKQUOTE>
O Timeout.hoststatus=60m
---------
</BLOCKQUOTE>
<BLOCKQUOTE>
So if a mail was undeliverable (offline) sendmail would remember that for 60m. Only
then it would ever try it again even if online and '<TT>sendmail -q</TT>' is run.
This status seems to be associated with each mail, so new ones go out, old ones
stay.
</BLOCKQUOTE>
<BLOCKQUOTE>
Possible solutions:
</BLOCKQUOTE>
<BLOCKQUOTE><ol>
<li> reduce the timeout to 1m or similar.
<br>or
<li> run '<tt>sendmail -bH</TT>' as well in the ppp-start script. This will purge the
host status cache.
</ol></BLOCKQUOTE>
<BLOCKQUOTE>
I Hope this helps others to get a similar setup working faster then me 
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE>
-- Karl-Heinz Herrmann
</BLOCKQUOTE>

<!-- end 12 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/13"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Measure your modem connection - Bogospeed</FONT></H3>
Sat, 16 Dec 2000 11:44:11 -0500
<BR>From: Ben Okopnik (<a href="mailto:tag@ssc.com">of The Answer Gang</a>)

<BLOCKQUOTE>
This one does a 'bogo-measurement' of the modem connection speed. Given
that I'm in the process of playing with a rather shitful internal modem
(bleagh!), it comes in very handy.
</BLOCKQUOTE>
<BLOCKQUOTE>
Several times, I've seen people write in to LG and ask "How can I tell how
fast my modem connection is?" This little script will... well, it'll do
_something_ that will at least give you an idea. 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE>
In the tradition of "BogoMIPS", "bogospeed" gives you a <EM>relative</EM> value
of your connection speed. This means that the numbers you see do not
represent the actual speed of your connection <TT>-</TT> in my experience, they are
about 25% high <TT>-</TT> but give you a general idea of what you should expect.
If, for example, you normally see "55000 bps" as your 'bogospeed', and you
see "33000 bps" on a given connection, you'll know that the connection
you've just made is about 40% slower than usual (and that you should
probably try reconnecting.)
</BLOCKQUOTE>
<BLOCKQUOTE>
"bogospeed" normally takes about 10-15 seconds to do its stuff on a decent
connection with a 56k modem, and MUCH longer on a very slow connection. To
stop you from wasting your time, it prints the time that is required for
the first 'ping' to reach your ISP, as well as the time that it takes to
execute that ping. In my experience, if that execution time is much longer
than 3 seconds, you've got a poor connection and should try redialing.
</BLOCKQUOTE>
<BLOCKQUOTE>
Ben Okopnik
</BLOCKQUOTE>
<BLOCKQUOTE><pre>
#! /bin/bash
# Estimates connection speed to your ISP

# Be nice to MindSpring; put in your own ISP's name here
ISP="www.mindspring.com"

# Check if 'traceroute' is installed on the system
[ -z `which traceroute` ] &amp;&amp; {
  echo "\"${0:2}\" requires 'traceroute' to be installed."
  exit
}

# Check if 'bing' is installed on the system
[ -z `which bing` ] &amp;&amp; {
  echo "\"${0:2}\" requires 'bing' to be installed"
  exit
}

remote=`time traceroute -m 1 $ISP 2&gt;/dev/null|awk '{gsub("\(|\)","");print $3 " " $4}'`
echo
echo -e "Ping time to ISP:" ${remote:15} "ms\nMeasuring speed...\n"
bing -c 1 -e 20 -S 1024 localhost ${remote:0:14} 2&gt;&amp;1|grep throughput
</pre></BLOCKQUOTE>


<!-- end 13 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/14"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">2-cent tip - module resource detection</FONT></H3>
Sat, 16 Dec 2000 11:19:44 -0500
<BR>From: Ben Okopnik (<a href="mailto:tag@ssc.com">of The Answer Gang</a>)

<BLOCKQUOTE>
Here's a rather nifty script I've crufted. Given the number of times I've
seen people have problems with loading modules, I think it would be pretty
useful.
</BLOCKQUOTE>
<BLOCKQUOTE>
Actually, this two-cent tip is more like a dime (hey, I worked hard on this thing! 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle"> Recently,
I installed <A HREF="http://www.debian.org/">Debian</A> 2.2 (potato). For various reasons <TT>-</TT> namely, the fact
that I've got a weird soundcard <em>and</em> decided to play around with an
internal (yechhh) PnP modem <TT>-</TT> I needed to load several modules that
required various combinations of IRQs, DMAs, and I/O addresses. Having
suffered with this in the past, I decided, once and for all, to resolve
the mess.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you are trying to load a module, and failing with a "Device or resource
busy" error, then 'shotgun' is just what you need. It will try to load your
module with permutations of the three supplied lists for the above values.
It's smart enough to figure out which modules don't require any parameters,
as well as warning you about modules that require other things. It will, as
a last resort, try to load the module with "auto" values, and will give you
good advice on what to do if everything else fails. All in all, it's a very
useful tool if you're going to load modules for strange hardware. It will
also let you know what the correct values are when it <em>does</em> succeed; this
allows you to write them into "<TT>/etc/modules</TT>" and forget them: they'll be
auto-loaded the next time you boot.
</BLOCKQUOTE>
<BLOCKQUOTE>
Happy resource hunting to all! 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE>
Ben Okopnik
</BLOCKQUOTE>
<BLOCKQUOTE><pre>
#!/bin/bash
#
# Requires bash, basename, cat, find, grep, insmod/lsmod, strings


[ -z "$1" ] &amp;&amp; {
  cat &lt;&lt; @END@
* 'shotgun' - a parameter guessing routine for module loading *
*** Copyright Ben Okopnik 2000 - released under the GNU GPL ***
Syntax: `basename $0` module_name
@END@
  exit
}

# Parameter value lists - make sure the 'iolist' makes sense for your
# hardware!
#
# Note that '0' is not an actual value - it tells the module to try
# a default value. This usually works, but is not the best thing.

irqlist="3 4 5 6 7 8 9 10 11 12 13 14 15 0"
dmalist="1 2 3 4 5 6 7 0"
iolist="200 210 220 230 240 250 260 270 280 290 2a0 2b0 2c0 2d0 2e0 2f0 300 310 320 330 340 350 360 370 380 390 3a0 3b0 3c0 3d0 3e0 3f0"

# Clipping the ".o" for uniform syntax
module=${1#\.o}

fname=$(find /lib/modules -name ${module}.o)
[ -z "$fname" ] &amp;&amp; {
  echo "No module called \"$module\" exists under /lib/modules."
  exit
}


clear
warn

parms="$(strings -a $fname|grep ^parm)"
for p in $parms
do
  par=${p#parm_}
  echo ${par%=*}
done

[ -z $par ] &amp;&amp; {
  echo "This module does not require any parameters. Loading..."
  insmod $module &amp;&amp; echo -e "\n$module loaded.\n"
  exit 1
} || {
  echo -e "\nPress a key to start the test process or 'Ctrl-C' to quit."
}

read

echo -e "This might take a while...\n"
echo -n "Running"

for irq in $irqlist
do
  for dma in $dmalist
  do
    for io in $iolist
    do
    echo -n "."
    result="$(insmod $module irq=$irq dma=$dma io=0x$io 2&gt;/dev/null)"
    invalid=$(echo "$result"|grep -c invalid)
    unresolved=$(echo "$result"|grep -c unresolved)
    if [ $(($invalid+$unresolved)) -eq 0 ]
    then
      out=$(lsmod|grep ^$module)
      echo
      echo
      if [ -z "$out" ]
      then
        badnews
      else
        echo "If the module loaded successfully, you should see"
        echo "its name on the following line:"
        echo ${out% *}
        echo
        echo "The parameter values were: irq=$irq dma=$dma io=0x$io"
        echo
        exit
      fi
    fi
    done
  done
done

function badnews()
{
clear
cat &lt;&lt; @END@
Oops. It didn't load. OK, try typing "insmod $module" and see what it
says - if you get a whole bunch of 'unresolved symbol' messages, that
means there's another module that needs to be loaded before this one;
take a look in "/lib/modules/&lt;version&gt;/modules.dep" to find out what
that might be. Other than that, here are a few things to try:


1) Modify the values in the parameter lists at the beginning of this
script: the IRQ and the DMA ranges are probably OK, but the IOs can vary
widely - make sure they make some kind of sense for your module. This
might mean looking at the paperwork that came with your hardware or
starting up Windows to see what I/O address it's been assigned there.

2) Load the values manually. The module you're trying to load may
require more than just IRQ, DMA, and IO - the parameter list at the
start of this program will show you all the possibilities.

3) Do some more research on what the appropriate value ranges for your
module might be. Search the Web for your hardware name plus "linux" - I've
usually had good success with Google and AltaVista's "advanced" search.

4) Often, reading the appropriate part of the kernel source - even if
you are not a programmer - can be very helpful. As a good example,
reading the source for the SoundBlaster/ESS module - 'sb_ess.c' in the
'/usr/src/kernel-source-&lt;version&gt;/drivers/sound/' directory - enabled me
to get my WAV files to play at normal speed, by using the "esstype=1688"
parameter; it was explained in the comments near the top of the file.
The source files tend to be about half code and half comments: the good
folks that write them *want* you to understand.

Good luck!
@END@
  exit
}


function warn()
{
cat &lt;&lt; @END@
NOTE: The following is a list of parameters your module can accept; usually,
most of these are not required. Most often, 'irq', 'io', and 'dma' are all
that are necessary; this script will try to load your module with various
values of those parameters.

If after pressing a key you do not see all three of these - 'irq', 'dma',
_and_ 'io' - on the list, you should probably quit the script by pressing
'Control-C', as the module will almost certainly fail to load despite the
lack of error messages. If the module takes <EM>no</EM> parameters, the script
will notify you of that and load it properly.

* Press 'Enter' to see the parameter list *
@END@
  read
}

</pre></BLOCKQUOTE>


<!-- end 14 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/15"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Backup via shell script</FONT></H3>
Thu, 14 Dec 2000 11:27:58 -0600
<BR>From: Michael Williams (not from the answer gang)

<P><STRONG>
How do you back up your home file system to a remote system using shell
script
</STRONG></P>
<BLOCKQUOTE>
If the computers are connected via TCP/IP and you have rsync and ssh
installed on both machines, do:
</BLOCKQUOTE>
<BLOCKQUOTE><pre>
#!/bin/sh
# backup.sh

rsync -av --delete -e ssh /local/dir/ user@remote_computer:/remote/dir
</pre></BLOCKQUOTE>
<BLOCKQUOTE>
Put a slash at the end of the first argument but not on the second
argument.  Try it first running rsync on the command line with option
<TT>-n</TT> added, to see what it would do.  Otherwise you may discover you're
specifying the wrong directory and deleting stuff you don't want to delete.
</BLOCKQUOTE>
<BLOCKQUOTE>
You will have to configure ssh to let your script login without a
password.  If you don't have an ssh public key yet, run "ssh-keygen".
Then copy your local ~/.ssh/identity.pub to the remote
~/.ssh/authorized_keys . (Or append to authorized_keys if you already
have some entries in it).
</BLOCKQUOTE>
--
Mike Orr
</BLOCKQUOTE>


<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/17"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">devices list</FONT></H3>
Thu, 14 Dec 2000 12:15:11 +0100
<BR>From: Monserrat Seisdedos Nuez 

<P><STRONG>
Hello those in the gazette:
</STRONG></P>
<P><STRONG>
My question is :
</STRONG></P>
<P><STRONG>
there is any <TT>/dev/devices</TT> list where it is pointed out which device
belongs to???
that is
<br>hdx--&gt; hard disks
<br>fdx--&gt; floppy disks
<br>etc...
</STRONG></P>
<BLOCKQUOTE>
Download the kernel source (any version) and look at
Documentation/devices.txt .
</BLOCKQUOTE>
<BLOCKQUOTE>
--
Mike Orr
</BLOCKQUOTE>


<!-- end 18 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/19"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Linux core files</FONT></H3>
Wed, 13 Dec 2000 15:10:02 -0500
<BR>From: ken ramseyer 

<P><STRONG>
I read your article in
<A HREF="../issue41/tag/4.html"
	>http://www.ibiblio.org/mdw/LDP/LG/issue41/tag/4.html</A> which talks about
Linux core files.
</STRONG></P>
<P><STRONG>
Do you know of any reasons why a core file would go to a directory other
than the current working directory (cwd)?
</STRONG></P>
<BLOCKQUOTE>
I thought core files always went to the current directory.  Meaning,
the current directory <EM>of the process that was killed</EM>.
</BLOCKQUOTE>
<P><STRONG>
Do you know if there is a way to tell the Linux kernel where to put core
files?
</STRONG></P>
<BLOCKQUOTE>
Not that I know of.
</BLOCKQUOTE>
<BLOCKQUOTE>
I have "ulimit <TT>-c</TT> 0" in my .zshrc to prevent core files from being written
at all.  That affects the shell process and all its descendants.  Since
I'm not (much of) a C programmer, core files are useless to me.
</BLOCKQUOTE>
<BLOCKQUOTE>
Initscript(5) says that if you have a shell script called
<TT>/etc/initscript</TT>, init will use it for every process it spawns.
"This script  can  be used  to set things like ulimit and umask default
values for every process."  Since init is the anscestor of everything,
this would be a way to stamp out all core files at once.
</BLOCKQUOTE>
<BLOCKQUOTE>
--
Mike Orr
</BLOCKQUOTE>

<!-- sig -->


<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/21"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">linux login problem</FONT></H3>
Wed, 27 Dec 2000 15:57:40 -0800
<BR>From: Joseph Cheek to Howard Hsu...

<P><STRONG>
I have found posts of yours which seem to relate to a
problem I am currently having.  Any help which you
might provide would be greatly appreciated.
</STRONG></P>
<P><STRONG>
We are having trouble logging into our linux server
via the console or telnet, but are able to login using
the same l/p for ftp.
</STRONG></P>

<BLOCKQUOTE>
what are the permissions on <TT>/etc/securetty?</TT>
</BLOCKQUOTE>

<!-- end 21 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/23"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">networked machine goes to sleep?</FONT></H3>
Sun, 03 Dec 2000 18:41:56 -0500
<BR>From: Christopher Curtis 

<BLOCKQUOTE>
This problem exists, or used to exist, for several people, including
myself.  The concensus is that the problem has to do with a cisco
router: The router expects chatty windows machines that crash <TT>-</TT> if your
Linux box just sits around not saying anything, cisco assumes it's dead
and stops routing traffic towards it.  There's a config option in the
router that can turn this 'feature' off, but, as for myself, I cron a
ping since I can't access the router.
</BLOCKQUOTE>
<BLOCKQUOTE>
Christopher
</BLOCKQUOTE>

<!-- end 23 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/24"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">NT Log on a Linux Box</FONT></H3>
Wed, 13 Dec 2000 11:15:27 -0600
<BR>From: Jonathan Hutchins 

<BLOCKQUOTE>
Boy, talk about "think outside the box...".  [Cesar] complained that he
couldn't cron the dumpel.com program to dump the NT Event Log to a flat file
for viewing on Linux.  While it isn't called cron, NT does have a scheduler.
The command line interface is "at", and a GUI interface comes with the
Resource Kit.  Yes, he needs admin privileges on NT to schedule it, but he'd
need root if he were trying the same thing on a Linux box.
</BLOCKQUOTE>
<BLOCKQUOTE>
There are also various programs to give you a remote virtual console from an
NT box.  We use PCAnywhere within Windows environments, but the VNC project
might be very useful... <A HREF="http://www.uk.research.att.com/vnc"
	>http://www.uk.research.att.com/vnc</A>
</BLOCKQUOTE>


<!-- end 24 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/25"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Graphics Programming for Printing / Faxing (Issue 60)</FONT></H3>
Tue, 5 Dec 2000 01:50:32 -0500 (EST)
<BR>From: Anthony E. Greene 
 &lt;<A HREF="mailto:tag@ssc.com?cc:agreene@pobox.com"
	>agreene@pobox.com</A>&gt; 

<BLOCKQUOTE>
The quick and easy way for a Perl programmer to do convert data to faxable
invoices/reports is to output the data as HTML, convert it to Postscript
using html2ps &lt;<A HREF="http://www.tdb.uu.se/~jan/html2ps.html&gt"
	>http://www.tdb.uu.se/~jan/html2ps.html&gt</A>;, then fax the
result using efax or mgetty+sendfax.
</BLOCKQUOTE>
<BLOCKQUOTE>
-- Tony
</BLOCKQUOTE>

<!-- end 25 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/26"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">About RS422</FONT></H3>
Fri, 1 Dec 2000 16:46:54 +0800
<BR>From: Elijah Pau (<a href="mailto:tag@ssc.com?cc:e.pau@tct.com.hk">e.pau@tct.com.hk</a>)

<BLOCKQUOTE>
Hi James,
</BLOCKQUOTE>
<BLOCKQUOTE>
Stumble across you page while looking for some info on RS422 product.  Sorry
to say that you may be answering the wrong question.  As far as I know,
RS422 is a hardware spec. i.e., it's about how hardware talk amongst
themselves.  The original question seems to be about how Linux (software)
talk to the adaptor card.  The representative for the card would probably be
a UART.  Identify that, and you are almost home.
</BLOCKQUOTE>
<BLOCKQUOTE>
Just my 2cents.
</BLOCKQUOTE>
<BLOCKQUOTE>
Cheers, and keep the helping out spirit going.
</BLOCKQUOTE>
<BLOCKQUOTE>
=== Elijah Pau
</BLOCKQUOTE>

<!-- end 26 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/27"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">x-base languages for Linux</FONT></H3>
Mon, 04 Dec 2000 22:55:06 -0500
<BR>From: Hiram & Patti Rosenberg 

<BLOCKQUOTE>
Dear Mr. Answer Guy,
</BLOCKQUOTE>
<BLOCKQUOTE>
I do not know if this is the correct venue for writing to you in
relation to the Linux Gazette column, so please do not throw any
brickbats my way.  I just wanted to add one piece of knowledge to the
puzzle raised by a Michael "Mookie" Kepler's inquiry from back in 1998.
I've been programming in Recital, a 4GL xbase product that runs over our
Sun Solaris network.  They have a product for Linux; I can not recall
the price but a developer kit was only a 3 digit number as I recall.  I
work in the tech pubs section of a major world-class helicopter factory
and we use their Unix product as the backbone of the publication
production and illustration tracking system.
</BLOCKQUOTE>
<BLOCKQUOTE>
Recital is in Danvers, MA, just north of Boston.
</BLOCKQUOTE>
<BLOCKQUOTE>
Hi Rosenberg
</BLOCKQUOTE>

<!-- end 27 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/28"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">NT Event Reporting in Unix/Linux</FONT></H3>
Fri, 1 Dec 2000 13:58:37 -0500
<BR>From: Sheldon Dubrowin 
(<A HREF="mailto:tag@ssc.com?cc:sdubrowin@ibasis.net"
	>sdubrowin@ibasis.net</A>)

<BLOCKQUOTE>
I was looking for something like this also and found an article in the
September 2000 issue of SysAdmin Magazine (www.sysadminmag.com).  In that
article, they talk about a Perl Script that can be run on the NT box that
will format NT Event Log messages in a syslog format and send them to a
Unix/Linux syslog server.  The article is by Joe Aguiar, I haven't tried
this technique yet, but I will be looking into trying this out, just not
yet.  Anyways, I thought you might be interested in this article.
</BLOCKQUOTE>
<BLOCKQUOTE>
Sheldon M Dubrowin
</BLOCKQUOTE>


<!-- end 28 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/29"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Need info</FONT></H3>
Tue, 12 Dec 2000 12:26:11 +0200
<BR>From: Dori Adler 

<P><STRONG>
Hi
</STRONG></P>
<P><STRONG>
I don't know if this is the appropriate email address if not I'm truly
sorry.
</STRONG></P>
<P><STRONG>
Question: Is there a MS Exchange Server Emulator for Linux?
</STRONG></P>
<BLOCKQUOTE>
We were given a Tip about Tradewinds in the last month or two.  Not being
Windows users ourselves, we don't know how good it is.  But you can try it,
and if it works for you, you could write an article for us.
</BLOCKQUOTE>
<P><STRONG>
I need to get MS Outlook Clients with MS Exchange server Services (Only) to
connect to the linus server , do you know how <TT>/</TT> where?
</STRONG></P>
<BLOCKQUOTE>
Normal Linux mail servers are POP3 ... IMAP is a bit less common but certainly
available.  So if you are more concerned about the mail than about other
Exchange features, MS Outlook should already work.
</BLOCKQUOTE>
<P><STRONG>
Thanks and sorry again
Dori
</STRONG></P>
<BLOCKQUOTE>
Best of luck -- Heather
</BLOCKQUOTE>

<!-- end 30 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/31"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Fat 32 Linux instillation</FONT></H3>
Sat, 16 Dec 2000 01:25:47 -0600
<BR>From: (<a href="mailto:tag@ssc.com?cc:tomvanberkel@mindspring.com">tomvanberkel@mindspring.com</a>)

<p><strong>
Can I install Linux on a FAT 32 partition with a dual boot configuration 
including windows ME on the primary partition?
Thanks, TVB 
</strong></p>

<blockquote>Yeah, there's a handful of distros aimed at living on a FAT
	filesystem.  You can find a bunch of them listed on Linux Weekly
	News (<a href="http://www.lwn.net/">www.lwn.net</a>) - Zipslack
	and PhatLinux have been around a while, with new ones like Lin4Win 
	popping up occasionally.
<br>-- Heather
</blockquote>

<!-- end 31 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="2c/32"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Available spcae avail on Hd!</FONT></H3>
Tue, 12 Dec 2000 09:14:44 -0800
<BR>The Chief 

<P><STRONG>
Hi:Iam Newbie with Linux How do I find out how much space avail on Hd! My
system I have mandrake 7.1 installed on my 3Gig Hd!
</STRONG></P>
<BLOCKQUOTE>
The "df" command shows the amount of free space on each filesystem.
</BLOCKQUOTE>
<BLOCKQUOTE><pre>
% df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda5              1981000   1620129    258459  87% /
/dev/hda1                 7746      5141      2205  70% /boot
</pre></BLOCKQUOTE>
<BLOCKQUOTE>
My total amount of free space is 258459 + 2205 = 260664 KB (260 MB).
</BLOCKQUOTE>
<BLOCKQUOTE>
Extra hint: to see how much space a particular directory and all its
subdirectories use, run "<tt>du</tt> DIRECTORY".  This lists each subdirectory
separately and then a total at the bottom.  To get just the total, run
"<TT>du -s</TT> DIRECTORY".
</BLOCKQUOTE>

<!-- end 32 -->

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

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

<center>
<H1><font color="maroon">Linux On Your Desktop</font></H1>
<H2><EM>- setting up GNOME -</EM></H2>
<H4>By <a href="mailto:andreiana@yahoo.com">Marius Andreiana</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<P>First of all, a Happy New Year! If you don't use Linux at home yet, you'll learn now more
about it and you will have a happier year!
</P>

<P>
Why would one use Linux on the desktop ? Isn't Linux an operating system for servers ?
It was designed for multi-user, networked environments, but it's stability pushed it on the
desktop too (if you are on the desktop, doesn't mean you can afford you can boot from time to time).
</P>

<P>
Okay than, it's stable, but you still like MS Windows because you don't want to type commands, and 
MS Windows is so easy to use! Easier and more user-friendly than Linux ? Don't think so! 
Sometimes I use MS Windows machines and it's quite frustrating. Illegal operations,
Explorer not responding and popups from shareware applications. No thanks! Let's give Linux a try!
</P>

<P>
Get a recent Linux distribution (I recommend <A HREF="http://www.redhat.com">Red Hat</A> Linux 7.0 or
<A HREF="http://www.debian.org">Debian</A> 2.2) and install it (see the instalation manual included for
details). You don't need to delete Windows (yet :-), just make sure you have a 1G+ partition available.
</P>
<P>
I assume at this point you have it installed Linux, created an user (during instalation) to login with (don't use
the special user <B>root</B>, which has complete powers over all system, unless you need it) and installed
the <A HREF="http://www.gnome.org">GNOME</A> desktop environment (being by far my favourite), which I'll focus on. 
Remember this article expresses my personal preferences, which may not suit you.
</P>

<P>
Login at the graphical promt and let's start! If English isn't your native language, you can select yours at login
time. After logging in, you see a panel and the default desktop launchers (shortcuts). 
</P>

<P>
The panel hosts the main menu, applets and launchers. You can have more panels, but we'll stick to one for now. 
Applets are small applications embedded in the panel, such as task list (all open windows have buttons with their title
and icon) and clock. You can remove/add applets easily by right-clicking them or right-clicking the panel, and selecting
Panel -> Add to panel -> Applet and the applet you want. Right-click on the clock now, Remove from panel, then add
Applet -> Clocks -> After Step Clock. Right click on it again, select Move and put it where you like. Feel free to experiment
with the applets. It's nice to have the Multimedia -> Mixer applet for sound card volume.
</P>

<P>
There's also the Desk Guide applet, which shows a list of desktops. What's that ? Well, you can have more desktops, unlike
MS WIndows, where there is only one. If you open lots of applications, it's getting hard to navigate through them. I like to use
a desktop for terminals, one for editing, one for internet browsing, and so on. You can flip through them clicking in the Desk Guide
applet or pressing ALT+F1, ALT+F2, etc. (note: this is the default on the Sawfish window manager. ALT is also called Meta).
</P>
<P>
Before going to the window manager, let's work a little more on the panel. I like it clean, so I remove the After Step clock, add back
the simple clock. RIght click the panel, select Panel -> Properties -> All properties, and choose the Tiny size. Notice how
the mixer applet changed, moving to the horizontal position to fit the panel size. You can add launchers to panel, I'll let you 
figure out how (no need to read the manual for that :).
</P>

<P>
The window manager manages windows (surprise!). Moving a window, the title bar and all window-related operations is its job.
Sawfish is very nice. Go to Control Center, and after experimenting with different settings, try Sawfish window manager -> Shortcuts.
(M stands for Meta, which is the ALT key). I like start Netscape by pressing Ctrl+Meta+N, instead of selecting it from the menu or
panel launcher. To do that, choose Insert, Run Shell Command, type the command (netscape) and Grab the key shortcut.
<BR>
I have lots of keyboard shortcuts, and don't use desktop launchers at all (to double click one, you need to minimize all open
windows, or move to a unused desktop). Other shortcuts I use is Ctrl+Meta+M for maximizing window, Ctrl+Meta+D to delete it
(close). Windows have gravity, meaning when you open a new window, it will be posistioned in the place where it has the most
unoccupied space available.
</P>

<P>
Some quick tips:
<UL>
<LI>You can move windows by pressing Meta, press and hold click anywhere in the window and move the mouse
<LI>To copy & paste text, select it with the mouse, then click where you want to paste it with the middle mouse button (if you don't
have one and choose to emulate a 3 button mouse, press both buttons)
<LI>To log out quickly, press Ctrl+Meta+Del (it's the default shortcut on Sawfish). Your open applications wil open again next
time you log in
<LI>To open a link in Netscape in a new window, press it with middle mouse button
</UL>.
</P>

<P>
Here is a screenshot of my desktop :

<P>
<DIV ALIGN="CENTER">
<IMG SRC="misc/andreiana/marius_desktop.jpg" WIDTH="800" HEIGHT="600" BORDER="0" ALT="Marius' Desktop"></P>
</DIV>
</P>

<P>Don't like how it looks ? Change it! Use themes, both for GTK (Gimp Toolkit, such as buttons, labels...) and Sawfish.
Visit <A HREF="http://themes.org">themes.org</A> to see more themes than included ones. Now how about this (older screenshot):
<P>
<DIV ALIGN="CENTER">
<IMG SRC="misc/andreiana/marius_desktop_startrek.jpg" WIDTH="800" HEIGHT="600" BORDER="0" ALT="Marius' Desktop - Star Trek theme">
</DIV>
</P></P>
<P>
Next, you'll see how to manage your system. If this would have been about MS Windows, I would have talked about using
several shareware anti-virus programs, using Defrag, purchasing and using Norton Utilities, provide links to several sites with
shareware software, learn to install & remove them, cleaning up after them, making backups of your registry, and tips about how
to reboot faster. 
<BR>Fortunalley, this is Linux, so managing your system means installing and removing applications! :-) An application comes
usually in a package (.rpm for Red Hat, .deb for Debian). Using Red Hat Linux, I'll focus on RPM. 
</P>

<P>
Open GnoRPM (Main menu -> Programs -> System). If you want to install/remove packages, you'll need to enter root password.
Look around to see what you have installed now. To find out more about a package, Query it. 
<BR>
You can search for software at <A HREF="http://freshmeat.net">freshmeat</A>. For example, get the Bluefish HTML editor, 
which I've used to write this article. Download it, then in GnoRPM use Install.
</P>
<P>
I update my packages quite often, software evolving pretty fast, being free open-source software. If you use Red Hat Linux 7.0, 
visit <A HREF="http://www.redhat.com/support/errata/rh7-errata-bugfixes.html">
http://www.redhat.com/support/errata/rh7-errata-bugfixes.html</A> and update glibc libraries to version 2.2.
</P>

<P>
A quick note about accesing your CD-ROM : in GNOME, when you enter a CD, a file-manager window opens. What happens
it that it's also automatically mounted. To access a storage device in Linux (CD-ROM, floppy, hard-disk), you have to mount it
in a directory. There are no letters for it (like A:, C:, D: etc). The CD-ROM is mounted by default in /mnt/cdrom. 
<BR>
The easiest way to use Windows-formatted floppies is with a text terminal, with commands such as <B>mdir a:</B>, 
<B>mcopy file.txt a:</B>, <B>mformat a:</B>. 
<BR>
Please read the distribution manual for more details.
</P>

<P>
That's it for this month. Please have a look at the Getting Started manual and GNOME manual (skim through them to see what
they talk about, and return later when you need something). 
</P>
<P>
Experiment & learn more about Linux; once you get used to it,
you'll love it. Don't use root if you don't know what you do. 
<P>
Keep your files organized. 
I've had more partitions, but always I was running out of space on one of them, so now I have one big 
partition (10G). I've created two directories in <B>/</B> : <B>/opt</B> and <B>/my</B>.
As the Linux <A HREF="http://www.pathname.com/fhs">Filesystem Hierarchy
Standard</A> says, <B>/opt</B> is reserved for the installation of add-on
application software packages; large applications, such as <A
HREF="http://www.openoffice.org">Open Office</A>, can keep all their files
together. But I also store there files already saved on CDs, like mp3s and
documentation.

<P> <B>/my</B> isn't a standard, but I've found it to be a convenient location
for files I need to save when I make backup, such as my work or documentation.
<B>/home</B> is a symlink to <B>/my/home</B>.  If you have a web site or MySQL
databases, you may want to symlink <B>/var/www</B> and <B>/var/lib/mysql</B>
into <B>/my</B> as well.  You'll also need to back up <B>/etc</B> and
<B>/boot</B> too.  (You could symlink these into <B>/my</B> as well but you
probably shouldn't, since the machine won't boot if these directories get
erased or anything funny happens to the symlink.)

<P>To learn more, visit <A HREF="http://linuxdoc.org">linuxdoc.org</A>. There you'll find, among others, HOWTOs, short documents
which talk about a specific thing. If you want to learn more about your computer & Linux, you can! Unlike MS Windows, Linux is
an open operating system, with lots of features and documentation.
</P>

<P>Some interesting sites to visit regularily are <A HREF="http://lwn.net">Linux Weekly News</A>, 
<A HREF="http://linuxtoday.com">Linux Today</A>, <A HREF="http://slashdot.org">Slashdot</A> and 
<A HREF="http://freshmeat.net">Freshmeat.</A></P>
<P>
Next month we'll talk about how to play mp3s cross-fading them, divx movies and more! Until then, happy Linuxing!
</P>

</BODY>
</HTML>




<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Marius Andreiana.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->


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

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

<center>
<H1><font color="maroon">HelpDex</font></H1>
<H4>By <a href="mailto:shane_collinge@yahoo.com">Shane Collinge</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<IMG ALT="touchtype.jpg" SRC="misc/collinge/touchtype.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="faxvoice.jpg" SRC="misc/collinge/faxvoice.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="msmodem.jpg" SRC="misc/collinge/msmodem.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="fiftyeight.jpg" SRC="misc/collinge/fiftyeight.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="popular.jpg" SRC="misc/collinge/popular.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="bzzt.jpg" SRC="misc/collinge/bzzt.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="restored.jpg" SRC="misc/collinge/restored.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="insidious.jpg" SRC="misc/collinge/insidious.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="os2.jpg" SRC="misc/collinge/os2.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<IMG ALT="redhat7.jpg" SRC="misc/collinge/redhat7.jpg" 
	WIDTH="750" HEIGHT="303">
<BR CLEAR="all">

<P> Courtesy
<A HREF="http://www.linuxtoday.com/helpdex">
Linux Today</A>, where you can read all the latest <EM>Help Dex</EM> cartoons.

<BLOCKQUOTE><EM>
	[Shane invites your suggestions for future HelpDex cartoons.
	What do you think is funny about the Linux world?  Send him your
	ideas and let him expand on them.  His address is
	<A HREF="mailto:shane_collinge@yahoo.com">shane_collinge@yahoo.com</A>
	Suggesters will be acknowledged in the cartoon unless you request not
	to be.  -Mike.]
</EM></BLOCKQUOTE>



<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Shane Collinge.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 60 of <i>Linux Gazette</i>, December 2000</H5>
<!-- *** END copyright *** -->


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

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

<center>
<H1><font color="maroon">Using ssh</font></H1>
<H4>By <a href="mailto:dellomodarme">Matteo Dell'Omodarme</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<P>Every  time we  telnet  into  a  remote machine  the
connection data  will cross the  local network, giving an eventual
intruder the  possibility to spy  the connection and  eventually insert
some malicious commands into the data flux. The use of some strong
cryptography systems will allow an enormous improvement in the security
of the net.

<P>From the  manual page of ssh we  can learn that: "Ssh
 (Secure Shell)  is a  program for logging  into a remote  machine and
 executing commands  in a remote  machine.  It is intended  to replace
 rlogin and  rsh, and provide secure  encrypted communications between
 two untrusted  hosts over an  insecure network.  X11  connections and
 arbitrary  TCP/IP  ports  can  also  be  forwarded  over  the  secure
 channel".   It is  a  powerful, very  easy-to-use  program that  uses
 strong cryptography for protecting all transmitted confidential data,
 including passwords.

<P> At present time there are two SSH protocol, referred
 as SSH2  and SSH1,  the first  one being an  improvement of  the SSH1
 protocol.   SSH2  now  supports  other key-exchange  methods  besides
 double-encrypting  RSA key exchange.  The current  distribution comes
 with Diffie-Hellman  key exchange and  has support for DSA  and other
 public key algorithms besides RSA.

<P>SSH2  can  be  compatible  with  SSH1,  but it is  not
compatible  by default;  the SSH2  server  alone can't  manage a  SSH1
connection and a SSH1 server must be in place in order to do that. 

<h1 align=center>Obtaining and installing SSH</h1>

<P>You can  obtain SSH2 & SSH1 clients  and servers from
the <a  href="http://www.ssh.com"> master FTP server</a>,  or from its
mirrors.   The last  version  of SSH1  protocol is  ssh-1.2.30.tar.gz,
while for SSH2 you can download ssh-2.3.0.tar.gz.

<P>The installation process is really easy. The first
step is unpack your SSH1 sources:

<pre>
tar -zxf ssh-1.2.30.tar.gz
</pre>

<P>This will create  a directory ssh-1.2.30. Now go into
that directory and start the configuration process:

<pre>
cd ssh-1.2.30
./configure
</pre>

<P>The <em>configure</em>  script carries  out  all the
configuration needed in the  compiling stage, searching the system for
the required  library and programs. When  the scripts end  its job you
can start the compilation:

<pre>
make
</pre>
 
<P>After the compilation  stage, become  super-user and
install binaries, configuration files, and hostkey by typing:

<pre>
make install
</pre>

<P>This  will normally install  clients (scp1, ssh-add1,
ssh-agent1, ssh-askpass1, ssh-keygen1,  ssh1) to /usr/local/bin, and a
server  (sshd1) to  /usr/local/sbin.  Notice  that,  in /usr/local/bin
there are also  symbolic link (without the trailing  "1") to the real
executables.

<P>The next step  is to  install SSH2.   The operations
needed are the same required by SSH1:

<pre>
tar -zxf ssh-2.3.0.tar.gz cd ssh-2.3.0 ./configure make
</pre>
 
and as a super-user:

<pre>
make install
</pre>

<h3 align=center>Compatibility SSH1 - SSH2</h3>

<P>In the following part we suppose you have either SSH1
and  SSH2 installed.<br>  In order  to make  the SSH2  server  able to
manage a  SSH1 connection you should edit  SSH2's configuration files,
which  are normally placed  in the  directory /etc/ssh2/.<br>  In that
directory edit the  file <em>sshd2_config</em>, the configuration file
for  sshd2 (Secure  Shell  Daemon)  which is  the  daemon program  for
ssh2. Add the lines:

<pre>
Ssh1Compatibility yes Sshd1Path /usr/local/sbin/sshd1
</pre>

<P>Obviously       modify      the      information
/usr/local/sbin/sshd1 to agree with your sshd1 installation directory.
With this configuration, sshd2  server will forward requests from SSH1
client to sshd1.

<P>Then add two  lines to the file <em>ssh2_config</em>,
placed in the same directory:

<pre>
Ssh1Compatibility yes Ssh1Path /usr/local/bin/ssh1
</pre>

<P>now  ssh2  client   will  invoke  ssh1  client  when
contacting a SSH1 server.

<h1 align=center>Starting SSH</h1>

<P>There  are mainly  two different techniques  to start
sshd at boot time.

<ul>
<li ><P> Go into  /etc/rc.d directory, and edit the file
<em>rc.local</em>. At its end add the lines:

<pre>
echo "Starting sshd ...."  /usr/local/sbin/sshd
</pre>

<P>In such  a way,  at the  end of  your  next computer
reboot, sshd is invoked and the message <em>Starting sshd ....</em> is
printed on  the screen. To start  sshd without  rebooting the machine
type from the command line:

<pre>
/usr/local/sbin/sshd
</pre>

<li>  Alternatively,   in  systems  using  System  V
   initialization,  you  can  put the  <em>sshd2.startup</em>  script,
   which came  with this distribution, to  /etc/rc.d/init.d, naming it
   sshd2.   Then go to  rc$number.d directory,  where $number  is your
   default runlevel.   If you don't  know your runlevel search  in the
   file /etc/inittab the line specifying it:

<pre>
 id:5:initdefault
</pre>

or

<pre>
 id:3:initdefault
</pre>

In the first case your runlevel is 5, in the second one it is 3.

<P>In the directory rc$number.d issue the command:

<pre>
ln -s ../init.d/sshd2 S90sshd2
</pre>

Then change directory to /etc/rc.d/rc0.d and run the command:

<pre>
ln -s ../init.d/sshd2 K90sshd2
</pre>

Repeat the operation in the directory /etc/rc.d/rc6.d.

<P>After  doing  that  you  can start  sshd2  with  out
rebooting the machine, simply running the script:

<pre>
/etc/rc.d/init.d/sshd2 start
</pre>
</ul>

<h1 align=center>Establish a SSH connection</h1>

<P>Once  sshd is  running on your  machine you  can test
your configuration trying to login into it using the ssh client. Let's
suppose that you  machine is named <em>host1</em> and  your login name
is <em>myname</em>. To start a ssh connection use the command:

<pre>
ssh -l myname host1
</pre>

<P>In such  a way ssh2 client (default  client) tries to
connect  to  <em>host1</em>  port  22 (default  port).  sshd2  daemon,
running  on  <em>host1</em>, catches  the  request  and  asks for  the
<em>myname</em>  password. If the  password is  correct it  allows the
login and open a shell.

<h3 align=center>Generating and managing ssh keys</h3>

<P>Ssh allows  another authentication  mechanism, based
upon   <em>authentication  keys</em>,   a   public  key   cryptography
method. Each  user wishing to  use ssh with public  key authentication
must runs <em>ssh-keygen</em> command  (without any option) to create
authentication keys.   The command starts  the generation of  the keys
pair (public and private) and ask for a passphrase in order to protect
them.<br> Two file are created in the $HOME/.ssh2/
directory: <em>id_dsa_1024_a</em>  and <em>id_dsa_1024_a.pub</em>, the
user private and public key.

<P>Let's suppose that we have two accounts, <em>myname1</em> on
<em>host1</em> and <em>myname2</em> on <em>host2</em>. We want to login
from host1 to host2 using ssh public key authentication. In order to do that
four steps are required:

<ol type=1>
<li> On host1 generate the key pair using ssh-keygen
command, and choose a passphrase to protect it.<p>

<li> Login  into   host2,   using  ssh   password
authentication,  and  repeat   the  previous  operation.  Then  change
directory    to    $HOME/.ssh2    and    create    a    file,    named
<em>identification</em>, containing the following lines:

<pre>
# identification
IdKey  id_dsa_1024_a
</pre>

<P>This file is used by sshd to identify the key pair to
be used during connections.<p>

<li> <P>From host2,  get the ssh  host1 public  key and
rename it in a suitable way (e.g. <em>host1.pub</em>):

<pre>
ftp host1
[...]
cd .ssh2
get id_dsa_1024_a.pub host1.pub
</pre> 

<P>At the end of ftp process a copy of host1 public key,
named <em>host1.pub</em>, resides in host2 $HOME/.ssh2 directory.<p>

<li> Create   the   file   <em>authorization</em>
containing the following lines:

<pre>
# authorization
Key     host1.pub
</pre>

<P>This file lists all trusted ssh public keys placed in
$HOME/.ssh2 directory.  When a ssh  connection is started from  a user
whom  public key matches  one of  the entry  of <em>authorization</em>
file the public key authentication scheme starts.
</ol>

<P>In order  to  test the  previous configuration,  you
could try  to connect from host1  to host2 using ssh.  Sshd must reply
asking  for a passphrase,  otherwise, if  password is  requested, some
mistakes  occurred in  the configuration  process and  you  must check
carefully steps 1 to 4.<br>
The passphrase required is your LOCAL passphrase (i.e. passphrase 
protecting host1 public key). 

<h1 align=center>Coming next...</h1>

<P>The next article will  present other programs  and facilities
from ssh suite: ssh-agent and ssh-add (two useful
passphrase management programs),  and sftp and  scp (a secure
way to transfer files across the net).




<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Matteo Dell'Omodarme.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>

<head>
<title>Emelfm vers. 0.9.2</title>
</head>
<body bgcolor="#FFFFFF" text="#010101" link="#2300FF" vlink="#FF0099">
<CENTER><H1>Emelfm 0.9.2</H1></CENTER>
<table>
	<tr>
		<td>
		
		<p>After migrating from the Amiga to the original Slackware distribution of Linux, I spent several years searching out a replacement for Directory Opus.
		Now, a 'file manager' means different things to different people. Some simply want to copy, move, rename files etc. Others want to be able to operate
		on those files in esoteric ways. At whim. Configurably. As you may have guessed, I'm one of the latter.</p>
		<p>I tried everything that came along, whether they claimed to be clones of Dopus or just great file managers. All fell short in some way. Some were too slow, 
		others were fast, but not configurable enough. Still others had both, but configuring them was difficult.</p>
		<p>In the mean time, I used the venerable Midnight Commander (good ol' mc). You can do anything with mc - you just have to configure it, but it's still console 
		based and a lot of basic operations are more easily done from a gui. New problem: after six years of using mc, I had added the desire for a Linux Dopus that behaved like
		mc. Great. Now I wanted superb keyboard navigation <i>and</i> key-mapping <i>and</i> mousing <i>and</i> configurable button banks. Prospects were looking pretty grim</p>
		<p>And then <a href="mailto:macst92@imap.pitt.edu">Michael Clark</a> came along and wrote  <A HREF="http://www.pitt.edu/~macst92/emelfm/">emelfm</A>.</p>
		</td>
		<td>
		<img src="misc/evans/emelfm.jpg" width="320" height="213" border="1" alt="emelfm full screen">
		</td>
	</tr>
	<tr>
		<td>
		<p>emelfm has <b><i>all these</i></b> - and more.</p>
		</td>
	</tr>
</table>

<table width=100%>
	<tr>
		<td>
		<br><br>
		<H2>Overview</H2>
		
		<p>As a graphical file manager, emelfm has no peer. Any file operation imaginable may be carried out using emelfm. It has all the functionality of a modern
		gui based file manager, yet at the same time mirrors the functionality of mc, including the ctrl+o shell. In addition, emelfm allows you to easily construct shell scripts
		of a few lines and put them on a button - or in a context menu. Yes, you could put these in a shell script or an alias (and, of course, you still can), but there's 
		something just so <i>very nice</i> about drag-selecting a few files and then clicking one button which performs magic on them. </p>
		<p>I'm always a little at a loss when the "GUI vs. Console" wars break out. I like and use both <i>when I find it appropriate</i>. Thus far, there is no simple, intuitive
		 way to provide point and click access to all the power the command line has to offer and I'm the first to dive in there when the need arises (or even just for sport).
		Now then, just suppose I'd delved into the manual for mpage and written 'mpage -P -m50lb20t20r -j 1%2'. Yes, I needed the command line. Yes, it's very useful
		to me. No, I won't remember it past my next cup of tea. Solution: add it to the context menu for .txt files in emelfm - or put it on a button. The above example is
		quite trivial compared to what's really possible with emelfm. It simply serves to underline the point that emelfm actually bridges between your work on the command line
		and your use of the gui. </p>
		</td>
	</tr>
</table>
<br>
<table>
	<tr>
	<td>
		<p>Nearly all gui file managers allow for some default action when you double-click on a file. emelfm goes beyond that. If you right click over the same file you'll be
		able to select from a list of <i>alternative</i> actions. Two things to note: 1) you've got more options and 2) it's context sensitive, i.e. you only see choices related 
		to that particular file-type. For example, in my own case, if I were to double-click an htm,html,shtm or shtml file I would be reading it in kless via w3m. However,
		if I right click the same file a whole range of options open up to me. As if that's not enough, there's always the "open with" item, so I can type in a command on 
		the fly.</p>
	</td>
	<td>
	<img src="misc/evans/emelfm_context.jpg" width="431" height="254" border="1" alt="an emelfm context menu">
</table>
<table width=100%>
	<tr>
		<td>
		<img src="misc/evans/example_foo.jpg" width="268" height="247" alt="one of emelfm's file-type dialogs">
		</td>
		<td>
		<p>Also included in the emelfm repertoire are a 'vfs' for diving into tarballs and zip files, a pack plugin for making archives (with an elegant, intuitive interface),
		an easy to use 'for each', a rename by extension (pattern really - much better) and many more.</p>
		<p>Here's some other stuff in no particular order:</p>
		<UL>
			<LI>very simple configuration for unknown file-types 
			<LI>configurable coloured highlighting of file types
			<LI>drag and drop internally and between other gtk apps
			<LI>configurable fonts
			<LI>plugins and a reference manual for writing your own
			<LI>one-click access to your home directory
			<LI>cloning of a file to the same dir under a different name
			<LI>verbose file listings
			<LI>various sorting methods via a single click
			<LI>bookmarks
			<LI>default startup dirs
			<LI>capture of command output
			<LI>more. I forget till I need it.....
		</UL>
		
		</td>
	</tr>
</table>
<table width=100%>
	<tr>
		<td>
		<br><br>
		<H2>Installation</H2>
		Even if you've never compiled a program before, emelfm will be trivial to compile.<br><br>
		<UL>
		<LI>Download the tarball and unpack it somewhere.<br>
		<LI>Pop a shell and cd into the same directory and type 'make'.<br>
		<LI>Then 'su' to root and type 'make install'.<br><br>
		</UL>
		You're done! Ctrl+d to get out of root and run emelfm by typing its name. That's all there is to it.<br>
		Now, you can make an icon for emelfm or add it to your menu structure. It happens that I use KDE, so I used khotkeys and assigned emelfm to ctrl+esc for quick access.<br>
		</td>
	</tr>
</table>
<br><br>
<table>
	<tr>
		<td>
		<H2>Navigation</H2>
		<p>As detailed above, part of our shopping list was keyboard navigation and emelfm works out of the box. Up and down cursor keys respond predictably. Left cursor moves you up a directory and right cursor on a directory moves you down into that directory. Tab or space will toggle the active pane. Return or right arrow on a file will run the default command on that file.</p>
<p>If you press the shift key while moving up or down, you will highlight a range of files. Like mc, you can also use the 'insert' key to tag files.</p>
<p><a href="emelfm_keys.txt">Here's</a> a list of default keybindings. These are just a beginning. You can easily map all the default mc keys into emelfm. Then add all your own personal keybindings. As you can see by the screen shot, the configuration is pretty paul-proof.</p>
		</td>
		<td>
		<img src="misc/evans/emelfm_keys.jpg" width="524" height="310" border="1" alt="emelfm keys dialog">
		</td>
	</tr>
</table>
<table width=100%>
	<tr>
		<td><br>
		<p>Of course, navigating with the mouse is the same as the keyboard and it's intuitive enough that I don't feel I need to go into it. Double-clicking performs the
		default action and Ctrl+click allows spot selection etcetera. One thing I need to mention is that 'drag and drop' is performed using the <i>middle</i> mouse button.</p>
		</td>
	</tr>
</table>

<table>
	<tr>
		<td>
<H2>Usage</H2>
		<p>Where do I begin? You can configure everything from the key bindings to what's shown in the columns.
		There are so many ways to configure emelfm, 
		I'll just give you a few thoughts:</p>
		<UL>
		<LI>Some misc. tips available from the readme are <a href="misc/evans/emelfm_tricks.txt">here.</a>
		<LI>configure a button like 'kdesu -c emelfm'. We all su to root sometimes. We have to... Now, tell emelfm to show dirs in red, that way you'll know you're running as root. Also, resist changing the default config for root's emelfm - the less at home you are the better and - the sooner you'll leave.
		<LI>Make a button for xterm as root and another for xterm as user. The nice part is they alway open in the target directory
		<LI>Almost completely unrelated timesavers: create aliases for cf='./configure', mk='make' and only in root, mi='make install'
		<LI>both df and du work nicer with the '-h' (human) option
		<LI>Read the whole <a href="misc/evans/emelfm_readme.txt">Readme</a> it's worth it!
		</UL>
		</td>
	<tr>
		<td>
	<br><br>
		<H2>Summary</H2>
		 <p>This program is not only the equal of 'Dopus' it's actually better. Before you flame me, I used Amigas since 1986 and 
		had thousands of lines of rexx hanging off of dopus. Now I have (so far) 
		 a few hundred lines of perl and bash hanging off of emelfm. That, and a lot of ELF binaries. </p>
		 <p>No single program pleases everyone, but I know both ex-Amigoids and new Penguinistas who have and use emelfm. 
		 If you're looking for something that most resembles Dopus visually, you should try 
		 <A HREF="http://www.informatik.uni-halle.de/~hoffmanr/worker-e.html">Worker</A> by Ralf Hoffmann. There's also an article 
		 about "Worker" <A HREF="http://www.canadacomputes.com/v3/story/1,1017,4954,00.html?tag=81&amp;sb=79">here</A>. 
		 For a reliance on file magic give <A HREF="http://www.obsession.se/gentoo/">gentoo</A> by Emil Brink a download. For  built-in ftp, 
		Henrik Harmsen wrote <A HREF="http://www.cd.chalmers.se/~hch/filerunner.html">filerunner</A>. I think emelfm probably owes the most 
		to "filerunner" in terms of look and feel. 
		 </p>
		 <H4>Wish list</H4>
		 <UL>
		 <LI>Right-click alternatives and "dog-ears" for command buttons
		 <LI>du of selected files
		 <LI>Colouring of buttons etc.
		 <LI>CD-RW plugin
		 <LI>ftp
		 </UL>
		 <p>I know the author is seriously considering at least the first four.
		 </p>
		 <p>In sum, it's guys like Michael Clark that keep guys like me from having to learn 'C'. :-)</p>
		 <p>You will find Mr. Clark both helpfull and responsive to bug reports and requests for features.</p>
		</td>

	</tr>
</table>

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

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

<center>
<H1><font color="maroon">Tuxedo Tails</font></H1>
<H4>By <a href="mailto:kasten@sunpuppy.com">Eric Kasten</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<IMG ALT="holiday.png" SRC="misc/kasten/holiday.png" 
	WIDTH="370" HEIGHT="510">

<HR NOSHADE WIDTH="80%" ALIGN="center">

<IMG ALT="servdali.png" SRC="misc/kasten/servdali.png" 
	WIDTH="370" HEIGHT="510">


<BR CLEAR="all">

<BLOCKQUOTE><EM>
	[Eric also draws the <I>Sun Puppy</I> comic strip at 
<A HREF="http://www.sunpuppy.com">http://www.sunpuppy.com</A>.  -Ed.]
	</EM></BLOCKQUOTE>




<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Eric Kasten.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 60 of <i>Linux Gazette</i>, December 2000</H5>
<!-- *** END copyright *** -->


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

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

<center>
<H1><font color="maroon">Using the Wireless Modem Ricochet</font></H1>
<H4>By <a href="mailto:python@kepnet.com">Mark Nielsen</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<ol>
<li>
<a href="#REF">References</a></li>

<li>
<a href="#Introduction">Introduction</a></li>

<li>
<a href="#getting">Getting Ricochet</a></li>

<li>
<a href="#install">Installing the Ricochet modem</a></li>

<li>
<a href="#firewall">Setting up a firewall for your network</a></li>

<li>
<a href="#Why">Why use the Ricochet modem?</a></li>

<li>
<a href="#Conclusion">Conclusion</a></li>
</ol>


<h3>
<a NAME="REF"></a>References</h3>

<ol>
<li><a href="http://phobos.illtel.denver.co.us/~abelits/metricom/">Metricom modems support in Linux</a>.
  This is the only place I found that explained how to install the faster modems.</li>
<li>
<li> If this article changes, it will 
    <a href="http://www.gnujobs.com/Articles/11/Ricochet.html">available at GNUJobs.com</a>.   
<li><a href="../lg_index.html"> LG index</a> which has many
articles on networking and firewalls. You may also want to look at <a href="http://www.linux.org/docs/index.html">Linux.org</a>
 to find documentation on how to setup a firewall. 
</ol>


<h3>
<a NAME="Introduction"></a>Introduction</h3>
The Ricochet modems are wireless modems that let you connect your computer
to the internet through an ISP provider that is hooked up to the
wireless network. It is only available in 
<a href="http://www.ricochet.com/about_us/coverage_maps/index.html">certain areas</a>. 
<p>
None of the ISPs support Linux. They officially only support crappy
horrible operating systems are not good for a technical person or
a real programmer. Naturally, Linux, FreeBSD, and other good quality
operating systems are ignored. It makes sense from profit point of view. 
Call the ISPs and let me know you want them to support real operating systems. 
<p>
The modems will connect at 80 Kbps with a serial port and 128 Kbps for a USB
connection. I only use the serial port connection, for now, and it seems
faster and more stable compared to a normal dial-up over the phone. Sometimes
it crawls, but overall, I am very happy with the modem. 


<h3>
<a NAME="getting"></a>Getting Ricochet</h3>
None of the ISPs support Linux. <a href="http://www.wwc.com">Wireless Web Connect</a>
seems to be more liberal, so I choose them. All the other service providers
seemed to have staff that had no clue what Linux was and they had a big
corporate feel, which I usually try to avoid. I bought my modem through
the service provider for around $100, which apparently was a special price, 
but I have noticed that special prices tend to become the normal prices
over time in the ISP market. 


<h3>
<a NAME="install"></a>Installing the Ricochet modem</h3>
Installing the modem was really easy after I found the right webpage. 
<a href="http://phobos.illtel.denver.co.us/~abelits/metricom/">Metricom modems support in Linux</a>.
<p>
It was this simple on a RedHat 6.2 system (when am I going to switch to Debian for good?),
<ol>
<li> Start the control panel with the command "control-panel" in Xwindows.
<li> Click on the Network Configurator.
<li> Click on the "Interfaces" button. 
<li> Click "Add".
<li>  Choose the PPP option and continue.
<li> Type in "3333" for the phone number, and the username and password. Select
   the PAP option. 
<li> After you have added the ppp interface, click on the interface, click
  on the Edit button and type in "noipdefault" where it says "PPP Options". 
  Then click on "Done".
<li> Save and quit the control-panel. 
</ol>

Now you need to follow the specific instructions the above article talks about. 
You need to modify /etc/resolv.conf for the DNS and edit /etc/ppp/pap-secrets as described
 in the article. 
<p>
Overall, it was simple once I knew what to do. 
<p>
If you have tried to figure out how to setup the modem, and you cannot, 
and you have read this article and the other article mentioned above, then
send email to <a href="mailto:articles@gnujobs.com"> GNUJobs.com at
articles@gnujobs.com</a> and perhaps I can point you in the right direction. 
If you attend the 
<a href="http://www.svlug.org">SVLUG</a> meetings in the Bay Area, bring your laptop and send
me email when you are attending the next meeting, and I can help out. 


<h3>
<a NAME="firewall"></a>Setting up a firewall for your network</h3>

I have a desktop computer and a laptop. I don't like using the touchpad on my
laptop, and since I have to use the serial port for my external mouse, I can't
use the Ricochet modem (unless I use the touchpad). Thus, I use my desktop
computer as a firewall. I connect
the desktop computer and laptop to a 100 mbit hub. Then I connect the Ricochet modem
to the desktop computer. 
<p>
The desktop becomes my firewall. I don't have any services running on it
except for ssh. All the other ports are closed. Please use the program 
<a href="http://www.insecure.org/nmap/">nmap</a> to 
scan your computers to find out which ports are open. I would also disable
the root account from logging in with ssh. 
<p>
If you wish to know how to setup a firewall, I 9have written many old articles
for the Linux Gazette about networking and firewalls. There are lots of resources
out there. Try linux.org also with their HOWTOS. 


<h3>
<a NAME="Why"></a>Why do this stuff?</h3>
As an independent consultant, having the ability to go anywhere and
be connected is nice. Not having to pay startup costs every time you want
to get a 2nd phone line in an apartment is nice. I really loathe the local
phone companies for hitting businesses with high phone bills. The wireless
modem ends up paying for itself after you combine a phone bill and an ISP bill. 
<p>
It isn't super fast, but for my needs it is just fine. I am still going to get
a DSL hookup. This will provide me with two alternate ways of connecting to
the internet should one route die for a day. That can be very bad for an 
independent consultant, so two routes are a must. 
<p>
I leave the modem on all day and the firewall on all day. It is nice
that it doesn't tie up a phone line and it is also nice that I don't have
wires all over the place. When I had to move to a different room because
the guy who was assembling my furniture kicked me out of my office, it was
nice that I could take the laptop with the Ricochet modem to another room. 


<h3>
<a NAME="Conclusion"></a>Conclusion</h3>
The Ricochet modem is good for connecting to the internet and is a must
for a traveling independent consultant. I don't work for or get paid by
Ricochet or the service providers for Ricochet, so my opinion isn't skewed. 
It is easy to setup, with just a few modifications. If you cannot afford
it as a business expense, don't do it and get a DSL line instead for 
personal use because it is not going to be as fast as DSL and it can be more
expensive than DSL. There are bonuses and negatives to getting the Ricochet modem. 
If we ever get to the point where the speed gets upto 500 Kbps, then DSL
has no real advantage for me (except in the Bay Area getting a fixed ip address
with DSL seems to be $30 more a month which is a lot cheaper than what I paid
for to get a fixed ip address using Cable Modems in Columbus, Ohio). 
<P>
<i> Mark works as an independent consultant donating time to causes like
GNUJobs.com, writing articles, and writing free software.</i>











<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Mark Nielsen.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->


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

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

<center>
<H1><font color="maroon">When Apache Redirect Doesn't Work the First Time</font></H1>
<H4>By <a href="mailto:python@kepnet.com">Mark Nielsen</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<p><!-- END header -->
<ol>
<li>
<a href="#REF">References</a></li>

<li>
<a href="#Introduction">Introduction</a></li>

<li>
<a href="#problem">The Problem with Redirect</a></li>

<li>
<a href="#perl">Using a Perl script</a></li>

<li>
<a href="#rewrite">Using the mod_rewrite module for Apache</a></li>

<li>
<a href="#redirect">Using Redirect with Virtual Host</a></li>

<li>
<a href="#Conclusion">Conclusion</a></li>
</ol>


<h3>
<a NAME="REF"></a>References</h3>

<ul>
<li><a href="http://httpd.apache.org/"> Apache webserver</a></li>
<li> <a href="http://httpd.apache.org/docs/mod/mod_rewrite.html">Module mod_rewrite
                        URL Rewriting Engine</a></li>
<li> <a href="http://www.perl.com">Perl programming language</a>
<li><a href="http://www.gnujobs.com/Articles/">Mark's other articles</a>
<li><a href="http://perl.apache.org/">The Apache/Perl Integration Project</a>
</ol>


<h3>
<a NAME="Introduction"></a>Introduction</h3>
Apache has been a growing project for many years. It is personally
amazing to me how Apache is so powerful, flexible, and easy to configure for
a programmer. There is so much documentation about how to configure and do
things in Apache, other commercial webservers just can't compare. Apache
makes webserving fun for programmers. There are a lot of things you can test
and tinker with. 
<p>
Along with the growing, comes new ways of doing things without getting rid
of the old ways of doing things. I have a problem with my computer at 
<A HREF="http://gnujobs.com">gnujobs.com</A>. 
Basically, I need to forward every request for 'http://www.tcu-inc.com/mark/articles'
to 'http://www.gnujobs.com/Articles'. I tried the Apache 
<a href="http://httpd.apache.org/docs/mod/mod_alias.html#redirect">
Redirect directive</a>, but it didn't work. So, I had to figure out why it didn't work
and to see if there was any way around it. 

<h3>
<a NAME="problem"></a>The Problem with Redirect</h3>
The problem is, 'Redirect' didn't work for me when I tried to forward
'http://www.tcu-inc.com/mark/articles' to 'http://www.gnujobs.com/Articles'
since both websites where running on the same webserver. However, I found out
later, and it was obvious when I thought about it twice, 
I was using Redirect incorrectly. Nevertheless, it set me on a trip to 
get reacquainted with mod_rewrite. The solutions I had were
<ol>
<li> Use a Perl script.</li>
<li>Use mod_rewrite with Virtual Host</li>
<li>Correctly use Redirect with Virtual Host</li>
</ol>


<h3>
<a NAME="perl"></a>Using a Perl script with Virtual Host</h3>
This was my first solution after I couldn't get Redirect to work right. 
The only reason why I used it was because it was quick and dirty. It is
actually fairly complex because you have to understand Perl programming, 
what "Location" does, and how to get a Perl script to execute with your
Apache webserver. Besides that, it was simple for me to do because I have
done similar things a million times over. 
<p>
The nice thing about using a Perl script, is that you don't have to
recompile the Apache server. You do have to change the configuration slightly.
You don't have to install mod_perl, but if you do, the configuration
can be slightly different if you want to cache the perl script. 
Also, this can be done is any programming language, not just Perl. 
<p>
I had to change the httpd.conf file slightly:
<pre>
&lt;VirtualHost 206.21.120.103&gt;
ServerAdmin info@gnujobs.com
ServerName www.tcu-inc.com
DocumentRoot /www/htdocs/

ScriptAlias /mark/articles "/www2/TCU.pl"
&lt;/VirtualHost&gt;
</pre>
<p>
The ScriptAlias is the key part here. 
It redirects all requests from /mark/articles
to the TCU.pl perl script. 
<p>
And the perl script looked like this,
<pre>
#!/usr/bin/perl


print "Location: http://www.gnujobs.com$ENV{'REQUEST_URI'}";
</pre>
$ENV{'REQUEST_URI'} is the key part here. It is an environment
variable that is equal to the file asked for
on the www.tcu-inc.com webserver. The perl script takes the file asked for, and
then redirects the browser to the new website. 

Also, I did a "chmod 755 TCU.pl" on the perl script to make sure it was
executable.
<p>



<h3>
<a NAME="rewrite"></a>Using the mod_rewrite module for Apache</h3>
Aaron Bush from <a href="http://www.colug.net">COLUG</a> is responsible for
getting me to do it in mod_rewrite. I didn't like my Perl solution, and knew
I could use mod_rewrite to do it, but I was being lazy. 
I knew I should do it in mod_rewrite,
and Aaron asked me "Why don't you use mod_rewrite?".
Feeling lazy, I was
unhappy, for I knew that what separates the men from the boys can be
issues like this, so I said to myself "screw it, I haven't used mod_rewrite
in a long time, let me do it the right way". 
<p>
You have to have mod_rewrite compiled into Apache in order to
use this option. Mod_rewrite is a nice module that 
"provides a rule-based rewriting engine to rewrite requested URLs on the fly".
It is a very powerful module, and is essential to learn if you want to become a true
webmaster or web programmer. It is not essential that you use it, but that
you know what it can do so that you can present the options to your boss
when you want to do weird things with your webserver. 
<p>
I compiled mod_rewrite into Apache and applied this configuration option
to httpd.conf.
<pre>
&lt;VirtualHost 206.21.120.103&gt;
ServerAdmin info@gnujobs.com
ServerName www.tcu-inc.com
DocumentRoot /www/htdocs/

RewriteEngine on
RewriteCond %{HTTP_HOST}  ^www\.tcu\-inc\.com$
RewriteRule ^(/articles)(.*)  http://www.gnujobs.com/Articles$2 [R]
&lt;/VirtualHost&gt;
</pre>

RewriteCond sets the condition for which we are going to use mod_rewrite, which
basically says pay attention to the webserver if www.tcu-inc.com is the base
website name being used. RewriteRule takes the conditions (everything at www.tcu-inc.com)
and says that if the requested file starts with "/articles" redirect it to 
www.gnujobs.com. The "$2" corresponds to "(.*)". The rest
of the requested file after "/articles" is equal to "(.*)". [R] means "Take this
match and redirect it".



<h3>
<a NAME="redirect"></a>Using Redirect with Virtual Host</h3>
After I figured out how to redirect www.tcu-inc.com to gnujobs.com with
the other two methods, I realized
I was doing a mistake with the standard "Redirect". I wasn't putting the
Redirect command into the VirtualHost section. Once I did that, it worked fine. 

<pre>
&lt;VirtualHost 206.21.120.103&gt;
ServerAdmin info@gnujobs.com
ServerName www.tcu-inc.com
DocumentRoot /www/htdocs/

Redirect /mark/articles http://www.gnujobs.com/Articles
&lt;/VirtualHost&gt;
</pre>



<h3>
<a NAME="Conclusion"></a>Conclusion</h3>
I did a lot of work for nothing, but I made this nice article explaining different
options for other people to learn from. Here are my suggestions about which of these
3 methods you should use:
<ol>
<li> If you don't forsee ever having programmers work on your website, use
the standard Redirect command.</li>
<li> If you are a programmer or a true webmaster, then please use mod_rewrite.
If you standardize on using mod_rewrite, you might find other uses for it as well
which you might not realize unless you have had previous practice with mod_rewrite. </li>
<li> I don't know why you would want to use a Perl script to do this, unless you
want to record certain stats (which are possible in other ways) or do something
else that is weird. Using a Perl script would just add more overhead. If you
used it with mod_perl, you might end up using more memory because of caching.
I wouldn't use a Perl script to do this, although that was my first working
solution. Bad solutions are good only in the fact that you at least have
something working. 
</ol>

<i> Mark works as an independent consultant donating time to causes like
<A HREF="http://GNUJobs.com">GNUJobs.com</A>, writing articles, and writing 
free software.</i>











<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Mark Nielsen.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->


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

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

<center>
<H1><font color="maroon">Learning Perl, part 1</font></H1>
<H4>By <a href="mailto:ben-fuzzybear@yahoo.com">Ben Okopnik</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<p>If you've been using Linux for any length of time, you've surely heard
of Perl; probably even run a number of scripts, perhaps without even knowing
it. Programs like "inews", "mirror", "debconf", "majordomo", "sirc", and
a host of others are written purely in Perl. Taking a quick "zgrep" through
the "Packages.gz" file in the Debian distro tells me that 382 of the packages
depend on Perl (meaning that a critical part of that package is written
in it), and 28 other packages either suggest or recommend it.
<br>&nbsp;
<p><b>So, What's It Good For?</b>
<p><tt>"Perl is great at text-processing, and it's great at tying and integrating
things together. To a scripting language, all those different elements
look the same."</tt>
<br><b><tt><font size=-1>&nbsp;-- John Ousterhout, author of the Tcl scripting
language</font></tt></b>
<p>"Perl" is supposed to stand for the "Practical Extraction and Report
Language". Right: bo-oring, but I guess that's what you've got to have
if you're going to convince $HUMONGOUS_CORP to use it. Actually, Larry
Wall <tt>&lt;larry@wall.org&gt;</tt> (the author of Perl) says in the Perl
man page: "Perl actually stands for Pathologically Eclectic Rubbish Lister,
but don't tell anyone I said that." Umm... OK, Larry. Not a word out of
me.
<p>Perl has been variously referred to as "A scripting language with delusions
of full language-hood", "The Swiss Army Chainsaw of Unix", "The duct tape
of the Web", and other equally, umm, complimentary names. It has been used
to write single-line scripts, fast-executing programs, large projects (Amazon.com's
entire editorial production and control system, Netscape's content management
and delivery system, the Human Genome Project's DNA sequencing and project
management, etc.), and millions of quick programs that do an amazing variety
of things.&nbsp; Perl can also emulate a number of common Unix system utilities
(hint: if you're looking at having to learn 'awk', 'sed', 'grep', and 'tr',
I'd suggest starting in on Perl, instead. All the functionality, much faster,
and you'll never outgrow the capabilities. Sure wish I'd known that, way
back when...)
<p>As you would expect of any modern language, Perl allows you to do object-oriented
programming. It also handles networking (sockets, etc.), is highly portable
(a well-written script will run on Linux, BSD, Solaris, DOS, Win9x, NT,
MacOS, OS/2, AmigaOS, VMS, etc. without modification), and has a very short
write/debug cycle - since there's no compilation required, you just write
the changes and run the script. There's a tremendous wealth of modules
(pre-built Perl routines) available to perform just about any task; the
Comprehensive Perl Archive Network (CPAN) is one of the best resources
a Perl programmer can have.
<br>&nbsp;
<p><b>Yeah, But What Is It <u>Really</u>?</b>
<p>Good question. I hope that, after using it for a year or so, <b>you</b>
can tell <b>me</b>. A description of anything is a container... and I'm
still trying to find one big enough to fit Perl (preferably one with a
strong lockable lid.)
<br>&nbsp;
<p><b>What Kind Of Things <u>Isn't</u> Perl Good For?</b>
<p>Hmmm. I wouldn't set out to write a GUI word processor, a video game,
or a graphic browser in it. Perl can indeed do glitzy front ends via its
interfaces to many other languages, so you <u>could</u> do all of those
things - but in my opinion, there are more efficient ways to do them in
other languages. "To a man with a hammer, every problem looks like a nail"
- let the programmer beware!
<p>Note, also, that Perl itself isn't written in Perl; neither is the Linux
kernel. Low-level stuff of that sort is best left to C/C++ with some assembler
thrown in; 'the right tools for the right job' should be every programmer's
motto.
<br>&nbsp;
<p><b>One Final Warning Before Pulling The Ripcord</b>
<p>If you know a bit of Perl, and see something in this series that 'Aint
The Way I Larned It', just remember Perl's motto: There's More Than One
Way To Do It. Usually abbreviated TMTOWDI, and pronounced "tim-today",
it is a core philosophy of Perl. Of course, corrections of any obvious
errors are welcome.
<p>

<p>Those of you who read my earlier series on shell scripting may remember
that a script starts out with the so-called "hash-bang" or "shebang" line:
<p><tt>#! /bin/bash</tt>
<p>This tells the shell to spawn a subshell in which the following code
will be executed by the specified program. This is also what's needed for
Perl scripts - the first line must be
<p><tt>#! /usr/bin/perl</tt>
<p>or whatever is the correct path to your "perl" executable.
<p>Note the requirements for a hash-bang:
<p><b>1) It must be the first line in the script.</b>
<br><b>2) The hash (#) must be the first character on the line, and there</b>
<br><b>&nbsp;&nbsp; cannot be anything between it and the bang (!).</b>
<br><b>3) You must use the absolute path, not just the executable name.</b>
<p>So, let's try writing our first Perl script:
<p>

<br><tt>#!/usr/bin/perl</tt>
<br><tt># "goodbye" - a modern, high-angst replacement for "Hello World"</tt>
<p><tt>print "Goodbye, cruel world!\n";</tt>
<br><tt>unlink $0;</tt>
<br>

<p>Well... at least it says "goodbye" before going away; Ms. Manners would
be proud. What did we do here? Several things that are rather obvious:
first, the "hash-bang"; next, a line that tells us what the script does
- another thing that carries over from shell scripting, and is an excellent
idea (there's no such thing as too many comments in the code!) Next, we
print the message using the `print' function. Note the "\n" at the end
of the string: Perl does not automatically provide you with a line-feed,
so you get to decide whether you want one or not. Also, note the semi-colon
at the end of the statement: just like C, Perl demands those, and Woe Betide
The Hapless Programmer Who Forgets! Actually, Perl's error checking is
pretty good stuff, with relatively readable messages; it's just that semicolons,
being statement separators, often cause the error to be reported as being
on the next line down. If you're aware of that quirk, it's not a big deal.
Better yet, just remember to use the semicolons.
<p>The last line is what does the evil deed of erasing the file - "goodbye
cruel world" indeed. The "$0" is simply a reference to the name of the
script being executed, and "unlink" does the same thing as "rm". Note that
"$0" is a lot more useful than "goodbye" or even "./goodbye" - no matter
what the file has been named, "$0" returns that name.
<br>&nbsp;
<p><b>Oh, By The Way: Some Code Guidelines</b>
<p>Far be it from me to claim perfection in writing code: on past occasion,
I've done "write-only" code that would make anyone trying to read it turn
various colors. The thing is, I'm constantly trying to improve - and I'd
surely like to see that idea take hold.
<p>Perl treats "white space" - tabs and spaces - with the contempt it deserves,
i.e., it's ignored. Because of this, you can structure your Perl code to
convey the idea of what it is you're doing. Just to give one quick example:
<p><tt>@boats = ("Aloa", "Cheoy Lee", "Pearson", "Mason", "Swan", "Westsail",
"S2", "Petersen", "Hereshoff");&nbsp; # List of sailboats</tt>
<p>Here, we've filled an array called `@boats' with sailboats. OK, that
works - but it could be more understandable:
<p><tt>@array = ("Aloa",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # French OSTAR/IOR
boat</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cheoy Lee",&nbsp;&nbsp;
# Comfortable but expensive</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Pearson",&nbsp;&nbsp;&nbsp;&nbsp;
# Strong but rather heavy</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Mason",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Well designed, but a bit of a pig</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Swan",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Classy boat - if you've got the money</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Westsail",&nbsp;&nbsp;&nbsp;
# Wetsnails are OK, for double-enders</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "S2",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Nice bay boats - not for offshore use</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Petersen",&nbsp;&nbsp;&nbsp;
# Steel world cruiser, roomy but slow</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Hereshoff");&nbsp;
# Fast and gorgeous; cramped and expensive</tt>
<p>These habits apply to more than just Perl. Most modern languages allow
additional whitespace in order to make the code human-readable. As I go
through this series, I'll do my best to demonstrate at least my own version
of good coding style; I'd like to encourage everyone to make it a consideration
in writing their own code.
<br>&nbsp;
<p><b>Variables</b>
<p>In Perl, the focus is "ease of use". It is a so-called "loosely-typed"
language, where the variable definitions are not rigidly forced into straightjackets;
in fact, there's no way to define a variable that will <b>only</b> hold
a positive 32-bit floating point number.
<p>The three types of variables in Perl are <u>scalars</u>, <u>arrays</u>,
and <u>hashes</u>. Despite the scary names, they're all rather simple:
just variables that contain different arrangements of data.
<p><b>scalars</b> - numbers, strings, or references
<br>A scalar variable is denoted by a `$' sign, i.e. <tt>$num, $joe, $pointer</tt>
<br>Examples:
<br><tt>"0.0421", "Joe's glove", memory location "0xA000"</tt>
<p><b>arrays</b> - sequentially-numbered lists of scalars
<br>An array variable is denoted by an `@' sign, i.e. <tt>@v, @list, @variable</tt>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example:
<br><tt>&nbsp;&nbsp; 0 - "Sunday"</tt>
<br><tt>&nbsp;&nbsp; 1 - "Monday"</tt>
<br><tt>&nbsp;&nbsp; 2 - "Tuesday"</tt>
<br><tt>&nbsp;&nbsp; 3 - "Wednesday"</tt>
<br><tt>&nbsp;&nbsp; ...</tt>
<p><b>hashes</b> - key-referenced lists of scalars
<br>Hashes are denoted by '%', i.e. <tt>%people, %x, %this_is_a_hash</tt>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example:
<br><tt>&nbsp;&nbsp; resident - "Sherlock Holmes"</tt>
<br><tt>&nbsp;&nbsp; addr&nbsp;&nbsp;&nbsp;&nbsp; - "221B Baker Street"</tt>
<br><tt>&nbsp;&nbsp; code&nbsp;&nbsp;&nbsp;&nbsp; - "NW1"</tt>
<br><tt>&nbsp;&nbsp; city&nbsp;&nbsp;&nbsp;&nbsp; - "London"</tt>
<br><tt>&nbsp;&nbsp; country&nbsp; - "GB"</tt>
<br><tt>&nbsp;&nbsp; job&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - "sleuth"</tt>
<br><tt>&nbsp;&nbsp; ...</tt>
<p>Note that, while arrays are stored in numerical order, hashes are not
- retrieving the first element of a hash will often have nothing to do
with the first element you loaded into it. Hash elements are referred to
by their keys, not their position in the structure.
<p>Within these three data types, you can contain (or point to) anything
you want - and access it easily.
<p>Another important note: $a, @a, and %a are completely unrelated to each
other. They are in different <u>name spaces</u>. I am careful not to use
visually conflicting names like these in my programs, especially since
things like
<tt>$a[0]</tt> (a reference to the 1st element of the @a array)
exist - but this is something you should be aware of.
<br>&nbsp;
<p>Given that variables can contain different types of data - numeric and
string - we're going to need operators that work for both types. Perl provides
these, and you should remember which type goes with what:
<p><tt>&nbsp;&nbsp; Operator&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Num&nbsp;&nbsp;&nbsp;&nbsp; Str</tt>
<br><tt>&nbsp;&nbsp; --------------------------------------</tt>
<br><tt>&nbsp;&nbsp; Equal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eq</tt>
<br><tt>&nbsp;&nbsp; Not equal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
!=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ne</tt>
<br><tt>&nbsp;&nbsp; Less than&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lt</tt>
<br><tt>&nbsp;&nbsp; Greater than&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gt</tt>
<br><tt>&nbsp;&nbsp; Less than or equal to&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; le</tt>
<br><tt>&nbsp;&nbsp; Greater than or equal to&nbsp;&nbsp; >=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ge</tt>
<p>Easy mnemonic - when comparing letters (strings), use letters.
<p>Since I like to give concrete examples, here's a way to give yourself
gray hair and a nervous breakdown:
<br>

<br><tt>#!/usr/bin/perl</tt>
<br><tt># A political evaluation script</tt>
<p><tt>$a = "Al";</tt>
<br><tt>$b = "George";</tt>
<p><tt>if ( $a > $b)&nbsp;&nbsp; { print "$a would make a better President.\n";
}</tt>
<br><tt>if ( $a &lt; $b)&nbsp;&nbsp; { print "$b would make a better President.\n";
}</tt>
<br><tt>if ( $a == $b)&nbsp; { print "$a or $b, there's no difference...\n";
}</tt>
<br>

<p>Hm. The output says that there's no difference. This may reflect political
reality, but what about our comparisons?... oh yeah. We should have used
string operators, huh?
<p>

<br><tt>#!/usr/bin/perl</tt>
<br><tt># A political evaluation script</tt>
<p><tt>$a = "Al";</tt>
<br><tt>$b = "George";</tt>
<p><tt>if ( $a gt $b)&nbsp;&nbsp; { print "$a would make a better President.\n";
}</tt>
<br><tt>if ( $a lt $b)&nbsp;&nbsp; { print "$b would make a better President.\n";
}</tt>
<br><tt>if ( $a eq $b)&nbsp;&nbsp; { print "$a or $b, there's no difference...\n";
}</tt>
<br>

<p><u>Now</u> the comparison operators work properly (and the real-world
logic is backwards... but I digress.)
<p>By the way - why is it that Perl decided that "Al" was the same as "George"
in the first example? Since when do programs have political opinions?
<p>The reason is actually an important one - it has to do with the way
that Perl separates "true" from "false". Given that all of our tests -
"if", "while", "until", etc. depend on that distinction, we need to understand
it.
<p><b>"0" is false, whether it is a number or a string.</b>
<br><b>All undefined variables (those that have not had a value assigned
to them) are false.</b>
<br><b>An empty string - "" or '' - is false.</b>
<br><b>Everything else is true.</b>
<p>All right, here's some tricky stuff - look at these values and decide
whether they're true or false:
<p><tt>"00"&nbsp;&nbsp;&nbsp; "-1"&nbsp;&nbsp;&nbsp; " "&nbsp;&nbsp;&nbsp;
"5 - 5"</tt>
<p>See note <a href="#1">[1]</a> at the end of this article for the answers.
<br>&nbsp;
<p>Another issue that is important is variable interpolation, which is
a way of determining whether something in quotes gets interpreted or not.
Here's an example:
<p><tt>$name =&nbsp; 'Bessie';</tt>
<br><tt>print&nbsp;&nbsp;&nbsp; 'Our cow is named $name.';</tt>
<p>Oops. The output reads
<p><tt>Our cow is named $name.</tt>
<p>I don't think any self-respecting cow would come if called something
like that (I won't even mention the difficulty of pronouncing it.) So,
how do we get Bessie to come to us?
<p><tt># Note the double quotes where the singles used to be!</tt>
<br><tt>$name =&nbsp; 'Bessie';</tt>
<br><tt>print&nbsp;&nbsp;&nbsp; "Our cow is named $name.";</tt>
<p>Successful animal husbandry (and those of you thinking dirty thoughts,
<b>stop
it</b>) via Perl. I <u>told</u> you you could do anything.
<p>What if we wanted to print the variable name? Perl makes that easy,
too.
<p><tt>$joe =&nbsp;&nbsp; "Joe";</tt>
<br><tt>print&nbsp;&nbsp;&nbsp; "The variable \$joe contains the value
$joe.";</tt>
<p>We can print any <u>metacharacter</u>, that is, characters that have
a special meaning in Perl, by <u>escaping</u> them - that is, preceding
them with a backslash. Take a look at this:
<p><tt>$joe =&nbsp;&nbsp; "Joe";</tt>
<br><tt>print&nbsp;&nbsp;&nbsp; "The variable \"\$joe\" contains the value
\"$joe.\"";</tt>
<p>Uh... TMTOWDI:
<p><tt>print&nbsp;&nbsp;&nbsp; 'The variable "$joe" contains the value
"', $joe, '".';</tt>
<p>Take your pick; just be sure you understand the difference. Note that
separate values in the "print" statement take a comma as a separator -
without one, it has a completely different meaning, which we'll discuss
in a future article.
<p>Before we wrap this up, one important consideration: when creating your
script file, always use the "-w" parameter as part of your hash-bang -
<p><tt>#! /usr/bin/perl -w</tt>
<p>This will generate warnings and tell you where the problems are in your
script. Be sure to use it if you're a Perl beginner... and be <u>doubly</u>
sure to use it if you're a Perl expert. The errors don't go away as you
progress; they just grow smarter. :)
<br>&nbsp;
<p><b>Wrap-up</b>
<p>This time around, we took a bit of a journey, skipping lightly over
the rocks and shoals of a simple intro. Next month, we'll get a little
deeper into it; perhaps explore arrays and hashes, and maybe dive head-first
into the incredibly powerful "regular expressions", or regexes of Perl.
My suggestion, meanwhile, is to try a few of the things we've talked about,
maybe do a little experimentation on your own - I've found that the best
way to learn a language is to hack until I hit the limits of my knowledge,
then bring my frustrations to someone who knows more than I do. You can't
get any good answers if you don't even know the questions.
<p>Happy Perl hacking!
<br>&nbsp;
<p>Ben Okopnik
<br><tt><font size=-1>perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\141\156".</font></tt>
<br><tt><font size=-1>"\157\164\150\145\162\040\120\145\162\154\040\110\141\143\153\145\162".</font></tt>
<br><tt><font size=-1>"\042\040\076\040\057\144\145\166\057\164\164\171";`$@`'</font></tt>
<br>

<br><a NAME="1"></a><b>Note [1]</b>: All true. None of them fit the "false"
categories: "00" is <u>not</u> the same as "0"; neither is "-1". A space,
" ", is not the same as an empty string (""), and "5 - 5", unless <u>evaluated</u>,
is not "0".
<p>References: "Perl: The Complete Reference", Martin C. Brown
<p>Relevant Perl man pages (available on any pro-Perl-y configured system):
<p><tt><font size=-1>perl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - overview&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
perlfaq&nbsp;&nbsp; - frequently asked questions</font></tt>
<br><tt><font size=-1>perltoc&nbsp;&nbsp; - doc TOC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
perldata&nbsp; - data structures</font></tt>
<br><tt><font size=-1>perlsyn&nbsp;&nbsp; - syntax&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
perlop&nbsp;&nbsp;&nbsp; - operators and precedence</font></tt>
<br><tt><font size=-1>perlrun&nbsp;&nbsp; - execution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
perlfunc&nbsp; - builtin functions</font></tt>
<br><tt><font size=-1>perltrap&nbsp; - traps for the unwary&nbsp;&nbsp;
perlstyle - style guide</font></tt>
<p><tt><font size=-1>"perldoc" and "perldoc -f"</font></tt>




<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Ben Okopnik.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->


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

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

<center>
<H1><font color="maroon">Booting Linux from the NT Boot Menu</font></H1>
<H4>By <a href="mailto:p_padala@yahoo.com">Pradeep Padala</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<p>
Why an article on Linux in an NT boot menu? We have HOWTOs, don't we?
The HOWTOs give step by step instructions, but unfortunately
they don't provide everything we want. They are geared towards people who are
new to Linux  and are very good at explaining things to
newbies. But when it comes to doing something out of the ordinary,
we're stuck. This article is a meant to fill that void.
</p>

<p>
To start with one, day I got the crazy idea that it would be nice to
have a single boot loader to boot everything from one manager instead of
having both a LILO and an NT boot manager. So which manager should I
choose? I chose NT boot manager because when we install LILO and
boot NT from it, NT still presents its own boot menu and it's annoying
enough
to need to be asked two times to boot the right operating system . So I
thought of removing LILO and using NT loader to present a nice menu for
booting all the operating systems I have. Okay then, How do we do it? I
searched through the HOWTOs. The mini HOWTO <a href="http://www.linuxdoc.org/HOWTO/
mini/Linux+NT-Loader.html">HOWTO NT OS Loader + Linux mini-HOWTO</a>
gives a good overview of the
process. But unfortunately my brain couldn't grasp the concept. As a
result, when I first followed the steps I got an unusable system. After
3 days of hard work and rebooting and fiddling with an unusable system
3 times, concepts began to become clear.</p>

<P> Here we Go.

<h3>NT Boot Loader</h3>
<p>
The NT boot loader loads the operating system image by reading the
initialization file boot.ini. Have a look at it now. It contains something
like:
</p>
<pre>
		[boot loader]
		timeout=30
		default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
		[operating systems]
		multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00"
		multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00 
		[VGA mode]" /basevideo /sos
</pre>
<p>
this says to boot the operating system from the partition as
mentioned. That is it takes the first 512 bytes of information which
is required for booting the corresponding OS. So how do we boot Linux
using this concept. Simple! we can have the first 512 bytes of Linux
boot partition (the boot sector for Linux) in a file and give it to
NT boot manager. We can modify the boot.ini file as follows:</p>

<pre>
		[boot loader]
		timeout=30
		default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
		[operating systems]
		multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00"
		multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version
		4.00 [VGA mode]" /basevideo /sos
		<b>C:\boot.lnx="Redhat Linux 6.2"</b>
</pre>
<p> Where boot.lnx is the file which contains the required 512 bytes.
But
we have to get the 512 bytes. How do we do that? The HOWTO gives a
good example of how to do it. Here we need the first 512 bytes of
Linux boot partition which says to NT just to boot Linux. So we make
a dummy lilo.conf file and pass it to LILO and tell it to install the
boot sector for linux at the top of Linux partition. Then we peel the
first 512 bytes from this and put it into a file and give it to NT.
Then we install LILO in MBR and take care of loading WINNT as the
default OS. We create the lilo.conf to write NT as default and
install it. 
</p>

<h3>Let's do it.</h3>

<p>
First let me explain my example environment. I loaded Red Hat out
of the box with the default options during installation. It installs
LILO in MBR and updates it according to the options given during
installation regarding what other OSes (such as NT) you have. Here I
have
NT only. When I reboot after installation, LILO comes up with two
options to boot--Linux and DOS. When I enter DOS, it goes into NT boot
manager.
What are we trying to make? We want to make LILO start the NT boot
   manger as default and in NT boot manager, we want to have an option
to
   boot Linux.</p>

<p>
What are we trying to make? We want to make LILO to start NT boot manger as
default and in NT boot manager we want to have an option to boot Linux.
</p>

<p>
We start here. First boot into Linux. Make a dummy lilo.conf file like
this:

Copy lilo.conf to lilo.dummy and open lilo.dummy with vi. edit it to look
some thing like this:
</p>

<pre>
		# lilo.dummy file
		boot = /dev/hda3 	# Linux resides in /dev/hda3 in my machine.
		                        # replace it with the partition in which you installed linux
		timeout=0 		# Time out zero to avoid lilo waiting for us
		vga = normal
		read-only
		default=linux
		image = /boot/vmlinuz
		label = linux
		root = /dev/hda3
</pre>

<p>
Then execute LILO with this dummy file as the argument with the command. This
installs linux boot sector on /dev/hda3.
</p>
/sbin/lilo -C lilo.dummy<br>
Peel off the first 512 bytes with this command.<br>
dd if=/dev/hda3 of=boot.lnx bs=512 count=1 <br><br>
We copy the file boot.lnx to c drive. If c drive is mounted as /win/c we
copy with the command <br><br>
cp boot.lnx /win/c
<br>
or mount c drive and copy the file as
<br>
mount /dev/hda1 /win/c<br>
cp boot.lnx /win/c<br>
<br>
Then change the boot.ini file as indicated here.
<br>
<pre>
		[boot loader]
		timeout=30
		default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
		[operating systems]
		multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00"
		multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version
		4.00 [VGA mode]" /basevideo /sos
		C:\boot.lnx="Redhat Linux 6.2"
</pre>
<h3>Installing LILO in MBR.</h3>
<p>
    Just change the lilo.conf file to reflect winNT as the default OS with
no delay in booting into it and tell LILO to install it in MBR.
</p>
<pre>
		boot = /dev/hda                 # Install it in MBR
		timeout=0
		vga = normal
		read-only
		default=win                     # We need NT as default
		image = /boot/vmlinuz		# We can remove this entry with out any
						#problems as we will not be booting Linux from LILO
	 	label = linux
		root = /dev/hda3
		other = /dev/hda1
		label = win
</pre>
<p>
install LILO again. Before rebooting, make sure that you have a rescue disk
at hand. You can use the Red Hat installation disk as the rescue disk.
See the Pitfalls section to find out how to use to for rescue. or 
You can make a boot disk with the command
</p>
mkbootdisk,
<br>
<br>
which you can use for rescue. See the <a href=http://www.linuxdoc.org/HOWTO/Bootdisk-HOWTO/index.html>Bootdisk-HOWTO</a> for more details on how to make boot disk.<br><br>
Then reboot and watch the magic.
<br>
<p>
    Are you still unsatisfied? I know what is bothering you. You want LILO to
be eliminated completely. Do this. Get a DOS floppy that has fdisk and
boot the machine with the floppy. Then run "fdisk /mbr" to overwrite the
master boot record. I don't know what happens with this option. I am still
unsure about
this and if any one knows what this option does, please <a href="mailto: ppadala@hss.hns.com">
write to me</a>.
</p>
<ol><lh><h3>Pitfalls:</h3>
<li>
<p>
Remember every time you change your kernel or make any changes to
lilo.conf, you have to follow the process again and make a new copy of
boot.lnx and give it to NT.
</p>
<li>
<p>
If you have done some thing wrong and you can't boot Linux, then boot with
the rescue disk and install LILO again as follows:
</p>
(You can use red hat installaion CD as the rescue disk. At the installation menu type rescue and enter)<br><br>
<ul type=disc>
    <li>boot with rescue disk<br>
    <li>mount linux partition<br>
        mount /dev/hda3 /mnt<br>
    <li>change root<br>
        chroot /mnt<br>
    <li>change lilo.conf to some thing sane like
    <pre>
        boot = /dev/hda
        timeout=500
        prompt
        vga = normal
        read-only
        default=linux
        image = /boot/vmlinuz
            label = linux
            root = /dev/hda3
        other = /dev/hda1
            label = win
     </pre>
     <li>install lilo<br>
         /sbin/lilo<br>
     <li>do a sync and unmount /dev/hda3<br>
         sync<br>
         umount /mnt<br>
     <li>Reboot<br>
         /sbin/reboot<br>
</ul>
</ol>




<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Pradeep Padala.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->


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

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

<!-- END header -->




<img SRC="misc/steffler/penguinInBalloon.gif" height=230 width=200 align=right>
<center>
<h1>
<img SRC="misc/steffler/makingSmalltalk.png" ></h1></center>

<center>
<h3>Bags o' Fun</h3>
<H4>By <a href="mailto:jagwar@magma.ca">Jason Steffler</a></H4></center>

<H2><a NAME="abstract"></a>Abstract</h2>
&nbsp;&nbsp;&nbsp; For those who haven't read the previous articles, be
sure to read <font size=+1><a href="#statementOfPurpose">the statement
of purpose</a></font> first.&nbsp; This month, we're going to discuss inheritence,
polymorphism, and abstract classes as well as introducing some collection
objects.&nbsp; For those looking to read the whole series locally or information
about upcoming articles, you can
<font size=+1><a href="http://www.magma.ca/~jagwar/makingSmalltalkForwardingPage.html">check
the MST page</a></font>.&nbsp; For those looking for further information
on learning Squeak, here are <a href="http://minnow.cc.gatech.edu/squeak/377">some
good resources</a>.
<h2>
<a NAME="quoteOfTheDay"></a>Quote of the day</h2>
"Why Smalltalk? Smalltalk uses a simplified version of English. Nouns and
verbs. Object are the nouns. Verbs are messages sent from one object to
the next. Easy as 1, 2, 3. It is no longer necessary to write cryptic programs.&nbsp;
This means that almost anyone can learn to write Smalltalk programs."
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Peter William Lount
<h2>
<a NAME="inheritence"></a>Inheritence</h2>
&nbsp;&nbsp;&nbsp; Last month, we were using <b>aPerson</b> object for
illustrative purposes.&nbsp; This month we'll only build on this example
briefly, as it quickly gets too contrived for my liking.&nbsp; Also, this
is a good opportunity to introduce the collection objects of Smalltalk.&nbsp;
We'll return to <b>aPerson</b> next month though, as the emphasis will
be on the building aspect, and not on the object itself.
<br>&nbsp;&nbsp;&nbsp; The notion of inheritence in OO is very similar
to the normal use of this term.&nbsp; Just like a person can inherit certain
characteristics from their parents, so too can objects inherit certain
characteristics from their parents.&nbsp; Objects inherit the methods and
instance variables of their parents, among other things.
<br>&nbsp;&nbsp;&nbsp; To get this discussion going, lets introduce the
object <b>anOrderedCollection, </b>whose class is <b>OrderedCollection</b>.&nbsp;
This is a very common object to use in Smalltalk.&nbsp; An <b>OrderedCollection</b>
is just what it sounds like:&nbsp; it's a collection of objects where order
is important.&nbsp; To better position the topics at hand, it'd useful
to have an idea of how you can use this type of collection:
<p><i>[ex1]</i>
<br>&nbsp;&nbsp;&nbsp; "Inspect this code.&nbsp; Here we're creating a
new
<b>OrderedCollection</b>, and asking it to add 1, then add 2, then
add 3, then finally return yourself"
<br><b>&nbsp;&nbsp;&nbsp; (OrderedCollection new)&nbsp; add: 1; add: 2;
add: 3; yourself.</b>
<p><i>[ex2]</i>
<br>&nbsp;&nbsp;&nbsp; "This is normally not written on one line, but is
written like this:"
<br>&nbsp;&nbsp;&nbsp; <b>(OrderedCollection new)</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add: 1;</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add: 2;</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add: 3;</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yourself.</b>
<p>&nbsp;&nbsp;&nbsp; Here, we're asking the class (remember, this is a
blueprint for creating objects) <b>OrderedCollection</b> to create a new
collection.&nbsp; Then we're asking the new collection to add 1 to itself.&nbsp;
Then we're asking the same new collection to add 2 to itself, then 3, and
then finally we're asking the collection to return itself.&nbsp; You normally
don't have to send that last message to an object, as the default return
is the object itself (we call this the <a href="#articleGlossary">receiver</a>
of the the messages), but the message <b>add:</b> returns the parameter
you're passing, so in this case, if we want to see the <b>OrderedCollection</b>
that we're creating, we need to ask it to return itself as the last message
send.&nbsp; This may be a little confusing; I showed the above snippet
as it explicitly creates a new object.&nbsp; You could get the same results
by inspecting the below two snippets, that don't explictly create a new
object - this is done implicitly from the message sent:
<p><i>[ex3]</i>
<br>&nbsp;&nbsp;&nbsp; "Here, we're asking the <b>OrderedCollection</b>
class to give us a new <b>OrderedCollection</b> object with the values
1, 2, and 3 in it."
<br><b>&nbsp;&nbsp; OrderedCollection with: 1 with: 2 with: 3</b>
<p><i>[ex4]</i>
<br>&nbsp;&nbsp;&nbsp; "Here, we're asking the <b>OrderedCollection</b>
class to give us a new <b>OrderedCollection</b> object with all of the
values 1, 2 and 3<sup><a href="#footnotes">1</a></sup>"
<br>&nbsp;&nbsp;&nbsp; <b>OrderedCollection withAll: #(1 2 3)</b>
<p><i>[ex5]</i>
<br>&nbsp;&nbsp;&nbsp; Now, if you <b>print it</b> to the above code, you'll
see an ASCII representation of the object:&nbsp; <b>OrderedCollection (1
2 3 )</b>.&nbsp; When you inspect the above code, and click on <b>self</b>
you will see:
<br><img SRC="misc/steffler/orderedCollection1.png" height=203 width=273>
<p><i>[ex6]</i>
<br>&nbsp;&nbsp;&nbsp; There are several ways that we could make an ordered
collection with a fourth <b>Integer</b> in it, here's a neat way.&nbsp;
Say that you have this <b>OrderedCollection</b> with only the first 3 integers
in it, and realize 'wups, I actually wanted 4 integers in it.'&nbsp; You
don't have to go back to the code you typed in above and redo it, you can
just ask the object you're inspecting to add a fourth integer to itself:
<br><img SRC="misc/steffler/orderedCollection2.png" height=201 width=272>
<p><i>[ex7]</i>
<br>&nbsp;&nbsp;&nbsp; Highlight the code entered in the bottom pane, and
<b>do
it.&nbsp; </b>Here, you're asking the object itself (<b>self</b>) to add
4 to itself.&nbsp; If you have <b>self</b> highlighted, you'll notice that
it is updated (if you don't have <b>self</b> highlighted, then click on
it to see the updates.&nbsp; You'll see:
<br><img SRC="misc/steffler/orderedCollection3.png" height=199 width=249>
<p>&nbsp;&nbsp;&nbsp; This is an illustration of being able to view and
manipulate objects in real time, which is <b>Immensely Powerful</b>.&nbsp;
If you're coding along and something isn't quite working right, you can
stop execution, grab the troublesome object and see exactly what is going
on.&nbsp; If you want to simulate certain conditions, <u>you can just change
the object directly</u>.&nbsp; For example, say you realized that you shouldn't
have the integer 4, but rather the string 'four', you can click on the
fourth element, delete 4, and tye in <b>'four'</b>, then <b>middle click>accept.
</b>The
fourth element in this collection is now the string <b>'four'.
</b>Try
clicking on the 3rd element, then back to the fourth element to confirm
this, you'll see:
<br><img SRC="misc/steffler/orderedCollection4.png" height=199 width=249>
<p>&nbsp;&nbsp;&nbsp; ...and remember, we did all this without the hassle
of compiling, linking, and running the compiled program!&nbsp; Ok, now
that we have an idea about how to create a collection, we're going to do
something with this collection, lets add up the integers in the collection.&nbsp;
To do this, you can <b>do it</b> the following snippet:
<p><i>[ex8]</i>
<br><b>&nbsp;&nbsp;&nbsp; | anOrderedCollection aSum |</b>
<br><b>&nbsp;&nbsp;&nbsp; aSum := 0.</b>
<br><b>&nbsp;&nbsp;&nbsp; anOrderedCollection := OrderedCollection withAll:
#(1 2 3).</b>
<br><b>&nbsp;&nbsp;&nbsp; anOrderedCollection do: [:anElement | aSum :=
aSum + anElement].</b>
<br><b>&nbsp;&nbsp;&nbsp; aSum inspect.</b>
<p>&nbsp;&nbsp;&nbsp; Here, the lines of code mean:
<br>&nbsp;&nbsp;&nbsp; 1) declare temporary variables
<br>&nbsp;&nbsp;&nbsp; 2) initialize the sum
<br>&nbsp;&nbsp;&nbsp; 3) create a new ordered collection, assign it to
one of the temporary variables
<br>&nbsp;&nbsp;&nbsp; 4) ask the ordered collection to do something for
each element.&nbsp; For each element, we're asking the sum to add the element
to itself.
<br>&nbsp;&nbsp;&nbsp; 5) here, we're asking the sum to open an inspector
on itself (yeah, you can do this programatically - cool eh?)
<p>&nbsp;&nbsp;&nbsp; For the folks with programming experience, you'll
note that we didn't have to worry about bounds checking, or the size of
the collection, or declaring temporary variables to index the collection
- this is all handled by the collection.&nbsp; Very nice and it helps to
reduce errors.&nbsp; We very naturally just asked the ordered collection
to <b>do</b> something with each element.
<br>&nbsp;&nbsp;&nbsp; Back to inheritence now, as the name suggests, <b>OrderedCollection</b>
is a type of <b>Collection</b>, and inherits methods and instance variables
from <b>Collection.&nbsp; </b>To be more precise, it inherits from a class
called <b>SequenceableCollection</b>, which in turn inherits from <b>Collection.</b>&nbsp;
Now, I could use UML, or any number of other industry software modeling
diagrams here, but I want to save time so I'm going to use a textual shorthand
for outlining class relationships - I'll denote inheritence by tabbing,
so indicating the above inheritence looks like this:
<br><b>&nbsp;&nbsp;&nbsp; Collection</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SequenceableCollection</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OrderedCollection</b>
<p>&nbsp;&nbsp;&nbsp; You can think of this as <b>OrderedCollection </b>is
a type of <b>SequenceableCollection</b>, which is a type of <b>Collection.</b>&nbsp;
For example, a creation method we used - <b>withAll:</b> is inherited from
<b>Collection</b>,
I'll show this <a href="#articleGlossary">class method</a> by:
<br><b>&nbsp;&nbsp;&nbsp; Collection</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; >>withAll:</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SequenceableCollection</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OrderedCollection</b>
<p>&nbsp;&nbsp;&nbsp; Both <b>Collection</b>, and <b>SequenceableCollection</b>,
are what we call <a href="#articleGlossary">abstract classes</a> - classes
that would never instantiate an object themselves, but serve as good logical
building points.&nbsp; Here, it doesn't matter if we have an <b>OrderedCollection,
or
</b>a <b>SortedCollection</b>, or a <b>Bag </b>(an unordered collection),
or whatever - we'd want all of them to know how to respond to <b>withAll:</b>.
<u>Here's
the sweet thing:</u>&nbsp; we implement the method that all these classes
should respond to <i>in one spot<b>,</b> and reuse it. </i>So, if you need
to change withAll: for these classes, <i>then there's only one spot to
go to</i>.
<br>&nbsp;&nbsp;&nbsp; If you need to have an exception to the rule, say
you have have a <b>Heap</b><sup><a href="#footnotes">2</a></sup> class
that needs to implement the <b>withAll: </b>method differently, then you
can do what is called <a href="#articleGlossary">overriding</a> the method
in <b>Heap</b>.&nbsp; Adding <b>Heap</b> to our outline, and indicating
abstract classes in italics gives us:
<br><b><i>&nbsp;&nbsp;&nbsp; Collection</i></b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; >>withAll:</b>
<br><b><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SequenceableCollection</i></b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OrderedCollection</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Heap</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
>>withAll:</b>
<p>&nbsp;&nbsp;&nbsp; Note:&nbsp; when we send the <b>withAll:</b> message
to <b>Heap</b> or to <b>OrderedCollection, </b><i>these two classes have
different implementation of the same message</i> - this is known as <a href="#articleGlossary">polymorphism</a><i>.
</i>This
is another one of those esoteric terms that really means something pretty
simple.
<br>&nbsp;&nbsp;&nbsp; The corollary of polymorphism is a very powerful
one though, it allows you to <i>get out of a decision making</i> frame
of mind, and <i>get into a commanding frame</i> of mind.<i> </i>This allows
us to get away from a common procedural programming trait - having lot
of code that is checking stuff and conditionally doing stuff (if it's an
<b>OrderedCollection</b>,
do this, if it's a <b>Heap</b>, do this, if it's a <b>Bag</b>, do this,
etc), and lets us just do stuff.&nbsp; It doesn't matter what type of collection
it is, when we ask it to do <b>withAll:</b>, it will do the right thing!
<br>&nbsp;&nbsp;&nbsp; Finally, if we also add the above mentioned <b>SortedCollection
</b>and<b>
Bag </b>(&lt;groan> here's where this month's title pun comes from ;-),
we get:
<br><b><i>&nbsp;&nbsp;&nbsp; Collection</i></b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; >>withAll:</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bag</b>
<br><b><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SequenceableCollection</i></b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OrderedCollection</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SortedCollection</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Heap</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
>>withAll:</b>
<p><b>&nbsp;&nbsp;&nbsp; </b>It's easy to see how there are lots of opportunities
for reuse here, it's generally a good thing when you can code something
in one spot, and have many objects reuse that one implementation.&nbsp;
That way, when you have to make an udpate, you only update that one spot
and don't have to worry with tracking down many different spots and keeping
the update in synch.
<br>&nbsp;&nbsp;&nbsp; Now we're going to start getting to the question
of how we know what objects are where and how to use them.&nbsp; As with
other topics in this series, I'm introducing this one a bit at a time as
well.&nbsp; A common problem for Smalltalk beginners is that they're overwhelmed
with the rich class library as there are thousands of objects you can use.&nbsp;
To help reduce this problem, I've extended one of the Smalltalk browsers
and made a <b>ScopedBrowser</b>.&nbsp; This is a good example of the reflectiveness
we mentioned earlier - I was able to extend or alter the behavior of the
IDE to suit my needs.&nbsp; This <b>ScopedBrowser</b> will only show you
the classes we need to concentrate on for this article.&nbsp; My intent
is to add to the scope that is being browsed over time as more objects
are introduced.&nbsp; For this time, I've included all the above mentioned
collections objects as well as a couple more collections objects for those
interested (a total of 9 classes).&nbsp; To open this browser, you first
need to file in the <a href="misc/steffler/MakingSmalltalk-Article3.st">MakingSmalltalk-Article3.st</a>
code to your image (<a href="../issue60/steffler.html#puttingItAllTogether">see
article 2 on how to do this</a>).&nbsp;
Then open the browser by doing the snippet:
<p><i>[ex9]&nbsp;&nbsp;&nbsp; [Squeak-only-suspected]</i>
<br><b>&nbsp;&nbsp;&nbsp; ScopedBrowser openBrowserForArticle3</b>
<p>&nbsp;&nbsp;&nbsp; For the read-along folks, this is what you'll see
after navigating to the <b>withAll:</b> method:
<br><img SRC="misc/steffler/scopedBrowser1.png" height=283 width=582>
<br><font size=-1>&nbsp;&nbsp;&nbsp; <i>(Note: I set my browser colour
to purple - the default colour is green, I'll come back to customization
in a future article)</i></font>
<br>&nbsp;&nbsp;&nbsp; To find the <b>withAll:</b> method, click on the
<b>class</b>
button, then <b>Collections-Abstract>Collection>instanceCreation>withAll:</b>
<br>&nbsp;&nbsp;&nbsp; This browser has 5 panes and 3 buttons, from left
to right and top to bottom:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pane 1: shows categories
- these are collections of classes <i>(pun intended)</i>
<br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </i>pane 2: shows classes
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pane 3: shows categories
- these are collections of methods
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pane 4: shows methods
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pane 5: shows Smalltalk
code
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; button 1: toggles the browser
to show the instance methods of the object
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; button 2: toggles the browser
to show the class comments
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; button 3: toggles the browser
to show the class methods of the object
<br>&nbsp;&nbsp;&nbsp; Now, if we step back a little bit, and click on
<b>Collections-Sequenceable>OrderedCollection</b>,
you'll see:
<br><img SRC="misc/steffler/scopedBrowser2.png" height=284 width=581>
<br>&nbsp;&nbsp;&nbsp; Note that the code pane shows who <b>OrderedCollection</b>
inherits from, as well as their instance variables, if you then go back
to the abstract classes and click on <b>SequenceableCollection</b>, you'll
notice that it inherits from <b>Collection</b> just as we discussed.&nbsp;
Take some time poking around these classes and get comfortable with navigating
in this browser.&nbsp; Look for the classes and methods we discussed above.
<br>&nbsp;&nbsp;&nbsp; Finally, I'm going to introduce one more browser
- the hierarchy browser.&nbsp; This one is good when you're concentrating
on hierarchies and inheritence when you're coding.&nbsp; To open it, first
click on <b>OrderedCollection</b> again, then <b>middle-click>spawn hierarchy</b>.&nbsp;
You'll see:
<br><i>[ex10]</i>
<br><img SRC="misc/steffler/hierarchyBrowser1.png" height=318 width=537>
<br>&nbsp;&nbsp;&nbsp; Note, that this browser hasn't been scoped, and
shows the full hierarchy.&nbsp; Notice that Collection inherits from an
object called <b>Object</b> - no surprise here, most things about Smalltalk
are just what you would expect.&nbsp; Finally, the topmost object is <b>ProtoObject</b>,
which implements some really fundamental methods.&nbsp; The question naturally
arises:&nbsp; "What does <b>ProtoObject</b> inherit from?".&nbsp; The answer
is nothing, or <b>nil</b> to be more precise.
<h2>
<a NAME="lookingForward"></a>Looking forward</h2>
&nbsp;&nbsp;&nbsp; The next article will cover the making of aPerson; we'll
go over not only the basics of creating objects, but we'll also discuss
what the Smalltalk code that we're writing means.
<h2>
<a NAME="sweetSqueak"></a>A Sweet Squeak</h2>
This section won't explore/explain code or example, but merely present
a neat thing to try out.&nbsp; This time, we're going to look at downloading
projects.&nbsp; Remember in <a href="../issue59/steffler.html#firstLooks">article
1</a> when we created a new project?&nbsp; Well, you can not only save the project
to transfer across images, but you can drop it on the internet and download
it directly to your image too.&nbsp; Here's an example, do this:
<p><i>[ex11]&nbsp;&nbsp;&nbsp; [Squeak-only-suspected]</i>
<br><b>&nbsp;&nbsp;&nbsp; Project thumbnailFromUrl:&nbsp;&nbsp;&nbsp;&nbsp;
'http://www.squeak.org/Squeak2.0/2.7segments/SqueakEasy.extSeg'</b>
<p>&nbsp;&nbsp;&nbsp; For the read-along folks, you'll see a simple turtle
game project, and when you enter the project you can direct the turtle
by entering Smalltalk code:
<br><img SRC="misc/steffler/turtleGame1.png" height=479 width=639>
<h2>
<a NAME="questionsAndAnswers"></a>Questions and Answers</h2>
These are the answers for questions on previous articles that I could work
through in my limited time available.&nbsp; I picked out the ones I thought
most appropriate for the series.&nbsp; If you want a faster response, or
I didn't get to your question, try posting your question to the comp.lang.smalltalk
newsgroup, or the <a href="http://minnow.cc.gatech.edu/squeak/1">Swiki</a>.
<p><b>Q: How compatible with [VisualWorks, VisualAge, Smalltalk/X, Dolphin,
etc] Smalltalk will the code examples be?</b>
<br>A:&nbsp; Though I'm not writing these articles with code portability
in mind, and I'm not doing any portability testing, much of the basic code
should be compatible.&nbsp; By basic code, I mean things like how collections
are used, how classes are declared, instance variable use, etc.&nbsp; Traditionally
where the different flavours of Smalltalk differ most is in GUI code.&nbsp;
With Squeak specifically, some of the cool stuff we're going to look at
isn't portable to other flavours, for example:&nbsp; the halo stuff, morphic
stuff, and downloading projects.
<br>&nbsp;&nbsp;&nbsp; What I'll start doing though, is any code that I
a priori suspect is Squeak specific, I'll tag with<b> </b><i>[Squeak-only-suspected]</i><b>.&nbsp;
NOTE:&nbsp; </b>this will only indicate my <i>suspicion</i> - I don't plan
on spending time on testing it in different flavours, or searching for
ways to accomplish the same task in a different manner.
<br>&nbsp;&nbsp;&nbsp; This would be a great use of the Linux Gazette's
talkback sections - if other Smalltalkers note what does and doesn't work
in other flavours, they can post this info.&nbsp; Also starting with this
article, I'll start indexing the examples so they're easier to refer to
for this purpose (ie: ex1, ex2).&nbsp; I haven't done this yet, as I wanted
to keep the series informal, but I expect enumerating examples will make
it easier/clearer to post talkbacks.&nbsp; If you don't like the enumerating
- post a talkback.
<h2>
<a NAME="articleGlossary"></a>Article Glossary</h2>
This is a glossary of terms that I've used for the first time in this series,
or a term that I want to refine.&nbsp; <!-- If you don't see a term defined
here, try the ongoing glossary in the local location: <a href="../ongoingSeriesGlossary.html">[LL].</a -->
<br><b>abstract class</b>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A class that would never
instantiate an object itself, but serves as good logical building point
for other classes that do instantiate themselves (concrete classes).&nbsp;
Abstract classes are indicated <i>in italics</i> in class outlines.
<br><b>class method</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>(def1 - simple) A
method that a class implements (as opposed to an instance), usually to
create a new object.&nbsp; I denote a class method by: &gt;&gt;aClassMethod
<br><b>concrete class</b>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A class that would instantiate
an object itself.
<br><b>instance method</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>(def1 - simple) A
method that an instance of an object implements (as opposed to it's class).&nbsp;
I denote an instance method by: &gt;anInstancemethod
<br><b>polymorphism</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>When two different
objects interpret the same message differently by implementing two different
methods.
<br><b>receiver</b>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The receiver of a message
send.&nbsp; The object that receives a message send.&nbsp; For example,
if we say <b>aPerson sing</b>, the receiver of the <b>sing</b> message
is <b>aPerson</b>
<br><b>[Squeak-only-suspected]</b>
<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>This tag is for any code
that I a priori suspect is Squeak specific<b>.&nbsp; NOTE:&nbsp; </b>this
will only indicate my suspicion - I don't plan on spending time on testing
it in different flavours, or searching for ways to accomplish the same
task in a different manner.
<h2>
<a NAME="footnotes"></a>Footnotes</h2>
[1] For those folks who have programming experience, the parameter that
we're passing here is an <b>Array</b>, you can just highlight the array
and inspect it too if you like.&nbsp; The reason I'm not using an <b>Array</b>
for illustrative purposes here, as because they are not as flexible or
user friendly as an <b>OrderedCollection</b>.&nbsp; Where arrays have a
fixed size, an ordered collection grows or shrinks as you need it to.
<br>[2] For those folks never lucky enough to be in a comp sci class that
studies heaps and stacks and other data structures&nbsp; adnauseam, a heap
is a type of binary tree in which the value of each node is greater than
the values of its leaves.
<p>

<h2>
<a NAME="statementOfPurpose"></a>Statement of purpose</h2>
&nbsp;&nbsp;&nbsp; When I wrote the first Making Smalltalk with the Penguin
<a href="../issue51/steffler.html">article
back in March of 2000</a>,
my target audience was experienced programmers who didn't have much exposure
to <a href="#articleGlossary">OO</a> programming or to Smalltalk.&nbsp;
The article's intent was to give an overview of my favourite programming
language on my favourite operating system.&nbsp; Since then, I've had a
fair amount of email asking introductory type questions about Smalltalk
and OO programming.&nbsp; So I thought I'd try my hand at a small series.
<br>&nbsp;&nbsp;&nbsp; The target audience for this series are people new
to OO or new to programming altogether.&nbsp; The intent is to not only
introduce OO programming, but to also spread the fun of Smalltalking.&nbsp;
Why do this format/effort when there's lots of good <a href="http://minnow.cc.gatech.edu/squeak/377">reference
material out there</a>?&nbsp; Two reasons really:&nbsp; 1) Tutorials are
great, but can be static and dated pretty quickly.&nbsp; 2) An ongoing
series tends to be more engaging and digestible.
<br>&nbsp;&nbsp;&nbsp; To help address the second reason above, my intent
is to keep the articles concise so they can be digested in under an hour.&nbsp;
Hopefully, as newbies follow along, they can refer back to the original
article and make more sense of it.&nbsp; I plan on having a touch of advanced
stuff once in a while to add flavour and as before, the articles are going
to be written for read-along or code-along people.
<!-- br>&nbsp;&nbsp;&nbsp; Something new I'm going to try is to make the ongoing
series viewable in a contiguous fashion and downloadable in one chunk for
people who want to browse the series locally.&nbsp; To do this, click on
TOC grapic to at the top of the article.&nbsp; The articles also have 2
sets of links:&nbsp; one set for www links, another set for local links,
indicated as: <a href="#articleGlossary">[LL]</a> for downloaded local
reading.-->
<h2>
<a NAME="whySmalltalk"></a>Why Smalltalk?</h2>
&nbsp;&nbsp;&nbsp; I believe Smalltalk is <b><u>the best</u></b> environment
to learn OO programming in because:
<ul>
<li>
Smalltalk has a very active and very helpful community; when you post a
question to the Smalltalk newsgroups you very often get an answer, unlike
many other newsgroups</li>

<li>
is very easy to learn... one of it's original design intentions was to
be a learning environment for children</li>

<li>
is a pure OO environment and encourages OO programming (as opposed to encouraging
procedural/Object mixed programming)</li>

<li>
cutting your teeth in Smalltalk makes you a better OO programmer in any
other language, because of the previous bullet</li>

<li>
is a portable environment:&nbsp; write once, run anywhere, so people can
learn on whatever OS they're running&nbsp; (as opposed to just the M$ variety)</li>

<li>
can look at and manipulate objects in real time; I haven't seen this ability
in any other environment</li>

<li>
Smalltalk is written in Smalltalk.&nbsp; You can view how the language
is put together to learn the language, and you can change anything that
you don't like about it.</li>

<li>
has garbage collection, no manual memory management, no explicit pointers</li>

<li>
is a literate language; by this I mean the syntax is very simple and is
geared towards programmer readability.</li>

<li>
there's lots of Cool Things that you can do in it that I haven't seen anywhere
else (will have some examples along the way)</li>

<li>
...and best of all: <b><u>it's fun</u></b>.</li>
</ul>
In particular, I'm going to use <a href="http://www.squeak.org/">Squeak</a>
as the playing vehicle.&nbsp; You'll notice this is a different flavour
of Smalltalk than I used in my first article.&nbsp; I've never used Squeak
before, so this'll be a learning experience for me too.&nbsp; The reasons
for this are:
<ul>
<li>
It's a completely opensource project</li>

<li>
It has some Really Cool features that I haven't seen in other flavours
of Smalltalk</li>

<li>
It has a comparitively small footprint and it's very easy to install</li>

<li>
It has a strong <a href="http://minnow.cc.gatech.edu/squeak/1">Swiki site</a>&nbsp;
(a <a href="#articleGlossary">Wiki</a> site hosted in Squeak, hence <b>S</b>queak
<b>Wiki</b>)</li>
</ul>


<h2>
<a NAME="personSampleCode"></a><b>Smalltalk Code</b></h2>
No listings this month




<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Jason Steffler.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->


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

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

<center>
<H1><font color="maroon">Setting Up a Linux Laptop With No CD-ROM Drive</font></H1>
<H4>By <a href="mailto:award@andorra.ad">Alan Ward</a></H4>
</center>
<P> <HR> <P>  

<!-- END header -->




<P>This
article comes mainly from my fiddling around with a laptop I bought
at a great price - US $800 some years ago - but lacking a CD-ROM drive. Just
what I needed to see how to get a Linux box going using the network
bootdisks that come with most distributions these days. I also have
some experience with the elderly 486 I recycle as terminals (no CD
drive either - and little else).</P>
<P>There
are different ways of exporting the distribution CD from a Linux
desktop: NFS, FTP and HTTP. I would like to discuss briefly each of
these, before going into some of the interesting problems I
encountered. I will try to keep this at a level accessible to all -
and the techniques <B>are</B> quite easy to use - though NFS can be
something of a bitch.</P>
<P>I
will use the RedHat distribution scheme here. Most of it also applies
directly to derived distributions, such as Mandrake or HispaLinux.
The ideas behind also apply to most other Linux distributions, though
the details of implementation may be different.</P>
<P><B>The
disks</B></P>
<P>Modern
distributions can usually be booted straight from the CD. But they
also come with several boot images that can be written to a floppy
(usually in the <I>/images</I> directory). There is a difference
between a desktop with a standard ISA or PCI ethernet card, and a
laptop with a PCMCIA card. In the latter, you will need to load the
pcmcia support module before the ethernet drivers.</P>
<P>For
example:</P>
<P>-
the RedHat 5.2 distribution comes with <I>boot.img</I> (both CD and
network), though you may also need <I>supp.img</I> for PCMCIA card
support. (And yes, I still use it to convert 486 and early Pentium
boxes into X terminals and routers - though not for servers!).</P>
<P>-
the RedHat 6.0 distribution comes with <I>boot.img</I> (CD only),
<I>bootnet.img</I> (network) and <I>pcmcia.img</I>. 
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0in">-
Mandrake 7.0 comes with <SPAN STYLE="text-decoration: none"><I>cdrom.img</I></SPAN>,
<I>network.img</I> and <I>pcmcia.img</I>, as does Mandrake Corporate
Server.</P>
<P>In
each case, to boot from the network you will need:</P>
<DL>
	<DD>
	<TABLE WIDTH=460 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
		<COL WIDTH=178>
		<COL WIDTH=114>
		<COL WIDTH=141>
		<THEAD>
			<TR VALIGN=TOP>
				<TH WIDTH=178>
					<P>distribution</P>
				</TH>
				<TH WIDTH=114>
					<P>without PCMCIA</P>
				</TH>
				<TH WIDTH=141>
					<P>with PCMCIA</P>
				</TH>
			</TR>
		</THEAD>
		<TBODY>
			<TR VALIGN=TOP>
				<TD WIDTH=178>
					<P>
					RedHat 5.2</P>
				</TD>
				<TD WIDTH=114>
					<P>
					boot.img</P>
				</TD>
				<TD WIDTH=141>
					<P>
					boot.img + supp.img</P>
				</TD>
			</TR>
			<TR VALIGN=TOP>
				<TD WIDTH=178>
					<P>
					RedHat 6.0</P>
				</TD>
				<TD WIDTH=114>
					<P>
					bootnet.img</P>
				</TD>
				<TD WIDTH=141>
					<P>
					bootnet.img + pcmcia.img</P>
				</TD>
			</TR>
			<TR VALIGN=TOP>
				<TD WIDTH=178>
					<P>
					Mandrake 7.0 and CS</P>
				</TD>
				<TD WIDTH=114>
					<P>
					network.img</P>
				</TD>
				<TD WIDTH=141>
					<P>
					pcmcia.img</P>
				</TD>
			</TR>
		</TBODY>
	</TABLE>
</DL>
<P>Naturally,
you can write these images to floppies using the <I>dd</I>
instruction. For example:</P>
<P><FONT FACE="courier, monospace">dd
if=/mnt/cdrom/images/network.img of=/dev/fd0</FONT></P>
<P><B>Getting
your network up</B></P>
<P>All
network boot disks have a mecanism to get your network up, though the
order in which the steps are taken may be slightly different. For
example, a Mandrake 6.1 boot goes:</P>
<OL>
	<LI><P>select
	network image protocol (nfs, ftp or http);</P>
	<LI><P>select
	a network card - this particular boot disk cannot detect your card
	automagically - more on this later;</P>
	<LI><P>enter
	your IP and host configurations, which will in most cases be the
	definitive configurations;</P>
	<LI><P>tell
	it about your server (IP address or name, directory holding the
	distribution).</P>
</OL>
<P><B>Installing
through NFS</B></P>
<P>NFS
can be seen as the means Linux boxes have to share directories across
a local or wide area network. Once exported, you can mount these
directories just as you would a local disk unit.</P>
<P>Server-side,
I usually just mount the CD, and then export /mnt/cdrom. This
involves the following steps:</P>
<P>1.
Get the NFS server working (nfsd), for example using <FONT FACE="courier, monospace">setup.</FONT></P>
<P>2.
Mount the CD as usual: 
</P>
<P><FONT FACE="courier, monospace">mount
/dev/cdrom /mnt/cdrom</FONT></P>
<P>3.
Include this directory in the server's list of exportable
directories. In <FONT FACE="courier, monospace">/etc/exports</FONT>,
I insert the line:</P>
<P><FONT FACE="courier, monospace">/mnt/cdrom
*(ro,no_root_squash)</FONT></P>
<P>This
means I want to export <I>/mnt/cdrom</I> to all users (<I>*</I>),
with read-only rights (<I>ro</I>).  <I>no_root_squash</I> gives remote root
users root privileges over your NFS files; normally, remote root users have the
<EM>nobody</EM> user's permission on them--this is a security measure in case
the remote users are not trustworthy.
<P>5.
I then make the export effective with:</P>
<P><FONT FACE="courier, monospace">exportfs</FONT></P>
<P>This
should reply with a message such as:</P>
<P><FONT FACE="courier, monospace">/mnt/cdrom
localhost</FONT></P>
<P><FONT FACE="courier, monospace">/mnt/cdrom
*</FONT></P>
<P>You
can then test it out on any box on the network with (for example,
with 192.168.0.1 as the server's IP address):</P>
<P><FONT FACE="courier, monospace">mount
192.168.0.1:/mnt/cdrom /mnt</FONT></P>
<P>Client-side,
you will need to tell the installation program:</P>
<P>-
the NFS server name (or IP addess in most small networks with no DNS)</P>
<P>-
the RedHat directory, <FONT FACE="courier, monospace">/mnt/cdrom in
my example.</FONT></P>
<P>This
works, but may not be the easiest way to install Linux. I use it in
networks where the server exports <FONT FACE="courier, monospace">/home
anyway, and NFS is already set up.</FONT></P>
<P><B>Installing
through FTP</B></P>
<P>Server-side,
exporting a RedHat CD through ftp is a rather simple process. In my
setup, I already had the <I>wuftp</I> server going. The package on
installation creates the <I>/home/ftp</I> directory, from which
anonymous ftp queries are served. The most expeditive way the serve
the CD seemed to be:</P>
<P>1)
create a subdirectory, such as /home/ftp/cdrom</P>
<P><FONT FACE="courier, monospace">mkdir
/home/ftp/cdrom</FONT></P>
<P>2)
mount the CD directly on this directory, instead of the more usual
<I>/mnt/cdrom</I>:</P>
<P><FONT FACE="courier, monospace">mount
/dev/cdrom /home/ftp/cdrom</FONT></P>
<P>Just
to be sure, I then checked you can access this directory from an
anonymous ftp session.</P>
<P>Client-side,
I selected <I>FTP image</I>, then went through the normal steps to
set up networking. When asked, I gave it</P>
<P>-
the FTP site name (or IP addess in most small networks with no DNS)</P>
<P>-
the RedHat directory, just <FONT FACE="courier, monospace">cdrom in
my example.</FONT></P>
<P>It
seems you can also use non-anonymous ftp connections, but I haven't
tried it as it doesn't seem too interesting in our case.</P>
<P><B>Installing
through HTTP</B></P>
<P>The
process is very similar to the FTP. 
</P>
<P>Server-side,
I used the standard <I>apache</I> installation, with DocumentRoot set
to <I>/home/httpd/html</I>. I then</P>
<P>1)
created a subdirectory, /home/httpd/html/cdrom</P>
<P><FONT FACE="courier, monospace">mkdir
/home/httpd/html/cdrom</FONT></P>
<P>2)
mounted the CD directly on this directory:</P>
<P><FONT FACE="courier, monospace">mount
/dev/cdrom /home/httpd/html/cdrom</FONT></P>
<P>I
also checked the CD was accessible before going on. You can do this
on the server itself by requesting <FONT FACE="courier, monospace">http://localhost/cdrom/</FONT>.
You should obtain a list of the files on the CD.</P>
<P>Client-side,
you need to give the installation program:</P>
<P>-
the Web site name (or IP address in most small networks)</P>
<P>-
the RedHat directory, just <FONT FACE="courier, monospace">cdrom</FONT> in
my example.</P>
<P><B>Wee
problems</B></P>
<P>With
my laptop, my major problem was a Trust PCMCIA ethernet card that is
advertised on the box as being &quot;full NE2000 compatible&quot; -
which is just not true. (Why do they supply their own drivers for
Windows 95?).</P>
<P>I
was stuck on that one with several distributions such as Mandrake
6.1: these ask you to give your card type. Naturally, the <I>ne</I>
module didn't work.</P>
<P>Then
I tried the RedHat 6.0 distribution. This autodetects the card type -
and works fine using module <I>pcnet_cs</I>. This rather weird card
type is not in the usual lists, but is incorporated into most
kernels. The trick is to get a boot disk that either autodetects or
lets you type in your module name instead of selecting from a list.
Note that the RedHat 6.0 network.img disk also works for Mandrake
6.1.</P>
<P>I
had a couple of problems with screen resolution under X. A 800x600
pixel laptop screen will work well with its own resolution - but not
with 640x480 as the pixels get distorted. I also had to fiddle with
the HorizSync value in <I>/etc/X11/XF86Config</I>: the standard VGA
30-40 kHz range worked better for me than the discrete values I got
telling the installation program I had a 800x600 LCD screen. Be
careful though - as ever with X.</P>
<P>Another
problem is when you forget some packages during initial installation.
You then need to get the packages accesible locally once more: either
mounting the CD from the server with NFS, or downloading the packages
via FTP or HTTP. You can then use <I>rpm</I>, <I>kpackage</I> or
whatever.</P>
<P><B>Further
steps</B></P>
<P>One
point I would like to look at is to compare the three system's
relative speeds. From what I saw while preparing this article, there
don't seem to be any major differences. So I guess it depends mostly
on which services are already installed on the server. 
</P>
<P>In
most cases these will be FTP and HTTP, as their configuration is
automatic with most modern distributions. NFS seems a less probable
choice as most Linux boxes don't need it for everyday tasks.</P>
<P>Finally,
the last question I would like to discuss is &quot;why a laptop under
Linux&quot;?</P>
<P>Besides
the usual reasons for using Linux, I find it useful as a teacher:</P>
<UL>
	<LI><P>to
	use StarOffice (my favourite for projections);</P>
	<LI><P>to
	demonstrate operating system techniques <I>live </I>(also with the
	projector);</P>
	<LI><P>as
	a server for the lab: students see both what happens on the server's
	projected screen as well as on their own clients' screen and can
	experiment;</P>
	<LI><P>as
	a portable X terminal;</P>
	<LI><P>to
	convince decision-makers and money-spenders Linux gets more bang
	from hardware than other systems. You carry it around, plug it into
	their local network, and let them play. My final line is: &quot;imagine
	setting up Windows NT serving HTTP, FTP and mail on my P-133 CPU, 48
	Mb RAM laptop ...&quot; Not to speak of Windows 2000 - but that
	would be unkind :-)</P>
</UL>




<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P --> 
<H5 ALIGN=center>

Copyright &copy; 2000, Alan Ward.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR> 
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->


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

<P> <hr> <P> 

<H1><font color="maroon">The Back Page</font></H1>
<ul>
<li><a HREF="#authors">About This Month's Authors</a>
<li><a HREF="#notlinux">Not Linux</a>
</ul>

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

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

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

<!-- BEGIN bio -->
<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Marius Andreiana</H4>
Marius is 20 years old, student in the second year at Politehnica
Bucharest, Romania
and working as a web developer. Besides Linux, he also loves music (from
rock to dance), dancing, having fun, spending time with friends.
He is interested also in science in general (and that quantum spooky
connection :)


<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Shane Collinge</H4>
Part computer programmer, part cartoonist, part Mars Bar. At night, he runs
around in a pair of colorful tights fighting criminals. During the day... well,
he just runs around.  He eats when he's hungry and sleeps when he's sleepy.                                           

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Matteo Dell'Omodarme</H4>
I'm a student at the University of Pisa and a Linux user since 1994.
Now I'm working on the administrations of Linux boxes at the Astronomy section
of the Department of Physics, with special experience about security.  My
primary email address is 
<A HREF="mailto:matt@martine2.difi.unipi.it">matt@martine2.difi.unipi.it</A>.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Eric Kasten</H4>
I'm a software developer by day and an artist, web developer,
big dog, gardener and wine maker by night.  This all leaves very little
time for sleep, but always enough time for a nice glass of Michigan
Pinot Gris.  I have a BS double major in Computer Science and
Mathematics and an MS in Computer Science.  I've been using and
modifying Linux since the 0.9x days.  I can be reached via email at
<A HREF="mailto:kasten@sunpuppy.com">kasten@sunpuppy.com</A> or through 
my website at <A HREF="http://www.sunpuppy.com">http://www.sunpuppy.com</A>.


<p> 
<h4><img align=bottom alt="" src="../gx/note.gif">Mark Nielsen</h4>
Mark works at ZING 
(<A HREF="http://www.genericbooks.com">www.genericbooks.com</A>) and 
<A HREF="http://GNUJobs.com">GNUJobs.com</A>. Previously,
Mark founded <A HREF="http://www.gnujobs.com">The Computer Underground</A>.
Mark works on non-profit and volunteer projects which promote free literature
and software. To make a living, he recruits people for GNU related jobs and
also provides solutions for web/database problems using Linux, FreeBSD, Apache,
Zope, Perl, Python, and PostgreSQL.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Ben Okopnik</H4>
A cyberjack-of-all-trades, Ben wanders the world in his 38' sailboat, building
networks and hacking on hardware and software whenever he runs out of cruising
money. He's been playing and working with computers since the Elder Days
(anybody remember the Elf II?), and isn't about to stop any time soon.


<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Pradeep Padala</H4>
I am a software engineer at Hughes Software Systems. I love hacking and adore
Linux. I graduated this year with a B.E (equivalent to B.S) in Computer Science
and Engineering. My intersets include solving puzzles and playing board games. I
can be reached through 
<A HREF="mailto:p_padala@yahoo.com">p_padala@yahoo.com</A> or
<A HREF="http://pradeeppadala.homestead.com">http://pradeeppadala.homestead.com</A>.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Jason Steffler</H4>
<a href = "http://www.magma.ca/~jagwar">Jason</a> is a Software Architect for
McHugh Software International.&nbsp;
His computer related interests include: OO programming &amp;
design, Smalltalking, the peopleware aspects of software, and noodl'n around
with Linux.

<P> 
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Alan Ward</H4>
Alan teaches CS in Andorra at high-school and university levels. He's
back to Unix this year after an 8-year forced interlude since he
graduated -- it makes networking so much easier. His hobbies include
science photography (both digital and traditional), trekking, rock and
processor collecting.



<!-- END bio -->

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

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

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

<!-- *** BEGIN Not Linux *** -->

<P> Happy New Year, everybody!

<P> Michael Orr<br>
Editor, <A HREF="http://www.linuxgazette.com/"><i>Linux Gazette</i></A>, <A
HREF="mailto:gazette@ssc.com">gazette@ssc.com</a>
<BR CLEAR="all">

<!-- *** END Not Linux *** -->

<!-- *** BEGIN copyright *** -->
<P> <hr> <P> 
<H5 ALIGN=center>
Copyright &copy; 2000, the Editors of <I>Linux Gazette</I>.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 61 of <i>Linux Gazette</i>, January 2001</H5>
<!-- *** END copyright *** -->

</BODY></HTML>