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 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> Linux Gazette Index Page </TITLE>
<META NAME="robots" CONTENT="noindex, nofollow">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#A000A0"
ALINK="#FF0000" >
<center><H2><IMG SRC="../gx/newlogo.jpg"
ALT="Linux Gazette... making Linux just a little more fun!">
</H2>
<H5>Copyright © 1996-98 Specialized Systems Consultants, Inc.</H5>
</center>
<P> <HR> <P>
<!--==================================================================-->
<center>
<H1>Welcome to Linux Gazette!<img src="../gx/tm.gif" alt="(tm)"></H1>
</center>
<P> <HR> <P>
<!--==================================================================-->
<H1>Published by:</H1>
<center>
<H1><A HREF="http://www.ssc.com/lj/">
<img src="../gx/ljlogo.gif" alt="Linux Journal" border=0></A></H1>
</center>
<P><HR> <P>
<H1>Sponsored by:</H1>
<table>
<tr>
<td><H1><A HREF="http://www.infomagic.com/"><img ALIGN="bottom" HSPACE="50" src=../gx/infologo.gif alt="InfoMagic" border=0></A></H1></td>
<td>
<H1><A HREF="http://www.suse.com/"><img ALIGN="bottom" src="../gx/suse.gif" alt="S.u.S.E." border=0></A></H1></td>
<td>
<H1><A HREF="http://www.redhat.com/"><img HSPACE="50" src="../gx/redhat.gif" alt="Red Hat" border=0></A></H1></td>
</tr>
<tr>
<td><H1><A HREF="http://www.LinuxMall.com/"><img ALIGN="bottom" HSPACE="50" src="../gx/linuxmall.gif" alt="LinuxMall" border=0></A></H1></td>
<td><H1><A HREF="http://www.linuxresources.com/"><img ALIGN="bottom" src="../gx/linux6.gif" alt="Linux Resources" border=0></A></H1></td>
<td><H1><A HREF="http://www.mozilla.com/"><img HSPACE="50" src="../gx/mozilla.gif" alt="Mozilla" border=0></A></H1></td>
</tr>
<tr>
<td><H1><A HREF="http://www.cyclades.com/"><img ALIGN="bottom" HSPACE="50" src="../gx/cyclades.gif" alt="cyclades" border=0></A></H1></td>
</tr>
</table>
<P>
Our sponsors make financial contributions toward the costs of
publishing <I>Linux Gazette</I>. If you would like to become a sponsor
of <I>LG</I>, e-mail us at <A
HREF="mailto:sponsor@ssc.com">sponsor@ssc.com</A>.
<P>
<I>Linux Gazette</I> is a non-commercial, freely available publication and will
remain that way. Show your support by using the products of our sponsors
and publisher.
<P> <HR> <P>
<!--=================================================================-->
<H1 align="center">Table of Contents <BR>September 1998 Issue #32</H1>
<P> <HR> <P>
<table><tr>
<td rowspan=4>
<UL>
<LI><A HREF="../index.html">The Front Page</A>
<LI><A HREF="./lg_mail32.html">The MailBag</A>
<ul>
<li><a HREF="./lg_mail32.html#help">Help Wanted</a>
<li><a HREF="./lg_mail32.html#gen">General Mail</a>
</ul>
<LI><A HREF="./lg_tips32.html">More 2 Cent Tips</A>
<ul>
<li><a HREF="./lg_tips32.html#hammel">2 Cent Tip from the 'Muse</a>
<li><a HREF="./lg_tips32.html#hristev">Tips and Tricks: Keeping track of your config files</a>
<li><a HREF="./lg_tips32.html#hefferson">2 cent tip: Cross platform text conversion.</a>
<li><a HREF="./lg_tips32.html#leggett">XFree86 and the S3ViRGE GX2 chipset</a>
<li><a HREF="./lg_tips32.html#peda">Clearing the Screen</a>
<li><a HREF="./lg_tips32.html#kelly">Re: Shell Scripting Resources <-- TIP</a>
<li><a HREF="./lg_tips32.html#kerr">Re: Recognising the AMD K5-PR166</a>
<li><a HREF="./lg_tips32.html#brooke">Your atapi CDROM</a>
<li><a HREF="./lg_tips32.html#looijaard">Tips: simulataneous kernel versions</a>
<li><a HREF="./lg_tips32.html#siew">Creating man pages made easy!</a>
<li><a HREF="./lg_tips32.html#samuelson">2c Tip Re: Cross-platform Text Conversions</a>
<li><a HREF="./lg_tips32.html#scgmille">Un-tar as you download</a>
<li><a HREF="./lg_tips32.html#burns">megaraid drivers</a>
<li><a HREF="./lg_tips32.html#wood">Re: simultaneous versions of Kernels</a>
</ul>
<LI><A HREF="./lg_bytes32.html">News Bytes</A>
<ul>
<li><a HREF="./lg_bytes32.html#general">News in General</a>
<li><a HREF="./lg_bytes32.html#software">Software Announcements</a>
</ul>
<LI><A HREF="./lg_answer32.html">The Answer Guy</A>, by James T. Dennis
<LI><A HREF="./stemen.html">A Convenient and Practical Approach to Backing
Up Your Data</a>, by Vincent Stemen
<LI><A HREF="./gm.html">Graphics Muse</A>, by Michael J. Hammel
<li><A HREF="./henning1.html">Installing StarOffice 4.0 on Red Hat 5.1</A>, by
William Henning
<li><A HREF="./rubini.html">An Interview with Linus Torvalds</A>, by
Alessandro Rubini
<li><A HREF="./vermeer.html">It Takes Its Toll</A>, by Martin Vermeer
<li><A HREF="./rojansky.html">Java and Linux</A>, by Shay Rojansky
<li><A HREF="./jenkins1.html">Linux Installation Primer</A>, by Ron Jenkins
<li><A HREF="./henning2.html">Linux Kernel Compilation Benchmark</A>, by
William Henning
<LI><A HREF="./bandel.html">Linux Kernel Installation</a>,
by David A. Bandel
<LI>New Release Reviews, by Larry Ayers
<ul>
<li><A HREF="./ayers1.html">Patch For Beginners</a>
<li><A HREF="./ayers2.html">A Simple Typing Tutor</a>
</ul>
<li><A HREF="./hughes.html">Open Source Developer Day</A>, by Phil Hughes
<li><A HREF="./barr.html">Paradigm Shift</A>, by Joe Barr
<li><A HREF="./jenkins2.html">Running Remote X Sessions on Windows
95/98/NT/Mac/PPC Clients</A>, by Ron Jenkins
<li><A HREF="./williams.html">Searching a Web Site with Linux</A>,
by Branden Williams
<li><A HREF="./rogers.html">The Standard C Library for Linux, Part 3</A>,
by James M. Rogers
<LI><A HREF="./lg_backpage32.html">The Back Page</A>
<ul>
<li><a HREF="./lg_backpage32.html#authors">About This Month's Authors</a>
<li><a HREF="./lg_backpage32.html#notlinux">Not Linux</a>
</UL>
</UL>
</td>
</tr><tr>
<td align=center>
<A HREF="../issue31/lg_bytes31.html#als">
<img src="./gx/als-1998.jpg" border=0 alt="">
</a>
</td>
</tr><tr>
<td align=center>
<A HREF="lg_answer32.html">
<img src="../gx/dennis/answerwiz-255.gif" border=0 alt="">
</a><BR>
<A HREF="lg_answer32.html"><i>The Answer Guy</i></a>
</td>
</tr><tr>
<td align=center>
<A HREF="gm.html">
<IMG SRC="../gx/hammel/banner-3.gif" border=0 alt="">
</a>
</td>
</tr>
</table>
<P> <HR><P>
<!--=============================================================-->
<A HREF="./issue32.txt">TWDT 1 (text)</A><BR>
<A HREF="./issue32.html">TWDT 2 (HTML)</A><BR>
are files containing the entire issue: one in text format, one in HTML.
They are provided
strictly as a way to save the contents as one file for later printing in
the format of your choice;
there is no guarantee of working links in the HTML version.
<!--=============================================================-->
<P> <HR><P>
Got any <I>great</I> ideas for improvements? Send your
<A HREF="mailto:gazette@ssc.com">comments, criticisms, suggestions
and ideas.</A>
<P><hr><p>
This page written and maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com">gazette@ssc.com</A>
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<HR>
<center>
<table width="100%" cellpadding=7><tr><td>
<H2><a NAME="mail"><IMG SRC="../gx/mailbox.gif" ALIGN=MIDDLE ALT=" ">
The Mailbag!</a> </H2>
Write the Gazette at <A HREF="mailto:gazette@ssc.com"> gazette@ssc.com</A>
</td><td>
<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_mail32.html#help">Help Wanted -- Article Ideas</a>
<li><a HREF="./lg_mail32.html#gen">General Mail</a>
</ul>
</td></tr></table>
</center>
<a name="help"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="maroon">Help Wanted -- Article Ideas</font></H3></center>
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sat, 1 Aug 1998 09:50:38 -0500<BR>
From: The Wonus House, <A HREF="mailto:wonus@w-link.net">
wonus@w-link.net</A> <BR>
Subject: <B>Accessing Microsoft SqlServer vi DB-lib or CT-lib</B>
<P>
Do you have additional information sources on connecting to MS SqlServer
via the Sybase CT/DB libraries? I am most interseted in how this could be
done from a Solaris client machine.
<P>
Any info is greatly appreciated (thanks),
Kevin Wonus
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sun, 2 Aug 1998 21:55:03 -0400 (EDT)<BR>
From: Paul 'Tok' Kiela, <A HREF="mailto:tok@gemini.physics.mcmaster.ca">
tok@gemini.physics.mcmaster.ca</A> <BR>
Subject: <B>R2000 Mips 2030</B>
<P>
I just recently came into a used R2000 "Mips 2030" desktop slab.
Aside from opening the box and finding that it is indeed running an R2000
CPU, I know nothing else about the computer -- literally. I have found
absolutely zero information about any computer bearing the markings 'MIPS
2030'. To make matters worse, I don't have a proper BNC monitor to
actually use the box yet, but I'm searching. My question, where can I find
information about the R2000 port of Linux? I have visited the Linux/MIPS
page, but the only mention of the R2000/3000 CPU port is an URL which
points at SGI's statistics on the R3000 CPU. I was hoping I could pop
Linux on on the box, and happily run it alongside the little army of Linux
boxen I have now. Any help would be very appreciated.
<P>
Thanks.<BR>
Paul.
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 06 Aug 1998 12:57:21 +0000<BR>
From: Gulf Resources Co, <A HREF="mailto:grc2000@kuwait.net">
grc2000@kuwait.net</A> <BR>
Subject: <B>Some Ideas</B>
<P>
Anyone there who is dreaming of running Delphi in Linux?
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 12 Aug 1998 09:21:12 +0200<BR>
From: Jesus A. Muqoz, <A HREF="mailto:jesus.munozh@mad.sener.es">
jesus.munozh@mad.sener.es</A> <BR>
Subject: <B>LILO Problems</B>
<P>
I installed Linux in a secondary IDE hard disk booting from a floppy
disk. Then I tried to install LILO in the MBR of the primary IDE hard
disk and I did it. My idea was to maintain Windows 95 in the primary
disk. I configured LILO to be able to start Windows 95, but after
installing LILO the primary disk cannot be seen either by DOS nor by
Linux. If I run msdos-fdisk it says that the disk is active but in the
row where it should appear FAT16 puts unknown or something like that.
Can I recover the information of the hard disk ?
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Tue, 11 Aug 1998 09:17:54 +0300<BR>
From: Mehmet Mersinligil, <A HREF="mailto:memo@tr-net.net.tr">
memo@tr-net.net.tr</A> <BR>
Subject: <B>Matrox Productiva G100 8M AGP !!???</B>
<P>
Is there a way to configure my Matrox Productiva G100 8MB AGP under X?
Except buying a a new accelerated X server for 125$ from
http://www.xig.com ?
What should I do?
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sat, 08 Aug 1998 18:21:54 +0000<BR>
From: Alexander I. Butenko, <A HREF="mailto:alexb@megastyle.com">
alexb@megastyle.com</A> <BR>
Subject: <B>Some questions to be published</B>
<P>
1. I wonder can I use the EPSON Stylus Color 400 printer with Linux...
The interesting thing is that my buggy GIMP beta says to be supporting it
but can't really print anything....
<P>
2. Has anybody encountered such a bug? JavaICQ doesn't run properly under
KDE (when I open the send or reply or even preferences window this
window closes immediately). This problem is only under KDE...
3. I can't use this Real Player 5.0, because it reports the compression
errors even with files obtained from www.real.com or that file that was
installed with it on my hard drive...
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 06 Aug 1998 15:33:37 -0400<BR>
From: Bob Brinkmann, <A HREF="mailto:Bob.Brinkmann@mindspring.com">
Bob.Brinkmann@mindspring.com</A> <BR>
Subject: <B>Being new to the Linux community</B>
<P>
I'm in the process of developing a secure, encrypted tunnel for access to
my company's enterprise network. The clients on the outside dialing
into the system will be of a Windows 95, 98, NT 4.0 and probably 5.0
when it decides to rear its ugly head. My question is this, are there
solutions on the terminating server side written in Linux to handle
clients' tunnel access and also provide for IPSEC level encryption?
<P>
A while back I played with Red Hat's 2.0 release of the software and I
just purchased Red Hat's 5.1 (Manhattan) version utilizing 2.0.34 kernel
and find it to run quite nicely on both a desktop and several Toshiba
portables.
<P>
Thanks for any advice or information you can provide.
<P>
Bob Brinkmann
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 12 Aug 1998 13:07:22 -0500<BR>
From: Dennis Lambert, <A HREF="mailto:opk@worldnet.att.net">
opk@worldnet.att.net</A> <BR>
Subject: <B>Help Wanted : newbie</B>
<P>
I recently purchased Red Hat 5.1 and got it running. Evidently I was lucky in
that I have a fairly full FAT 32 Win 98 drive and kind of stumbled through
the defrag / fips / boot to CD / repartition / full install with LILO
process. Everything worked, but I'm a little nonplussed. A few topics I'd
absolutely love to get feedback on...
<ul>
<li>Turns out I have a lousy WinModem. I can see the feedback now, (Run
it over with your car)
<li>I have grown fat and lazy with Win 98 and find myself looking for
"Display Properties" and such. I'm very familiar with C and such and am not
afraid of hacking scripts or the like, but my problem is thus: Where is a
(succinct) list of what gets run when, from where, and why. I'd love to
tweak everything if only I could find it.
<li>I have something called an "Ensoniq Audio PCI" sound card with
"legacy emulation" I don't even know how to begin to get this thing working.
What are the first steps in enabling hardware?
<li>Where do I get information on mounting drives (FAT 32 especially)
<li>I think my printer works (at least text does), but how do I print
things (man pages)
</ul>
I'm not an idiot, not even a "dummy", but what is a good book to answer
the basic questions? I have "Linux in a Nutshell" and it has a very good
command reference and a few other things, but doesn't help in tweaking
things.
<P>
I don't really expect anyone to answer all of these concerns, but any little
help would be greatly appreciated.
<P>
Dennis Lambert
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 17 Aug 1998 16:54:20 +0100<BR>
From: <A HREF="mailto:Fabrice_NORKA_-_SAPHIR@PECHINEY.COM">
Fabrice_NORKA_-_SAPHIR@PECHINEY.COM</A> <BR>
Subject: <B>Deb to RPM translator</B>
<P>
I changed from a Debian distribution to a Red Hat 5.0 lately and was
wandering if there were a tool like 'alien' to convert Debian packages to
Red Hat packages.
My personal e-mail is NORKAF@AOL.com
<P>
Thank you and God save Linux community :-)
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 17 Aug 1998 13:18:31 -0400<BR>
From: Chris Bruner, <A HREF="mailto:cbruner@compulife.com">
cbruner@compulife.com</A> <BR>
Subject: <B>Idea's for improvments and articals</B>
<P>
An idea for an article. (You may have already done this but I couldn't
find a search engine to look up past articles). I have yet to get my
Red Hat 5.1 to connect to the Internet. (Their support is GREATLY
overstated.) I'm consquently using Win95 to do my Internet work. The reason
for this is that my modem, network adapter and sound card are all Plug and
Play (PnP). I would like to see an article detailing step by step, for a
Linux beginner, how to install Tom Lee's PnP Package. This would involve
recompiling the kernel which I'm not afraid of, but have no idea how to go
about it. The more step by step the better. I'm from the DOS world and
any assumed knowledge that I have might be wrong.
<P>
Thanks for a great magazine.
<P>
Chris Bruner
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Tue, 18 Aug 1998 21:23:27 +1200<BR>
From: Andrew Gates, <A HREF="mailto:andrewga@fcf.co.nz">
andrewga@fcf.co.nz</A> <BR>
Subject: <B>Help wanted for a (Cheap) COBOL combiler for Linux</B>
<P>
I have a friend who is doing a refresher course in Cobol in a Unix
environment. I have suggested that she run Linux, and pick up a cheap /
shareware copy of a Cobol compiler for Linux from somewhere. Knowing
absolutely nothing about either Linux or Cobol, am I dreaming, or is there a
realistic alternative to the compilers I have seen retailing for ~$1,500 US?
I'd really appreciate any help/advice anyone can offer.
<P>
Andrew Gates
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 19 Aug 1998 18:37:34 +0200<BR>
From: <A HREF="mailto:ppali@friko6.onet.pl">ppali@friko6.onet.pl</A> <BR>
Subject: <B>RadioAktiv radio tuner</B>
<P>
I am one of those Linux users, who are not experts, even after a year or
more of working with the OS. I like very much discovering by myself
various aspects of Linux, trying out the many programs and help tips.
What is important is that it works well and that I can use it for most
of the common computer tasks (after a bit of tinkering). Now I have
decided for the first time to post a following question:
<P>
After trying many radio tuners available on the net and failing to
make my RadioAktiv radio card work under Linux I am stuck. Maybe someone
would give me a few tips (or one TIP)?
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Tue, 25 Aug 1998 15:59:21 -0500<BR>
From: Hilton, Bradley D. (Brad), <A HREF="mailto:HiltonBD@bv.com">
HiltonBD@bv.com</A> <BR>
Subject: <B>Trident 985 AGP</B>
<P>
Is it possible to get X running on a Trident 985 AGP video card? What
server would I use?
Thanks,
<P>
Brad Hilton
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 24 Aug 1998 17:19:21 -0700<BR>
From: dk smith, <A HREF="mailto:dks@MediaWeb.com">dks@MediaWeb.com</A> <BR>
Subject: <B>IDE disks</B>
<P>
If I could only find a definitive reference on setting up IDE disks,
SCSI disks, and partitioning issue for running with Linux, NT, and LILO. I
am new to this stuff. The docs at Red Hat, although extensive, were not
enough for me.
<P>
-dk
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 27 Aug 1998 16:05:15 +1200<BR>
From: Mark Inder, <A HREF="mailto:mark@tts.co.nz">
mark@tts.co.nz</A> <BR>
Subject: <B>Help Wanted: Looking for an Xwin Server software that runs
under win95/nt</B>
<P>
We use a Red Hat 4.2 machine in our office as a communications server. This
is running well with the facility of telnet connections for maintenance,
diald for PPP dial up - internet and email, and uucp for incoming mail.
<P>
I would like to run an X server on my windows PC to be able to use X client
software on the Linux PC over the local Ethernet. Does anyone know of a
shareware for freeware version which is available.
<P>
TIA Mark
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 27 Aug 1998 00:02:28 -0500<BR>
From: Todd Thalken, <A HREF="mailto:tdthalk@megavision.com">
tdthalk@megavision.com</A> <BR>
Subject: <B>Looking Into Linux For PPP Server</B>
<P>
I am interested in implementing Linux in our office network.
<P>
Specifically, we would like to set up a Linux box as a dial-up PPP
server so that remote users can access the office intranet.
<P>
Could you explain what hardware (multiport controllers) works best with
Linux, and explain the steps necessary to set the Linux box up as a PPP
server. Most of our client computers will be using Windows 95/98
dial-up networking. We would like to have the server assign IP addresses
dynamically.
<P>
This seems like it would be a relatively common question, so if there is
already good information available please let me know where I can find
it.
<P>
I have read a lot about Linux, but still consider myself a green
"newbie".
<P>
Thanks!<BR>
Todd Thalken
<a name="gen"></a>
<P> <hr> <P>
<!-- =================================================================== -->
<center><H3><font color="maroon">General Mail</font></H3></center>
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sun, 02 Aug 1998 18:25:16 +0000<BR>
From: Gulf Resources Co, <A HREF="mailto:grc2000@kuwait.net">
grc2000@kuwait.net</A> <BR>
Subject: <B>Delphi for Linux</B>
<P>
I am a Delphi Developer. I am also a big fan of Linux and GNU Softwares.
<P>
Anybody there who wants to join me in knocking the doors of Inprise Corp
(Borland ) to convince them to port C++ Builder and Delphi to X Window.
<P>
If these things happen, Microsoft will be very upset.
<P>
What Linux needs is an innovative company like Borland or Symantec.
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Mon, 03 Aug 1998 02:16:54 +0100 (BST)<BR>
From: Hugo Rabson, <A HREF="mailto:hugo@rabson.force9.co.uk">
hugo@rabson.force9.co.uk</A> <BR>
Subject: <B>response to Ruth Milne</B>
<P>
I tell you, .....
<P>
Are you familiar with Nietzsche's description of the ordinary man's
journey from man to superman? ...how he "goes down" into the abyss and
comes up the other side? Moving from Windows to Linux is a bit like that.
;)
<P>
My adventure started in late April. I was sick and tired of Windows NT
bluescreening. I read an article saying how stable Linux was in
comparison. I looked into GUIs & found KDE to be to my liking.
<P>
In the end, I vaped NT because I needed the hard disk space. ;-P
<P>
It is now August. I have had ro reinstall almost a dozen times because I
am still getting used to "The Linux Way". I have been using computers
since i was 6; PCs since I was 16; Windows since I was 18. Linux is very
stable indeed but it is eccentric & definitely not user-friendly, unless
your definition of user differs wildly from mine.
<P>
I have written a "HOWTO" so that I can recover quickly if I have to
reinstall the entire OS and GUI. It is currently 3500 words long, and
tells me how to install RedHat, compile a new kernel, compile&install KDE
1.0, install the BackUPS software, configure dial-up networking &
autodial, install AutoRPM, and .. umm... that's it, so far.
<P>
Don't get me wrong: Linux _is_ a wonderful thing. It's just ... It's
_such_ a leap from Windows! I am convinced my primary client (with a dozen
Windows machines) could function very well with Linux & Applixware instead
of Windows & Office, just so long as they have someone competent to
maintain their systems. Of course, they'll need much less maintenance
under Linux than under Windows ;)
<P>
Linux requires a lot of competence & intelligence (and downloads!) if
you're going to set it up. Windows doesn't. On the other hand, it seems
much less prone to these embarrassing GPFs.
:)
<P>
Hugo Rabson
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 6 Aug 1998 13:01:42 +0200 (CEST)<BR>
From: Hugo van der Kooij, <A HREF="mailto:hvdkooij@caiw.nl">
hvdkooij@caiw.nl</A> <BR>
Subject: <B>Linux Gazette should not use abusive language!</B>
<P>
This is my final note to you about this subject. I have not heard nor seen
a single response in the past regarding this issue.
<P>
I will however request mirror sites to stop mirroring unless you remove
your abusive language from the Linux Gazette.
<P>
The following text should be removed from ALL issue's:
<P>
The Whole Damn Thing 1 (text)
The Whole Damn Thing 2 (HTML)
<P>
I presume I am not the only person that find this text not at all suited
for a Linux publication. It is in effect offensive and could easily be
removed
<P>
Hugo van der Kooij
<blockquote> <I>
Actually, I have answered you at least twice about this issue. I don't find
the word Damn either abusive or offensive and have had no objections from
anyone else. So, why don't we put it to a vote? Okay, you guys out there,
let me know your feelings about this. Should I remove the "Damn" from "The
Whole Damn Thing" or not? I will abide by the majority. --Editor)
</I> </blockquote>
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sun, 09 Aug 1998 15:48:34 -0600<BR>
From: Mark Bolzern, <A HREF="mailto:Mark@LinuxMall.com">
Mark@LinuxMall.com</A> <BR>
Subject: <B>Some History and Other Things LG #31</B>
<P>
http://www.linuxgazette.com/issue31/richardson.html
<P>
Marjorie,
<P>
Neat issue of the Gazette, thanks for all the hard work. I'm proud to
be a sponsor, Just sent another $1K.
<P>
One little teensie issue of fact though:
<P>
First the quote:
The first two issues of Linux Journal were published by Robert Young.
After the second issue, Robert decided to start up Red Hat
Software, and Specialized Systems Consultants took over as publisher.
Also with the third issue, Michael Johnson took on the role
of Editor and continued in that role through the September 1996 issue. I
became Editor on February 1, 1997 and began work on the
May issue.
<P>
And the correction:
Actually Bob (Robert) started a Linux catalog within the ACC
Bookstores. It wasn't until quite a bit later when he met Marc Ewing
that he folded ACC into Marc's Red Hat Software.
<P>
I wuz there ;->
<P>
Thanks<BR>
Mark
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Sat, 8 Aug 1998 15:06:37 -0700 (PDT)<BR>
From: Heather Stern, <A HREF="mailto:star@starshine.org">
star@starshine.org</A>
Subject: <B>Re: those crazy links</B>
<P>
<blockquote> <font color="navy">
On http://www.linuxgazette.com/issue31/tag_95slow.html, the link pointing back
to the table of contents points to index.html instead of index.html. No,
wait... all of the issue 31 answer guy pages seem to be mislinked (except the
main one.)
Also, the "previous section" button on the pages mentioned above seem to be
mislinked as well...
This isn't really important since most normal people like me use the back
button like a religion, but it always helps to be consistent and have
links pointing where they should, doesn't it? :)
</font> </blockquote>
Yes, actually, it *is* important to me, and the base files are mostly generated
by a script (making it hard to get wrong). But, I broke some stuff in the
footer logic, so I did a proper footer by hand and propoagted it into the tag_
files myself. So, as I go look at the template I used...
<P>
Dad-blammit, you're right!! All of the 30's in there should be 31's.
(Although the copyright notice is correct.) Mea culpa!
<blockquote> <font color="navy">
Thanks for your time...
--Charles Ulrich.
p.s. May be worth the effort to try one of those link checker bots that seem
ever so popular on the web these days...
</font></blockquote>
Maybe, but it's being worked on in a private Linux network. Most of those
"web bots" only access external sites properly.
<P>
I should have run the command 'lynx -traversal' at the top of it, so I'd
have a badlink report, but I was in a last-minute rush. I've done so now,
and found another error that you missed.
<P>
One of the beautiful things about the web, is that a minor misprint can
actually be undone, unlike the world of print. I've submitted a corrected
packet to our editor. Thanks for mentioning it.
<P>
-*- Heather Stern -*-
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Fri, 7 Aug 1998 11:13:47 +0000<BR>
From: <A HREF="mailto:kengu@credo.ie">kengu@credo.ie</A> <BR>
Subject: <B>news from Irish LUG</B>
<P>
Hello,
I'm involved with the Irish Linux Users Group website and was wondering
if you would please mention that we are currently compiling a list of
people
in Ireland that would be interested in getting the 'Linux Journal' -
details
are available at our website http://www.linux.ie/.
<P>
thanks<BR>
Ken Guest
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 06 Aug 1998 17:30:55 +0100<BR>
From: James Mitchell, <A HREF="mailto:james-t.mitchell@sbil.co.uk">
james-t.mitchell@sbil.co.uk</A> <BR>
Subject: <B>Re: The other side of the story (or, on the other, other
hand)</B>
<P>
Just before I launch into the meat of this email, I'd like to say that
the Linux Gazette is excellent. good articles, and good tips and
comments.
<P>
I'm writing about the mail in the August issue "The Other Side of the
Story", in which Antony Chesser compares the Windows GUI to the shell
prompt, especially the line
<P>
"When Linux finishes installing, you're left with a # prompt. When WIN95
finishes installing, you've a fairly intuitive GUI that allows you to
quickly and easily install and run programs, connect to the net, and
**apply updates without re-compiling the
kernel**"
<P>
My quibble is with the underlying assumption that a GUI (and here I
assume that includes Mac, and X, as well as Windows) is more intuitive
then a command line. I argue that for a complete novice one is as bad as
the other, neither a command line nor a screen full of little coloured
icons and a START button are instantly comprehensible to a complete
computer novice.
<P>
(Before you write me off as insane - remember that a GUI is supposed to
shorten the time it takes to learn how to operate the computer, they
don't eliminate the time altogether.)
<P>
Do you remember the scene in the Star Trek movie (the one with the
whales...) where Scotty tries to use a Mac? He talks to it, and nothing
happens... the operator says "You need to use this [the mouse]", so
Scotty picks up the mouse and uses it like a microphone - "Good morning
computer."
<P>
Can you see where I'm going? Until someone teaches the "complete novice"
the relationship between the pointer and the mouse, and what happens
when you click, double-click, or drag with the mouse, they will be just
as lost as a novice sitting in front of a command line. Actually, they
may be worse off... we have had typewriters for a lot longer then mice,
and people will grasp the concept of typing faster then clicking on
pictures.
<P>
So, in summary, I think that a complete novice will have a learning
curve to cope with whether they use a GUI, or a command line; and the
rest of us should remember that there is a difference between "ease of
use", and "what I'm used to".
<P>
Cheers,<BR>
James
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Thu, 06 Aug 1998 09:22:46 EDT<BR>
From: Roger Dingledine, <A HREF="mailto:arma@seul.org">arma@seul.org</A>
<BR>
Subject: <B>Linux News Standardization/Distribution Project</B>
<P>
We've been making progress on our proposal to standardize the format and
distribution of Linux news. Our design uses the NNTP protocol to create a
network of servers that will quickly and robustly share news that is
interesting to the Linux community. This will allow websites like Freshmeat
and Slashdot, as well as lists like Threepoint's and linux-announce, to
reduce duplication of effort while still customizing their presentation.
In addition, this will provide a single easy method of submitting an item
of news, whether it's an announcement about a new software release, or a
description of the latest article in Forbes magazine.
<P>
The end goal of organizing the Linux announcements and news articles is
to encourage smaller ISVs to port to Linux, since they will see advertising
their software to a wide audience as less of an obstacle. Other important
benefits include greater robustness (from multiple news servers), less work
for the moderators (messages will be presorted and people can specialize in
their favorite type of news, resulting in faster throughput), and a uniform
comprehensive archiving system allowing people to search old articles more
effectively.
<P>
We are currently at the point where we are designing the standard format
for a news item. We want to make it rich enough that it provides all the
information that each site wants, but simple enough that we can require
submissions to include all fields. At the same time we're sorting out how
the NNTP-based connections between the servers should work. We've got
Freshmeat and Threepoint in on it, and other groups like Debian and
LinuxMall are interested. We need more news sites to provide input and
feedback, to make sure everybody will want to use the system once it's
ready.
<P>
If you're interested, please check out our webpage at
http://linuxunited.org/projects/news/ and subscribe to the mailing list
(send mail to majordomo@linuxunited.org with body 'subscribe lu-news').
<P>
Thanks for your time (this is the last mail I will send directly about this),
<P>
Roger (SEUL sysarch)
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Fri, 14 Aug 1998 23:49:36 +0200<BR>
From: Martin Møller, <A HREF="mailto:martin_moeller@technologist.com">
martin_moeller@technologist.com</A> <BR>
Subject: <B>Linux Gazette to be featured on Alt Om Data's CD-ROM
monthly.</B>
<P>
This is just to inform you that some of our readers have pointed out
that we ought to distribute your magazine on our Cover CD, and after
having read through the lisence, I believe this will be no problem. I
have, just to be safe, saved a copy of the copy lisence together with
the archives and plan on distributing the new issues as the show up.
<P>
Keep up the good work!
<P>
Martin Moeller.
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Fri, 21 Aug 1998 20:52:14 -0400 (EDT)<BR>
From: Timothy D. Gray, <A HREF="mailto:timgray@lambdanet.com">
timgray@lambdanet.com</A> <BR>
Subject: <B>Linux reality letter</B>
<P>
In LG#31 Michael Rasmusson wrote: "the majority of Linux users are IT
professionals in some way" and alluded to the fact that Linux will be slow to
be accepted due to this fact. This is very untrue. Most Linux users are in fact
College and high school students. These forward thinking young minds aren't
tied down by archaic IT department policy (many of which were penned in the
70's when IT was called the Processing/programming/systems/data-processing
department) Linux will explode, it will do so violently. In fact it will
explode so fast and vast that Microsoft will say "What happened?" The local
Linux Users groups are all populated by 90% college and high school students.
What do you think will happen when these students hit the computer departments
at large corporations? They will install Linux, they will use Linux, and they
will recommend Linux. The "explosion" has already started. Many large companies
have already abandoned NOVELL and Microsoft for their servers. (The makers of
the CG effects in the movie Titanic are far from small)
<P> <HR> <P>
<!--====================================================================-->
<IMG ALT=" " SRC="../gx/envelope.gif">
Date: Wed, 26 Aug 1998 03:37:22 -0400 (EDT)<BR>
From: Paul Anderson, <A HREF="mailto:paul@geeky1.ebtech.net">
paul@geeky1.ebtech.net</A> <BR>
Subject: <B>Linux and new users</B>
<P>
I've been reading the LG mailbag... A lot of people think Linux should be
made easier to use. I don't think that's quite right - the idea, IMHO,
should be to make it so that Linux can be used by someone who's new to
computers, BUT they should have to learn to use it's full power. With
power, knowledge must come or disaster will follow instead. The goal, in
the end, is that the person becomes a self-sufficient user, capable of
sorting out most difficulties without needing help. TTYL!
<P>
Paul Anderson
<P> <hr> <P>
<!--================================================================-->
<center>Published in <i>Linux Gazette</i> Issue 32, September 1998</center>
<!--====================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG SRC="../gx/indexnew.gif" ALT="[ TABLE OF
CONTENTS ]"></A>
<A HREF="../index.html"><IMG SRC="../gx/homenew.gif" ALT="[ FRONT
PAGE ]"></A>
<A HREF="./lg_tips32.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P>
<h5>This page written and maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com">gazette@ssc.com</A><BR>
Copyright © 1998 Specialized Systems Consultants, Inc. </H5>
<P> <HR> <P>
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <hr> <P>
<!-- QUICK TIPS SECTION ================================================== -->
<center>
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.gif">
More 2¢ Tips!</A></H1> <BR>
Send Linux Tips and Tricks to <A HREF="mailto:gazette@ssc.com">
gazette@ssc.com
</A></center>
<p><hr><p>
<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_tips32.html#hammel">2 Cent Tip from the 'Muse</a>
<li><a HREF="./lg_tips32.html#hristev">Tips and Tricks: Keeping track of your config files</a>
<li><a HREF="./lg_tips32.html#hefferson">2 cent tip: Cross platform text conversion.</a>
<li><a HREF="./lg_tips32.html#leggett">XFree86 and the S3ViRGE GX2 chipset</a>
<li><a HREF="./lg_tips32.html#peda">Clearing the Screen</a>
<li><a HREF="./lg_tips32.html#kelly">Re: Shell Scripting Resources <-- TIP</a>
<li><a HREF="./lg_tips32.html#kerr">Re: Recognising the AMD K5-PR166</a>
<li><a HREF="./lg_tips32.html#brooke">Your atapi CDROM</a>
<li><a HREF="./lg_tips32.html#looijaard">Tips: simulataneous kernel versions</a>
<li><a HREF="./lg_tips32.html#siew">Creating man pages made easy!</a>
<li><a HREF="./lg_tips32.html#samuelson">2c Tip Re: Cross-platform Text Conversions</a>
<li><a HREF="./lg_tips32.html#scgmille">Un-tar as you download</a>
<li><a HREF="./lg_tips32.html#burns">megaraid drivers</a>
<li><a HREF="./lg_tips32.html#wood">Re: simultaneous versions of Kernels</a>
</ul>
<P> <hr> <P>
<!--================================================================-->
<a name="hammel"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
2 Cent Tip from the 'Muse
</H3>
Date: Fri, 28 Aug 1998 00:13:07 -0600 (MDT)<BR>
From: Michael J. Hammel, <A HREF="mailto:mjhammel@fastlane.net">
mjhammel@fastlane.net</A>
<P>
You know, I don't think anyones mentioned it before in the Gazette, but
there is this little program that is handy as all get out: units. You give
it the units you have and specify what you want it converted to and Viola!
It converts it for you! It won't do Celsius/Farenheit conversions, but
handles Grams/Pounds conversions just fine. And for all those Linux cooks
out there, it converts cups to quarts, teaspoons to tablespoons and cups to
tablespoons.
<P>
Its the units freaks Swiss Army Knife. No hacker forced to make his own
Thai curries should be without it.
<P>
Michael J. Hammel
<P> <hr> <P>
<!--================================================================-->
<a name="hristev"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Tips and Tricks: Keeping track of your config files
</H3>
Date: Mon, 03 Aug 1998 11:00:16 +1200<BR>
From: Ryurick M. Hristev<A HREF="mailto:physrmh@phys.canterbury.ac.nz">
physrmh@phys.canterbury.ac.nz</A>
<P>
This is my trick for keeping track of the many config files you find
on a Linux/Unix system.
<p>
Most config files are in the /etc directory. However, particularly on a
home machine you won't change them all and sometimes you want to save
(e.g. on a floppy) only the files you have changed. Besides, you don't
want to have to remember the exact location for every one.
<p>
So here's what I do:
<ul>
<li>created a /root/config directory
<li>Each changed config file for whatever program gets a symlink
in the /root/config
</ul>
<p>
Then every time I want to change something I go directly to /root/config.
If I want to backup my system configuration, I just copy the files
by dereferencing the symlinks, etc. ...
<p>
Cheers,<br>
Ryurick M. Hristev
<P> <hr> <P>
<!--================================================================-->
<a name="hefferson"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
2 cent tip: Cross platform text conversion.
</H3>
Date: Thu, 06 Aug 1998 13:07:59 -0400<BR>
From: Jim Hefferon, <A HREF="mailto:jim@joshua.smcvt.edu">
jim@joshua.smcvt.edu</A>
<P>
To convert to a DOS text file, mount a DOS floppy and copy the text
file.
<PRE>
$ su (you are prompted for a password)
# mount /dev/fd0 -t msdos /mnt/floppy (the # says that you are root
BE CAREFUL!)
# cp myfile.tex /mnt/floppy
# exit
$
</PRE>
For instance, after these, I can use SAMBA to get myfile.tex to an
NT network printer
(Z:> copy \\mymachinename\mnt\floppy\myfile.tex lpt2). It makes sense
if you do this often
to have a DOS disk always mounted, but if you mount as above, remember
to umount before
you try, say, mounting a different floppy.
<P>
I find this easier than a solution with the tr command, because I always
forget how to
do such solutions, but I can remember how to copy.
<P>
Jim Hefferon
<P> <hr> <P>
<!--================================================================-->
<a name="leggett"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
XFree86 and the S3ViRGE GX2 chipset
</H3>
Date: Wed, 05 Aug 1998 16:51:53 -0500<BR>
From: Ti Leggett, <A HREF="mailto:tlegget@mailhost.tcs.tulane.edu">
tlegget@mailhost.tcs.tulane.edu</A>
<P>
At work, we just got in a whole slew of computers that use the S3ViRGE
GX2 chipset. Upon trying to install X on these things, I found that the
default Red Hat 5.0 XFree doesn't cut it. This is how I've been able to
fix the XFree86 problems with the S3V GX/2 chipset. First, do not use
the S3V server despite what Xconfigurator says. The GX/2 chipset is not
supported for that server. You must use the SVGA server (besides, it's
accelerated and supports DPMS). Currently, these are the modes supported
as of XFree86-3.3.2pl3:
<PRE>
8bpp:
640x480 works
800x600 works
1024x768 works
1280x1024 works
15/16bpp:
640x480 works
800x600 works
1024x768 works
1280x1024 works
24 bpp:
640x480 works
800x600 works
1024x768 works
1280x1024 works (very picky about monitor modelines though)
32 bpp:
640x480 works
800x600 works
1024x768 does not work
1280x1024 does not work
</PRE>
The card I'm using to test this is a #9 9FX Reality 334 w/8MB RAM. Also
I cannot verify that this works on any version less than
XFree86-3.3.2pl2. pl2 actually has less modes/depth combinations that
work - such as, no 16 bit depths work and 1280x1024 doesn't work in
almost all depths. I suggest upgrading to XFre86-3.3.2pl3. Now onto the
fix.
<P>
Step 1. Make sure you're using the SVGA server (ls -l /etc/X11/X for RH
users, maybe the same on other distros). It should point to
/usr/X11R6/bin/XF86_SVGA. If it's not, link it to it (ln -sf
/usr/X11R6/bin/XF86_SVGA /etc/X11/X).
<P>
Step 2. Open your /etc/X11/XF86Config file for editing.
<P>
Step 3. Find the Graphics Device Section.
<P>
Step 4. Find the device that is the Standard VGA Device (usually has the
line -
<PRE>
Identifier "Generic VGA"
</PRE>
Step 5. Remove the line that says:
<PRE>
Chipset "generic"
</PRE>
Step 6. Uncomment the line that says:
<PRE>
VideoRam "256"
</PRE>
and change it to recognize the amount of RAM your card has in kilo
<PRE>
VideoRam "8192" # 8MB RAM
</PRE>
Step 7. Add the following line (*CRUCIAL*):
<PRE>
Option "xaa_no_color_exp"
</PRE>
This turns off one of the accelerated option that gives trouble.
<P>
Step 8. Add whatever other options you want (for a list see the man
pages on XF86Config, XF86_SVGA, and XF86_S3V)
<P>
Step 9. Change the bit depth and resolution to whatever you want.
<P>
Step 10. Save and close the file and (re)start X.
<P>
Note: I do not claim this will work for all cards using the GX2 chipset. I
can only verify for the video card I'm using. I'm interested to hear how
other video cards handle it. Hope that helps everyone involved. I've
heard from people on Usenet that it works perfectly, and from others it
doesn't.
<P>
Ti Leggett
<P> <hr> <P>
<!--================================================================-->
<a name="peda"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Clearing the Screen
</H3>
Date: Wed, 05 Aug 1998 12:59:13 -0400<BR>
From: Allan Peda, <A HREF="mailto:allan@interport.net">
allan@interport.net</A>
<P>
A few days ago a classmate "accidentally" cat'ed a file
to the screen. He asked asked me what he could do to
reset his confused vt100, as "clear" wasn't sufficient.
<P>
At first I figured he would need to close and re-open the
connection, but then I realized that there are codes to
reset a vt100.
<P>
Here is some C code that resets, and clears the screen.
Save it as vt.C, then run "make vt". Place the executable
in your path, and when the screen looks like heiroglyphics, type
(blindly at this point) "vt". That should clear it up.
<PRE>
/*
** Small program to reset a confused vt100 after
** `cat'ing a binary file.
*/
#include <stdio.h>
int main(void)
{
printf("\033c"); // reset terminal
printf("\033[2J"); // clear screeen
return(0);
}
/*
For more info, see the following URLs:
www.mhri.edu.au/~pdb/dataformats/vt100.html
www.sdsu.edu/doc/texi/screen_10.html
www.cs.utk.edu/~shuford/terminal/ansi_x3.64.html
They have more vt100 escape codes.
**
*/
</PRE>
<P> <hr> <P>
<!--================================================================-->
<a name="kelly"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Shell Scripting Resources <-- TIP
</H3>
Date: Wed, 5 Aug 1998 17:34:50 +0100 (BST)<BR>
From: Sean Kelly, <A HREF="mailto:S.Kelly@newcastle.ac.uk">
S.Kelly@newcastle.ac.uk</A>
<P>
In issue 31 it was mentioned that someone had been looking for
some shell scripting help.
<P>
Take a look at http://www.oase-shareware.org/shell/ as I have
heard many people mention this site in response to shell scripting
queries.
<P>
Sean.
<P> <hr> <P>
<!--================================================================-->
<a name="kerr"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Recognising the AMD K5-PR166
</H3>
Date: Wed, 05 Aug 1998 11:22:43 -0400<BR>
From: Shane Kerr, <A HREF="mailto:kerr@wizard.net">
kerr@wizard.net</A>
<blockquote> <font color="navy">
I'm wondering whether any other readers have used the AMD K5-PR166 with
Linux. It's just that my system seems to think it's a K5-PR133 and states
that it's running at 100MHz. Also, the BogoMips value indicates that the
processor is running at 100MHz.
Anyone any advice?
</font></blockquote>
I'm running a K5 P133+ on one of my systems - it actually is running at
100 MHz, that's why it's a "P133+". It's like the Cyrix processors, the
name is basically a lie for marketing.
<P>
I wouldn't put too much stock in the BogoMips value - it is bogus after
all! My system clocks in at an equivalent to a 112 MHz system when I run
the distributed.net client - the reason AMD claims a higher clock value
is probably because some instructions run faster, and those may just not
happen to be the instructions used in to BogoMips loop.
<P>
As for your system thinking your K5-PR166 is a K5-PR133, it's probably
because you have the motherboard jumpered wrong and/or the BIOS
configured wrong. Are you sure that your motherboard & BIOS support the
chip?
<P>
Shani
<P> <hr> <P>
<!--================================================================-->
<a name="brooke"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Your atapi CDROM
</H3>
Date: Thu, 06 Aug 1998 16:50:04 -0500<BR>
From: Ian and Iris, <A HREF="mailto:brooke@mail.jump.net">
brooke@mail.jump.net</A>
<P>
Your /dev directory is the culprit. Current installs use:
<PRE>
/dev/hda
/dev/hdb
/dev/hdc
/dev/hdd
(/dev/hde)
(/dev/hdf)
</PRE>
for the first, second, (and third) ide interfaces, m,s,m,s(,m,s). Older installs
had the /dev directory written a little differently. You would have the old
standard, which was
<PRE>
/dev/hdnx
</PRE>
where n was interface, and x was a/b for master/slave.
<P>
The only difference is in the names of the files. If you rename them, you will
be in compliance. Alternatively, you could run makedev from a recent kernel,
though I do not pretend to know all the details of that.
<P> <hr> <P>
<!--================================================================-->
<a name="looijaard"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Tips: simulataneous kernel versions
</H3>
Date: Fri, 14 Aug 1998 17:35:14 +0200<BR>
From: Frodo Looijaard, <A HREF="mailto:frodol@dds.nl">frodol@dds.nl</A>
<P>
<blockquote> <font color="navy">
From: Renato Weiner, reweiner@yahoo.com<BR>
Recently I was looking at the Gazette and I think I have a good
suggestion of an article that will be very useful for the Linux
community. I have had some technical difficulties of having two
simultaneous versions of Kernels in my system. I mean a stable one
and a developing one. I searched the net looking for information of
how to co-exist both but it's completely fragmented. If somebody
more experienced could put all this information together, it will
certainly help a lot of people from kernels developers to
end-users.
</font></blockquote>
This may come a bit late, but I am in the process of writing a (mini)HOWTO
on this subject. It is not quite trivial, especially with modules lying
around, or if you want several kernels with the same version number.
<P>
Check out <A HREF="http://huizen.dds.nl/~frodol/howto.html">
http://huizen.dds.nl/~frodol/howto.html</A> for now. I am still in
the process of getting it approved as an official mini-HOWTO.
<P>
Frodo
<P> <hr> <P>
<!--================================================================-->
<a name="siew"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Creating man pages made easy!!!
</H3>
Date: Sun, 16 Aug 1998 16:14:34 +1000<BR>
From: Steven K.H. Siew, <A HREF="mailto:ksiew@tig.com.au">
ksiew@tig.com.au</A>
<P>
Below is something I wrote to help lay people create their own man pages
easily
<P>
----------------------------------------------------------------------------
----
<P>
If you ever wrote a program using gcc in linux, you may have come across
this problem. You have just finished your wonderful little program which is
of great use to you and you need a man page for it.
<P>
Of course, you have absolutely no idea how to write a man page. Don't you
need to know how to use troff? Or is it nroff to write a man page? Luckily
there is a much easier way to write a man page.
<P>
Here I shall describe an easy and quick (and dirty) way of writing a man
page without learning troff or nroff. In order to do so, you must have the
Perl version 5.004 (or higher) installed on your Linux box.
<P>
There is a man page in the various Perl man pages on the creation of a man
page using the Perl util "pod2man". It is called "perlpod.1". Below is a
step by step guide to finding the man page and the util.
<PRE>
ksiew> su
password:
#|/root>locate perlpod.1
/usr/man/man1/perlpod.1
#|/root>locate pod2man
/usr/bin/pod2man
</PRE>
Now, to write your own man pages, you must first read the perlpod.1 man page.
You can do this by "man perlpod". However, to read the pod2man man page, you
must first create it by using pod2man itself.
<PRE>
#|/root>pod2man /usr/bin/pod2man > pod2man.1
#|/root>ls -al pod2man.1
-rw-r--r-- 1 root root 13444 Aug 16 12:12 pod2man.1
#|/root>mv pod2man.1 /usr/man/man1/pod2man.1
</PRE>
Okay, now you can read the pod2man man page you have just created by using
the command "man pod2man". After reading it, you can now create your own man
pages. As an example, I shall describe a simple man page for one of my own
C programs called "addline". I first create a textfile called "addline.pod"
and then turn it into a manpage using 'pod2man --center="Addline program
manpage" addline.pod > addline.1'.
<P>
Finally, I move the addline man page into its proper place using "mv
addline.1 /usr/man/man1/addline.1". There; creating your own man page is
simple, isn't it?
<P>
Below is a sample addline.pod file
<PRE>
-------------------Cut here and do not include this line---------------------
=head1 NAME
addline - addline numbers to textfiles
=head1 SYNOPSIS
B<addline>
[ B<-c> ]
[ B<-v> ]
[ B<-3> ]
[ B<--colon> ]
I<inputfile>
=head1 DESCRIPTION
B<addline> inserts line numbers into textfiles. It was written to automate
the insertion of numbers into a data file of results from a neural network
program.
=head1 OPTIONS
=over 8
=item -c
Ignores comments lines. A comment line is any line that starts with a '#'.
This makes it easier to insert comments in the textfile without messing up
the line numbers.
=item -v
Displays the version number of the addline.
=item -3
Uses 3 digits for the line numbers even if the number requires less than 3
digits. For example, 013 instead of 13. The default is to use as few
digits for the line number as possible.
=item --colon
Separates the line number from the rest of the line with a ':' character.
=back
=head1 EXAMPLES
addline textfile
addline -c textfile
addline -c --colon textfile
=head1 NOTES
Addline is written in C and compiled using gcc version 2.7.8. It uses the
standard C library and is designed to be fast and efficient.
=head1 RESTRICTIONS
Never ever use addline on a binary file.
=head1 BUGS
There are no bugs in addline, there are just some undocumented features.
=head1 AUTHORS
Original prototype by Steven Siew, but so massively hacked over by
his sister such that Steven Siew probably doesn't recognize it anymore.
-------------------Cut here and do not include this line---------------------
</PRE>
<P> <hr> <P>
<!--================================================================-->
<a name="samuelson"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
2c Tip Re: Cross-platform Text Conversions
</H3>
Date: Sun, 16 Aug 1998 07:52:17 -0500 (CDT)<BR>
From: Peter Samuelson, <A HREF="mailto:psamuels@sampo.creighton.edu">
psamuels@sampo.creighton.edu</A>
<P>
In LG31 you published a 2c tip for a unix2dos replacement written in Tcl.
The author asserts that "It turned out to be really easy to do this in
Tcl." Even easier in Perl, I say. Symlink the following code to the
same names (d2u, u2d, m2d, m2u, u2m, d2m) Matt used. Make sure this
file has execute permission, of course.
<P>
Also, if you just want Perl to edit the input files in place, change
the "perl -wp" to something like "perl -wpi.orig"....
<P>
Peter Samuelson
<PRE>
#!/usr/bin/perl -wp
#
# Simpler unix2dos2mac utility for 2-cent tip, mainly because Tcl is ugly.
# No comments that Perl is ugly too, please.
#
# Usage: a standard Unix filter:
# input: filename(s) or stdin
# output: stdout
# Buglet: u2m leaves lone CR at the end of file if it didn't end in LF
# (Fixing it would use more memory.)
BEGIN {
$_=$0 =~ s|.*/||;
$pcmd='s/$/\r/' if ($0 eq 'u2d');
$pcmd='s/\r$//' if ($0 eq 'd2u');
$pcmd='s/$/\r/;chop' if ($0 eq 'u2m');
$pcmd='s/\r/\n/g' if ($0 eq 'm2u');
$pcmd='chomp' if ($0 eq 'd2m');
$pcmd='s/\r/\r\n/g' if ($0 eq 'm2d');
unless($pcmd) {
print STDERR "This script must be invoked under one of the names:\n",
" u2d, d2u, u2m, m2u, d2m, m2d\n";
exit 1;
}
}
eval $pcmd;
</PRE>
<P> <hr> <P>
<!--================================================================-->
<a name="scgmille"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Un-tar as you download
</H3>
Date: Wed, 19 Aug 1998 13:08:52 -0500<BR>
From: <A HREF="mailto:scgmille@indiana.edu">scgmille@indiana.edu</A>
<P>
It's time for fun with pipes. Recently, when downloading the latest kernel
over a ridiculously slow connection, I wanted to see where the download
was by checking which file in the tarball was being received. After
pondering the pipes and GNU utils, this thought came to mind.
<P>
You can decompress and un-tar your files as they download, sort of a
"streaming decompressor", if you will. Form the command line:
<PRE>
tail -f --bytes=1m file-being-downloaded.tar.gz | tar -zxv
</PRE>
Tail will display downloaded portion of the file, then remain open
displaying bytes as they come. Make sure the 1m (1 megabyte in this case) is
LARGER than what you have already downloaded. The piped output of tail
goes to tar and the rest is history. Similarly for bz2 files:
<PRE>
tail -f --bytes=1m file.tar.bz2 | bunzip2 - | tar -xv
</PRE>
Enjoy!
<P> <hr> <P>
<!--================================================================-->
<a name="burns"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
megaraid drivers
</H3>
Date: Thu, 20 Aug 1998 18:34:32 -0400<BR>
From: "Michael Burns2, <A HREF="mailto:rburns@shaw.wave.ca">
rburns@shaw.wave.ca</A>
<P>
Hi,
It's been a long fight to get AMI to produce this
<A HREF="./megaraid.patch">patch</A> and the <A
HREF="./megaraid.doc">install documentation</A>.
<P>
Mike Burns
<P> <hr> <P>
<!--================================================================-->
<a name="wood"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Suggestion for Article, simultaneous versions of Kernels
</H3>
Date: Sat, 29 Aug 1998 21:35:27 -0400 (EDT)<BR>
From: R Garth Wood<A HREF="mailto:rgwood@itactics.itactics.com">
rgwood@itactics.itactics.com</A>
<P>
I think Hans-Georg is talking about having a
stable linux kernel version X and a dev version X
(ie not 2.0.34 and 2.1.101 but 2.0.34 and 2.0.34).
I assume when you issue:
# make modules_install
it tromples your old stable modules and gives
you errors when you use your stable version X.
This is not as trivial a problem as it first
seems. However there is a solution. Have a
look at the make-kpkg docs (debian distro);
specifically the "flavour" option. This will
solv your problem. It won't be easy, though.
<P>
Have a look at:<BR>
/etc/conf.modules<BR>
to see what I mean.
<P>
R Garth Wood
<P> <hr> <P>
<!--================================================================-->
<center>Published in <I>Linux Gazette</I> Issue 32, September 1998</center>
<P> <hr> <P>
<!--================================================================-->
<A HREF="./index.html"><IMG SRC="../gx/indexnew.gif" ALT="[ TABLE OF
CONTENTS ]"></A> <A HREF="../index.html"><IMG SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A> <A HREF="./lg_mail32.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<A HREF="./lg_bytes32.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<h5>This page maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com">gazette@ssc.com</A><BR>
Copyright © 1998 Specialized Systems Consultants, Inc. </H5>
<P>
<center>
<H1><A NAME="answer">
<img src="../gx/dennis/qbubble.gif" alt="(?)" border="0" align="middle">
<font color="#B03060">The Answer Guy</font>
<img src="../gx/dennis/bbubble.gif" alt="(!)" border="0" align="middle">
</A></H1>
<BR>
<H4>By James T. Dennis,
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a><BR>
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H4>
</center>
<p><hr><p>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<H3>Contents:</H3>
<p><a href="#tag_greeting"
><img src="../gx/dennis/bbub.gif" alt="(!)" border="0"
align="middle">Greetings From Jim Dennis</A></p>
<DL>
<!-- index_text begins -->
<dt><A HREF="#tag_phreak"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"><STRONG>phreaking</STRONG></A>
<dt><A HREF="#tag_abandon"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"><STRONG>ISP Abandons User in Move
to NT</STRONG></A>
<dt><A HREF="#tag_javaterm"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
></A>Driving Terminals w/Java
--or--
<dd><A HREF="#tag_javaterm"><STRONG>Java Telnet/Terminal</STRONG></A>
<dt><A HREF="#tag_BBS"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>Finding BBS Software for Linux</STRONG></A>
<dt><A HREF="#tag_flaws"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"><STRONG>The Five Flaws of <em>the</em>
Unix System</STRONG></A>
<dt><A HREF="#tag_doslinux"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"><STRONG>XFree86 Installation in
DOSLinux</STRONG></A>
<dt><A HREF="#tag_resume"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
></A>resume on AS/400
--or--
<dd><A HREF="#tag_resume"><STRONG>Resume Spam
</STRONG></A>
<dt><A HREF="#tag_softwindows"><img src="../gx/dennis/qbub.gif"
height="28" width="50" alt="(?)" border="0"
><STRONG>Linux Port of SoftWindows
</STRONG></A>
<dt><A HREF="#tag_convert"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
></A>Connecting Linux to Win '95 via Null Modem
--or--
<dd><A HREF="#tag_convert"><STRONG>A Convert!
</STRONG></A>
<dt><A HREF="#tag_apache"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
><STRONG>MS FrontPage for Linux/Apache</STRONG></A>
<dt><A HREF="#tag_emulate"><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><STRONG>Virtual System Emulator for Linux and Why NOT to Use Them</STRONG></A>
<dt><A HREF="#tag_database"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>FoxPlus for Linux ?</STRONG></A>
<dt><A HREF="#tag_distrib"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>More on Distribution Preferences</STRONG></A>
<dt><A HREF="#tag_proxy"><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><STRONG>IP Masquerading/Proxy?</STRONG></A>
<dt><A HREF="#tag_disable"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
></A>PPP
--or--
<dd><A HREF="#tag_disable"
><STRONG>The "Difficulty" is in <em>Disabling</em> the Services</STRONG></A>
<dt><A HREF="#tag_DVI"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
><STRONG>How to read DVI files?</STRONG></A>
<dt><A HREF="#tag_superblock"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
><STRONG>Bad Super-block on Filesystem</STRONG></A>
<dt><A HREF="#tag_serial"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
></A>Mulitiple processes sharing one serial port
--or--
<dd><A HREF="#tag_serial"><STRONG>Multiplexing the Computer
-- ISDN Modem Connection
</STRONG></A>
<dt><A HREF="#tag_permission"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>Permission to Set up a Linux Server</STRONG></A>
<dt><A HREF="#tag_detach"><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><STRONG>Detaching and Re-attaching to Interactive Background
Processes</STRONG></A>
<dt><A HREF="#tag_cdr"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
><STRONG>[announce] Cdrdao 1.0 -
Disc-at-once writing of audio CD-Rs</STRONG></A>
<dt><A HREF="#tag_rs422"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>High Speed Serial (RS422) under Linux</STRONG></A>
<dt><A HREF="#tag_modem"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
><STRONG>ANOTHER MODEM PROB</STRONG></A> Plus, More on Grammar
<dt><A HREF="#tag_notfound"><img src="../gx/dennis/qbub.gif"
height="28" width="50" alt="(?)" border="0"
><STRONG><tt>/usr/bin/open</tt> command not found</strong></A>
<dt><A HREF="#tag_tuning"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>Tuning X to work with your Monitor</STRONG></A>
<dt><A HREF="#tag_libc5"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
></A>The last Linux C library version 5, 5.4.46, is released.
--or--
<dd><A HREF="#tag_libc5"><STRONG>The End of libc5:
A Mini-Interview with H.J Lu</STRONG></A>
<dt><A HREF="#tag_startup"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
></A>Linux System Administration.
--or--
<dd><A HREF="#tag_startup"><STRONG>Where to put '<tt>insmod</tt>' and
'<tt>modprobe</tt>' Commands for Start-up</STRONG></A>
<dt><A HREF="#tag_clock"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>The BIOS Clock, Y2K, Linux and Everything</STRONG></A>
<dt><A HREF="#tag_ping"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
></A>Online Status Detector
--or--
<dd><A HREF="#tag_ping"><STRONG>Failover and High Availability for Web Servers
</STRONG></A>: Conditional Execution Based on Host Availability
<dt><A HREF="#tag_accounts"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>SysAdmin: User Administration: Disabling Accounts</STRONG></A>
<dt><A HREF="#tag_lilo"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"></A>Thank you
--or--
<dd><A HREF="#tag_lilo"><STRONG>Articles on LILO Saves Life?
</STRONG></A>
<dt><A HREF="#tag_NDS"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
></A>Netware NDS Client
--or--
<dd><A HREF="#tag_NDS"><STRONG>NDS (Netware Directory Services) for Linux:
Clients and Servers</STRONG></A>
<dt><A HREF="#tag_95slow"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>More 'Win '95 Hesitates After Box Has Run Linux?'</STRONG></A>
<dt><A HREF="#tag_nonlinux"><img src="../gx/dennis/qbub.gif"
height="28" width="50" alt="(?)" border="0"
></A>Bad Clusters on Hard Drive
--or--
<dd><A HREF="#tag_nonlinux"><STRONG>Another Non-Linux Question!
</STRONG></A>
<dt><A HREF="#tag_progenv"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
></A>Help with C/C++ Environment Program
--or--
<dd><A HREF="#tag_progenv"><STRONG>Integrated Programming Environments
for Linux</STRONG></A>
<dt><A HREF="#tag_cluster"><img src="../gx/dennis/qbub.gif" height="28"
width="50" alt="(?)" border="0"
><STRONG>Web Server Clustering Project</STRONG></A>
<dt><A HREF="#tag_ftpd"><img src="../gx/dennis/qbub.gif" height="28" width="50" alt="(?)" border="0"
></A>wu-ftpd guest account on a Linux Box
--or--
<dd><A HREF="#tag_ftpd"><STRONG>WU-FTP guestgroup problems</STRONG></A>
<!-- index_text ends -->
</DL>
<P><HR width="40%" align="center"></P> <!-- :::::::::::::::::::::::: -->
<H3><a name="#tag_greeting"
><img src="../gx/dennis/bbubble.gif" alt="(!)" border="0"
align="middle">Greetings From Jim Dennis</A></H3>
<h4 align="center">Linux as a <em>Home</em> Users System</h4>
<p>
We're all getting used to the idea that Linux can attract corporate
users, for deployment as web, ftp, file (SMB and NFS), print and
even database servers; and we're getting used to seeing it used for
routers, mail, and DNS.
</p>
<p>
We're even getting used to the idea that corporate user put Linux
on their desktops (in places where they might have spent a small
fortune on a workstation).
</p>
<p>
But, what about the home/personal user? Most of us consider this
to be an impossible dream. Even those few enthusiasts <em>in</em> the
Linux community who dare to hope for it --- have been saying that
it will take years to gain any percentage of that market.
</p>
<p>
However, I'm starting to wonder about that. I've seen a number
of trade rag articles naysaying Linux on the desktop. Ironically,
when a reporter or columnist explains why Linux isn't suitable for
the desktop --- it actually raises the possibility that it <em>is</em>
suitable for that role.
</p>
<p>
A denial or refutation tells us <em>that the question has come up</em>!
</p>
<p>
What prevents the average IT manager from deploying Linux on their
desktop today? In most cases it's fear. The users are used to
MS Word, MS Excel, and MS PowerPoint. Any user who uses any of
these is forcing all of the rest to do so as well (since these
applications all use proprietary, non-portable, file formats).
</p>
<p>
Everyone who uses Office has to use a PC or a Mac (and many of them
switched away from Macs due to lags in upgrades and subtle file
compatibility problems between the Mac and PC versions of these
applications).
</p>
<p>
Why do Mac users run VirtualPC --- to deal with the occasional
<tt>.DOC</tt>, <tt>.XLS</tt>, or <tt>.PPT</tt> file that they get
--- or some other
proprietary file format (like some of those irritating CD-ROM
encyclopedia) which is only accessible through one application.
</p>
<p>
However, these proprietary formats are not secret codes. Linux
and other Open Source (tm) hackers will turn their attention to them
and crack their formats wide open. This will allow us to have
filters and converters.
</p>
<p>
'<tt>catdoc</tt>', LAOLA, and MSWordView are already showing some progress
on this area (for one of these formats).
</p>
<p>
Microsoft will undoubtedly counter by releasing a new version of
their suite which will carefully break the latest third-party
viewers and utilities (free or otherwise). They may even apply
the most even perversion of intellectual property law yet devised:
the software patent.
</p>
<p>
However. I think that the public, after a decade of following
along with this game, is finally starting to wise up. The next
release that egregiously breaks file format compatibility
may be the end of that ploy (for awhile at least).
</p>
<p>
But what about the home user. How do home users choose their
software? What is important to them?
</p>
<blockquote>
Most of them don't choose their software --- they use
what came on the system and only add things later.
</blockquote>
<blockquote>
When they go out to buy additional software, home users are
the most price conscious of all buyers. Commercial,
government, and other institutional buyers can make a business
case to justify their purchases. Home users just look in
their wallet.
</blockquote>
<blockquote>
The other common influences on the novice home user include
the retail store clerks and their kids. That's one reason why
the school and University markets were always so crucial to
Apple's success.
</blockquote>
<p>
I noticed that the Win '98 <em>upgrade</em> was going for $89. I
couldn't find a "non-upgrade" box anywhere in that store (CompUSA).
</p>
<p>
People are starting to hear that for half that price they can get
this other OS that includes enough games and applications to fill
a 2Gb hard drive.
</p>
<p>
I think MS is actually starting to price itself out of the market.
(It seems that my MS-DOS 5.0 upgrade was only about $35 or $40).
If MS Office weren't bundled with so many new systems, there
probably would be about a tenth the legal copies in home use.
</p>
<p>
With a little more work on LyX and KLyX and a few of its bretheren
--- and a bit more polishing on the installation/configuration
scripts for the various distributions I think we'll see a much more
rapid growth in the home market than anyone currently believes.
I think we may be at 15 to 20 per cent <em>of the home market</em> by
sometime in the year 2000.
</p>
<p>
So, what home applications do we really need to make that happen.
</p>
<dl><dt>I like the "Linux Software Wishlist"
<dd>(http://www.linuxresources.com/wish/)
</dl>
<p>
... because it gives all of us a place to vote on what we
would buy.
</p>
<p>
One class of packages that remember used to be very popular
was the "greeting card" and "banner/sign" packages: PrintShop,
PrintMaster, and Bannermania. Those used to have the cheesiest
clipart/graphics and a fairly limited range of layouts. Limited
enough to make any TeXnician scream with frustration.
</p>
<p>
However, they were incredibly popular precisely because of those
constraints. Having a few dozen to a couple hundred choices to
pick from is far less intimidating to home users than all the
power and flexibility you get with TeX, LaTeX, and the GIMP.
</p>
<p>
I would dearly love to see a set of pre-designed greeting cards,
certificates ("John Doe has Successfully Completed the Yoyodyne
Tiddly Winks Seminar" --- with the lacy border --- you know the
kind!), etc. all done in TeX or PS or whatever. This and a
front end chooser and forms dialog to fill in the text would be
a really killer home app.
</p>
<p>
(Bannermania was geared to creating large banners, either on
fanfold paper or as multiple sheets to be cut and pasted together
on to a backing board (piece of cardboard).
</p>
<p>
I think that a new Linux implementation of this sort of app
built over the existing software (TeX, GhostScript, etc) would
end up being vastly better than anything that was possible under
the old PrintShop --- and still be as simple.
</p>
<p>
I'm sure most of us have that one old DOS, Windows, Mac, or
other application or game that we'd like to see re-done for Linux.
So, dig out the publisher's address or phone number (assuming they
still exist) and let them know what you want. Then post your
request to the wishlist.
</p>
<p>
Even these trivial bits of action can make Linux the choice
of home users. I say this because I think it's about time that
they <em>had</em> a choice.
</p>
<!-- :::::::::::::::::: begin letters :::::::::::::::::::::::::::::: -->
<A name="tag_phreak"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
align="left" border="0">phreaking </H3>
<p><strong>From an00997 on 30 Jul 1998 </strong></p>
<!-- begin body -->
<p><strong>Hi,I'm Dodo.I'm just finishing a course of computer operations and I
would like to know about phreak,hacking...
Can you tell me about it ???
Tips or news ???
</strong></p>
<p><strong>Thanks...
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>My first thought is that this is some sort of troll
(message intended to generate flames --- often forged
to appear from an unsuspecting party so as to harass
the apparent sender).
</blockquote>
<blockquote>That doesn't make sense in this case since getting
one flame from "The Answer Guy" is hardly worth
the trouble.
</blockquote>
<blockquote>There for I have to assume that you have chosen an
unusually apt handle for yourself.
</blockquote>
<blockquote>So, you're finishing a course in computer operations.
That's nice and productive. You should also considering
taking a course in basic composition and grammar.
</blockquote>
<blockquote>(Hints: commas and periods are normally followed by
spaces; question marks normally are used in sequences
of one (the "triple question mark" is for emphasis);
and you finish courses that are "in" or "on" topics,
not "of" them).
</blockquote>
<blockquote>Normally I don't flame people on their spelling
grammar, or punctuation. However, there doesn't
seem to be much else to say to you.
</blockquote>
<blockquote>You want to know about phreaking and "hacking."
The first think to know about phreaking (the study
of practical phone fraud techniques) is that use of
most of the techniques used by phreaks is illegal
in just about any jurisdiction. In many places you
can a) go to jail and b) insure that you can never
work in the computer industry again by getting
convicted of crimes involving telephone and computer
fraud.
</blockquote>
<blockquote>The term "hacking" as applied to techniques for
bypassing system security and gaining unauthorized
access (or privileges on) them is highly controversial.
It is accepted practice among computer <EM>enthusiasts</EM>
to use the term "cracking" to discuss those activities
and "hacking" to discuss the lawful and legitimate
pursuit of their hobby.
</blockquote>
<blockquote>In this latter sense we call Linus, Alan Cox, and
others "Kernel hackers."
</blockquote>
<blockquote>The media prefers to use the term "hacker" in the
former sense. This is one of many reasons that
"hackers" and "crackers" alike tend to be disgusted
by the media. (As a regular contributor to LG
I'm considered by some to be in "the media" and thus
worthy of suspicion and disgust. Others have other
opinions --- some of those are even less complimentary).
</blockquote>
<blockquote>I personally find the whole "phreak mystique" to be
disgusting. There is a tendency to romanticize
phreaks and crackers ---- to create a mythology of
the "uberhacker" (a Nietsche-an reference that
very few of them understand). That whole subculture
is permeated with a smug "superiority" that tries to
say: "we know something you don't."
</blockquote>
<blockquote>Of course, to them I'm a nobody. I've never cracked
into anyone's system. I've never written any
"warez" or "sploits" and I don't even know all the
buzz words and jargon to participate in their
conversations. I'm a "lam3r" that's not even good
enough to be a "wannabe." In other words, I'm not
an "3l33t d000d."
</blockquote>
<blockquote>It also tends to be quite juvenile. They seem to
have an inordinate fondness for bad grammar and
intentionally crazy spelling. I suppose it's part
of the general affectation of 'tude --- the
rebellious aversion to authority and convention,
even the conventions of language itself. Trite!
</blockquote>
<blockquote>Now this is not to say that you have no business
learning about phreaking and cracking. There's
nothing wrong with learning about these things, nor
even anything inherently wrong with experimentation
and research. However, there is a major problem if
you conduct your "research" on "subjects" without
their informed consent.
</blockquote>
<blockquote>As a sysadmin's (and sometimes security) consultant I
study these things as much as my time allows. Most
of my information comes from mailing lists like bugtraq,
and from web sites like rootshell and the l0pht. I'll
let you find those on your own. You can also subscribe
to 2600 and Phrack magazines (printed) to learn more.
Phrack is also available online.
</blockquote>
<blockquote>All of the real "cracker" socializing seems to be done
via IRC (Internet Relay Chat). This has tended to give
the whole IRC system a bit of a bad rap. The popularity
of IRC for this stems from at least two factors: it is
immediate and interactive (instant gratification is
very important in these circles), and it allows for
direct client-to-client communications (DCC) which makes
it easy for participants to exchange "warez" and other
files. From what I gather the old-fashioned BBS is
also still pretty popular in that crowd. These seem to
be "by invitation only" --- so you'll have to curry
favor and do some horse trading to get any phone
numbers on any of them.
</blockquote>
<blockquote>Naturally it is important for these crackers and phreakers
to maintain their elite status by locking out the lamers
and wannabes. So anything published about them is wrong,
or will be right after they read it.
</blockquote>
<blockquote>I suspect that this message by itself will probably get
me flamed and possibly attract some cracks on my systems
(d00dz, don't bother; it's not sporting --- I don't do
anything special to protect my servers, honest! My
web and ftp servers are just virtual hosts on some poor
ISP, no challenge at all).
</blockquote>
<blockquote>Meanwhile my best advice to you, Dodo, is to cut your
moniker in half and just "do" something constructive.
If you want to make a serious study of "cracking" and
"phreaking" than the Linux Gazette Answer Guy is a
pretty lame place to start. In short: get a life!
</blockquote>
<!-- end body -->
<A name="tag_abandon"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>ISP Abandons User in Move to NT</H3>
<p><strong>From Tsyplakov Maxim V. on 28 Jul 1998 </strong></p>
<!-- begin body -->
<p><strong>Regard!
Help to solve a problem:
Beside my ISP installed by Windows NT.
Can will Not be connected with him through dial-up from Linux.
Scenario waits <tt>login:</tt> and <tt>password:</tt>, but from there
does not come no lines.
Links Linux-Linux, Linux-Free BSD, worked without any problems.
Who known what is wrong?
<tt>CCL: Invalid command (c)</tt>.
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>It sounds like you should try talking to your ISP. If
they won't co-operate or help, switch to another one.
</blockquote>
<blockquote>If there aren't any others in your area, find some friends
and form your own -- either a co-op or a commercial. Welcome
to the free market!
</blockquote>
<blockquote>They are probably using some proprietary MS RAS (remote access
service) or they've done something weird with their terminal
servers or PPP software --- though the fact that it connect
and prompts for a login and password doesn't sound like
a MS NT RAS or PPTP sort of symptom --- those are text and
MS prefers to use proprietary binary in their protocols and
document formats.
</blockquote>
<blockquote>In any event I don't have nearly enough information to help.
</blockquote>
<!-- end body -->
<A name="tag_javaterm"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Java Telnet/Terminal: </H3>
<p><strong>From Spencer T. Kittelson on 28 Jul 1998 </strong></p>
<!-- begin body -->
<p><strong>They're out there but not <EM>all</EM> there.
</strong></p>
<p><strong>We have some old code that runs on terminals that we would like to
drive with a Java based server. We are looking for the reverse
equivalent of a terminal emulator, i.e. a Java toolkit that
multiplexes serial/network character streams and provides support
for character based devices. In particular we are looking for the
Java equiv. of the C curses library.
</strong></p>
<p><strong>Any ideas if and where such a thing exists?
<br>Spencer
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>The canonical resource for finding Java applets
and applications on the web is at "developer.com"
(formerly known as Gamelan).
</blockquote>
<blockquote>Here's URL that will provide you with a list of
some telnet and terminal emulators writting in Java
</blockquote>
<blockquote><blockquote><code
><A HREF="http://www-c.developer.com/directories/find.cgi?search=Java+Telnet&num=50&sp=sp"
>http://www-c.developer.com/directories/find.cgi?search=Java+Telnet&num=50&sp=sp</A>
</code></blockquote></blockquote>
<blockquote>(Be sure to cut and paste that without the linebreak,
and the extraneous backslash that I use to indicate
the line continuation).
</blockquote>
<blockquote>There are a number of these listed there and I
haven't tried any of them (well, I tried WebTerm
awhile back and I did look at the online demo
of JXterm, and Crosstie).
</blockquote>
<blockquote>I've played with <a href="http://www.sco.com/">SCO</a>'s
Tarantella --- which seems to
be more of an X Windows in a Java frame --- and
also provides support to access NT desktops through
a Java frame. Alas, that seems to be a proprietary
technology and it seems to require a SCO OpenServer
to host part of it. (I suspect that means that it
doesn't qualify as a "Pure Java" solution --
though the client side of it might be "pure Java").
</blockquote>
<blockquote>WebTerm seems to be available for non-commercial use
--- but doesn't define the term (do they mean
you can't use it in your business environment or
just that you can't sell copies of it). JXTerm
and Crosstie seem to be commercial products.
</blockquote>
<blockquote>One limitation of most of the Java implementations
in existing web browsers is that the Java applets
can normally only open connections to the same
address from which they were fetched. This means
that your host would have to run a web server with
some HTML pages that contained the required
applet markup. You could also distribute these
to your systems along with an installation of the
JRE (Java Runtime Environment) and a copy of
'appletviewer' --- that would allow you to run
these without the common browser restrictions.
</blockquote>
<blockquote>Another problem with these is that they are not
trivial to install and run via the 'appletviewer'
WebTerm 2.0 gave me grief about "missing resources"
while the same copy of appletviewer was
perfectly content to run the various other
demos that I had laying around. I'm sure that it's
some fussing with the <tt>CLASSPATH</tt> variable or
some other thing that I don't have configured
to it's liking. Frankly I haven't worried about it
much.
</blockquote>
<blockquote>I presume that your clients are PC's or NC's rather
than Linux boxes. Otherwise I presume you'd just
configure your browswers with 'telnet' configured
as a helper app and just embed URL's of the form:
</blockquote>
<blockquote><blockquote><code><a href="telnet://appserver.mydomain.org">
Telnet to our Application Server</a>
</code></blockquote></blockquote>
<blockquote>... and be done with it.
</blockquote>
<blockquote>Naturally you can do that on your Windows boxes
as well --- just install some sort of telnet utility
and configure the browsers to use it. I personally
like C-Kermit for telnet -- so you might consider
using K'95 (the Win32 Kermit from Columbia University).
</blockquote>
<blockquote>That would give you a consistent scripting, telnet and
file transfer environment across your systems.
</blockquote>
<blockquote>That approach (using helper apps) is likely to be much
faster, more robust and probably and cheaper than trying
to do this with Java applets. The usual telnet utilities
have had years to mature and are written to the clients
native API's --- so there's no fussing about that.
</blockquote>
<!-- end body -->
<A name="tag_BBS"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Finding BBS Software for Linux</H3>
<p><strong>From Li-cheng Hsu in the
<a href="news://comp.os.linux.development.apps"
>comp.os.linux.development.apps</a>
newsgroup on 29 Jul 1998 </strong></p>
<!-- begin body -->
<p><strong>Greetings,
</strong></p>
<p><strong>I used to be a sysop of FidoNet using Maximus as my BBS system in
DESQview environment. Now I have switched from DOS/Windows to Linux
as my major working platform.
</strong></p>
<p><strong>The question is, is there any BBS system that is recommended to run
in Unix ? It should be able to handle both dial-up & TCP/IP, of
course. <IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle">
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>There's a tree of directories at the master Linux
archive:
</blockquote>
<code><blockquote><blockquote><A HREF="http://sunsite.unc.edu/pub/Linux/system/bbs">http://sunsite.unc.edu/pub/Linux/system/bbs</A>
</blockquote></blockquote></code>
<blockquote>There are several packages there --- including a number of
utilities for ifmail (the Internet to FIDO gateway).
</blockquote>
<blockquote>Most of these are free or shareware.
</blockquote>
<blockquote>There are also Linux ports of MajorBBS and MMB Teammate
(a couple of major commercial BBS packages --- which are
pretty expensive).
</blockquote>
<blockquote>I haven't used any of them so I can't offer specific
suggestions. However, I've crossposted the two newsgroups
that are most likely to have interested and informed
participants (alt.bbs.unixbbs and comp.bbs.misc).
</blockquote>
<blockquote>There are about 50 newsgroups devoted to BBS'
(including various specific BBS packages like TBBS,
MajorBBS, Citadel, etc).
</blockquote>
<blockquote>(I've been a sysop on two large corporate systems,
for Symantec and for McAfee --- so, I used to subscribe
to some of these. However I've never run a small hobbyist
system so I just haven't kept up in the field).
</blockquote>
<p><strong>Thanks in advance. <IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle">
</strong></p>
<blockquote>Linux can handle dial-up as well as console login and give a remote user
normal shell. But you probably want to restrict access for BBS users.
</blockquote>
<blockquote>You can set them up with simple shell script (or <tt>perl</tt>,
or <tt>tcl</tt>) which
would emulate maximus as close as you wish, but I think that better
approach is to use text-based web-browser
<tt><a href="http://lynx.browser.org/">lynx</a></tt> for their shell.
</blockquote>
<blockquote>These are likely to be severe security problems unless
you are a phenomenally good (and careful) programmer.
</blockquote>
<blockquote>I'd did play with a configuration that ran <tt>lynx</tt> in a
chroot jail. That was to prototype a "dial in kiosk"
</blockquote>
<blockquote>One sticking point for my application was that I wanted
a replacement '<tt>getty</tt>' that could auto-detect ANSI PC
emulation (which many BBS' can do with some sort of
magic escape code) and bypass the Unix login command
--- I think I replaced /bin/login in the jail with an
SUID "nobody" copy of <tt>lynx</tt>, and put a <chroot><tt>/etc/issue</tt>
that just said: "Hit any key to ...."
</blockquote>
<blockquote>Thus you set up normal Web site instead of BBS, solving problem with
TCP/IP instantly, and let dial-in users to view it in <tt>lynx</tt>.
<tt>Lynx</tt>
includes provisions to download/upload files using Z-Modem and Xmodem
(by calling external programs <tt>sz</tt> and <tt>rz</tt>) and allows to
restrict users almost as much as you wish.
</blockquote>
<blockquote>However, those various restrictions may not be foolproof.
There have been exploits that bypassed <tt>lynx</tt> restrictions before.
</blockquote>
<blockquote>So, if security is an issue, you definetely want to
lock this in a jail with no shell and take some other
precautions.
</blockquote>
<blockquote>You are right that this is an interesting way to
provide "kiosk" style dial-up using stock HTML/web pages
and off the 'net freeware. That was the whole point of
my prototype (which took all of about three hours one
afternoon).
</blockquote>
<!-- end body -->
<A name="tag_flaws"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>The Five Flaws of <EM>the</EM> Unix System</H3>
<p><strong>From Ashley G. on 29 Jul 1998 </strong></p>
<!-- begin body -->
<p><strong>JIM,
HI I WAS WONDERING IF YOU CAN SEND ME SOME INFO.ALL I NEED IS THE
NAMES OF THE 5 FLAWS IN THE UNIX SYSTEM,JUST THE NAMES.
</strong></p>
<p><strong>IF YOU CAN SEND THEM TO ME I WOULD GREATLY APPRECIATE IT>
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>I think some flames are in order here:
</blockquote>
<ol>
<li>This is not the "We do your homework for you" service.
<li>I volunteer many hours per month answering
questions about Linux. There are others out
there who can answer your questions about
other forms of Unix. I frequently answer
questions about how to interoperate between
Linux and other OS' including many forms of
Unix. Most of what I say about Linux applies
to most other forms of Unix. However the
distinction is important.
<li>You need to learn where your <tt>[Caps Lock]</tt> key is
and keep it turned off if you plan to get
any co-operation or respect from anybody
on the 'net (in Usenet netnews or on any
technical mailing lists).
<li>There is no such thing as "the Unix System"
there are many different versions of Unix ---
and there have been for almost thirty years.
<li>If someone told you that there were "five"
specific "flaws" in Unix they were suffering
from horrible misconceptions.
<li>As likely it may be the case that you've
critically misundertood someone.
</ol>
<blockquote>Now to answer your question:
</blockquote>
<blockquote>There is no list of generally held "flaws" in Unix or
Linux that I know of. There are a number of problems
with even postulating such a list.
</blockquote>
<blockquote>First there isn't any one Unix system. C-Kermit claims
to support about 700 versions and implementations of Unix
(and Unix-like operating systems).
</blockquote>
<blockquote>There is considerable ongoing academic debate about what
precisely is Unix. I won't bother trying to provide
my own definition --- it would just get me flame mail
and perpetuate the debate. There are many people who
will even deny that there's any doubt. They will say:
Unix is any system that has been "branded" by The
Open Group as conformant to the X/Open portability
guidelines (XPG4 or XPG3). Others will pipe in and
say that any thing that meets Spec1170 is Unix, while
others will claim that POSIX is the one true standard.
</blockquote>
<blockquote>At that point we'll go through the whole debate as to
whether Unix is limited to just those systems which are
dubbed to be "Unix" by this or that standards body,
or whether it applies to Unix like systems --- such as
Linux.
</blockquote>
<blockquote>Indeed we could argue for days about what precisely is
Linux. In the strict sense it is considered to be a
set of kernel sources and the ancillary device drivers,
and makefiles. In common usage Linux refers to any of
a number of collections of software that run under a
compilation of those (kernel) sources. Others, notably
Richard Stallman, argue that the term Linux should be
applied only to the kernel sources and that a different
term should be applied to larger aggregations of
software built around it.
</blockquote>
<blockquote>His argument is valid -- since most Linux distibutions
are about 5% to 10% Linux kernel sources, and drivers
and about 25% GNU software. Since RMS is the principle
of the Free Software Foundation (the organization that
owns the copyright over the GNU sources) he has a
reasonable interest in seeing that people know where
some of the major components of their Linux based
GNU systems come from.
</blockquote>
<blockquote>Eventually the FSF will have a full operating system of
it's own: the HURD. The GNU project was started to
build such a system and the fact that they released
a large number of vital components for public use
is what made Linux possible.
</blockquote>
<blockquote>At the same time there are other bodies that have
produced major software subsystems that are
conventionally included in a Linux distribution.
</blockquote>
<blockquote>The computer science research group (CSRG) at
University of California, Berkeley released a large
number of packages and a large body of source code
for public use (BSD). Many of the common utilities
under Linux (most of the NetKit, I think) are from these
sources.
</blockquote>
<blockquote>The X Window system comes from MIT's Athena project and
the free implementation of that which we use under Linux
is principally from the XFree86 Project. XFree86 is the
X Window system that's used by a number of Unix
implementations including FreeBSD, NetBSD, and OpenBSD.
</blockquote>
<blockquote>So, if we were to try to fairly represent these parties
in our nomenclature we'd have to refer to our systems
as:
</blockquote>
<blockquote>Linux/GNU/BSD/XFree86/"MIT X Window System" Systems
</blockquote>
<blockquote>... which is why a respectfully decline to comply
with rms' desire for me to use the phrase Linux/GNU when
I mean "Linux" (in the common broader sense).
</blockquote>
<blockquote>The other reason I choose not do to this most of the time is
that I find it more difficult to read in that form. This is
undoubtedly a horrible character flaw on my part but I find
that I sometimes subvocalize (mentally "sound out") passages
of technical text in my efforts to understand and proofread
it. So, if rms likes he can simply say that my refusal to
refer to this is symptom of my stupidity. I'll cop to that.
</blockquote>
<blockquote>So, I suppose we could say that the "first flaw" of Unix
is that no one seems to know what Unix is.
</blockquote>
<blockquote>While it is tempting to try to follow this line of logic
and devise four more for you --- I think it will be much
quicker and more amusing for you to read <em>The Unix-Haters
Handbook</em> by Simson Garfinkel, et al (IDG Books, (c) 1996).
</blockquote>
<blockquote>Conveniently this book is in four "Parts":
</blockquote>
<blockquote>Part 1: User Friendly?
<br>Part 2: Programmer's System?
<br>Part 3: Sysadmin's Nightmare
<br>Part 4: Et Cetera
</blockquote>
<blockquote>... and I think that every serious student of Unix and Linux
should read this book. For one thing it requires an advanced
understanding of Unix to understand the complaints --- and
a really advanced knowledge to see how many of these
complaints don't apply to many "modern" Unix variants (Linux
in particular).
</blockquote>
<blockquote>For the rest of it I found it amusing, frustrating and
significant that the many contributors to Unix_Haters did not
list modern available alternatives that exhibited the features
they preferred in an OS and environment (or at least that lack
the features that they hate). There were references to
the ancient "Lisp Machines" but there was no clear endorsement
nor were there any suggestions about how things "should be."
</blockquote>
<blockquote>So, as the title suggests this is a curmudgeonly book without
constructive merit. However, the Unix and Linux enthusiast
should be thoroughly familiar with the material for the same
reason that a self-respecting agnostic should be thoroughly
familiar with the major religious works of whatever society
surrounds him or her.
</blockquote>
<!-- end body -->
<A name="tag_doslinux"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<!-- begin body1 -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>XFree86 Installation in DOSLinux</H3>
<p><strong>From STEVEN SCHILLY on 20 Aug 1998 </strong></p>
<p><strong>Hey sorry about 'council' sometimes my mind is wondering about in
many green fields at once! Anyway I figured that out before I got
your mail it was in the init and inittab (although I have no idea
what was wrong!) I copied an init file from a working version of
micro linux to mine and a new kernel of DOSLinux x.xx? (will have
to look). I'd like to run X86Free; where is the best place or way
to download this entire package. What will make installing it as
easy as possible? I like to hack at the system level but don't have
the time right now .. so I'd like the easy way out....Any sug.?
</strong></p>
<!-- end body1 -->
<p><hr align="center" width="40%"></p>
<!-- ..................... -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>XFree86 Installation in DOSLinux</H3>
<p><strong>From Rick, Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>I have doslinux on my PC b/c i wanted to keep Win95. I want to load
Xwindows but i cannot figure out how to do it on DOSlinux... Could
you please point me in the right direction like what files i need
and how to install and run. thanks ...
</strong></p>
<!-- end body -->
<p><hr align="center" width="40%"></p>
<!-- ..................... -->
<H3><img src="../gx/dennis/bbub.gif" alt="(!)"
width="50" height="28" align="left" border="0"
>Jim answers both...</H3>
<em>[His two messages weren't precise copies, but you, our web readers,
only need to read the cut-and-pasted portions once. -- Heather]</em>
<blockquote>I think the easiest way would be to install the
RPM utilities using the unRPM-Install package that's
Available on the DOSLinux "Home Page."
</blockquote>
<blockquote>Then I'd fetch the XFree86 packages from a
<A HREF="http://www.redhat.com">Red Hat</A>
mirror and just use the '<tt>rpm -i</tt>' command.
</blockquote>
<blockquote>You could also consider one of the other "tiny"
Linux distibutions like "Xdenu" or "Dragon"
</blockquote>
<blockquote>Here's a copy of another message
that covers almost the same question:
</blockquote>
<em>[copy omitted]</em>
</blockquote>
<blockquote>The easy way out of manually installing XFree86 is to
pick a distribution that includes it. I gather that you're
running DOSLinux --- which is similar to "MiniLinux" in
that you can install a functional Linux subsystem into
an MS-DOS subdirectory in about 20Mb of disk space (maybe
30 or 40 these days).
</blockquote>
<blockquote>Oddly enough I just got another question on the same
topic. I'll paste copies of my suggestions:
</blockquote>
<blockquote>There were a couple of predecessors to DOSLinux, including
Mini-Linux and Xdenu. Xdenu is still available at sunsite:
</blockquote>
<code><blockquote><blockquote
><A HREF="http://sunsite.anu.edu.au/archives/linux/distributions/xdenu/umsdos"
>http://sunsite.anu.edu.au/archives/linux/distributions/xdenu/umsdos</A>
</blockquote></blockquote></code>
<blockquote>... and it included the X windows subsystem. That apparently hasn't
been updated in about 3 years.
</blockquote>
<blockquote>Just a couple of directories over from that you'll find tinyX at:
</blockquote>
<blockquote><blockquote><code
><A HREF="http://sunsite.anu.edu.au/archives/linux/distributions/tinyX"
>http://sunsite.anu.edu.au/archives/linux/distributions/tinyX</A>
</code></blockquote></blockquote>
<blockquote>... which is a set of implementations that each fit on a single
floppy. (You pick the file that matches your video card type.
Most of these are from '93 or '95).
</blockquote>
<blockquote>MiniLinux itself is still there: it fits on about four diskettes
and includes X. It also dates back to '95. However, it's programs
should probably still run on any more recent system (you might need
a kernel with support for the old COFF/a.out format --- since I
don't think MiniLinux was updated to ELF).
</blockquote>
<blockquote>Also on sunsite we find a page that links us to "Monkey-Linux" which
does include X and was updated at least as recently as May of '97.
The author notes: "English documentations is still not fine..."
So you might feel more comfortable with this if Czechloslovakian is
your native language. The web page is at:
</blockquote>
<blockquote><blockquote><code
><A HREF="http://www.spsselib.hiedu.cz/monkey"
>http://www.spsselib.hiedu.cz/monkey</A>
</code></blockquote></blockquote>
<blockquote>He does note that Monkey is compiled for ELF format.
</blockquote>
<p><hr align="center" width="40%"></p>
<!-- ..................... -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>XFree86 Installation in DOSLinux</H3>
<!-- begin body -->
<p><strong>From Rick on 20 Aug 1998 </strong></p>
<p><strong>thanks for the help... i think i have learned from doslinux
so i can go ahead and install redhat... i will still use this information
to try to get dos linux working on my laptop. thank you.
</strong></p>
<!-- end body -->
<A name="tag_resume"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Resume Spam</H3>
<p><strong>From Prblnd on 24 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>AnswerGuy
</strong><//p>
<p><strong>I'm just a LittleGuy, out-of-work..Looking for AS/400 platform
and somebody said I should tell you!
</strong><//p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">Who?
</blockquote>
<blockquote>Your assertion that "somebody said" you should tell <EM>me</EM>
sounds very suspicious. If it is true that "somebody" said
you should tell <EM>me</EM> about your plight --- that person is
either stupid or cruel. I'm not a hiring manager. I'm not
a recruiter. I have nothing whatsoever to do with AS/400's
(no slight intended, they sound like nice enough systems).
</blockquote>
<p><strong><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0">Question: Can you assist me to find a new start?
<br>Answer:</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">I probably could. However, the fact that you
blindly sent this to me without any evident research into who I
am and what I do suggests that time spent on assisting
you would be wasted.
</blockquote>
<blockquote>However, here's the assistance I will offer:
</blockquote>
<blockquote>
<dl><dt>Research:
<dd>Don't waste your time or anyone else's
by blindly spamming addresses out of the
blue. Do your homework. Send messages to
those who are looking for them and expecting
them. Make it clear in your message how you
selected them and why you hold an expectation
that they have requested your message.
<dt>Writing:
<dd>You message's semantics are horrible. The spelling
and punctuation are reasonable. However, the
phrase "looking for AS/400 platform" doesn't make
sense. I presume you are looking for work that is
"related to the AS/400" or that "requires expertise
with AS/400's." I understand the difficulties
faced by people for whom English is not native;
however, you want to find someone who is literate
and fluent in English to help you edit your messages
to potential employers.
<dt>Tone:
<dd>Desperation is repugnant to most well-balanced
people. Are you really looking for a "new start?"
I would suggest that you focus on just getting
a new job. You don't want to throw suggestions
about "other" problems into the faces of potential
employers.
<p>The phrase "a new start" is idiomatic to Americans
and suggests such unsavory failures as incarceration/
institutionalization, divorce, and/or drug treatment.
These are the sorts of total failures that require
someone to look for a "new start." Merely getting
laid off or even fired is merely enough to look for
a "new job."
<p>Also it is generally useless to appeal to a potential
employer's sympathies. If I were a hiring manager
I don't care if you are a "LittleGuy" or a major
political, philosophical or intellectual figure.
<p>Hiring managers care if you can do the job they need
for the price they are willing to pay. Given multiple
applicants that meet their pre-requisites they are
generally swayed by much more subjective criteria
(such as whether you are related to them, whether
you are previously aquainted, and whether they "like"
you, etc).
<p>So, you want to maintain a "positively neutral"
(and "upbeat") tone in your dealings with
potential employers.
</dl>
</blockquote>
<blockquote>With that in mind let's re-write your message to me:
</blockquote>
<p align="center">------------------------ Begin Rewrite ---------------------------
</p>
<blockquote>Dear Mr. Dennis,
</blockquote>
<blockquote>Sam Ockman told me that you have lots of contacts throughout
the industry. When I mentioned to him that I'm looking for
a new position (systems administration, preferably on AS/400)
he suggested that I drop you a note.
</blockquote>
<blockquote>I've attached my resume. Please feel free to share it with
any of your associates that might be interested. I'm in
Sri Lanka, North Dakota --- but I'm happy to relocate.
</blockquote>
<blockquote>Also, any suggestions you have would be deeply appreciated.
I've looked through some of the sites that are listed in Yahoo!'s
"Employment" sections. There are so many of those that I'm not
sure where to start.
</blockquote>
<blockquote>Thanks.
</blockquote>
<p align="center">------------------------ End Rewrite ---------------------------
</p>
<blockquote>Note: we use a real name here. We don't use an alias.
You could have searched for "answerguy" on Yahoo! gives
242 references and apparently 222 of them point to me.
(I'm not the one on CAGTV --- <A HREF="http://www.linux-questions-only@ssc.com">http://www.linux-questions-only@ssc.com</A>, and
I'm not the one from Square One Tech (<A HREF="http://www.squareonetech.com">http://www.squareonetech.com</A>)
Nor am I listed on Global Online Electronic Services
(<A HREF="http://www.goes.com">http://www.goes.com</A>)). My full name is published in every
article.
</blockquote>
<blockquote>We start of by saying precisely who sent you to me, and why.
If you were referred through some traffic on a newsgroup or
mailing list --- say so!
</blockquote>
<blockquote>Next we state our purpose. Nothing fancy --- just ask as
directly and simply as possible. If you expected that I would
be hiring --- tell me why you thought so. In that case you'd
also want to say way you think that you're a suitable candidate
for the specific positions you think I might have open.
For example:
</blockquote>
<blockquote>
<blockquote>... some participants on the comp.unix.security
newsgroup suggested that you might have an opening
for a new webmaster. I've been working in HTML for
three years, and I'm experienced with the installation
and configuration of a number of popular CGI packages
(including several from Matt's script archive).
</blockquote>
<blockquote>I'm particularly interested in working for your consulting
firm because I want to learn more about Unix and Internet
security and I've heard that you're widely respected in this
field. ...
</blockquote>
</blockquote>
<blockquote>(note: this is all hypothetical --- Starshine Technical Services
does do some security consulting --- but is not "widely" regarded
in the field, yet).
</blockquote>
<blockquote>Lastly, when we ask for more general help we also give some
idea of what we're already doing. We do this for two reasons
--- first is allows are respondent to avoid redundant suggestions.
More importantly, it shows that we are motivated and that we've
done <EM>some</EM> homework.
</blockquote>
<blockquote>The point is that everything you say is relevant to the matter
at hand. You cannot do that unless you do some research.
</blockquote>
<blockquote>Incidentally, people posing technical questions should
take note of this advice. It applies as much for an
"application for technical support" as it does for any
other.
</blockquote>
<blockquote>At this point I get enough mail for the "Answer Guy" that
I don't wonder where people heard of me (when they're
talking about Linux). However, it would be nice if I
knew a bit more about where some of these questions came
from. If someone at a users group meeting says: "You should
send mail to that guy from the Linux Gazette" --- I'd like
to hear about which UG it was.
</blockquote>
<p><strong><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0">Question: WILL you assist me in finding the
new career job?
<br>Answer...
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">No.</blockquote>
<p><strong><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0">okay, two questions, only one right answer...
thanks for your time....
</strong><p>
<p><strong>resume attached............................
</strong><p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">... (apparently in .DOC format) and deleted
without a glance.
</blockquote>
<!-- end body -->
<p><hr width="40%" align="center"></p>
<!-- ...................... -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>More on Resume Spam</H3>
<p><strong>From Prblnd on 24 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>you made me laugh thru your entire response ..
</strong></p>
<p><strong>thank you -
</strong></p>
<p><strong>Paul
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">Glad I could help!</blockquote>
<!-- end body -->
<A name="tag_softwindows"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
align="left" border="0">Linux Port of SoftWindows</H3>
<p><strong>From <em>The Answer Guy</em> to Insignia Solutions
on 25 Aug 1998 </strong></p>
<!-- begin body -->
<p>Dear Sir or Madam,
</p>
<p>You recently sent me a business reply card offering me SoftWindows
'95 for any of three relatively popular RISC-based Unix platforms.
This offer is useless to me since I use Linux on my PC's.
</p>
<p>As a long time user of Linux. I, my employees, and my customers
occasionally need access to files in some proprietary document format
(usually generated by Windows Office) and we are willing to pay a
reasonable sum (I could probably buy 20 copies tomorrow).
</p>
<p>I am a member of a local users group (Silicon Valley LUG) with about
400 regular members. I can take a poll at our next meeting and
give you the results if you'd like.
</p>
<p>Most of us are not choosing Linux because it's "free" (in the
financial sense). The time and energy most of us have spent
is far more valuable than a couple hundred bucks here or there.
Also most of us have purchased new computers and recieved "free"
copies of Win '95 or Win '98 with them. We've then gone out
and purchased
<A HREF="http://www.redhat.com"
>Red Hat</A> (http://www.redhat.com) Linux ($50) to replace those.
</p>
<p>The need (among Linux users) to run 32-bit Windows applications
without rebooting is perhaps a bit difficult for most Windows
users to understand. We could, after all, simply reboot.
</p>
<p>MS Windows users are used to rebooting a couple times a day.
</p>
<p>However, for most Unix and Linux users this is the problem. We
depend upon a much higher degree of stability. Most of my systems
stay up for months at a time. These workstations are not "busy"
--- they are mostly just "maintaining state" -- my editors, email
programs, web browsers and newsreaders are all in different states.
</p>
<p>When I get blocked on one task (perhaps because I need to look
something up) or interrupted (perhaps to go to lunch, as I did
while writing this message) --- my cursors all stay where I put
them.
</p>
<p>I don't have to remember each of these tasks that are "in process"
and I don't have to resort to reams of "Post-It" notes (though I
put the occasional XPost-It on my display). I can simply move to
another window, another virtual desktop, another virtual console,
even another user account concurrently running a whole different
session of X. I can leave such processes running throughout my
network running with confidence that nothing sort of a power outage
or a major sysadmin error will disrupt my work.
</p>
<p>To us the notion of rebooting to get into MS Windows (usually
just to read some .XLS, or PowerPoint e-mail attachment) is
analogous to sweeping all of the paper work off of your desk,
emptying all of the drawers, and turning the desk upside down.
</p>
<p>For me to just go though an find all my running processes and
write down which files were open in which applications would
probably take at least a fifteen. Later, to restart all
of them and get back to "my place" (reposition my windows,
cursors, etc) would take at least a half hour. That's 10% of
a workday lost to just rebooting a system!
</p>
<p>Since I bill $100 per hour --- it doesn't take much of that to
convince me to get a package like WABI, VirtualPC (if
<a href="http://www.connectix.com/">Connectix</a>
responds to my inquiries), or (if you make it available) SoftWindows
for Linux.
</p>
<p>There were an estimated 5 to 10 million Linux users by the beginning
of this year. IDC estimates that 2.2 million <EM>revenue generating</EM>
workstation installations of Linux were installed during 1997.
That beats their estimates of all non-PC based Unix' combined and
outstrips the reported NT workstation installations almost two to
one.
</p>
<p>The number one problem faced by most business Linux users is
lack of access to 32-bit Windows applications (most of it for
document sharing). <a href="http://www.stardivision.com/">StarOffice</a>
and <a href="http://applix.com/">Applix</a>ware are not yet mature
enough and certainly don't have sufficiently robust document
filters to be a solution for most of us.
<a href="http://www.corel.com/">Corel</a>'s WordPerfect
for Linux is "on its way" but it probably won't have quite the
quality of document filters and translators that we require for
reasonable interoperation with some companies.
</p>
<p>WABI will probably never run Win '95 or Win '98 apps.
<a href="http://www.winehq.com/">WINE</a> is
still not ready for broad use (only the most technically
adroit Linux enthusiasts can use it --- and it has virtually
no Win32S suppport). So, there is clearly a niche for your
market. That niche is almost certainly bigger than the
combined niches for HP-UX, Solaris/SPARC, and AIX.
</p>
<p>PS: I keep hearing this persistent rumor that Insignia
<em>can't</em> release a version of SoftWindows for any PC based OS,
allegedly due to some clandestine cross-licensing arrangement
with Microsoft. That would certainly explain why you've been
ignoring the larger PC/Unix markets. If this rumor ever
makes its way to the DoJ it should make for some interesting
reading.
</p>
<p>I also notice that MS has recently been "legitimizing" the
non-Intel Unix platforms and has been making announcements to the
affect that they are releasing native ports of MS Office, and
Internet Explorer for a select few of these platforms (all
non-Intel, naturally). I wonder what affect that will have
on your market.
</p>
<!-- end body -->
<p><hr width="40%" align="center"></p>
<!-- ... -->
<H3><img src="../gx/dennis/bbub.gif" alt="(?)"width="50" height="28"
align="left" border="0">Re:Linux Port of SoftWindows </H3>
<p><strong>From <em>Insignia Solutions Unix Customer Service</em>
on 25 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>Jim-
<br>Thanks for your interest in SoftWindows for Linux and in Insignia
Solutions.
</strong></p>
<p><strong>Right now, we do not have a product for Linux or any Intel-based
Unix.
</strong></p>
<p><strong>Unfortunately this is not a simple port of an existing SoftWindows
for Unix on RISC product - a completely different design is required as the
Intel cpu does not help as much as you might expect. Consequently, a large
investment on our part would be required to produce this product. We are
prepared to do this, but only given enough customer demand.
</strong></p>
<p><strong>To assess this demand we will be producing a web based survey,
to determine what would constitute acceptable pricing, product functionality
(in particular whether DOS/Windows would have to be included) and performance.
</strong></p>
<p><strong>Please check
<a href="http://www.insignia.com/">www.insignia.com</a> periodically for
further information.
</strong></p>
<p><strong>Thank You,
<br>Christopher Wood
<br>Insignia Customer Service
<br>800-848-7677 option 5
</strong></p>
<p>____________________Reply Separator____________________
<br>[attached copy of original message omitted]</em></p>
<p><hr width="40%" align="center"></p>
<em>
<p>[As of press time, they are not plugging a "market expansion survey"
or anything similar directly on their home page. However, they are offering
a "free UNIX Solutions kit" if you fill out the form at:</p>
<blockquote><a href="http://www.insignia.com/banner/unixkit.html"
>http://www.insignia.com/banner/unixkit.html</a></blockquote>
<p>
...where they don't mention Linux, but will let you fill in an Other
space for your platform. It doesn't mention price. If you have a
<strong>serious</strong> interest in buying Softwindows should it come
to pass, let them know, so they can't claim "there's no demand". But it
should be legitimate demand... if you wouldn't be willing to talk to a
sales rep about it, I'd say don't bother hitting the above link.</p>
<p>-- Heather]</p></em>
<!-- end body -->
<A name="tag_convert"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<p>Chris Gushue's question about
<a href="../issue30/tag_nullmodem.html">nullmodems</a> was posted in
July (Issue 30).</p>
<p><hr width="40%" align="center"><p>
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>A Convert!</H3>
<p><strong>From Chris Gushue on 29 Jul 1998 </strong></p>
<!-- begin body -->
<p><strong>About a week after asking for help about connecting Linux and
Windows 95 via null modem, I totally switched over to Linux (well,
with a small Windows partition for the occasional game). I got fed
up after numerous crashes while just installing it, plus my brand
new Gravis GamePad Pro didn't work in 98 at the time. I can make my
Linux system do pretty much anything I want, either in text mode or
in X. Plus, I don't have to reboot at least once a day. To
summarize, it's much better to run Linux than Windows (well,
everyone knows that, of course!). Instead I think I'll work on
setting up a LAN with my Linux system (on a cable modem) with two
Windows 95 systems (my roommates-to-be systems). Shouldn't be too
hard - except for maybe the Windows configuration (I expect no less
than 3 reboots)
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle">
</strong></p>
<p><strong>Great column - keep up the great work!
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">Glad I could help.</blockquote>
<!-- end body -->
<A name="tag_apache"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>MS FrontPage for Linux/Apache:</H3>
<p><strong>From Terry Singleton on 18 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>Hi there,
</strong></p>
<p><strong>Being a newbie LINUX user I searched YAHOO and found your site. It
is a relief to actually find a site which has some newbie
material..thanks.
</strong></p>
<p><strong>I am hoping you can shed some light on this subject.
</strong></p>
<p><strong>I recently put up a LINUX server, I am hoping to use it for email
and http purposes. However our users are not knowledgeable enough to
be able to ftp html files into their directories and therefore we
would like to use Front Page. I have downloaded and installed APACHE
1.3.1 and noticed that MS does have FP extensions that are supposed
to run on LINUX and APACHE.
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>I think you are underestimating your users. You might
want to find the WS_FTP and/or the "CuteFTP" package.
These shareware Windows packages are pretty easy for
Windows users --- and work pretty much like the old
file manager.
</blockquote>
<blockquote>(As for e-mail, I suppose some/many of them will be
use Netscape Communicator's POP client. You can also
offer them Eudora and Pegasus Mail. These will work
with any POP server --- including whichever one was
almost certainly already installed with your distribution).
</blockquote>
<blockquote>The easiest way to allow your Windows users access to their
files on your web server is to install and use Samba. Samba
implements the SMB protocol --- which is the native file sharing
system that's implemented in Windows for Workgroups, Windows '95,
Windows '98, Windows NT, and OS/2 (LAN Manager and LAN Server).
files.
</blockquote>
<blockquote>With Samba you'd give each user access to their home directory
(possibly creating symlinks from their home directories to any
shared directories). You users would simply drag and drop
files using the same file manager and "Explorer" interfaces
that they'd use with any other WfW or NT fileserver.
</blockquote>
<blockquote>You can also create group shares (on your Linux or other Unix
system) which will automatically show up to the appropriate
users in their browse lists.
</blockquote>
<blockquote>The last time one of my associates looked into using
Microsoft's FrontPage server extensions the idea was abandoned
without even attempting the installation. There were
showstopper limitations and design features that obviated any
need to look further at it.
</blockquote>
<blockquote>Her conclusion was also supported by a number of messages that
I've read on the Bugtraq and NTSecurity mailing lists.
</blockquote>
<blockquote>So I recommend that you reconsider your options and avoid
FrontPage if you have any choice in the matter.
</blockquote>
<blockquote>If you insist on using FP despite these limitations then
you'll probably want to look at:
</blockquote>
<blockquote><dl><dt>The Unofficial FP Server Extensions Home Page
<dd><A HREF="http://compy.ww.tu-berlin.de/FP-Server_Extensions/default.htm"
>http://compy.ww.tu-berlin.de/FP-Server_Extensions/default.htm</A>
<dd><A HREF="http://www.bewley.net/httpd/frontpage.html"
>http://www.bewley.net/httpd/frontpage.html</A>
</dl></blockquote>
<blockquote>Although I've never used it, I've read about another way to
upload files to a web server using HTTP POST commands. It's
described in the O'Reilly book on _CGI_Programming_ (one with
a mouse on the cover) on page 414 (Appendix D).
</blockquote>
<blockquote>Basically you create a form that looks like so:
</blockquote>
<pre>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML><HEAD><TITLE>
File Upload Form </TITLE></HEAD><BODY><H1>
File Upload Form </H1><HR>
<FORM ACTION="/cgi-bin/upload.pl"
ENCTYPE="multipart/form-data" METHOD="POST">
Your Name: <INPUT TYPE="text" NAME="username">
File to Upload: <INPUT TYPE="file" NAME="filename">
<INPUT TYPE="submit" VALUE="Send the Multi-part (MIME) file...">
<INPUT TYPE="reset" VALUE="Clear/Restart">
</FORM></BODY></HTML>
</pre>
<blockquote>At the time it was only supported in Netscape. This will show
up as a form with a filename field, and a "Browse" button next
to that. I don't know if any other browsers ever added
support for it. (I just check with Lynx 2.7.2 --- it
recognized the <tt>INPUT TYPE="file"</tt> and rendered it as "Not
Implemented")
</blockquote>
<blockquote>Also you'll have to create/find a cgi script/program that
implemented the file/MIME decoding portion of this (I just
used "<tt>upload.pl</tt>" as a placeholder for this example).
</blockquote>
<blockquote>That same book listed some Perl 5 modules that might be useful
for this sort of thing --- I think one of them was
"BasePlus.pm" --- you'd want to search CPAN (the Comprehensive
Perl Archive Network: <A HREF="http://www.cpan.org">http://www.cpan.org</A>,
<A HREF="http://www.perl.com/CPAN-local">http://www.perl.com/CPAN-local</A> among many) for related work.
</blockquote>
<blockquote>I don't know for sure but you might start at:
</blockquote>
<blockquote><dl><dt>CPAN: By Category: WWW, HTML, HTTP and CGI
<dd><A HREF="http://www.perl.com/CPAN-local//modules/by-category/15_World_Wide_Web_HTML_HTTP_CGI/"
>http://www.perl.com/CPAN-local//modules/by-category/15_World_Wide_Web_HTML_HTTP_CGI/</A>
</dl></blockquote>
<p><strong><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>Being new to LINUX I have no idea how to get started.
<br>Some of the questions I have:
</strong></p>
<strong><ol>
<li>How do install them,,do they run on 1.3.1?
<li>After installation how are they configure?
<li>How do we setup permissions?
</ol>
</strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>I don't know the answers to any of these questions. However,
I think you'll find some instructions at the two sites listed above.
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>4. Virtual hosting would be nice but I think simply subdir
will suffice for each user (using the <tt>~username</tt> notation).
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>There are a couple of HOWTO's on this.
</blockquote>
<blockquote>The one you'll want to start with is:
</blockquote>
<blockquote><dl><dt>Linux WWW HOWTO
<dd><A HREF="http://sunsite.unc.edu/LDP/HOWTO/WWW-HOWTO.html"
>http://sunsite.unc.edu/LDP/HOWTO/WWW-HOWTO.html</A>
</dl></blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">Any help or direction would help.
<br>thanks
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">This is a start.</blockquote>
<!-- end body -->
<p><hr width="40%" align="center"><p>
<!-- .................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Re: Linux Gazette</H3>
<p><strong>From Terry Singleton on 20 Aug 1998 </strong></p>
<p><strong>thanks...I would love some more information on getting SAMBA
working. I have read alot about a NFS client. Will I still need the
NFS client to connect when using SAMBA.
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>No. You won't need NFS to access your Samba systems.
As for more info on Samba --- there's a whole book on
the subject. There's also an SMB-HOWTO that's quite old
but should still get you started;
</blockquote>
<code><blockquote><A HREF="http://sunsite.unc.edu/LDP/HOWTO/SMB-HOWTO.html"
>http://sunsite.unc.edu/LDP/HOWTO/SMB-HOWTO.html</A>
</blockquote></code>
<blockquote>... I gather that this hasn't been updated since '96!
I know that Samba has been under constant, sometimes
intense, development throughout that time. However,
the basics still work that same.
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>Or if I implement SAMBA will the machine be accessible by
\\linuxmachinename like other NT boxes...do I have to create a WINS
entry for the LINUX box??
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>Yes. You can use UNC naming and normal "Explorer" browsing
to access your Linux box. It will look "just like" an
NT box to those protocols. (Many sysadmin's have reported
that they've replaced NT servers with Linux with increases
in performance, capacity, reliability --- and no complaints
or comments from their users).
</blockquote>
<p><hr width="40%" align="center"><p>
<!-- .................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Terry comments about Linux' Future</H3>
<p><strong>From Terry Singleton on 20 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>You really are the answer guy, thanks for your time.
</strong></p>
<p><strong>General Comments:
Being new to LINUX I am very impressed with it. I initially bought a copy of
RedHat to get started with UNIX. The college just bought this bohemith DEC
ALPHA server which is to run DEC UNIX. Because I was now to learn this OS I
thought it prudent to play with LINUX as it would install on my machine
quite easily.
</strong></p>
<p><strong>After inserting my setup boot diskette and 20 minutes of answering quite
simple questions I am up and running with LINUX and a GUI called CDE.
Although I would not install the GUI on a server for a desktop environment
it is quite nice.
</strong></p>
<p><strong>The RedHat install detected by 3COM905 NIC card, my ATI video card and used
my DHCP server to set itself up on the network, I must say that even with NT
or 95 most of the time I need to supply additional drivers for the install,
not in LINUX's case. Now I must say that I am not sure that these drivers
are optimized for the OS but they are functioning fine.
</strong></p>
<p><strong>After having great success with LINUX on the desktop and learning most of
the basic shell commands I installed LINUX again, this time in a server
environment(kind of a rogue operation). Configured sendmail, qpopper and
dns; now this little LINUX box handles all our student email and DNS
requirements. It replaced 2 NT servers and handles 2000 POP3 users and
1000's of emails per day.
</strong></p>
<p><strong>Future Directions: I am hoping LINUX can provide some much needed LDAP
services for email address books and I may even consider using LINUX as our
corporate web server OS, because LINUX also provides SAMBA file services we
may even look to LINUX for our file and print services needs. The only thing
holding me back in this arena is MS's ASP technology which is a great server
side scripting language. Perhaps when SUN et al finalize JSP (JAVA Server
Pages) and the JDK is released for LINUX I will re-examine this issue.
</strong></p>
<p><strong>To move this environment to the desktop for the <EM>masses</EM> I would say to
COREL, keep up the good work(they ported Word Perfect to LINUX), to Triteal,
keep working on the CDE environment.
</strong></p>
<p><strong>LINUX definetly is an OS with much greater potential than any other OS
currently in development.
</strong></p>
<!-- end body -->
<A name="tag_emulate"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Virtual System Emulator for Linux and Why NOT to Use Them</H3>
<p><strong>From Jeff on the L.U.S.T List on 20 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>Now that I have LINUX installed on a machine, the question becomes
what can I do with it?
</strong></p>
<p><strong>I've heard there is an application that will allow me to run my standard
windows programs (office, etc), anyone know anything about that?
</strong></p>
<p><strong>Jeff
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>There are several efforts to provide this sort of thing.
Page down to the end to see some notes about those. Meanwhile
here's a rambling rant:
</blockquote>
<blockquote>Installing Linux in the hopes of running your Windows/Office
programs is certainly misguided if you intend to get any
"normal" work done.
</blockquote>
<blockquote>What you do with any OS is run programs. When selecting which
OS(es) to install and use your chief consideration is: what
programs do I want to run?
</blockquote>
<blockquote>Thus, if you wanted to run WordPerfect, or Mathematica, or
Applixware (an applications suite which is available on
several forms of Unix, and in a Windows version as well) ---
you'd then have <EM>choices</EM>. These applications are available
under a few operating systems.
</blockquote>
<blockquote>However, with Microsoft Office you only have two (real)
choices: MS Windows, or MacOS.
</blockquote>
<blockquote>As noted below many people have attempted to expand your
choices (by allowing you to run Windows programs under various
forms of emulation and capability interfaces).
</blockquote>
<blockquote>I personally think it's silly to install an OS and <EM>then</EM> ask
"now what do I do with it?" It seems analagous to ripping the
powertrain out of a car, fitting it with a "formula 1" engine,
blowers, and a custom tranny and asking: "Now what do I do
with it? Can I use this for my daily commute and grocery
shopping?"
</blockquote>
<blockquote>(The answer, in this hypothetical case is, "Maybe, but why? A
racing car is for racing, it makes a poor choice for more
general use").
</blockquote>
<blockquote>Of course my analogy breaks down at this point since Linux is
not so specialized. I don't want to perpetuate the notion that
Linux is a "server" OS. That's just where it's currently popular.
</blockquote>
<blockquote>There are general applications for Linux --- they just aren't
the same brands that you're used to seeing for Windows
software. There are more office applications suites for Linux
than there are for Windows. This is nice from the point of
view of the consumer that wants choices; but crippling from a
"big business" perspective.
</blockquote>
<blockquote>Under Windows there is essentially <EM>one</EM> dominant office
suite. (A couple of others exist, like Lotus Smartsuite, and
Corel's Office, and Applixware --- but they get essentially no
press coverage and have just about nil "mindshare"). It is
almost certainly no accident that the company that controls
this proprietary OS also dominates the applications that are
available for it. That is a major point in this DoJ
investigation of Microsoft's business practices.
</blockquote>
<blockquote>Other companies have dominated other fledgling industries
in our nation's history. At least three of them were subject
to "consent decrees" (agreements with our federal government
regarding their responsibilities as recognized monopolies)
--- I'm referring to <a href="http://www.ibm.com/">IBM</a>,
<a href="http://www.xerox.com/">Xerox</a>, and
<a href="http://www.att.com/">AT&T</a>. However this
is not a history lesson --- which is good since I don't
have textbook summaries of those cases handy.
</blockquote>
<blockquote>So, under Linux you can run Applixware, WordPerfect,
StarOffice, Cliq (a character based suite) and various
freeware packages like LyX, SIAG (Scheme in a Grid ---
a spreadsheet package), and Maxwell (a word processor) and
others (like '<tt>sc</tt>' or '<tt>slsc</tt>' the "spreadsheet calculator"
and the "SLang version of '<tt>sc</tt>'").
</blockquote>
<blockquote>A more popular way for many Linux users to work is with text
editors (rather than word processors) --- and using markup and
typesetting languages. These are whole different approaches
to the situation. Instead of using some proprietary word
processor interface and document/file format I use simple text
like:
</blockquote>
<pre>
% Template for a LaTeX Letter
\documentclass{letter}
\begin{document}
\begin{letter} {%
\\ % full name and title
\\ % address
% city, state, zip-code
\vfill
\opening{Dear %
Sir or Madam%
,}
\vfill
\closing{Sincerely,}
\vspace{1in}
\signature{Jim Dennis,}
\vfill
\end{letter}
%% end letter (Repeat as necessary)
\end{document}
</pre>
<blockquote>I can use this template for all of my personal letters and a
similar one (with spacing set aside for a letterhead --- or
even with letterhead macros --- etc) for business.
</blockquote>
<blockquote>With that I can simply run a command like:
</blockquote>
<blockquote><blockquote><code>latex myletter.tex
</code></blockquote></blockquote>
<blockquote>... to typeset it and either print the resulting "dvi" file or
run the '<tt>dvips</tt>' command to convert it to PostScript and print
that (even on non-PostScript printers).
</blockquote>
<blockquote>Note that the letters are <EM>typeset</EM> --- with kerning,
leading, etc. I don't have to concern myself with the details
about line length, pagination, etc. The <tt>\vfill</tt> commands
(macros) are hints about how I want the portions the first and
last pages filled (providing visual separation between the
addressing and salutation, and between the text and the
signature/closing).
</blockquote>
<blockquote>I can create my own "styles" and "document classes" and I can
create my own abbreviations and macros for doing things my
way. For example a friend of mine has a couple of macros for
his resume (which can be easily rendered with a properly
accented 'e' under LaTeX) which allow him to put in a line
like:
</blockquote>
<pre>\job {Big Former Employer} {Chief Bottle Washer}
{Feb, 29, 1931 --- May 1, 1942}
</pre>
<blockquote>... and have each element of that (company, title, date range)
typeset in a particular fashion (such as "Large bold" for the
company, "large italics" for the title and "small caps" for
the dates, with "<tt>\hfill</tt>" to fill these lines).
</blockquote>
<blockquote>If he decides that he doesn't like the look of one resume ---
he can redefine his "job" macro and all of the jobs will be
consistently rendered the new way. He and I don't have hand
edit all of the jobs on the list --- just the definition of
<tt>\job</tt>.
</blockquote>
<blockquote>As another example; there are many things that Windows users
put in spreadsheets (Excel) that are more like databases or
tables (that is tabular data without any computations
involved). They use Excel (or other spreadsheets) for this
because the things are already available and they know how to
use them. In some cases this is a reasonable choice. In
others they make <EM>more</EM> work for themselves than they would by
using a database, or using a "big text file" (say, tab and
line delimited).
</blockquote>
<blockquote>Under Unix it is more common to put these sorts of things in a
text file and use the many text processing tools (<tt>sort</tt>, <tt>diff</tt>,
<tt>cut</tt>, <tt>paste</tt>, <tt>join</tt>, <tt>grep</tt>, <tt>awk</tt>,
<tt>perl</tt>, ... ) to work with them.
</blockquote>
<blockquote>As the Windows user continues to use a spreadsheet (especially
for tracking lots of data and importing long tables) he or she
hits the capacity limits imposed by their memory and
applications. Spreadsheets programs typically have to load
whole spreadsheets into RAM. I don't know of any of them that
can "page through" a large spreadsheet effectively.
</blockquote>
<blockquote>The Unix user's capacity is typically limited by diskspace. In
other words the text processing approaches usually scale well.
Things like awk, grep, join, etc just filter through the
file(s) and don't have to load any more than a small buffer's
worth at any given time. Even '<tt>sort</tt>' --- which necessarily
must go through whole files --- scales pretty well (I've
sorted files that were hundreds of megabytes --- it takes a
while and plenty of temporary disk space --- but GNU sort will
do it).
</blockquote>
<blockquote>As a side note most programs under Linux/Unix are "toolkits"
or "little languages." For example you can simply "sort" a
list by "ASCII collating sequence" by just using a command
like:
</blockquote>
<blockquote><blockquote><code>sort file > file.sorted
</code></blockquote></blockquote>
<blockquote>... which is the simple case. But you can also deal with more
complex cases like this: let's say I have a list of
appointments of the form: MMM, DD, YYYY Notes (three letter
abbreviation for the month, on or two digit date, four digit
year followed by some text).
</blockquote>
<blockquote>I can sort that with a command like:
</blockquote>
<blockquote><blockquote><code>sort +2n +0M +1n
</code></blockquote></blockquote>
<blockquote>... note that I sort first, numerically by year (+2 columns
from the start of each line), secondarily by the first column
by "Month" (a special sorting key per your locale), and
tertiarily by date (also numerically).
</blockquote>
<blockquote>It's the same sort utility --- and it has <EM>lots</EM> of other
options (about things like "folding/ignoring the case"
specifying field separators, using an offset within the
column/field, counting consecutive blanks as singular or
multiple field seperators, and things like that).
</blockquote>
<blockquote>Under Unix it's also easy to use programs <EM>with</EM> one another.
This is obvious when by pipe the output of one filter into
another (also available under DOS --- but much less widely
used due to the relative obscurity/unavailability of good
filters to use, and crippled by the implementation of pipes
--- which is basically a set of "anonymous tempfiles" with
"transparent redirection" --- as opposed to Unix pipes in
which the processes are running concurrently).
</blockquote>
<blockquote>It is less well known but equally handy to see how the
dominant Unix/Linux editors ('<tt>vi</tt>' and '<tt>emacs</tt>') allow one to
interface with "standard" Unix commands and filters.
</blockquote>
<blockquote>Under '<tt>vi</tt>' I can mark a line in my text ("<tt>[Esc]ma</tt>"
to set the "<tt>a</tt>" mark) search for an arbitrary regular expression
("<tt>/regex[Enter]</tt>") and then I can filter that block of text
(from my cursor to the mark) through an arbitrary Unix command
(such as '<tt>sort</tt>') using just 3 or 4 keystrokes (plus the
command's name). (In my example that would be "<tt>!'a</tt>" followed
by "sort." All of the lines of text would be fed to the
filter, and anything returned by the filter would replace them
in my text). To read the output of some simple command under
'<tt>vi</tt>' I just type "<tt>[Esc]:r!</tt>" followed by the command. Any
output from such a command is inserted into my text.
</blockquote>
<blockquote>There are similar features in '<tt>emacs</tt>' (just use <tt>C-u</tt>,
<tt>M-|</tt> <em>[That's C for "ctrl" key, M for "Meta" usually meaning the Alt key,
in case yo're not familiar with Emacs documentation -- Heather]</em> to
pipe a block through a filter, and <tt>C-u</tt>, <tt>M-!</tt> to read input
from a command --- I have those bound to simpler commands like
"<tt>[F3]!</tt>" in my startup files).
</blockquote>
<blockquote>Those examples are "power users tricks" --- but the point out
something more important. Many Unix/Linux commands
autommatically and transparently use other programs in their
normal operation. Thus you can type the command:
</blockquote>
<blockquote><blockquote><code>tar -tzf foo.tar.gz
</code></blockquote></blockquote>
<blockquote>... and the "<tt>tar</tt>" (tape archiver) will transparently
decompress the .gz file using '<tt>gzip -d</tt>' while it extracts the
"table of contents" (<tt>-t</tt>) from it. Similarly I can type a
command like:
</blockquote>
<blockquote><blockquote><code>tar cf otherhost:/home/myhome/new.tar ./*
</code></blockquote></blockquote>
<blockquote>... to create a "<tt>new.tar</tt>" file on a different system
(<tt>tar</tt> will transparently call the '<tt>rsh</tt>' command to let me do
that --- assuming that I have set up the permissions and security to
allow it --- in other words, assuming that my security if very lax).
</blockquote>
<blockquote>More obvious examples show up in most mail programs and
newsreaders under Unix. Most of them (elm, pine, tin, trn)
don't implement text editing functions. They pass your
replies, compositions, and other texts to your preferred
editor.
</blockquote>
<blockquote>Under DOS/Windows every mail package, newsreader and many
other applications implement some cheesy little "editing mode"
(or screen/dialog) -- each with its own quirks and none with
as much power or flexibility as the old '<tt>ed</tt>' (Unix line
editor).
</blockquote>
<blockquote>If you installed Linux to learn about it --- then get out
there and learn about the commands you've installed. Try this
series of commands:
</blockquote>
<blockquote><blockquote><code>cd /usr/bin/; man *
</code></blockquote></blockquote>
<blockquote>--- that will bring up most of the man pages for most of the
commands on your system (one at a time --- hit "<tt>q</tt>" then
"<tt>Ctrl-C</tt>" to break out). Many of them are little tools,
intended to be use for a small part of your overall work.
</blockquote>
<blockquote>On a couple of my systems I have over 2200 commands available.
(From bash you can quickly find out how many commands are on
your <tt>PATH</tt> by just tapping on the <tt>[Tab]</tt> key a couple of quick
times to get a warning message like: "<tt>Display all 2209
possibilities? (y or n)</tt>").
</blockquote>
<blockquote>Some are as simple as '<tt>cat</tt>' (concatenate one or more file
streams into standard output) and '<tt>echo</tt>' (print a bit of text
on "stdout").
</blockquote>
<blockquote>Others are as complex as Perl, C, and emacs. GNU emacs and
Xemacs are complete programming and applications environments
--- with hundreds of packages and about 1800 user accessible
commands (a quick way to find this is to type "<tt>M-x</tt>" and then
use the same double-tap on the <tt>[Tab]</tt> key, switch buffers and
count the number of entries in the "<EM>Completions</EM>" buffer that
pops up --- which is easier if you have your status line
displaying the line count).
</blockquote>
<blockquote>I think there are about 1000 functions (system calls, stdio
and stdlib, etc) in a standard C programming package, and
there are several hundred in Perl and maybe one or two hundred
in awk. Then there's othe programming languages like TCL,
expect, Python, etc). Luckily many of these overlap and are
essentially "dialects" of a common set of "Unix conventions"
There's also quite a bit of overlap and duplication among
these.
</blockquote>
<blockquote>To get some idea of what's available for Linux, browse
around on Freshmeat
(<A HREF="http://www.freshmeat.org">http://www.freshmeat.org</A>) for
about a week. Note that those daily changes are new
releases and updates to these programs. Also take a
look at the home site for the LDP (Linux Documentation Project)
<A HREF="http://sunsite.unc.edu/LDP">http://sunsite.unc.edu/LDP</A>.
Then follow their link to one of the Linux Apps home pages:
<A HREF="http://www.linuxapps.com/">http://www.linuxapps.com/</A>
and then round out your tour with visits to Linas Vepstas'
page: <A HREF="http://www.linas.org/linux/">http://www.linas.org/linux/</A>
and Christopher B. Browne's pages:
<A HREF="http://www.hex.net/~cbrowne/">http://www.hex.net/~cbbrowne/</A>
</blockquote>
<blockquote>Those should give you a pretty good idea of what applications
are out there.
</blockquote>
<blockquote>Also get into Netnews and subscribe to
<a href="news://comp.os.linux.announce"
>comp.os.linux.announce</a>.
</blockquote>
<blockquote>
<em><font color="navy">
> You can get the DosEmu program, it emulates dos and can even run
<br>> windows 3.11(unofficially) so theoretically you could run office 4.2
<br>> or less on it but that's a stretch. However it is still in
<br>> development(just like linux) and eventually may officially run
<br>> win3.11. There is no support for win95/98 apps that I know of, do to
<br>> the structure of the OS it would require <em>alot</em> of time to emulate
<br>> it in all of its instability and glory. Hope that helped. reds
</font></em>
</blockquote>
<blockquote>
<em><font color="navy">
If you really want to do it, look for an app called BOSCH (I think).
With it you can run WIndows 95 (Probably 98 too) from Linux. I know
that they have the opposite too. A version to run Linux from a
Windows 95 box (I wouldn't recommend it).
</font></em>
</blockquote>
<blockquote>
<em><font color="navy">
cheers,
<br>Raul Dias
</font></em>
</blockquote>
<blockquote>The name is "Bochs" and it's at:
</blockquote>
<blockquote>
<dl><dt>The Bochs Software Company
<dd><A HREF="http://std.world.com/~bochs/">http://std.world.com/~bochs/</A>
<br>FTP site: <A HREF="ftp://ftp.std.com/pub/bochs"
>ftp://ftp.std.com/pub/bochs</A>
</dl>
</blockquote>
<blockquote>This implements a virtual PC under Linux or other
forms of Unix (it's shareware distributed sources).
There is also, as Raul says, a port to Win32S that allows
one to run Linux under Win '95 or NT!
</blockquote>
<blockquote>I've never run it --- but I've heard that it is pretty
slow.
</blockquote>
<blockquote>dosemu purportedly works for some Windows 3.1 programs
--- and I know it works find with many DOS programs
(use the "alphas" --- the betas are old and less functional).
</blockquote>
<blockquote>There's also WABI, a commercial package developed by
Sun and licensed to <A HREF="http://www.caldera.com">Caldera</A>;
(the sole distributor of the Linux port). This is also limited to Windows 3.1.
Search around at <A HREF="http://www.caldera.com">http://www.caldera.com</A>
for details on that. (It, like Bochs and dosemu, requires that you install
the copy of Windows that you intended to run
</blockquote>
<blockquote>Finally there's WINE (Wine Is Not an Emulator, or WINdows
emulator --- depending on who you ask). WINE is an ongoing
attempt to implement a full set of the MS Windows API's libraries
and DLL's sufficient to run a typical Windows application
without requiring any Microsoft code on the system.
You can read more about it at:
<A HREF="http://www.winehq.com">http://www.winehq.com</A>.
</blockquote>
<blockquote>Another approach that might be amusing is to buy a copy
of Executor (a Mac emulator for Linux) and try to run
the Mac version of MS Office under that.
</blockquote>
<blockquote>I personally these these approaches are silly and worthless
except for the most casual use and (for the amusement and
research value of those that enjoy that sort of thing).
</blockquote>
<!-- end body -->
<A name="tag_database"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<p>The original thread about
<a href="../issue30/tag_database.html">FoxPlus</a>
appeared in July (Issue 30).</p>
<p><hr width="40%" align="center"></p>
<!-- ........................ -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
align="left" border="0">FoxPlus for Linux ? </H3>
<p><strong>From L.U.S.T List on 20 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>I'd just like to thank you (Jim Dennis) for your very comprehensive and
helpful responses to the XBase question. I had no idea there were so
many database options available for Linux. I joined this conversation
out of idle personal interest, but now I think I see some possibilities
for solutions for current needs we have at our company.
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">I'm glad to hear it.</blockquote>
<blockquote>This is one of the reasons that I copy many of these messages
to "The Linux Gazette's Answer Guy" column. That way they'll
be found by the search engines and pop up in many (relevant)
queries.
</blockquote>
<blockquote>It's also one of the reasons that I include so many URL's
in my messages. This is also for the "teach a man to fish"
philosophy (don't provide just the answer --- but pointers
to lots of related answers).
</blockquote>
<blockquote>Linux has grown to the point where no one knows how big
it is or how many ways in which it is being used. The
fact that there is no "central Linux authority" (or vendor)
makes it difficult to size up the Linux market.
</blockquote>
<!-- end body -->
<A name="tag_distrib"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>More on Distribution Preferences</H3>
<p><strong>From mlees on 20 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>Answerguy,
What do you think of this distribution?
Mike
</strong></p>
<font color="navy">
<p><strong>OpenLinux Base</strong></p>
<p><strong>OpenLinux: A complete Linux operating
system with all the system tools youll need.
Plus valuable add-ons, like Netscape
Communicator and backup utilities.
</strong></p>
<p><strong>US and Canadian orders can take advantage of a $20.00
rebate from <A HREF="http://www.caldera.com/">Caldera</A>, bringing the price of
OpenLinux Base to $31.95
</strong></p>
</font>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>I haven't used any of the Caldera distributions
recently. This is a much more recent version the those
that I've used. So, I don't have an informed opinion on
them.
</blockquote>
<blockquote>Since you just asked about Yggdrasil yesterday I'm wondering
if this is a pattern. I hope you aren't going to send me
of these every day.
</blockquote>
<blockquote>My opinion about Caldera <EM>Standard</EM> is that it is the best
choice for a site that has existing Netware servers or
clients. It was also the first distribution that was
supported by WordPerfect for Linux. There are a number of
other commercial software companies that work with Caldera
for releasing Linux versions of their product.
</blockquote>
<blockquote>If the Caldera Base includes a copy of StarOffice (as your
press release says it does) than that is a very good reason
to try it. (The installation of StarOffice that I have from
an early 4.0 CD is very unstable --- it dies quickly and
horribly under my <A HREF="http://www.suse.com/">S.u.S.E.</A> 5.1 system.
I've heard that that there are new libraries and releases that fix that --- but I
haven't been particularly motivated to go get them since I
still mostly live in text consoles).
</blockquote>
<blockquote>StarOffice is a very promising product --- and the competition
between it Corel Office, and Applixware should be
interesting. The most important feature of either is to
provide me with stable, reliable access to MS Office .DOC and
.XLS files. The first one to successfully do that with MS
Office '97 wins my vote. (Since that is one of the few
reasons for me to get out of a text console and into X --- the
others being Netscape Navigator (when I need something that
just doesn't look right in <tt>Lynx</tt>), '<tt>xfig</tt>' (to draw diagrams for
the book that I'm working on), and '<tt>xdvi</tt>', and '<tt>gv</tt>' (to
preview the LaTeX and dvips output for same).
</blockquote>
<blockquote>At the same time I recognize the potential of these office
suites (and some others). As these get better we see Linux as
a more serious contender on the desktops of home and corporate
users. According to some surveys we're already winning
against NT in a number of server categories (including web,
mail, DNS, and SMB/Samba). We've gained a lot of ground in
the technical and scientific workstation market (although the
push to get EDA and CAD/CAM suites ported is just barely
started). But all the "mom's" and "pop's" out there that have
their college kids buying systems for them need something a
bit less intimidating than '<tt>emacs</tt>' and '<tt>vi</tt>' --- and TeX and
friends.
</blockquote>
<blockquote><A HREF="http://www.kde.org/">KDE</A> and <A HREF="http://www.gnome.org/">GNOME</A> will provide the main interface and many of the
toys and widgets. StarOffice, Applixware, Corel Office, SIAG,
LyX, Wingz, Xess, and others are all vying to provide the
main user applications.
</blockquote>
<blockquote>(I personally think we'll also need multi-media GUI "Welcome to
Linux/XFree86/KDE" and "Welcome to Linux/XFree86/GNOME"
interactive tutorials --- with sound, music, via, and a
dancing, talking Tux. I want a system I can install on a
box and send to my Mom!).
</blockquote>
<blockquote>Getting back to your implicit question:
</blockquote>
<blockquote>Which Linux distribution should you try?
</blockquote>
<blockquote>... the answer is:
</blockquote>
<blockquote>I have no idea!
</blockquote>
<blockquote>Unlike the marketeering weenies that you encounter in
every magazine, and newspaper, on every TV and radio
show and on billboard and busses every time you drive
anywhere ... unlike them, I don't want to push a bunch
of <EM>features</EM> on you and I have nothing to sell you
(except my time --- which is pretty expensive).
</blockquote>
<blockquote>Helping someone select a Linux distribution (or anything
else) is a matter of requirements analysis. What do
you need? What do you want? How much are you willing to
spend? (Time and money). It is quite possible that I
would recommend <A HREF="http://www.freebsd.org/">FreeBSD</A>, <A HREF="http://www.netbsd.org/">NetBSD</A>, <A HREF="http://www.openbsd.org/">OpenBSD</A>, BSDI/OS, or
even Win '95, NT, or MS-DOS --- <EM>if</EM> I understood your
requirements sufficiently.
</blockquote>
<blockquote>Before you send me a list or essay on your requirements
consider that the Answer Guy is time I volunteer to show
my appreciation for all the work that people like Richard
Stallman, Linus Torvalds, Alan Cox, Arnold Robbins, and
so many others have put into the GNU project, Linux and
other freeware. I try to answer questions that I think
are of broad interest to many Linux users and potential
Linux users. (And possibly of interest to *BSD'ers
and eventually GNU HURD'ers).
</blockquote>
<blockquote>The easy answer to selecting a distribution is: pick one!
Since many of them are freely distributable you might want
to start with one of those. <A HREF="http://www.debian.org/">Debian</A> and <A HREF="http://www.redhat.com/">Red Hat</A> are definitely
freely accessible. I think <A HREF="http://www.slackware.org/">Slackware</A> is still available online
--- and I suspect that it's perfectly O.K. to borrow a friend's
copy of the CD. Walnut Creek might have exclusive rights on
CD distribution of Slackware --- I don't know. I think S.u.S.E.
is free for "personal" use (although it is a bit unclear my
S.u.S.E. 5.2 manual says:
</blockquote>
<blockquote><blockquote>Copyright
This work is copyrighted [sic] by S.u.S.E. GmbH and
is placed under conditions of the GNU General Public
License.
</blockquote>
<blockquote>You may copy it in whole or in part as long as the
copies retain this copyright statement.
</blockquote></blockquote>
<blockquote>... (overleaf of the title page). It's not clear whether
"this work" is intended to refer to the book or to the
distribution that included it. The box and CD case (4CD's)
don't list any other copyright or licensing notices that I
can find. The only index entry under the term "license"
points that the Appendix of their manual that contains the
full text of the FSF GPL. That would suggest that you can
borrow my set of S.u.S.E. CD's and install it, and would
even suggest that someone could start creating derivative
works (other CD sets) to sell in competition with S.u.S.E.
</blockquote>
<blockquote>However, I've always been under the impression that S.u.S.E.
is a commercial distribution. I purchased both of my copies
for it -- 5.1 and 5.2 --- and I've purchased many copies of
various Red Hat versions (the boxed set and the lower-priced
archives sets). So, you might want to ask a S.u.S.E. rep
before you go into production against them. However, I doubt
that they'd even want you to waste their time asking if it's
O.K. to install from a friend's set on an evaluation basis.
</blockquote>
<blockquote>You're clearly willing to buy some distribution once you
find one you like. Personally I usually select Red Hat
for my customers (after I've considered their needs) simply
because Red Hat has a pretty good balance of the various
factors they care about.
</blockquote>
<blockquote>Debian has more packages (slightly) -- but the last copy of
<ttt>dpkg</tt> that I used was very convoluted (I'm hoping to get a 2.0
CD as soon as it goes out of beta). Slackware was nice when
I needed it --- but most of my customers aren't interested
in fussing with tarballs --- they want something with a
decent package manager (one that can be operated easily
from command lines as well as throught a GUI).
</blockquote>
<blockquote>Under RH it's pretty simple to write a script to poll an
internal FTP site for package updates and automatically apply
any of them that appear. (I think there's a package called
'<tt>rpmwatch</tt>' floating around some '<tt>contrib</tt>' directories somewhere
that does precisely that). I haven't looked at RH 5.1 yet.
</blockquote>
<blockquote>S.u.S.E. and Caldera both use the RPM format.
</blockquote>
<blockquote>S.u.S.E. includes more packages that the last couple RH CD's
I used (4.2 and 5.0). It seems to have a pretty good
installation interface though I have mixed feelings about
their interpretation of the SysV init scripts. They have a
large shell script named /etc/rc.config (mine is about 770
lines long --- of which about 500 are comments). This file
contains a long list of shell variables and values. You
can edit this file by hand or you can use YaST (Yet another
Setup Tool) which is their curses based system's administration
interface. The idea is that the other scripts all "source"
this one file and use the variables that apply to their
operation.
</blockquote>
<blockquote>On the one hand this is very nice. Concievably I could
create a particular installation profile (which they support
via their installation interface), install the system,
configure it via YaST and put it into production.
</blockquote>
<blockquote>Let's assume I use the '<tt>chattr +i +d</tt>' (immutable and no-dump)
flags on all the files that came with the distribution and
unset them as a pair whenever I change any of them; this would
allow me to use the '<tt>dump</tt>' program and <EM>never</EM> backup files
that were from the initial installation off of the CD). This
is for a "data+config" backup strategy.
</blockquote>
<blockquote>If I've stored the rescue floppy they created, and the
rc.config file --- I should be able to restore the whole
system to its configuration with just my installation
CD's, my rescue diskette, and the rc.config file. (Naturally,
I'll have to restore all my data as well).
</blockquote>
<blockquote>Another nice thing is that I might be able to create
a little script to generate new rc.config files from a
master form and a couple of other data files. If I have
<EM>lots</EM> of new machine trickling in I might have a few
files that contain lists of IP addresses, hostnames,
NIS domain names, shared printers, and other local (LAN)
data. I might conceivably be able to generate a new custom
rc.config file for each new box and automate even more
of the deployment.
</blockquote>
<blockquote>Under other distributions I have to mess with over a dozen
separate files. Unfortunately it's not that easy even under
S.u.S.E. If you use NFS you really want to use NIS or synchronize
the '<tt>passwd</tt>' and '<tt>group</tt>' files across your systems (since
maintaining ugidd maps is not scaleable and NFS relies on
the uid/gid values to determine access and permissions.
</blockquote>
<blockquote>None of the distributions I've seen prompt me for a
passwd/group file set prior to installation. So, if I use
Red Hat on one system and S.u.S.E. on another (I do)
--- there will be some base files that differ between them
(most of the uid's created by most of the distributions
<EM>do</EM> match -- there were only a couple that I had to
run through a "<tt>masschown</tt>" script). (Distribution Dudes!:
This is my enhancement plea for the month! Please let me
hand you a passwd/group file set --- from floppy or over
ftp/nfs/http --- and use that to map the ownership as you
install).
</blockquote>
<blockquote>These days, for large sites, I recommend creating one
"template" installation one a typical box, cutting that whole
installation to tape or CDR after configuration but <EM>before</EM>
any <EM>use</EM> (data). Now you can do all new system installations
as "restores" from your backups. You can also take that
opportunity to make sure that your recovery plans, rescue
diskettes and backup media are all in working order. One
reason I recommend that is that it takes me about
four hours to fix various permissions and configurations
(<tt>hosts.allow</tt>, <tt>hosts.deny</tt>, etc) after I've completed a new
installation.
</blockquote>
<blockquote>One final note about choosing a distribution: don't just
ask me. I'm only one person. I've only used about a half
dozen Linux distributions (some of which no longer exist!).
Don't just go to the newsgroups and mailings lists and ask
"Which is best?"
</blockquote>
<blockquote>Ask questions that relate to your situation: Will you be
integrating this into a Novell network? Do you have friends
or family that will be working on your Linux box? Do any of
them have experience with a Linux distribution? Do any of them
use some other form of Unix (free or otherwise)? Do you have
any particular applications preferences? Is system security
a concern? What are the risk profiles that are acceptable to
you? What is your native language (German speakers will probably
be much happier with the German S.u.S.E. or the DLD (?)
distributions, Japanese users seem to prefer FreeBSD, the French
have their own distribution, etc.)?
</blockquote>
<!-- end body -->
<A name="tag_proxy"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
align="left" border="0">IP Masquerading/Proxy? </H3>
<p><strong>From Peter Mastren on 20 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>James,
</strong></p>
<p><strong>I appreciate your in depth coverage of the IP Masquerading topic last
month.
</strong></p>
<p><strong>My own private network now is able to talk through my Linux box using
the techniques you described.
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">Glad to help.</blockquote>
<strong><p>I, however, can't seem to find an answer to my next problem anywhere
in the literature. My Linux proxy is connected via ISDN to my
employers intranet which itself is behind a firewall and served by a
proxy server. From Linux, I can browse, telnet, ftp etc... using
SOCKSified clients, i.e. rtelnet, rftp. From any other machine in my
private network, I am only able to get as far as the companies
intranet, but not all the way to the internet.
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>If your other machines were using SOCKSified clients they
would probably work as well. So the first suggestion would
be to find SOCKSified clients for your other systems.
</blockquote>
<blockquote>It is also possible to configure SOCKS (v5 at least) for
multi-hop traversal (so that one zone or subnet in an
organization, such as yours can use a SOCKS server to
relay traffic to another SOCKS server.
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0">How do I get modules,
<tt>ip_masq_ftp.o</tt>, <tt>ip_masq_raudio.o</tt> etc... to use
SOCKSified protocols? Basically, another level of indirection is
required to actually reach the internet. Can this be done?
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>I supposed someone could "SOCKSify" the IP Masquerading
modules or use 'ipfwadm' to redirect all the appropriate
traffic to custom, SOCKSified, programs through the
transparent proxying features.
</blockquote>
<blockquote>One of the features of the Linux IPFW (kernel packet
filters) is a provision to redirect incoming TCP connections
into Unix domain sockets on the localhost, where a user
space program can be attached to them. This user space
program can either handle the request directly or
relay/proxy the connection through whatever interfaces and
protocols you'd want to build into it.
</blockquote>
<blockquote>I think the squid cache and the DeleGate proxy can each be
configured to support this.
</blockquote>
<blockquote>To find out a little bit more about this redirection feature
look for the "<tt>-r</tt>" switch on the '<tt>ipfwadm</tt>' man pages.
</blockquote>
<blockquote>Just off hand I don't see that the newer IP-chains code
(apparently intended to replace <tt>ipfwadm</tt> in future kernels)
offers any particular help for your situation. It does add
significant new features to Linux packet filtering and it
well worth the work that's going into it. However, I don't
see anything on it's web site:
</blockquote>
<blockquote><blockquote><code
><A HREF="http://www.adelaide.net.au/~rustcorp/ipfwchains/"
>http://www.adelaide.net.au/~rustcorp/ipfwchains/</A>
</code></blockquote></blockquote>
<blockquote>... that applies directly to your situation.
</blockquote>
<blockquote>Some other work in this field is at:
</blockquote>
<blockquote>
<dl><dt>The HOWTO for IPChains
<dd><A HREF="http://www.adelaide.net.au/~rustcorp/ipfwchains/HOWTO.html"
>http://www.adelaide.net.au/~rustcorp/ipfwchains/HOWTO.html</A>
</dl>
</blockquote>
<blockquote>As I said It looks like IPChains is going to be the default
kernel packet filtering code for the 2.2 kernels.
</blockquote>
<blockquote><dl><dt>The Home of Linux IP NAT
<dd><A HREF="http://www.csn.tu-chemnitz.de/HyperNews/get/linux-ip-nat.html"
>http://www.csn.tu-chemnitz.de/HyperNews/get/linux-ip-nat.html</A>
</dl>
</blockquote>
<blockquote>(NAT -- network address translation -- is more
generalized then IP masquerading. While IP masquerading
implements a specific many-to-one NAT, IP NAT allows
complex many-to-many translations. It might be able to
co-exist with IP masquerading and/or IP Chains).
</blockquote>
<blockquote><dl><dt>Darren Reed's IP Filter
<dd><A HREF="http://cheops.anu.edu.au/~avalon/"
>http://cheops.anu.edu.au/~avalon/</A>
</dl>
</blockquote>
<blockquote>This is the free filtering package used by
<A HREF="http://www.freebsd.org/">FreeBSD</A> and
its brethren and it is the most popular packet filtering
package for Solaris and a few other forms of Unix
(which don't include packet filtering in their standard
kernels).
</blockquote>
<blockquote>Reportedly this has been successfully run under Linux
as well.
</blockquote>
<blockquote>As we move beyond packet filtering we look into proxying
systems. We can look in at the home site of NEC SOCKS
at:
</blockquote>
<blockquote><blockquote><code
><A HREF="http://www.socks.nec.com">http://www.socks.nec.com</A>
</code></blockquote></blockquote>
<blockquote>(Just hit the "Download" link if you want the
package itself).
</blockquote>
<blockquote>On a whim I used their "Search" link and found 844 results
for "Linux" and 578 results for "Solaris" The numbers are
interesting though meaningless and I don't have time to
do an analysis to say whether the disparity is good or bad
for the Linux community.
</blockquote>
<blockquote>We can also look at Thede Lod's "Simple SOCKS Daemon" page
at:
</blockquote>
<blockquote><blockquote><code
><A HREF="http://www.leverage.com/users/tlod/ssockd/ssockd.html"
>http://www.leverage.com/users/tlod/ssockd/ssockd.html</A>
</code></blockquote></blockquote>
<blockquote>
This seems to be a simplified replacement/alternative
to the stock SOCKS v4.x server.
</blockquote>
<blockquote>It seem that this as only been tested under FreeBSD
--- so it might require some coding to port it to
Linux.
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
<blockquote>Thanks for time and keep up the good work. Your efforts are
appreciated.
</p></strong>
<strong><p>Peter F. Mastren
</p></strong>
<!-- end body -->
<A name="tag_disable"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>The "Difficulty" is in Disabling the Services</H3>
<p><strong>From CARqb on 20 Aug 1998 </strong></p>
<!-- begin body -->
<strong><P>How can I set my computer to act as a network server?
I'm running RedHat 5.0
Thanks in advance.
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>Usually you don't have to do anything special to any Unix or Linux box
to enable a variety of network services. In fact it is far more common
for sysadmins to put their energy into <EM>disabling</EM> the large variety of
services that are enabled by default (as every service is a potential
security hole).
</blockquote>
<blockquote>Now that applies to services like HTTP (web servers), FTP, POP and IMAP
("post office procotol" and mail access protocols), telnet, rlogin/rsh,
and various others.
</blockquote>
<blockquote>If you specifically mean "network <EM>file</EM> server" then the
answer is a bit more involved. There are a number of filesharing protocols that
are supported by Linux. NFS is most commonly used between Unix
systems. Samba is common when you want to use Unix/Linux servers in
a Windows for Workgroups, Win '95, NT, OS/2 or LANMan/LANServer
network. In environments with plenty of Apple Macintosh clients the
natural choice would be '<tt>netatalk</tt>' ('net Appletalk). On a LAN with
DOS client systems, particularly with existing Novell Netware servers
the choice would probably to use the '<tt>mars-nwe</tt>' (Netware emulator).
</blockquote>
<blockquote>Hopefully in the near future we'll see increased support for TCFS
(a transparently cryptographic filesystem -- which is far more secure
than NFS, even NFS over SRA (secure RPC authentication) and for CODA
a new, enhanced version of AFS (the "Andrew filesystem" when it was
developed at Carnegie-Mellon University, later called DFS when it was
aquired? by Transarc -- which I gather is an IBM affiliate).
</blockquote>
<blockquote>Thoroughly retro Linux heads could even try the RFS (remote filesytem)
package (runix100.tar.gz???). RFS was a SysV network filesystem that
lost mindshare to Sun's NFS and is thus virtually unheard of today.
</blockquote>
<blockquote>It is basically possible to support many of these system concurrently
on a single Linux host. A truly ambitious (and sick) sysadmin might
try enabling them <EM>all</EM>.
</blockquote>
<blockquote>It should be obvious that the Linux philosphy is to support whatever
protocol the client wants. This is vastly preferable (from the IS
manager's point of view) to certain systems that try to dictate what
software must be installed on all clients as part of their server
licensing.
</blockquote>
<blockquote>I hope this all helps. To give a better answer I'd have to know
a lot more about which services you want to provide. Most of them
have FAQ's and HOWTO's at the LDP mirrors like:
<A HREF="http://www.linuxresources.com/LDP"
>http://www.linuxresources.com/LDP</A>
(which should be the first
stop shopping URL for every Linux user's questions --- followed
by Yahoo! and its Alta Vista database at
<A HREF="http://www.yahoo.com">http://www.yahoo.com</A>).
</blockquote>
<!-- end body -->
<A name="tag_DVI"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>How to read DVI files? </H3>
<p><strong>From Gregory F.I. Sewbalak on 20 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>Dear Answer Guy,
</p></strong>
<strong><p>A few weeks ago I've purchased the S.u.S.e. 5.2.
</p></strong>
<strong><p>With this 6 CD-Box there was no user manual available, therefore I
tried to read the "books.dvi" on the CD. However, I don't seem to
succeed in opening this file, because I don't know which program I
need to do so! So, with which program can I read the dvi-files and
the psz-files?
</p></strong>
<strong><p>Reminder: I used to be a Microsoft fan, but since I've tried
<a href="http://www.redhat.com/">RedHat</a>
5.0 I've completely switched to Linux! How about that?!!
</p></strong>
<strong><p>Yours Sincerely,
<br>Gregory F.I. Sewbalak
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>.dvi files are created by the TeX and LaTeX typesetting
(desktop publishing) packages. These are in a "device
independent" format --- and are normally processed further
by printer drive like '<tt>dvips</tt>' or '<tt>dvilj</tt>' (for PostScript
and LaserJet printers respectively).
</blockquote>
<blockquote>If you have the X Window System up and running you can use
'<tt>xdvi</tt>' to "<tt>preview</tt>" these (view them on screen). You could
also use '<tt>dvips</tt>' to generate a Postscript file and use '<tt>ghostview</tt>'
or '<tt>gv</tt>' (both are PostScript viewers for X) to view them.
</blockquote>
<blockquote>When you have questions of this sort it's often helpful to
use the '<tt>apropos</tt>' or '<tt>man -k</tt>' command to get a list of commands
and man pages that may related to some key word. Thus, on my
<A HREF="http://www.suse.com/">S.u.S.E.</A> 5.1 system typing the command:
<tt>man -k dvi</tt> gives me:
</blockquote>
<pre>dvi2tty (1) - preview a TeX DVI-file on an ordinary ascii terminal
dvibook (1) - rearrange pages in DVI file into signatures
dviconcat (1) - concatenate DVI files
dvilj (1) - convert dvi files to PCL, for HP LaserJet printers
dvips (1) - convert a TeX DVI file to PostScript
dvired (1) - print dvi-files
dviselect (1) - extract pages from DVI files
dvitodvi (1) - rearrange pages in a DVI file
dvitype (1) - translate a dvi file for humans
grodvi (1) - convert groff output to TeX dvi format
xdvi (1) - DVI Previewer for the X Window System
</pre>
<blockquote>... and reading those would give me some cross references.
</blockquote>
<blockquote>Allegedly there are also SVGAlib dvi and PostScript viewers
--- though I've never used one. One of these day I'll hunt
one down and play with it. Although my wife doesn't mind
running X on the old 386 --- it seems too slow to me (I finally
changed to this 150Mhz Pentium system that I built because
I've been using <tt>xdvi</tt> and <tt>Gnus</tt> so much)..
</blockquote>
<blockquote><em>[In fact, I'm using it right now, very effectively. But I'm
cheating... I'm really using the networking power of X. Betel, our
VarStation II, is running Netscape and two sterms for me, and Antares
is just serving display, keyboard and pointer functions to my desktop.
<br>-- Heather]</em></blockquote>
<blockquote>The TeX typesetting language, and the LaTeX set of macros
for it, are very popular among academic and technical
publishers. The system was orginally created by Donald
Knuth --- the most respected professor in the field of
programming. He designed it and the the WEB "Literate
Programming" system while he was writing the first editions
of his "<em>Art of Computer Programming</em>" series (between the
2nd and 3rd volumes, if I recall correctly).
</blockquote>
<blockquote>TeX is not just a typesetting language like troff --- it
is an extensible programming language for creating typesetting
commands. Leslie Lamport used this facet of the system to
create a set of macros, LaTeX, to allow people to focus on
a document's structure and let his macros and the TeX system
do almost all of the page layout.
</blockquote>
<blockquote>Thus a bit of plain text like the following:
</blockquote>
<pre>% Template for a LaTeX Letter
\documentclass{letter}
\name{Jim Dennis}
\address{903 Harriet Ave.\ \\Campbell, CA 95008-5119}
\makelabels
\begin{document}
%% for each letter do:
\begin{letter} {%
\\ % full name and title
\\ % address
} % city, state, zip-code
\vfill
\opening{Dear %
% greeting name
,}
\vfill
\closing{Sincerely,}
\vspace{
\signature{Jim Dennis,}
\vfill
\end{letter}
%% end letter (Repeat as necessary)
\end{document}
</pre>
<blockquote>... is all you need to create nicely typeset letters.
Basically you just fill in the blanks, run a command like:
</blockquote>
<blockquote><blockquote><code>latex myletter.tex
</code></blockquote></blockquote>
<blockquote>.. and (if all goes well) send the <tt>.dvi</tt> file to the printer
(or run it through the '<tt>dvips</tt>' command and then to the printer).
</blockquote>
<blockquote>If you've been hearing about XML (the next generation
"extensible" enhancements to HTML) then this should give you
an idea of what they're doing. LaTeX and TeX are extensible
--- and there are packages to do all kinds of interesting
and specialized typesetting and layout with them (things
like "chess" and "backgammon" diagramming and all sorts of
scientific and technical diagrams, tables and bibliographies).
</blockquote>
<blockquote>(Frankly XML sounds like a bit of a mess --- something like
the old LU6.2 and APPC morass that my mainframer friends used
to describe).
</blockquote>
<blockquote>The problem for many people is that this mode of thinking
and working is totally alien. They're used to WYSIWIG
interfaces and manual/visual layout (make it "look right"
rather than "make it clear what you mean").
</blockquote>
<blockquote>There are some efforts to provide a friendlier interface
to LaTeX --- the most notable is "LyX" (pronounced "licks")
and the <A HREF="http://www.kde.org/">KDE</A> variant called <tt>KLyX</tt>).
You can read more about
LyX at its own web site: <A HREF="http://www.lyx.org">http://www.lyx.org</A>
</blockquote>
<blockquote>Anyway, I hope that helps.
</blockquote>
<!-- end body -->
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>How to read DVI files?</H3>
<p><strong>From Gregory F.I. Sewbalak on 22 Aug 1998</strong></p>
<!-- begin body -->
<p><strong>Thanks for the explanation!
</strong></p>
<!-- end body -->
<A name="tag_superblock"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Bad Super-block on Filesystem</H3>
<p><strong>From Mike Klicpera on 20 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>I am trying to correct a corrupted super-block on my Linux (Redhat
ver. 4.2) system. When using the command "<tt>e2fsck -av /dev/hda2</tt>"
the resulting message is that "<tt>a bad magic number in super-block</tt>"
When using the command "<tt>e2fsck -b 8193 /dev/hda2</tt>" the resulting
message is "<tt>attempt to read block from filesystem resulted in short
read while trying to open /dev/hda2</tt>". In neither case did the
program <tt>e2fsck</tt> correct the super-block. Could you provide any
advice or point me in the right direction?
</p></strong>
<blockquote>I'd start by looking at the partition table.
</blockquote>
<blockquote>Use <tt>fdisk -l</tt>
<em>[the letter ell, not the number one -- Heather]</em>
to list all the partitions that your Linux
system can see. Make sure that the <tt>/dev/hda2</tt> really
is supposed to be a Linux native partition (that you
haven't swap devices and the partition has moved to
<tt>/dev/hdb2</tt> --- and that it isn't a swap partition or
whatever).
</blockquote>
<blockquote>It's also possible that you've switched from some
autotranslation mode to linear (LBA) or otherwise changed
how the system addresses this drive. Normally this
shouldn't affect Linux --- but I don't know what sort
of situation you have.
</blockquote>
<blockquote>The "short read" error causes me to suspect that
the partition table is wrong or that you're pointing
fsck to the wrong device/slice. That's the error I get
if I run <tt>debugfs</tt> on a directory or file rather than the
proper <tt>/dev/</tt> node. It's also possible to get this if
you've got a partition that's listed as Linux native
that has <EM>no filesystem</EM> yet made on it or when you
try the <tt>e2fsck -b</tt> on an MS-DOS filesystem.
</blockquote>
<blockquote>You can try a number of other superblocks (they should
be scattered every 8K clusters)
</blockquote>
<blockquote>In a particularly bad case you can try <tt>mke2fs -S</tt>
(make superblocks and group descriptors only). This
is described in the man page --- and is for "last ditch"
efforts only.
</blockquote>
<blockquote>If you have a tape drive or a suitably large extra
disk drive you can make an "image" backup of this
device before you try any other (more radical) attempts
at data recovery. You'd just use a command like:
</blockquote>
<blockquote><blockquote><code>dd if=/dev/hda2 of=/dev/nst0
</code></blockquote></blockquote>
<blockquote>... or better:
</blockquote>
<blockquote><blockquote><code>dd if=/dev/hda | buffer /dev/st0
</code></blockquote></blockquote>
<blockquote>... to backup the entire drive through the "<tt>buffer</tt>"
program to stream all of the data out to your SCSI
tape drive.
</blockquote>
<blockquote>You can write the image to another block device, such
as <tt>hdc3</tt> using a command like:
</blockquote>
<blockquote><blockquote><code>dd if=/dev/hda of=/dev/hdc3
</code></blockquote></blockquote>
<blockquote>(assuming you have a large enough blank partition on
the extra or loaner drive).
</blockquote>
<blockquote>You can even send the data to another system with
a command like:
</blockquote>
<blockquote><blockquote><code>dd if=/dev/hda | rsh $othersystem dd of=/dev/hdc3
</code></blockquote></blockquote>
<blockquote>(or whatever).
</blockquote>
<blockquote>The advantage of any of these techniques is that
it allows you to experiment with various recovery
techniques with less chance of "making it worse"
(any time you think you've "made it worse" you
use the reverse commands to "start over").
</blockquote>
<blockquote>There are a number of hex editors for Linux, some
with nice ncurses interfaces. These can allow you
to explore a filesystem trying to find out where
things are. I haven't played with any of these
enough to be any good with them --- and I've never
read through the sources to find out where the
interesting data structures should be, or what they
should look like.
</blockquote>
<blockquote>Eventually I'd like to see the Linux programming
community produce a set of fs recovery tools to rival
the Norton Utilities for DOS (for which I used to be
a professional support rep). The first such tool would
be one that could scan a raw device, find superblocks
and report the information from them.
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">Thanks in advance for any help.
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">I hope it helps.</blockquote>
<!-- end body -->
<A name="tag_serial"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Multiplexing the Computer -- ISDN Modem Connection</H3>
<p><strong>From Todd on 29 Jul 1998 </strong></p>
<!-- begin body -->
<p><strong>Is it possible to have more than one process accessing a single
serial port simultaneously? I have a USR Courier I ISDN, and would
like to use the analog B-channel for serving faxes using
Mgetty+Sendfax while the data channel is engaged. The problem is
that <tt>pppd</tt> locks the port and <tt>Mgetty</tt> times out while waiting on it.
Is there a way around this?
</strong></p>
<p><strong>Cheers,
<br>Todd
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>The short answer is: you can <EM>NOT</EM> do what you want
from standard Unix/Linux. It would have to be via some
special (and probably proprietary) protocols and drivers
that would have to be supported by the Courier.
</blockquote>
<blockquote>It's certainly possible for multiple Unix/Linux processes
to concurrently access a file or device. It's just a
bad idea for serial devices. That, indeed, is the reason why
we mess with lock files. Without file locking our processes
will blithely step all over one another, disrupting
communications.
</blockquote>
<blockquote>Let's think about this a bit. You have your ISDN device
(If I recall correctly the Courier I is a combined NT1
and TA with analog modem/FAX support) connected to your
PC via a single serial line.
</blockquote>
<blockquote>When that line is carrying data, it's busy. In order
for it to carry two distinct streams of data there
would have to be some form of multiplexing going on.
This multiplexing would have to involve some protocol.
The device would have to have a method for encoding
and interlacing data from these two sources --- and
the system would have to have some way (some DRIVER)
for de-multiplexing it (splitting the original two
streams back out the single serial string).
</blockquote>
<blockquote>I've never heard of a device that does this. Any that
did would have to have drivers on the PC side ---
a Unix/Linux driver of this sort would undoubtedly
make the one serial port appear to be two (or more)
tty devices. (That would allow it to work with any
standard Unix/Linux utilities).
</blockquote>
<blockquote>PPP and SLIP have the effect of multiplexing multiple
connections over a serial line. Theoretically a smart
enough ISDN device could have its own IP address
assigned to it and insert its own TCP/IP packets over
your PPP/SLIP link when that was active. I've never
heard of such a device.
</blockquote>
<blockquote>Bonding the two B channels using the MP (multi-link
protocol) simply allows your two channels to act as
on highspeed interface. However this requires that
both B channels connect from your end to the same
point at the other end of the connenction (usually
the other B channel on the same physical device --
NT1 or NT2 at your ISP's end).
</blockquote>
<blockquote>In addition the top speed of a standard PC serial line
is 115200bps. The total bandwidth of your two B channels
is 128Kbps. Any multiplexing would involve some overhead
on this bandwidth. So the PC serial line becomes a
bottleneck even when you're just bonding the two B channels.
</blockquote>
<blockquote>Another approach would be to simply have two serial ports
on the ISDN TA/NT1. That would allow you to access the
analog services via one tty and the digital services
</blockquote>
<blockquote>The best resource I know of for info on ISDN would be
from Dan Kegel's pages:
</blockquote>
<blockquote><blockquote><code
><A HREF="http://alumni.caltech.edu/~dank/isdn"
>http://alumni.caltech.edu/~dank/isdn</A>
</code></blockquote></blockquote>
<blockquote>That should provide more than you wanted to know.
</blockquote>
<!-- end body -->
<A name="tag_permission"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Permission to Set up a Linux Server</H3>
<p><strong>From ChipX on 20 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>Hi,
OK, just a quick question (sort of)...
</strong></p>
<p><strong>My friend came over one day and we were just surfing like usual
(using Win95).
</strong></p>
<p><strong>He asked if he could check his mail; I said "Sure."
So he opens up telnet and logs onto a friend's RedHat Linux 4.2 Server.
He checks mail, updates his finger, and leaves.
</strong></p>
<p><strong>I really need to know how to set up a server of my own.
</strong></p>
<p><strong>Do I need my isp's permission or some junk like that, cuz they wont be
willing to give up any of their ethernet for me and my linux box <IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle">
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>Alright, I finally figured out what you were asking.
It took a little work, though.
</blockquote>
<blockquote>First note: when you set up a Linux system it defaults
to providing many services. It is already a "server."
</blockquote>
<blockquote>What you seem to be asking is: "How do I make my server
accessible via the Internet?"
</blockquote>
<blockquote>As you surmised you would have to make arrangements with
some ISP to have some dedicated (or at least "dial on demand")
connection to the net, or to "co-locate" your hardware with
them.
</blockquote>
<blockquote>There are a number of ISP's that provide co-location services.
This is where you provide a system that they plug into
their network (and power). Generally these are moderately
expensive services (about $150 to $500 per month usually with
a limited average bandwidth utilization per month).
</blockquote>
<blockquote>Some of these plug you into their ethernet, others provide a
null modem (serial) connection over which you'd configure a
"local" (direct) PPP link. This allows them to effectively
limit the amount of bandwidth you're using. (The latest 2.1
Linux kernels have an experimental "shaper" interface that
allows one to limit bandwidth utilization on ethernet --- but
I don't know of any ISP that's using that).
</blockquote>
<blockquote>I know some businesses that co-locate an extra server for
redundancy. If their dedicated network connection gets
hit by the proverbial (and sometime very <EM>real</EM>) 'backhoe'
then their web site and mail server is still accessible to
their customers. This is relatively low cost to companies
that are used to paying for T-1, T-3, or fiber charges.
</blockquote>
<blockquote>This brings up to the second option. You can get a
dedicated connection to your home or office. These range
from 28.8 dial-up over POTS (plain old telephone service) to
OC-48 (optical connections --- even past 622Mbps). As you
might expect most of these are prohibitively expensive
for home use (not to mention potential zoning and regulatory
issues).
</blockquote>
<blockquote>For practical purposes you have the following options for
home and SOHO (small office, home office) dedicated connections:
</blockquote>
<blockquote>
<dl><dt>modem over POTS:
<dd>least expensive, might be as low as
$130 (US) per month. Slowest. As
discussed in my articles about modems
you usually won't get 56Kbps out of a
"56K" modem.
<dt>ISDN (Centrex or not):
<dd>This is usually at least $200/mo.
Centrex is a little confusing. Typically it
allows you and your ISP, if you are located in the
same telephone CO (central office), to have an
ISDN line that is essentially an extension of
your ISP's office. This typically just eliminates
the "per-minute" charges of keeping the ISDN line
up. It also limits your ISDN line so that it can
only be used with that ISP. (This also implies
a very limited selection of ISP's for each user).
<dt>DSL:
<dd>Not available in all areas. Somewhat confusing
right now since it is a fairly recent offering.
Basically DSL takes advantage of an old obscure
feature in the pricing structure and responsibilities
of US phone companies. They used to provide "dry
copper" lines (that is telephone wires with no
dial-tone or signal) to alarm companies and similar
services. Using these lines and connecting DSL
routers at each end (rather than alarm monitoring
equipment) one can get various speeds (depending
on the distances between client, CO, and ISP).
</dl>
</blockquote>
<blockquote>DSL typically costs about $300/mo where it's
available.
</blockquote>
<blockquote>If I was getting a DSL line I'd get it
from Idiom (<A HREF="http://www.idiom.com">http://www.idiom.com</A>) or some other
Covad partner (<A HREF="http://www.covad.com">http://www.covad.com</A>). I know
the owner and founder of Idiom, and one of the
principles of Covad. Those are both SF Bay
Area companies.
</blockquote>
<blockquote>
<dl><dt>56K leased line:
<dd>(I'm not a telco expert but I think this
is the same as a "fractional T1" --- that is that
is a a fraction, 1/24th of a T-1 --- which in
turn is a bundle of 24 channels for a total of
1.54Mbps). This is about as much as any sane
person would pay to put in his or her home. They
cost about $300 or more per month.
<dt>cablemodem:
<dd>These are very fast, and only available
in a <EM>very</EM> limited number of places. Also
they frequently limit your ability to provide
services (through packet filtering or by
periodically disconnecting you and assigning
new IP addresses. While they sound great for web
<dt>Frame Relay:
<dd>I've seen these in various speeds, from
56K or 64Kbps to 1.5Mbps and in various prices
ranging from $200 per month to over $1000.
<dt>Wireless:
<dd>A couple of providers in the Silicon Valley
(and San Francisco Bay Area) offer wireless
dedicated connections. One of them is
Innetix (<A HREF="http://www.innetix.com">http://www.innetix.com</A>)
</dl></blockquote>
<blockquote>Conceivably an ISP could provide "dialout" or "service
on demand" services --- that is that they could dynamically
dial your server when TCP/IP traffic is destined for your site.
(It would work almost the same way that your copy of diald
allows your system to dynamically call your ISP --- only the
underlying routes would be different).
</blockquote>
<blockquote>I've never heard of a company that actually offered this
service and I doubt that there's any advantage for them to
do so. This would probably be quite expensive for them ---
and there's probably almost no demand for it (I doubt that
one customer in a thousand would understand or care about
such a service --- and I can see any pricing niche that would
make it worthwhile).
</blockquote>
<blockquote>I only mention as a theoretical possibility.
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0">Can I do this with X?</p></strong>
<strong><p>Thanks.
<br>ChipX
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>X is a communications protocol for windowing (GUI)
and keyboard/mouse events. The X Window System provides
a client/server windowing environment --- which allows
programs on your local machine, and on selected remote systems,
to act as clients on your "display server" (a display is
one or more screens, a keyboard and a mouse and/or other
pointing device).
</blockquote>
<blockquote>This is why you call the program that you run on your
Linux system an "X server" --- because it provides display
services to programs like '<tt>xterm</tt>' 'netscape' etc. The
fact that most of these programs are usually running on the
same host as the server is of no consequence to X. The
X server communicates with all of its clients via sockets.
</blockquote>
<blockquote>Those are unix domain sockets ("<tt>s</tt>" special nodes on your file
system --- usually under <tt>/tmp</tt>) for most localhost clients,
internet domain sockets (TCP/IP networking) for most others).
</blockquote>
<blockquote>So, I suppose you can do "this" with X (that is, you could
have an ISP co-located a server on the Internet, or you could
have a dedicated connection fed into your home such that you
could allow access to an X server from any client on the
Internet. This would be horrible from a security standpoint
--- but that's not something you've expressed any concern about.
</blockquote>
<blockquote>Shifting into "requirements analysis" mode we ask:
</blockquote>
<blockquote>What information, applications and resources
to you want/need to make available to whom?
</blockquote>
<blockquote>... which leads to a more fundamental requirements question:
</blockquote>
<blockquote>Who are the involved parties? (You, and each person
or class of persons to whom you would like to provide
access to the aforementioned resources).
</blockquote>
<blockquote>You can use these two lists (resources, parties/customers)
to build a table of "business relationships" (even if this
isn't really a business, the principle applies --- you relate
groups/users to the resources with verbs like "read" "write"
"execute" "append/add" etc.
</blockquote>
<blockquote>When you have a clear understanding of these things you can
evaluate and prioritize them. That is to say: you can
place values on each of these relationships. You may find
that many the items you listed are not really requirements
--- but are really preferences or constraints. That's fine,
keep them on the list.
</blockquote>
<blockquote>You could then look at your possible approaches (from the
list above, and by doing additional research into ISP
offerings in your area). All possible designs/plans which
fit your requirements without violating any of your
constraints form a "solution space." This may be an empty
set (there may be not solutions to your set of requirements
within your stated constraints). If there are multiple options
a mapping of these overlaid on your preferences may find an
optimal solution (that's why you prioritize/evaluate the
preferences --- so you can do sums and scoring).
</blockquote>
<blockquote>At that point you'd be in a position to do a cost/benefit
analysis. Undoubtedly costs/pricing formed some of your
constraints. Presumably your preference (all other things
being equal) would be to pay less. However, it is possible
that you're costs will exceed perceived or potential benefits
in such a way as to convince you to abandon the solution set
(and a whole project).
</blockquote>
<blockquote>Actually all you said about your requirements was that
you "need to know how to ...." --- hopefully you now "know";
presumably you are, or were, considering actually setting
something up and I'll have to guess beyond that.
</blockquote>
<blockquote>All I can guess about your requirements was that you
want to be able to remotely get your mail, telnet to your
machine, and update your .plan (finger info). You currently
think you want to be able to do this "over the Internet."
</blockquote>
<blockquote>I'm not sure that you've really considered alternatives
regarding this last one. If you connect a modem to your
Linux box at home you can dial in and use it from anywhere
that you can get at a modem and dial your home number. Unless
you are a real globetrotter your home is probably a local
call to you most of the time. In addition if your area
has "Ricochet" or "<a href="http://www.metricom.com/">Metricom</a>"
or <em>[Ricochet is the product sold or leased by Metricom. -- Heather]</em>
any similar service it may be that you can get a wireless "modem"
(provides a Hayes compatible AT command set and serial interface to your
computer) with optional dial out service. (This allows you
to use a "Ricochet" on your laptop, from the local coffee
house or wherever you can get a signal to dial into your
machine at home).
</blockquote>
<blockquote>Actually, oddly enough, this service has a strange idea
of locality. I subscribe to it in the SF Bay Area. This
lets me dial to any modem number in the 408, 415, 650, 510,
and nearby area codes. It also allows me to dial to 800
numbers. I can dial to these, toll free and without connect
time charges from any where that Metricom's service extends.
</blockquote>
<blockquote>Thus I've dialed into my home computer from the Burbank
Airport near L.A. and from a hotel lobby in Seattle while
I was at a USENIX conference.
</blockquote>
<blockquote>Another thing that's not evident from your question is
just what benefits you hope to get from all of this. Is
it just "coolness" --- so you can do the same thing
your friend did? If so, see if you can get an account
on this other friend's machine. Is it convenience? Do
you have any security concerns? How much is it worth do
have this much "coolness" or convenience?
</blockquote>
<!-- end body -->
<A name="tag_detach"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Detaching and Re-attaching to Interactive Background Processes</H3>
<p><strong>From Lawrence Tung on 16 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>Hi, James: When I run a background interactive process, e.g.
<tt>ncftp</tt>, I logout. Is it possible to reattach this process to a terminal
again after I relogin?
</p></strong>
<strong><p>Lawrence
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>Look for a program called '<tt>screen</tt>'. It's included with
most distributions and it's available at the UNC repository
(Sunsite) at:
</blockquote>
<blockquote><blockquote><code
><A HREF="http://sunsite.unc.edu/pub/Linux/utils/console"
>http://sunsite.unc.edu/pub/Linux/utils/console</A>
</code></blockquote></blockquote>
<blockquote>(which technically isn't the the best place for it since
it isn't a "console" specific utility --- you can use it
from any terminal, dial-up line, xterminal, or over <tt>telnet</tt>
and <tt>rlogin</tt> sessions).
</blockquote>
<blockquote>'<tt>screen</tt>' gives you the ability to multiplex a number of
interactive shell sessions through a single terminal
session. You reserve one keystroke (<tt>[Ctrl]+[A]</tt> by default)
which is the meta key that provides access to all '<tt>screen</tt>'
functions.
</blockquote>
<blockquote>Thus the key sequence <tt>[Ctrl]+[A], [D]</tt> will
"detach" your currently running screen session from the
current terminal connection. To re-attach later (from that terminal session
or any other) you use the '<tt>screen -r</tt>' command.
</blockquote>
<blockquote>When you first start '<tt>screen</tt>' you might first think that
"nothing" happened. It normally just starts a single shell
session. If you start a command (such as '<tt>vi</tt>' or '<tt>emacs</tt>')
and use the key sequence <tt>[Ctrl]+[A], [C]</tt> you'll "create"
a new session. You can now toggle between the current
subsession and the most recently active one by by typing
<tt>[Ctrl]+[A]</tt> twice.
</blockquote>
<blockquote>You can "cycle" from one screen to the "next" (through
all of them in a round robin fashion) by typing:
</blockquote>
<blockquote><blockquote><code>[Ctrl]+[A] [Space]
</code></blockquote></blockquote>
<blockquote>
... and you can get to any of your subsessions (interactive
windows) using the meta key (<tt>[Ctrl]+[A]</tt>) followed by a
single digit. You can have up to ten '<tt>screen</tt>' subsessions
for any screen session. You can even have multiple
screen sessions detached. Your '<tt>screen -r</tt>' command will
list the PID's/sockets of the sessions that you own and
will let you specify the PID (socket extension) of the
one you want to resume.
</blockquote>
<blockquote>To send a <tt>[Ctrl]+[A]</tt> through to your applications
(to move your point/cursor to be beginning of an '<tt>emacs</tt>' line, for
example) you'd type <tt>[Ctrl]+[A], [A]</tt>. (Note that the first is
a "control" character and the next is just the normal,
unshifted, letter).
</blockquote>
<blockquote>Of course you can change the "meta" key --- but I like it
just the way it is. There are the usual sorts of command
line options, and there are also "colon" commands to set
many parameters modes and options.
</blockquote>
<blockquote>When you "detach" a screen session then all of the
"windows" or "subsessions" are left running. They are
not suspended (as they'd be if you used <tt>[Ctrl]+[Z]</tt> on
them.
</blockquote>
<blockquote>There are many other '<tt>screen</tt>' features:
</blockquote>
<blockquote>
<ul>
<li>Interactive Backscroll (using '<tt>vi</tt>' keys for
paging, searching, and scrolling).
<li>Keyboard driven cut and past of anything in
the backscroll buffer.
<li>"Screen shot" (quick paste of current screen
to a file).
<li>"Log to file" (open a log file for a given
subsession --- similar to a typescript '<tt>script</tt>'
command).
<li>Command/shell driven creation of new subsessions
(if you issue a '<tt>screen</tt>' command from within a
'<tt>screen</tt>' session you can start a command
asynchronously in a new subsession).
</ul>
</blockquote>
<blockquote>... and many others.
</blockquote>
<blockquote>About the only three features I think are missing from
'<tt>screen</tt>' are:
</blockquote>
<blockquote>
<ul>
<li>support to '<tt>split</tt>' your terminal (to see parts
of two subsessions concurrently --- either top and
bottom, or side-by-side). (You can run '<tt>splitvt</tt>'
under '<tt>screen</tt>' to get this effect).
<li>embedded '<tt>expect</tt>'/TCL support for context sensitive
keyboard remapping (although you can run '<tt>expect</tt>'
under '<tt>screen</tt>' spawning other programs and using
the same '<tt>interact</tt>' logic you would in any other
'<tt>expect</tt>' script).
<li>multi-user "co-pilot" (allowing two or more users
to "share" a 'screen' session).
</ul>
</blockquote>
<blockquote>It appears that the authors were playing with some "co-pilot"
features and gave up on them. Some of the colon commands
have to do with controlling in memory "access control lists"
(ACL's) which are apparently preliminary support to allow
multiple users, on multiple terminals to have concurrent
access to one screen session (with some or all of them
being "read-only" and others having full "read-write"
to the session).
</blockquote>
<blockquote>It is possible to do very simple two way collaboration
using '<tt>kibitz</tt>' (an '<tt>expect</tt>' script that's included
with some Linux distributions). It's a bit clunking but
functional. However it does give the "kibitzer" full
terminal access to your session, including the ability
to kill or suspend a running program and access to your
shell. Thus '<tt>kibitz</tt>' (as it's written) should be used
only to work with trusted parties (someone that you'd
sit down at your keyboard with access to one of your
login sessions).
</blockquote>
<blockquote>It might be possible to modify '<tt>kibitz</tt>' for
read-only access. This would be conception similar to running a
command like:
</blockquote>
<blockquote><blockquote><code>script /tmp/mytypescript.broadcast
</code></blockquote></blockquote>
<blockquote>... and having your 'clients' run the command:
</blockquote>
<blockquote><blockquote><code>tail -f /tmp/mytypescript.broadcast
</code></blockquote></blockquote>
<blockquote>... except that it would flushing it's buffers
far more frequently. (If you actually try running
the '<tt>script</tt>/<tt>tail</tt>' pair as shown --- or you use
'<tt>screen</tt>' "log to file" feature and slap a <tt>tail -f</tt>
on <EM>that</EM> file --- you'll see that a few kilobytes of
buffers are not written to the <tt>tail -f</tt> process until
enough other activity has occurred on that screen/subsession
or shell.
</blockquote>
<blockquote>By comparison '<tt>kibitz</tt>' is writing synchronously
--- it's flushing each character out to its file (which I think
is actually a Unix domain socket rather than a regular file).
</blockquote>
<blockquote>So, the things that I'd like to see added to
'<tt>screen</tt>' are merely a consolidation of tools that are already
available, and that all seem to be completely compatible with it.
</blockquote>
<blockquote>In any event, I highly recommand '<tt>screen</tt>' ---
it's the closest thing to DESQview that I've ever found for Unix.
</blockquote>
<!-- end body -->
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Detaching and Re-attaching to Interactive Background Processes</H3>
<p><strong>From Lawrence Tung on 17 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>Hi, Jim: Thanks for your reply. I've used "screen" before. I need to
start "screen" before I "detach" the terminal. right? Is it possible
to reattch a process to a terminal after you relogin without
starting any utilities in advance?
</p></strong>
<strong><p>Lawrence
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">Not under current versions of Linux.
</blockquote>
<blockquote>Conceptually you could have a kernel feature
that allowed you to do something like this ---- for
example if you were using a 'streams' based
terminal driver (or some custom terminal driver).
</blockquote>
<blockquote>Basically the gist of it is that you have to know
what you want in advance. There is no "normal"
(standard or conventional) Unix/Linux mechanism for
this --- so you have to either use a utility for it
--- or you have to select an implementation that has
"nonstandard" features.
</blockquote>
<blockquote>Frankly I don't know of any Unix that does support
this sort of thing (except via '<tt>screen</tt>' of course).
</blockquote>
<blockquote>As a couple of side notes:
</blockquote>
<blockquote><tt>ncftp</tt> has direct support for background
and "re-dial" file fetching. Some of these
are enhanced in the at <a href="http://www.ncftp.com/">ncftp.com</a>.
</blockquote>
<blockquote>If you need this sort of "attach and detach"
feature for X the best I've been able to find
thus far is to use the VNC Xserver and attach
to it via the VNC client of your choice.
Look at <A HREF="http://www.orl.co.uk/vnc"
>http://www.orl.co.uk/vnc</A> for details.
</blockquote>
<!-- end body -->
<A name="tag_cdr"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<p>Mark Heath asked about a <a href="../issue30/tag_cdr.html">Disk At Once</a>
CDR driver in July (Issue 30)
and described different kinds of
<a href="../issue31/tag_cdr.html">CDR sessions</a> in August
(Issue 31). The following was found in the
<a href="news://comp.os.linux.announce">comp.os.linux.announce</a>
newsgroup, and should be very useful to those who've been
following this thread...</p>
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/bbub.gif" alt="(!)"width="50" height="28"
align="left" border="0">Cdrdao 1.0</H3>
<blockquote>From <em>The Answer Guy</em> on 18 Aug 1998 </blockquote>
<!-- begin body -->
<blockquote>Mark,
</blockquote>
<blockquote>Hopefully this package will fit your needs.
Please consider writing up a review of it and submitting
that to Linux Journal and/or Linux Gazette.
</blockquote>
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/bbub.gif" alt="(!)"width="50" height="28"
align="left" border="0">Cdrdao 1.0 - Disc-at-once writing
of audio CD-Rs</H3>
<blockquote>From Andreas Mueller to the
<a href="news://comp.os.linux.announce">comp.os.linux.announce</a>
newsgroup on 5 Aug 1998 </blockquote>
<p align="center">-----BEGIN PGP SIGNED MESSAGE-----</p>
<blockquote>This is the first release of cdrdao - a tool for writing
audio CD-Rs in disc-at-once mode. Currently only the Philips CDD2600
writer is supported but it may work with other Philips writers, too.
Contributions for other CD writers are welcome.
</blockquote>
<blockquote>Features:
<ul>
<li>variable pre-gap length (down to zero)
<li>non zero audio data in pre-gaps
<li>control over sub-channel information like ISRC code, pre-emphasis
<li>tracks may be composed of several audio files
<li>support for audio CD copy
</ul>
</blockquote>
<blockquote>Andreas -</blockquote>
<h4>LSM entry:</h4>
<pre>
Begin3
Title: cdrdao
Version: 1.0
Entered-date: 03AUG1998
Description: Writes audio CD-Rs in disc-at-once (DAO) mode allowing
control over pre-gaps (length down to 0, nonzero audio
data) and sub-channel information like ISRC codes. All
data that is written to the disc must be specified with
a text file. Audio data may be in WAVE or raw format.
Keywords: CD-recording, audio, disc-at-once
Author: <A HREF="mailto:mueller@daneb.ping.de">mueller@daneb.ping.de</A> (Andreas Mueller)
Maintained-by: <A HREF="mailto:mueller@daneb.ping.de">mueller@daneb.ping.de</A> (Andreas Mueller)
Primary-site: sunsite.unc.edu <a href="ftp://sunsite.unc.edu/pub/Linux/utils/disk-management/">/pub/Linux/utils/disk-management/</a>
67 kB cdrdao-1.0.src.tar.gz
103 kB cdrdao-1.0.bin.x86.linux.tar.gz
Alternate-site:
Platforms: Linux
Supported hardware: Philips CDD 2600
Copying-policy: GPL
End
</pre>
<blockquote>- - --
<br><em>[PGP and other moderation details omitted for clarity]</em>
<br>This group is archived at <A HREF="http://www.iki.fi/mjr/linux/cola.html"
>http://www.iki.fi/mjr/linux/cola.html</A>
</blockquote>
<!-- end body -->
<A name="tag_rs422"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>High Speed Serial (RS422) under Linux</H3>
<p><strong>From Sujeetharan Sivasubramaniyam on 18 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>Hi I want to use RS422 card under linux. I am not sure whether this
is suppored by linux already. Also I would like to see some
documentation on this. Any pointers will be greatly appreciated!
</p></strong>
<strong><p>Thanks
</p></strong>
<blockquote>Since you don't mention <EM>which</EM> specific card you are
hoping to use, I'll assume that you are willing to
buy a new/supported card if necessary.
</blockquote>
<blockquote>Naturally, with any question about supported hardware,
the first place to check is the Hardware-HOWTO
(<A HREF="http://sunsite.unc.edu/LDP/HOWTO/Hardware-HOWTO.html"
>http://sunsite.unc.edu/LDP/HOWTO/Hardware-HOWTO.html</A>).
</blockquote>
<blockquote>At first we might be led astray (searching on serial
gets us to section 26.6: "Modems and Serial Cards"
--- but that's in reference to PCMCIA cards). However,
we don't find any references to 422 under "Controllers, I/O"
and "Controllers, Multiport" nor anywhere else in the HOWTO.
</blockquote>
<blockquote>Running the Excite search on the LDP site using the string
"<tt>422</tt>" doesn't net any useful results either.
</blockquote>
<blockquote>So, we have to dig a bit deeper. A Yahoo search using the
string "<tt>+rs422 +linux</tt>" nets about 53 hits. The first
of these is from NTLUG (North Texas Linux User's Group)
which lists a company called Vikom, in Irving, TX with
the note:
</blockquote>
<blockquote><dl><dt>"manufactures RS232 and RS422 multiport cards
for Linux"
<dd>(<A HREF="http://www.ntlug.org/lint/index.html"
>http://www.ntlug.org/lint/index.html</A>).
</dl>
</blockquote>
<blockquote>... No URL or contact information is provided.
</blockquote>
<blockquote>Another result of this Yahoo! search is for GTek Inc.
(a long-time manufacturer of serial hardware for PC's).
</blockquote>
<blockquote>They list a Cyclone 6 and note that there are "RS422 and
RS485 interfaces available" and separately they say:
</blockquote>
<blockquote><dl><dt>"Drivers are available for all popular operating
systems: WindowsNT, Windows95, Linux, OS/2 and DOS."
<dd><A HREF="http://www.gtek.com/news.html"
>http://www.gtek.com/news.html</A>.
</dl> </blockquote>
<blockquote>(Granted, this second lead is buried under about a
dozen unlikely results that I didn't follow).
</blockquote>
<blockquote>You might also search the Equinox, Digi, Specialix,
and other web pages for manufacturers of specialized
and multi-port serial hardware to see if they have
something that suits your needs.
</blockquote>
<blockquote>Presumably there is some RS422 support built into the
Kernel --- at least in the PPC (PowerPC) port. As far
as I know most Mac's and Mac clones shipped with built-in
RS-422 (a.k.a. EIA-422) ports for their modems (and
printers?).
</blockquote>
<blockquote>I also found a note that seems to confirm my own experience
--- that is is possible to interface RS-422 connectors to
most RS-232 devices using the proper cabling (the classic
"Mac to PC Modem" cable). There is even one message
about using a special cable to connect an Apple printer
to a PC's serial port. This suggests that some RS-422 devices
can be interfaced to RS-232, as well. (I mention this since
your requirements aren't clear from your message --- potentially
you don't need an RS-422 interface at all).
</blockquote>
<blockquote>Obviously if you already have a specific device and
you are interested in details about <em>that RS-422 card</em>
you'll have to provide details about it. Since I don't
have any first-hand experience with any RS-422 hardware on
PC's and I've shown exactly how I did my searches, it would
make sense to do your own searches for support on your
card. If you can't find a manufacturers label or any
docs on the card (i.e. you inherited it in "used" condition)
then you're probably out of luck.
</blockquote>
<!-- end body -->
<A name="tag_modem"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<p><em>[We seem to be coming in at the middle of this thread, but I don't see
where the previous might be found. We'll have to make do with
what's been quoted here, Sorry, readers! -- Heather]</em></p>
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
align="left" border="0">ANOTHER MODEM PROB </H3>
<p><strong>From CodeWaRi0r on 18 Aug 1998 </strong></p>
<!-- begin body -->
<em><font color="navy"
><p><strong
>> It sounds like a "winmodem." (These are devices which don't
<br>> support the standard AT command set and which require proprietary
<br>> drivers in order to function. Currently those drivers are only
<br>> available for Windows --- I gather that some of them don't even
<br>> work under Windows NT).
</strong></p>
<p><strong>> The acid test for this is to try to use the modem under DOS (boot
<br>> from DOS and try run a program like Telix). If that also can't
<br>> "see" the modem --- then it's not a real modem; it's a "winmodem."
</strong></p>
<p><strong>> Although I've read rumors about an effort to reverse engineer the
<br>> "Rockwell chipset" (RPI) --- which is the one commonly used in
<br>> these "winmodems" --- I believe that you're only reliable recourse
<br>> for now is to exchange this piece of junk with a real modem.
</strong></p>
</font></em>
<p><strong>nope.. im sure i dont have a winmodem. actually, I have to modems on
my computer .. one winmodem on COM1 and a regular modem by BOCA on
COM3.. ok.. just help me out with one more thing and ill be out of
your hair <IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle"> ok.. ive established that i dont have a winmodem.. i
start up X. run the modem configurer (this program makes a link
between <tt>/dev/modem</tt> and <tt>cua2</tt>.. or so it says... i just select the COM
port and press ok and thats it. Am i missing a step here?)
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>It could also be an IRQ conflict --- on a conventional
PC COM1 and COM3 share IRQ's with COM4 and COM2
respectively.
</blockquote>
<blockquote>I don't know how you're sure that you don't have a winmodem
--- unless it's external, or you've been able to connect
to it under DOS or Linux with standard AT commands.
</blockquote>
<blockquote>However, I'll assume for the moment that this is the case.
</blockquote>
<blockquote>I would leave X completely out of this for now. I wouldn't
use any "modem configurator" (that's just one more piece
of junk between me and the troubleshooting).
</blockquote>
<blockquote>One way to do this testing is to run minicom or C-Kermit
to connect to the modem, Then you should be able to
type AT commands directly to the modem and get responses
back. Before you do this, look at the nodes under the
<tt>/dev/</tt> directory with the '<tt>ls -l</tt>' command. Make sure that
they look something like:
</blockquote>
<pre>lrwxrwxrwx 1 root uucp 5 Jul 13 16:52 /dev/modem -> ttyS2
crw-rw---- 1 root uucp 4, 64 Aug 18 15:17 /dev/ttyS0
crw-rw---- 1 root uucp 4, 65 Aug 18 15:17 /dev/ttyS1
crw-rw---- 1 root uucp 4, 66 Nov 30 1997 /dev/ttyS2
crw-rw---- 1 root uucp 4, 67 Nov 30 1997 /dev/ttyS3
</pre>
<blockquote>.... where the "modem" entry is a symlink to the appropriate
serial port (<tt>ttyS2</tt> for a normal PC's COM3).
</blockquote>
<blockquote>You should also make sure that the permissions on most
of your communications software are such that it is
run by '<tt>root</tt>' (such as <tt>pppd</tt>) or is at least SGID
'<tt>uucp</tt>' (you could chgrp all these to '<tt>modem</tt>',
create a '<tt>modem</tt>' group, etc --- I use '<tt>uucp</tt>' since
that is an older Unix convention).
</blockquote>
<blockquote>So, an '<tt>ls -l</tt>' of your <tt>minicom</tt>,
<tt>kermit</tt>, <tt>uucico</tt>, <tt>pppd</tt>, <tt>chat</tt>,
should look something like this:
</blockquote>
<pre>-rwxr-sr-x 1 root uucp 119280 Nov 30 1997 /usr/bin/minicom
-r-sr-sr-x 1 uucp uucp 395148 Nov 30 1997 /usr/lib/uucp/uucico
-r-xr-sr-x 1 root uucp 632609 Feb 10 1997 /usr/local/bin/kermit
-rwsr-x--- 1 root dialout 83856 Nov 30 1997 /usr/sbin/pppd
-rwxr-xr-x 1 root bin 12224 Nov 30 1997 /usr/sbin/chat
</pre>
<blockquote>Note that <tt>minicom</tt>, <tt>uucico</tt> and <tt>kermit</tt>
are SGID <tt>uucp</tt> --- they don't need higher privileges.
<tt>uucico</tt> is the actual communications engine for the
<tt>uucp</tt> suite --- it's normally only called by the <tt>uucp</tt>
command, but it needs access to some directories (usually
<tt>/var/spool/uucp*</tt> or <tt>/usr/spool/uucp*</tt>) to work properly.
So we make it SUID to the <tt>uucp</tt> user as well as SGID to the
<tt>uucp</tt> group.
</blockquote>
<blockquote>You can ignore all of those details for <tt>pppd</tt> since
it must be run as root (in order to set IP addresses and add routing
entries). Here I've set it to be in the 'dialout' group
--- so that I can restrict who can execute this (thus
limiting who could try to use exploits on <tt>pppd</tt> to gain
'<tt>root</tt>' privileges). This is a simple and far too uncommon
way to narrow the security holes on a system.
</blockquote>
<blockquote>Note that the '<tt>chat</tt>' program gets no special
permissions. It is invoked by pppd which is already running as
'<tt>root</tt>' --- and thus, it needs no "extra" privileges.
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>so i do that, and quit X. I run chat with the following script
</p></strong>
<pre>TIMEOUT 5
"" ATZ
OK ATDT6161038
ABORT "NO CARRIER"
ABORT BUSY
ABORT "NO DIALTONE"
ABORT WAITING
TIMEOUT 45
CONNECT ""
TIMEOUT 5
"ogin:" blah
"assword:" blah
</pre>
<strong><p>i run chat
</p></strong>
<strong><p>$<tt>chat -f /etc/ppp/chatscript</tt> (where i store the above script)
i see linux go:
</p></strong>
<strong><p><code>AT</code></p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>Aha! That's your problem. You aren't supposed to run '<tt>chat</tt>'
directly. You are supposed to run <tt>pppd</tt>, and let <EM>it</EM>
invoke the '<tt>chat</tt>'. This is due to some technical internals
about how file descriptors are inherited.
</blockquote>
<blockquote>The '<tt>chat</tt>' program writes to its '<tt>stdout</tt>'
file descriptor and expects input (modem responses) from it's '<tt>stdin</tt>'
For that to work you have to provide it with suitable
open standard files. One way to do that would be to type:
</blockquote>
<blockquote><blockquote><code
>chat -V "" "ATZ" "OK" < /dev/modem > /dev/modem
</code></blockquote></blockquote>
<blockquote>... which engages in the simplest meaningful dialog that
I know of with a Hayes compatible modem. It simply
"waits for an empty string" (nothing), sends an <tt>ATZ</tt>, and
waits for an "<tt>OK</tt>"
</blockquote>
<blockquote>The <tt>-V</tt> switch here tells '<tt>chat</tt>' to
"be versbose to '<tt>stderr</tt>' which will, in this case, by our
console/terminal.
</blockquote>
<blockquote>On my system that command returns:
</blockquote>
<blockquote><blockquote><code>AT&FS2=255
</code></blockquote></blockquote>
<blockquote>... and an exit value (errorlevel) of <tt>0</tt> (no-error).
This isn't exactly the output I would expect from my interpretation
of the <tt>man</tt> page. But it's close enough (it suggests that my
modem returns this string when it recieves an <tt>ATZ</tt> comment
--- which suggests that this modem is translated <tt>ATZ</tt> into
"AT&F" (return to factory zettings), and setting the <rr>S2</tt>
register to 255).
</blockquote>
<blockquote>If I issue the command:
</blockquote>
<blockquote><blockquote><code
>chat -V "" "ATZ" "OK" < /dev/ttyS3 > /dev/ttyS3
</code></blockquote></blockquote>
<blockquote>... (a serial line with no modem attached) I get no output
and a return error of <tt>3</tt>.
</blockquote>
<blockquote>In any event you need to let pppd start your '<tt>chat</tt>'
command. The way to do that is to provide <tt>pppd</tt> with a
suitable "options" file.
</blockquote>
<blockquote>In my case I have multiple PPP accounts (some with
customers, some with ISP's). So I create an <tt>/etc/ppp/options</tt>
file that just consists of one line:
</blockquote>
<blockquote><blockquote><code>lock
</code></blockquote></blockquote>
<blockquote>... and I create different supplemental options files
that contain the details specific to a given provider.
</blockquote>
<blockquote>For example one looks pretty much like:
</blockquote>
<pre>asyncmap 0
crtscts
defaultroute
mtu 296 mru 296
modem /dev/modem 57600
connect "/usr/sbin/chat -f /etc/ppp/options.myisp"
</pre>
<blockquote>I'll skip the first several lines (you can read the PPP-HOWTO
and/or the <tt>pppd</tt> man pages for details about those) and focus
on the last couple of lines.
</blockquote>
<blockquote>The modem directive tells pppd to use serial line settings
(ioctls?, stty) that's appropriate for a modem. The other
option would be "local" (use a null modem cable or some
sort of network connection). This has purely to do with
how the line is "conditioned" and how the handshaking
lines are handled.
</blockquote>
<blockquote>The <tt>/dev/modem</tt> parameter tells it which device
to open (and thus what file descriptors to pass to the command
that will be invoked via the "<tt>connect</tt>" directive.
</blockquote>
<blockquote>The 57600 is simply the speed to which pppd should should
set the serial line (I presume this is also used at part
of an '<tt>stty</tt>' like function call).
</blockquote>
<blockquote>The last line is the "<tt>connect</tt>" directive. It
tells pppd what command to invoke to deal with the modem.
</blockquote>
<blockquote>So, you then invoke pppd with a command like the
following:
</blockquote>
<blockquote><blockquote><code>pppd file /etc/ppp/options.myisp
</code></blockquote></blockquote>
<blockquote>... this processes the "global" options in /etc/ppp/options
and then the options that you've specifed with the file
directive.
</blockquote>
<blockquote>Many examples I've see specify many of the options one
the command line. For example it's pretty common to
see a command like:
</blockquote>
<blockquote>
<blockquote>
<code>pppd modem /dev/modem 57600 file /usr/local/etc/ppprc
</code></blockquote></blockquote>
<blockquote>... which should be reasonably comprehensible once you
understand that pppd basically interprets all its command line
in the same way as it processes directives in it's options
files. Carefully reading the '<tt>man</tt>' page should clarify
what order and precedence affect the processing of all of
these directives and options. For example, you have to be
sure to avoid any conflicting options <tt>~/.ppprc</tt> (just
get rid of any such file unless you know what you're doing
with it).
</blockquote>
<blockquote>Another simple testing trick is to use 'minicom' to
dial the phone and establish your connection (log in).
Then use the "Quit without Resetting the Line" option
(using the [Ctrl]+[A], [Q] key sequence). This should
dump you out of minicom and back to a shell prompt
<EM>without</EM> disconnecting your modem. (It is then possible
to invoke pppd on that line --- using an alternative version
of the ISP options file without any "connect" directive).
</blockquote>
<blockquote>That trick doesn't work with kermit --- it won't exit
without resetting the communications line. From what
Frank de la Cruz tells me you can't use C-Kermit as a
replacement for 'chat' because of this. Basically he
says it violates some programming standards to do this.
(I still don't understand that --- but it's not currently
a priority to me. If someone understands it and wants
to explain --- write an article and send me a copy).
</blockquote>
<blockquote>but the modem doesnt respond... i know its weird.. but i just dont
think linux knows its there.. is the "linking" i do in X all that's
necessary? or am i missing something?
</blockquote>
<blockquote>The problem is that you haven't understood the PPP-HOWTO.
I can sympathize with that --- I spent quite a few hours
banging my head on it (at least an earlier version of it).
</blockquote>
<blockquote>However, try reading it again.
</blockquote>
<blockquote>There are several GUI and dialog driven frontends to
configure your PPP connection for you. I've never used
any of them (they didn't exist back when I was doing my
head banging). In any event a search of the Linux Software
Map using Boutell's search page
(<A HREF="http://www.boutell.com/lsm">http://www.boutell.com/lsm</A>)
on the term PPP will give a list of several of these and
a couple dozen related samples and utilities. There are
<A HREF="http://www.kde.org/">KDE</A>, Motif, and Tk interfaces
(among others).
</blockquote>
<blockquote>You could try a few of those to see if any of them
works for you. You should also be able to get your ISP
to help. If they refuse to help with Linux/Unix ppp
technical support --- consider getting a new ISP.
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>again sorry to bother u.
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>The question doesn't bother me. No apologies are necessary
for that. If I seemed grumpy, it's because I don't like
to see this sort of "hakkerboyz" text. I don't think it's
cool and I do find it difficult to read. It is only a bit
less offensive than GETTING MESSAGES IN ALL CAPS.
</blockquote>
<blockquote>People who won't take the time to use reasonable punctuation
and spelling in their questions cause me to wonder why I should
take the time to answer them. I'm sure that many don't even
pause to wonder; they just hit the delete key and move on.
</blockquote>
<blockquote>I have no idea how old you are, or why you choose to write
this way. Perhaps you have some very good reasons --- and
perhaps you think I'm some sort of pedantic curmudgeon.
You're welcome to hold and share that opinion (and I'll even
agree with part of it).
</blockquote>
<blockquote>However, one of the few liberties I take in this column is
the opportunity to occasional jump up on my soapbox and
express my opinion. The evidence is that some of my readers
find at least some of my tirades amusing, even (according
to some reports) "inspiring."
</blockquote>
<blockquote>For those that don't like it --- I can only say "Well, I did
at least attempt to answer the question." (I don't remember
of any occasion where I just flamed someone without answering
their question. I just won't say "RTFM" --- I'll at least
say which "FM" to "R").
</blockquote>
<blockquote>Anyway, I hope that the hint about how to invoke '<tt>chat</tt>'
helps. If that doesn't work (and direct invocations
with the redirection as shown, and '<tt>minicom</tt>' tests) all
don't work,
</blockquote>
<!-- end body -->
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>More on Grammar</H3>
<p><strong>From CodeWaRi0r on 18 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>BTW: I apologize for my sloppy spelling and grammer... it's just the
internet talk that does that to you <IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle"> Despite my erronious writing
(I'm sure I spelled that wrong.. LoL), I'm an accompilshed
programmer in C\C++ (including Window's MFC and UNIX), Visual Basic,
Perl, and Assembly languages
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>Thanks. I knew you <EM>could</EM> do it. I do recognize that
particular style of writing as a symptom of too much time
in "chat lounges" (or in IRC depending on your preferences).
</blockquote>
<blockquote>However, it is still difficult to read --- and it still
does say something about the relative importance you
place on a given communication. (Certainly you wouldn't
expect a resume' to be taken seriously if it was written
in this style).
</blockquote>
<blockquote>Incidentally the word is normally rendered as "erroneously."
</blockquote>
<blockquote>If you are an emacs user you can "quick check" a word using
the <tt>M-$</tt> key binding. Since I use '<tt>viper</tt>' mode, which
makes it irritating to get at the <tt>[Esc]</tt> for use as <tt>[Meta]</tt>
I add the following binding to my <tt>.emacs</tt> file:
</blockquote>
<blockquote><blockquote><code>(global-set-key '[f3 ?$] 'ispell-word)
<br>(global-set-key '[f3 ?%] 'ispell-buffer)
</code></blockquote></blockquote>
<blockquote>... which means that the two key sequence: <tt>[F3], [$]</tt>
will check the word at point and <tt>[F3], [%]</tt> will check
the whole buffer.
</blockquote>
<blockquote>(I suspect that vim also has some features for running
<tt>ispell</tt> --- though I've never used any of the IMprovements
of that editor).
</blockquote>
<blockquote>The fact that using emacs (<tt>xemacs</tt>, actually)
gives me '<tt>ispell</tt>' in all of my editing (including in my
favorite mail reader, <tt>mh-e</tt>, and my preferred newsreader,
<tt>Gnus</tt>) is one of the reasons why I use it.
</blockquote>
<blockquote>I personally despise the default emacs key bindings (which I
think are designed to torture the pinky until you're ready to
chop it off). So, I use <tt>viper-mode</tt> (a '<tt>vi</tt>'
emulation package) for the majority of my editing --- and I
supplement it with a fairly long list of custom binding, most of
which start with <tt>[F3]</tt> (the first available function key
that had nothing assigned to it --- <tt>[F1]</tt> was used as a
"Help" prefix and [F2] had some weird two column mode function
bound to it).
</blockquote>
<blockquote>So, I switch buffers with <tt>[F3] [b]</tt> and bring up a
"buffer menu" with <tt>[F3] [B]</tt> (capitalized). I bring up
the '<tt>emacs</tt>' calendar package with <tt>[F3] [C]</tt> (capitalized)
and a "shell-mode" buffer with <tt>[F3] [c]</tt> (lower case ---
for "command"). I check my diary (appointment list) with
<tt>[F3] [D]</tt> (capitalized), and bring up "dired" (file-manager
buffers) with <tt>[F3] [d]</tt> (uncapitalized). I "unsplit" my
display with <tt>[F3] [1]</tt> and split it vertically with
<tt>[F3] [2]</tt> or horizontally with <tt>[F3] [4]</tt>. (The experienced
'<tt>emacs</tt>' buff may note that most of these are functions
that are normally accessed via <tt>C-x</tt> keybindings; a prefix
that I find truly abominable).
</blockquote>
<blockquote>But ... I'm rambling. Some day maybe I'll write an
article on how I use '<tt>xemacs</tt>' --- it may be amusing
to some.
</blockquote>
<!-- end body -->
<A name="tag_notfound"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
><tt>/usr/bin/open</tt> not found</H3>
<p><strong>From Jesus Alejandre on 16 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>I tried to use your solution in "User Shell on Virtual Console 1"
(Linux Gazette issue 30), but the command /usr/bin/open doesnt
exist in my system. I installed it from S.u.s.e. 5.2 , kernel
2.0.33 distribution.
</p></strong>
<strong><p>Could you please tell me where can I find it?. Thank you very much.
Jess Alejandre.
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>It should be one the CD's somewhere. I've got it on
my <A HREF="http://www.suse.com/">S.u.S.E.</A> 5.1 and my 5.2 systems, and
I've seen it on several of my old <A HREF="http://www.redhat.com/">Red Hat</A>
4.x and 5.x systems over the years.
</blockquote>
<blockquote>You can also look under:
</blockquote>
<blockquote><blockquote><code
><A HREF="http://sunsite.unc.edu/pub/Linux/utils/console"
>http://sunsite.unc.edu/pub/Linux/utils/console</A>
</code></blockquote></blockquote>
<blockquote>... which will get you the a "tarball" (rather than
an RPM). This probably contains source code which
you'd compile for yourself. If you'd prefer to avoid
that you could look in the "contrib" directories
at Red Hat, it's mirrors and at S.u.S.E. That might net
you an RPM if you have a strong preference for using
the package manager.
</blockquote>
<!-- end body -->
<A name="tag_tuning"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Tuning X to work with your Monitor</H3>
<p><strong>From Alan Morton on the L.U.S.T Mailing List
on 14 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>I am wondering if anyone on the list has any experience with a vid
card/monitor combination similar to mine, or have any experience
with this particular problem that can either give me some
constructive advice or can point me to some relevent documentation.
</strong></p>
<p><strong>I am using a Jaton 67-P video card with 4 megs of RAM. I am trying
to use it with a HP 4033A monitor. The problem is that whem I use
Xconfigurator (I'm using a RH5.0 distro) irregardless of what it
says about an acceptable configuration, when I start up X it trips
the Power Saving function on the monitor and it goes blank.
</strong></p>
<p><strong>When I use the cntrl-alt-backspace it naturally kills X, plus it
retrips the monitor and my screen begins to reappear. I am making
the assumption that it is engaging some error procedure in the
monitor, which is fine. But I really want to get this working at a
reasonable resolution. If I use a setting of 800x600 and 8 bit
color it works just fine, but that seems a bit wasted on a 21"
monitor.
</strong></p>
<p><strong>I know the monitor will handle a lot because I can use it at
1024x748 in 16 bit color with my Windows NT boot-up. And I have a
friend with an identical monitor running 1280x1024 in 24 bit color
under Win95.
</strong></p>
<p><strong>I don't think the problem is the card because I have been running
it with a 14" Magitronic monitor previously at 800x600 in 24 bit
under both NT and Linux with no problems.
</strong></p>
<p><strong>Any assistance with this will be greatly appreciated.
<br>Alan Morton
</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>The problem you are having is related to the refresh rate that X is
trying to use for the mode you are trying to display. The rate may
be either too high or too low. I am not sure exactly about the
specifics of what needs to be done to change the refresh rate that X
uses, but I'm sure there is a good source of information for
configuring the display properties of X. Hopefully this will narrow
your scope in searching for an answer, because I don't really know
what else would cause this problem. Any other suggestion welcome.
</blockquote>
<blockquote>Configuring X on a system is like a classic "three-body problem."
</blockquote>
<blockquote>You have to get the correct software and libraries all
installed (which any distribution makes pretty easy).
</blockquote>
<blockquote>You have to select the correct "server" for your video card.
This is complicated by the number of video card manufacturers
--- many of whom have many models of video card, often
identified by a stream of very similar sound digits and
letters while using completely different combinations
of chipsets, clock chips, and RAMDAC's (digital to analog
coverters?).
</blockquote>
<blockquote>You have to provide a "tuned" set of video timings. This
is primarily dependent on your monitor.
</blockquote>
<blockquote>Getting all of these things to work together is still a
pain. However, the xf86config, SuperProbe, and Xconfigurator
have helped alot. I've heard that Eric S. Raymond's
Video-Timings-HOWTO has helped alot of people (though I've never
used it myself). I've played with '<tt>vidtune</tt>' (an X program that
allows you to tune your video times after you've gotten
"close enough") --- but it's still a bit mysterious to me.
(How to I get it to write the timings out to a format I can
use in my XF86Config?)
</blockquote>
<blockquote>I usually just use a "hit and miss" approach by looking
through the list of samples in <tt>/usr/X11R6/lib/X11/doc/Monitors</tt>
(or thereabouts). The one on my
<A HREF="http://www.suse.com/">S.u.S.E.</A> box lists about
65 different samples for various monitors. I just play with
them a bit while I hand hack on the <tt>/etc/X11/XF86Config</tt> file
(which is probably the least efficient way of doing it ---
but usually <tt>Xconfigurator</tt> and a good multisync monitor
get along O.K. so I usually don't have to fuss too much).
</blockquote>
<!-- end body -->
<A name="tag_libc5"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>The End of libc5: A Mini-Interview with H.J Lu</H3>
<p><strong>From <em>The Answer Guy</em> on 29 Jul 1998 </strong></p>
<!-- begin body -->
<blockquote>
<br>H.J.
<br>I hate to bother you with a more discussion on this
topic. However, I'd like to have a definitive posting
for the Linux Gazette (I do the Answer Guy column there)
to allay people's concerns about this migration.
</blockquote>
<blockquote>So, I'd like to ask a couple of questions:
</blockquote>
<blockquote>Is there a definitive archive or document on the web that
you feel accurately answers most questions about the
glibc vs. libc 5 controversy?
</blockquote>
<p><strong><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>No. I have posted a few articles from time to time. As far as I
know, glibc 2 is very good now. The only problem it has is some
Linux specific programs use the kernel header files directly. It
won't work with glibc 2. We have to change those programs and
we have to add those missing pieces to glibc 2 if necessary. So far,
everything looks good. RedHat and <A HREF="http://www.debian.org/">Debian</A>
have built their entire Linux on glibc 2.
</strong></p>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>It is my impression that libc.5 and glibc can co-exist
on a system concurrently and transparently. Is that so?
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">Yes.</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0">Are there exceptional cases?</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
<blockquote>All those binaries compiled by <tt>egcs</tt> and <tt>gcc 2.7.2.3</tt>
should be ok. But if you have a C++ binary which uses <tt>libg++</tt> and was
compiled by gcc 2.7.x.x other than 2.7.2.3, it may load the wrong <tt>libg++.so</tt>.
But I don't know if there is a case where you cannot recompile it.
</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>I gather that a couple of the major advantages to glibc
have to do with: support for NIS, thread-safe library
calls, transparent support for the shadow password suite
in the <tt>getpwent()</tt> and related functions, and much easier
compatibility with other GNU sources (without requiring
as much porting effort on the one side nor as much library
maintenance by you, personally, on the other). Is that
all true? Are there other compelling advantages to
glibc over libc.5?
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>How about conforming all those standards, like ANSI C, POSIX,
XOPEN and UNIX98?
</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>I've heard complaints that glibc takes up significantly
more disk space and run-time core (RAM). I've also heard
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>glibc is compiled with -g by default so it does take more disk space.
The harddrive is cheap. I'd like to keep those debug info in library.
In anycase, you can run strip on them. But I won't recommend it unless
you are building a very small Linux installation. As for memory, glibc
2 has more stuff than libc 5. It has to bigger libc 5. I don't call it
libc 6 if it is smaller than libc 5. But Unix has demand paging. Those
unused portions won't be loaded into memory anyway.
</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>that running '<tt>strip</tt>' on it can significantly reduce its
disk footprint. Where can I find a more comprehensive
comparison of the speed, disk space and memory requirements
of the two sets of libraries?
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>We have to pay the price on speed and size for a MT-safe C library.
But there are so many new optimizations in glibc 2. I would say glibc
2 is faster than libc 5. As for disk space, it depends on if you want
to run strip or it. By default, glibc 2 provides much more debug info
than libc 5. With libc 5, when something goes wrong with the C library,
I have to use a speciial C library just to debug it. With glibc 2, I
just run <tt>gdb</tt> on the binary compiled with <tt>-g</tt>. As for
memory requirement, I believe it is the similar to libc 5.
</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>I presume that someone else could (if they wanted) take
up the maintenance and continue to improve <tt>libc.5</tt> (in the
spirit of the GPL) if they really wanted to do so. Is there
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>Sure. Anyone is free to do so.
</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>any argument you would present to, or question you would ask
of someone who was proposing to do this?
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>libc 5 is quite stable. Most of the fixable bugs are fixed. All the new
developments have gone to glibc 2. glibc 2 also has fixed those bugs
which are hard to fix in libc 5. I don't see why we should spend more
time on libc 5.
</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>Last one:
</blockquote>
<blockquote>Now that you're free of libc.5, are there any projects that you
are particularly interested in pursuing (open source or
otherwise)?
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>I have been working on <tt>egcs</tt>/<tt>gcc</tt>, <tt>binutils</tt> and
<tt>gdb</tt> for Linux. I will keep doing so. In the meantime, I am very
interetsed in projects using
C++, thread and distributed technology, something like CORBA. I have
been thinking a new paradigm for Unix. Instead of a C or C++ library,
we use something on the line of CORBA or DCOM.
</p></strong>
<strong><p>Another thing, every program is compiled with <tt>-fPIC</tt> as a shared
library, i.e.:
</p></strong>
<pre># gcc -shared -o ls.so -fPIC ls.c ......
# gcc -o ls ls.so
</pre>
<strong><p>Now, we have both <tt>ls</tt> and <tt>ls.so</tt>. Another program can do
</p></strong>
<pre>int (*ls_main) (int, char **);
void *handle;
handle = dlopen ("ls.so", ...);
ls_main = dlsym (handle, "main");
ls_main (argc, argv);
</pre>
<strong><p>We can also use it instead of expensive
</p></strong>
<strong><p>i<code>system ("ls");</code></p></strong>
<strong><p>It can go with the CORBA/COM idea. That is we define an object oriented
interface for a service, which can be a local shared library or a
different process which can be local or remote.
</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>With your permission I'd like to submit your answers for
possible publication in next month's Linux Gazette (whichi
is available online and distributed under the terms of the
LDP GPL). Please feel to add any comments you like to your
response, (or to tell me to buzz off for that matter).
</blockquote>
<strong><p><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>It is fine with me.
</p></strong>
<blockquote><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>Regardless of your response I'd like to personally express
my gratitude for all the work you've done for Linux over
these last few years. If you're ever in the SF Bay Area,
</blockquote>
<!-- end body -->
<A name="tag_startup"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Where to put 'insmod' and 'modprobe' Commands for Start-up</H3>
<p><strong>From <em>anonymous</em> on 14 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>If it entertains you, a couple of questions:
</p></strong>
<strong><p>Where the bleep should one specify modules to be installed when a
system boots? I can't find it stated directly in any of the books,
maybe <tt>/lib/modules/default</tt> ?
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>There are three ways to do this.
</blockquote>
<blockquote>The simplest is to load and unload the modules as you need
them (thus you find your first 'ifconfig' command and
insert an '<tt>insmod</tt>' or a '<tt>modprobe</tt>' command for your ethernet
card before it; you change your ppp startup script to load
the ppp module, etc).
</blockquote>
<blockquote>Another way is to put all of you '<tt>modprobe</tt>' or '<tt>insmod</tt>'
commands in some file like <tt>/etc/rc.d/init.d/modules</tt> and
call that from one of your early rc scripts. You can trace
through these rc script by starting with the inittab which
generally has a set of references like:
</blockquote>
<pre># /etc/inittab
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l6:6:wait:/etc/rc.d/rc 6
</pre>
<blockquote>... all of these call the <tt>/etc/rc.d/rc</tt> script -- with
a parameter to specify the runlevel, of course.
</blockquote>
<blockquote>So you look in that script and insert a call to your
<tt>/etc/rc.d/init.d/modules</tt> in the appropriate block <EM>or</EM>
you put a set of symlinks under each of the <tt>rcX.d/</tt>
directories that correspond to each of the runlevels where
you want these modules loaded. You'll want to prefix
any of those symlink names with the <tt>SXX</tt> --- using a low
number like <tt>S01modules</tt> --- to make sure that the "<tt>modules</tt>"
script is called very early in the boot process, before
anything that depends on them is called.
</blockquote>
<blockquote>The difference between '<tt>insmod</tt>' and '<tt>modprobe</tt>' is that
'<tt>insmod</tt>' is a somewhat simpler program. You usually have
to specify a full path with it -- and you much load modules
in the correct order. '<tt>modprobe</tt>' relies an a modules
dependency tree to find and load the specified module *and
any that it requires*. To prepare the dependency tree you
must run '<tt>depmod -a</tt>' at least once after building and
installing any new kernel or modules. Some distributions
will run a '<tt>depmod -a</tt>' command as part of the normal
startup sequence.
</blockquote>
<blockquote>Yet another way, ultimately the one that is most
convenient, is to run <tt>kerneld</tt> (2.0.x) or <tt>kmod</tt> (2.1.x and
eventually 2.2). These kernel module loaders will dynamically
load and unload modules and their dependents. This is
similar to the way that Solaris does it (although it doesn't
seem to be optional under Solaris).
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>The "multiple configuations" thing in linuxconf
(control-panel/system) seems to be reasonably broken; are you
writing about any of this?
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>I played with linuxconf only briefly. It seemed like
it was often trying to do "too much" and I'd've preferred
a mode where I could just use it to spit out configuration
files and instructions on where I should put them.
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>Boy does the world need your book; the docs that are there seem
pretty hopeless...
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>They can be frustrating. I try to help because I figure
I've beat my head against that wall enough for any ten
people.
</blockquote>
<!-- end body -->
<A name="tag_clock"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>The BIOS Clock, Y2K, Linux and Everything</H3>
<p><strong>From Ward, David on 12 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>How does linux keep track of "real time". Does it get its
information from the BIOS system clock, or can it keep track of time
by setting the correct time zone, and setting the time, even though
the BIOS is incorrectly reporting the "real time"?.
</p></strong>
<strong><p>Thanks,
<br>David Ward
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>Linux's initial clock settings (at boot up) are from
the BIOS. However, the kernel internally keeps its
own time thereafter.
</blockquote>
<blockquote>It turns out that there is an immense about of work that
is done on system clock synchronization over the Internet
and among Unix systems.
</blockquote>
<blockquote>I'm assuming that you're concerned about some specific
systems that have a buggy BIOS --- that you know will
report invalid dates after the year 2000.
</blockquote>
<blockquote>To detect this condition you could use a script like:
</blockquote>
<blockquote><blockquote><code>CURRENT_YEAR=$( date +%Y )
<br>FILE_YEAR=$( find /etc/README -printf "%TY" )
<p>
<br>[ $CURRENT_YEAR -eq $FILE_YEAR ] || {
<br># We've suffered a backslip: the current 4 digit
<br># year arimetically precedes the date on our
<br># marker file
<br>logger "Backslip in Time Detected ... Fixing"
<br># Recover here....
<br># After recovery and during shutdown, when
<br># the clock is in a known good state, we can
<br># touch the marker file to unsure that it's
<br># date is periodically updated.
<br>}
</code></blockquote></blockquote>
<blockquote>... note that I'm using the <tt>$()</tt> (Korn/bash) construct
rather than the equivalent "backtick" operators. This is
to avoid ambiguity; the effect is the same.
</blockquote>
<blockquote>One way to ensure that you have the correct date set on
your system is to use the '<tt>ntpdate</tt>' command around boot
time. This sets your clock based on that of another
system. Oddly enough, though this command is included on
many Linux systems, there often seems to be no man page
installed for it. However I've read the man pages at
(<A HREF="http://www.eecis.udel.edu/~ntp"
>http://www.eecis.udel.edu/~ntp</A>) --- and they don't
make things any easier.
</blockquote>
<blockquote>With all due respect to Mr. Mills (one of the key figures
in the NTP system) these pages (man and web) look like they
were written for a federal funding grant. A simple HOWTO
would be nice. (Maybe I'm just stupid but these pages seem
to talk about everything <EM>other than</EM> how does a typical
home or SOHO sysadmin configure their systems to have the
correct time).
</blockquote>
<blockquote>In any event here's the command I use to initially set
my date:
</blockquote>
<blockquote><blockquote><code
>/usr/sbin/ntpdate -s ntp.ucsd.edu ns.scruz.net ntp1.cs.wisc.edu
</code></blockquote></blockquote>
<blockquote>... this calls the ntpdate command and lists three time
servers (stratum-2 in this case). In the complicated world
of NTP the "stratum" of a clock is a measure of how "far" it
is from the NIST atomic clocks which are used as the international
standards. In essense it is a measure of the time server's
"authority" (as in 'how authoritative is that answer'). It
isn't actually a measure of how "accurate" that clock is, just
how many hops are between it and the top of the hierarchy.
</blockquote>
<blockquote>Thus my system (betelgeuse) becomes a "stratum-3" NTP server
after I refer to these "stratum-2" servers. It is the system
that I use to set the time for the rest of the house. After
the time is initially set I periodically re-run this command
to reset it. It reports to me the adjustment that it makes
(typically under one second).
</blockquote>
<blockquote>This is <EM>NOT</EM> recommended practice.
(Mixing <tt>ntpdate</tt> and <tt>xntpd</tt>
on a system). However, in my case, I don't want to configure
my <tt>xntpd</tt> to refer to those same servers since it would mean
that my ISDN router would fire up an unnecessary connection to
the Internet every twenty minutes round the clock. Since I
have no easy way to prevent this (the ISDN router I'm using is
a separate box) I choose do use my method.
</blockquote>
<blockquote>If you have a full time connection to the Internet then the
best solution is to use the <tt>xntpd</tt> (extended Network Time
Protocol Daemon) to keep your system clocks in sync with a set
of time servers. I'd set up one or two systems on your
'perimeter' network (the one that's exposed to the Internet
--- assuming you have a firewall). Then I'd have the rest
of your systems use that (or those) as their time reference.
</blockquote>
<blockquote><tt>xntpd</tt> also includes support for a couple of dozen GPS and
radio clock devices. These range from a couple hundred
to a few thousand dollars (and typically connect to your
host via a serial line).
</blockquote>
<blockquote>In all cases <tt>ntpdate</tt> and <tt>xntpd</tt> use
sophisticated protocols to measure latency and network communications delays and
to account for deviations between the reference servers.
You're pretty well guaranteed sub-second accuracy when you use them.
</blockquote>
<blockquote>In some versions and configurations, the NTP suite supports
cryptographic integrity preservation methods, to prevent
spurious and hostiles changes to your network time references.
</blockquote>
<blockquote>The web pages I referred to above does have a wealth of
details about the protocols and the suite. If you can manage
to decode it into a set of simple instructions for us
"tape apes" I'd love to see it written up as a HOW-TO.
Perhaps the subscribers to the
<a href="news://comp.protocols.time.ntp">comp.protocols.time.ntp</a>
newsgroup might be more helpful.
</blockquote>
<blockquote>(My e-mail exchange with Mr. Mills on this issue was not
terribly helpful).
</blockquote>
<blockquote>There is one existing mini-HOWTO that could be expanded
to suit the bill:
</blockquote>
<blockquote>
<dl><dt>Clock Mini-HOWTO:
<dd><A HREF="http://www.ssc.com/linux/LDP/HOWTO/mini/Clock.html"
>http://www.ssc.com/linux/LDP/HOWTO/mini/Clock.html</A>
(written by Roy Bean).
</dl>
</blockquote>
<blockquote>... it only contains a few words about <tt>xntpd</tt>.
</blockquote>
<blockquote>Also, someone once told me about a GPS reciever that was
very inexpensive. It had no display, only a DB-9 serial
connector. If anyone out there knows of a reliable source
for these, I'd like to know about it, and I'll be happy to
publish the URL. I wouldn't mind paying $100 for a good
time source --- but two or three hundred is just too much
for my applications.
</blockquote>
<!-- end body -->
<A name="tag_ping"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Conditional Execution Based on Host Availability</H3>
<p><strong>From the L.U.S.T Mailing List on 07 Aug 1998 </strong></p>
<!-- begin body -->
<pre>#!/path/to/perl
$ping = `ping -c 1 10.10.10.10`;
exec ("program") if $ping =~ /100\% packet loss/;
</pre>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>What's wrong with a simple:
</blockquote>
<blockquote><blockquote><code
>ping -c 1 $target && $do_something $target || $complain
</code></blockquote></blockquote>
<blockquote>... where you fill <tt>$do_something</tt> and <tt>$complain</tt> with
commands that you actually want to run on success or failure
of the '<tt>ping</tt>'.
</blockquote>
<blockquote>That's what shell "conditional execution operators"
(<tt>&&</tt> and <tt>||</tt>) are <EM>for</EM> after all.
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0">or something similar with a shell script...
or, a quick socket program (probably a <EM>little</EM> easier on the system)
<br>john
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0">I don't know why any other socket operations would be
"easier on the system" than a single '<tt>ping</tt>' (ICMP echo request).
</blockquote>
<em><font color="navy"></blockquote>
<blockquote>> Hi, </blockquote>
<blockquote>> I'm looking for a program that can ping a host, and based on whether or not
<br>> the host is unreachable execute a program. Anyone know of something like
<br>> this, (or how to write one...)?
</blockquote>
<blockquote>> Thanks for any help.
<br>> -Corey
</blockquote>
</blockquote></font></em>
<!-- end body -->
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Failover and High Availability for Web Servers</H3>
<p><strong>From L.U.S.T List on 12 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>Re a command like: </p></strong>
<p><strong><code>ping -c 1 $host && do_if_up || do_if_unreachable_or_down
</code></strong><p>
<em><font color="navy">
<strong><p>> The orginal poster asked a very simple question with
<br>> a very simple answer. He (or she) did not go into any
<br>> details about his (or her) requirements.
</p></strong>
</font></em>
<p><strong>Jim,
</strong></p>
<p><strong>Thanks for your spirited post. It made my morning... <IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle"> It's a
sure bet that if you ask a bunch of technical guys a simple
question, you're going to get about 10 different, complicated, and
lengthy answers.
</strong></p>
<p><strong>But, we do live in the real world, and the simplest answer is often
the best. Although I liked John Lampe's perl script because of its
flexibility, I think I'll be using the shell conditionals that you
proposed.
</strong></p>
<p><strong>In case you're curious, here's what I actually want to do... I have
a web server over here, and it's pretty important that it remains
up. PC's are cheap, so why buy one when you can have two for twice
the price? <IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle"> I use IP aliasing for my important machine names,
"www" "mail" etc. I'd like the backup machine to ping the primary
machine. Should the primary machine stop responding, I'd like the
backup machine to run another script and pick up the important
aliases. As soon as the primary machine goes back up, the secondary
machine will drop the aliases and go back to its "waiting" state...
</strong></p>
<p><strong>The only part of this little mess I didn't know how to do was
execute a script based on the result of a ping... So that was all
that I asked. <IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle"> Maybe next time I'll just lay out the whole thing
so nobody starts guessing.
</strong></p>
<p><strong>Anyhow, thanks to everyone who offered advice. I'm now able to
complete this project.
</strong></p>
<strong><p>-Corey
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>This set of requirements is pretty common --- common enough
to have a name: "failover"
</blockquote>
<blockquote>I'd suggest that you assign each of these two systems
<EM>two</EM> IP addresses (one on each can be from RFC1918 ---
something like <tt>192.168.1.*</tt>). We'll call that the "control
address" and the one that the web server is on the "service
address." Now, when you detect a failure on the service address
you take it over (address assumption). You can then
get messages from the control address to let your failover
host know that the other system is back up and running
--- which is when you relinquish control of that address.
</blockquote>
<blockquote>Naturally you can expect some discontinuities in sessions that
were running at failover point. Luckily normal HTTP is
pretty robust and stateless --- so it should be O.K. for that.
If you are running complex systems of CGI scripts which maintain
state via local temp files, you might have some problems with
this simple failover approach.
</blockquote>
<blockquote>Look for the "High Availability HOWTO" for some other ideas
on this.
</blockquote>
<blockquote>In addition I recommend that you look at the <tt>panic=</tt> kernel
parameter and that you consider running your web servers
out of your inittab (so that 'init' will automatically
respawn them as necessary). You can also consider configuring
the built-in watchdog support (re-compile your kernel) and
even installing a hardware watchdog timer card.
</blockquote>
<blockquote>A WDT (watchdog timer) is basically a "deadman's switch" for
your computer. Once initialized it must be updated periodically
(by the kernel or some daemon) or it will trigger the reset
line on your system bus.
</blockquote>
<!-- end body -->
<A name="tag_accounts"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>SysAdmin: User Administration: Disabling Accounts</H3>
<p><strong>From Glenn Jonsson on 05 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>Answerguy,
</p></strong>
<strong><p>I'm doing a course on unix administration, unfortunatly i don't
recall being taught to disable a user, I was hoping you would be
able to tell me how to do this?
</p></strong>
<strong><p>Thanks
<br>Glenn
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>I suppose you could disable a user by taking a sledgehammer
or other LART to his or her kneecaps (least gruesome among
many means that come to mind). However, I presume the intended
question at hand was:
</blockquote>
<blockquote>"How does a Unix/Linux sysadmin disable a user's
<EM>account</EM>?"
</blockquote>
<blockquote>Now, I should preface this answer with a bit of a flame
(more of a spark, really): This is not the "do-your-homework"
line. When you get an assigment as part of your coursework
you've either been presented with the information needed to
answer the question --- or you're expected to know where to
find that information (how to do the research).
</blockquote>
<blockquote>So, before I answer this question let me answer the meta-question:
</blockquote>
<blockquote>"How does a sysadmin find out how to perform routine
user and group management operations on his systems?"
</blockquote>
<blockquote>One way is to look for commands that relate the operation,
to find out what might be '<tt>apropos</tt>' --- so we issue the
'<tt>apropos</tt>' command (or '<tt>man -k</tt>' --- keyword search command).
</blockquote>
<blockquote>Since this relates to a user's account let's try:
</blockquote>
<blockquote><blockquote><code>man -k account
</code></blockquote></blockquote>
<blockquote>On my system that gives me two commands:
</blockquote>
<pre>userdel (8) - Delete a user account and related files
usermod (8) - Modify a user account
</pre>
<blockquote>These and many others will show up when we issue:
</blockquote>
<blockquote><blockquote><code>man -k users
</code></blockquote></blockquote>
<blockquote>... and '<tt>man -k login</tt>' will give us just about the right
number of other alternatives.
</blockquote>
<blockquote>However, '<tt>usermod</tt>' sounds promising. Looking at the man
page for usermod and searching on the word "disable" leads be to
the following paragraph:
</blockquote>
<pre>-f inactive_days
The number of days after a password expires until
the account is permanently disabled. A value of 0
disables the account as soon as the password has
expired, and a value of -1 disables the feature.
The default value is -1.
</pre>
<blockquote>... so that's one way to do it. If we near the end of the
man pages we'll often find a "SEE ALSO" section which will
point us to related man pages. So we look at <tt>passwd(1)</tt>
(the section/chapter 1 command '<tt>passwd</tt>') and search on disable
and find:
</blockquote>
<pre>Account maintenance
User accounts may be locked and unlocked with the -l and
-u flags. The -l option disables an account by changing
the password to a value which matches no possible
encrypted value. The -u option re-enables an account by
changing the password back to its previous value.
</pre>
<blockquote>... so that's method number two.
</blockquote>
<blockquote>This note about "changing the password to a value which
matches no...." sounds in intriquing. Technically it is
using the wrong terminology since passwords in the <tt>/etc/passwd</tt>
file are technically not "encrypted" --- they are "hashed"
using a cryptographically strong algorithm (DES by default, MD5
or others on some systems). The distinction is lost on most
writers and it is a bit longer to explain --- but the way that
DES hashing of a password under Unix works is that the password
and a "salt" (a random 12 bit value) are used as a "key" to
"encrypt" a string of ASCII NUL's using the DES (data encryption
standard --- a 20 year old U.S. mandated encryption system derived
from IBM's "Lucifer" research). The result value is expressed as
a subset of the printable characters with the "salt" prepended to it.
</blockquote>
<blockquote>(The "salt" exists simply to make "dictionary attacks" more
expensive --- computationally and in terms of storage. It
means that the "crack-er" has to have about 4000 different
hashes for every word in his or her 'crack' dictionary).
</blockquote>
<blockquote>One of the properties of DES that made it attractive for
commercial deployment is that that it is highly resistant
to "known plaintext attacks." That means that it was
computationally infeasible to recover the key even if one
had arbitrary samples of the plain text (our string of NUL
characters in this case) and the crypt text (the hashed form of
the password from the <tt>/etc/passwd</tt> file).
</blockquote>
<blockquote>There are two reasons why this, technically, is not being
used for "encryption." First, is a matter of semantics; if
I know the plain text (the string of NUL's) then I'm not
"encrypting" anything becuase I'm not "hiding information."
I am "using cryptographic protocols and algorithms" for
other purposes (such as authentication, digital signatures,
etc). The other reason is more technical and pedantic. Conceivably
there might be multiple keys (passwords) that encrypt a string
of NUL's into the same hash. This is a defining property of
hashes (checksums, CRC's, etc). You can verify that there is
a given "message" has a given likelihood of being valid
(you can measure its probability of integrity) --- but you can
not definitively say that a given specific message was <EM>the</EM>
same one that generated a given hash. (Given other constraints
on the use of DES for Unix passwords it's possible to try all
1 to 8 character combinations to detect collisions --- but that
is a different matter).
</blockquote>
<blockquote>In any event, given an alleged password the '<tt>login</tt>' program
(or the <tt>xdm</tt>, <tt>xlockmore</tt>, POP/IMAP daemon, or PAM module, etc)
will attempt to encrypt a string of NUL's with it (and the
"salt") and compare the resulting hash to the one stored in the
<tt>/etc/passwd</tt> or the <tt>/etc/shadow</tt> file. (Generally this is done
via the '<tt>crypt(3)</tt>' library call). There are minor differences
in the details (particularly on '<tt>shadow</tt>' vs. non-shadowed systems)
but that's the gist of it. If the hashes match than the user
is presumed to have entered the correct password.
</blockquote>
<blockquote>If we follow another cross-reference from the <tt>passwd(1)</tt>
man page we might find a list of characters that cannot be
generated by the <tt>crypt(3) function</tt>. Actually we'll find a
list of characters that <EM>can</EM> result from the operation and
a bit of thought about that (taking the complement) will
show us some characters that will never work.
</blockquote>
<blockquote>Now, the Linux man pages don't just come out and say this
but logically we can see that we could use the following
procedure to "manually" disable an account:
</blockquote>
<blockquote>
<ul><li>Edit the <tt>/etc/passwd</tt> ('<tt>vipw</tt>' command)
(or the <tt>/etc/shadow</tt>, as appropriate)
<li>Find the user.
<cwliblockquote>Insert an '*' into the the password field
(i.e.prepend the password has with an asterisk)
</ul></blockquote>
<blockquote>... and it makes sense that <EM>no</EM> password will <em>ever</em>
result in a matching hash. Thus the user will be locked out
of direct logins. To re-enable the account *with the same
password it used to have* just remove the asterisk. That's
why we don't overwrite the passwd --- then we'd have to
go through extra work to securely re-enable the password and
get the user's new password set. (Most organizations are
quite sloppy about this procedure --- sending initial passwords
over e-mail, setting them to well-known and easily guessed
values, etc. I recommend much better protocols).
</blockquote>
<blockquote>Now, I have a confession to make: I didn't figure this all
out on my own. I didn't read all of these man pages. I
learned about the "prepend with an asterisk" trick from other
sysadmins. It was so long ago, I really don't remember where
I saw it first. It might have been netnews. It might have been
over someone's shoulder. Who knows.
</blockquote>
<blockquote>The point here is that you should find some of those sysadmins
to "hang out" with. To be an effective sysadmin you need to
become part of a sysadmin community. You and your classmates
should probably form such a community and work together ---
there's too much in this field for anyone to "know it all"
(as a perusal of my back issues will sure prove with regards
to me). The most organized and widespread community of
sysadmins would be SAGE (the "System Adminsitrator's Guild"
--- the 'e' is silent). Look at
<A HREF="http://www.usenix.org/sage">http://www.usenix.org/sage</A>
for details.
</blockquote>
<blockquote>Of course none of this is to suggest that you should neglect
your textbooks. There are two standard textbooks on systems
administration today:
</blockquote>
<blockquote>
<dl><dt>Unix System Administration Handbook, 2nd Edition
<dd>by Evi Nemeth, Trent R. Hein, Scott Seebass and
Garth Snyder
<br>(Prentice Hall, 1995, ISBN 0-13-151051-7)
<br>Known as the "cranberry book."
<dt>Essential System Administration, 2nd Edition
<dd>by Aeleen Frisch
<br>(O'Reilly & Associates, 1995, ISBN 1-56592-127-5)
<br>... the "armadillo book"
</dl>
</blockquote>
<blockquote>... I'm working on one that I hope will go well beyond these
--- although it will appear as a "Linux" title.
</blockquote>
<blockquote>Of the two Frisch's work tends to give a more "step-by-step"
HOWTO approach to these things --- so I'd look in there
(indeed I tried to review it so I could remind myself of
what she says --- but my copy must be out on loan somewhere).
</blockquote>
<blockquote>Glancing in the cranberry book's index I find no entry
under "accounts" and "users" refers me to "logins" where
I find "disabling" on pp. 95 & 95:
</blockquote>
<blockquote>Occasionally, a user's login must be temporarily
disabled. Before networking invaded the UNIX world
we would just put a star in front of the encrypted
password, making it impossible for the user to log in.
However the user could still log in across the network.
These days we replace the user's shell with a program
that prints a message explaining why the login as been
disabled and provides instructions for rectifying the
situation.
</blockquote>
<blockquote>There is no further explanation of this at that point ---
and they don't cover a number of other issues related to
the situation.
</blockquote>
<blockquote>They are, of course, referring to the fact that this
user might have a <tt>.rhosts</tt> file that permits them access
to their account without a password. Their approach is
<EM>part</EM> of a solution --- but it is incomplete.
</blockquote>
<blockquote>In the <em>Linux System Administration Handbook</em>
by Mark F. Komarinski and Cary Collett they go into a bit more detail
(p. 24) but show a bit less experience:
</blockquote>
<blockquote><blockquote>If you want to disable a user account (that is,
prevent the user from logging in again), replace the
password in the <tt>/etc/passwd</tt> file with an * or some
other character. Since the * isn't a valid encrypted
password, there is no password that will allow you to
log into that account (2).
</blockquote></blockquote>
<blockquote>... no notion of re-enabling the account with its old
password here. We've replaced it.
</blockquote>
<blockquote>Komarinski and Collett also mention that the account can
receive mail --- but doesn't mention that there may be
other forms of access that are possible by this "disabled"
user. They miss the same things that Nemeth et al
gloss over --- and a bit more.
</blockquote>
<blockquote>A few of the problems with just knocking out the password
--- and changing the shell:
</blockquote>
<blockquote>You might have various other services, like <tt>ssh</tt>,
that don't require a password.
</blockquote>
<blockquote>Their <tt>.forward</tt> file might route their mail through
a script or customer filtering program (like <tt>procmail</tt>).
That script could do anything that they could do
under their UID --- including opening up some sort of
connection to some system to which they still have
access and allowing them to have interactive access
to a shell. (I don't know of a tool that does this
--- but I know it's possible and I could probably
cook one up in a few hours using '<tt>netcat</tt>' and/or
'<tt>expect</tt>' --- there's probably a set of "warez" that
does this for you.
</blockquote>
<blockquote>They might have started a daemon. This might wake
up periodically and change their password and shell
back to some setting (we didn't prevent their UID
from running the <tt>chsh</tt> and <tt>passwd</tt> commands, perhaps
via an '<tt>expect</tt>' or a <tt>Perl/comm.pl</tt> script).
</blockquote>
<blockquote>They might leave in '<tt>cron</tt>' or '<tt>at</tt>' jobs
to periodically renable their access or as a logic bomb.
</blockquote>
<blockquote>If their directory was on a writable NFS volume and they
can get at any of the hosts that are trusted by that
NFS server ---- they can put in new <tt>.forward</tt> and
other "magic" files to do these sorts of things.
</blockquote>
<blockquote>There might be other mechanisms that I don't even know
about. In fact there almost certainly are.
</blockquote>
<blockquote>Many of these won't apply to many hosts. However they should
all be considered.
</blockquote>
<blockquote>One potential method would be to remove their line from the
<tt>/etc/passwd file completely</tt>. Perhaps you'd save it in a
special file so you could restore it later. I don't
like that approach since it leaves their files as 'orphans'
(an <tt>ls -l</tt> command will show numeric ID's for the ownership
and they will be found by a '<tt>find -nouser</tt>' command).
</blockquote>
<blockquote>So, the minimum I recommend to disable an account is:
</blockquote>
<blockquote><ul>
<li><EM>star</EM> out the password.
<cwliblockquote>Change the shell to a <EM>binary</EM> such as
<tt>/usr/sbin/nologin</tt>
--- DO NOT USE A SHELL SCRIPT FOR THIS! I'd also
recommend not linking it against any standard libraries
--- it should use a few direct <tt>write()</tt>'s and
one <tt>exit()</tt> system calls and that's it!
(Various magic environment
variables are used by most any shell and by the
standard I/O libraries --- these can sometimes be
overflowed or subverted).
<li>Change the user's home directory to /home/.graveyard
<li>Remove any 'cron' or 'at' jobs for that user (or
review them thoroughly, if there's some reason to
retain them).
<li>Kill all processes owned by that user. (Manually
go through a ps listing or use a command like:
<blockquote><code>ps -u | while read user pid rest; do
<br>kill $pid; done
</code></blockquote>
</ul>
</blockquote>
<blockquote>Using PAM you can do other things, in addition to this.
For example you can use the <tt>listfile.so</tt> (module) to check
a magic file in <tt>/etc/</tt> (one that you create for yourself)
with the "sense=deny" parameters.
</blockquote>
<blockquote>Another thing I personally recommend (at least optionally)
is to scour your filesystems for files owned by this user
--- move them all into a "graveyard" <tt>.tar</tt> file.
</blockquote>
<blockquote>You can use a command like:
</blockquote>
<blockquote><blockquote><code
>{ cd / && find . -user $GOING \
<br>| tee /root/tmp/scourge.$$ \
<br>| tar cTzf - /home/.graveyard/$GOING.tar.gz } \
<br>&& cat /root/tmp/scourge.$$ | xargs rm -f \
<br>cat /root/tmp/scourge.$$ | xargs rmdir 2> /dev/null
</code></blockquote></blockquote>
<blockquote>... this is intentionally simplified (I usually do this by
hand since I have reason to go through a disabled users files
to re-assign them to other users. That's appropriate for
former or suspended employees while it wouldn't be in most
educational or ISP environments).
</blockquote>
<blockquote>The point of this process is to create a "graveyard" file
that contains <EM>every</EM> file that this user owned. I remove them
(dangerous if they used degenerate filenames --- this part
I'm glossing over since I usually manually look over the list to
catch them and I suggest running a 'skulker' to warn you about
'weird' filenames anyway).
</blockquote>
<blockquote>In most cases I don't recommend re-using user names (for
several months at least) or UID's (until you've "wrapped around"
on the UID's). This is a complex issue, but it really amounts
to avoiding the confusion when you restore from backups, or
encounter other files (perhaps members from .tar files)
etc. This is another case where the standard practice for
ISP's and educational institutions is necessary quite different
from business and government sites (typically the turn over
in ISP's and at colleges, etc, is far to quick to worry about
UID re-use after about one fiscal quarter).
</blockquote>
<blockquote>Note: there may be other things you'll have to do in sites
that use NIS/NIS+ (make sure you update the account entry in
the master yp maps), and in Kerberos realms (remove their
credentials on the KDC). I don't know all the details of
these.
</blockquote>
<blockquote>Hopefully I've made some important points here:
</blockquote>
<blockquote>Read the man pages. (I have never left it at
RTFM --- I prefer to tell you which M to F'ing
R).
</blockquote>
<blockquote>Look beyond the first answer. If you'd stopped
at the <tt>usermod -f 0</tt>, you'd be stumped at the
first box you came to that didn't have the shadow
suite installed, or that had a different
implementation. Likewise with the <tt>passwd -l</tt> (which
I think is not supported in the PAM suite that came
with <A HREF="http://www.redhat.com/">Red Hat</A> 5.1).
</blockquote>
<blockquote>Knowing about "star-ring out" the password is pretty
portable --- it works with DES, MD5, and "Big-DES",
at least. HOWEVER, you have to check on each new
version of UNIX that you encounter! Try it on a test
account and make sure you method works. Tomorrow
someone may implement a Unix passwd scheme that uses
SHA-1 (the NIST secure hashing algorithm) in some
way --- possibly with a bug --- that ignores the
"*'s." A minute's test on each new system is probably
worth a professional sysadmin's time.
</blockquote>
<blockquote>Look beyond the initial question. It sounds like
you were told to just stop the user from "logging in"
--- which might lead to an incomplete solution (prevent
<EM>password authenticated</EM> logins). If the requirement
is <EM>disable the account</EM> then perhaps you need to do
more than merely prevent password authentication.
</blockquote>
<blockquote>This last point is crucial. Just knowing how Unix and Linux
work is not enough. Knowing that many sites have the r*
(<tt>rsh</tt>, <tt>rlogin</tt>, et al) utilities enabled, and knowing that
a <tt>.forward</tt> file can be used to run arbitrary shell scripts
with arbitrary side effects; these go beyond just knowing
how Unix works. More importantly you have to think about
the implications of these things, and know people who've
experienced some of them.
</blockquote>
<blockquote>Reading the threads on <a href="news://comp.unix.admin"
>comp.unix.admin</a> for a few months will
help quite a bit with that. Netnews for all the bad rap
that it takes and all of the spam it endures, is still the
largest set of open, ongoing technical discussions in the
world. The regulars in comp.unix.admin are particularly helpful
<EM>UNLESS YOU EXPECT THEM TO DO YOUR HOMEWORK</EM>.
</blockquote>
<blockquote>Finally: it's more important that you know *how to find
answers* than how to perform a specific operation. It is even
more important that you learn how to ask the right questions.
</blockquote>
<blockquote>This goes beyond the nitpick (disabling the user vs. his or her
account) --- and asking "disable access to <EM>which services</EM>"
(which requires some understanding of all of the services and
forms of access that are available on the system at hand.
</blockquote>
<blockquote>Anyway, good luck on your studies.
</blockquote>
<!-- end body -->
<A name="tag_lilo"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Articles on LILO Saves Life?</H3><p><strong>From Erik Liles on 07 Aug 1998 </strong></p>
<!-- begin body -->
<p><strong>Thank you! I just install Linux on my PC and LILO was corrupted.
You are a life saver! Thanks again!
</strong></p>
<p><strong>Erik Liles</strong></p>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28"
border="0" lign="bottom">You're welcome. I presume that this is in
response to one of the many back issues where I've described various
scenarios involving LILO.
</blockquote>
<blockquote><em>[Some of the more recent Answer Guy notes about LILO:
<ul>
<li>30: <a href="http://www.ssc.com/lg/issue30/tag_lilostop.html"
>Installed on a Secondary SCSI HD: Lilo Stops at LI</a>
<LI>29: <a href="http://www.ssc.com/lg/issue29/tag_lilo.html"
>Removing Lilo from a multi-boot machine</a>
<LI>20: <a href="http://www.ssc.com/lg/issue20/lg_answer20.html#lilo"
>LILO</a> and
<a href="http://www.ssc.com/lg/issue20/lg_answer20.html#lilo2"
>More on LILO</a>
<LI>19: <a href="http://www.ssc.com/lg/issue19/lg_answer19.html#lilo"
>Weird LILO Problems</a>
</ul>
He's not the only one who's written something useful about LILO, though.
If you want more, check out the Search Linux Gazette feature at the bottom
of the <a href="http://www.linuxgazette.com/">main index</a>. -- Heather]
</em></blockquote>
<!-- end body -->
<A name="tag_NDS"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Novell NDS Support for Linux</H3>
<p><strong>From ac in the</strong>
<a href="news://comp.unix.questions">comp.unix.questions</a>
<strong>newsgroup on 23 Jul 1998 </strong></p>
<!-- begin body -->
<STRONG><P>Mr Dennis,
<BR>Does the new version of red hat linux support
<a href="http://www.novell.com/">Novell</a>'s NDS.
</p></strong>
<STRONG><P>-AC-
</p></strong>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28" border="0" lign="bottom"
>Support what aspects or services of NDS?
</blockquote>
<BLOCKQUOTE>Do you mean the user account management and authentication?
</blockquote>
<BLOCKQUOTE>I've heard of a PAM module that allows one to authenticate
(user) against an NDS domain (using a Novell or compatible
server). I don't know where that is, but I'm sure there are
archives of the PAM (pluggable authentication modules) mailing
list. I think <A HREF="http://www.redhat.com/">Red Hat</A> was hosting
the PAM list and providing the archive and search space for it for awhile,
so I'd start there.
</blockquote>
<BLOCKQUOTE>Are you referring to the ability to ncpmount Netware 4.x
filesystems?
</blockquote>
<BLOCKQUOTE>I have no idea.
</blockquote>
<blockquote>Generally I'd suggest
<A HREF="http://www.caldera.com/">Caldera</A> OpenLinux (Standard?) for any
interoperability with Netware. They have the exclusive
commercial implementation of the Netware NDS and bindery
client code (which is apparently licensed such that they can't
make it freely available).
</blockquote>
<!-- end body -->
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>NDS (Netware Directory Services) for Linux: Clients and Servers</H3>
<p><strong>From Dave Kauffman on 07 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>Do you know if the NDS client is now free?
</p></strong>
<strong><p><A HREF="http://www.caldera.com/">Caldera</A> just released their
Netware for Linux product and the 3 user license is free.
</p></strong>
<strong><p>Included in this package is their Netware client.
<br>-Dave
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>That's an interesting question.
</blockquote>
<blockquote>As far as I know their Netware client software (nwclient)
(which supported bindery and NDS servers) was proprietary and
under exclusive license with Caldera's distribution. From,
what I gather, you could use the package with another Linux
installation -- but I suspect that you were legally required
to own a copy of Caldera OpenLinux (Standard?) for every
copy of '<tt>nwclient</tt>' you deployed.
</blockquote>
<blockquote>(I'm a bit unclear on this since the only occasions when
I've deployed Caldera were in situations where it was a
gateway between a set of Netware domains and a set of
Unix systems --- basically a set of cron jobs existed to
<tt>rdist</tt> files from Netware servers out to Unix ftp and
web hosts (in one case) and all of the Linux/Unix users had
shell accounts to access Netware servers (in another case).
</blockquote>
<blockquote>It would have been handy if I could have deployed nwclient
through the workgroup in the second case --- but a number of
them were able to use ncpfs (the free, OpenSource Netware client)
for their needs.
</blockquote>
<blockquote>So, with this release of Netware for Linux we get a ability
to download a copy of nwclient for free. The question becomes
--- what rights does this entail.
</blockquote>
<blockquote>I really don't know, but it is an interesting question ---
one that I didn't think to ask when I was talking to Ransom
Love (the General Manager for OpenLinux) last night.
(He was in town to speak at the Silicon Valley Association
of Software Entrepreneurs (<A HREF="http://www.svase.org"
>http://www.svase.org</A>) along
with a number of other OpenSource and Linux notables.
</blockquote>
<blockquote>So, I'll defer it to Caldera's support address.
</blockquote>
<blockquote>At the same time I'd suggest taking a careful look at the
copyright notices and licensing that are included in the
package, as you downloaded it. That should state any
intended limitations on the use and redistribution of the
package or its components. It may be that the included
copy of '<tt>nwclient</tt>' is only legally valid for use with that
server --- that, technically, you are only allowed to deploy
upto three copies of '<tt>nwclient</tt>' and that all three of those
are to be used only with that particular server.
</blockquote>
<blockquote>Their licenses and copyright notices are really the
final authority in the matter.
</blockquote>
<!-- end body -->
<A name="tag_95slow"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<p>This refers to an issue raised in August (Issue 31) about a second drive
with linux <a href="../issue31/tag_95slow.html">slowing down a Windows boot</a>
sequence.</p>
<P> <hr width="40%" align="center"> <P>
<!-- ............................. -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>More 'Win '95 Hesitates After Box Has Run Linux?'</H3>
<p><strong>From Zdenek Kabelac on 07 Aug 1998 </strong></p>
<!-- begin body -->
<strong><p>Hi
</p></strong>
<strong><p>As I read your answer book for this question in LG Issue 31
"Win '95 Hesitates After Box Has Run Linux?"
</p></strong>
<strong><p>I have to say I had (and still have) similar problem - I have one
HARD HD (6.5MB hda) and 1 mobile (1.5MB hdb) HD and 16xWearnesCDROM
(hdd)
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>It is odd that your Wearnes/ATAPI CDROM is accessed as
/dev/hdd --- if it was the "master" or "standalone" on
the second IDE channel I'd expect to see it as /dev/hdc
</blockquote>
<blockquote>Perhaps it would work better if you reconfiged the CDROM
(changed to to "master" or "standalone" mode).
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>When my computer goes up and I run WIN95 from the begining I can
access CDROM normaly, but when I run Linux before windows and don't
push RESET button W95 can't locate CDROM and it also takes some time
for W95 to figure this out (about 10-15sec) but linux can access
CDROM always. I have tryied all combination of reboot=cold,bios
... as kernel boot parameters, but it was no good. (I'm quite
experienced linux user, but this is probably some HW magic)
</p></strong>
<strong><p>But I can easily live with this problem as I run W95 rarelly and
pressing the reset button is not that big problem.
</p></strong>
<strong><p>I suppose the problem will be with the combination: board & W95 &
CDROM - something in HW setup - for a few days I had connected
32xSamsung CDROM to the same computer and there were NO such
problems - the only problem was toooo big noice from my computer and
I hate this - so I rather bought the 16x - anyway I don't have
UltraDMA board so the reading speed on my computer is the same
(~2.4MB/s)
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>It is an interesting anomaly. As you say there is an
easy workaround. I'd recommend that.
</blockquote>
<strong><p><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
>Small advice which might be interested to other users
(those who likes silent):
</p></strong>
<strong><p>If they don't want to hear such a big noice from their computers, they
should switch power suply from 12V to 5V to the computer funs. (its cheap and about
an 1/2 hour of work) - don't know how this works in 44C
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" height="24" width="20" align="middle">
but in my country with temperatures around
~30C everythings run quite well and when HD spin down my computer is
completely silent.
</p></strong>
<strong><p>Zdenek Kabelac
</p></strong>
<blockquote><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
>While I don't like the excess noise I haven't have much
incentive to play with the fans and power supplies in my
machines.
</blockquote>
<blockquote>I've seen some people who swear that they've just disconnected
their power supply fan and left it that way for years. However,
I'm too much of a wimp to do that --- I just don't want to
have to replace those parts if this does cause them to fail.
</blockquote>
<!-- end body -->
<A name="tag_nonlinux"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Another Non-Linux Question!</H3>
<p><strong>From weasel_90 on 02 Aug 1998</strong></p>
<!-- begin body -->
<strong><p>Hi,
</p></strong>
<p><strong>I have a 1.2GB Hard Drive. It has a few Bad Clusters, which
are mostly at the end of the drive. Everytime I use <TT>Scandisk</TT> it
freezes on 99%. All my programs run fine, but sometimes they freeze
and I have to reboot the computer. I assume it is accessing data
from the bad clusters and it freezes sometimes. I thought <TT>scandisk</TT>
was suppose to mark bad clusters and tell the computer not to use
them. Is there any way that is really safe where I can either
seperate or put all those bad clusters away so that the computer
doesn't use them and store data on them? I would appreciate your
help. This one has stumped me. Thank You!
</strong></p>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28" border="0" lign="bottom"
>So, what happens when you install Linux and run the
'<TT>badblocks</TT>' program (or make the filesystem using the
<TT>mke2fs -c</TT> option)?
</blockquote>
<BLOCKQUOTE>This may seem like an unsatisfying answer --- but you
should probably be aware that
"<A HREF="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</A>" is
for the "<a href="http://www.linuxgazette.com/">Linux Gazette</a>
Answer Guy." I volunteer my time to answer questions that related to
Linux. I do that to show my appreciation for all the effort that Linus
Torvalds, Alan Cox, Stephen Tweedie, Ted T'so, and hundreds of other
programmers have put into creating the operating system that
I use. </blockquote>
<BLOCKQUOTE>I do NOT volunteer my time to answer questions that are
purely about Microsoft's operating system (or any other
proprietary software, for that matter). The companies that
produce these products can pay for their own support staff.
If they choose not to do so, or are otherwise unwilling or
unable to provide you with support that meets your needs
--- you should probably reconsider your purchasing decisions.
</blockquote>
<BLOCKQUOTE>Sigh!</blockquote>
<BLOCKQUOTE>Since I suffer from a compulsion to answer questions
thoroughly here's a few suggestions:
</blockquote>
<BLOCKQUOTE>Your obvious alternative would be to replace that
drive with a newer, less defective one. Normal, modern IDE
and SCSI drives have extra sectors on every track which are
"mapped" over any bad sectors on that track. Thus it is
relatively rare for bad sectors to be visible to the operating
system's drivers. You could put the new drive in as the
"master" and you could install Linux over the old drive ---
just to learn more about it.
</blockquote>
<BLOCKQUOTE>Another alternative would be to use something like
the <a href="http://www.symantec.com/">Norton</a> Utilities.
Perhaps one of those is more robust than the
accessories that came with your OS.
</blockquote>
<BLOCKQUOTE>If none of that works, backup your system, re-install the OS
from scratch and see if the re-FORMAT detects and properly
handles these bad sectors --- or re-partition, make the last
partition a couple of percent smaller and then re-install.
</blockquote>
<BLOCKQUOTE>If you don't have a backup system which is sufficiently reliable
and of sufficient capacity to do a full system backup and
restore --- then you're hopeless.
</blockquote>
<blockquote>While we're on the subject of "hopeless" --- it may
seem awfully curmudgeonly of me, but surely <em>some</em> of these
options must have occurred to you. I really hope that you
weren't actually "stumped" by this!
</blockquote>
<!-- end body -->
<A name="tag_progenv"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Integrated Programming Environments for Linux</H3>
<H4>More Nostalgia for the old Turbo C Package</H4>
<p><strong>From BiN on 29 Jul 1998 </strong></p>
<!-- begin body -->
<STRONG><P>Do you know of a programming environment c/c++ as
Turbo C for linux?
</p></strong>
<strong><p>Tnx!</p></strong>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28"
border="0" lign="bottom">There are a number of these.
The first couple that come to mind are:
</blockquote>
<blockquote><a href="http://www.softwarebuero.de/wipeout-eng.html">Wipeout</a>
<br><a href="http://www.rpi.edu/~payned/xwpe/">xwpe</a>/wpe
</blockquote>
<blockquote>One good place to look for these is at Goob's Linux Links:
</blockquote>
<code><blockquote><blockquote
><A HREF="http://www.linuxlinks.com/Software/Programming/Development/"
>http://www.linuxlinks.com/Software/Programming/Development/</A>
</blockquote></blockquote></code>
<!-- end body -->
<A name="tag_cluster"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
align="left" border="0">Web server clustering project</H3>
<p><strong>From Jim Kinney
in the</strong>
<a href="news://comp.unix.questions">comp.unix.questions</a>
<strong>newsgroup on 22 Jul 1998 </strong></p>
<!-- begin body -->
<STRONG><P>
I am starting the research into the design and implementation of a 3
node cluster to provide high availability web, database, and support
services to a computer based physics lab. As envisioned, the primary
interface machine will be the web server. The database that provides
the dynamic web pages will be on a separate machine. Some other
processes that accept input from the web process and output to the
database will be on the third machine.
</P></STRONG>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28" border="0" lign="bottom"
>Have you looked at the "High Availability HOWTO"?
</blockquote>
<code><blockquote><blockquote
><A HREF="http://sunsite.unc.edu/pub/Linux/ALPHA/linux-ha/High-Availability-HOWTO.html"
>http://sunsite.unc.edu/pub/Linux/ALPHA/linux-ha/High-Availability-HOWTO.html</A>
</blockquote></blockquote></code>
<blockquote>There's also the common "round robin DNS" model ---
which is already used by many service providers. It
has its limitations --- but it's the first thing
to try if the clients can be configured to gracefully
retry transactions on failure.
</blockquote>
<blockquote>There's also the MOSIX project which was developed
under BSD/OS and is allegedly being ported to Linux.
This provides for process migration (again, more of
a performance clustering and load balancing feature set).
</blockquote>
<code><blockquote><blockquote
><A HREF="http://www.cs.huji.ac.il/mosix/">http://www.cs.huji.ac.il/mosix/</A>
</blockquote></blockquote></code>
<blockquote>However, there is another concept called "checkpointing."
You can think of this as having regular, transparent,
non-terminal "core dumps" (snapshots) taken of each
process (or process group). These are written to
disk and can be reloaded and restarted at the point where
they left off. I'm not aware of any projects to
provide checkpointing to Linux (or checkpointing subsystems).
(Obviously any application can do its own checkpointing
in a non-transparent fashion --- roughly equivalent to the
periodic automatic saves performed by '<TT>emacs</TT>' and other editors).
</blockquote>
<blockquote>I have a pointer to some miscellaneous notes on checkpointing:
</blockquote>
<code><blockquote><blockquote
><A HREF="http://warp.dcs.st-and.ac.uk/warp/systems/checkpoint/"
>http://warp.dcs.st-and.ac.uk/warp/systems/checkpoint/</A>
</blockquote></blockquote></code>
<blockquote>The implication here is that you could create a hybrid
checkpointing <EM>and</EM> process migration model that would
provide high availability. In a client/server context
this would probably only be suitable for situations where
the communications protocols were very robust --- and
it might still require some IP and/or MAC address assumption
or some specialized routing tricks.
</blockquote>
<blockquote>One such routing trick might be the IP NAT project.
IP masquerading is one form of NAT (allowing many
clients to masquerade as a single proxy system).
</blockquote>
<code><blockquote><blockquote
><A HREF="http://www.csn.tu-chemnitz.de/~mha/"
>http://www.csn.tu-chemnitz.de/~mha/</A>
</blockquote></blockquote></code>
<blockquote>Another form of NAT is many-to-many. Let's say you
connected two disconnected sites that both chose
<tt>10.1.*.*</tt> addresses for their use --- you could put
a NAT router between them that would bidirectionally
translate the <tt>10.1.*.*</tt> to corresponding <tt>172.16.*.*</tt>
addresses. Thus the two sites would be able to
interoperate over a broader range of protocols than
would be the case for IP masqurading --- since the
TCP/UDP ports would not be re-written --- each <tt>10.1.*.*</tt>
address corresponds on a one-to-one basis with a <tt>172.16.*.*</tt>
counterpart.
</blockquote>
<blockquote>The one other form of NAT is one-to-many (or "load
balancing"). This makes one simple router look like a server.
In actuality that "server" is just dispatching the packets it
receives to any one of the backend servers it chooses
(statistically or based on metrics that they communicate
amongst themselves, privately). Cisco has a product called
"Local Director" that does exactly this. One of the experimental
versions of the Linux IP NAT code also appeared to do this
with some success. I don't know if any further work as
progressed on these lines.
</blockquote>
<blockquote>Yet another approach that might make sense is to provide
for replication of the data (files) across servers and
to use protocols that transparent select among available
servers (mirrors). This sounds just like CODA.
</blockquote>
<code><blockquote><blockquote>
<A HREF="http://www.coda.cs.cmu.edu/top.html"
>http://www.coda.cs.cmu.edu/top.html</A>
</blockquote></blockquote></code>
<BLOCKQUOTE>A less sophisticated approach to replication is to
use the <TT>rsync</TT> package to maintain some failover servers
(mirrors) --- and require that writes all go to one
active server.
</blockquote>
<STRONG><P><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)" width="50" height="28" border="0" lign="bottom"
>So, I am open to suggestions, comments, info, links to sites, book
titles, etc. I have proposed a one year development time for the whole
cluster, with a single machine application prototype of the user
visible/used portion by around the Jan 1999. I love my job!
</p></strong>
<P><STRONG>Jim Kinney M.S.
<BR>Educational Technology Specialist
<BR>Department of Physics
<BR>Emory University
</strong></p>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28" border="0" lign="bottom"
>Web, mail, DNS and a number of other Internet services
are naturally robust. With DNS you normally list up to
three servers per host (in the <TT>/etc/resolv.conf</TT>) and all
of these will be checked before a name lookup will fail.
With SMTP the client will try each of the hosts listed
in the results of an MX query. Round robin DNS will force
most clients to try multiple different IP addresses on
failure most of the time.
</blockquote>
<BLOCKQUOTE>However, the applications that really need HA (fail over)
and clustering for performance are things like db servers.
</blockquote>
<BLOCKQUOTE>Having two systems monitor and process something like
a set of db transactions in parallel (one active the
other "mimic'ing" the first but not returning results)
would be very interesting. The "mimic" would attempt
to maintain the same applications state as the server
--- and would assume the server's IP and MAC (ethernet
media access control) addresses on failure --- to then
transparently continue the transaction processing
that was going on.
</blockquote>
<BLOCKQUOTE>You might prototype such a system using web and ftp
(the FTP application is a more dramatic demonstration
--- since a web server involves many short transactions
and mostly operates in a "disconnected" fashion).
</blockquote>
<BLOCKQUOTE>One approach might be to have a custom ethernet
driver that can be instructed to throw all of its
output into the bit bucket. Thus the mimic is
normally silent, but following a failure on the
server it does the address assumption and rips off
the muzzle. I suspect you'd have to have another
interface between the two servers, one which is
dedicated to maintaining the same state between
the server and the mimic.
</blockquote>
<BLOCKQUOTE>(For example if the server get a collision or
an error that wasn't sensed by the mimic -- or
vice versa -- the two might get horribly out
of sync when the upper layer protocols require
a resend. With special drivers the two systems
might resolve these discrepancies at the kernel/driver
layer --- so that the applications will always get
the same data on their sockets).
</blockquote>
<BLOCKQUOTE>I really have no idea how much tweaking this would
take and whether or not it's even feasible.
</blockquote>
<BLOCKQUOTE>However, it seems that your intent is to provide
failover that is transparent to the applications
layer. So, the work obviously has to happen below that.
</blockquote>
<BLOCKQUOTE>It is unclear whether you are primarily interested
in deploying a set of servers for use by your
Physics team or whether you are interested in
doing research and development in the computer science.
</blockquote>
<blockquote>In any event your project will probably involve a
hybrid of several of these approaches:
</blockquote>
<ul>
<li>Round robin DNS
<li>Failover with IP and MAC address assumption.
(and/or load balancing NAT).
<li>Replication and or "mirroring" (more failover).
<li>Multi-initiator SCSI (where a single SCSI
bus has multiple computers active on it, such
that these computers have shared access to
the attached peripheral devices).
</ul>
<blockquote>It would be very interesting to see someone develop
process migration and checkpointing features for Linux
though there doesn't seem to be any active work going
on now.
</blockquote>
<BLOCKQUOTE>I'd also love to see an
"<a href="http://google.stanford.edu/linux?query=doc:cesdis.gsfc.nasa.gov/linux-web/beowulf/beowulf.html">Beowulf</a> enabled" SQL dbserver
(where a couple of failover capable "dispatchers" could
farm out transactions to multiple clustered Linux boxes
in some sensible manner). I'm not even sure if that's
feasible --- but it sure would knock down the scaleability
walls that I hear about from those dbadmins.
</blockquote>
<!-- end body -->
<A name="tag_ftpd"><P><hr width="75%" align="center"></P></A>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
align="left" border="0">WU-FTP guestgroup problems</H3>
<p><strong>From Marco Iannacone on the
<a href="news://comp.unix.questions">comp.unix.questions</a> newsgroup
on 9 Jun 1997 </strong></p>
<!-- begin body -->
<blockquote>It looks like I never answered this question.
(I'm going through my old archives).
</blockquote>
<strong><p>Hi James,
how you doing?
</p></strong>
<strong><p>I'm writing to you as <EM>The Answer Guy</EM> 'cause I have
some problem with setting up the guest trick with wu-ftpd.
What I mean is to have a chrooted enviroment for some special user
with their home directory and user-id and password.
</p></strong>
<strong><p>I'm using <A HREF="http://www.slackware.org/">Slackware</A>
'96 Linux with the wu-archive-ftp that comes already compiled with it.
</p></strong>
<strong><p>This is what I did:
</p></strong>
<strong>
<ul>
<LI>I compiled gnu ls statically and put it in ~ftp/user-foo/bin
directory.
<LI>I did the <TT>/etc</TT> hack:
<ul>
<li>added the guest group in<TT>/etc/group</TT>
<li>modify the<TT>/etc/passwd</TT> file for the user I want to be
chrooted giving him <TT>/home/ftp/user-foo./</TT> directory
</ul>
</UL>
</strong>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28"
border="0" lign="bottom">I think this is supposed to be</blockquote>
<code><blockquote><blockquote>/home/ftp/./user-foo
</blockquote></blockquote></code>
<blockquote>... if you want the guestgroup directive in
wu-ftpd's ftpaccess file to chroot to <TT>/home/ftp</TT> and
initially place this user in the<TT>/home/ftp/user-foo</TT>
directory.
</blockquote>
<STRONG><P><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)" width="50" height="28" border="0" lign="bottom"
>I don't recall whether the "ftponly" (or whatever you
call your "guestgroup" group) has to be that user's
<EM>primary</EM> group (the one listed in <TT>/etc/passwd</TT>) or whether
it can be one of the supplemental groups (as listed in <TT>/etc/group</TT>)
</p></strong>
<strong><UL>
<ul>
<LI>added <TT>/etc/ftponly</TT> to <TT>/etc/shells</TT>
<LI>I modify the <TT>/etc/ftpaccess</TT> file adding
<code>...
<BR>path-filter guest /etc/pathmsg ^[-A-Za-z0-9_\.]*$ ^\. ^-
<BR>....
<BR>guestgroup guest
</code>
</ul>
<LI>I created the user home directory which has the following
attribute:
<pre>[root]:/home/ftp>ls -la
total 104
dr-xr-xr-x 9 root root 512 Jun 2 14:01 .
drwxrwxr-x 6 user-foo guest 512 Jun 3 13:54 user-foo
dr-xr-xr-x 2 root root 512 Jun 3 09:45 bin
</pre>
</UL>
</strong>
<strong><p>Now the ftp server is running fine (both with normal and anonymous
users) and even the chrooted enviroment for guest is working fine:
the user can login, upload and download files and it is locked in
that directory... i.e. can go in all the subdirectory but can't go
up. So it is perfect!
</p></strong>
<strong><p>The only problem is that <TT>ls</TT> and <TT>dir</TT> are not
working and he can only list files using <TT>nlist</TT>.
</p></strong>
<strong><p>For example:
</p></strong>
<strong><pre>Name (localhost:root): user-foo
331 Password required for user-foo.
Password:
230 User amex logged in. Access restrictions apply.
ftp> nlist
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
bin
.profile
etc
.rhosts
.forward
.sh_history
test-directory
test-file.txt
226 Transfer complete.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
226 Transfer complete.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
226 Transfer complete.
ftp>quit
</pre></strong>
<strong><p>What am I missing? how can I allow him to do ls and dir?
Note: i'm sure that the new ls is working:
</p></strong>
<strong><pre>[root@Goliath /home/ftp/user-foo//bin]#./ls
compress cpio gzip ls sh tar
[root@Goliath /home/ftp/user-foo/bin]#
</pre></strong>
<strong><p>
and that is statically linked:
</p></strong>
<strong><pre>[root@Goliath /home/ftp/user-foo/bin]#ldd ./ls
Statically linked (ELF)
[root@Goliath /home/ftp/user-foo/bin]#
</pre></strong>
<p><strong>Thanks a lot,
Marco
</strong></p>
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28" border="0" lign="bottom"
>Everything else sounds right to me.
</blockquote>
<BLOCKQUOTE>Naturally I hope you've long since solved this problem.
I just hate to leave a question unanswered.
</blockquote>
<BLOCKQUOTE>Incidentally, you might look at <TT>ncftpd</TT> (a newer
FTP daemon from Mike Gleason, author of the popular <TT>ncftp</TT> client).
<TT>ncftpd</TT> allegedly offers better options for locking users into their
home directories and it contains built-in support for '<TT>ls</TT>' and
similar commands.</blockquote>
<BLOCKQUOTE><TT>ncftpd</TT> is shareware, rather than freeware, and
Mike wants $40 (US) for small servers (50 concurrent
sessions or less) and about $200 for larger servers.
</blockquote>
<blockquote>However you can evaluate the whole package for free.
Start by taking a look at:
</blockquote>
<code><blockquote><blockquote><A HREF="http://www.probe.net/~mgleason/ncftpd/"
>http://www.probe.net/~mgleason/ncftpd/</A>
</blockquote></blockquote></code>
<blockquote>... or at:
</blockquote>
<code><blockquote><blockquote
><A HREF="http://www.ncftp.com/">http://www.ncftp.com/</A>
</blockquote></blockquote></code>
<blockquote>... and reading about the features list.
</blockquote>
<blockquote>Naturally this hasn't been around as long as
<TT>wu-ftpd</TT>, and the sources don't seem to be openly
available. So <TT>ncftpd</TT> doesn't benefit from the
informal process of code review that we take for
granted for most Linux networking packages.
</blockquote>
<blockquote>(This informal process of auditing does not seem
to have been terribly effective, however, since we
still find new security problems in code that's been
free for decades. For this reason there are have a
couple of more organized and formal efforts ---
the <a href="http://www.openbsd.org/">OpenBSD</a> project and
the Linux Security Audit
<A HREF="http://www.att.net">http://www.att.net/~Bandit2006/</A>
to name the two with which I'm familiar).
</blockquote>
<!-- end body -->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
>Copyright ©</a> 1998, James T. Dennis <BR>
Published in <I>Linux Gazette</I> Issue 32 September 1998</H5>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<A HREF="./index.html"><IMG SRC="../gx/indexnew.gif"
ALT="[ Table Of Contents ]"></A>
<A HREF="../index.html"><IMG SRC="../gx/homenew.gif"
ALT="[ Front Page ]"></A>
<A HREF="lg_bytes32.html"><IMG SRC="../gx/back2.gif"
ALT="[ Previous Section ]"></A>
<A HREF="./stemen.html"><IMG SRC="../gx/fwd.gif"
ALT="[ Next Section ]"></A>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">A Convenient and Practical Approach to Backing Up Your Data</font></H1>
<H4>By <a href="mailto:bu@hightek.org">Vincent Stemen</a></H4>
</center>
<P> <HR> <P>
July 19,1998<br><br>
<p>
Every tool I have found for Linux and other UNIX environments seems to
be designed primarily to backup files to tape or any device that can
be used for streaming backups. Often this method of backing up is
infeasible, especially on small budgets. This led to the development
of bu, a tool for backing up by mirroring the files on another file
system. bu is not necessarily meant as a replacement for the other
tools (although I have set up our entire disaster recovery system
based on it for our development servers), but more commonly as a
supplement to a tape backup system. The approach I discuss below is a
way to manage your backups much more efficiently and stay better
backed up without spending so much money.
</p>
<dl>
<h4>* Some problems I have found with streaming backups</h4>
<dd>
<dl>
1. The prices and storage capacities often make it infeasible.
<dd><br>
The sizes of hard drives and the amount of data stored on an
average server or even workstation is growing faster than the
capacity of the lower end tape drives that are affordable to
the individual or small business. 5 and 8 gig hard drives are
cheap and common place now and the latest drives go up to at
least 11 gig. However, the most common tape drives are only a
few gig. Higher capacity/performance tape drives are
available but the costs are out of the range of all but the
larger companies.
<br><br>
For example:<br>
Staying properly backing up with 30GB of data (which can be
just 3 or 4 hard drives) to a midrange tape drive, can cost
$15,000 to $25,000 or more inside of just 2 to 4 years. There
is a typical cost scenario on
<a href="http://www.exabyte.com/home/press.html">
http://www.exabyte.com/home/press.html</a>.
<br><br>
This is just the cost for the drive and tapes. It does not
include the cost of time and labor to manage the backup system.
I discuss that more below. With that in mind, the comments I
make on reliability, etc, in the rest of this article are based
on my experience with lower end drives. I haven't had thousands
of extra dollars to throw around to try the higher end drives.
<br><br>
</dl>
<dl>
2. The cost of squandered sys admin time and the lost productivity
of users or developers waiting for lost files to be restored, can
get much more expensive than buying extra hard drives.
<dd><br>
To backup or restore several gig of data to/from a tape can take
up to several hours. The same goes for trying to restore a
single file that is near the end of the tape. I can't tell you
how frustrating it is to wait a couple of hours to restore a
lost file only to discover you made some minor typo in the
filename or the path to the file so it didn't find it and you
have to start all over. Also, if you are backing up many gig of
data, and you want to be fully backed up every day, you either
have to keep a close eye on it and change tapes several times
throughout the day, every day, or do that periodically and do
incremental backups onto a single tape the rest of the days.
With tapes, the incremental approach has other problems, which
leads me to number 3.
<br><br>
</dl>
<dl>
3. Incremental backups to tape can be expensive, undependable
and time consuming to restore.
<dd><br>
First, this kind of backup system can consume a lot of time
labeling, and tracking tapes to keep track of the dates and
which ones are incremental and which ones are full backups, etc.
Also, if you do incremental backups throughout a week, for
example, and then have to restore a crashed machine, you can
easily consume up to an entire day restoring from all the tapes
in sequence in order to restore all the data back the way it
was. Then you have Murphy to deal with. I'm sure everybody is
familiar with Murphy's laws. When you need it most, it will
fail. My experience with tapes has revealed a very high failure
rate. Probably 20 or 30% of the tapes I have tried to restore
on various types of tape drives have failed because of one
problem or another. This includes our current 2GB DAT drive.
Bad tape, dirty heads when it was recored, who knows. To
restore from a sequence of tapes of an incremental backup, you
are dependent on all the tapes in the sequence being good. Your
chances of a failure are very high. You can decrease your
chance of failure, of course, by verifying the tape after each
backup but then you double your backup time which is already to
long in many cases.
<br><br>
</dl>
</dl>
<dl>
<h4>* A solution (The history of the bu utility)</h4>
<dd>
With all the problems I described above, I found that, like most
other people I know, it was so inconvenient to back up that I
never stayed adequately backed up, and have payed the price a time
or two. So I set up file system space on one of our servers and
periodically backed up my file systems over nfs just using cp.
This way I would always be backed up to another machine if mine
went down and I could quickly backup just one or a few files
without having to mess with the time and cost of tapes. This
still wasn't enough. There were still times I was in a hurry and
didn't want to spend the time making sure my backup file system
was NFS mounted, verifying the pathname to it, etc, before doing
the copy. Manually dealing with symbolic links also was
cumbersome. If I specified a file to copy that was a symbolic
link, I didn't want it to follow the link and copy it to the same
location on the backup file system as the link. I wanted it to
copy the real file it points to with it's path so that the backup
file system was just like the original. I also wanted other
sophisticated features of an incremental backup system without
having to use tapes. So, I wrote bu. bu intelligently handles
symbolic links, can do incremental backups on a per directory
basis with the ability to configure what files or directories
should be included and excluded, has a verbose mode, and keeps log
files. Pretty much everything you would expect from a fairly
sophisticated tape backup tool (except a GUI interface :-) but is
a fairly small and straight forward shell script.
<br><br>
</dl>
<dl>
<h4>* Backup strategy</h4>
<dd>
Using bu to backup to another machine may or may not be a good
replacement for a tape backup system for others as it has for us,
but it is an excellent supplement. When you have done a lot of
work and have to wait hours or even days until the next scheduled
tape backup, you are at the mercy of Murphy until that time, then
you cross your fingers and hope the tape is good. To me, it is a
great convenience and a big relief to just say "bu src" to do an
incremental backup of my whole src directory and know I
immediately have an extra copy of my work if something goes wrong.
<br><br>
It is much easier and faster to restore a whole file system over
NFS than it is from a tape. This includes root (at least with
Linux). And, it is vastly faster and easier to restore just one
file or directory just using the cp command.
<br><br>
So far as cost: You can get extra 6GB hard drives now for less
than $200 dollars. In fact I can buy a whole new computer with
extra hard drives to use as a backup server for $1000 or less now.
Much less than the cost of buying just a mid to high end tape
drive, not counting the cost of all the tapes and extra time spent
managing them. In fact, one of the beauties of Linux is, even
your old 386 or 486 boat anchors make nice file servers for such
things as backups.
<br><br> For those individuals and small businesses who use zip
drives and jaz drives for backing up so they can have multiple
copies or take them off site, bu is also perfect, since
incremental backups can be done to any file system. I often use
it to back up to floppies to take my most critical data and recent
work off site.
<br><br>
Here is an interesting strategy we have come up with using bu that
is the least expensive way to stay backed up we could come up with
for our environment. It is the backup strategy we are setting up
for our development machines which house several GB of data. Use
bu to backup daily and right after doing work, to file systems
that are no more than 650 mb. Then, once or twice a month, cut
worm CD's from those file systems to take off site. WORM CD's are
only about a dollar each in quantities of 100, and CD WORM writers
have gotten cheap. This way your backups are on media that
doesn't decay like tapes and floppies tend to do. Re-writable
CD's are also an option if you don't mind spending a bit more
money. If you have just too much data for that to be practical,
hard drives are cheap enough now that it is feasible to have extra
hard drives and rotate them off site. It is nice to have one of
those drive bays that allow you to un-plug the drive from the
front of the machine if you take this approach. Where bu will
really shine with large amounts of data, is when we finally can
get re-writable DVD drives with cheap media. I think, in the
future, with re-writable DVD or other similar media on the
horizon, doing backups to non-random access devices such as tape
will become obsolete and other backup tools will likely follow the
bu approach anyway.
<br><br>
</dl>
<dl>
<h4>* Getting bu</h4>
<dd>
bu is freely re-distributable under the GNU copyright.<br>
<a href="http://www.hightek.org/bu/"><i>http://www.hightek.org/bu/</i><br></a>
<a href="ftp://www.hightek.org/pub/vstemen/bu/bu.tar.gz">
<i>ftp://www.hightek.org/pub/vstemen/bu/bu.tar.gz</i><br></a>
</dl>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Vincent Stemen<BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./lg_answer32.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./gm.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================
This Page Designed by Michael J. Hammel.
Permission to use all graphics and other content for private,
non-commerical use is granted provided you give me (or the
original authors/artists) credit for the work.
CD-ROM distributors and commercial ventures interested in
providing the Graphics Muse for a fee must contact me,
Michael J. Hammel (mjhammel@graphics-muse.org), for permission.
============================================================= !--><!-- The Button box as a client side imagemap --><MAP NAME="nav-main"><AREA SHAPE="rect" HREF="#mews" coords="20,18 185,40"><AREA SHAPE="rect" HREF="#webwonderings" coords="10,60 185,83"><AREA SHAPE="rect" HREF="#musings" coords="90,102 185,130"><AREA SHAPE="rect" HREF="#resources" coords="70,152 185,180"></MAP>
<TABLE BORDER=0 COLS=2 WIDTH="100%" >
<TR>
<TD><IMG SRC="../gx/hammel/gm3.gif" ALT="Welcome to the Graphics Muse" NOSAVE HEIGHT=216 WIDTH=441 ALIGN=LEFT></TD>
<TD VALIGN=BOTTOM>
<CENTER><FONT SIZE=-1>Set your browser as wide as you'd like now.
I've fixed the Muse to expand to fill the aviailable space!</FONT>
<BR><FONT SIZE=-2>© 1998 by <A HREF="mailto:mjhammel@graphics-muse.org">mjh</A></FONT></CENTER>
</TD>
</TR>
</TABLE>
<HR WIDTH="100%">
<TABLE BORDER=0 COLS=2 WIDTH="100%" >
<TR>
<TD WIDTH="185"><IMG SRC="../gx/hammel/muse-image-map.gif" ALT="Button Bar"
BORDER=0 USEMAP="#nav-main" HEIGHT=200 WIDTH=185 ALIGN=LEFT></TD>
<TD VALIGN=TOP><B><FONT SIZE=+1>muse:</FONT></B>
<OL>
<LI>
<I>v;</I> to become absorbed in thought </LI>
<LI>
<I>n;</I> [ fr. Any of the nine sister goddesses of learning and the arts
in Greek Mythology ]: a source of inspiration </LI>
</OL>
<IMG SRC="../gx/hammel/w.gif" ALT="W" HEIGHT=28 WIDTH=36 ALIGN=BOTTOM>elcome
to the Graphics Muse! Why a "muse"? Well, except for the sisters aspect,
the above definitions are pretty much the way I'd describe my own interest
in computer graphics: it keeps me deep in thought and it is a daily source
of inspiration.
<CENTER><FONT SIZE=-1>[<A HREF="#mews">Graphics Mews</A>][<A HREF="#webwonderings">WebWonderings</A>][<A HREF="#musings">Musings</A>]
[<A HREF="#resources">Resources</A>]</FONT></CENTER>
</TD>
</TR>
</TABLE>
<IMG SRC="../gx/hammel/t.gif" ALT="T" HEIGHT=28 WIDTH=26 ALIGN=LEFT>his column
is dedicated to the use, creation, distribution, and discussion of computer
graphics tools for Linux systems. Well, there were quite a
few announcements in the past month and I'm finding that not all are being
cross posted to both comp.os.linux.announce and to freshmeat.net.
It takes a little more diligence on my part to catch all the announcments
but since I visit both places fairly often it really isn't that big of
a problem. On the other hand, is it really necessary to repeat those
announcements here? I thought about this for a while and finally
decided it is worth the effort since both c.o.l.a and freshmeat are sites
for general announcements and the graphics specific items can easily be
overlooked. By gathering them up and reprinting them here I can let
my readers worry less about missing the important stuff through the sea
of other announcements at other sites.
<P>I've finally started to catch up on my Musings too. This months
issue includes discussions on:
<UL>
<LI>
Managing your CGI Perl scripts using "require" in <I>Web Wonderings</I></LI>
<LI>
A closer look at the libgr package of image file format libraries</LI>
<LI>
A little fun with the Gimp plugin "QBist"</LI>
</UL>
I also considered taking a look at Blender, but I'm not certain my system
is stable enough for that right now. Its been acting a little strange
of late - I'm beginning to think some recent power outages may have corrupted
some libraries. I have plans to upgrade to Red Hat 5.2 whenever it
comes out (I expect the difficulties with dealing with libc/glibc will
all be worked out, much like the 4.2 release had worked out most of the
a.out vs. ELF issues), plus take a look at Xi Graphics Maximum CDE at some
point too. But I hadn't planned on doing either until the October
time frame. I may have to change my plans.
<P>Anyway, a review of Blender is a definite future Musing. The last
time I tried it the program seemed to be stable, but the interface is rather
complex. A general examination showed that this modeller is quite
feature rich. Its just that the interface is not intuitive to a 3D
newbie, perhaps not even to an experienced 3D graphic artist. A better
set of documentation is reported to be on the way, due out some time in
September. I'll wait and see what this might offer before stepping
up for a review of Blender.
<P><IMG SRC="./gx/hammel/gm-new.jpg" HSPACE=10 VSPACE=10 HEIGHT=216 WIDTH=225 ALIGN=RIGHT>You
can also keep an eye out for a new and improved Graphics Muse Web site
coming soon. I expect to be able to launch the new site sometime
in the middle to end of September. It will combine the Linux Graphics
mini-Howto with the Unix Graphics Utilities into a single searchable database,
provide recommended reading material and allow you to post reviews of software,
hardware and texts, plus it will provide more timely news related to computer
graphics for Linux systems. And of course all the back issues of
the Graphics Muse column from the Linux Gazette will be there too, in a
semi-searchable format with topics for each month provided next to the
links to each months issue. I'll probably post an announcement about
it to c.o.l.a when its ready.
<P><A NAME="mews"></A>
<BR>
<TABLE BORDER=0 COLS=1 WIDTH="100%" >
<TR>
<TD><IMG SRC="../gx/hammel/mews.gif" ALT="Graphics Mews" HEIGHT=53 WIDTH=242 ALIGN=LEFT></TD>
</TR>
</TABLE>
Disclaimer: Before I get too far into this
I should note that any of the news items I post in this section are just
that - news. Either I happened to run across them via some mailing list
I was on, via some Usenet newsgroup, or via email from someone. I'm not
necessarily endorsing these products (some of which may be commercial),
I'm just letting you know I'd heard about them in the past month.
<BR>
<TABLE BORDER=0 COLS=3 WIDTH="100%" NOSAVE >
<TR>
<TD COLSPAN="3" WIDTH="100%" BGCOLOR="#000000"><IMG SRC="../gx/hammel/cleardot.gif" ALT="indent" HSPACE=30 VSPACE=2 HEIGHT=1 WIDTH=1 ALIGN=LEFT></TD>
<TD></TD>
</TR>
<TR NOSAVE>
<TD VALIGN=TOP WIDTH="50%" NOSAVE>
<H2>
The ParPov and Pov2Rib Homepage</H2>
<B><I><FONT COLOR="#CC6600">ParPov</FONT></I></B> is a free (GNU), object-oriented
library written in C++ for parsing Scene Files from the Persistence of
Vision (POV-Ray) Ray-Tracer. It will read a scene written using version
1-3 syntax and creates a structure of C++-Objects, representing all details
of the original description. You can query those objects and use the information
to convert the scene to other formats or many other uses. <B><I><FONT COLOR="#CC6600">Pov2Rib</FONT></I></B>
is also a freely available progam, which allows you to convert scene files
from POV-Ray to a RenderMan Interface Bytestream (RIB). The tool is the
first application of libParPov.
<P><A HREF="http://www9.informatik.uni-erlangen.de/~cnvogelg/pov2rib/index.html">http://www9.informatik.
uni-erlangen.de/ ~cnvogelg/pov2rib/index.html</A>
<P>
<HR WIDTH="100%">
<H2>
GQview 0.4.0</H2>
<B><I><FONT COLOR="#CC6600">GQview</FONT></I></B> is an X11 image viewer
for the Linux operating system. Its key features include single click file
viewing, external editor support, thumbnail preview, thumbnail caching
and adjustable zoom. GQview is currently available in source, binary, and
rpm versions and requires the latest GTK and Imlib libraries.
<P><A HREF="http://www.geocities.com/SiliconValley/Haven/5235/">http://www.geocities.com/
SiliconValley/Haven/5235/</A>
<BR> </TD>
<TD ROWSPAN="3" WIDTH="2" BGCOLOR="#000000"><IMG SRC="../gx/hammel/cleardot.gif" ALT="indent" HSPACE=1 HEIGHT=1 WIDTH=1></TD>
<TD WIDTH="49%">
<H2>
TKMatman</H2>
<B><I><FONT COLOR="#CC6600">TKMatman</FONT></I></B> is a tool that lets
you interactively set and adjust parameters to RenderMan shaders and preview
images with the given parameters. It can handle surface, displacement,
interior, exterior, atmosphere, light and imager shaders and their combinations.
The idea for the program comes from Sam Samai, who wrote the very useful
IRIX version. With the availability of the Blue Moon Rendering Tools for
different platforms the author of TkMatman thought that a lot more people
will use the RenderMan interface and need ways to select their shaders.
That's why he published his private LINUX version of MatMan. The program
was initially only meant for his own use, but it is in a pretty stable
state now. All feedback is appreciated and new versions will be made
available at the following site:
<P><A HREF="http://www.dfki.uni-sb.de/~butz/tkmatman/">http://www.dfki.uni-sb.de/
~butz/tkmatman/</A>
<BR>
<HR WIDTH="100%">
<H2>
ImPress</H2>
<B><I><FONT COLOR="#CC6600">ImPress</FONT></I></B> allows you to create
good quality documents using vector graphics. You can use ImPress within
a web browser with the Tcl/Tk plugin. It's a reasonable desktop publishing
and presentation tool in a small package designed for Linux and for integration
with Ghostscript.
<P>The GPL'd .03alpha release fixes many bugs and adds better web and presentation
functionality.
<P><A HREF="http://www.tcltk.com/tclets/impress/index.html">http://www.tcltk.com/tclets/impress/index.html</A>
<BR> </TD>
</TR>
<TR>
<TD BGCOLOR="#000000"><IMG SRC="../gx/hammel/cleardot.gif" HSPACE=1 HEIGHT=1 WIDTH=1></TD>
<TD BGCOLOR="#000000"><IMG SRC="../gx/hammel/cleardot.gif" HSPACE=1 HEIGHT=1 WIDTH=1></TD>
</TR>
<TR>
<TD>
<H2>
LibVRML97/Lookat 0.7</H2>
<B><I><FONT COLOR="#CC6600">LibVRML97</FONT></I></B> is a toolkit for incorporating
VRML into applications, and <B><I><FONT COLOR="#CC6600">Lookat</FONT></I></B>
is a simple VRML browser based on that library. This code is currently
being developed and is one of the more complete open source VRML browsers
available. All VRML97 nodes except Text/FontStyle and the drag sensors
(CylinderSensor, Plane, Sphere) are supported. The Script node supports
much of the Javascript API with more on the way.
<P>Version 0.7 adds Javascript scripting, MovieTextures, TouchSensors,
Anchors, Inlines, and command line arguments -url and -geometry for running
under XSwallow as a Netscape plugin.
<P><A HREF="http://www.vermontel.net/~cmorley/vrml.html">http://www.vermontel.net/
~cmorley/vrml.html</A></TD>
<TD>
<H2>
Slidedraw</H2>
<B><I><FONT COLOR="#CC6600">Slidedraw</FONT></I></B> is a drawing program
in Tcl/tk for presentation slides with postscript output and full-featured.
You can see snapshots, get slide collections or the very latest package
available from it's new web page.
<P>URL: <A HREF="http://web.usc.es/~phdavidl/slidedraw/">http://web.usc.es/~phdavidl/slidedraw/</A>
<P>Beta testers are welcome. Contributors for slide collections and
documentations are also invited.
<BR>
<HR WIDTH="100%">
<H2>
MindsEye 0.5.27</H2>
<B><I><FONT COLOR="#CC6600">MindsEye</FONT></I></B> is a project to develop
a free (in terms of the GPL) available 3D modelling program for Linux.
It features modular design, Multi-scene/user concept, Kernel-system view
instead of Modeler-system view, Object oriented modelling design and network
support in a MindsEye-kernel way.
<P><A HREF="http://mindseye.luna.net/">http://mindseye.luna.net/</A></TD>
</TR>
<TR>
<TD COLSPAN="3" WIDTH="100%" BGCOLOR="#000000"><IMG SRC="../gx/hammel/cleardot.gif" HSPACE=1 HEIGHT=1 WIDTH=1></TD>
</TR>
</TABLE>
<H2>
Visual DHTML</H2>
<B><I><FONT COLOR="#CC6600">Visual DHTML</FONT></I></B> is a free Web-based
authoring tool that lets you create interactive web content using various
DHTML technologies. Visual DHTML brings JavaScript1.2 and DHTML towards
its full and future potential at the application level by bringing more
traditionally low-level programming techniques and features to Web-based
scripting languages. Features include such things as an object oriented,
component-based ("Bean" style) architecture with "Drag and Drop" functionality.
Also included are several pre-built DHTML widgets, such as the dynamic
Drawer and Ticker that you can customize along with component properties
that you can modify. Also, if you like the functionality of this tool,
you can copy and paste the source code by viewing the Page Source from
within Navigator.
<P><A HREF="http://developer.netscape.com/docs/examples/dynhtml/visual/index.html">http://developer.netscape.com/docs/examples/dynhtml/visual/index.html</A>
<BR>
<HR WIDTH="100%">
<H2>
Javascript Debugger 1.1</H2>
Netscape <B><I><FONT COLOR="#CC6600">JavaScript Debugger</FONT></I></B>
is a powerful tool for debugging JavaScript on multiple platforms. Written
in Java, the debugger runs in Netscape Communicator. Netscape JavaScript
Debugger 1.1 supports client-side JavaScript debugging capabilities, including
such features as a watch mechanism, conditional breakpoints, enhanced error
reporter, signed script support, and the ability to step through code.
Using the debugger while developing your JavaScript application, you can
debug scripts as they run, determine what's going on inside your script
at any moment, and find problems quickly. A Linux version is not mentioned
explicitly, but the Unix version works perfectly.
<P><A HREF="http://developer.netscape.com/software/jsdebug.html">http://developer.netscape.com/software/jsdebug.html</A>
<BR>
<HR WIDTH="100%">
<H2>
S.u.S.E. announces XFCom_P9x00 and new version of XFCom_3DLabs</H2>
XFCom_P9x00-1.0
<P>It took a while, but finally a free server for Weitek P9100 based cards
is available. XFCom_P9100 is not yet accelerated and has not received as
much testing as we would have liked it to, but it should work fine on most
P9100 boards.
<P>XFCom_3DLabs-4.12
<P>With this version of XFCom_3DLabs several problems with earlier versions
should be solved. New features and fixes include:
<UL>
<LI>
Permedia 2v support</LI>
<LI>
Permedia 2 AGP hangs fixed</LI>
<LI>
24bpp mode improved</LI>
<LI>
many drawing bugs removed</LI>
<LI>
DPMS support added</LI>
</UL>
You can find both servers (and the rest of the XFCom-family) at our web
site <A HREF="http://www.suse.de/XSuSE/XSuSE_E.html">http://www.suse.de/XSuSE/XSuSE_E.html</A>
<P>As always, these servers are freely available, the sources to these
servers are already part of the XFree86 development source. Binaries for
other OSs will be made available, time permitting.
<H2>
XSuse Matrox Millenium G200 support</H2>
Suse appears to have also added support for the Matrox Millennium G200
AGP to their Matrox X server. No official announcement has been seen,
but word of this development first appeared to 'Muse's eyes via <A HREF="http://Slashdot.org">Slashdot.org</A>.
<P>The driver is available from <A HREF="ftp://ftp.suse.com/pub/suse_update/XSuSE/xmatrox/">ftp://ftp.suse.com/pub/suse_update/XSuSE/xmatrox/.</A>
<BR>
<HR WIDTH="100%">
<H2>
<A HREF="http://link.springer.de/link/service/journals/00371/index.htm">The
Visual Computer Journal</A></H2>
Special Issue on Real-time Virtual Worlds
<BR>Submissions due: October 31, 1998
<P>Real-time Virtual Worlds are now possible on most workstations and PCs.
The challenge is to design user-friendly systems for creating new applications
and tools. This special issue of the Visual Computer is dedicated to new
algorithms, methods, and systems in Real-time Virtual Worlds. Original,
unpublished research, practice, and experience papers are sought that address
issues in all aspects of Real-time Virtual Worlds. Topics include, but
are not limited to:
<UL>
<LI>
Modeling for Real-time Virtual Worlds</LI>
<LI>
Real-time animation</LI>
<LI>
Real-time rendering algorithms</LI>
<LI>
Real-time motion control and motion capture</LI>
<LI>
Real-time talking heads</LI>
<LI>
Intelligent interfaces for real-time computer animation</LI>
<LI>
Avatars and Real-time Autonomous Virtual Humans</LI>
<LI>
3D interaction with Virtual Worlds</LI>
<LI>
Networked Virtual Environments</LI>
<LI>
Artificial Life in Virtual Worlds</LI>
<LI>
Virtual Worlds on the Web</LI>
<LI>
Real-time audio and speech for Virtual Worlds</LI>
<LI>
Real-time simulation</LI>
<LI>
Games and entertainment applications</LI>
</UL>
Schedule:
<TABLE BORDER=0 COLS=2 WIDTH="65%" NOSAVE >
<TR NOSAVE>
<TD NOSAVE>Paper Submission: </TD>
<TD>October 31, 1998</TD>
</TR>
<TR NOSAVE>
<TD NOSAVE>Acceptance/Rejection Notification: </TD>
<TD>January 15, 1999</TD>
</TR>
<TR>
<TD>Final Manuscript Submissions: </TD>
<TD>February 15, 1999</TD>
</TR>
<TR>
<TD>Publication: </TD>
<TD>Summer 1999</TD>
</TR>
</TABLE>
The editors for this issue of the Visual Computer are:
<P>Nadia Magnenat-Thalmann
<BR>Associate Editor-in-Chief
<BR>MIRALab, University of Geneva
<BR>Email: <A HREF="mailto:thalmann@cui.unige.ch">thalmann@cui.unige.ch</A>
<P>Daniel Thalmann
<BR>Computer Graphics Lab
<BR>EPFL
<BR>Email: <A HREF="mailto:thalmann@lig.di.epfl.ch">thalmann@lig.di.epfl.ch</A>
<BR>
<P>Submission guidelines: Authors may submit their paper either as an HTML
URL or by ftp. For ftp, the electronic version of your manuscript should
be submitted in PDF (preferred) or Postscript (compressed with gzip) using
anonymous ftp to <A HREF="ftp://ligsg2.epfl.ch">ligsg2.epfl.ch</A>. The
paper should be submitted as one file. The file name should be first
author's name. Please follow the procedure:
<UL><TT>ftp ligsg2.epfl.ch</TT>
<BR><TT>username: anonymous</TT>
<BR><TT>password: <your email address></TT>
<BR><TT>cd tvc</TT>
<BR><TT>put <filename></TT></UL>
In any case, you should send an email to <A HREF="mailto:tvcanim@lig.di.epfl.ch">tvcanim@lig.di.epfl.ch</A>
with the title of the paper, the authors with affiliation, the contact
author, and either the URL or the filename used for ftp. For author guidelines,
please consult: <A HREF="http://www.computer.org/multimedia/edguide.htm">http://www.computer.org/multimedia/edguide.htm</A>
<BR>
<HR WIDTH="100%">
<H2>
KIllustrator 0.4</H2>
<B><I><FONT COLOR="#CC6600">KIllustrator</FONT></I></B> is a freely available
vector-based drawing application for the K Desktop Environment similiar
to Corel Draw(tm) or Adobe Illustrator(tm).
<P>Features include:
<UL>
<LI>
different object types: polylines, circles, ellipses, squares, rectangles,
(symmetric) polygons, freehand lines, bezier curves and multiline text</LI>
<LI>
tools for moving, scaling, rotating as well as grouping, ungrouping, aligning,
distributing and reordering objects</LI>
<LI>
various line styles and arrows</LI>
<LI>
a multilevel undo/redo facility</LI>
<LI>
a property editor</LI>
<LI>
multi-window support with cut/copy/paste between the windows</LI>
<LI>
zooming and snapping to grid</LI>
<LI>
multilevel undo/redo</LI>
<LI>
(network-transparent) drop support with the KDE filemanager</LI>
<LI>
printing to PostScript (file or printer)</LI>
<LI>
preliminary WMF support</LI>
<LI>
export to raster image formats (GIF, PNG, XPM) and Encapsulated Postscript</LI>
<LI>
import of Xfig files</LI>
</UL>
The installation requires a working KDE 1.0, QT 1.40 as well as gcc-2.8.1
or egc-1.03. KIllustrator is tested on Linux, FreeBSD and Solaris.
<P>For further information (screenshots, download) please consult my homepage
at:
<UL><A HREF="http://wwwiti.cs.uni-magdeburg.de/~sattler/killustrator.html">http://wwwiti.cs.uni-magdeburg.de/~sattler/killustrator.html</A></UL>
Please, for question, comments, bug reports or contributions e-mail me
at <A HREF="mailto:kus@iti.cs.uni-magdeburg.de">kus@iti.cs.uni-magdeburg.de</A>.
<P>Kai-Uwe Sattler
<BR>
<HR WIDTH="100%">
<H2>
RenderPark</H2>
<B><I><FONT COLOR="#CC6600">RenderPark</FONT></I></B> is a photo-realistic
rendering tool being developed at the Computer Graphics Research Group
of the Katholieke Universiteit Leuven, in Belgium. The goal is to offer
a solid implementation of many existing photo-realistic rendering algorithms
in order to compare them on a fair basis, evaluate benefits and shortcomings,
find solutions for the latter and to develop new algorithms that are more
robust and efficient than the algorithms that are available today. RenderPark
will offer you several state-of-the-art rendering algorithms that are not
yet present in other rendering packages, not even in expensive ones. Allthough
RenderPark is in the first place a test-bed for rendering algorithms, it
is evolving towards a full-featured physics-based global illumination rendering
system.
<P><A HREF="http://www.cs.kuleuven.ac.be/cwis/research/graphics/RENDERPARK/">http://www.cs.kuleuven.ac.be/cwis/research/graphics/RENDERPARK/</A>
<BR>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#000000" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><IMG SRC="../gx/hammel/cleardot.gif" HEIGHT=1 WIDTH=1></TD>
</TR>
</TABLE>
<!--
-- Did You Know Section
-->
<H4>
Did You Know?</H4>
<UL>...there are two True Type<SUP>®</SUP> font servers based on the
<A HREF="http://www.freetype.org/">FreeType</A>
package: <A HREF="http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/">xfsft</A>
and <A HREF="ftp://sunsite.unc.edu/pub/Linux/X11/fonts">xfstt</A>.
The latter is reported to have some problems with fonts over 90 pixels
high and appears to go into "memory starved mode" after extensive use of
the Text tool in the Gimp. Aside from these issues, however, both
are reported to be fairly stable servers.
<P>...The computer magazine PC Chip will be publishing an interview with
<B><FONT COLOR="#006600">Ton
Roosendaal,</FONT></B> owner of <B>Not a Number
</B>which is the company
bringing us the 3D modeller <A HREF="http://www.neogeo.nl/blender.html">Blender</A>.
This interview has been placed <A HREF="http://lji.purger.com/cool/pcchip/ton.html">online</A>
so readers can get an early glimpse at it.</UL>
<!--
-- Q and A Section
-->
<H4>
<B><FONT SIZE=+0>Q and A</FONT></B></H4>
<I>Q: Is there a way to include carriage returns with the text tool, or
to align phrases created with individual uses of the text tool?</I>
<P>A: I didn't know the answer to this one, but found the following
answer on the Gimp-User mailing list (unfortunately I didn't get the responders
name - my apologies to that person):
<BLOCKQUOTE>Try the "Script-fu --> Utils --> ASCII 2 Image Layer" command.
This allows you to import a text file as one or more layers of text.</BLOCKQUOTE>
Note that this Script is available either from the <B>Image Window</B>
menu's Script-Fu option or from the <B>Xtns</B> menu's Script-Fu option.
<P><I>Q: Mark Lenigan (<A HREF="mailto:mlenigan@umdsun2.umd.umich.edu">mlenigan@umdsun2.umd.umich.edu</A>)
wrote to the Gimp User mailing list:</I>
<BLOCKQUOTE><I>I'm trying to create a transparent GIF with a drop shadow
for the title graphic on my Web page. I'm pretty much following the
cookbook from <A HREF="http://www.gimp.org/tutorials">www.gimp.org/tutorials</A>,
except that I'm not including the background color layer and using "Merge
Visible Layers" to keep the final image transparent. Everything goes
fine until I need to convert the image to an indexed image just before
I save it in the .gif format file. At that point the shadow in my
image immediately disappears and the text seems to lose its anti-aliasing.
Can anyone shed some light on to this?</I></BLOCKQUOTE>
A: <A HREF="mailto:Simon.Budig@unix-ag.org">Simon Budig</A> responded:
<BLOCKQUOTE>Yes. Gimp can only handle 1-bit transparency in indexed color
mode. So when you convert an image to indexed the different levels of transparency
will get lost. There is the great "Filters/Colors/Semiflatten" plugin.
It merges all partially transparent regions against the current Backgroundcolor.
Select a BG-Color (i.e. matching to the BG-Color of your Web-page) and
watch the effect of the plugin. Then you can convert your Image to Indexed
and save it as GIF. (GIF can also handle just 1-bit transparency).</BLOCKQUOTE>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#000000" NOSAVE >
<TR>
<TD><IMG SRC="../gx/hammel/cleardot.gif" HEIGHT=3 WIDTH=1></TD>
</TR>
</TABLE>
<H2>
Reader Mail</H2>
<P><BR><A HREF="mailto:zen@getsystems.com">zen@getsystems.com</A> wrote:
<UL>I'd like to hear more technical details of the internals of Gimp, and
comparing Gimp to photoshop - eg. Photoshop 5 is now out with multiple
undo - undo history list, even.</UL>
<B><FONT COLOR="#993300">'Muse</FONT></B>: Unfortunately, I can't
do this sort of comparison. I don't run anything but Unix boxes (specifically
Linux) at home and don't have access to any Photoshop packages. I
might be able to do the comparison based on Photoshop texts, but thats
the best I could do.
<UL>Also modelling tools. Gimp is 2D. Where is 3D? Pov-Ray can render,
but is there anything to compare with say Lightwave, or 3D-StudioMax?</UL>
<B><FONT COLOR="#993300">'Muse</FONT></B>: There are no real competitors
to Lightwave or 3D-StudioMax for Linux. There are quite a few modellers
available, each with different levels of sophistication. But none
that compares to the sophistication of either of the two tools you mention.
You can find a list of modellers in my <A HREF="http://www.graphics-muse.org/muse/jun97/gm.html">June
1997 Graphics Muse </A>column. Not all of the links in that issue
are still valid. Some of the modellers seem to have disappeared and
some have changed URLs. You can try a search using the package name
through <A HREF="http://freshmeat.net">freshmeat.net</A> if the links in
the June 1997 issue don't work for you.
<P>One modeller that was not listed in that issue but that looks quite
interesting is Blender, which is a commercial package that has only recently
been released for free (no source code) to Linux users. I hope to
do a review of it soon. However, the last version I tried was not
documented sufficiently to allow me to understand how to do even the most
basic tasks. The interface is complex and feature rich, but not intuitive
to 3D newbies.
<UL>Distributed rendering.</UL>
'<B><FONT COLOR="#993300">Muse</FONT></B>: I'll see what I can do
about this. One tool to consider is <A HREF="http://www-mddsp.enel.ucalgary.ca/People/adilger/povray/pvmpov.html">PVMPOV</A>,
a patch to POV-Ray to allow for distributed rendering across multiple systems
on a network. <A HREF="http://netlib2.cs.utk.edu/pvm3/">PVM</A> is
the Parallel Virtual Machine, a package for distributed processing used
on many Unix systems. You should probably note that this is a patch
to POV-Ray, so you'll need to understand how to apply patches to source
code in order to use it.
<UL>Just some things I'd be delighted to read about.
<BR>Cheers,
<BR>Zen.</UL>
<B><FONT COLOR="#993300">'Muse</FONT></B>: Again, thanks for the
ideas. I'll see what I can do.
<BR>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#000000" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><IMG SRC="../gx/hammel/cleardot.gif" HEIGHT=1 WIDTH=1></TD>
</TR>
</TABLE>
<A NAME="webwonderings"></A>
<BR><IMG SRC="../gx/hammel/webwonderings.jpg" HEIGHT=57 WIDTH=246>
<H2>
Managing your Perl scripts: using 'require'</H2>
<A HREF="http://www.graphics-muse.org/muse/aug98/gm.html">Last month</A>
we talked about accessing an mSQL database from CGI scripts using Perl
with two modules: CGI.pm and Msql. In the example described
there we built a couple of HTML tables and embedded some text stored in
a table in an mSQL database. It turns out that generating HTML using
CGI.pm is quite simple and using Perl with the Msql module makes combining
your HTML output with information from a database really rather painless.
<P>But that example was extremely simple. Real world examples often
have dynamic pages that are built from multiple databases. And each
page often links to other dynamically built pages that provide some, or
even all, of the same information from those databases. In other
words, parts of each page contain the same HTML formatting and data.
How can you avoid having to duplicate that HTML in each page?
<P>With older static page development methods there really weren't any
methods for including common regions into multiple pages unless you used
frames. The frames allowed you to create a region on the browser
display that would be a single page of HTML that could be displayed along
with various other pages. In this way you need only maintain a single
copy of that one common page. From a Web developers point of view
this was an ideal situation - it meant the probability of error in trying
to update identical HTML in multiple pages was eliminated. It also
meant less work. But to readers of those pages it could mean frustration,
since not all browsers at the time supported frames. Even now, frame
handling is not consistant between the two main browsers, Netscape Navigator
and Microsoft's Internet Explorer. Although frames can be used to
produce some terrific Web pages, they are not the ideal solution for supporting
different browsers, especially older browsers.
<P>Fortunately, this problem can be overcome with our new friend Perl.
The method for inclusion in multiple pages of common formats and data is
simple. However, the management of these common regions takes a little
thought. Lets first look at how to include Perl code from different
files into your main Perl script.
<P>In perl, a subroutine or other piece of common code would be written
in a <B><FONT COLOR="#006600">module</FONT></B>, a separate file of perl
code. Modules can be included at any point within a perl script.
By default, Perl looks at a special variable called <TT><FONT SIZE=-1>@INC</FONT></TT>
to determine where to find these modules. Also by default, the current
working directly, ".", is listed in the <TT><FONT SIZE=-1>@INC </FONT></TT>variable
as the last directory to search for modules. <B>Note</B>: <TT><FONT SIZE=-1>@INC</FONT></TT>
is a list variable, that is, it is an array of strings with each string
being the name of a directory to search for modules.
<P>To include a module into your main Perl cgi script you would use the
require function. The format is simple:
<UL><TT><FONT SIZE=-1>require 'modulename.pl';</FONT></TT></UL>
This function tells the Perl interpreter to include the named module <I>but
only if it has not been included previously</I>. In this way you
can include the same module multiple times without worry that doing so
will cause serious problems.
<P>When the module is included the code within it is run at the point of
inclusion. You can, if you so desire, write the module to have code
that runs right then and there using variables with a global scope (ie
they are visible to the original program as well as the included module).
However, it would probably make more sense to write the module as a subroutine
call instead. You can still use globally scoped variables but by
making the module a subroutine call you can guarantee the code is not run
until you specifically request it. You can also run it more than
one time if you want.
<P>So how do you make a subroutine? Just wrap the code inside the
following construct:
<UL><TT><FONT SIZE=-1>sub subname {</FONT></TT>
<BR><TT><FONT SIZE=-1>}</FONT></TT>
<BR><TT><FONT SIZE=-1>1</FONT></TT></UL>
The 1 at the end is important - modules must include this or else the require
function will fail. Now invoke the subroutine with the following
command:
<UL><TT><FONT SIZE=-1>&subname();</FONT></TT></UL>
The ampersand is important - you should always prefix calls to your subroutines
with the ampersand. Although things may work properly if you don't,
proper Perl syntax suggests the results can be unexpected if you don't
use the ampersand.
<P>If you want to pass parameters into the subroutine you can do so as
a list. For example:
<UL><TT><FONT SIZE=-1>&subname("one item");</FONT></TT>
<BR><TT><FONT SIZE=-1>&subname("one item", "two items");</FONT></TT>
<BR><TT><FONT SIZE=-1>&subname(@listitems);</FONT></TT></UL>
To access the command line arguments in the subroutine you can do something
like the following:
<UL><TT><FONT SIZE=-1>sub subname</FONT></TT>
<BR><TT><FONT SIZE=-1>{</FONT></TT>
<BR><TT><FONT SIZE=-1> # @_ contains all parameters to the
subroutine.</FONT></TT>
<BR><TT><FONT SIZE=-1> # We first assign these to the @params
variable because the variable</FONT></TT>
<BR><TT><FONT SIZE=-1> # name "@params" is a bit more intuitive
than "@_".</FONT></TT>
<BR><TT><FONT SIZE=-1> @params = @_;</FONT></TT>
<P><TT><FONT SIZE=-1> foreach $arg (@params)</FONT></TT>
<BR><TT><FONT SIZE=-1> {</FONT></TT>
<BR><TT><FONT SIZE=-1> # now run through
each parameter one at a time</FONT></TT>
<BR><TT><FONT SIZE=-1> # and process it.</FONT></TT>
<BR><TT><FONT SIZE=-1> if ( "$arg" eq ""
)</FONT></TT>
<BR><TT><FONT SIZE=-1> {</FONT></TT>
<BR><TT><FONT SIZE=-1>
...</FONT></TT>
<BR><TT><FONT SIZE=-1> }</FONT></TT>
<BR><TT><FONT SIZE=-1> }</FONT></TT>
<BR><TT><FONT SIZE=-1>}</FONT></TT></UL>
<CENTER><<A HREF="more-musings.html#1">continued</A>></CENTER>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#000000" NOSAVE >
<TR>
<TD><IMG SRC="../gx/hammel/cleardot.gif" HEIGHT=1 WIDTH=1></TD>
</TR>
</TABLE>
<A NAME="musings"></A>
<BR>
<TABLE BORDER=0 COLS=1 WIDTH="100%" >
<TR>
<TD><IMG SRC="../gx/hammel/musings.gif" ALT="Musings" HEIGHT=52 WIDTH=247 ALIGN=LEFT></TD>
</TR>
</TABLE>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#000000" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><IMG SRC="../gx/hammel/cleardot.gif" HEIGHT=2 WIDTH=2></TD>
</TR>
</TABLE>
<TABLE BORDER=0 CELLPADDING=0 COLS=3 WIDTH="100%" NOSAVE >
<TR NOSAVE>
<TD VALIGN=TOP ROWSPAN="3" WIDTH="50%" NOSAVE>
<H2>
libgr - A collection of image libraries</H2>
Many users of graphics tools discussed in this column will find that those
tools are dependent on any number of file format specific libraries.
For example, the Gimp needs libraries for JPEG, PNG, PNM, MPEG and XPM
in order to support these file formats. The Gimp doesn't understand
how to read these files directly - it is dependent on the image format
libraries for assistance in reading and writing files in these formats.
Since the Gimp (and other tools) don't include these libraries in their
source distributions, users are often required to retrieve and install
these libraries manually.
<P>Normally users would download format specific libraries and build them
separately. Each of the formats mentioned earlier, plus a few others,
are available somewhere on the Net in source format. Most are available
somewhere on the Sunsite archives. Unfortunately, not all of these
format specific libraries are easily built on Linux. The Gimp
User Mailing list is often flooded with questions about how to get the
JPEG library to build shared libraries. By default this library doesn't
build a Linux ELF shared library. In fact, even with the proper configuration
it still only builds a.out shared libraries. A better solution is
needed.
<P>Enter <B><I><FONT COLOR="#CC6600">libgr</FONT></I></B>. This is
a collection of image format libraries that have been packaged together
and organized to easily build and install on Linux systems. The package
builds both static and ELF shared libraries automatically. The distribution
is maintained by Neal Becker (<A HREF="mailto:neal@ctd.comsat.com">neal@ctd.comsat.com</A>)
and is based on the work done originally by Rob Hooft (<A HREF="mailto:hooft@EMBL-Heidelberg.DE">hooft@EMBL-Heidelberg.DE</A>).
The latest version, 2.0.13, of libgr can be retrieved from <A HREF="ftp://ftp.ctd.comsat.com:/pub/linux/ELF">ftp.ctd.comsat.com:/pub/linux/ELF</A>.
<P>Libgr contains the following set of graphics libraries:
<UL>
<LI>
fbm</LI>
<LI>
jpeg</LI>
<LI>
pbm</LI>
<LI>
pgm</LI>
<LI>
pnm</LI>
<LI>
ppm</LI>
<LI>
png</LI>
<LI>
rle</LI>
<LI>
tiff</LI>
</UL>
It also contains the <I>zlib</I> compression library which is used specifically
by the TIFF and PNG graphics libraries. It may also, although I'm
not sure of this, be used by the FBM library to (at a minimum) support
the GIF format.
<P>FBM is the Fuzzy Pixmap Manipulation library. This package is
related to, but not part of, the PBMPlus package by Jef Poskazner.
The library can read and write a number of formats, including:
<UL>
<LI>
Sun rasterfiles </LI>
<LI>
GIF files </LI>
<LI>
Amiga IFF </LI>
<LI>
PCX </LI>
<LI>
PBM </LI>
<LI>
Face files (CMU format for 1bit files)</LI>
<LI>
FBM </LI>
<LI>
Utah RLE files (from the Utah Raster Toolkit)</LI>
</UL>
It also supports quite a number of image operations, all of which are described
in the <I>Features</I> text file in the fbm directory. Like PBM,
FBM is a format designed specifically by the FBM library author for handling
images internal to the library (although you can write that format to a
file too).
<P>JPEG is actually a standard that defines a suite of encodings for full-color
and continuous-tone raster images<SUP><A HREF="#footnote-1">1</A></SUP>.
The software for this library, which is essentially the same as the software
that comes in the standalone JPEG library package found on the <A HREF="ftp://ftp.gimp.org/pub/gimp/libs">Gimp's
ftp site</A>, comes from the Independent JPEG Group and, as far as I can
tell, supports the complete JPEG definition. JPEG is a common format
for the Web since it is one of the formats listed by the WC3 in the early
HTML specifications for Web images.
<P>The PBM, PGM, PNM, and PPM formats are all part of the NetPBM/PBMPlus
packages. These formats are often used as intermediary formats for
processing by the NetPBM/PBMPlus tools. Although these libraries
provide the capability of saving image files in these formats, I have not
seen this as a common practice. This is probably due to the fact
that the files tend to be rather large and the image formats are not generally
supported by non-Unix platforms. These formats are widely supported,
however, by Unix-based graphics software.
<P>The PNG library supports the relatively new Portable Network Graphics
format. This format was designed, at least in part, to replace the
GIF format which had both licensing as well as a few format limitations.
PNG is now an officially supported format by the WC3 although support for
these images is not commonly mentioned by either Netscape or MSIE.
I'm not sure if either supports PNG yet.
<P>RLE is Run Length Encoding, a format from the University of Utah designed
for device independent multilevel raster images. Although the format
is still in use today, you won't see it referenced often in relation to
tools like the Gimp (though the Gimp does support the format) or 3D rendering
engines like BMRT or POV-Ray.
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<CENTER>
<P><A HREF="#next-column">-Top of next column-</A></CENTER>
</TD>
<TD ROWSPAN="3" WIDTH="2" BGCOLOR="#000000" NOSAVE><IMG SRC="../gx/hammel/cleardot.gif" HEIGHT=2 WIDTH=2></TD>
<TD WIDTH="49%" NOSAVE><LH><A NAME="next-column"></A><B>More Musings...</B></LH>
<UL>
<LI>
<A HREF="more-musings.html#2">Fun with QBist</A></LI>
</UL>
</TD>
</TR>
<TR NOSAVE>
<TD BGCOLOR="#000000" NOSAVE><IMG SRC="../gx/hammel/cleardot.gif" HEIGHT=1 WIDTH=1></TD>
</TR>
<TR NOSAVE>
<TD VALIGN=TOP NOSAVE>Finally, the TIFF library is a set of routines for
supporting the reading and writing of TIFF files. TIFF files are
popular because of their wide support on multiple platforms (Mac, MS, and
Unix) and because of their high quality images. However, they tend
to be extremely large images since they do not use any form of compression
on the image data.
<H3>
Building the package</H3>
Once you have retrieved the libgr package you can unpack it with the following
command:
<UL><TT><FONT SIZE=-1>% tar xvzf libgr-2.0.13.tar.gz</FONT></TT></UL>
This will create a directory called libgr-2.0.13. Under this directory
you will find the format specific directories, Makefiles and a number of
text files. In the INSTALL text file you will find instructions on
how to build the software. For Linux this is a simple process of
typing
<UL><TT><FONT SIZE=-1>% make most</FONT></TT></UL>
which will build all the software but not install it. I recommend
doing this once to test that the build actually completes successfully
for all directories before trying to install anything. If the build
fails and you attempt to install you may confuse yourself as to what has
and hasn't been installed correctly. After the build completes, check
each directory and see if the lib*.so files - the shared libraries - have
been created. If all appears to have gone well, type
<UL><TT><FONT SIZE=-1>% make install</FONT></TT></UL>
This will install the libraries for you. There are other options
available for building and installing. Read the <I>INSTALL</I> text
file in the top level directory for details on the other options.
<P>At this point you're ready to use these libraries with other tools,
such as the Gimp.
<H3>
Why use libgr vs the individual libraries? </H3>
Libgr provides support for a large range of image file formats, but it
doesn't support every common and/or popular format. So why use it
instead of the individual format libraries? One reason is convenience.
Instead of having to retrieve a whole slew of packages you can grab one.
Second, as mentioned earlier, not all of the individual packages are setup
to build proper ELF shared libraries for Linux. Libgr is specifically
designed for building these type of libraries.
<P>What libraries does libgr not include that you might want? One
fairly common X Windows format is XPM. Libgr does not support this
format so you'll need to retrieve the XPM library separately. Fortunately,
most Linux distributions already come with this library prebuilt and available
to you during installation of the operating system.
<P>Libgr also does not support any animation file formats. If you
have need to read or write files in MPEG, FLI or FLC formats, for example,
you will need to locate and install those libraries individually.
<H3>
Caveats</H3>
One minor caveat to using the libgr package exists with the zlib distribution.
According to the documentation for libgr (in the <I>NEWS</I> text file)
the zlib release numbers went <B>down</B> at some point. This means
its possible for you to have an older version of zlib installed even though
its version number is higher than the one in libgr. How to resolve
this is a tricky question but in my opinion it makes sense to install the
zlib that comes with libgr because its known to work with the rest of the
image libraries in the libgr package. If you agree with this logic
then you will probably want to remove the old version of zlib first, before
doing the <TT><FONT SIZE=-1>make install </FONT></TT>for libgr.
<P>
<H3>Summary</H3>
<P>Libgr is not a drop-in replacement for all your image file format needs,
but it does offer added convenience to the Linux users by providing a Linux-specific,
easy to use build and install environment. Since the libraries included
in the libgr package do not change all that often it makes good system
management sense to deal with the one distribution than to try to deal
with updates to multiple image format packages. And if you're dealing
with building the Gimp, which requires many image libraries, libgr is a
much simpler solution to get you up and running in the least amount of
time and with the least amount of frustration.
<BR>
<CENTER>
<P><IMG SRC="./gx/hammel/qbist-small.jpg" BORDER=2 HEIGHT=200 WIDTH=200></CENTER>
<BR>
<HR WIDTH="100%">
<BR><A NAME="footnote-1"></A><FONT SIZE=-2>1. C. Wayne Brown and
Barry J. Shepherd, Graphics File Formats: Reference and Guide, Prentice
Hall/Manning, 1995. </FONT></TD>
</TR>
</TABLE>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#000000" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><IMG SRC="../gx/hammel/cleardot.gif" HEIGHT=2 WIDTH=2></TD>
</TR>
</TABLE>
<A NAME="resources"></A>
<TABLE BORDER=0 COLS=1 WIDTH="100%" >
<TR>
<TD><IMG SRC="../gx/hammel/resources.gif" ALT="Resources" HEIGHT=57 WIDTH=246 ALIGN=LEFT></TD>
</TR>
</TABLE>
The following links are just starting points for finding more information
about computer graphics and multimedia in general for Linux systems. If
you have some application specific information for me, I'll add them to
my other pages or you can contact the maintainer of some other web site.
I'll consider adding other general references here, but application or
site specific information needs to go into one of the following general
references and not listed here.
<BR>
<TABLE BORDER=0 COLS=2 WIDTH="100%" NOSAVE >
<TR NOSAVE>
<TD NOSAVE>Online Magazines and News sources
<BR><A HREF="http://www.news.com/">C|Net Tech News</A>
<BR><A HREF="http://www.eklektix.com/lwn/">Linux Weekly News</A>
<BR><A HREF="http://slashdot.org/">Slashdot.org</A>
<BR><A HREF="http://www.dv.com">Digital Video</A>
<BR><A HREF="http://www.cgw.com">Computer Graphics World</A>
<P>General Web Sites
<BR><A HREF="http://www.graphics-muse.org/linux/lgh.html">Linux Graphics
mini-Howto</A>
<BR><A HREF="http://www.graphics-muse.org/ugu/ugu.html">Unix Graphics Utilities</A>
<BR><A HREF="http://www.bright.net/~dlphilp/linux_soundapps.html">Linux
Sound/Midi Page</A>
<P>Some of the Mailing Lists and Newsgroups I keep an eye on and where
I get much of the information in this column
<BR><A HREF="http://www.gimp.org">The Gimp User and Gimp Developer Mailing
Lists</A>.
<BR><A HREF="http://www.irtc.org">The IRTC-L discussion list</A>
<BR><A HREF="news://comp.graphics.rendering.raytracing">comp.graphics.rendering.raytracing</A>
<BR><A HREF="news://comp.graphics.rendering.renderman">comp.graphics.rendering.renderman</A>
<BR><A HREF="news://comp.graphics.api.opengl">comp.graphics.api.opengl</A>
<BR><A HREF="news://comp.os.linux.announce">comp.os.linux.announce</A></TD>
<TD><IMG SRC="../gx/hammel/gmuse.jpg" HSPACE=10 HEIGHT=270 WIDTH=190></TD>
</TR>
</TABLE>
<A NAME="future"></A>
<H2>
Future Directions</H2>
Next month:
<P><A HREF="mailto:mjhammel@graphics-muse.org">Let me know what you'd like
to hear about!</A>
<P>
<HR WIDTH="100%">
<DIV ALIGN=right><FONT SIZE=-1>© 1998 <A HREF="mailto:mjhammel@graphics-muse.org">Michael
J. Hammel</A></FONT></DIV>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Michael J. Hammel <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./stemen.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./henning1.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<!-- =============================================================
This Page Designed by Michael J. Hammel.
Permission to use all graphics and other content for private,
non-commerical use is granted provided you give me (or the
original authors/artists) credit for the work.
CD-ROM distributors and commercial ventures interested in
providing the Graphics Muse for a fee must contact me,
Michael J. Hammel (mjhammel@csn.net), for permission.
============================================================= !--><A NAME="musings"></A>
<TABLE>
<TR>
<TD>
<H2>
More...</H2>
<IMG SRC="../gx/hammel/musings.gif" ALT="Musings" HEIGHT=52 WIDTH=247 ALIGN=LEFT></TD>
</TR>
</TABLE>
<TABLE>
<TR>
<TD></TD>
</TR>
</TABLE>
<IMG SRC="../gx/hammel/cleardot.gif" ALT="indent" VSPACE=5 HEIGHT=1 WIDTH=1 ALIGN=LEFT>
<TABLE WIDTH="100%" >
<TR>
<TD ALIGN=RIGHT WIDTH="100%"><FONT SIZE=-2>© 1998 <A HREF="mailto:mjhammel@graphics-muse.org">Michael
J. Hammel</A></FONT></TD>
</TR>
<TR>
<TD VALIGN=TOP BGCOLOR="#000000" cellpadding="0" cellspacing="0"><IMG SRC="../gx/hammel/cleardot.gif" ALT="indent" ALIGN=LEFT></TD>
</TR>
</TABLE>
<A NAME="1"></A>
<H2>
Managing your Perl scripts: using 'require' - continued</H2>
Ok, so now you know how to make a subroutine and how to include it in your
Perl cgi script. What does this have to do with building common HTML
code for multiple pages? Simple: by assigning the HTML constructs,
plus any associated database information, to global variables you can then
simply add the variable to your main pages at the point of interest.
For example, lets say you want to include an advertising banner across
the top of all pages. You can write a small module that builds a
table for the ad, centers it on the page and assigns it to the global variable
$adbanner. This might look something like this:
<UL><TT><FONT SIZE=-1>#!/usr/bin/perl5</FONT></TT>
<BR><TT><FONT SIZE=-1># Include the CGI.pm and Msql modules</FONT></TT>
<BR><TT><FONT SIZE=-1>use CGI qw/:standard :html3 :netscape/;</FONT></TT>
<BR><TT><FONT SIZE=-1>use Msql;</FONT></TT>
<P><TT><FONT SIZE=-1># The subroutine to create a table for our ads.</FONT></TT>
<BR><TT><FONT SIZE=-1>sub setads</FONT></TT>
<BR><TT><FONT SIZE=-1>{</FONT></TT>
<BR><TT><FONT SIZE=-1> # Open a connection to the database.</FONT></TT>
<BR><TT><FONT SIZE=-1> my $dbh1 = Msql->connect();</FONT></TT>
<BR><TT><FONT SIZE=-1> $dbh1->selectdb('mydb');</FONT></TT>
<P><TT><FONT SIZE=-1> # Get the ads from the database.
We assume</FONT></TT>
<BR><TT><FONT SIZE=-1> # here that there is at least 1 ad in
the</FONT></TT>
<BR><TT><FONT SIZE=-1> # "ads" table. We also assume
the table has</FONT></TT>
<BR><TT><FONT SIZE=-1> # the format of</FONT></TT>
<BR><TT><FONT SIZE=-1> # 1. imagename</FONT></TT>
<BR><TT><FONT SIZE=-1> # 2. URL</FONT></TT>
<BR><TT><FONT SIZE=-1> # The results from the database query
are stored</FONT></TT>
<BR><TT><FONT SIZE=-1> # in the @results variable. This
list variable</FONT></TT>
<BR><TT><FONT SIZE=-1> # will contain one array element for
each field</FONT></TT>
<BR><TT><FONT SIZE=-1> # in the "ads" table.</FONT></TT>
<P><TT><FONT SIZE=-1> $sth2 = $dbh1->query("SELECT * FROM ads");</FONT></TT>
<BR><TT><FONT SIZE=-1> while ( (@result = $sth->fetchrow)</FONT></TT>
<BR><TT><FONT SIZE=-1> {</FONT></TT>
<BR><TT><FONT SIZE=-1> # Add a <td> entry
with the image for the ad</FONT></TT>
<BR><TT><FONT SIZE=-1> # linked to the specified
URL. The "a({-href"</FONT></TT>
<BR><TT><FONT SIZE=-1> # portion is where
we use the CGI.pm</FONT></TT>
<BR><TT><FONT SIZE=-1> # a() function to
establish the hyperlink.</FONT></TT>
<BR><TT><FONT SIZE=-1> push</FONT></TT>
<BR><TT><FONT SIZE=-1>
(@tableelments,</FONT></TT>
<BR><TT><FONT SIZE=-1>
td({-align=>'CENTER', -valign=>'CENTER'},</FONT></TT>
<BR><TT><FONT SIZE=-1>
a({-href=>"$result[1]"},</FONT></TT>
<BR><TT><FONT SIZE=-1>
img( { -src=>"/images/$result[0]",</FONT></TT>
<BR><TT><FONT SIZE=-1>
-alt=>"$results[1]",</FONT></TT>
<BR><TT><FONT SIZE=-1>
-border=>'0',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-hspace=>'0', -vspace=>'0' }</FONT></TT>
<BR><TT><FONT SIZE=-1>
)</FONT></TT>
<BR><TT><FONT SIZE=-1>
)</FONT></TT>
<BR><TT><FONT SIZE=-1>
)</FONT></TT>
<BR><TT><FONT SIZE=-1>
)</FONT></TT>
<BR><TT><FONT SIZE=-1> }</FONT></TT>
<UL> </UL>
<TT><FONT SIZE=-1> # Now assign a table to our global variable
and include the</FONT></TT>
<BR><TT><FONT SIZE=-1> # table elements we just created.</FONT></TT>
<BR><TT><FONT SIZE=-1> $adbanner = center(</FONT></TT>
<BR><TT><FONT SIZE=-1> table( {-border=>1,
-width=>'100%', -height=>'60'},</FONT></TT>
<BR><TT><FONT SIZE=-1>
Tr( @tableelements ),</FONT></TT>
<BR><TT><FONT SIZE=-1> )</FONT></TT>
<BR><TT><FONT SIZE=-1> );</FONT></TT>
<BR><TT><FONT SIZE=-1>}</FONT></TT>
<BR><TT><FONT SIZE=-1># Return true from included modules.</FONT></TT>
<BR><TT><FONT SIZE=-1>1</FONT></TT></UL>
Since embedding one Perl function inside another, especially with the use
of the CGI.pm functions, is such a common occurance I tend to align the
closing paranthesis so that I can keep track of which function has been
closed. You'll note in this example that the img() function (which
will print an HTML IMG tag) is an argument to the a() function (which assigns
a hypertext link to the image). This in turn is an argument to the
td() function. Such multilayer embedding becomes quite extensive
when you use CGI.pm table function (table(), Tr(), td()) to align elements
of your HTML pages. This is why you will often find yourself using
variables to which you assign Tr() and td() constructs and then simply
reference the variables within the table() construct. At a minimum
this makes the code easier to read. But even more important is that
you can create lists of td() constructs to stuff inside a Tr() construct
later by simply referencing the list variable.
<P>If we now include this module in our main script we can then print out
the advertisement table at any time we wish:
<UL><TT><FONT SIZE=-1>require 'setads.pl';</FONT></TT>
<BR><TT><FONT SIZE=-1>&setads();</FONT></TT>
<P><TT><FONT SIZE=-1>print header,</FONT></TT>
<BR><TT><FONT SIZE=-1> start_html(</FONT></TT>
<BR><TT><FONT SIZE=-1> -author=>'webmaster@graphics-muse.org',</FONT></TT>
<BR><TT><FONT SIZE=-1> -title=>'Our Little
Web Site',</FONT></TT>
<BR><TT><FONT SIZE=-1> -bgcolor=>'#000000',
-text=>'#000000'</FONT></TT>
<BR><TT><FONT SIZE=-1> ),</FONT></TT>
<P><TT><FONT SIZE=-1> $adbanner,</FONT></TT>
<P><TT><FONT SIZE=-1> table(</FONT></TT>
<BR><TT><FONT SIZE=-1> {-border=>0, -width=>'100%',
-height=>'97%',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-cellpadding=>0, -cellspacing=>0},</FONT></TT>
<BR><TT><FONT SIZE=-1> Tr(</FONT></TT>
<BR><TT><FONT SIZE=-1>
td({-align=>'LEFT', -valign=>'TOP',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-rowspan=>2, -width=>'110',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-bgcolor=>'#FFCC00'},</FONT></TT>
<BR><TT><FONT SIZE=-1>
$news_table),</FONT></TT>
<BR><TT><FONT SIZE=-1>
td({-align=>'CENTER', -valign=>'CENTER',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-width=>'78%',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-bgcolor=>'#FFCC00'},</FONT></TT>
<BR><TT><FONT SIZE=-1>
$nav_bar),</FONT></TT>
<BR><TT><FONT SIZE=-1>
td({-align=>'CENTER', -valign=>'TOP',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-rowspan=>2,</FONT></TT>
<BR><TT><FONT SIZE=-1>
-bgcolor=>'#FFCC00'},</FONT></TT>
<BR><TT><FONT SIZE=-1>
$book_table)</FONT></TT>
<BR><TT><FONT SIZE=-1> ),</FONT></TT>
<BR><TT><FONT SIZE=-1> Tr(</FONT></TT>
<BR><TT><FONT SIZE=-1>
td({-align=>'CENTER', -valign=>'TOP',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-height=>'80%',</FONT></TT>
<BR><TT><FONT SIZE=-1>
-bgcolor=>'#ffffff'}, $qd_table</FONT></TT>
<BR><TT><FONT SIZE=-1>
)</FONT></TT>
<BR><TT><FONT SIZE=-1> )</FONT></TT>
<BR><TT><FONT SIZE=-1> );</FONT></TT>
<BR><TT><FONT SIZE=-1> end_html;</FONT></TT></UL>
Here we printed out the ad banner right above another table that will contain
other information for this page. The variables $news_table, $nav_bar,
$book_table, and $qd_table were filled in by parts of the code not shown
here. They could just as easily have been filled in by other external
modules, just like $adbanner was.
<P>This last bit of code actually comes from the code I'm writing for the
new Graphics Muse web site. I have a common table definition for
all pages (the table printed after the $adbanner in the last example),
and modules for assigning HTML formats and data to the $news_table, $nav_bar
and $book_table. Then each main CGI script fills in the $qd_table
variable with page specific data. In this way I can make modifications
to the way data is displayed in, for example, the news_table by only having
to edit one script. Management of the site becomes much more simple
than having to edit all the scripts each time a single change to news_table
needs to be made and I avoid annoying many users by avoiding the use of
frames.
<P>In the short time I've been using Perl I've grown to truly appreciate
both its sophistication and its simplicity. Things that should be
simple to do are simple. Additional tools like CGI.pm and Msql make
integrating Perl with my Web site a breeze. I've managed to rebuild
my Web site from the ground up in less than a a couple of weeks and I'm
not even making full use of what Perl can do for me. If you manage
a Web site and have access to the cgi directory you should definitely consider
learning Perl, CGI.pm, and one of the many databases which Perl supports.
<BR>
<TABLE WIDTH="100%" >
<TR>
<TD VALIGN=TOP COLSPAN="4" BGCOLOR="#000000" cellpadding="0" cellspacing="0"><IMG SRC="../gx/hammel/cleardot.gif" ALT="indent" ALIGN=LEFT></TD>
</TR>
</TABLE>
<!-- ------------------------------------------------------------- --><!-- Part 2, if any --><!-- ------------------------------------------------------------- --><A NAME="2"></A>
<H2>
Fun with Qbist</H2>
<IMG SRC="./gx/hammel/qbist-example-1.jpg" HSPACE=15 VSPACE=10 BORDER=3 HEIGHT=400 WIDTH=400 ALIGN=RIGHT>One
of the more interesting plug-ins in the Gimp is <B><I><FONT COLOR="#993300">Qbist</FONT></I></B><FONT COLOR="#000000">,
written by <A HREF="mailto:jchrr@hrz.uni-bielefeld.de">Jens Ch. Restemeier</A>
and based on an algorithm from Jörn Loviscach that appeared in the
magazine <B><U>c't</U></B> in October 1995</FONT>. I've had quite
a good time playing with this plug-in creating backgrounds for logos and
other images. The filter is really pretty easy to use. The
plug-in dialog is made up of a set of 9 preview windows. By clicking
on any one of these the entire set is updated with new previews and the
preview you clicked on is displayed as the new middle preview. This
central preview is used as a <I>basis</I> to generate the rest of the previews.
You can generate a set of previews that are somewhat similar to the basis
preview by clicking on the middle preview. In most cases, at least
one of the previews will be significantly different from the basis.
Selecting another preview usually generates quite different previews, but
this isn't always guaranteed. <IMG SRC="./gx/hammel/qbist-dialog.jpg" HSPACE=15 VSPACE=10 HEIGHT=314 WIDTH=293 ALIGN=LEFT>The
algorithm is sufficiently random to make it possible that not only can
the other non-basis previews be radically different, they can also be nearly
exactly the same as the orginal. From a creative standpoint, I find
this rather interesting. At times, when I'm tired of coding or writing,
I pull this filter up and start to become creative. The patterns
it generates are on the edge of randomness, with just enough recognizable
geometry to make you say "No, thats not quite right, but its close".
The problem, of course, is it keeps you saying this ad infinitum until
you realize its long past midnight and you have just enough time for one
cup of coffee and a shower before you have to be to work. But this
is the kind of creativity I used to feel with coding when I first got my
hands on PC (ok, it was a TRS-80, but you get the point). Its refreshing
to feel it again.
<P>Once you've selected the preview you want in your image, making sure
its been selected and is displayed as the basis preview, you can add it
to the current layer of your Image Window by clicking on OK. <IMG SRC="./gx/hammel/qbist-example-2.jpg" HSPACE=15 VSPACE=10 BORDER=2 HEIGHT=400 WIDTH=400 ALIGN=RIGHT>Qbist
will fill the entire layer, or the active selection, with a scaled version
of the basis preview. Since there are no blend modes for Qbist the
selection/layer will be completely overwritten with the Qbist pattern.
The real trick to using these patterns comes from being able to make selections
out of the geometrically connected pieces, creating drop shadows from the
selections and slipping other images or text inbetween the layers.
<BR>
<H3>
Some drawbacks and limitations</H3>
Although I really like this filter, it does have a few drawbacks.
First, opening the dialog doesn't always get you the same set of previews
as the last time you opened the window, although the basis is the same.
It would be nice if you could get the same set of previews since you may
see another preview in the current Qbist session that you'd like to use
after selecting the current basis. Unfortunately you won't be able
to do that since the dialog closes after you click on the OK button.
You can save the basis preview, but reloading it later has the same effect
- the rest of the previews are random and not likely to be the same as
the ones you had seen originally with that basis.
<P>Another problem is that the Save/Load options don't deal with a Qbist-specific
directory. A number of other plug-ins manage saved files within directories
under the users $HOME/.gimp directory. It shouldn't be difficult
to update Qbist to do the same. Its just a matter of getting around
to updating the code.
<P>Speaking of the code, a quick examination of the source to Qbist shows
some hard coded values used in various places that appear to be the sort
of values that should be user configurable. The interface could be
expanded to allow the user to change these. I may try this sometime
soon, just as an experiment to see how changes to these values affect the
previews. <IMG SRC="./gx/hammel/qbist-example-3.jpg" HSPACE=15 VSPACE=10 HEIGHT=400 WIDTH=400 ALIGN=LEFT>Since
I'm not familiar with the algorithm its unclear if these values are necessarily
specific or just good initial seed values. Another option might be
to allow the user to choose some color sets from which Qbist could render
its patterns. Right now Qbist chooses colors on its own, without
input from the user.
<P>Finally, probably the most annoying aspect to Qbist is that there are
no blend modes available. I'd love to be able to render a Qbist pattern
in one selection and then use another selection to blend a different pattern
over a corner of the first selection. I can do this with multiple
layers, but it would be more convenient to be able to do this from within
Qbist itself. Qbist renders it patterns in both the previews and
the image window fairly quickly, so changes like adding blend modes shouldn't
cause serious performance problems.
<P>Qbist is a plain fun filter. Like many of the Render menu filters,
Qbist gives you a chance to explore some of your true creativeness.
By letting you wander through a random collection of patterns it lets you
play with your computer in a way that a game can never quite equal.
Although your control over these patterns is a bit limited, the patterns
themselves are sufficiently fascinating to make Qbist a filter well worth
exploring.<BR CLEAR=BOTH>
<BR>
<TABLE WIDTH="100%" >
<TR>
<TD VALIGN=TOP COLSPAN="4" BGCOLOR="#000000" cellpadding="0" cellspacing="0"><IMG SRC="../gx/hammel/cleardot.gif" ALT="indent" ALIGN=LEFT></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" >
<TR>
<TD ALIGN=RIGHT><FONT SIZE=-2>© 1997 by <A HREF="mailto:mjhammel@graphics-muse.org">Michael
J. Hammel</A></FONT></TD>
</TR>
</TABLE>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<H2>Installing StarOffice 4.0 on RedHat 5.1</H2>
<FONT FACE="Comic Sans MS">
by <A HREF="mailto:editor@cpureview.com"><I>William Henning</I></A><BR>
Editor, <A HREF="http://www.cpureview.com">CPUReview</A></FONT><BR>
Copyright July 29, 1998<BR>
ALL RIGHTS RESERVED<BR>
<P></P>
<P>Today while shopping, I found StarOffice 4.0 (Commercial version) at a
local cdrom shop. I already own (and use) ApplixWare, but I could not
resist - given the usually positive reviews, I just *had* to try it. </P>
<P>Please note that <A HREF="http://www.caldera.com">Caldera</A> currently
has a special on StarOffice 4.0 - $49.95US. That is an excellent price for
a commercial license. Also note that StarOffice is available via ftp
without cost for non-commercial use.</P>
<P>I wanted to see how it would perform on a fairly low performance system,
so I loaded it onto my server. In order to benefit others, I thought I
would document my installation. I will use it for a few days, after which
I will write a review on my 'user' experiences.</P>
<H3>The Software</H3>
<P>StarOffice comes on two cd's, in a jewel case. The first CD contains
StarOffice and also appears to contain OpenLinux Lite along with some
additional contrib packages. The second CD, a pleasant surprise, appears
to be OpenLinux Base. This means I will have a busy couple of nights - I'm
going to have to try out OpenLinux. </P>
<H3>The Computer</H3>
<UL>
<LI>Tyan Titan-II motherboard (Socket 5, 256k sync cache) </LI>
<LI>WinChip 200Mhz (yes, it does work in single voltage motherboards!)</LI>
<LI>S3-968 video card, 4Mb of VRAM running at 1024x768x16M</LI>
<LI>32Mb FPM memory, 127Mb swap</LI>
<LI>24x Panasonic cdrom</LI>
<LI>6.4Gb Quantum ST</LI>
<LI>DLINK 500TX 10/100Mbps 10BaseT, running at 10Mbps</LI>
</UL>
<H3>The Operating System</H3>
<UL>
<LI>RedHat 5.1</LI>
<LI>reasonably up to date with updates from RedHat</LI>
</UL>
<H3>The Installation<BR>
</H3>
<P>I read the instructions - and the 'README' file. I logged in using my
regular user account, went to /mnt/cdrom/StarOffice_40, and entered
'./setup'.</P>
<P>After the installation program started up, I got the infamous dialog "line
1: syntax error at token 'I' expected declarator; i.e. File..."
prompting me to press ok.</P>
<P>In all honesty, I must admit I was expecting this problem - I remember
people asking for help with this very same problem while reading the Linux
news groups. I went to <A HREF="http://www.dejanews.com">Dejanews</A> to
find out how people solved this problem.</P>
<P>I used "Staroffice 4.0 RedHat 5.1" as my search string, and
got 61 matches. </P>
<H3>First Try</H3>
<P>The very first match was a posting from Simon Gao, who on July 27 wrote:</P>
<BLOCKQUOTE>This is a well known problem with RedHat 5.x. The problem is
that StarOffice4 requires libc.5.4.28 above file system. Check out at
<A HREF="http://www.waldherr.org/soffice/">www.waldherr.org/soffice</A>
and you find how to solve this problem.</BLOCKQUOTE>
<P>Off I went to Stefan Waldherr's
<A HREF="http://www.waldherr.org/soffice/">web site</A>. There I found
that the version of StarOffice I purchased today is already outdated - and
that I should download the latest version. As most people who purchase the
commercial StarOffice package will get the same version I got (and as I
did not want to wait to download 4.0.3 yet) I just downloaded the
staroffice wrapper and proceeded to see if I could install 4.0 as shipped
on the CD.</P>
<P>I become root to install the rpm. The rpm would not install, I was
treated to an error message: </P>
<BLOCKQUOTE>Error during install, staroffice tar file not found.<BR>
Looking for any of the following files or directories<BR>
/tmp/so40sp3_lnx_01.tar.gz<BR>
/tmp/so40sp3_lnx_01.tar.gz</BLOCKQUOTE>
<P>Since I *REALLY* did not want to download 4.0.3 yet, I got stubborn.</P>
<H3>Second Try</H3>
<P>I looked through some more messages, and based on the information I
found, I tried the following:</P>
<P>I ftp'd libc-5.4.46-1rh42.i386.rpm from ftp.redhat.com/pub/contrib/i386,
and tried to instal it.</P>
<P>I got a "failed dependencies: ld.so >= 1.9.9 is needed by
libc-5.4.46-1rh42.i386.rpm" message. </P>
<P>Good thing I kept my ftp session open. I now ftp'd
ld.so-1.9.9-1rh42.i386.rpm. This time I got a pile of glibc conflicts.
Nope, there *HAS* to be a simpler way.</P>
<H3>Conclusion: Third Time Lucky</H3>
<P>Back to the drawingboard - or DejaNews, as the case may be. I found an
article by Tommy Fredriksson, originally posted in
stardivision.com.support.unix. Tommy wrote:</P>
<BLOCKQUOTE>In article <35A4B35E.CAA00699@actech.com.br><BR>
wrote:<BR>
> I just got StarOffice 4.0 ServicePack 3 but I can't run on my RedHat
Linux <BR>> 5.1 box, it shows that dreaded "line 1 syntax error at token 'l'",
etc. RH <BR>> 5.1 is libc6-based (glibc), but I also put libc-5 on my /lib
directory. <BR>> Even this would not make it work. Could someone help me on this? <BR><BR>
Put your "libc-pack" anywhere you can find it - tell
/etc/ld.so.conf (on top) where you put it and run ldconfig -v and look for
errors - if non, install SO. That's all...</BLOCKQUOTE>
<P>Based on this message, I improvised. To save all of you some work, here
are some step by step instructions on how to install StarOffice 4.0 on
RedHat 5.1:</P>
<OL>
<LI>Go to <A HREF="http://sunsite.unc.edu/pub/Linux/GCC/">http://sunsite.unc.edu/pub/Linux/GCC/</A>
</LI>
<LI>cd to the home directory of the user you are installing it for</LI>
<LI>download libc-5_4_46_bin_tar.gz into the current directory</LI>
<LI>become root</LI>
<LI>mkdir ~/tmp</LI>
<LI>cd ~/tmp </LI>
<LI>tar xvfz ../libc-5_4_46_bin_tar.g</LI>
<LI>cd lib</LI>
<LI>cp * /lib</LI>
<LI>edit /etc/ld.so.conf</LI>
<LI>add a new line at the top, "/lib" (without the quotes)</LI>
<LI>ldconfig -v</LI>
<LI>go back to the normal user session under X (stop being root)</LI>
<LI>cd /mnt/cdrom/StarOffice_40</LI>
<LI>./setup</LI>
<LI>follow the prompts - I chose custom install, and let it install
everything.</LI>
<LI>you can safely remove ~/tmp after you have installed StarOffice</LI>
</OL>
<H3>It Works!</H3>
<P>Following the README, I typed Office40/bin/soffice. After some disk
activity, it ran! Note, I did not time how long it took, but it seemed
like 20-30 seconds. </P>
<P>I chose to create a new document. I resized the window, and docked the
paragraph style floating bar on the left hand side. The text in the
default view was pretty poor, so I chose the 'Optimal' view (why don't
they default to Optimal?) under the 'View' menu. This looked much better.</P>
<P>I proceeded to type a few lines, and chose to print. I let it print as
if to a PostScript printer. Lo and behold, my HP4L printed out the text
quite nicely!</P>
<H3>Conclusion</H3>
<P>I am afraid that a review of StarOffice will have to wait for another
day. So far, I like what I see, however I will only be able to
intelligently comment on its features after using it for a while.</P>
<P>Caldera or StarDivison has to make installation easier. I fully intend
to try OpenLinux, and I am sure that the StarOffice installation will be much
smoother than under RedHat. At this point, a Linux beginner who tried to
install StarOffice on a RedHat system, and was not used to using excellent
resources such as Dejanews, would have a very frustrating experience. </P>
<P>The fine help available on the net from individuals like Tommy
Fredriksson, Stefan Waldherr and many others, makes a mockery of the
assertion that Linux has no support. I hope their postings and this
article will save some time for those trying Linux for the first time.</P>
<P>I hope you enjoyed this article,</P>
<FONT FACE="Comic Sans MS">
<A HREF="mailto:editor@cpureview.com"><I>William Henning</I></A><BR>
Editor, <A HREF="http://www.cpureview.com">CPUReview</A></FONT><BR>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, William Henning <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./gm.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./rubini.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">An Interview with Linus Torvalds</font></H1>
<H4>By <a href="mailto:rubini@pop.systemy.it">Alessandro Rubini</a></H4>
</center>
<P> <HR> <P>
<P>
<B>Alessandro</B>: Can you please dedicate some of your time to us?
<blockquote> <font color="navy">
<B>Linus</B>: Sure, no problem, I'll try my best.
</font></blockquote>
<B>Alessandro</B>: Are you happy with living in the States? I preferred having
a Finnish leader rather than another american ruler.. how do
you feel in this respect? Do you plan to come back?
<blockquote> <font color="navy">
<B>Linus</B>: I've been very happy with the move: I really enjoyed being at the
University of Helsinki, but I decided that trying out something different
was worthwhile, and so far the experience has been entirely positive.
</font></blockquote>
<blockquote> <font color="navy">
I agree that Finland is a lot more "neutral" in many ways, and that had
its advantages in Linux development: I don't think anybody really dislikes
Finland, while a lot of people are nervous about or even actively dislike
the US. So in some sense that could have been a downside, but I felt that
most people trusted me more as a person than as a Finn, so I didn't feel
it to be a major issue.
</font></blockquote>
<blockquote> <font color="navy">
Moving to the US has meant a lot better weather (even though this has been
one of the rainiest winters in a _long_ time here in the Bay Area), and
has also been very interesting. While I really liked my work at the
University, the new stuff I'm doing is more exciting - more on the edge,
so to say.
</font></blockquote>
<B>Alessandro</B>: We all know about the USA restrictions on cryptography; do
they affect Linux features in the field?
<blockquote> <font color="navy">
<B>Linus</B>: It doesn't seem to be a real issue. The idiocy of the US cryptography
export rules were a problem even before I moved here: mainly because
if/when we add strong cryptography to the kernel we would have to make it
modular anyway in order to let the CD-ROM manufacturers (many of whom are
based in the US) take it out in order to sell overseas. So me moving here
didn't really change that fact - it only made it apparent that I can't be
the person working on cryptography (something that was fairly obvious
anyway, as I'm not really an expert in the area).
</font></blockquote>
<blockquote> <font color="navy">
Anyway, regardless of the above I sincerely hope that the US cryptography
rules will be changed in the near future. The US rules have made a lot of
things more difficult than they should have been. (In all fairness the US
isn't the only country with problems: the French have even more of a
problem in this area and are trying to get other European countries to do
the same thing. Happily the French are a fringe group of loonies in this
matter, while the US has been a real problem due to being so central when
it comes to information technology).
</font></blockquote>
<B>Alessandro</B>: Did you ever think about leaving your role as Linux coordinator
or is it fun like it was in the beginning? If you would
leave, what would your next project be?
<blockquote> <font color="navy">
<B>Linus</B>: I've never seriously considered leaving - the only times the issue has
come up is really when somebody has asked me what the succession would be
in the case I no longer felt interested. Linux has always been so much fun
to coordinate that while it obviously takes a lot of my time I have always
felt that it was more than worth it.
</font></blockquote>
<B>Alessandro</B>: Out of curiosity, how long do you write code daily, and what
is your current main activity?
<blockquote> <font color="navy">
<B>Linus</B>: I usually don't spend all that much time coding on Linux any more:
occasionally I have bursts of things I do when I code full-day for a few
weeks or so, but those are fairly rare, and mainly happen when there is
some fundamental shift in the kernel that I want to get done. During the
last year it's happened four or five times, mainly with regards to SMP or
the so-called "dentry" filesystem cache.
</font></blockquote>
<blockquote> <font color="navy">
Most of the time I spend reading and reacting to emails - coordinating the
others working on things, commenting on ideas, and putting together
patches. This is by far the most work: I'd say that my coding is only
about 10%, while the coordination is 90% of the work.
</font></blockquote>
<B>Alessandro</B>: How did you manage to write a free kernel and still earn your
living?
<blockquote> <font color="navy">
<B>Linus</B>: Initially, I was a university student at the University of Helsinki. What
that means in Finland is that you get support by the goverment for a
number of years in order to be able to finish your degree, and there is
also a possibility to get special student loans. I suspect Italy has
something similar, although probably not as comprehensive as the Finnish
system.
</font></blockquote>
<blockquote> <font color="navy">
And after a year or two I was actually employed by the university as first
a teaching assistant and then later a research assistant, and the
university also actively encouraged me to be able to write Linux at the
same time.
</font></blockquote>
<blockquote> <font color="navy">
Right now, I obviously work at a commercial company, but even here I get
to do a lot of Linux work even during work hours because even though
Transmeta doesn't sell Linux or anything like that, there is a lot of
_use_ of Linux inside the company, so me continuing to work on it is
obviously supportive of the company.
</font></blockquote>
<blockquote> <font color="navy">
So I've always been able to do Linux together with doing my "real" work,
whether that was studying or working for a university or working for a
commercial entity. There has never been much of a clash, even though
obviously my working hours aren't exactly nine to five..
</font></blockquote>
<B>Alessandro</B>: Why didn't you turn to commercial support like Cygnus did? (I think I
know why :-)
<blockquote> <font color="navy">
<B>Linus</B>: I just never felt the interest to turn any part of Linux commercial: it
would have detracted a lot more from my time to maintain a company or
something like that, and it was never what I was interested in.
</font></blockquote>
<blockquote> <font color="navy">
It would also have implicated Linux money-wise: I wouldn't have been free
to do what I wanted technically because I would be bound by constraints
brought about by having to feed myself and my family. In contrast, working
at the University or here at Transmeta, I make a living without having to
involve doing Linux-decisions into it - so I'm free to do whatever I want
with Linux without having to worry whether it will pay my next months
rent..
</font></blockquote>
<blockquote> <font color="navy">
I feel a lot happier not having those kinds of pressures on Linux, and I
think most other developers feel the same way (they don't have to worry
about my technical judgement being corrupted by any financial issues).
</font></blockquote>
<B>Alessandro</B>: Do you think you changed the world or just fired the straw? (Again,
I know you)
<blockquote> <font color="navy">
<B>Linus</B>: I started it, and I feel very proud of that. I don't hink I "changed the
world", but I feel privileged in being instrumental in changing a lot of
lives - it's a good feeling to know that what you do really matters to a
lot of people.
</font></blockquote>
<blockquote> <font color="navy">
I wouldn't go as far as saying that it "gives my life meaning", but Linux
definitely is a _part_ of my life, if you see what I mean.
</font></blockquote>
<B>Alessandro</B>: What's your opinion of Richard Stallman's work and philosophy?
<blockquote> <font color="navy">
<B>Linus</B>: I personally don't like mixing politics with technical issues, and I don't
always agree with rms on a lot of issues. For rms, there are a lot of
almost religious issues when it comes to software, and I'm a lot more
pragmatic about a lot of things. As a result, we know we disagree about
some things, and we actively don't try to work together too closely
because we know it wouldn't work out very well.
</font></blockquote>
<blockquote> <font color="navy">
The above may make it sound like I dislike rms, and at the same time that
is not at all true. Rms has obviously been the driving force behind most
of the current "free software" or "open source" movement, and without rms
the world would be a poorer place. And he _needs_ to be religious about it
to be that driven.
</font></blockquote>
<blockquote> <font color="navy">
So I guess the best way of saying it is that I really admire rms, but I
wouldn't want to be him, because our worldviews are different.
</font></blockquote>
<B>Alessandro</B>: On the practical side, what's the schedule for 2.2? What are the
main differences between 2.0 and the upcoming 2.2?
<blockquote> <font color="navy">
<B>Linus</B>: As I looks now, 2.2 should be sometime early summer or so, but it's hard
to judge: there are a few things that really need to get fixed, and before
they are fixed there's no point in even thinking about it. Right now
there's a bad TCP performance problem that is holding things up:
everything _works_ ok, but it is serious enough that I can't imagine a 2.2
before it is fixed.
</font></blockquote>
<blockquote> <font color="navy">
The changes 2.2 will have are mainly much more mature support for the new
things in 2.0, namely SMP and multiple architectures. There are a _lot_ of
other things in there (the new dentry code, totally rewritten NFS etc),
but the SMP and architecture maturity is one of the most fundamental
things that 2.2 will have.
</font></blockquote>
<B>Alessandro</B>: Bruce Perens claims "world domination: 2003"; is that realistic?
In your opinion, will the concept of free software gain
polularity in the mass market? In this respect, what's your
opinion about the move of Netscape Corp.?
<blockquote> <font color="navy">
<B>Linus</B>: The "World Domination" thing is obviously always a bit tongue-in-cheek,
but I think that yes, a five-year timeframe for the free software movement
and Linux to make a major noticeable impact is not at all unrealistic. The
Netscape open source thing is one of the first indications of this, and I
think we'll see others doing similar things.
</font></blockquote>
<B>Alessandro</B>: How will the various free OS's coexist, in your opinion?
<blockquote> <font color="navy">
<B>Linus</B>: I think the current setup where people are aware of each other, but there
is no organized or official co-operation is probably how it will continue.
The whole point of Linux is that there is definitely room for more than
one operating system (especially if that one operating system is a bad one
made by microsoft ;), and I don't see that changing - the FreeBSD's and
other operating systems will be around. Maybe not in the same form (more
specialization etc), but I don't see any fundamental issues here..
</font></blockquote>
<B>Alessandro</B>: Or do you think that development of Wine and other tools will
lead to the cohexistence of two systems of similar technical
value, one free and the other proprietary, running the
same application programs? (Horrible question, IMHO).
<blockquote> <font color="navy">
<B>Linus</B>: No, I think the development of Wine will be an important step for the PC
operating systems arena, but that step will be in the way of leveling the
playing ground: when just about everybody can run the basic legacy Windows
applications like MS Office etc, that allows the systems to really compete
on being good at other things.
</font></blockquote>
<blockquote> <font color="navy">
So rather than having two systems of similar technical value, I think that
you'd have many systems that are all able to run the same basic
applications, but where the emphasis is on different things. Microsoft,
for example, ha salways emphasized mediocrity and high volume, while Linux
has (and will continue to) emphasized more technical issues.
</font></blockquote>
<B>Alessandro</B>: Currently we lack free office applications. Is this a matter of
time, or do you think that these programs will only be available
from commercial companies?
<blockquote> <font color="navy">
<B>Linus</B>: I think that there will always be a niche for commercial programs, and
while I think we'll see free office applications proliferate, I don't
think that we necessarily _have_ to have them.
</font></blockquote>
<blockquote> <font color="navy">
The reason I personally want a free operating system and basic
applications is that I really think that if the basics aren't stable and
you can't modify them to suit your own needs, then you are in real
trouble. But when it comes to many other areas, those issues are no longer
the most pressing concerns, and then it is not as critical that you have
free access to sources.
</font></blockquote>
<B>Alessandro</B>: Sometimes we hear of so-called ``standards'' that remain proprietary
(like I2O), is this the last rant of dying companies, or
is free software at risk?
<blockquote> <font color="navy">
<B>Linus</B>: I don't worry too much about I2O and other proprietary standards. The
whole idea of a proprietary standard has always failed - all of the
successful standards these days are fairly open. Sometimes they are
proprietary because the company that made them had enough clout to force
it to be that way on its own, but I don't think that kind of clout exists
anywhere else than at Intel and at Microsoft, and that even those two are
being eroded by competition.
</font></blockquote>
<B>Alessandro</B>: What is your position about the availability of Linux
modules in binary-only form?
<blockquote> <font color="navy">
<B>Linus</B>: I kind of accept them, but I never support them and I don't like them.
</font></blockquote>
<blockquote> <font color="navy">
The reason I accept binary-only modules at all is that in many cases you
have for example a device driver that is not written for Linux at all, but
for example works on SCO Unix or other operating systems, and the
manufacturer suddenly wakes up and notices that Linux has a larger
audience than the other groups. And as a result he wants to port that
driver to Linux.
</font></blockquote>
<blockquote> <font color="navy">
But because that driver was obviously not _derived_ from Linux (it had a
life of its own regardless of any Linux development), I didn't feel that I
had the moral right to require that it be put under the GPL, so the
binary-only module interface allows those kinds of modules to exist and
work with Linux.
</font></blockquote>
<blockquote> <font color="navy">
That doesn't mean that I would accept just any kind of binary-only module:
there are cases where something would be so obviously Linux-specific that
it simply wouldn't make sense without the Linux kernel. In those cases it
would also obviously be a derived work, and as such the above excuses
don't really apply any more and it falls under the GPL license.
</font></blockquote>
<B>Alessandro</B>: What do you think about the KDE-Qt question? Is Gnome going to
succeed?
<blockquote> <font color="navy">
<B>Linus</B>: I personally like Qt, and KDE seems to be doing fairly well. I'm taking a
wait-and-see approach on the whole thing, to see whether gnome can do as
well..
</font></blockquote>
<B>Alessandro</B>: An interesting challenge is "band reservation" in the network
subsystem; is that going to happen any soon in Linux?
<blockquote> <font color="navy">
<B>Linus</B>: I'll have to pass on this one. It's not one of the areas I'm personally
involved with or interested in, and as such it's not something I'm going
to be very involved with any efforts that way. That's how Linux works: the
people who need or want something get it done, and if it makes sense on a
larger scale it gets integrated into the system..
</font></blockquote>
<B>Alessandro</B>: Many people ask why the kernel is written in C instead of C++. What
is your point against using C++ in the kernel? What is the
language you like best, excluding C?
<blockquote> <font color="navy">
<B>Linus</B>: C++ would have allowed us to use certain compiler features that I would
have liked, and it was in fact used for a very short timeperiod just
before releasing Linux-1.0. It turned out to not be very useful, and I
don't think we'll ever end up trying that again, for a few reasons.
</font></blockquote>
<blockquote> <font color="navy">
One reason is that C++ simply is a lot more complicated, and the compiler
often does things behind the back of the programmer that aren't at all
obvious when looking at the code locally. Yes, you can avoid features like
virtual classes and avoid these things, but the point is that C++ simply
allows a lot that C doesn't allow, and that can make finding the problems
later harder.
</font></blockquote>
<blockquote> <font color="navy">
Another reason was related to the above, namely compiler speed and
stability. Because C++ is a more complex language, it also has a
propensity for a lot more compiler bugs and compiles are usually slower.
This can be considered a compiler implementation issue, but the basic
complexity of C++ certainly is something that can be objectively
considered to be harmful for kernel development.
</font></blockquote>
<B>Alessandro</B>: What do you think of the Java phenomenon? Did you ever consider
integrating a Java VM, like kaffe, in the kernel?
<blockquote> <font color="navy">
<B>Linus</B>: I've always felt that Java had a lot too much hype associated with it, and
that is still true. I _hope_ sincerely that Java will succeed, but I'm
pragmatic and I'm not going to jump on the Java bandwagon prematurely.
</font></blockquote>
<blockquote> <font color="navy">
Linux already supports seamless running of Java applications as it is, and
the fact that the kernel only acts as a wrapper for the thing rather than
trying to run the Java VM directly I consider to be only an advantage.
</font></blockquote>
<P> <HR> <P>
This article is reprinted with the permission of Infomedia, Italy. An Italian
translation of this article can be found at <A
HREF="http://www.pluto.linux.it/journal/pj9807/linus.html">
http://www.pluto.linux.it/journal/pj9807/linus.html</A>. The
interview was done by e-mail in February, 1998.
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Alessandro Rubini <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./henning1.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./vermeer.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<CENTER>
<H1>
<FONT COLOR="#663300">It takes its toll</FONT></H1></CENTER>
<CENTER><FONT COLOR="#663300">by</FONT></CENTER>
<CENTER>
<H2>
<FONT COLOR="#663300">Martin Vermeer</FONT></H2></CENTER>
<CENTER><FONT FACE="Courier New,Courier"><FONT COLOR="#663300"><A HREF="mailto:mv@liisa.pp.fi">mv@liisa.pp.fi</A></FONT></FONT></CENTER>
<FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300"><B>The origin of the current mess </B>can be traced
back to a short spell of ultra-liberalism, when the government caved in
to the pressure to cut taxes and eliminate the national debt by selling
off the road network. Politicaly, it has been a success; taxes are consistently
lower than they have been for long, and the man in the street seems to
be satisfied.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">Of course in the beginning, the situation was
quite messy; highway segments were auctioned off, and the result was toll
booths everywhere, so you had to stop many times and have a lot of petty
cash handy if you wanted to get anywhere.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">But then, gradually, a market leader appeared.
Federal Transport Corp. bought strategically placed road segments, connected
them into a countrywide network, made it impossible for anyone else to
do the same, and slowly took over the rest.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">By the motorists, it was felt to be a blessing.
Sure, prices went up; but you could get by with getting a yearly license
and putting the barcode sticker on the roof of your car; you didn't even
have to brake anymore when passing the toll station. And the more roads
FT acquired, the better the offer they could make their customers; such
are the ways of "network externalities".</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">Obviously as many of us now realise, the net effect
was no tax drop at all. The yearly fee to FT is just another tax, if you
want to use your car to go anywhere at all; and what's worse, it is paid
to an authority we didn't elect ourselves. There has been a groundswell
of resistance, such as the freetown (or "open roads") movement, and I sympathise
fully with this.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">I live in a freetown now; a small one, at the
foot of the mountains. Others are on the coast, or around airports. Few
are inland. We have our own road network that we own ourselves collectively,
just like in the old days. If you want to go to another freetown, you have
the options of air, rail and water transport, which are not (yet) under
FT's control. If you want to visit people outside freetown land, you have
to pay the toll, of course :-( This -- referred to as "gating
out" -- is minimized by careful planning.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">You may ask, why did I choose to live in a place,
and under a regime, that limits my freedom of movement so much? Well first
of all, it is my own choice. I don't want to owe my "freedom" to an authority
that does not represent me. And then, there are compensations. The people.
Freetowners are active, involved citizens; everything is debated, and decisions
are taken by informed people. Compare that to the way outside. It's a different
culture really, and I like it. They are my kind of people.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">And, except in the matter of transport, life in
a freetown is just as good or better than outside. There is a lot of employment
in hi-tech; as I said, we are a sophisticated lot. And there are no advertisements
of FT, like there are everywhere outside, enquiring politely but insistently
where you would feel like going today... that really gets my blood pressure
up.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">These are interesting times we live in; recently
the freetown movement has gained a lot of interest and newcomers are flowing
in. Resentment at the Federal Transport monopoly is tangible, now that
fees are going up and road maintenance is being neglected. Earlier, just
after the sell-off, roads were maintained well; you had the option of choosing
alternative routes, and the toll revenue was channeled to maintenance and
improvement. Now, many road segments seem to be in free fall down towards
their natural state. You still have alternative routes to choose from;
but they are all under FT's control and in uniformly poor shape.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">And then there is this crazy project called the
RoadPlane. It is a gigantic vehicle, carrying hundreds of people at 200
mph along the highways, rolling along smoothly on smart-strutted wheels,
navigated by satellite, electronic map and road radar. I have heard of
people riding one of those things; quite an impressive experience, it appears.
FT's slogan is "A Better Plane Than The Plane", but some bad accidents
have happened already. It is a very complex system; OK as long as everything
works, but winter weather, the poor state of the roads, and errors in the
maps -- or an animal straying on to the road -- are hard to foresee and
take into account. These problems have generally been glossed over in the
media; FT represents a major advertising budget for them.</FONT><FONT COLOR="#663300"></FONT>
<P><FONT COLOR="#663300">RoadPlane is FT hybris at its best. It is a white
elephant and that fills me with glee. This could be the undoing of FT,
who knows. But it will only happen if people take the trouble to inform
themselves, understand how they are being ripped off, and become active!</FONT><FONT COLOR="#663300"></FONT>
<P><I><FONT COLOR="#663300">Similarity to real events and circumstances
is, again, purely and wholly intentional.</FONT></I>
<BR><FONT COLOR="#663300"></FONT>
<BR><FONT COLOR="#663300"></FONT>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Martin Vermeer <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./rubini.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./rojansky.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Java and Linux</font></H1>
<H4>By <a href="mailto:">Shay Rojansky</a></H4>
</center>
<P> <HR> <P>
Not long ago, Javasoft celebrated Java's third birthday. Java, once seen
as merely another way to animate and spice up web pages, has become much
more than that. Nowadays, well-known software corporations have pledged
their support to Java, and new Java APIs are being defined in record time. The
Java technology enables programmers to finally write truly multi-platform
programs, offers an advanced cross-platform GUI toolkit, embedded
threading in the language and much more.
<p>
At the same time, we are seeing remarkable events in the computer
software world. Microsoft, the behemoth of the industry, is being seriously
threatened by anti-trust action from both the Justice Department and 20
different states. Netscape has released the source code for
Communicator and may be the first company to break free of Open Software
prejudice. This has attracted much interest in Open Software from companies
who have traditionally feared the concept.
<p>
What do all of these events mean for the Linux operating system?
It means we have a window of opportunity. Never before has the
time been so right. On one hand, the industry is seriously taking
a look at Linux as an open (and free) OS. Hey, if Netscape is doing
it with their browser, why not an Open OS? On the other hand, Java
technology offers a machine-independant way to write applications,
and much of the industry has rallied behind it.
<p><HR> <P>
<h3>Java and the Linux Community</h3>
<p>
The Linux community itself, however, has always treated Java with an
ambivalent attitude. The language that has promised to topple the hegemony
of Microsoft, a dream like that of any Linux enthusiast, hasn't been
accepted into the mainstream of Linux development. There are several reasons
for this.
<p>
First and foremost, Java is a proprietary language owned by Sun
Microsystems. This means that Sun controls every aspect of the language,
the APIs and their licensing conditions. Tactics by Microsoft, like changing
APIs in their Java suite J++ and rendering their virtual machine
incompatible with other Java virtual machines, have forced Sun to seek
exclusive rights to dub a product ``Java-compatible''. Although this
may be the only way to fight Microsoft's unfair tactics, never before has a
language been so much in the hands of a single corporation. The Linux
community was born much in protest of this kind of ownership.
<p>
Second, the multi-platform concept of Java, the Java Virtual Machine
(JVM), means that programmers feel they are programming for the Java
environment and not for the Linux environment. This also means that
it's much more difficult to exploit the features of Linux.
<p>
Third, Java is still slow. Many promising enhancements are available such
as Just-in-Time compilers and Sun's Hotspot (still in beta).
Java has certainly improved since it was first created, but it
still requires a powerful platform. The Linux world is
relatively speed-minded, and one of the main advantages of Linux
is its ability to run on obsolete hardware.
<p><HR> <P>
<h3>The Advantages of Programming in Java</h3>
<p>
Despite all these shortcomings in the nature of Java, it
is the only real challenge made in the last few years to Microsoft's
rule. It is also an advanced language, written from the ground up
with modern programming concepts in mind; all the flaws
C++ retained from C for backwards compatibility are gone in Java,
along with other complex features (multiple inheritance, for example).
An automatic garbage collector removes the need to free memory,
drastically reducing development time. Threads are so embedded
in the language they become an indispensible tool for the programmer.
<p>
I hope Linux developers take a second look at Java as a development language
and start using it regularly. Some Linux developers have already made
impressive progress with Java tools, including several Java virtual
machines (JVMs), several Just-In-Time (JIT) compilers and others. Take a
look at these if you are considering using your Linux platform for developing
Java. The Java-Linux resources page can be found at:
http://www.blackdown.org/java-linux.html
<p>
I will now go over some of the key features in JDK 1.1.x. Note that
the next version, 1.2 is in beta but should be available soon.
<p><HR> <P>
<h3>Object Serialization</h3>
<p>
Object serializing means taking an object and flattening it into a
stream of bytes. In practice, this is usually used for two
things--passing objects through a network and storing objects in files.
Usually, a programmer who wishes to store a data structure on
disk has to write a specific algorithm for doing so, which can
be quite tedious. Java simplifies all this by doing it
automatically for you. For example, if you have a tree in memory
and wish to pass it to another Java program on the network, all
you have to do is to pass the root object--Java will follow the
pointers and copy the entire tree. If you have special considerations
(like security), you may design the way the object is serialized.
<p><HR> <P>
<h3>Java Foundation Classes (Swing)</h3>
<p>
The original AWT, which is the windowing toolkit for Java, was very
clunky and uncomfortable. Many components were missing and the
programming model was needlessly painful. The current accepted
toolkit for Java is code-named Swing. Swing offers a large number
of lightweight components; they are fully implemented in
Java but do not use the underlying windowing architecure as
in AWT. This assures the same functionality across platforms.
Another appealing feature is the completely pluggable look and feel,
which lets you switch between Windows and Motif, for example, while
the program is running. You can also design your own look.
<p><HR> <P>
<h3>RMI (Remote Method Invocation)</h3>
<p>
RMI is the Java equivalent of CORBA, which is a way to invoke methods
in objects that are in a different JVM (or even machine). For those
of you who know the RPC (Remote Procedure Call) frequently used in
UNIX machines, RMI (and CORBA) are its object-oriented counterparts.
The concept of ``distributed programming'' has gotten very popular
lately. In general, it means a very tight integration between programs
across the network; objects in different machines can talk to each other
simply by calling each other's methods. This is accomplished by having a
Java program hold a ``stub'' of a remote object. Then, when a method is invoked
on that stub, Java transparently sends the request over the network
and returns the requested value. The extent by which distribution and
serialization are embedded in Java show the advantage of a
modern language designed to support these concepts.
<p><HR> <P>
<h3>JNI (Java Native Interface)</h3>
<p>
Often programmers can get frustrated when they wish to use
the benefits of Java to do something that is system dependant.
The JNI allows you to interface with a native-shared object
and run its functions. This means you can write system-dependant
code in C (or any other language) and use it from Java. Of course,
as a result, your program would not be portable unless you supply
the shared object to all platforms. This could be useful, for example,
to catch signals in UNIX and to access the registry in Windows.
<p><HR> <P>
<h3>JDBC (Java Database Connectivity)</h3>
<p>
Java Database Connectivity is an SQL database access interface.
It provides a database-independent way to perform SQL queries
on any database that provides JDBC drivers. Currently, many popular
databases do, and those that don't can still be accessed via
the JDBC-ODBC bridge, which allows you to use ODBC drivers instead.
For a list of database drivers see:
http://java.sun.com/products/jdbc/jdbc.drivers.html.
<p>
Take a good look at Java. If we could manage to separate the
applications from the operating systems running them, we'd have the
freedom to choose shich OS we like best. Although in spirit the Linux
community has a ``renegade'' non-conformist element in it, Java has a great
potential and deserves our attention. The Linux-Java combination can turn
into a winning one.
<p>
<h3>Java Resources</h3>
<p>
Java home: <A HREF="http://java.sun.com/">"http://java.sun.com/</A>
<p>
Java developer connection (free registration):
<A HREF="http://java.sun.com/jdc/">http://java.sun.com/jdc/</A>
<p>
Swing (JFC): <A HREF="http://java.sun.com/products/jfc/index.html">
http://java.sun.com/products/jfc/index.html</A>
<p>
Java for Linux: <A HREF="http://www.blackdown.org/java-linux.html">
http://www.blackdown.org/java-linux.html</A>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Shay Rojansky <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./vermeer.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./jenkins1.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<P> <HR> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<P>
<center>
<H1><font color="maroon">Linux Installation Primer</font></H1>
<H4>By <a href="mailto:rjenkins@unicom.net">Ron Jenkins</a></H4>
</center>
<P> <HR> <P>
You've heard all the hype, and decided to find out what this "Linux"
thing is all about. Or maybe you need a low cost alternative to one of
the commercial operating systems. Perhaps you need an easy way to
connect diverse systems and let them all communicate with each
other..tomorrow.. or you'll be encouraged to "seek new employment
challenges." In any case, you have a problem that needs a solution, or
a curiosity that needs to be satisfied. Well, you have come to the
right place. Join me as we take a journey into the exciting world of
the Linux operating system. Please keep your hands inside the car at
all times, and remain in your seat.
<P><HR> <P>
<H3>What the heck is Linux anyway?</H3>
<P>
Linux is a freely distributable version of Unix developed by Linus
Torvalds and thousands of other programmers scattered all over the
world. What started as a hacker's system, designed primarily for the
technically adept, has now evolved in to a viable, stable operating
system with a robust set of applications and tools making it suitable
for both personal and mission critical commercial use.
<P>
In just the past six months Linux growth has undergone an exponential
expansion. Every day Linux gains more and more press and exposure. Many
commercial vendors are announcing support, or ports of their products
to the Linux operating system. I saw just the other day that Oracle and
Informix, both major players in the Unix database world, have ports to
Linux underway.
<P><HR> <P>
<H3>Well, that's fine and dandy, but what does it mean to me?</H3>
<P>
This is incredibly significant, not just to the techno-geeks (yes,
that's me) but to the entire spectrum of computer users. One of the
benchmarks of the commercial viability of any product is the support of
the application vendors.
<P>
While it's great fun for me to write my own programs and applications,
most people just need to get some work done, on time, as easily as
possible. Or perhaps you want to surf the net for entertainment, or
playing games. Without the "killer apps", an operating system is doomed
commercially.
<P>
What this all means to you is never before has there been an operating
system, with a robust set of applications and development tools,
available for little or no cost, other than the "sweat equity" required
to learn to use it effectively.
<P>
An additional point to consider is that as you progress in your Linux
education you are also increasing your skill level and, ultimately,
your worth in the marketplace.
<P>
One of the strengths of Linux is that you have the power to choose the
depth of knowledge required to accomplish your tasks. Want to just bang
out a document or two, or play games? You can. Want to surf the
Internet and exchange e-mail with your friends and coworker's? No
problem. Want to learn to program in a variety of different languages?
Go ahead.
<P>
The point here is Linux can do all these things, and much more.
Additionally, with Linux, you are not required to fork over more money
for each function you want to add.
<P><HR> <P>
<H3>Okay. That sounds great, but I've heard that Unix is difficult to
configure, hard to install, only for the pocket protector crowd, etc.</H3>
<P>
While this was the case at one time, here and now, in 1998, it's simply
not true. Major advancements have been made in the installation and
configuration process, and in most cases Linux is no more difficult to
install than any other operating system. With the advent of package
managers, Graphical User Interfaces, and "smart" probing of your
system's components, installation has become largely a moot issue.
<P>
The truth is, you could not have picked a better time to join the Linux
world. Granted, once you get to networking issues, there is more to it
in a Unix machine than a Windows box, but with the new configuration
utilities, combined with an intuitive, easy to understand process, I
firmly feel that Linux is about as easy to configure as Windows.
<P><HR> <P>
<H3>Well, if you say so, but if Linux is not a commercial product, where
do I go if I get in trouble?</H3>
<P>
Luckily, there are commercial distributions of Linux available, as well
as commercial support contractors who will be happy to help you out.
And usually for quite a bit less than the people in Redmond, and the
Linux vendors actually answer the phone. And call you back.
<P>
Now I'm going to tell you about Linux's secret weapon. Remember, those
thousands of people I mentioned before? Well, there is a virtual
universe, populated with people who are ready, willing, and able to
help you out. You will find them on USENET, commonly called newsgroups,
on Internet Relay Chat, commonly called IRC and in your local area, in
the form of Linux User's Groups. As a matter of fact, this free
noncommercial group of people have made such an impact on the end user
community, that in an unprecedented move, Infoworld magazine named the
Linux support community as a whole, as the 1997 Product of the Year!
<P> <HR> <P>
<H3> Okay, that all sounds good, but I've got an old 486 DX2/66 that's real
slow. Would Linux do me any good?</H3>
<P>
The answer is a resounding yes! Linux will run on anything from a
diskless workstation, to an XT, to the latest whizbang hardware. As a
matter of fact, I've used these machines for everything from routers to
web servers, from dialup servers to file servers. I currently run 2 486
66's as my backup DNS machines, each hosting multiple zones.
<P>
This is another one of Linux's strengths. The ability to take
"obsolete" machines and do great things with them. This is a great low
cost method for nonprofit organizations, and cost conscious
organizations to squeeze extra value from "old" machines.
<P>
The one exception to this is your video subsystem. X, the Graphical
User Interface , is very picky about the video cards it will and will
not support. This is primarily due to the fact that many video card
manufacturers are reluctant to release specification information to
Linux developers.
<P>
However, support is improving every day, and there are also commercial
X servers available to address these issues. The bottom line here is to
try to make sure your video card is supported by X if you want to run
more than VGA at 16 colors.
<P>
That said, different distributions of Linux have different hardware
requirements. And of course, I don't mean to imply that you should not
take advantage of a newer machine if you have access to one. I simply
want to convey to you that you don't have to have a Pentium II with 256
Megs of RAM, or a 600Mhz Alpha to be able to use Linux.
<P>
As a general guideline, any 386 or better with 4MB of RAM or more
should run quite nicely. If you plan on running X, 8MB would be better,
16MB better still.
<P>
Generally speaking, the more RAM, the better. As a matter of fact, I
often tell my clients that I would rather have a slower processor with
more RAM, than a faster processor with less RAM.
<P>
Contrary to what you may have been told, the processor speed is NOT the
primary determining factor of performance. In reality the performance
of your system is determined by the amount of RAM you have, The speed
of your Disk subsystem, and your processor. In that order.
<P>
Any type of IDE HDD, and any ATAPI CD-ROM drive will work quite nicely,
as will most SCSI hosts and disks. However, SCSI installations can
often be more involved, and will be covered in a separate document.
<P><HR> <P>
<H3>Okay, you've sold me on the idea. What next?</H3>
<P>
The first thing you will need to do is pick a distribution. Linux is
packaged as collections of programs, applications, utilities, and the
operating system, by different people and vendors. These are called
distributions. There are many, fine distributions out there, and
choosing the "right" one is a nebulous process. This is somewhat
analogous to picking the "best" vacation spot, or the "best" outfit to
wear.
<P>
I will be discussing the Slackware 3.5, and RedHat 5.1, as these are
the ones I am familiar with. Many of the descriptions and configuration
options, most notably the autoprobing of PCI devices, and support for
many newer video cards, are applicable ONLY to these distributions. All
my comments and recommendations are just that - comments and
recommendations. Your preferences may be entirely different.
<P>
<B>Slackware 3.5</B>
<P>
The first distribution I ever used, and still my favorite. It has the
option for either a Command Line Interface (CLI) install, or a
Graphical User Interface (GUI) install. Uses Tarballs, or .tgz package
format. I like this because I am not "forced" to install X just to use
my system like some of the other distributions ( see below.) I am also
given more control over what does and does not get installed. (Upgrade
path is not too good.) Best for people who want to really learn about
how the system works, and like installing and compiling their own
software. A full install will eat up ~400MB of disk space.
<P>
<B>RedHat 5.1</B>
<P>
This is the current "darling" of the commercial side of the Linux
community. Probably the easiest to install. Forces the installation of
the X window system, whether you want it or not. Uses the RPM package
format to ensure all packages and programs are installed correctly
(sort of.) Upgrade path is good. Currently has the lion's share of the
media attention, and thus, application support. This is the one I
recommend for people who want a working system quickly, and are less
concerned about the internal workings of the Operating System. A full
install will eat up ~600MB of disk space.
<P>
I had originally intended to do an in-depth comparison of the various
distributions, but the August issue of the Linux Journal just arrived
in my mailbox today, and I see that Phil has beat me to it. I
respectfully disagree with regard to the Caldera Distribution. I am
overwhelmed by it's cost, and underwhelmed by it's performance. Other
than that, I would suggest you refer to his article for a more in-depth
comparison. He has done an outstanding job, much better than I could
have ever done.
<P><HR> <P>
<H3>How do I get the software?</H3>
<P>
Here you have several options. All the distributions I mention are
freely available on the Internet for download. Additionally, RedHat,
and Slackware are available for purchase, either directly from the
manufacturers, or through third parties. Finally, some or all of them
are often bundled with books on Linux or can be had at your local Linux
User's Group's Install Party, an event where people bring in their
computers and the hosts at your Linux users Group will install the
software for you.
<P>
IMPORTANT NOTE: While it is possible to install some of these
distributions using FTP or NFS, I strongly urge you to acquire a CD-ROM
for your first installation. See the resources section at the end of
this document for vendors, or check your local book store.
<P>
While an Install Party is probably the easiest method to get your
system up and running, You will get more out of it by doing the
installation yourself. Messing up, and doing it yourself is the best
way to learn.
<P><HR> <P>
<H3>What sort of planning should I do beforehand?</H3>
<P>
Excellent question. Here are some things to consider:
<P>
While it is possible and feasible to have multiple operating systems
residing on one system, I recommend using a separate machine if
possible, or at least a separate disk or disks on your machine just for
Linux.
<P>
This will give you the confidence to bang away at it, install multiple
times, and decrease the chance of harming your primary OS or data.
Also, in later installments, I will show you how to make this machine
do all kinds of neat tricks, like serve up your Internet connection,
store files and applications, even become the starting point for your
own home network.
<P><HR> <P>
<H3>I'm not rich, where can I find a cheap machine like you mention?</H3>
<P>
Check around in the paper, your local Linux user group, your place of
employment or even your local community college for one of those "old"
machines. They can often be had at little or no cost.
<P>
What we are aiming for here is maximizing your chances for a successful
installation, there will be plenty of time for you to learn the more
esoteric methods as your Unix skills increase.
<P>
If at all possible try to get a separate machine, preferably with two
Hard Disk Drives, and an ATAPI compliant CD-ROM.
<P><HR> <P>
<H3>That sounds like a lot of trouble. Can't I just try it out without all
that extra stuff?</H3>
<P>
<P>
If you absolutely must disregard my warnings, and intend to try out
Linux on your primary machine, BACKUP ANYTHING YOU CAN NOT AFFORD TO
LOSE ONTO FLOPPY DISK, TAPE, OR WHATEVER BACKUP DEVICE YOU PRESENTLY
USE. IF YOU DON'T HAVE ONE, PUT THIS DOWN AND GO GET ONE! YOU HAVE BEEN
WARNED. Consider the Slackware distribution. It offers the option of
running directly off of the CD-ROM.
<P><HR> <P>
<H3>Okay, I have the machine or extra disk(s), what next?</H3>
<P>
If you have not acquired a separate machine, refer to the warning
above. BACKUP ANYTHING YOU CANNOT AFFORD TO LOSE.
<P>
The first thing you will need to do is create your boot disk, and in
some cases, a root or supplemental disk.
<P>
If you purchased the commercial distribution of RedHat, the required
disks should already be included. The commercial version of Slackware
should be bootable directly from the CD-ROM on newer systems.
<P>
If you obtained the software bundled with a book, you will probably
need to create the disk or disks yourself.
<P>
You will need one or two DOS formatted disks for this.
<P>
What boot image you need will depend on which distribution you are
installing.
<P>
For RedHat, look for the /images directory, which should contain two
files named boot.img and supp.img. Normally only the boot.img disk will
be required.
<P>
For Slackware, look for a directory called /bootdsks.144, and another
called /rootdsks. Unless you have something other than IDE devices in
your machine, the bare.i image is the one you will be looking for as
your boot disk. In the rootdsks directory, you will need the color.gz
image for your root disk.
<P>
The method used for creating your boot and/or root disks will depend on
whether you are using a Linux (or Unix) machine, or a DOS based machine.
<P>
If you are on a DOS based machine, I.E. Windows 3.x, Windows 95,
Windows 98 or Windows NT, you will need to use RAWRITE.EXE to create
your images. This program should be included either in the same place
as the images we just discussed, or under an /install, or /dosutils
directory in some cases.
<P>
You will need to open a command prompt (sometimes called a DOS box) on
your machine, or exit windows to get to the command prompt.
<P>
Then type: <tt>RAWRITE <enter></tt>
You will be asked for the source file name:bare.i <enter>
<P>
You will next be asked for your target drive: A: <enter>
<P>
If the program errors out, and complains about "Attempting to DMA
across 64k boundary," FTP to sunsite.unc.edu, then <tt>cd</tt> to:
<P>
/pub/Linux/distributions/redhat/redhat-5.1/i386/dosutils/
<P>
And retrieve the version of RAWRITE there. It will be smaller than the
one you were using (~14k,) and the problem should go away. As I recall
this is only an issue on NT and possibly Windows 98 boxes.
<P>
If you are on a Linux or Unix box, the command to get it done is:
<PRE>
dd if=<your boot or root image> of=<where to write it to> bs=1440k
</PRE>
So, if you are making a Slackware boot disk:
<PRE>
dd if=bare.i of=/dev/fd0 bs=1440k <:enter>
</PRE>
For the root disk:
<PRE>
dd if=color.gz of=/dev/fd0 bs=1440k <enter>
</PRE>
<P><HR> <P>
<H3>Okay, I've got the proper disk(s). Now what?</H3>
<P>
Now insert the boot disk into your floppy drive and re-boot your
machine.
<P>
At this point, you will be prompted to login as root. After you login,
you must partition your disk or disks to prepare the HDD for
formatting, and ultimately, the installation of your software.
<P>
Linux requires at least two partitions for installation. You must have
a partition for your root or top level directory to live in, and you
also need a partition for your swap file to live in.
<P>
This is just a fancy way of saying you need at least one place on your
hard drive to store your operating system, and one place on your hard
drive to be used as a temporary storage area for your operating system
to put things that are not immediately needed.
<P>
If you are familiar with a Windows based system, the root partition is
the equivalent of your C:\ drive, and the swap file is the equivalent
of your pagefile.sys.
<P>
Just as it is always a good idea on a Windows box to store your data on
a separate device, apart from the operating system, the same rule
applies to Linux. This is why I urge you to have two HDD's in your
Linux machine.
<P>
Depending on which distribution you choose, the process required to
create the necessary partitions will vary. Similarly, whether you have
one or two HDD's will also make the best partitioning scheme vary.
<P>
<B>Slackware:</B>
<P>
Use the cfdisk utility. It is fairly easy to understand, and has decent
help.
<P>
<B>RedHat:</B>
<P>
You will probably want to use Disk Druid here.
<P>
For a single disk system, I would suggest two partitions:
<P>
One swap partition, between 16 and 32MB in size, depending on how much
RAM you have in your machine. The utility you are using, may or may not
ask you to specify the hex code to tell Linux that this is a swap
partition. If prompted for it, the proper code is type 82.
<P>
The rest of the disk should be partitioned as Linux native.
<P>
Some might argue that there should be three partitions here, in case
something goes wrong with the root partition, thus saving your data. I
have rarely seen a disk fail in just "spots", usually if a disk commits
suicide it's an all or nothing kind of deal.
<P>
I recommend two disks for precisely this sort of situation. The only
time I have ever seen two disks fail at once was due to a lightening
strike, which smoked the whole machine.
<P>
For a two disk system, I would suggest the following:
<P>
On the primary or first HDD (usually called hda in most distributions:)
<P>
Create two partitions, as stated above.
<P>
On the second HDD or secondary IDE interface:
<P>
Another swap partition of 16 or 32MB as above.
<P>
The rest of the drive should be partitioned Linux native.
<P>
After partitioning the disk or disks, you will be prompted to format
them.
<P>
Depending on the distribution used, at some point you will be asked
where you want the Linux native partition or partitions to be mounted.
This simply is asking you where in the filesystem hierarchy each
formatted partition should reside.
<P>
For single disk systems, mount your single Linux native partition as
your root, or / partition.
<P>
For two disk systems, mount your first disk as described above, then
mount the Linux native partition on your second drive as your /home
directory. This will be where all of your user specific information and
files will be stored, thus preventing an OS failure from taking all
your hard work and critical data with it.
<P>
THIS IS INTENDED TO COMPLEMENT, NOT REPLACE A DILIGENT, REGULAR BACKUP
SCHEME. I CAN'T STRESS ENOUGH THE IMPORTANCE OF REGULAR, RELIABLE
BACKUPS.
<P>
If I seem to be a bit paranoid about backups, I proudly state that I
am. I cannot begin to count the times my clients, friends and coworkers
have snickered, giggled, and laughed outright when I talk about this. I
am a constant source of jokes and entertainment for them. Until
something goes wrong. Then I am suddenly a savior to them.
<P>
By the way, when something like this happens to you, and it will, when
all the suits are sweating bullets, and looking to you like Moses with
the backup tablets in each hand, this is a great time for salary
negotiation.
<P><HR> <P>
<H3>Well, I've got the partitions made, and my disks are hungry for 1's
and 0's. What are my options for installation, and what programs do I
really need?</H3>
<P>
You have, with one notable exception, four possible choices for your
Linux installation. I will list them in order, from the smallest to the
largest. EXCEPTION - Option one, running directly off of the CD-ROM is
not available with the RedHat Distribution.
<P>
1. Running directly off of the CD-ROM, called a "live" filesystem.
<P>
This is the best option for just trying out Linux with a minimum impact
to your present system. Performance will be degraded, particularly if
you have a slow CD-ROM. This is the ONLY option I can safely recommend
if you are not doing this on a machine other than your primary system.
<P>
The exact actions required to accomplish this will vary between the
distributions, but will be called something like "run from CD-ROM", or
"run from live filesystem"
<P>
2. A minimal, or base installation, with just enough stuff to get you
up and running.
<P>
<B>Slackware:</B>
<P>
Select the following disk series:<BR>
A<BR>
AP (optional)<BR>
<P>
<B>RedHat:</B>
<P>
You can safely accept the defaults.
(Not much choice here, accept the default, or it won't boot. You will
be assimilated ;-).
<P>
3. A well rounded installation, consisting of the base stuff, plus some
productivity, network, and development tools
<P>
<B>Slackware:</B>
<P>
Select the following disk series:<BR>
A<BR>
AP<BR>
F<BR>
D<BR>
N<BR>
X<BR>
XAP<BR>
<P>
<B>RedHat:</B>
<P>
To the default selections, add:
<P>
X applications<BR>
Development tools<BR>
<P>
4. The entire distribution, sometimes called the "let's see how much
this sucker can take" installation.
<P>
<B>Slackware:</B>
<P>
Select the top option, "complete installation"
<P>
<B>RedHat:</B>
<P>
Select the "Everything" option.
<P>
A couple of suggestions concerning the everything install:
<P>
Below the dialog box where you chose "Everything", there will be
another box with the phrase "Choose individual packages." Select it.
<P>
You will then be taken to another dialog box listing the categories of
all the software that will be installed on the system. Scroll down to
Documentation.
<P>
For some reason RedHat wants to install the How-To's and things in
every format known to man, and in every language spoken by man.
<P>
Choose the text format and html format of the documents. The one
exception to this is if for whatever reason, you would find it useful
to have these documents in another language, in which case you should
select the appropriate language desired as well. When you are finished,
select done. This will save you a significant amount of disk space.
<P>
Common to both of the distributions, the following tasks are ones you
need to perform regardless of which distribution you use:
<P>
<H4>1. Creating boot and rescue disks.</H4>
<P>
<B>Slackware:</B>
<P>
Toward the end of the installation process, you will be asked to
configure your new Linux system. I strongly recommend making both a
lilo bootdisk, and a default, or vmlinuz bootdisk for your new machine,
and choosing NO to the install LILO option.
<P>
<B>RedHat:</B>
<P>
Toward the end of the installation, you will be asked if you want to
make a boot disk. Answer yes. Make several.
<P>
If prompted to configure either X windows, or your networking, answer
no. If you are forced to do either of these things for X, accept the
defaults. For networking, if asked for a network address, use
127.0.0.1, or choose the "loopback" option if available. We will be
configuring these things in the next installment.
<P>
<H4>2. Logging in as root for the first time and creating a user account for
yourself.</H4>
<P>
While there are times when it will be useful to be logged into your
system as root, most of the time, you will want to be logged in to your
own account on the machine.
<P>
There are many reasons for this, not the least of which is that when
logged in as yourself, just about the worst thing you can do is screw
up your own account.
<P>
However, when logged in as root, most of the safeguards built into the
system go away. You can do anything, even things you should not do.
Like hose the entire filesystem. This is both the strength, and the
weakness of the superuser account.
<P>
Treat it like a loaded gun. Don't pull it out unless you mean to use
it. If you mean to use it make sure you have a clear target and put it
right back in the holster as soon as you're done.
<P>
Now that I hope I've properly scared you, here's what you need to do:
<P>
Login as root. Then create a user account for yourself:
<PRE>
adduser rjenkins
</PRE>
You will be asked a series of questions. You can safely press enter to
accept the defaults for these things.
<P>
<H4>3. Selecting and entering your root and personal user account
passwords.</H4>
<P>
Now you need to password protect the root account and your user
account. Logged in as root, use the passwd command to do this for both
the root or superuser account, and your personal account.
<PRE>
passwd root
</PRE>
And then your user account:
<PRE>
passwd rjenkins
</PRE>
A short comment on password selection and security. Good password
discipline is very important, whether you are connected to a network or
not. Briefly, here are a few guidelines:
<P>
Choose something you can easily remember, say kibble.
<P>
Now, add a punctuation mark and a number to it, say ?kibble4.
<P>
Finally, for best security, a neat trick is to take the word you can
remember easily, in this case kibble, and for each letter in the word,
move up one row on the keyboard, and over either to the left or the
right.
<P>
So for ?kibble4 if we move up and to the left, we get: ?u8ggi34.
<P>
If we go up and to the right we get: ?o9hhp44.
<P>
This is easy to remember, and will defeat all but the most
sophisticated password cracking programs.
<P><HR> <P>
<H3>Navigating the Linux system, and obtaining help and information from
the documentation.</H3>
<P>
The first thing you will want to do is learn how to navigate your
system. You will find a wealth of documentation in the /usr/doc
directory. In particular, look at the /usr/doc/how-to directory, and
check out the installation and user's guide.
<P>
If you purchased your CD bundled with a book, make use of it. There
should be enough information there, or in the doc directory to get you
started.
<P>
While the editors and document tools available will vary from
distribution to distribution, every distribution should have vi
available. You will probably either learn to love or hate it. There
does not seem to be any middle ground, but I suggest you at least learn
to use it, since it will allow you to plunk down at any Unix machine
and use it.
<P>
Much abbreviated, here's a short list of relevant commands:
<P>
To open a file:<BR>
<tt>vi filename </tt>
<P>
To insert text in a file:<BR>
Press the i key to enter insert mode, then enter your text.
<P>
To write your changes to a file:<BR>
Press the escape <Esc> key, then :w <:enter>
<P>
To close a file:<BR>
Press the escape <Esc> key, then :q <enter>
<P>
An even better option is to use the Midnight Commander, if it is
available on your system. Simply enter <tt>mc</tt>.
<P>
It looks and acts a lot like the N*rton Commander, and makes an easy
transition for anyone who has used that program, or is familiar with
the DOSSHELL.
<P>
Well, that's about it for now, Congratulations! See, that wasn't so
hard now was it? In the next installment, we'll configure the X
windowing system and your networking setup.
<P><HR><P>
<H3>Resources</H3>
<P>
Software Manufacturers:<BR>
RedHat Linux: <A HREF="http://www.redhat.com/">http://www.redhat.com/</A>
<BR>
Slackware: <A HREF="http://www.cdrom.com/">http://www.cdrom.com/</A>
<P>
Third Party Distributors:<BR>
<A HREF="http://www.cheapbytes.com/">http://www.cheapbytes.com</A> <BR>
<A HREF="http://www.linuxmall.com/">http://www.linuxmall.com</A> <BR>
<A HREF="http://www.infomagic.com/">http://www.infomagic.com/</A> <BR>
<A HREF="http://www.cdrom.com/">http://www.cdrom.com</A>
<P>
Local User Groups:<BR>
Most areas have several local computer-oriented publications available.
Have a look for a local user group in your area. There are also list of
user groups by area at <A HREF="http://www.ssc.com/glue/groups/">
http://www.ssc.com/glue/groups/</A>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Ron Jenkins <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./rojansky.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./henning2.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H1>Linux Kernel Compilation Benchmark</H1>
<FONT FACE="Comic Sans MS">
by <A HREF="mailto:editor@cpureview.com"><I>William Henning</I></A><BR>
Editor, <A HREF="http://www.cpureview.com">CPUReview</A></FONT><BR>
Copyright July 1, 1998<BR>
ALL RIGHTS RESERVED<BR>
<P>I have purchased a K6-2/266Mhz processor and a Soyo 5EHM Super7
motherboard specifically so that I would be able to benchmark the K6-2
against Intel PII and Cyrix processors. Since I have been running Linux
since the v0.10 days, I thought it would be useful to perform some
benchmarks under Linux. Here are my findings.</P>
<P>As I have time (and access to equipment) to add additional results, I
will update this page. Soon I hope to add PII results (ABIT LX6, 64Mb 10ns
Hyundai SDRAM, Riva 128, same 1.6Gb WD hard drive).</P>
<H2>System Description - Super Socket 7</H2>
<UL>
<LI>Soyo 5EHM motherboard (MVP3, AGP, 1M cache, Super7)</LI>
<LI>64Mb 10ns SDRAM (Hyundai, 2x32Mb sticks)</LI>
<LI>1.6Gb Western Digital hard drive</LI>
<LI>Asus 3DExplorer AGP (Riva 128)</LI>
</UL>
<H2>System Description - Slot 1</H2>
<UL>
<LI>ABIT LX6 Slot 1 motherboard</LI>
<LI>64Mb 10ns SDRAM (Hyundai, 2x32Mb sticks)</LI>
<LI>1.6Gb Western Digital hard drive</LI>
<LI>Asus 3DExplorer AGP (Riva 128)</LI>
</UL>
<H2>Methodology</H2>
<UL>
<LI>'make clean; make dep; time make zdisk'</LI>
<LI>using the same kernel configuration under Redhat 5.0 </LI>
<LI>Linux v2.0.32, with this <A HREF="config.txt">.config</A> file</LI>
<LI>GCC v2.7.2.3</LI>
</UL>
<P> <HR> <P>
<H2>Cyrix/IBM PR233 Results</H2>
<P> <HR> <P>
<TABLE WIDTH="80%" BORDER="1">
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">PR Rating</TD>
<TD WIDTH="54" ALIGN="CENTER" BGCOLOR="#80FFFF">Voltage</TD>
<TD WIDTH="60" ALIGN="CENTER" BGCOLOR="#80FFFF">Setting</TD>
<TD WIDTH="55" ALIGN="CENTER" BGCOLOR="#80FFFF">BogoM</TD>
<TD WIDTH="54" ALIGN="CENTER" BGCOLOR="#80FFFF">User</TD>
<TD WIDTH="52" ALIGN="CENTER" BGCOLOR="#80FFFF">System</TD>
<TD WIDTH="58" ALIGN="CENTER" BGCOLOR="#80FFFF">Elapsed</TD>
<TD WIDTH="60" ALIGN="CENTER" BGCOLOR="#80FFFF">CPU util</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">PR200</TD>
<TD WIDTH="54" ALIGN="CENTER">2.9</TD>
<TD WIDTH="60" ALIGN="CENTER">2.5X66</TD>
<TD WIDTH="55" ALIGN="CENTER">166.30</TD>
<TD WIDTH="54" ALIGN="CENTER">283.22</TD>
<TD WIDTH="52" ALIGN="CENTER">21.26</TD>
<TD WIDTH="58" ALIGN="CENTER">5:28.56</TD>
<TD WIDTH="60" ALIGN="CENTER">92%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">PR233</TD>
<TD WIDTH="54" ALIGN="CENTER">2.9</TD>
<TD WIDTH="60" ALIGN="CENTER">2X100</TD>
<TD WIDTH="55" ALIGN="CENTER">199.88</TD>
<TD WIDTH="54" ALIGN="CENTER">236.4</TD>
<TD WIDTH="52" ALIGN="CENTER">17.48</TD>
<TD WIDTH="58" ALIGN="CENTER">4:35.97</TD>
<TD WIDTH="60" ALIGN="CENTER">91%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">PR233</TD>
<TD WIDTH="54" ALIGN="CENTER">2.9</TD>
<TD WIDTH="60" ALIGN="CENTER">2.5X75</TD>
<TD WIDTH="55" ALIGN="CENTER">187.19</TD>
<TD WIDTH="54" ALIGN="CENTER">257.99</TD>
<TD WIDTH="52" ALIGN="CENTER">20.17</TD>
<TD WIDTH="58" ALIGN="CENTER">5:01.32</TD>
<TD WIDTH="60" ALIGN="CENTER">92%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">PR266</TD>
<TD WIDTH="54" ALIGN="CENTER">2.9</TD>
<TD WIDTH="60" ALIGN="CENTER">2.5X83</TD>
<TD WIDTH="55" ALIGN="CENTER">207.67</TD>
<TD WIDTH="54" ALIGN="CENTER">233.75</TD>
<TD WIDTH="52" ALIGN="CENTER">19.51</TD>
<TD WIDTH="58" ALIGN="CENTER">4:35.40</TD>
<TD WIDTH="60" ALIGN="CENTER">91%</TD>
</TR>
</TABLE>
<H2>AMD K6-2 266 Results</H2>
<TABLE WIDTH="80%" BORDER="1">
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">PR Rating</TD>
<TD WIDTH="54" ALIGN="CENTER" BGCOLOR="#80FFFF">Voltage</TD>
<TD WIDTH="60" ALIGN="CENTER" BGCOLOR="#80FFFF">Setting</TD>
<TD WIDTH="55" ALIGN="CENTER" BGCOLOR="#80FFFF">BogoM</TD>
<TD WIDTH="54" ALIGN="CENTER" BGCOLOR="#80FFFF">User</TD>
<TD WIDTH="52" ALIGN="CENTER" BGCOLOR="#80FFFF">System</TD>
<TD WIDTH="58" ALIGN="CENTER" BGCOLOR="#80FFFF">Elapsed</TD>
<TD WIDTH="60" ALIGN="CENTER" BGCOLOR="#80FFFF">CPU util</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">166</TD>
<TD WIDTH="54" ALIGN="CENTER">2.3</TD>
<TD WIDTH="60" ALIGN="CENTER">2.5x66</TD>
<TD WIDTH="55" ALIGN="CENTER">332.60</TD>
<TD WIDTH="54" ALIGN="CENTER">274.57</TD>
<TD WIDTH="52" ALIGN="CENTER">24.11</TD>
<TD WIDTH="58" ALIGN="CENTER">5:22.43</TD>
<TD WIDTH="60" ALIGN="CENTER">92%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">187.5</TD>
<TD WIDTH="54" ALIGN="CENTER">2.2</TD>
<TD WIDTH="60" ALIGN="CENTER">2.5x75</TD>
<TD WIDTH="55" ALIGN="CENTER">374.37</TD>
<TD WIDTH="54" ALIGN="CENTER">244.5</TD>
<TD WIDTH="52" ALIGN="CENTER">20.38</TD>
<TD WIDTH="58" ALIGN="CENTER">4:47.52</TD>
<TD WIDTH="60" ALIGN="CENTER">92%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">200</TD>
<TD WIDTH="54" ALIGN="CENTER">2.3</TD>
<TD WIDTH="60" ALIGN="CENTER">3x66</TD>
<TD WIDTH="55" ALIGN="CENTER">398.95</TD>
<TD WIDTH="54" ALIGN="CENTER">242.10</TD>
<TD WIDTH="52" ALIGN="CENTER">21.42</TD>
<TD WIDTH="58" ALIGN="CENTER">4:37.33</TD>
<TD WIDTH="60" ALIGN="CENTER">91%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">210</TD>
<TD WIDTH="54" ALIGN="CENTER">2.2</TD>
<TD WIDTH="60" ALIGN="CENTER">2.5x83</TD>
<TD WIDTH="55" ALIGN="CENTER">415.33</TD>
<TD WIDTH="54" ALIGN="CENTER">221.5</TD>
<TD WIDTH="52" ALIGN="CENTER">19.96</TD>
<TD WIDTH="58" ALIGN="CENTER">4:18.61</TD>
<TD WIDTH="60" ALIGN="CENTER">93%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">233</TD>
<TD WIDTH="54" ALIGN="CENTER">2.3</TD>
<TD WIDTH="60" ALIGN="CENTER">3.5x66</TD>
<TD WIDTH="55" ALIGN="CENTER">465</TD>
<TD WIDTH="54" ALIGN="CENTER">220.53</TD>
<TD WIDTH="52" ALIGN="CENTER">19.55</TD>
<TD WIDTH="58" ALIGN="CENTER">4:24.61</TD>
<TD WIDTH="60" ALIGN="CENTER">90%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">250</TD>
<TD WIDTH="54" ALIGN="CENTER">2.2</TD>
<TD WIDTH="60" ALIGN="CENTER">2.5x100</TD>
<TD WIDTH="55" ALIGN="CENTER">499.71</TD>
<TD WIDTH="54" ALIGN="CENTER">183.13</TD>
<TD WIDTH="52" ALIGN="CENTER">17.64</TD>
<TD WIDTH="58" ALIGN="CENTER">3:43.42</TD>
<TD WIDTH="60" ALIGN="CENTER">89%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">266</TD>
<TD WIDTH="54" ALIGN="CENTER">2.3</TD>
<TD WIDTH="60" ALIGN="CENTER">4x66</TD>
<TD WIDTH="55" ALIGN="CENTER">530.84</TD>
<TD WIDTH="54" ALIGN="CENTER">199.90</TD>
<TD WIDTH="52" ALIGN="CENTER">19.55</TD>
<TD WIDTH="58" ALIGN="CENTER">4:04.19</TD>
<TD WIDTH="60" ALIGN="CENTER">89%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">280</TD>
<TD WIDTH="54" ALIGN="CENTER">2.2</TD>
<TD WIDTH="60" ALIGN="CENTER">2.5x112</TD>
<TD WIDTH="55" ALIGN="CENTER">558.69</TD>
<TD WIDTH="54" ALIGN="CENTER">164.17</TD>
<TD WIDTH="52" ALIGN="CENTER">15.29</TD>
<TD WIDTH="58" ALIGN="CENTER">3:23.83</TD>
<TD WIDTH="60" ALIGN="CENTER">88%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">300</TD>
<TD WIDTH="54" ALIGN="CENTER">2.3</TD>
<TD WIDTH="60" ALIGN="CENTER">4.5x66</TD>
<TD WIDTH="55" ALIGN="CENTER">598.02</TD>
<TD WIDTH="54" ALIGN="CENTER">187.84</TD>
<TD WIDTH="52" ALIGN="CENTER">19.63</TD>
<TD WIDTH="58" ALIGN="CENTER">3:51.50</TD>
<TD WIDTH="60" ALIGN="CENTER">89%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">300</TD>
<TD WIDTH="54" ALIGN="CENTER">2.3</TD>
<TD WIDTH="60" ALIGN="CENTER">4x75</TD>
<TD WIDTH="55" ALIGN="CENTER">598.02</TD>
<TD WIDTH="54" ALIGN="CENTER">176.94</TD>
<TD WIDTH="52" ALIGN="CENTER">19.26</TD>
<TD WIDTH="58" ALIGN="CENTER">3:37.84</TD>
<TD WIDTH="60" ALIGN="CENTER">90%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">300</TD>
<TD WIDTH="54" ALIGN="CENTER">2.3</TD>
<TD WIDTH="60" ALIGN="CENTER">3x100</TD>
<TD WIDTH="55" ALIGN="CENTER">599.65</TD>
<TD WIDTH="54" ALIGN="CENTER">161.73</TD>
<TD WIDTH="52" ALIGN="CENTER">15.06</TD>
<TD WIDTH="58" ALIGN="CENTER">3:20.87</TD>
<TD WIDTH="60" ALIGN="CENTER">88%</TD>
</TR>
</TABLE>
<H2>Intel Pentium-II 233 Results</H2>
<TABLE WIDTH="80%" BORDER="1">
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">PR Rating</TD>
<TD WIDTH="54" ALIGN="CENTER" BGCOLOR="#80FFFF">Voltage</TD>
<TD WIDTH="60" ALIGN="CENTER" BGCOLOR="#80FFFF">Setting</TD>
<TD WIDTH="55" ALIGN="CENTER" BGCOLOR="#80FFFF">BogoM</TD>
<TD WIDTH="54" ALIGN="CENTER" BGCOLOR="#80FFFF">User</TD>
<TD WIDTH="52" ALIGN="CENTER" BGCOLOR="#80FFFF">System</TD>
<TD WIDTH="58" ALIGN="CENTER" BGCOLOR="#80FFFF">Elapsed</TD>
<TD WIDTH="60" ALIGN="CENTER" BGCOLOR="#80FFFF">CPU util</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">233</TD>
<TD WIDTH="54" ALIGN="CENTER">Default</TD>
<TD WIDTH="60" ALIGN="CENTER">3.5x66</TD>
<TD WIDTH="55" ALIGN="CENTER">233.47</TD>
<TD WIDTH="54" ALIGN="CENTER">197.46</TD>
<TD WIDTH="52" ALIGN="CENTER">15.25</TD>
<TD WIDTH="58" ALIGN="CENTER">3:57.26</TD>
<TD WIDTH="60" ALIGN="CENTER">89%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">262.5</TD>
<TD WIDTH="54" ALIGN="CENTER">Default</TD>
<TD WIDTH="60" ALIGN="CENTER">3.5x75</TD>
<TD WIDTH="55" ALIGN="CENTER">262.14</TD>
<TD WIDTH="54" ALIGN="CENTER">180.75</TD>
<TD WIDTH="52" ALIGN="CENTER">12.73</TD>
<TD WIDTH="58" ALIGN="CENTER">3:38.96</TD>
<TD WIDTH="60" ALIGN="CENTER">88%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">291.7</TD>
<TD WIDTH="54" ALIGN="CENTER">Default</TD>
<TD WIDTH="60" ALIGN="CENTER">3.5x83</TD>
<TD WIDTH="55" ALIGN="CENTER">291.64</TD>
<TD WIDTH="54" ALIGN="CENTER">157.49</TD>
<TD WIDTH="52" ALIGN="CENTER">11.69</TD>
<TD WIDTH="58" ALIGN="CENTER">3:12.69</TD>
<TD WIDTH="60" ALIGN="CENTER">87%</TD>
</TR>
</TABLE>
<H2>Simulated Celeron Results - Intel Pentium-II 233 with L2 Cache disabled</H2>
<TABLE WIDTH="80%" BORDER="1">
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">PR Rating</TD>
<TD WIDTH="54" ALIGN="CENTER" BGCOLOR="#80FFFF">Voltage</TD>
<TD WIDTH="60" ALIGN="CENTER" BGCOLOR="#80FFFF">Setting</TD>
<TD WIDTH="55" ALIGN="CENTER" BGCOLOR="#80FFFF">BogoM</TD>
<TD WIDTH="54" ALIGN="CENTER" BGCOLOR="#80FFFF">User</TD>
<TD WIDTH="52" ALIGN="CENTER" BGCOLOR="#80FFFF">System</TD>
<TD WIDTH="58" ALIGN="CENTER" BGCOLOR="#80FFFF">Elapsed</TD>
<TD WIDTH="60" ALIGN="CENTER" BGCOLOR="#80FFFF">CPU util</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">233</TD>
<TD WIDTH="54" ALIGN="CENTER">Default</TD>
<TD WIDTH="60" ALIGN="CENTER">3.5x66</TD>
<TD WIDTH="55" ALIGN="CENTER">233.47</TD>
<TD WIDTH="54" ALIGN="CENTER">324.07</TD>
<TD WIDTH="52" ALIGN="CENTER">20.19</TD>
<TD WIDTH="58" ALIGN="CENTER">6:08.43</TD>
<TD WIDTH="60" ALIGN="CENTER">93%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">262.5</TD>
<TD WIDTH="54" ALIGN="CENTER">Default</TD>
<TD WIDTH="60" ALIGN="CENTER">3.5x75</TD>
<TD WIDTH="55" ALIGN="CENTER">262.14</TD>
<TD WIDTH="54" ALIGN="CENTER">291.43</TD>
<TD WIDTH="52" ALIGN="CENTER">16.96</TD>
<TD WIDTH="58" ALIGN="CENTER">5:32.61</TD>
<TD WIDTH="60" ALIGN="CENTER">92%</TD>
</TR>
<TR>
<TD WIDTH="67" ALIGN="CENTER" BGCOLOR="#80FFFF">291.7</TD>
<TD WIDTH="54" ALIGN="CENTER">Default</TD>
<TD WIDTH="60" ALIGN="CENTER">3.5x83</TD>
<TD WIDTH="55" ALIGN="CENTER">291.64</TD>
<TD WIDTH="54" ALIGN="CENTER">262.19</TD>
<TD WIDTH="52" ALIGN="CENTER">16.10</TD>
<TD WIDTH="58" ALIGN="CENTER">5:02.45</TD>
<TD WIDTH="60" ALIGN="CENTER">92%</TD>
</TR>
</TABLE>
<P> <HR> <P>
<H2>Discussion of results</H2>
<P> <HR> <P>
<P>Please note, in the comparisons below, only the "User" time of the
kernel compilations is used.</P>
BogoMips is equivalent to the megahertz it is running at, and the AMD K6-2
has a BogoMips rating that is twice the megahertz it is run at.</P>
<P>In order to be able to make a direct, Mhz-to-Mhz comparison of the
processors, I underclocked the K6-2 to run at 2.5x75 (Cyrix PR233 rating)
and 2.5x83 (PR266 rating). Comparing the total elapsed time for the
compilation, we find that:</P>
<H3>Comparison by actual Mhz</H3>
<TABLE WIDTH="50%" BORDER="1">
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">CPU</TD>
<TD WIDTH="60" BGCOLOR="#80FFFF">Cyrix</TD>
<TD WIDTH="56" BGCOLOR="#80FFFF">Amd</TD>
<TD WIDTH="92" BGCOLOR="#80FFFF">Amd % faster</TD>
</TR>
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">2.5x75</TD>
<TD WIDTH="60">257.99</TD>
<TD WIDTH="56">244.5</TD>
<TD WIDTH="92">5.23%</TD>
</TR>
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">2.5x83</TD>
<TD WIDTH="60">233.75</TD>
<TD WIDTH="56">221.5</TD>
<TD WIDTH="92">5.24%</TD>
</TR>
</TABLE>
<P>The AMD K6-2 processor seems to be 5.25% faster than a Cyrix MX
processor at the same clock speed. The PR rating system would not seem to
apply to Linux kernel compilations.</P>
<H3>Comparison by PR rating</H3>
<TABLE WIDTH="50%" BORDER="1">
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">CPU</TD>
<TD WIDTH="60" BGCOLOR="#80FFFF">Cyrix</TD>
<TD WIDTH="56" BGCOLOR="#80FFFF">Amd</TD>
<TD WIDTH="92" BGCOLOR="#80FFFF">Amd % faster</TD>
</TR>
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">PR233</TD>
<TD WIDTH="60">257.99</TD>
<TD WIDTH="56">220.53</TD>
<TD WIDTH="92">14.52%</TD>
</TR>
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">PR266</TD>
<TD WIDTH="60">233.75</TD>
<TD WIDTH="56">199.90</TD>
<TD WIDTH="92">14.48%</TD>
</TR>
</TABLE>
<P>The AMD K6-2 is 14.5% faster than a Cyrix/IBM 686MX when comparing
a K6-2 at the same Mhz as a Cyrix chip is PR rated for.
</P>
<H2>How about the Pentium II?</H2>
<P>
I wanted to see how the P2 would compare to the K6-2. As I only have
a P2-233, I had to overclock it to approach 300Mhz. Please note, I used
an extra 3" fan blowing air at the CPU.
</P>
<H3>Comparison between P2 and K6-2</H3>
<TABLE WIDTH="50%" BORDER="1">
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">CPU</TD>
<TD WIDTH="60" BGCOLOR="#80FFFF">P2</TD>
<TD WIDTH="56" BGCOLOR="#80FFFF">Amd</TD>
<TD WIDTH="92" BGCOLOR="#80FFFF">P2 % faster</TD>
</TR>
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">266Mhz #1</TD>
<TD WIDTH="60">180.75</TD>
<TD WIDTH="56">183.13</TD>
<TD WIDTH="92">1.3%</TD>
</TR>
<TR>
<TD WIDTH="84" BGCOLOR="#80FFFF">300Mhz #2</TD>
<TD WIDTH="60">157.49</TD>
<TD WIDTH="56">161.71</TD>
<TD WIDTH="92">2.6%</TD>
</TR>
</TABLE>
<P><FONT SIZE="-1">NOTES</FONT></P>
<OL>
<LI><FONT SIZE="-1">P2 at 262.5Mhz (75x3.5), K6-2 at 250Mhz (2.5x100)
</FONT></LI>
<LI><FONT SIZE="-1">P2 at 291.6Mhz (83x3.5), K6-2 at 300Mhz (3x100)
</FONT></LI>
</OL>
<P>
The P2 was faster for compiling the kernel by less than three percent.
There is no point in comparing the K6-2 to the Celeron - see the
simulated Celeron benchmarks on the previous page. The Celeron is not
suitable for use as a Linux development machine.
</P>
<P> <HR> <P>
<H3>Price Comparison</H3>
<P> <HR> <P>
<P>As we all know, absolute performance is just part of deciding which
processor to get. If cost was no object, we would all be running Kryotech
Alpha 767's, or dual PII-400's. For reference purposes, here are some
prices, in US$, as 1:14pm PST of July 5 from PriceWatch. </P>
<TABLE WIDTH="50%" BORDER="1">
<TR>
<TD BGCOLOR="#80FFFF" ALIGN="CENTER">CPU </TD>
<TD BGCOLOR="#80FFFF" ALIGN="CENTER">233</TD>
<TD BGCOLOR="#80FFFF" ALIGN="CENTER">266</TD>
<TD BGCOLOR="#80FFFF" ALIGN="CENTER">300</TD>
</TR>
<TR>
<TD BGCOLOR="#80FFFF" ALIGN="CENTER">Cyrix</TD>
<TD ALIGN="CENTER">$49</TD>
<TD ALIGN="CENTER">$74</TD>
<TD ALIGN="CENTER">$96</TD>
</TR>
<TR>
<TD BGCOLOR="#80FFFF" ALIGN="CENTER">AMD K6-2</TD>
<TD ALIGN="CENTER">n/a</TD>
<TD ALIGN="CENTER">$113</TD>
<TD ALIGN="CENTER">$163</TD>
</TR>
<TR>
<TD BGCOLOR="#80FFFF" ALIGN="CENTER">AMD K6</TD>
<TD ALIGN="CENTER">$68</TD>
<TD ALIGN="CENTER">$93</TD>
<TD ALIGN="CENTER">$125</TD>
</TR>
<TR>
<TD BGCOLOR="#80FFFF" ALIGN="CENTER">Pentium II</TD>
<TD ALIGN="CENTER">$158</TD>
<TD ALIGN="CENTER">$177</TD>
<TD ALIGN="CENTER">$235</TD>
</TR>
</TABLE>
<H2>Conclusion</H2>
<P>There is no question that the Cyrix processors provide excellent
performance for a low cost. The K6 (non-3d) processors are also an
excellent value, however as I don't have such a CPU I was unable to run
tests on one - but I would expect that on the same motherboard with
similar memory and hard disk the performance of the plain K6's would be
very close to the K6-2's.</P>
<P>The K6-2 appears to be an excellent value for a developer's machine. A
14.5% increase in speed over the 686MX is difficult to ignore.
The P2 is less than three percent faster than the K6-2 at comparable
speeds. I do not think that such a small difference in speed justifies
the price differential between the P2 and the K6-2.</P>
<P>I hope you found this article to be of use. Please remember that I
welcome feedback on this (or other) articles. I can be contacted at
<A HREF="mailto:editor@cpureview.com">editor@cpureview.com.</A></P>
<P>Regards,</P>
<FONT FACE="Comic Sans MS">
<A HREF="mailto:editor@cpureview.com"><I>William Henning</I></A><BR>
Editor, <A HREF="http://www.cpureview.com">CPUReview</A></FONT><BR><BR>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, William Henning <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./jenkins1.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./bandel.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<font color="navy">A <I>Linux Journal</I> Review</font>:
This article appeared in the November 1997 issue of <I>Linux Journal</I>.
<P> <HR> <P>
<center>
<H1><font color="maroon">Linux Kernel Installation</font></H1>
<H4>By <a href="mailto:dbandel@ix.netcom.com">David A. Bandel</a></H4>
</center>
<P> <HR> <P>
Linux is many users' introduction to a truly powerful,
configurable operating system. In the past, a Unix-like operating
system was out of reach for most. If it wasn't the operating
system's 4-digit price tag, it was the hardware. Even the now
free-for-personal-use SCO Unixware requires a system with
SCSI drives, and most of us are using IDE to keep costs down. Along with
the power that Linux brings
comes the need to perform a task users have not had to do on
simpler operating systems: configure the kernel to your hardware
and operations.
<p>
Previous installation kernels from 1.2.x and before <i>suggested</i>
that you rebuild; however, with the new 2.0.x kernel, rebuilding has almost
become a necessity. The kernel that comes with the installation packages from
Red Hat, Caldera, Debian
and most others, is a generic, ``almost everything is included''
kernel. While rebuilding a kernel may seem like a daunting task
and living with the installed kernel may not be too bad, rebuilding is a
good introduction to your system.
<p><HR> <P>
<h3>Why Roll Your Own?</h3>
<p>
The standard installation kernels are an attempt to make
as many systems as
possible usable for the task of installing a workable Linux system. As
such,
the kernel is bloated and has a lot of unnecessary code in it for
the average machine. It also does not have some code a lot of users
want.
<p>
Then, of course, there's always the need to upgrade
the kernel because you've bought new hardware, etc. Upgrading within
a series is usually very straightforward. When it comes to
upgrading, say from 1.2.something to 2.0.something, now the task is
beyond the scope of this article and requires some savvy.
Better to get a new distribution CD and start fresh--this is also true
for upgrading to the experimental 2.1.x kernels.
<p><HR> <P>
<h3>Kernel Version Numbering</h3>
<p>
All Linux kernel version
numbers contain three numbers separated by periods (dots). The
first number is the kernel version. We are now on the third kernel version,
2. Some of you may be running a version 1 kernel, and I am aware of
at least one running version 0 kernel.
<p>
The second number
is the kernel major number. Major numbers which are even numbers
(0 is considered an even number) are said to be stable. That is, these
kernels should not have any crippling bugs, as they have been fairly
heavily tested.
While some contain small bugs, they can usually be upgraded for
hardware compatibility or to armor the kernel against system
crackers. For example, kernel
2.0.30, shunned by some in favor of 2.0.29 because of reported bugs,
contains several patches including one to protect against SYN denial
of service attacks.
The kernels with odd major numbers are developmental kernels. These
have not been tested and often as not will break any software packages
you may be running. Occasionally, one works well enough that it will
be adopted by users needing
the latest and greatest support before the next stable release.
This is the
exception rather than the rule, and it requires substantial changes
to a system.
<p>
The last number is the minor number and is
increased by one for each release. If you see kernel version 2.0.8,
you know it's a kernel 2.0, stable kernel, and it is the ninth release
(we begin counting with 0).
<p><HR> <P>
<h3>Assumptions</h3>
<p>
I hate to
make any assumptions; they always seem to come back to bite me. So I
need to mention a few things so that we're working off the same sheet of
music. In order to compile a kernel, you'll need a few things. First,
I'll assume you've installed a distribution with a 2.0.x kernel,
all the base
packages and perhaps a few more. You'll also need to have installed
<b>gcc</b> version
2.7 and all the supporting gcc libraries. You'll also need the
libc-dev library and the binutils and bin86 packages (normally
installed as part of a standard distribution install). If you download
the source or copy it from a CD, you'll also need the <b>tar</b> and <b>gunzip</b>
packages. Also, you'll need lots of disk real estate.
Plan on 7MB to download, another 20MB to unpack this monster and a few more
to compile it.
<p>
Needless to say, many of the things we will discuss
require you to be logged in as root. If you've downloaded the kernel
as a non-privileged user and you have write permission to the /usr/src
subdirectory, you can still do much of this task without becoming root.
For the newcomers to Linux, I highly recommend you do as much
as possible as a non-privileged user and become root (type:
<tt>su - face</tt>) only for those jobs that require it.
One day, you'll be glad you acquired this habit. Remember, there are
two kinds of systems administrators, those who have totally wrecked a running
setup inadvertently while logged in as root, and those who will.
<p><HR> <P>
<h3>Obtaining/Upgrading the Source</h3>
<p>
Kernel sources for
Linux are available from a large number of ftp sites and
on almost every Linux distribution CD-ROM. For starters, you can
go to ftp.funet.fi,
the primary site for the Linux kernel. This site has a
list of mirror sites from which you can download the kernel. Choosing
the site nearest you helps decrease overall Internet traffic.
<p>
Once you've obtained the source, put it in the /usr/src directory.
Create a subdirectory to hold the source files once they are unpacked using
tar. I recommend naming the directories
something like linux-2.0.30 or kernel-2.0.30, substituting your
version numbers. Create a link to this subdirectory called linux using the
following command:
<p>
<pre>
ln -sf linux-2.0.30 linux
</pre>
I included the <tt>-f</tt> in the
link command because if you already have a kernel source in /usr/src,
it will contain this link too, and we want to force
it to look in our subdirectory.
(On some versions of <b>ln</b> (notably version 3.13), the force option
(<tt>-f</tt>)
does not work. You'll have to first remove the link then establish
it again. This works correctly by version 3.16.)
The only time you may have a problem is if linux is a
subdirectory name, not a link. If you have this problem, you'll
have to rename the subdirectory before continuing:
<p>
<pre>
mv linux linux-2.0.8
</pre>
Now issue the command:
<p>
<pre>
tar xzvf linux-kernel-source.tar.gz
</pre>
I have a habit of always including <tt>w</tt> (wait for
confirmation) in the tar option string, then when
I see that the .tar.gz or .tgz file is going to unpack into its
own subdirectory, I <tt>ctrl-C</tt> out and reissue
the command without the <tt>w</tt>.
This way I can prevent corrupted archives from unpacking into the current
directory.
<p>
Once you have the kernel unpacked, if you have any
patches you wish to apply, now is a good time. Let's say you don't
wish to run kernel 2.0.30, but you do want the tcp-syn-cookies. Copy
the patch (called tcp-syn-cookies-patch-1) into the /usr/src
directory and issue the command:
<p>
<pre>
patch < tcp-syn-cookies-patch-1
</pre>
This command
applies the patch to the kernel. Look for files with
an .rej extension in in the /usr/src directory.
These files didn't patch properly. They may be unimportant, but
peruse them anyway. If you installed a Red Hat system with some but not all of
the kernel source (SPARC, PowerPC, etc.), you'll see some of these files.
As long as they're not for your architecture, you're okay.
<p><HR> <P>
<h3>Preparation</h3>
<p>
As a final note, before we change (<b>cd</b>) into the
kernel source directory and start building our
new kernel, let's check some links that are needed. In your
/usr/include
directory, make sure you have the following soft links:
<p>
<pre>
asm - /usr/src/linux/include/asm
linux - /usr/src/linux/include/linux
scsi - /usr/src/linux/include/scsi
</pre>
Now, you see another reason to
standardize the location of the kernel. If you don't put the latest
kernel you wish to install in /usr/src/linux
(via a link), the above links will not reach their intended target
(dangling links), and the kernel may fail to compile.
<p><HR> <P>
<h3>How to proceed</h3>
<p>
Once everything else is set up, change directories into /usr/src/linux.
Although you may want to stop off and peruse some of the documentation in the
Documentation directory, particularly if you have any special hardware
needs. Also, several of the CD-ROM drivers need to be built with
customized settings. While they usually work as is, these drivers
may give warning messages when loaded. If this doesn't bother
you and they work as they should, don't worry. Otherwise, read the
appropriate .txt, .h (header) files and .c (c code) files. For
the most part, I have found them to be well commented and easy to
configure. If
you don't feel brave, you don't have to do it. Just remember you
can always restore the original file by unpacking the gzipped tar file (or
reinstalling the .rpm files) again.
<p><HR> <P>
<h3>Beginning to Compile</h3>
<p>
The first command I recommend you issue is:
<p>
<pre>
make mrproper
</pre>
While this command
is not necessary when the kernel source is in pristine condition,
it is a good habit to cultivate. This command ensures that old object files are
not littering the source tree and are not used or in the way.
<p><HR> <P>
<h3>Configuring the Kernel</h3>
<p>
Now, you're ready to configure
the kernel. Before starting, you'll need to understand a little
about modules. Think of a module as something you can plug into the
kernel for a special purpose. If you have a small network at home
and sometimes want to use it (but not always), maybe you'll want to
compile
your Ethernet card as a module. To use the module, the machine must
be running and have access to the /lib/modules
This means that the drive (IDE, SCSI, etc., but could be an
ethernet card in the case of nfs), the file system (normally ext2 but could be
nfs) and the kernel type (hopefully elf) must be compiled in and cannot be
modules. Modules aren't available until the kernel is loaded, the drive (or
network) accessed, and the file system mounted.
These files must be compiled into the kernel or
it will not be able to mount the root partition. If you're mounting
the root partition over the network, you'll need the network file
system module, and your Ethernet card compiled.
<p>
Why use
modules? Modules make the kernel smaller. This reduces the
amount of protected space never given up by the kernel. Modules load and
unload and that memory can be reallocated. If you use a module more
than about
90% of the time the machine is up, compile it. Using a module in
this case can be wasteful of memory, because while the module takes up the
same amount of memory as if it were compiled, the kernel needs
a little more code to have
a hook for the module. Remember, the kernel runs in protected
space,
but the modules don't. That said, I don't often follow my own
advice. I
compile in: ext2, IDE and elf support only. While I use an Ethernet
card almost all
the time, I compile everything else as modules: a.out, java, floppy,
iso9660, msdos, minix, vfat, smb, nfs, smc-ultra (Ethernet card),
serial, printer, sound, ppp, etc.
Many of these only run for a few minutes at a time here and there.
<p>
The next step is to configure the
kernel. Here we have three choices--while all do the same thing,
I recommend using one of the graphical methods. The old way was to
simply type: <tt>make config</tt>. This begins a long series of
questions. However, if you make a mistake, your only option is to press
<tt>ctrl-C</tt> and begin again. You also can't go
back in the sequence, and some questions
depend on previous answers. If for some reason you absolutely
can't use either of the graphical methods, be my guest.
<p>
I recommend using either <tt>make menuconfig</tt> or
<tt>make xconfig</tt>. In order to use <b>menuconfig</b>,
you must have installed the ncurses-dev and the
tk4-dev libraries. If you didn't install them and you don't want to
use the next
method, I highly recommend that you install them now. You can always
uninstall them later.
<p>
To run <tt>make xconfig</tt>, you must install and configure X.
Since X is such a memory hog, I install, configure and
<b>startx</b> only for this portion of the process, going back to a console
while the kernel compiles so it can have all the memory it needs. The
xconfig menu is, in my opinion, the best and easiest way to
configure the kernel. Under menuconfig, if you disable an option, any
subordinate options are not shown. Under xconfig, if you disable an
option, subordinate options still show, they are just greyed out. I
like this because I can see what's been added since the last kernel.
I may want to enable an option to get one of the new sub-options in order
to to experiment with it.
<p>
I'm going to take some
space here to describe the sections in the kernel configuration and tell
you some of the things I've discovered--mostly the hard way.
<p>
The first section is the code-maturity-level option. The only
question is whether you want to use developmental drivers and code. You
may not have a choice if you have some bleeding edge hardware. If
you choose ``no'', the experimental code is greyed out or not
shown. If you use this kernel for commercial production purposes,
you'll probably want to choose ``no''.
<p>
The second section concerns
modules. If you want modules, choose ``yes'' for questions 1
and 3. If you want to use proprietary modules that come with certain
distributions, such as Caldera's OpenLinux for their Netware support, also
answer ``yes'' to the second question since you won't be able to recompile
the module.
<p>
The third section is general setup. Do compile the
kernel as ELF and compile support for ELF binaries. Not compiling
the proper support is a definite ``gotcha''.
You'll get more efficient code compiling the kernel for the machine's
specific architecture (Pentium or 486), but a 386 kernel will run in any 32-bit
Intel compatible clone; a Pentium kernel won't.
An emergency boot disk for a large number of computers (as well as
distribution install disks) is best compiled as a 386. However, a 386 will
not run a kernel compiled for a Pentium.
<p>
Next comes block
devices--nothing special here. If your root device is on an IDE drive,
just make sure you compile it.
<p>
Then comes networking. For
computers not connected to a network, you won't need much here unless
you plan to use one computer to dial-out while others connect through
it. In this case, you'll need to read up on such things as masquerading and
follow the suggested guidelines.
<p>
SCSI support is next, though
why it doesn't directly follow block devices I don't know. If your
root
partition is on a SCSI device, don't choose modules for SCSI support.
<p>
SCSI low-level drivers follow general SCSI support. Again,
modules only for devices that don't contain the root partition.
<p>
The next section takes us back to networking again. Expect
to do a lot of looking for your particular card here as well as some
other support such as <b>ppp</b>, <b>slip</b>, etc. If you use <b>nfs</b> to
mount your root device, compile in Ethernet support.
<p>
For
those lucky enough to be needing ISDN support, the ISDN subsection will
need to be completed.
<p>
Older CD-ROMs may require support from the next
section. If you're using a SCSI or IDE CD-ROM, you can skip
this one.
<p>
Next comes file systems. Again, compile
what you need, in most cases ext2 and use modules for the rest.
<p>
Character devices are chosen next. Non-serial mice, like
the PS/2 mouse are supported. Look on the bottom of your mouse. Many
two-button mice are PS/2 type,
even though they look and connect like serial mice. You'll almost
certainly want serial support (generic) as a minimum. Generic printer support
is also
listed here.
<p>
The penultimate section is often the most troubling:
sound. Choose carefully from the list and read the available help.
Make sure you've chosen the correct I/O base and IRQs
for your card. The MPU I/O base for a SoundBlaster card is listed as
0. This is normally 330 and your sound module will complain
if this value is incorrect. Don't worry. One of the nice things about
modules is you can recompile and reinstall the modules as long as the
kernel was compiled with the hook. (Aren't modules great?).
<p>
The final section contains one question that should probably be
answered as ``no, kernel hacking''.
<p>
Save your configuration and exit.
<p>
I have, on several occasions,
had trouble editing the numbers in menuconfig
or xconfig to values I knew were correct. For whatever reason, I
couldn't change the
number or <b>config</b> wouldn't accept the number, telling me it
was invalid. For example, changing the SoundBlaster IRQ from the
config default of 7 to 5, and the MPU base I/O from 0 to 300. If
you experience this problem, but everything else went well, don't
despair. The file you just wrote when you did a ``Save'' and
``Exit'' is an
editable text file. You may use your text editor of choice: Emacs, vi,
CrispLite, joe, etc. Your configuration file is in the /usr/src/linux
directory and
is called <tt>.config</tt>. The
leading dot causes the file to be hidden during a normal directory listing
(<b>ls</b>), but it
shows up when the <tt>-a</tt> option is specified.
Just edit the numbers in this file that
you had trouble with in the configuration process. Next, type
<tt>make dep</tt>
to propagate your configurations from the .config file to
the proper subdirectories
and to complete the setup. Finally, type <tt>make clean</tt>
to prepare for the final kernel build.
<p><HR> <P>
<h3>Building the Kernel</h3>
<p>
We're now ready to begin
building the kernel. There are several options for accomplishing this task:
<p>
<ul>
<li> <tt>make zImage</tt>: makes the basic,
compressed kernel and leaves it in the /usr/src/linux/arch/i386/boot
directory as zImage.
<li> <tt>make zlilo</tt>: Copies
the zImage to the root directory (unless you edited the top-level
Makefile) and runs LILO. If you choose to use this option,
you'll have to ensure that /etc/lilo.conf is preconfigured.
<li> <tt>make zdisk</tt>: Writes zImage to a
floppy disk in /dev/fd0
(the first floppy drive--the a: drive in DOS). You'll need the disk
in the drive before
you start. You can accomplish the same thing by running
<tt>make zImage</tt> and copying the
image to a floppy disk
<tt>cp /usr/src/linux/arch/i386/boot/zImage /dev/fd0</tt>
Note that you'll need to use a high-density
disk. The low density 720k disks will reportedly not boot the kernel.
<li> <tt>make boot</tt>: Works just
the same as the zImage option.
<li> <tt>make bzImage</tt>: Used for big kernels
and operates the same as zImage. You will know if you need this
option, because <b>make</b> will fail with a message that
the image is too big.
<li> <tt>make bzdisk</tt>: Used for big kernels
and operates the same as zdisk. You will know if you need this
option, because make will fail with a message that
the image is too big.
</ul>
Other <b>make</b> options are available,
but are specialized, and are not covered here. Also, if you need
specialized support, such as for a RAM disk or SMP,
read the appropriate documentation and edit the Makefile in
/usr/src/linux (also called the top-level Makefile) accordingly.
Since all the options I discussed above are basically the same
as the zImage option, the rest of this article deals with
<tt>make zImage</tt>--it is
the easiest way to build the kernel.
<p>
For those of you who wish to speed up the process and won't be doing
other things (such as configuring other applications), I suggest you
look at the man page
for make and try out the <tt>-j</tt> option (perhaps with a limit like 5) and also the <tt>-l</tt> option.
<p>
If you chose modules during the configuration process,
you'll want to issue the commands:
<p>
<pre>
make modules
make modules_install
</pre>
to put the modules
in their default location of /lib/modules/2.0.x/,
x being the kernel minor number. If you already have this
subdirectory and it has subdirectories such as
block, net, scsi, cdrom, etc., you may want to remove
2.0.x and everything below it unless you have some proprietary modules
installed, in which case don't remove it. When the modules
are installed, the subdirectories are created and
populated.
<p>
You could just as easily have combined the last three
commands:
<p>
<pre>
make zImage; make modules; make modules_install
</pre>
then returned after all the disk churning
finished. The ; (semicolon) character separates sequential commands on one line and
performs each command in order so that you don't have to wait around just
to issue the next command.
<p>
Once your kernel is built and your
modules installed, we have a few more items to take care of. First, copy
your kernel to the root (or /boot/ or /etc/, if you wish):
<p>
<pre>
cp /usr/src/linux/arch/i386/boot/zImage /zImage
</pre>
You should also copy the /usr/src/linux/System.map
file to the same directory as the kernel image. Then
change (cd) to the /etc directory
to configure LILO. This is a very important step. If we don't install
a pointer
to the new kernel, it won't boot. Normally, an install kernel
is called vmlinuz. Old-time Unix users will
recognize the construction of this name. The trailing ``z'' means the
image is compressed. The ``v'' and ``m'' also have significance and
mean ``virtual'' and ``sticky'' respectively and
pertain to memory and disk management. I suggest you leave the
vmlinuz kernel in place, since you know it works.
<p>
Edit the /etc/lilo.conf file
to add your new kernel. Use the lines from the
<tt>image=/vmlinuz</tt> line to the next
<tt>image=</tt> line or the end. Duplicate what you see, then
change the first line to <tt>image=/zImage</tt>
(assuming your kernel is in the root directory) and choose a
different name for the <tt>label=</tt>.
The first image in the file is the default, others will have to be
specified on the command line in order to boot them. Save the file and
type:
<p>
<pre>
lilo
</pre>
You will now see the kernel labels, and the first
one will have an asterisk.
If you don't see the label that you gave your new kernel or LILO
terminates with
an error, you'll need to redo your work in /etc/lilo.conf
(see LILO man pages).
<p>
We're almost ready to reboot. At this point, if you know your
system will only require one reboot to run properly, you might want
to issue the command:
<p>
<pre>
depmod -a 2.0.x
</pre>
where x is the minor number of the kernel you just built. This command creates the dependencies
file some modules need. You'll also want to make sure you don't boot
directly into <b>xdm</b>. For Red Hat type systems,
this means ensuring the /etc/inittab file
doesn't have a default run level of 5, or that you remember to pass
LILO the
run level at boot time. For Debian systems, you can just type:
<p>
<pre>
mv /etc/init.d/xdm /etc/init.d/xdm.orig
</pre>
for now and move it back later.
<p><HR> <P>
<h3>Normal Rebooting the New Kernel</h3>
<p>
Reboot your machine using:
<p>
<pre>
shutdown -r now
</pre>
While typing <tt>reboot</tt> or pressing the
<tt>ctrl+alt+del</tt> key combination usually
works, I don't recommend either one.
Under some circumstances, the file systems won't be properly
unmounted and could corrupt open files. At the LILO
prompt, if you need to boot the old kernel or pass some parameters for
bootup and you don't see the <tt>boot:</tt> prompt, you can try
pressing either the
<tt>shift</tt> or <tt>ctrl</tt> key, and the
<tt>boot:</tt> prompt should appear. Once you have
it, press <tt>tab</tt> to see the available kernel labels. Type the label and
optionally enter any parameters for bootup. Normally, however, the default
kernel should boot automatically after the timeout interval specified in
the /etc/lilo.conf file. During bootup,
you may see a few error messages containing: SIOCADDR or the
like. These usually indicate that a module (normally a network module)
didn't load.
We'll handle this shortly. If you got the error, ``VFS, cannot mount
root'', you didn't compile the proper disk or file-system support into
the kernel.
<p><HR> <P>
<h3>Troubleshooting</h3>
<p>
Due to the different
ways in which each distribution handles daemon startup
from /etc/inittab, it is difficult in this article to cover all the
possible
reasons your bootup may not have gone smoothly and the
reasons why.
However, I can tell you where to start looking.
<p>
First, run <tt>depmod -a</tt>
to ensure you have an up-to-date, module dependency file (it will
be
created in the appropriate subdirectory). If you
get a string of errors about unresolved dependencies, old modules
are present in the modules subdirectories, and you didn't configure
the kernel with ``Module Versions''
enabled. This is not a fatal error. The
modules you compiled and installed are good. Check the
/etc/conf.modules file and make sure that any lines pointing to
/lib/modules are complete:
<pre>
/lib/modules/`uname -r`/xx
</pre>
(Note: the grave quote on each side of <tt>uname -r</tt>
is located above
the Tab key in the upper left corner of the keyboard on a
U.S. keyboard).
<p>
Make sure <b>kerneld</b> is running and that it is
loaded early in the bootup process. If it is, then
the system doesn't need to explicitly load modules, kerneld will
handle it. Be careful about calling kerneld too early in the first
rc script. kerneld will stop the bootup process forcing a hard reboot
via the reset button or power switch, if it is called before the system
knows its host name. If this happens to you, you can reboot passing LILO
the <tt>-b</tt> argument which prevents <b>init</b> from executing any rc scripts.
Next, look in /etc/rc.d/ at the
rc, rc.sysinit and rc.modules files. One or more may point to a directory
such as /etc/modules/`uname -r`/`uname -v`
where a list of bootup modules are located. You can just copy the old
file over to the new directory;
<pre>
mkdir /etc/modules/`uname -r` ;
cp /etc/modules/2.0.xx/g#1 Thu 3 Sep 1997.\
default /etc/modules/`uname -r`/\
`uname -v`.default""
</pre>
Your system will almost certainly have a different
date for the modules file. Your system also may or may not use the
default extension. Pay close attention to the use of grave quotes
and double quotes in the above example, since both are needed in the proper
places. Once you have found the keys to your system, you should be
able to reboot into a properly functioning system. If
you experience further problems, the best place to get quick, expert advice
is on a mailing list dedicated to your particular distribution. Those
successfully running a particular distribution usually delight in
assisting novices with problems they may encounter. Why? Because
they hit the same brick walls when they were novices and received
help with many problems. Lurk a few days on a list, and
if your question isn't asked by someone else, ask
it yourself. Check the mail-list archives first, if any are present.
These archives contain answers to frequently asked questions (FAQ).
<p><HR> <P>
<h3>Conclusion</h3>
<p>
While building a kernel tailored to your
system may seem a daunting challenge for new administrators, the time
spent is worth it. Your system will run more efficiently, and more
importantly, you will have the satisfaction of building it yourself.
<p>
The few areas
where you may encounter trouble are in remembering to rerun LILO after
installing the new kernel, but you didn't overwrite your old one (or
did you?), so you can always revert to one that worked from the
<tt>lilo:</tt> prompt. Distribution
specific problems during bootup may also be encountered
during the
first reboot but are usually easily resolved. Help is normally
only an e-mail
away for those distributions that don't come with technical support.
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, David A. Bandel <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./henning2.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./ayers1.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Patch for Beginners</font></H1>
<h4>By <a href="mailto: layers@marktwain.net">Larry Ayers</a></h4>
</center>
<P> <HR> <P>
<center><h3>Introduction</h3></center>
<p>The aim of this article is to introduce new Linux users to an invaluable
resource, Larry Wall's <i>patch</i> program. <i>Patch</i> is an interface to
the GNU <i>diff</i> utility, which is used to find differences between files;
<i>diff</i> has a multitude of options, but it's most often used to generate a file
which lists lines which have been changed, showing both the original and
changed lines and ignoring lines which have remained the same. <i>Patch</i>
is typically used to update a directory of source code files to a newer
version, obviating the need to download an entire new source archive.
Downloading a patch in effect is just downloading the lines which have been
changed.
<p><i>Patch</i> originated in the nascent, bandwidth-constrained internet
environment of a decade ago, but like many Unix tools of that era it is still
much-used today. In the February issue of the programmer's magazine
<b>Dr. Dobb's Journal</b> Larry Wall had some interesting comments on the
early days of <i>patch</i>:
<pre><blockquote>
DDJ: By the way, what came first, patch or diff?
LW: diff, by a long ways. patch is one of those things
that, in retrospect, I was totally amazed that nobody had
thought of it sooner, because I think that diff predated
patch by at least ten years or so.
I think I know why, though. And it's one of these little
psychological things. When they made diff, they added an
option called -e, I think it was, and that would spit out an
ed script, so people said to themselves, "Well, if I wanted
to automate the applying of a diff, I would use that." So it
never actually occurred to someone that you could write a
computer program to take the other forms of output and apply
them. Either that, or it did not occur to them that there
was some benefit to using the context diff form, because you
could apply it to something that had been changed and still
easily get it to do the right thing.
It's one of those things that's obvious in retrospect. But
to be perfectly honest, it wasn't really a brilliant flash
of inspiration so much as self defense. I put out the first
version of rn, and then I started putting out patches for
it, and it was a total mess. You could not get people to
apply patches because they had to apply them by hand. So,
they would skip the ones that they didn't think they needed,
and they'd apply the new ones over that, and they'd get
totally messed up. I wrote patch so that they wouldn't have
this excuse that it was too hard.
I don't know whether it's still the case, but for many
years, I told people that I thought patch had changed the
culture of computing more than either rn or Perl had. Now
that the Internet is getting a lot faster than it used to
be, and it's getting much easier to distribute whole
distributions, patches tend to be sent around only among
developers. I haven't sent out a patch kit for Perl in
years. I think patch has became less important for the
whole thing, but still continues to be a way for developers
to interchange ideas. But for a while in there, patch
really did make a big difference to how software was
developed. </blockquote></pre>
<p>Larry Wall's assessment of the diminishing importance of <i>patch</i> to
the computing community as a whole is probably accurate, but in the free
software world it's still an essential tool. The ubiquity of <i>patch</i>
makes it possible for new users and non-programmers to easily participate in
alpha- and beta-testing of software, thus benefiting the entire community.
<p>It occurred to me to write this article after noticing a thread which
periodically resurfaces in the linux-kernel mailing list. About every three
months someone will post a plea for a split Linux kernel source distribution,
so that someone just interested in, say, the i386 code and the IDE disk driver
wouldn't have to download the Alpha, Sparc, etc. files and the many SCSI
drivers for each new kernel release. A series of patient (and some
not-so-patient) replies will follow, most urging the original poster to use
patches to upgrade the kernel source. Linus Torvalds will then once again
state that he has no interest in undertaking the laborious task of splitting
the kernel source into chunks, but that if anyone else wants to, they should
feel free to do so as an independent project. So far no-one has volunteered.
I can't blame the kernel-hackers for not wanting to further complicate their
lives; I imagine it would be much more interesting and challenging to work
directly with the kernel than to overhaul the entire kernel distribution
scheme! Downloading an eleven megabyte kernel source archive <i>is</i>
time-consuming (and, for those folks paying by the minute for net access,
expensive as well) but the kernel patches can be as small as a few dozen
kilobytes, and are hardly ever larger than one megabyte. The 2.1.119
development kernel source on my hard disk has been incrementally patched up
from version 2.1.99, and I doubt if I'd follow the development as closely if I
had to download each release in its entirety.
<center><h3>Using Patch</h3></center>
<p><i>Patch</i> comes with a good manual-page which lists its numerous
options, but 99% of the time just two of them will suffice:
<ul>
<li><kbd>patch -p1 < [patchfile]</kbd>
<li><kbd>patch -R < [patchfile]</kbd> (used to undo a patch)
</ul>
<p>The <i>-p1</i> option strips the left-most directory level from the
filenames in the patch-file, as the top-level directory is likely to vary on
different machines. To use this option, place your patch within the directory
being patched, and then run <i>patch -p1 < [patchfile]</i> from within that
directory. A short excerpt from a Linux kernel patch will illustrate
this:<br>
<pre><kbd>
diff -u --recursive --new-file v2.1.118/linux/mm/swapfile.c linux/mm/swapfile.c
--- v2.1.118/linux/mm/swapfile.c Wed Aug 26 11:37:45 1998
+++ linux/mm/swapfile.c Wed Aug 26 16:01:57 1998
@@ -489,7 +489,7 @@
int swap_header_version;
int lock_map_size = PAGE_SIZE;
int nr_good_pages = 0;
- char tmp_lock_map = 0;
+ unsigned long tmp_lock_map = 0;
</kbd></pre>
<p>Applying the patch from which this segment was copied with the <i>-p1</i>
switch effectively truncates the path which <i>patch</i> will seek;
<i>patch</i> will look for a subdirectory of the current directory named
<kbd>/mm</kbd>, and should then find the <i>swapfile.c</i> file there, waiting
to be patched. In this excerpt, the line preceded by a dash will be
replaced with the line preceded by a plus sign. A typical patch will contain
updates for many files, each section consisting of the output of <i>diff
-u</i> run on two versions of a file.
<p><i>Patch</i> displays its output to the screen as it works, but this output
usually scrolls by too quickly to read. The original, pre-patch files are
renamed <i>*.orig</i>, while the new patched files will bear the original
filenames.
<center><h3>Patching Problems</h3></center>
<p>One possible source of problems using patch is differences between various
versions, all of which are available on the net. Larry Wall hasn't done much
to improve patch in recent years, possibly because his last release of the
utility works well in the majority of situations. FSF programmers
from the GNU project have been releasing new versions of patch for the past
several years. Their first revisions of patch had a few problems, but I've been
using version 2.5 (which is the version distributed with Debian 2.0) lately
with no problems. Version 2.1 has worked well for me in the past. The source
for the current GNU version of <i>patch</i> is available from the
<a href="ftp://ftp.gnu.org/pub/gnu">GNU</a> FTP site, though most people will
just use the version supplied with their distribution of Linux.
<p>Let's say you have patched a directory of source files, and the patch
didn't apply cleanly . This happens occasionally, and when it does
<i>patch</i> will show an error message indicating which file confused it,
along with the line numbers. Sometimes the error will be obvious, such as an
omitted semicolon, and can be fixed without too much trouble. Another
possibility is to delete from the patch the section which is causing trouble,
but this may or may not work, depending on the file involved.
<p>Another common error scenario: suppose you have un-tarred a kernel source
archive, and while exploring the various subdirectories under
<kbd>/linux/arch/</kbd> you notice the various machine architecture
subdirectories, such as <kbd>alpha</kbd>, <kbd>sparc</kbd>, etc. If you, like
most Linux users, are running a machine with an Intel processor (or one of the
Intel clones), you might decide to delete these directories, which are not
needed for compiling your particular kernel and which occupy needed
disk space. Some time later a new kernel patch is released and while
attempting to apply it <i>patch</i> stalls when it is unable to find the Alpha
or PPC files it would like to patch. Luckily <i>patch</i> allows user
intervention at this point, asking the question "Skip this patch?" Tell it
"y", and <i>patch</i> will proceed along its merry way. You will probably
have to answer the question numerous times, which is a good argument for
allowing the un-needed directories to remain on your disk.
<center><h3>Kernel-Patching Tips</h3></center>
<p>Many Linux users use <i>patch</i> mainly for patching the kernel source, so
a few tips are in order. Probably the easiest method is to use the
shell-script <i>patch-kernel</i>, which can be found in the
<kbd>/scripts</kbd> subdirectory of the kernel source-tree. This handy and
well-written script was written by Nick Holloway in 1995; a couple of years
later Adam Sulmicki added support for several compression algorithms,
including *.bz, *.bz2, compress, gzip, and plain-text (i.e., a patch which has
already been uncompressed). The script assumes that your kernel source is in
<kbd>/usr/src/linux,</kbd>, with your new patch located in the current
directory. Both of these defaults can be overridden by command-line switches
in this format: <kbd>patch-kernel [ sourcedir [ patchdir ] ]</kbd>.
<i>Patch-kernel</i> will abort if any part of the patch fails, but if the
patch applies cleanly it will invoke <i>find</i>, which will delete all of the
<kbd>*.orig</kbd> files which <i>patch</i> leaves behind.
<p>If you prefer to see the output of commands, or perhaps you would rather
keep the <kbd>*.orig</kbd> files until you are certain the patched source
compiles, running <i>patch</i> directly (with the patch located in the kernel
source top-level directory, as outlined above) has been very reliable in my
experience. In order to avoid uncompressing the patch before
applying it a simple pipe will do the trick:
<p><kbd>gzip -cd patchXX.gz | patch -p1</kbd><br>
<p>or:
<p><kbd>bzip2 -dc patchXX.bz2 | patch -p1</kbd>
<p>After the patch has been applied the <i>find</i> utility can be used to
check for rejected files:
<p><kbd>find . -name \*.rej</kbd>
<p>At first the syntax of this command is confusing. The period indicates
that <i>find</i> should look in the current directory and recursively in all
subdirectories beneath it. Remember the period should have a space both
before and after it. The backslash before the wildcard "*" "escapes" the
asterisk in order to avoid confusing the shell, for which an asterisk has
another meaning. If <i>find</i> locates any <kbd>*.rej</kbd> files it will
print the filenames on the screen. If <i>find</i> exits without any visible
output it's nearly certain the patch applied correctly.
<p>Another job for <i>find</i> is to remove the <kbd>*.orig</kbd> files:
<p><kbd>find . -name \*.orig -print0 | xargs -0r rm -f</kbd>
<p>This command is sufficiently cumbersome to type that it would be a good
candidate for a new shell alias. A line in your ~/.bashrc file such as:
<p><kbd>alias findorig 'find . -name \*.orig -print0 | xargs -0r rm -f'</kbd>
<p>will allow just typing <kbd>findorig</kbd> to invoke the above command.
The single quotes in the alias definition are necessary if an aliased command
contains spaces. In order to use a new alias without logging out and then
back in again, just type <kbd>source ~/.bashrc</kbd> at the prompt.
<center><h3>Incidental Comments and Conclusion</h3></center>
<p>While putting this article together I upgraded the version of <i>patch</i>
on my machine from version 2.1 to version 2.5. Both of these versions come
from the current FSF/GNU maintainers. Immediately I noticed that the default
output of version 2.5 has been changed, with less information appearing on the
screen. Gone is Larry Wall's "...hmm" which used to appear while <i>patch</i>
was attempting to determine the proper lines to patch. The output of version
2.5 is simply a list of messages such as "patching file [filename]", rather
than the more copious information shown by earlier versions. Admittedly, the
information scrolled by too quickly to read, but the output could be
redirected to a file for later perusal. This change doesn't affect the
functionality of the program, but does lessen the human element. It seems to
me that touches such as the old "...hmm" messages, as well as comments in
source code, are valuable in that they remind the user that a program is the
result of work performed by a living, breathing human being, rather than a
sterile collection of bits. The old behavior can be restored by appending the
switch <kbd>--verbose</kbd> to the <i>patch</i> command-line, but I'm sure
that many users either won't be aware of the option or won't bother to type it
in. Another difference between 2.1 and 2.5 is that the <i>*.orig</i> back-up
files aren't created unless <i>patch</i> is given the <kbd>-b</kbd> option.
<p><i>Patch</i> is not strictly necessary for an end-user who isn't interested
in trying out and providing bug-reports for "bleeding-edge" software and
kernels, but often the most interesting developments in the Linux world belong
in this category. It isn't difficult to get the hang of using <i>patch</i>, and the
effort will be amply repaid.
<p>
<hr>
<!-- hhmts start -->
Last modified: Mon 31 Aug 1998
<!-- hhmts end -->
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Larry Ayers <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./bandel.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./ayers2.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Typist: A Simple Typing Tutor</font></H1>
<h4>By <a href="mailto: layers@marktwain.net">Larry Ayers</a></h4>
</center>
<P> <HR> <P>
Recently a small, ncurses-based typing tutor program appeared on the
Sunsite archive site. Typist is a revision of an old, unmaintained Unix
program. Simon Baldwin is responsible for this updated version, and he has
this to say about the origin of his involvement:
<pre><blockquote>
This program came from a desire to learn 'proper' typing, and not the
awkward keyboard prodding I've been doing for the past 10 years or
more. Since I usually run Linux rather than Windows or DOS, I looked
around for a tutor program, and surprisingly, found nothing in the
usual places.
Eventually, I stumbled across Typist - a little gem of a program for
UNIX-like systems. The original worked great, but after a while I
started noticing odd things - some lessons seemed to go missing, and
the programs were apt to exhibit some strange behaviours. After
fixing a few bugs it seemed that the time was right for something of a
rewrite.
</blockquote></pre>
<p>Don't expect a Linux version of Mavis Beacon; Typist has a simple but
efficient interface without extraneous graphical fluff. Start it up and here is
what you will see:<br>
<p><img alt="1st Typist screenshot" src="./gx/ayers/typist-1.gif">
<p>Once a choice of lessons has been made, a series of help screens explain
the usage of the program. Here is a lesson screenshot:<br>
<p><img alt="Typist lesson screenshot" src="./gx/ayers/typist-2.gif">
<p>The general idea is to type the exact letters or words shown on the screen;
if a mistake is made a caret is shown rather than the letter typed. If no
mistakes were made, the next section of the lesson appears; otherwise the
first section is repeated until there are no errors. After each run through
a lesson, a box appears showing typing speed and number of errors.
<p>A Dvorak lesson is even included for those willing to swim against the tide
in the pursuit of greater typing speed. I've considered learning the Dvorak
system, but have refrained due to my family's occasional need to use my
machine. I don't want to make the transition between Windows and Linux
systems more of a culture shock than it already is!
<p>Typist's small size and spartan interface does have the advantages of quick
start-up and low overhead, making it ideal for quick usage in the intervals
between other tasks, or while waiting for a web-site to load.
<p>Typist also exemplifies one my favorite scenarios in the free software
world: an old source code archive languishing on an FTP site somewhere is now
revived and given new life and new users.
<p>At the moment, the only source of the program seems to be the
<a href="ftp://sunsite.unc.edu/pub/Linux/Incoming">/pub/Linux/Incoming</a>
directory at the Sunsite archive site. Presumably Typist will eventually be
filed away elsewhere on the site, but I don't know just where it will end up.
Incidentally, Typist has now been re-released under the GNU GPL.
<p>
<hr>
<!-- hhmts start -->
Last modified: Mon 31 Aug 1998
<!-- hhmts end -->
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Larry Ayers <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./ayers1.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./hughes.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P>
<P> <HR> <P>
<!--===================================================================-->
<P>
<center>
<H1><font color="maroon">Paradigm Shift</font></H1>
<H4>By <a href="mailto:joe@pjprimer.com">Joe Barr</a></H4>
</center>
<P> <HR> <P>
<P>
<B>paradigm shift</B> <I>paradigm shift (pair uh dime
shift) 1. a profound and
irreversible change to a different model of
behavior or perception. 2. an
epiphany with staying power. 3. a sea change of
such magnitude that it alters
the course of all who pass through it. </I>
<P>
Paradigm shifts. Thinking back over my years in
the industry, there haven't been
that many. Especially when you consider the
thousands of times the term has been
used. The move of the center from the glass
house to the desktop certainly
qualifies. Likewise the rethinking of systems
analysis and design, from the physical
to the logical, was echoed by structured
programming.
<P>
But programming was to be swept by a second,
perhaps even more fundamental
change in perspective as we moved from
procedural languages to object oriented.
And to put it in everyday terms, there is a
whole new mindset today when you
connect to the internet than there was when you
reached out to touch a BBS.
<P>
There have been plenty of impostors: bubble
memory, the death of mainframes,
quality management, cold fusion, new Coke and
"push content" on the web. It's
<P>
often impossible to tell the difference
between la buzz de jour and the first stirrings
of a new-born, honest to baud, as real as the
day is long, paradigm shift.
<P>
The incubation period can last for years.
Eventually, though, a thing either emerges
and changes everything or it quietly fades
away. Only then can you know for sure. I
believe we are at the edge of the largest
paradigm shift in the history of the industry.
This one will smash the current model beyond
recognition. Our children and our
children's children will look back at the first
age, the first 30 years of personal
computing, and see it for the barbaric,
archaic, self inhibiting, self impeding dinosaur
that it is.
<P>
A paradigm shift does not mean one thing is
simply replaced by another. A new
force field appears, draws attention to itself,
and may coexist with, perhaps even
languish alongside for some period of time, the
model that it will replace.
<P>
There may even be a longer period of time
during which the original gradually fades
away. The shift occurs, quite simply, when you
wake up one day and find yourself
seeing things in a new way, from a new
perspective.
<P>
The glass house and the personal computer? That
one has been underway for many
years. Microsoft has eclipsed IBM as the
largest seller of software in the quarter
just ended.
<P>
The shift, by definition, never occurs in
isolation. There must be related spheres,
energizing pulses, co-dependent orbs circling
the prime. It is when the catalyst
works its magic that you are transported.
Suddenly you are "there."
<P>
Object oriented programming has been around for
quite awhile now. I remember in
the early 80's my brother asking if I had taken
a look at Smalltalk yet. He seemed
quite taken with the language and what it was
about. I toyed with the turtle and got
some inkling of objects and inheritance, but I
really couldn't see that much would
ever happen in the real world with Alan Kay's
brainchild.
<P>
Years later C++ would begin to move into the
mainstream. Not replacing Cobol
and C but just establishing its own place in
the landscape. OO methodologies
<P>
began to abound as more and more people
crossed the line. But the big push hadn't
even happened yet, Oak hadn't even dropped the
acorn that became Java.
<P>
Today, with the wildfire popularity of Java
among developers, with its entry into the
enterprise not only assured but an established
fact, with its continued maturing and
fleshing out, it is Java that is carrying the
banner of object oriented programing to
the dwindling herd of procedural programmers.
<P>
Of course, in the time between Kay's
conceptualization of objects, GUIs and
cut-and-paste, and where we are today, it has
not always been clear that this was
the kind of stuff that would have profound,
far-reaching impact on the way we look
at software and design, the way we look at the
tasks to be done and how we plan
to do them.
<P>
To many of the brightest and the best, at least
to many outside of the Learning
Research Group at Xerox Palo Alto Research
Center during the 70's and 80's,
bubble memory was much more likely to be the
next big thing. And so it is with
some trepidation that I hereby formally and
officially predict that we are today
awash in the first tides of a sea change that
will once again change everything.
<P>
But keep in mind, my dweebs, that my track
record as a Karmac for Computing is
something less than perfect. It was in the fall
of 1978 that I told Sam Skaggs, then
president of Skaggs-Albertsons superstores, the
first marriage of drug and grocery
emporiums, that scanning technology would never
work in a grocery store.
<P>
And in 1994 I predicted OS/2 would win the
desktop from Windows. So don't bet
the digital dirtfarm on this just yet. Your
narrator is guessing, just as every other
pundit who looks out past the breakers for
first signs of the swell that will become
the next big wave.
<P>
My hunch is this: free/open source software
will emerge as the only sensible choice.
Feel the tremors in the Northwest? This one
could be killer. There has been much
debate over which term ("free software" or
"open source") is the best choice, the
most descriptive, and the truest to its
philosophical roots. I am not going to go
there. I will compromise by using both terms
interchangeably.
<P>
But please note that the word free in "free
software" applies to a state of being, not
to its price. It is about freedom. Also note
that the hottest software product in the
world today, Linux, qualifies as free software
under this definition, whether you
download it for free from the internet or pay
anywhere from $1.99 to $99.99 for
specific distributions.
<P>
Linux is the only non-Windows operating system
in the world that is gaining market
share. How hot is it? It's almost impossible
these days to keep up with articles in
the press about Linux. A mailing list dedicated
to Linux News recently had to split
into three separate lists in order to handle
the load. Linus Torvalds, its creator, is on
the cover of the August issue of Forbes.
<P>
Every major computer trade publication is
showering it with attention. Oracle,
Ingres, and Informix have just announced they
will be porting their database
products to Linux. Caldera has just announced
(and has available for free
download today) a Netware server for Linux. And
that's just the news from the
past two weeks. Linux has cache, bebe.
<P>
The roots of Linux-mania began in the early
80's when Richard Stallman founded
the GNU Project. Stallman had worked at MIT
during the 70's and witnessed the
destructive (in terms of group productivity and
effort) nature of restrictive licensing
of proprietary software. He wanted to create a
free, modern operating system that
could be used by everyone.
<P>
In the GNU Manifesto (1983), he explained why
he must write GNU: "I consider
that the golden rule requires that if I like a
program I must share it with other people
who like it. Software sellers want to divide
the users and conquer them, making
each user agree not to share with others.
<P>
I refuse to break solidarity with other users
in this way. I cannot in good conscience
sign a nondisclosure agreement or a software
license agreement.
<P>
For years I worked within the Artificial
Intelligence Lab to resist such tendencies
and other inhospitalities, but eventually they
had gone too far: I could not remain in
an institution where such things are done for
me against my will.
<P>
So that I can continue to use computers without
dishonor, I have decided to put
together a sufficient body of free software so
that I will be able to get along without
any software that is not free.
<P>
I have resigned from the AI lab to deny MIT any
legal excuse to prevent me from
giving GNU away."
<P>
By the time (almost ten years later) Linus
Torvalds had a good working Linux
kernel available, the GNU project had most of
the non-kernel essentials ready. It
was a marriage made in free/open source
software heaven, and Linus converted the
original Linux license to the GPL (GNU's
General Public License).
<P>
After all, it seemed the obvious choice to the
young college student who had
wanted to create a free version of Unix that
everyone could use. Not only is Linus a
true code wizard, he is delightfully perfect
for his role today as poster boy of the
free/open source movement.
<P>
Every interview, every public appearance, each
bit of history about him and Linux
unearthed reveals a warm, wise, friendly,
candid and particularly unpretentious
personality. How else could someone whose views
are so diametrically opposed to
those of Bill Gates and the money mongers end
up on the cover of Forbes? But
Linux is not the only success story in the
world of free/open source.
<P>
Netscape rocked the commercial world earlier
this year when it announced it
would free the source code for its browser and
make it available for download to
<P>
anyone who wanted it. Netscape now claims that
the browser has been improved
as much over the past couple of months as it
would have in 2.5 years in its closed
source environment.
<P>
FreeBSD, a rival for Linux in the UNIX like,
free/open source sector, has its own
fanatical users and supporters. Just this past
week it shattered an existing world
record for total bytes transferred from an FTP
site in a single day. CRL Network
Services, host of the popular Walnut Creek
CD-ROM ftp site, announced on July
30th that they had moved over 400 gig of files
on July 28, 1998. The previous
mark of about 350 gig had been set by Microsoft
during the Win95 launch period.
<P>
Oh, one other thing. The FreeBSD record was set
on a single 200Mhz Pentium
box. The Microsoft record was set using 40
separate servers. Results like those are
probably the driving force behind the emerging
model. The performance just blows
away what Windows is able to deliver in their
closed, sealed, NDA protected,
shoot you if you see it source code,
proprietary model.
<P>
Eric S. Raymond, keeper of the tome on
internetese called "The Jargon File" and
author on the must read essay "The Cathedral
and The Bazaar," talks about the
success he had with FETCHMAIL using the Bazaar
model of development. Lots
of eyes on the code: bugs are found more
quickly, enhancements made more
quickly, design becomes more normalized.
<P>
But Linus is the candle for the moth. Leo
LaPorte had him as a guest on his ZDTV
show the night that Win98 was launched. I
caught him in chat on the way out and
asked him how SMP was looking for the next
release. He said it looked very good.
<P>
It seems he is always this accessible, and that
is part of his magic and part of the
reason for the success of Linux and shift in
thinking about software development.
For open software to not only flourish but
become the norm, at least for those
essential bits, like operating systems, that
everyone needs to run, there must be
huge successes to attract the rest of the crowd.
<P>
Linux and FreeBSD are two of those attractions.
Linus is the advantage that Linux
holds over FreeBSD, not in a technical sense,
but in a human sense. To get a sense
of what Linus is like, it's interesting to
follow his exchange of USENET messages
with Andy Tanenbaum, the creator of Minix.
<P>
Linus began his 386 experience with Minix and
began to extend it to create Linux.
He and Andy exchanged a series of messages in
comp.os.minix over the issues of
microkernel architecture, truly free software,
and the relative merits of Minix and
Linux.
<P>
It began with a post by Tanenbaum which said in
part:
<P>
"MINIX is a microkernel-based system. The file
system and memory management
are separate processes, running outside the
kernel. The I/O drivers are also
separate processes (in the kernel, but only
because the brain-dead nature of the
Intel CPUs makes that difficult to do otherwise).
<P>
LINUX is a monolithic style system. This is a
giant step back into the 1970s. That
is like taking an existing, working C program
and rewriting it in BASIC. To me,
writing a monolithic system in 1991 is a truly
poor idea."
<P>
To which Linus replied:
<P>
"True, Linux is monolithic, and I agree that
microkernels are nicer. With a less
argumentative subject, I'd probably have agreed
with most of what you said. From
a theoretical (and aesthetical) standpoint
Linux loses. If the GNU kernel had been
ready last spring, I'd not have bothered to
even start my project: the fact is that it
wasn't and still isn't. Linux wins heavily on
points of being available now.
<P>
>>MINIX is a microkernel-based system.
>>LINUX
is a monolithic style system.
<P>
If this was the only criterion for the
"goodness" of a kernel, you'd be right. What
you don't mention is that minix doesn't do the
micro-kernel thing very well, and has
problems with real multitasking (in the
kernel). If I had made an OS that had
problems with a multithreading filesystem, I
wouldn't be so fast to condemn others:
in fact, I'd do my damnedest to make others
forget about the fiasco."
<P>
Notice what is missing from the post? Even
though his pet project, the fledgling
Linux, has been slapped around pretty hard by
the man who created its
predecessor, Linus did not fall into the trap
of name calling and hysterics that too
often goes hand-in-glove with online debate.
<P>
Notice what is present in the post? Concession
of valid points made by
Tanenbaum. Factual assertions that represent
Linux quite nicely, thank you very
much. And even for this well behaved defense,
Linus closed with this:
<P>
"PS. I apologize for sometimes sounding too
harsh: minix is nice enough if you have
nothing else. Amoeba might be nice if you have
5-10 spare 386's lying around, but
I certainly don't. I don't usually get into
flames, but I'm touchy when it comes to
Linux :)"
<P>
For all his dweebness, Linus is a people
person. He is likable. He is brilliant. He is
passionate about Linux but not to the point of
resorting to bashing its detractors or
alternatives to it. Earlier I mentioned an
ongoing debate among proponents of the
terms "free software" and "open source
software." That is really symptomatic of a
deeper argument over what type of licensing
free/open source software should
have.
<P>
There is the GNU GPL that Linux uses, and there
is the BSD model. Listen to
Linus the diplomat walk that tightrope (while
still making his preference known) in
an interview with Linux Focus's Manuel Martinez:
<P>
"I'd like to point out that I don't think that
there is anything fundamentally superior in
the GPL as compared to the BSD license, for
example.
<P>
But the GPL is what _I_ want to program with,
because unlike the BSD license it
guarantees that anybody who works on the
project in the future will also contribute
their changes back to the community. And when I
do programming in my free time
and for my own enjoyment, I really want to have
that kind of protection: knowing
that when I improve a program those
improvements will continue to be available to
me and others in future versions of the program.
<P>
Other people have other goals, and sometimes
the BSD style licenses are better for
those goals. I personally tend to prefer the
GPL, but that really doesn't mean that
the GPL is any way inherently superior - it
depends on what you want the license to
do.."
<P>
His views on the Evil Empire? Strong, perhaps,
but certainly not inflammatory or
angry. In his words, from the same interview:
<P>
"I can certainly understand the "David vs
Goliath" setup, but no, I don't personally
share it all that much. I can't say that I like
MicroSoft: I think they make rather bad
operating systems - Windows NT is just more of
the same - but while I dislike their
operating systems and abhor their tactics in
the marketplace I at the same time
don't really care all that much about them.
<P>
I'm simply too content doing what I _want_ to
do to really have a very negative
attitude towards MicroSoft. They make bad
products - so what? I don't need to
care, because I happily don't have to use them,
and writing my own alternative has
been a very gratifying experience in many ways.
Not only have I learnt a lot doing
it, but I've met thousands of people that I
really like while developing Linux - some
of them in person, most of them through the
internet."
<P>
Three potentially disasterous discussions on
red button issues: Linux versus Minix,
the GNU GPL license versus that of BSD, and
Linux versus Windows. In each he
makes his points politely but with utter candor.
<P>
One last example. There is finally an official
Linux logo. It is the cute, fat and
friendly Penguin you often see on Linux sites.
There was heated debate among the
Linuxites on the choice of the logo. Many
wanted something other than a cute, fat
penguin. Something more aggressive or sleek,
perhaps.
<P>
Linus calmed these waters at the release of
Linux 2.0 by saying:
<P>
"Some people have told me they don't think a
fat penguin really embodies the grace
of Linux, which just tells me they have never
seen an angry penguin charging at
them in excess of 100mph. They'd be a lot more
careful about what they say if they
had."
<P>
He is completely believable, obviously
passionate about the project, and possessed
of a contagious good humor. Linux could have no
better leader from a technical
point of view, and it couldn't have a better
poster boy either. Its success more than
anything else is pulling the rest of the
world's mindset towards the notion of
free/open source software.
<P>
Nicholas Petreley raised the issue of open
source software recently in his forum at
InfoWorld Electric. It triggered a huge number
of responses about the
phenomenum. There may even be an Open Source
magazine in the works. I credit
my rethinking on this software dynamic to the
reading I did there. I believe it is what
finally made me realize that a paradigm shift
has already occurred. That we are no
longer discussing a possibility, but simply
what is.
<P>
The conclusion to the Forbes article behind the
Linus cover calls for the
Department of Justice to take note of the
success of Linux in growing market share
and to call of the investigation of Microsoft
as unregulated monopoly. While I
consider that a lame conclusion, the DOJ should
be interested in enforcing antitrust
law whether Linux is flourishing or not, I
can't help but wonder if there's not some
truth to the inspiration for that thinking.
That it won't be government intervention or
regulation that busts up Microsoft, but a
revolution in our thinking about software.
<P>
The Dweebspeak Primer, <A HREF="http://www.pjprimer.com/">
http://www.pjprimer.com/</A>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Joe Barr <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./hughes.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./jenkins2.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Running Remote X Sessions on Windows 95/98/NT/Mac/PPC Clients</font></H1>
<H4>By <a href="mailto:rjenkins@unicom.net">Ron Jenkins</a></H4>
</center>
<P> <HR> <P>
<I>Copyright ® 1998 by Ron Jenkins. This work is provided on an
"as is" basis. The author provides no warranty whatsoever, either
express or implied, regarding the work, including warranties with respect to
its merchantability or fitness for any particular purpose.</I>
<P>Corrections and suggestions are welcomed by the author. He can be
reached by electronic mail at rjenkins@unicom.net.
<P>This document came about as a result of a client's problem and my
solution. I have since seen this question asked a zillion times on USENET
right up there with "Why can't Linux see all my (insert your >64MB
number here,) of RAM?"
<P> <HR> <P>
<H3>The original problem</H3>
<P>One of my clients had a rather classical old-style Unix host to dumb
terminal setup, connected through multiple serial termservers.
<P>They also had a PC on every desk, also connecting through a
"dumb" serial connection.
<P>The problem was that they needed to administer the host, as well as run
many other programs on the host that required a GUI. To accomplish this, they
utilized a couple of Unix workstations.
<P>Obviously this was unacceptable, as they had everyone fighting for time
on the workstations.
<P>The version of Unix they were running, had no CLI other than a network
telnet session or the aforementioned serial setup, only administration through
their proprietary interface running on top of X.
<P>A quick investigation showed an X server running on the host, but not
being utilized. A previous consultant from the company they purchased the two
systems from had suggested X Terminals as a solution, which by coincidence,
they just happened to have handy.
<P>They never did tell me what his quote was, but rumor has it was
staggering. (Look the price of an X Terminal sometime and you'll see what I mean.)
<P>Enter Linux. First, I did away with the serial connections on the PC's
and got them on a switched 10 base T network.
<P>Next, I setup a couple of 486/100's as file servers and proxy hosts,
using ip_masq and Samba. These machine then connected to the external WAN over
a 10 base 2 bus. All the suits had quota'd storage, could e-mail and memo the
begeezus out of each other, surf the "net, and were happy as clams.
<P><HR> <P>
<H3>What does this have to do with X sessions and Windows?</H3>
<P>One word - POLITICS.
<P>To convince the suits (the ones with the money) to let me use Linux to
solve the problem for the programmers and administrators (the ones who
actually do the work to produce the money), I had to impress them first.
<P>While they don't understand diddly squat about the technical side of
the business, they do understand I gave them e-mail, file services, intranet,
and Internet access for just the cost of my time, since they had the 486's
setting in a closet collecting dust.
<P>Now I had the go-ahead for the X solution I proposed, which was 2 more
486's also already on site, also not being used, upgraded to SCSI-3 Ultra Wide
Disks, and honked up the RAM, to serve as X proxies, for reasons I can't go
into. This interposes an additional barrier between the Xhost and the clients.
You shouldn't need this, so I'm going to pretend everything behind the 486's
does not exist.
<P>Just to make it really fun, I was also asked to include the web design
department on this subnet, who were all on Mac's and Power PC's.
<P>After creating a 10 base T subnet with the 486's and the clients wired
up and TCP/IP configured on all the clients, it was time to show 'em some magic.
<P>From this point forward, the 486 will be referred to as the "X
host", and any Windows 95/98/NT/Mac/PPC machine will be referred to as
"the client".
<H4>Step One:</H4>
<P>On the X host, create a user account for each of the desired clients.
<H4>Step Two:</H4>
<P>Acquire X server software for the clients.
<P>I am a freeware fanatic, so I chose to use MI/X, available from
http://tnt.microimages.com/www/html/freestuf/mix/, or my mirror, ftp.brokewing.com/pub/mix/.
<P>An additional factor that led me to choose the MI/X package, is that it
runs on all three platforms.
<P> Install the MI/X software
<P>Note for Windows clients - either install the program in it's own place
like C:\mix, or if you put it in Program Files, create a shortcut directly to
$BASEDIR\TNTSTART.EXE startmix (note the space) for some reason, on the 95
machines you may get a not enough memory message when you try to run it if you don't.
<H4>Step Three:</H4>
<P>Acquire Telnet software for the clients.
<P>In my case they were already setup for telnet, from the previous serial thing.
<P>All Windows clients should already have telnet, the Mac's may or may not.
<P>If not, NCSA produces a telnet client that runs on the Mac platform.
<H4>Step Four:</H4>
<P>You should be ready to go. I am sure that this whole thing could be
done more elegantly, but here's what I did:
<ul>
<li>Start MI/X on the client.
<li>Open a telnet session to the Xhost:
<li>telnet 192.162.0.1
<li>After logging in, you need to tell the Xhost to display the output of a
program running on the Xhost on a different machine (the client.)
</ul>
<P>For the bourne shell:<BR>
DISPLAY=<the IP of the client machine>:0.0<BR>
For example, <tt>DISPLAY=192.0.0.3:0.0</tt>
<P>Now you need to tell the Xhost to use this Environment Variable for all
subsequent programs.
<P>The command to accomplish this is:<BR>
<tt>export DISPLAY</tt>
<P>For the csh:<BR>
<tt>setenv DISPLAY <client IP as above></tt>
<P>You should now be able to run any X application you want on the Xhost
and have it display on your client machine.
<P>In the telnet window, to launch an xterm, type:<BR>
<tt>xterm &</tt>
<P>After the xterm comes up in the MI/X window, you can close the telnet session.
<P>That's all there is to it!
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1998, Ron Jenkins <BR>
Published in Issue 32 of <i>Linux Gazette</i>, September 1998</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./barr.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./williams.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Searching a Web Site with Linux</font></H1>
<H4>By <a href="mailto:brw@inetinc.net">Branden Williams</a></H4>
</center>
<P> <HR> <P>
As your website grows in size, so will the number of people that visit
your site. Now most of these people are just like you and me in the
sense that they want to go to your site, click a button, and get exactly
what information they were looking for. To serve these kinds of users a
bit better, the Internet community responded with the ``Site
Search''. A way to search a single website for the information you are
looking for. As a system administrator, I have been asked to provide search
engines for people to use on their websites so that their clients can get to
their information as fast as possible.
<p>
Now the trick to most search engines (Internet wide included) is that
they index and search entire sites. So for in
|