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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> Linux Gazette Table of Contents LG #74</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000" >
<center>
<!-- A HREF="http://www.linuxgazette.com/">
<H1><IMG SRC="../gx/newlogo.jpg" ALT="LINUX GAZETTE" border="0"></H1></A> -->
<A HREF="http://www.linuxgazette.com/">
<H1><IMG ALT="LINUX GAZETTE" SRC="../gx/lglogo.png"
WIDTH="600" HEIGHT="124" border="0"></H1></A>
<H2>January 2002, Issue 74
Published by <I>Linux Journal</I></H2>
<A HREF=../index.html>Front Page</A> |
<A HREF=../index.html>Back Issues</A> |
<A HREF=../faq/index.html>FAQ</A> |
<A HREF=../mirrors.html>Mirrors</A> |
<A HREF="http://www.linuxgazette.com/search.html">Search (www.linuxgazette.com)</A>
<!-- *** BEGIN mirror site search link *** -->
<!-- <A HREF="http://www.linuxgazette.com/search.html">(SITE.COM
mirror)</A> -->
<!-- *** END mirror site search link *** -->
</CENTER>
<HR NOSHADE>
<!--=================================================================-->
<H1><font color="#BB0000">Table of Contents:</font></H1>
<!-- *** BEGIN toc *** -->
<UL>
<LI> <a HREF="lg_mail.html">The MailBag</A>
<LI> <a HREF="lg_tips.html">More 2-Cent Tips</A>
<LI> <a HREF="lg_answer.html">The Answer Gang</A>
<LI> <a HREF="lg_bytes.html">News Bytes</A>
<LI> <a HREF="arndt.html">Micro web server: how to save CPU time and hard disk space</A> , <EM>by Matthias Arndt</EM>
<LI> <a HREF="fillil.html">Fil & Lil</A> , <EM>by ESC Technologies</EM>
<LI> <a HREF="okopnik.html">Installing Software from Source</A> , <EM>by Ben Okopnik</EM>
<LI> <a HREF="orr.html">The Foolish Things We Do With Our Computers</A> , <EM>by Mike "Iron" Orr</EM>
<LI> <a HREF="orr2.html">LG's Funniest Moments, part 1</A> , <EM>by Mike "Iron" Orr</EM>
<LI> <a HREF="orr3.html">The Cute Game 'Cuyo'</A> , <EM>by Mike "Iron" Orr</EM>
<LI> <a HREF="qubism.html">Qubism</A> , <EM>by Jon "Sir Flakey" Harsem</EM>
<LI> <a HREF="spiel.html">Writing Documentation, Part II: LaTeX with latex2html</A> , <EM>by Christoph Spiel</EM>
<LI> <a HREF="tougher.html">Linux Socket Programming In C++</A> , <EM>by Rob Tougher</EM>
<LI> <a HREF="zhaoway.html">Play with the Lovely Netcat</A> , <EM>by zhaoway</EM>
<LI> <a HREF="lg_backpage.html">The Back Page</A>
</UL>
<!-- *** END toc *** -->
<HR NOSHADE>
<!--=================================================================-->
<H3 ALIGN="center"><EM>Linux Gazette</EM> Staff and The Answer Gang</H3>
<BLOCKQUOTE>
<STRONG>Editor:</STRONG> Michael Orr<BR>
<STRONG>Technical Editor:</STRONG> Heather Stern<BR>
<STRONG>Senior Contributing Editor:</STRONG> Jim Dennis<BR>
<STRONG>Contributing Editors:</STRONG>
Ben Okopnik, Dan Wilder, Don Marti
</BLOCKQUOTE>
<HR NOSHADE>
<!--=================================================================-->
<A HREF="issue74.txt.gz">TWDT 1 (gzipped text file)</A><BR>
<A HREF="issue74.html">TWDT 2 (HTML file)</A><BR>
are files containing the entire issue: one in text format, one in HTML.
They are provided
strictly as a way to save the contents as one file for later printing in
the format of your choice;
there is no guarantee of working links in the HTML version.
<HR NOSHADE>
<!--=================================================================-->
<center>
<I>Linux Gazette</I><img alt="[tm]" src="../gx/tm.gif">,
<A HREF="http://www.linuxgazette.com/">http://www.linuxgazette.com/</A><BR>
This page maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com"> gazette@ssc.com</A>
<P>
<H5>Copyright © 1996-2002 Specialized Systems Consultants, Inc.</H5>
</center>
<HR NOSHADE>
<!--=================================================================-->
<center>
<H1><A NAME="wanted"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/mailbox.gif">
The Mailbag</A></H1> <BR>
<!-- BEGIN wanted -->
</center>
<P> <hr> <P>
<!-- =================================================================== -->
<center><H3><font color="maroon">HELP WANTED : Article Ideas</font></H3></center>
<P>
<P> Send tech-support questions, Tips, answers and article ideas to The Answer Gang
<<A HREF="mailto:linux-questions-only@ssc.com"
>linux-questions-only@ssc.com</A>>. Other mail (including
questions or comments about the <EM>Gazette</EM> itself) should go to
<<A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A>>. All material
sent to either of these addresses will be considered for publication in the
next issue. <EM>Please send answers to the original querent too, so that s/he
can get the answer without waiting for the next issue.</EM>
<P> Unanswered questions might appear here. Questions with
answers--or answers only--appear in The Answer Gang, 2-Cent Tips, or here,
depending on their content. There is no guarantee that questions will
<em>ever</em> be answered, especially if not related to Linux.
<P> <STRONG>Before asking a question, please check the
<A HREF="../faq/index.html"><I>Linux Gazette</I> FAQ</A> to see if it has been
answered there.</STRONG>
<P> <HR> <P>
<!--====================================================================-->
<!-- BEGIN HELP WANTED : Article Ideas -->
<UL>
<!-- index_text begins -->
<li><A HREF="#wanted/1"
><strong>dbman</strong></a>
<li><A HREF="#wanted/2"
><strong>dial-up and DSL</strong></a>
<li><A HREF="#wanted/3"
><strong>ssc, "Linux@Gazette" Request for assistance.</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">dbman</FONT></H3>
Mon, 26 Nov 2001 22:18:58
<BR>Philippe (<a href="mailto:linux-questions-only@ssc.com?cc=philippe341@nerim.net&cc=linux@rodolf.com&subject=%20Re%3A%20%5BLG%2074%5D%20help%20wanted%20%231">philippe341 from nerim.net</a>)
<P>
[with a bow to our translator Frank Rudolf] Any reader out there
inclined to help out, please mail Philippe, and copy us here
in The Answer Gang, <A HREF="mailto:linux-questions-only@ssc.com"
>linux-questions-only@ssc.com</A>. -- Heather
</P>
<P><STRONG>
----- Forwarded message from philippe -----
</STRONG></P>
<P><STRONG>
salut je recherche des personnes qui connaissent dbman ,j'ai quelques
problemes a installer les modifications , jesouhaiteégalement
créer un forum sur ce logiciel
</STRONG></P>
<P>
Hi, I am looking for people who know dbman.
I have some problems installing the patches.
I would also like to create a forum about this software.
</P>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">dial-up and DSL</FONT></H3>
Wed, 12 Dec 2001 19:53:24 +0800
<BR>Henry Jesus S. Lastimosa Jr. (<a href="mailto:linux-questions-only@ssc.com?cc=henryjl@cebu.weblinq.com&subject=%20Re%3A%20%5BLG%2074%5D%20help%20wanted%20%232">henryjl from cebu.weblinq.com</a>)
<blockquote><font color="#000066">Karl-Heinz gave this a shot but any of
our readers with more experience in this regard are welcome to join in
the fray, or even write up a longer article for the <EM>Gazette</EM>.
-- Heather</font></blockquote>
<P><STRONG>
guys,
</STRONG></P>
<P><STRONG>
i wonder if u can answer this question it really keeps on bugging me
.... at present my company is connecting to the internet via DSL , is
there a way that i can configure my linux box with a dial-up account
from an ISP in case my DSL bugs down ?
</STRONG></P>
<P><STRONG>
it goes this way, i'll set up my linux box with DSL connection using
IP masq and fetchmail(for e-mail), in any circumstances that my DSL goes
down, i have to connect to an ISP which serves as a backup for my DSL.
how can this be done ? or can this be done ???
</STRONG></P>
<P><STRONG>
HELPP!!!!
</STRONG></P>
<P><STRONG>
thanks ,
</STRONG></P>
<P><STRONG>
henry lastimosa
</STRONG></P>
<P>
I'm not familiar with DSL -- I assume it will use an ethernet adapter for the
network connection. Basically nothing much changes if it's pppoe or similar.
</P>
<P>
You can check the DSL connection by pinging relevant machines outside or
checking device status (ifconfig, cat <TT>/proc/***</TT>).
</P>
<P>
If this goes down you can/should disable the default routing over the DSL and
start up a ppp connection to your ISP. This will give you a new IP number and
a working ppp device. pppd will set the default routing for that ppp device.
</P>
<P>
If your box would be standalone and this would be only for the local machine
that's it. But you have masquerading and maybe firewall rules set for the IP
number with DSL -- which now won't work due to the IP number change.
</P>
<P>
You've got to setup the firewall/forwarding/masquerading rule again for the
new IP number (probably every time new if dynamic IP like usual with dial
up). After that it should work like before. You can even leave the DSL device
active (but not default route) and check if it's online again. Then change
back to DSL.
</P>
<P>
How to precisely setup the forwarding/masquerading for this I would be
interested myself. Especially for automatic dynamic IP adapttion.
</P>
<P>
K.-H.
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">ssc, "Linux@Gazette" Request for assistance.</FONT></H3>
Mon, 10 Dec 2001 17:33:49 +0800
<BR>k.s. Teo (<a href="mailto:linux-questions-only@ssc.com?cc=quality@magix.com.sg&subject=%20Re%3A%20%5BLG%2074%5D%20help%20wanted%20%233">quality from magix.com.sg</a>)
<blockquote><font color="#000066">This reader clarified the initial email
so I merged the letters. Anyone who works in real estate, manages their
properties using free software, and feels inclined to tell us what you're
using, please let us know. It'd make a really great article!
-- Heather</font></blockquote>
<P>
Dear Editors,
</P>
<P>
To all Editors, should any of the Editors come across some application
software on "Property Maintenance" please let us know.
</P>
<P>
We are referring to an Application software to manage the Maintenance of a
high-rise Residential complex and its compound ( gardening, parking lots
allocation, electrical replacement, refuse disposal, building maintenance,
sport facilities book by residents, swimming pool, etc...etc.. ) (
apartment are owners occupied.)
</P>
<P>
We do not want custom program software, and would prefer existing &
Tested application software.
</P>
<P>
We appreciate your assistance.
</P>
<P>
Yours sincerely,
<br>K.S. Teo
<br>Hotel Quality Source Co.
</P>
<!-- end 3 -->
<a name="mailbag"></a>
<P> <hr> <P>
<!-- =================================================================== -->
<center><H3><font color="maroon">GENERAL MAIL</font></H3></center>
<P> <HR> <P>
<!--====================================================================-->
<!-- BEGIN GENERAL MAIL -->
<UL>
<!-- index_text begins -->
<li><A HREF="#mailbag/1"
><strong>Comment on Dennis Field article. Why Linux is not winning the battle of the desktops.</strong></a>
<li><A HREF="#mailbag/2"
><strong>To Dennis Field</strong></a>
<li><A HREF="#mailbag/3"
><strong>What must Linux vendors do?</strong></a>
<li><A HREF="#mailbag/4"
><strong>Link Update Request</strong></a>
<li><A HREF="#mailbag/5"
><strong>Your "Cleaning up the MBR" instructions</strong></a>
<li><A HREF="#mailbag/6"
><strong>what now?</strong></a>
<li><A HREF="#mailbag/7"
><strong>Copying linux to a new disk</strong></a>
<li><A HREF="#mailbag/7a"
><strong>Free software appreciation</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Comment on Dennis Field article. Why Linux is not winning the battle of the desktops.</FONT></H3>
Thu, 6 Dec 2001 08:34:37 -0800 (PST)
<BR>Javier Isassi (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20mailbag%20%231">j_isassi from yahoo.com</a>)
<!-- sig -->
<P><STRONG>
Greeting fellow Linux Lovers.
</STRONG></P>
<P><STRONG>
The follwing comments are in reqard of an article published in your
December issue of the linux gazette entitled
"Why Linux is not winning the battle of the desktops"
</STRONG></P>
<P><STRONG>
Let me start by saying:
There's no such battle.
</STRONG></P>
<P>
<Wry look> That pretty much sums up my take on the whole thing. As soon as
I saw that article, I figured that it was going to draw a fair bit of
flamage; I'm pleasantly surprised to see that the responses have been
generally well-reasoned.
</P>
<P>
Besides - a rout is not a battle. <grin> We're not battling anyone, just
taking a pleasant little walk in the park. If outdated businesses happen to
fall by the wayside because they've stepped on their own shoelaces, why,
<insert innocent look here> what do <EM>we</EM> have to do with it? <blink, blink>
</P>
<P>
-- Ben Okopnik
</P>
<P>
Oh, the battle exists, but only in the minds of the mainstream media who
invented it. For them Linux won't "win" until there's no longer a need
for an underdog OS to support. -- Jim Dennis
</P>
<P>
Moreover, the article was focused on one particular distro. If it were
me, I would choose one of the major distros that I thought came from a big
enough company to provide the basic features I needed to support the type
of hardware I intended to run it on, then add the applications for the
ecommerce (or whatever it happened to be) part of it later. I don't see
any reason why the author was bound to use the same distro as had been
chosen to run on the desktop machines in the business office environment.
</P>
<P>
Also, in the case of somewhat specialized hardware such as a laptop, as
mentioned here in the past, there are a few web sites which cover Linux on
laptops pretty thoroughly - he didn't mention looking at those sites to
iron out the difficulties.
</P>
<P>
Back in the days of RH4.2, I recall having trouble installing to a desktop
486 machine I had. I tried <A HREF="http://www.debian.org/">Debian</A> and RH without success. Then I went to
Slakware and was able to get it installed. Those were the early days of
hardware auto-detection and automated installs. At the time, Slakware was
still very much a manual install, and so avoided the problems that the
other distros were encountering. What I'm trying to say is that instead
of banging ones head against the wall with one distro, it pays to try
others. It was more work, but I had a functional Linux box, which
included X.
</P>
<P>
-- John Karns
</P>
<P><STRONG>
While developers of the multi-flavored Linux arena are working towards
making Linux easier to run and configure it is accepted, well understood
and furthermore ADVIRTISED that Linux is not the choice of the
neofite moron trying to learn how to use a computer (AKA Windows user)
</STRONG></P>
<P><STRONG>
Furthermore the subsequent remarks towards making Linux a more "friendly" OS
are also off the mark.
Let's mention a few.
</STRONG></P>
<h4>"Make Linux idiot proof"</h4>
<P><STRONG>
There's already an idiot proof OS. Is called MAC OS, not Windows. Is
robust and more secure than Linux and Windows put together. Drawback,
you can't jack with it. Main reason Linux exist: "An OS that you can
jack with it"
</STRONG></P>
<P>
Or, to quote a UNIX old hand, Doug Gwyn:
</P>
<P><BLOCKQuote>
"UNIX was not designed to stop you from doing stupid things, because
that would also stop you from doing clever things."
</BLOCKQuote></P>
<P>
However, specialist distros of Linux, designed to do only one thing
well, do exist (routers are very popular variants, as are rescue disks).
Companies sell special eqwipment for special purposes, which sometimes
have a free OS under the hood. For instance, the thinkNIC
(<A HREF="http://www.thinknic.com/thinknic"
>http://www.thinknic.com/thinknic</A>) is a bookend PC with no
hard disk, designed primarily for playing solitaire and web surfing.
People who can't spell "OS" can't tell it's Linux; they just know they
have to stuff its CD in there when they turn it on. -- Heather
</P>
<h4>"Give Linux users better customer service"</h4>
<P><STRONG>
I worked in the customer service dept at Dell Computer for over 3 years.
The number one reason people called could be nailed in one single
sentence: "I was jacking with my system and things went wrong, can you
change my diapers and fix my system?"
</STRONG></P>
<P><STRONG>
What kind of numbskull with pour money to support a staff to hear customers
rebuilding the kernels or installing modules they code and compile? What
is it that you are supporting? Coding? Linking and running? Unlike the
wint-tel world where you have "parties" (vendors) providing you with
software there are no "parties" in the OSC (Open Source Community) because
NOBODY is paying for it.
</STRONG></P>
<P>
First define the customers, then you can define the service. Companies
that couldn't do the first, went early to the "dot bomb." There are
companies making okay money by selling "professional services" aka
rebuilding things and coding. Ship a pretty darn good product and
excellent manual, and you still get calls, but more of them will be off
the far ends of the bell curve... asking to do things that are complex,
or completely beyond the scope (ok so now that I have Linux you guys can
help me build my own TiVo before my 90 days are up?) or people who think
that "ordinary" things like making sure the monitor is on are non-obvious
and should have been in the book. Honest. I've been there too! (4+ years
in MSwin and antivirus tech support.)
</P>
<P>
However, the same team that can, as you put it, change diapers may not
be terribly good at wreaking deep kernel magic, and vice versa.
</P>
<P>
But I wouldn't say NOBODY is paying for things; We could hardly have so
many boxed products in their third or fourth major revision, if that
were the case. Imagine telling folks back in '94 that Linux was going
to be on endcaps at Fry's, taking up half aisles, and random PCI cards
would proudly stamp themselves "linux compatible". Hah! They'd have
sent for the little white men. -- Heather
</P>
<P><STRONG>
Anybody who believes that because they dished out 40 bucks at staples
for a copy of Mandrake they are "entitled" to ANYTHING, the soon realized
otherwise.
</STRONG></P>
<P>
Entitled to keep the manual inside that box on the shelf and read it
until it is happily dog-eared. If you're the sort who understands
things without needing manuals, you don't need boxed Linux anyway.
If you're not sure where your A: is (oh! the floppy! why didn' ya
SAY so!) then that "90 days install support" may be valuable in helping
you use the quickstart guides.
</P>
<P>
It's the job of the folks who design the box to set the expectations of
the customer who will pick up and buy that box. -- Heather
</P>
<P><STRONG>
To recap. Linux off the shelf is a poor example of a vanilla robust
desktop OS. And proud of it.
</STRONG></P>
<P>
We're not vanilla. We're mint chocolate chip, the other favorite flavor.
Strawberries cost extra, low fat options available, etc. -- Heather
</P>
<P><STRONG>
If all you want to do is browse the web and read your email get an iMAC.
If alll you want is someone else read your email and browse your system
get Windows with Outlook. For anything else...Linux.
</STRONG></P>
<P><STRONG>
cheers.
</STRONG></P>
<P><STRONG>
Javier Isassi.
</STRONG></P>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">(no subject)</FONT></H3>
Mon, 3 Dec 2001 14:39:22 +0100
<BR>Ian Carr-de Avelon (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20mailbag%20%232">ian from emit.pl</a>)
<P><STRONG>
In LG-73 Mr Field again argues, that to win the battle of the Desktop
Linux "vendors" need to provide a much higher level of support. The battle
for my desktop was won by Linux years years ago, but it may well be that
the battle for Mr Field's desktop is not worth winning at the moment.
</STRONG></P>
<P><STRONG>
There is a famous quote (anyone know from who?) that "users must be made
to believe that it is not the administrator's job to make them happy,
it is the administrator's job is to make sure the system works. Then the
system will work and the users will be happy most of the time. If users
believe that the administrator has to make them happy, they will never
be happy and the system will never work." This is not about whether
users have a right to happiness, it is just a practical point that if
the technically able staff in an organisation don't have the status to
refuse to attempt to deliver what they know they cannot deliver, they
will deliver nothing.
</STRONG></P>
<P><STRONG>
I wonder whether Mr Field's book shop sells books in foreign languages. If
he sold a book in Russian and the client could not read it, because
they didn't know the language, would he as "vendor" feel that he
was failing to provide customer support? How could he expect to sell
books to customers who could not read at all? Obviously he could not,
he relies on schools and parents and the customer themselves to put in
a huge effort to be able to use the products he sells. Maybe he should
make use of his bookstore to purchase some books on Linux and take the
time to learn Linux at a realistic rate. I'm not against Linux users
helping each other for free, nor am I against people who need assistance
paying a company for that if they can afford to. However when Mr Field
suggests, that if what he paid for the distribution could never finance
the open ended unlimited support he would like, that they could at least
encourage their knowledgeable users to spend 10 hours sorting him out
for a chance at a 5$ hat, we see what kind of person we are dealing
with. Maybe he should start offering 5$ hats to customers who will give
free Russian lessons so he can sell books in Russian.
</STRONG></P>
<P><STRONG>
If you believe that a knowledgeable person could solve your problems in
10 hours, and that that would be good use of their time, please pay them
for that 10 hours. If someone is prepared to give 10 hours to making Linux
better, please let them decide for themselves what they will do in that
10 hours. If Linux can be difficult to install, that may put some people
off, but I can't see Linux users working 10 hours for a baseball cap as a
way to encourage people to become Linux users. Linux users of the world
unite, you have nothing to loose but the chance of a 5$ baseball cap.
</STRONG></P>
<P><STRONG>
When efforts are going to made it is only reasonable that those providing
the resources decide what they should be used for.
</STRONG></P>
<P><STRONG>
Yours
</STRONG></P>
<P><STRONG>
Ian
</STRONG></P>
<HR width="10%" align="center">
<blockquote><font color="#000066">... to which Mike replied, and Ian
responded ...</font></blockquote>
<P><STRONG><FONT COLOR="#000066"><EM>
In LG-73 Mr Field again argues, that to win the battle of the Desktop
Linux "vendors" need to provide a much higher level of support. The battle
for my desktop was won by Linux years years ago, but it may well be that
the battle for Mr Field's desktop is not worth winning at the moment.
</EM></FONT></STRONG></P>
<P><STRONG>
There are two sides to this issue,
</STRONG></P>
<P>
No, there are many sides to the issue, because Xfree86-GNU-Linux is not
a simple vendor & client product. Mr Field's basic argument is exactly
that he paid Linux for a CD and it didn't work out, so Linux should get
its act together. We all understand that there are a whole series of
groups here: open source developers (Linus, FSF, LDP, Xfree86), the
distribution, the satisfied users and dissatisfied non-users like
Mr Field. Each has their own motivations and it can't be accepted that
we all go down together at the battle of Mr Field's desktop. (actually
laptop, but lets keep this clean).
</P>
<P><STRONG>
However, I think what Dennis is saying is that a
higher level of vendor support is necessary for Linux to be a viable
alternative in many retail and other workplace situations.
</STRONG></P>
<P>
I accept this, but the response to the article has to be a) how people
in the situation can realisticly use Linux as it is, and b) consideration
by knowledgeable people of how resources which can be made available
can best be put to use. If we allow the complaint to undermine our
confidence in Linux, as a system we have proven in use ourselves, and accept
that we should apply our selves not as we do, but as Mr Field thinks best,
then we will have allowed Mr Field to become toxic to us.
</P>
<P><STRONG>
This is also
</STRONG></P>
<P><STRONG>
known as "enterprise-level" support, and any company that switches a
vital component of their business (such as their inventory system) to a
new application will make sure the support is available, either from the
vendor or in-house.
</STRONG></P>
<P>
I have no problem with this, but I don't expect enterprises to get this
level of support for the price of a Linux-CD or a hat. This initial
problem relates to getting Linux installed on a single specific PC.
Do you think that if the distribution sent someone round and made
Linux work on this PC, that Mr Field would soon have his inventory
system working under Linux? My guess is that he will run straight into
another problem and another. Solving problems and accepting that
this modem or that scanner does not work and will have to wait for
a development or you to learn more, is the reality of using Linux.
It may even be that if the installation goes too easily, you have lost
an important chance to learn and have gained an unrealistic expectation
of how things will go with the whole system.
</P>
<P><STRONG>
"Not worth winning": perhaps, perhaps not. It may not be the vendor's
"responsibility" to provide the support; but on the other hand, if they
want those customers, they will provide the support.
</STRONG></P>
<P>
If the vendor says "we will provide support" they have a duty to do that
(however you quantify support), but it can't be accepted that Linux
users have a responsibility to provide the support which a vendor
promised. If the cost of a Linux CD plus the cost of the support
Mr Fields needs is an attractive one to Mr Fields' employers, let
the vendor make the sale and Linux can advance; but don't lets
have high-maintenance users and vendors using us all to meet unrealistic
expectations for a baseball hat or two.
</P>
<P><STRONG>
Giving up on those
</STRONG></P>
<P><STRONG>
customers means they will be stuck with a commercial OS that only works
at all for them simply because they happen to be included in the OS
company's marketing target. If the OS company decides his business (and
that of everybody like him) is insufficiently significant to their [the
OS company's] bottom line, the next version of the OS may be
incompatible with what he needs, and then he'll be up the river.
</STRONG></P>
<P>
Who ever produces the software they use, it takes effort. The fact that
a commercial organisation (two if we count the Linux vendor) can benefit
is not in itself sufficient reason to work 10 hours for a baseball
cap IMHO.
</P>
<P>
Yours
Ian
</P>
<HR width="10%" align="center">
<blockquote><font color="#000066">Mike made an effort to forward the
conversation to Dennis, the thread continued, and some of the conversation
never made it to me. But here's the tail end of it...
-- Heather</font></blockquote>
<P><STRONG>
Until such time as we can get all the people who are
currently running their small businesses and home offices with Windows to
take several years of graduate courses in Linux, then there is no point
in even trying to compete with Microsoft.
</STRONG></P>
<P>
Either they learn enough to use Linux as it is available now, or Linux
has to be out of the box ready, or they can't use it. I'm not saying how
it should be, or it would be nice if it was.
Learning to use Linux is something it is easy to give pointers to. Making
Linux more out of the box ready is generally more difficult and there are
several ways of going. If you go in the direction of writing clever
scripts which detect the hardware and set the configuration, then <A HREF="http://www.suse.com/">SuSE</A>
and Red-hat are about as good as you can get with the resources anyone
has available. If they are not good enough for you, maybe you will get
lucky with the next release, or the same release on a different PC,
but there are no miracle distributions just round the corner.
You suggest that users could sort themselves out if there was a web forum.
In fact there is lots of help on the Internet, database of laptops with
Linux, almost every package has its own web site and mailing list.
I recently installed <A HREF="http://www.slackware.org/">Slackware</A> 8.0 on a Tulip PC and found problems like
the address in Netscape being displayed black on black. I worked out
a way round and emailed XFree86. In order get the information to someone who may
be able use it and avoid every distribution which has the same Xfree86
version having to have someone reinvent the same wheel, I had to understand
quite a lot about how the Linux system operates just to make a decent
bug report.
The other way to to make Linux out of the box is to supply preinstalled
systems, even with remote administration, or be a Linux based ASP and let the
customer use your Linux via the Internet.
</P>
<P><STRONG>
But I guess <A HREF="http://www.redhat.com/">Red Hat</A> and SUSE
and <A HREF="http://www.caldera.com/">Caldera</A> don't care about selling to the small business market.
</STRONG></P>
<P>
These are top companies at what they do. Would you write off Ford because
their cars take 20 hours (personal tuition) to learn to drive?
</P>
<P><STRONG>
The
</STRONG></P>
<P><STRONG>
only thing I don't understand is why does IBM provide all that
information about their products? Surely IBM's customers could just
figure it out for themselves if their computer doesn't work?
</STRONG></P>
<P>
IBM has all that information to hand and the costs of putting it onto
the net are less than having someone to pick up the phone to say
"hello this is IBM, anybody who knows anything is too busy to talk right
now."
</P>
<P>
Yours
Ian
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">What must Linux vendors do?</FONT></H3>
Mon, 3 Dec 2001 10:58:23 -0800
<BR>Dan Wilder (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20mailbag%20%233">The Answer Gang</a>)
<P><STRONG>
[ ... ] if the technically able staff in an organisation don't
have the status to refuse to attempt to deliver what they know
they cannot deliver, they will deliver nothing.
</STRONG></P>
<P>
This is elegantly put, and certainly true of situations far beyond
the intended context of the discussion. I like it!
</P>
<P>
--
Dan Wilder
</P>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Link Update Request</FONT></H3>
Thu, 6 Dec 2001 11:15:23 -0800
<BR>StuffIt Web Evengelist (<a href="mailto:gazette@ssc.com?cc=evangelist@aladdinsys.com&subject=%20Re%3A%20%5BLG%2074%5D%20mailbag%20%234">evangelist from aladdinsys.com</a>)
<P><STRONG>
Hello there,
</STRONG></P>
<P><STRONG>
During a recent surf of your site, <A HREF="http://www.medasys-lille.com"
>http://www.medasys-lille.com</A>, we
noticed that at the following URL(s):
</STRONG></P>
<P><STRONG><BLOCKQuote>
<A HREF="http://www.medasys-lille.com/webalizer/VersionR04/default.htm"
>http://www.medasys-lille.com/webalizer/VersionR04/default.htm</A>
</BLOCKQuote></STRONG></P>
<P><STRONG>
...you offer users help on how to handle downloaded files and you recommend
rarsoft.com to handle downloaded files such as .zip, .rar, etc.
</STRONG></P>
<P>
Hmm, are you sure you have the right people? I went there and I didn't
see a <EM>Linux Gazette</EM> mirror site. -- Heather
</P>
<P><STRONG>
We'd like you to consider including a link to StuffIt, or even replacing
your existing recommendations with one for StuffIt.
<<A HREF="http://www.stuffit.com/stuffit/win/>"
>http://www.stuffit.com/stuffit/win/></A>;
</STRONG></P>
<P><STRONG>
Why?
</STRONG></P>
<P><STRONG>
Because:
</STRONG></P>
<P><STRONG><BLOCKQuote>
The competitors are not "free", but shareware, meaning your users will get
a nagged to purchase every single time they download a file from the
Internet. With StuffIt, unregistered users are only nagged when they create
archives, NEVER when they open them.
</BLOCKQuote></STRONG></P>
<P><STRONG>
StuffIt is the only product available on all the platforms your users may
use. (Available for Windows, Macintosh, Linux, and Solaris.)
</STRONG></P>
<P><STRONG>
StuffIt handles more formats <<A HREF="http://www.stuffit.com/stuffit/formats.html>"
>http://www.stuffit.com/stuffit/formats.html></A>;
than any competing product and is the only product which handles the
popular .sit format, which means your users have a better chance of
accessing a file with StuffIt than with any other utility.
</STRONG></P>
<P><STRONG>
As the number one compression utility in the retail channel for Windows,
StuffIt has proven itself as the compression utility of choice where it
counts, on the street.
</STRONG></P>
<P><STRONG>
So do your users a favor and refer them to StuffIt
<<A HREF="http://www.stuffit.com/stuffit/win/>"
>http://www.stuffit.com/stuffit/win/></A>;, in your FAQ's, and on any pages that
offer .zip, .sit, or other supported file types for download.
</STRONG></P>
<P><STRONG>
If that sounds good, but you're wondering what might be in it for you? We
have an answer! If you respond to this email to let us know that you have
added a link to StuffIt to your web site, we will gladly offer you a choice
of a free registered copy of StuffIt in any platform you would like - OR -
a free t-shirt (black) that says ".sit happens!". (T-shirts are in limited
supply so act quickly if you want one!)
</STRONG></P>
<P><STRONG>
Please let us know if you have any questions and especially if you'd like
to collect on some free software or logoware.
</STRONG></P>
<P><STRONG>
Sincerely,
</STRONG></P>
<P><STRONG>
Eric Kopf
<br>StuffIt Web Evangelist
</STRONG></P>
<P>
We don't offer .zip or .zit files, only .tar.gz. -- Mike
</P>
<P>
Aren't you supposed to use "squeeze" for that last one? Or does "pop"
provide the same functionality? -- Ben Okopnik
</P>
<P>
We don't offer .rar either and infoZIP is free enough for most of our
users.
</P>
<P>
I regret to note that I have trouble using Aladdin's "stuffit for Linux"
to reliably unpack .sit files meant for Macs (I was trying to get at
some PICT resources that fit a theme I'm messing with, I wanted to see
if GIMP would load them. All but the text files unpacked to zero bytes
length). I assume that the Linux version is allowed to fall behind the
Mac version and it shows. It just doesn't win points for me if Aladdin's
app doesn't work with their own Stuff
<IMG SRC="../gx/dennis/unsmily.gif" ALT=":("
height="24" width="20" align="middle">
</P>
<P>
As for free. "only nagged when they create" isn't very free. Most shareware
I have encountered never nagged anyone at all except in the documentation.
(Including the about box, of course, so you know how to get ahold of the
author.) Most Linux utilities don't even need a postcard. For some of our,
ahem, more evangelistic types, free means we know how it works under the
hood (academic papers ok, code preferred), and for the more vehement among
those, it includes the right to make derivatives that stay free in the same
sense. You really have to be careful about the difference between "0 dollars
and no sales tax" and "freedom of assembly"
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> around here.
</P>
<P>
I don't think we have any serious all-in-one decompressor libraries... and
why should we? The individual ones work fine, and we have lots of shiny
front ends for the itty bitty command line apps or to call our .so APIs.
mc is my personal favorite, but some of my friends like GUItar. -- Heather
</P>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Your "Cleaning up the MBR" instructions</FONT></H3>
Thu, 13 Dec 2001 10:21:54 -0800
<BR>Ben Okopnik (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20mailbag%20%235">The Answer Gang</a>)
<P><STRONG>
Hi Ben,
</STRONG></P>
<P><STRONG>
I have a laptop that was turned into a doorstop when I tried to reinstall
the original image after experimenting with Mandrake 8.1 (really needs
more of a machine than that laptop is). Every attempt at fdisk seemed to
work but attempting to boot the machine froze with "LI" and a blinking
cursor on the screen.
</STRONG></P>
<P><STRONG>
I tried your instructions using Tom's root-boot, and got nowhere but an
error message stating that <TT>/dev/zero</TT> was an invalid option for if in dd
(I'm sorry, I had already tried the assembler version before I thought
of the fact you might like the actual text of the error. . .duh!!).
</STRONG></P>
<P>
No big deal, although I would have been curious to see the error. If it
does say something like that, however, it's possible that "dd" is somewhat
broken in <A HREF="http://www.toms.net/rb/">Tom's rootboot</A>; several of the "adaptations" of programs (most of
them seem to have been rewritten in "lua") are, to some degree. For
instance, the "chroot" in Tom's doesn't let me spawn a shell, which I
consider broken behavior.
</P>
<P>
However, it's not a problem: any method by which you can write 512 nulls to
the beginning of "<TT>/dev/hda</TT>" will do.
</P>
<blockquote><code><font color="#000033"><br># If you just don't care about what's on the HD...
<br>x="\0"; for n in 1 2 3 4; do x=$x$x$x$x; done; printf $x$x > /dev/hda
<br>
<br># A nicer way to do it
<br>x="\0"; for n in 1 2 3 4; do x=$x$x$x$x; done; printf $x$x > nada
<br>dd if=nada of=/dev/hda bs=512 count=1
</font></code></blockquote>
<P><STRONG>
Anyhow, your DOS-based "debug" method appears to have worked. . .I was
able to put a bootable DOS partition on the box again. Thanks for
having alternatives; you might want to dig into the Linux solution a
little further. FYI, this is a Toshiba 7000CT pII-266 with 4GB HDD
and 64M in case you were wondering. Thanks <EM>very</EM> much for having
this resource "out there!"
</STRONG></P>
<P>
You're welcome, Dan. I get fairly regular mail thanking me for this one,
which is certainly nice; it's even better to get one with a bug report
included. Thanks!
</P>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/6"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">what now?</FONT></H3>
Sat, 8 Dec 2001 15:46:01 -0800
<BR>Thomas P. Rowland (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20mailbag%20%236">thomas.p.rowland from mail.sprint.com</a>)
<P><STRONG>
Jim,
</STRONG></P>
<P><STRONG>
You've been around the block a couple of times. I've been Linuxing since
'94(<A HREF="http://www.slackware.org/">Slackware</A>).
</STRONG></P>
<P><STRONG>
Anyhow, how can the Linux community stem the tide? Voluteer time to
local schools to build networks? Online tutorials?
I don't know the answer. But I'd like to help.
</STRONG></P>
<P>
I don't believe that this is a "Linux" problem. Linux has been
a solution for some, may be the solution for many, and offers hope
for everyone.
</P>
<P>
I don't think of the situation as an inrushing tide to be stemmed.
However, if I accept that analogy, then we are not on the shore; we are
riding our own waves. Since we have already set sail a mere tide
will not sink us. Other currents may run the S.S. Penguin aground,
a gail may capsize us, or we might find ourselves becalmed (resting
in our laurels?) and adrift.
</P>
<P>
As for how we can make Linux a better solution for a broader range
of users, that's a bigger question. I would hate to sound like a
communist but one slogan that comes to mind is:
</P>
<BLOCKQuote>
From each as he or she is able, to each as he or she needs.
</BLOCKQuote>
<P>
No single effort will do. This is not about defeating Microsoft,
nor even about undermining commercial and proprietary software as
an industry. It's about providing alternatives.
</P>
<P>
So, what can each of us do? I can contribute through technical
support writing, by teaching and informed advocacy. Linus, Alan
Cox, et al contribute through coding (and project management, and
technical vision). The <A HREF="http://www.kde.org/">KDE</A> and <A HREF="http://www.gnome.org/">GNOME</A> teams contribue through a
different level of coding (user space applications framework rather
than core kernel work). The FSF provides the tool chain and the
utility set that fit between the kernel and the application space.
</P>
<P>
Perhaps you could help wire up your school. However, that is not
a Linux effort. You should not volunteer with your local school
board specifically to push a Linux aggenda. First it should be
"your" school, in the sense that you are involved in it. If, from
the vantage of understanding *it's* needs, you believe that Linux
is the best available solution to <EM>some</EM> of their problems, then
you can propose it.
</P>
<P>
If you can create an online tutorial; that's great. Better, if you
can improve an existing one.
</P>
<P>
For example there is the GBDirect sponsored "Open Source Training"
effort at: <A HREF="http://www.opensourcetraining.co.uk"
>http://www.opensourcetraining.co.uk</A> which offers
curricula for the professional trainer under licensing terms that
are very close to the <A HREF="http://www.linuxdoc.org/">Linux Documentation Project</A> (LDP) free documentation license. (In other
words we are all granted royalty free license to copy, modify and
present the materials; though publication/distribution of derivative
works must be approved by the author).
</P>
<P>
There is a whole section of the dmoz (<A HREF="http://www.dmoz.org"
>http://www.dmoz.org</A> and Google's
<A HREF="http://directory.google.com"
>http://directory.google.com</A> ) directory devoted to training:
</P>
<BLOCKQuote>
<A HREF="http://dmoz.org/Computers/Software/Operating_Systems/Linux/Support/Training"
>http://dmoz.org/Computers/Software/Operating_Systems/Linux/Support/Training</A>
</BLOCKQuote>
<P>
... so there's already a body of work to which we can contribute.
</P>
<P>
Of course online training only works for people who are exceptionally
self-motivated. It also requires a persistence and a special mindset.
Let's face it, most people can't benefit as readily by simply "reading
up on it" as through more interactive means. A good instructor can
teach more and more quickly than most people would learn on their own.
</P>
<P>
Otherwise the LDP (<A HREF="http://www.linuxdoc.org"
>http://www.linuxdoc.org</A> ) and a computer with a 'net
connection would be all anyone needed. (Arguably that's all that most
of us <EM>needed</EM> to get started; but the point is that it's not enough to
attract many other people to Linux).
</P>
<P>
So, those who are comfortable with public presentation and excel in
the materials, might contribute by teaching.
</P>
<P>
Linux and other open source systems (such as <A HREF="http://www.freebsd.org/">FreeBSD</A> and its ilk)
are grass roots projects. They are the reaction of some programmers
to the state of the industry. A true grass roots movement is not about
grandstanding. It's about regular people doing what is right for them.
</P>
<P>
(This is not to say that Linux and the "open source movement" faces
no real threats. The SSSCA, DMCA, and UCITA laws certainly pose
great risks to fundamental liberties for programmers and users of
all software. I wish I could claim that this was just an American
problem --- but it isn't. These (proposed) laws are evidence that
the U.S. legislature has been almost completely subverted by commercial
interests and that only the barest whisper of lip service to our
constitution and our Bill of Rights, remains. It remains to be seen
how far the injustice will go and what measures may be necessary to
stem <EM>that</EM> tide).
</P>
<P><STRONG>
Regards,
</STRONG></P>
<P><STRONG>
PS Very good article on the briar patch!
</STRONG></P>
<P><STRONG>
Paul Rowland Architecture and Engineering
</STRONG></P>
<P>
Thanks -- Jim Dennis
</P>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/7"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Copying linux to a new disk</FONT></H3>
Thu, 20 Dec 2001 16:30:05 +0800
<BR>Gregory J Smith (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20mailbag%20%237">greg.smith from mi-services.com</a>)
<P>
G'Day from Australia!
</P>
<P>
Love your Gazette. I have a couple of Linux systems at home.
</P>
<P>
[his question, trimmed like an xmas tree.]
</P>
<P>
Cheers, Merry Xmas
</P>
<HR width="10%" align="center"><P>
Please ignore my question sent previously - followed your advice and
found info in a mini-HOWTO. Will try soon and post some question about
it. Fingers crossed.
</P>
<P>
Greg Smith
</P>
<P>
Thanks, Greg, we hope that HOWTO works out for you. But if not, let us
know! -- Heather
</P>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/7a"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Free software appreciation</FONT></H3>
Mon, 31 Dec 2001 09:16:26 -0800
<BR>Bryan Henderson (<a
href="mailto:gazette@ssc.com?subject=Re:+Free+software+appreciation">bryanh from giraffe-data.com</a>)
<P> Mike Orr writes in the December issue about one of the
<A HREF="../issue73/orr2.html">dangers</A> every
free software developer faces: lack of appreciation from users. His
point is a good one, but the article was inspired by the resignation
of Christoph Pfisterer from the Fink project, which doesn't really
illustrate the point.
<P> Mike writes, "A developer is resigning from a free software project
because of the unappreciative demands of its users." I know that
issue pretty well, and it interests me, so I read the
<A HREF="http://www.geocrawler.com/lists/3/SourceForge/11114/125/7038861/">
resignation letter</A> and
the references linked from the letter, and I discovered that this is
not a case of unappreciative users.
<P> This is a case of an arrogant developer who doesn't appreciate the
situation of his users. Two of his references for why he is resigning
are bug reports that look pretty polite and appreciative to me, but
Pfisterer flames the user for being to lazy and stupid to solve the
problem himself. He also seems to take personal offense at the
suggestion that his work may be defective.
<P> There's nothing the user community can do to keep a prima donna like
this working on free software.
<P> The other references have to do with beneficiaries of Fink not giving
sufficient credit to the people who worked on Fink. But those appear
to be genuine misunderstandings and disagreements over how much credit
Fink deserves.
<P> From the facts available, I believe Pfisterer is new to supporting
software used by the masses, and in time he will mellow and start
contributing to free software again.
<!-- end 7 -->
<a name="gaz"></a>
<P> <hr> <P>
<!-- =================================================================== -->
<center><H3><font color="maroon">GAZETTE MATTERS</font></H3></center>
<P> <HR> <P>
<!--====================================================================-->
<!-- BEGIN GAZETTE MATTERS -->
<UL>
<!-- index_text begins -->
<li><A HREF="#gaz/2"
><strong>Unsubscribe to newsletters?</strong></a>
<li><A HREF="#gaz/3"
><strong>Re: A querry</strong></a>
<li><A HREF="#gaz/4"
><strong>New TAG FAQ & KB</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="gaz/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Unsubscribe to newsletters?</FONT></H3>
Thu, 20 Dec 2001 09:02:24 -0800
<BR><em>anonymous</em> (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20gazette%20matters%20%232">address withheld</a>)
<P><STRONG>
Please take me off the mailing list for your newsletters or tell me how I
can unsubscribe.
</STRONG></P>
<P>
Go to <A HREF="http://www.ssc.com/mailman/listinfo/LISTNAME"
>http://www.ssc.com/mailman/listinfo/LISTNAME</A>
and you will have an opportunity to unsubscribe. If you don't remember your
password, there's a section where you can have it mailed back to you.
</P>
<P>
-- Mike Orr
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="gaz/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Re: A querry</FONT></H3>
Sun, 2 Dec 2001 10:28:25 -0800
<BR>dinesh (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20gazette%20matters%20%233">dinesh from neline.com</a>)
<!-- sig -->
<P><STRONG>
Dear Sir,
</STRONG></P>
<P><STRONG>
Can you help me if I have a querry pertaining to Linux ? How can I ask
questions, if there is any forum or something, kindly let me know.
</STRONG></P>
<P>
See The Answer Gang FAQ at <A HREF="../tag/members-faq.html"
>http://www.linuxgazette.com/tag/members-faq.html</A>
-- Mike Orr
</P>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="gaz/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">New TAG FAQ & KB</FONT></H3>
Thu, 27 Dec 2001 14:45:22 -0800
<BR>Mike, Ben, and Chris (<a href="mailto:gazette@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%20gazette%20matters%20%234"><em>Linux Gazette</em> Editors</a>)
<P>
The latest TAG FAQ and KB are up. A big round of applause to Ben Okopnik and
Chris Gianakopoulos for bringing these up to date!!!
</P>
<P>
<A HREF="../tag/members-faq.html"
>http://www.linuxgazette.com/tag/members-faq.html</A>
<A HREF="../tag/kb.html"
>http://www.linuxgazette.com/tag/kb.html</A>
</P>
<P>
-- Mike Orr
</P>
<P>
<twisting toe shyly in the sand> Shucks. 'Twern't nothin'... err, I lie. It
was a hell of a lot of work, and a BIG chunk of it done by Chris this month
while I was dealing with Real Life and wrestling with the various relevant
meta-issues involved in the production. <EM>YAY</EM>, Chris!
</P>
<P>
<Grin> All made worthwhile by seeing the result, though - and it's going to
get even bigger, and be a better resource for the community. Mike, whose
oversight is just as much of a contribution as any, deserves a big hand
too.
</P>
<P>
Good to be working on this with both of you guys.
-- Ben
</P>
<P>
Thanks for that recognition! It's fun to be part of the
Linux Gazette. I also thank everyone for the encourgement that you all
have given me for the past two years with respect to Linux stuff.
</P>
<P>
Have a good set of holidays -- all of you! -- Chris G.
</P>
<!-- end 4 -->
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<H5 align="center">This page edited and maintained by the Editors
of <I>Linux Gazette</I>
<a href="http://www.linuxgazette.com/copying.html"
>Copyright ©</a> 2002
<BR>Published in issue 74 of <I>Linux Gazette</I> January 2002</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<!-- *** END copyright *** -->
<center>
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.jpg">
More 2¢ Tips!</A></H1> <BR>
<!-- BEGIN tips -->
Send Linux Tips and Tricks to <A HREF="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</A></center>
</center>
<UL>
<!-- index_text begins -->
<li><A HREF="#tips/1"
><strong>Setting up ipchains when using ftp: Problem Solved</strong></a>
<li><A HREF="#tips/2"
><strong>Installing tulip.o in 6.2 (Question #8 - Dec)</strong></a>
<li><A HREF="#tips/3"
><strong>[LG 72] 2c Tips #3</strong></a>
<li><A HREF="#tips/4"
><strong>Recovering from MySQL table problems</strong></a>
<li><A HREF="#tips/5"
><strong>passwd disabling</strong></a>
<li><A HREF="#tips/6"
><strong>Re: HTML/CSS question</strong></a>
<li><A HREF="#tips/7"
><strong>Linux equivalent for Active Directory?</strong></a>
<li><A HREF="#tips/8"
><strong>Browse email</strong></a>
<li><A HREF="#tips/9"
><strong>Sophisticated excluding backup</strong></a>
<li><A HREF="#tips/10"
><strong>Kernel versions</strong></a>
<li><A HREF="#tips/11"
><strong>Printing big text</strong></a>
<li><A HREF="#tips/12"
><strong>Print Info</strong></a>
<li><A HREF="#tips/13"
><strong>Setting numlock</strong></a>
<li><A HREF="#tips/14"
><strong>Re: Setting up IP Masquerading</strong></a>
<li><A HREF="#tips/15"
><strong>List tweaks</strong></a>
<li><A HREF="#tips/16"
><strong>linux software</strong></a>
<li><A HREF="#tips/17"
><strong>Tux the Penguin</strong></a>
<li><A HREF="#tips/18"
><strong>ftp macro variables</strong></a>
<li><A HREF="#tips/19"
><strong>Help... (Gnome)</strong></a>
<li><A HREF="#tips/20"
><strong>Windows Shares</strong></a>
<li><A HREF="#tips/21"
><strong>linux telnet question</strong></a>
<li><A HREF="#tips/22"
><strong>Implementation of a little ToDo list</strong></a>
<li><A HREF="#tips/23"
><strong>bind: Address already in use</strong></a>
<li><A HREF="#tips/24"
><strong>Setting up a web-based archive for a mailing list</strong></a>
<li><A HREF="#tips/25"
><strong>Boot Screen</strong></a>
<li><A HREF="#tips/26"
><strong>whitepaper on CFS?</strong></a>
<li><A HREF="#tips/27"
><strong>Linux Journal WNN Tech Tips</strong></a>
<ul><li>Running an X program on a remote display
<li>Replicating a Debian system
<li>Color inkjet printers
<li>How to include attachments when forwarding mail from mutt
<li>Subscribe to
<A HREF="http://www.linuxjournal.com/modules.php?op=modload&name=NS-subscribe&file=newsletter"
><I>Linux Journal's</I> Weekly News Notes</A> (weekly e-mail newsletter)
</ul>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Setting up ipchains when using ftp: Problem Solved</FONT></H3>
Fri, 21 Dec 2001 22:55:37 -0600
<BR>Chris Gianakopoulos (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%231">The Answer Gang</a>)
<P>
Hello Gang,
</P>
<P>
I figured out why my ftp client, on my Windows95 machine, did not appear to
work using my Linux machine with IP masquerading. I had to type the
following command on my Linux machine that was doing the masquerading:
</P>
<blockquote><code><font color="#000033"><br>insmod ip_masq_ftp
</font></code></blockquote>
<P>
I found this information at the URL:
</P>
<P><BLOCKQuote>
<A HREF="http://netfilter.samba.org/ipchains/HOWTO-7.html"
>http://netfilter.samba.org/ipchains/HOWTO-7.html</A>
</BLOCKQuote></P>
<P>
It had all kinds of other stuff for using ipchains.
</P>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Installing tulip.o in 6.2 (Question #8 - Dec)</FONT></H3>
Mon, 10 Dec 2001 15:08:34 -0700
<BR>Jeff Craig (<a href="mailto:linux-questions-only@ssc.com?cc=craig@cs.montana.edu&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%232">craig from cs.montana.edu</a>)
<P>
I've actually had direct experience with this problem. Newer Linksys
cards don't work with the Kernel module that was included in the 2.2
Kernel tree. I was helping friends install Linux on their machines, and
had to do some scrambling of my own.
</P>
<P>
What I did to solve to problem was to download the latest 2.4 tree onto
their windows partitions, then perform the <A HREF="http://www.debian.org/">Debian</A> install, unpack to
tree to <TT>/usr/src/linux</TT> and recompile (a person should always compile
their own kernels IMO). The card worked beautifully after that.
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">[LG 72] 2c Tips #3</FONT></H3>
Sat, 15 Dec 2001 03:13:24 -0500
<BR>Greg Messer (<a href="mailto:linux-questions-only@ssc.com?cc=greg@escape.net&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%233">greg from cscape.net</a>)
<P>
I think Carlos needs to use:
</P>
<blockquote><code><font color="#000033"><br>force user = someuser
<br>force group = somegroup
</font></code></blockquote>
<P>
in his smb.conf file on a per share basis
</P>
<P>
That way any samba user who access to that share can write to any other
user's files.
</P>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Recovering from MySQL table problems</FONT></H3>
Thu, 13 Dec 2001 09:26:05 -0800
<BR>Mike Orr (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%234"><em>Linux Gazette</em> Editor</a>)
<P>
Somebody on another list had a problem with MySQL losing tables. Since the
answer is good for troubleshooting various MySQL table problems, I'm
submitting it as a 2-Cent Tip.
</P>
<P>
I've never seen MySQL lose tables without a specific DROP command.
First, be sure you're looking in the correct database?
</P>
<ol>
<li> Look in the MySQL data directory (maybe <TT>/var/lib/mysql</TT>). There
should be one subdirectory for each database, containing three files
for each table (tablename.MYD, tablename.MYI, tablename.frm).
Do the file sizes look plausable or are they "really small"?
<li> Check file ownership/permissions. The user the MySQL server is
running under must have read/write access to all data files, and
read/write/execute access for directories.
<blockquote><pre>cd /var/lib/mysql
chown -R mysql.mysql /var/lib/mysql
# Or 'nobody' or whoever the MySQL server runs as.
chmod -R u+rwX /var/lib/mysql
# Or 'ug+rwX' or 'ugo+rwX' for less security.
mysqladmin -u root -pPASSWORD flush-tables
</pre></blockquote>
Something on your system may have reset the ownership to root.root. If
MySQL doesn't have read access, I think it <EM>will</EM> say the table doesn't
exist.
<li> Do a MySQLdb query of "SELECT DATABASE();". Does it return the
correct name?
<li> Use the 'mysql' interactive utility. Do "USE mydatabase",
"SHOW DATABASES;", "SHOW TABLES;", etc. If it can't find the tables, none
of MySQL can.
<li> Do you have two copies of MySQL installed and two data directories?
Maybe it's looking in the wrong directory. Run "mysqld --help" and it
will tell you where it thinks the data directory is.
</ol>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">passwd disabling</FONT></H3>
Fri, 30 Nov 2001 17:11:42 -0700
<BR>Eric Larson (<a href="mailto:linux-questions-only@ssc.com?cc=thelarsons@mindspring.com&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%235">thelarsons from mindspring.com</a>)
<P>
I recently read an article from your site: "SysAdmin: User
Administration: Disabling Accounts-From Glenn Jonsson on 05 Aug 1998"
</P>
<P>
It spoke of placing an * in the password field of the <TT>/etc/passwd</TT> file.
This doesn't restrict the account on my system(Solaris
<IMG SRC="../gx/dennis/smily.gif" ALT="8)"
height="24" width="20" align="middle">. Could you
have meant placing the * as the first character in the password field of
/etc/shadow.
</P>
<P>
thanks for any feedback
</P>
<P>
Eric
</P>
<P>
<em>
Definitely. That trick only works when placed in the passwd field which
is actually going to be </EM>used<EM> ... and since most Linux systems now
support shadow files, that means <TT>/etc/shadow.</TT> In 1998 those were a
bit less common. -- Heather
</em>
</P>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/6"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Re: HTML/CSS question</FONT></H3>
Mon, 3 Dec 2001 10:20:24 -0500 (EST)
<BR>Larry Kollar (<a href="mailto:linux-questions-only@ssc.com?cc=lkollar@despammed.com&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%236">lkollar from despammed.com</a>)
<P><STRONG>
I am currently trying to write html which will insert page breaks
for printing, which is [CSS2 and] not implemented in mozilla.
</STRONG></P>
<P><STRONG>
Is any anyone aware of any solutions to this using HTML/CSS1
</STRONG></P>
<P>
I don't think so, but if your HTML qualifies as well-formed XML, you could use XSLT (XML stylesheet and transformation language) to transform it into something that can be printed. The W3C spec at www.w3c.org does a pretty good job of describing the language.
</P>
<P>
If your source is valid (i.e. passes through an SGML parser without complaints from the parser), you can use DSSSL to convert it to a printable format. The beginnings of some how-to docs are at <A HREF="http://www.mulberrytech.com/dsssl/dsssldoc"
>http://www.mulberrytech.com/dsssl/dsssldoc</A>
</P>
<P>
If I had to do this, I would use Sablotron (a free XSLT processor from www.gingerall.com) and write a stylesheet to transform XHTML to groff for printing. It's not as convenient as printing directly from Mozilla, but much more flexible and easier to control.
</P>
<P>
Hope this helps,
</P>
<P>
-- Larry "Dirt Road" Kollar
</P>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/7"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Linux equivalent for Active Directory?</FONT></H3>
Wed, 5 Dec 2001 16:01:59 -0500
<BR>Rick Holbert (<a href="mailto:linux-questions-only@ssc.com?cc=holbert.13@osu.edu&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%237">holbert.13 from osu.edu</a>)
<P>
Craig,
</P>
<P>
Take a look at the latest version of Samba. Samba makes a linux box look
like an NT file and print server. The latest beta version of Samba has
Active Directory support.
</P>
<P>
The Samba url is <A HREF="http://www.samba.org"
>http://www.samba.org</A>
</P>
<P>
Good Luck!
Rick
</P>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/8"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Browse email</FONT></H3>
Wed, 5 Dec 2001 16:35:04 -0500 (EST)
<BR>Chuck Peters (<a href="mailto:linux-questions-only@ssc.com?cc=cp#ccil.org&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%238">cp from ccil.org</a>)
<P><STRONG>
Mark E. Nosal asked:
</STRONG></P>
<P><STRONG>
I've been asked to provide our LAN clients with web access to their email.
Our present NOS is dare I say it, NT4 w/Exchange 5.5.
</STRONG></P>
<P><STRONG>
I refuse to install IIS to use OWA (w/exception to being fired that is).
I've downloaded <A HREF="http://www.apache.org/">Apache</A> for wintel, printed all the "how to's" and plan to
be enlightened.
</STRONG></P>
<P><STRONG>
I've been to <A HREF="http://horde.org/imp"
>http://horde.org/imp</A>; (per advise of
another). They offer imap & pop3 web mail access.
</STRONG></P>
<P><STRONG>
The problem is I haven't any Apache knowledge, and limited mail knowledge in
general. I used your search engine (in addition to other Linux based sites)
but I haven't found what I need.
Would you please clue me so I may tackle this task and hopefully justify
bringing Linux in-house. One small step for penguin......
</STRONG></P>
<P>
We use IMP here at CCIL at <A HREF="http://webmail.ccil.org"
>http://webmail.ccil.org</A>. If you use <A HREF="http://www.debian.org/">Debian</A>, it
simplifies the install process. Although we did have a problem on the
last security update of IMP that broke it. We just set it up on another
box until we had time to fix it in a couple of days. CCIL is a
non-profit freenet and all volunteer work for the techs anyway, we have a
part time paid Executive Director as of 2 months ago.
</P>
<P>
Chuck
</P>
<P>
There are <EM>lots</EM> of webmail apps; Debian definitely makes some of them
easier to install (aeromail comes to mind). Most distros come with Apache
set up alright for a single domain... a lot of webmail apps are perl based
or PHP based. If you don't like IMP and its fellow apps in The Horde, you
could try Squirrelmail (<A HREF="http://www.squirrelmail.org"
>http://www.squirrelmail.org</A>) or Phorecast
(<A HREF="http://phorecast.org"
>http://phorecast.org</A>) both of which have been updated recently...
or type "webmail" into the search gadget at
<A HREF="http://www.freshmeat.net/">Freshmeat</A> and see what suits
your fancy.
</P>
<P>
For a recent client of mine, his tastes were simple and we found ourselves
very happy with
<a href="http://www.openwebmail.org/">OpenWebMail</a>.
However, it doesn't do IMAP, just POP. -- Heather
</P>
<!-- end 8 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/9"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Sophisticated excluding backup</FONT></H3>
Sat, 10 Nov 2001 23:38:47 +0100
<BR>Matthias Posseldt (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%239">The Answer Gang</a>)
<P>
In issue 72 (November 2001) we published Ben's
2c Tip about sophisticated excluding backups
(<A HREF="../issue72/lg_tips72.html#tips/12"
>http://www.linuxgazette.com/issue72/lg_tips72.html#tips/12</A>)
</P>
<P>
... in which he comments to Matthias:
</P>
<P><STRONG><BLOCKQuote>
- and, heck, since you're putting yours up, I might as well add mine to
the list.
</BLOCKQuote></STRONG></P>
<P>
Arggh, just figured out a major/minor/whatever bug in the date string.
Here comes a fixed version.
</P>
<P>
Ciao, Matthias
</P>
<p align="center">See attached <tt><a href="misc/tips/mpbackup.sh.txt">mpbackup.sh.txt</a></tt></p>
<p align="center">See attached <tt><a href="misc/tips/evaluate_file.sh.txt">evaluate_file.sh.txt</a></tt></p>
<!-- end 9 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/10"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Kernel versions</FONT></H3>
Tue, 6 Nov 2001 01:03:25 -0800
<BR>Mike Orr & Heather Stern (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2310"><em>Linux Gazette</em> Editors</a>)
<P>
<A HREF="http://asimov.lib.uaa.alaska.edu/linux-kernel/archive/2001-Week-41/0920.html"
>http://asimov.lib.uaa.alaska.edu/linux-kernel/archive/2001-Week-41/0920.html</A>
</P>
<P>
Do not use kernel 2.4.11, especially on <A HREF="http://www.suse.com/">SuSE</A> Instead, use any earlier
or later versions. -- Mike
</P>
<P>
2.4.11 had a nasty error which Linus almost immediately regretted...
many of the 2.4.x series have had significant improvements while
occasionally mangling something rather ordinary (e.g. loop.c, needed for
loopback mounting, didn't work in 2.4.14 ... I check my fresh-cut CDs that
way, argh... it appears that unnecessary "deactivate_page" lines were the
culprit. I can't say I discovered that on my own, but it seemed to work,
anyway).
</P>
<P>
The kernel maintainers are still fussing over having a working virtual memory
handler - Andrea Arcangeli with a new one which Linus accepted, while Alan
Cox and Rik Van Riel worked towards improving (some might say repairing)
the original VM. Although Alan eventually agreed that Andrea has an ok
design, the new VM's <EM>very</EM> new vintage and limited comments in the code
still have a few people favoring Rik's VM, and Rik continuing to improve it.
Keep watch at the current "Kernel Traffic" summaries
<A HREF="http://kt.zork.net/kernel-traffic/latest.html"
>http://kt.zork.net/kernel-traffic/latest.html</A>
</P>
<P>
... if the linux-kernel mailing list itself is too much to wade through, As
of press time the current kernel of the 2.4 series is 2.4,17 with some
18-pre's already posted. -- Heather
</P>
<!-- end 10 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/11"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Printing big text</FONT></H3>
Wed, 21 Nov 2001 12:06:58 -0500
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2311">The Answer Gang</a>)
<br>Julio Cartaya (<A HREF="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2311&cc=jcartaya@home.com">jcartaya@home.com</A>)
<P>
OK, so Answer Gang discussions get me thinking - even if it's a question I
asked first.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> Heck, in some circles, thinking's not only acceptable,
people actually do it regularly! And nobody laughs at'em, either.
</P>
<P>
Anyway... my question was "how do you print a sign ('Welcome!', for
example) big enough to cover a sheet of paper without using a GUI?" In
effect, I wanted some utility that would work like this:
</P>
<blockquote><code><font color="#000033"><br>printbig -size 1024x768 'Welcome!'
</font></code></blockquote>
<P>
Well, the closest thing was a TeX solution by Karl-Heinz... great stuff for
those that know TeX (which I find obscure, complex, and just Too Darn Big
for the occasional dinky little "fancy printing" jobs I need to do), but I
was looking for something simpler still. Then, I remembered a set of tools
that came with a tarball I'd downloaded a while ago, "libungif-4.1.0" (I
would imagine it's been through a few versions since then, but it worked
for me).
</P>
<blockquote><code><font color="#000033"><br>echo 'Welcome!'|text2gif -c 128 0 0|gifrsize -s 12 > welcome.gif
</font></code></blockquote>
<P>
This gives a rather blocky-looking output, with the text magnified 12X
(think of the Courier font at about 150 points or so) and a red foreground
(the color is optionally set by the "-c R G B" switch.) For much more
flexibility in conversion - anti-aliasing, blurring, drawing boxes around
the text, convolving, embossing, and many, many other options, try using
"convert" (part of the ImageMagick utilities) after the "text2gif" has done
its job:
</P>
<blockquote><code><font color="#000033"><br>echo 'Welcome!'|text2gif|convert -monochrome -geometry 800x200 gif:- welcome.jpg
</font></code></blockquote>
<P>
This one gives a beautiful "lace fringe" effect to a softly rendered
black-and-white picture of the text, as if the letters were covered in snow
and edged with frost. Note that "convert" has also changed the format into
JPG; this is a much faster output option than GIFs.
</P>
<P>
Ben Okopnik
</P>
<HR width="10%" align="center">
<P>
Perhaps this could help: the file attached,
<a href="misc/tips/poster.tgz">poster.tgz</a>,
contains the
sources for a program that allows you to use a regular printer to print
arbitrarily large posters, assuming the starting picture has sufficient
detail.
</P>
<P>
Best wishes,
Julio
</P>
<blockquote><font color="#000066">I repackaged it so all files were at the
same level, rather than making you all have to open a second tarball.
DOS and MSwin readers can use his pre-compiled executable.
-- Heather</font></blockquote>
<!-- end 11 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/12"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Print Info</FONT></H3>
Thu, 6 Dec 2001 20:38:08 -0500 (COT)
<BR>John Karns, Heather Stern (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2312">The Answer Gang</a>)
<P><STRONG>
We have just switched our network from a Novell server to a <A HREF="http://www.suse.com/">SuSE</A> Linux
server. However, one of the most missed features was the ability to
receive a pop-up indicating that a print job sent to the network printer
had successfully completed.
</STRONG></P>
<P><STRONG>
We would like to do the following:
</STRONG></P>
<strong>
<ol>
<li> Notify the workstation when a print job, sent to the network printer,
arrives.
<li> Print a type or cover page identifying the origin of the print job.
(We have many a stack of papers on the printer waiting for the owner!)
</ol>
</strong>
<P><STRONG>
Alan Whiteman
</STRONG></P>
<P>
You don't mention any specifics about how your handling our print
requests, etc. Assuming that you're using samba and that you're running
MSW clients, you can run winpopup on the client, and send a msg to it
using smbclient with the appropriate command line option - see the
smbclient man page. Sorry I can't give specifics, as really haven't set
up samba to do much printing. It would probably involve writing one or
two bash or perl scripts. -- John Karns
</P>
<P>
The sheets announcing what user has the print job are called "burst
pages" in the UNIX world. In 'lpr' you would take "sh" out of the
printcap entry, and (if you like these seperators <EM>after</EM> the print job)
maybe add "hl". For the notification you'd have to abuse the print
accounting system, I think... have that shell script send email, that'd
be the easiest. But, there are other print spooling systems, all of
them much newer. I'd look at a lot of stuff at <A HREF="http://www.linuxprinting.org"
>http://www.linuxprinting.org</A>
before working too hard. -- Heather
</P>
<!-- end 12 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/13"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">OT: PC XT Keyboards</FONT></H3>
Thu, 6 Dec 2001 20:40:38 -0500 (COT)
<BR>John Karns, Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2313">The Answer Gang</a>)
<P>
Mike Orr asked:
</P>
<P><STRONG><BLOCKQuote>
PS. How do you get Linux to leave Num Lock on by default? I have it set on in
the BIOS startup, but Linux turns it off.
</BLOCKQuote></STRONG></P>
<P>
I believe it's specific to your distro. On <A HREF="http://www.suse.com/">SuSE</A>, there is a parm in
<TT>/etc/rc.config</TT> to handle it. -- John Karns
</P>
<P>
"setleds" is what I've used in the past. -- Ben Okopnik
</P>
<!-- end 13 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/14"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Re: Setting up IP Masquerading</FONT></H3>
Fri, 7 Dec 2001 10:14:33 -0800
<BR>Mike Orr (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2314"><em>Linux Gazette</em> Editor</a>)
<blockquote><font color="#001F3F">Can somebody who uses DHCP modify this script so that it can be used in both
static and dynamic situations?
-- Mike</font></blockquote>
<P>
If you can't get your IP Masquerading working, try this "simple" script. If
it works from the command line, put it in your boot sequence somewhere or
reference it in your startup scripts (see "man init").
</P>
<P>
Remember to set the variables at the top of the script.
</P>
<P>
It works on kernels 2.4 and 2.2 only, using iptables on 2.4 and ipchains on
2.2. Your kernel must have the appropriate firewall/masquerading/forwarding
compilation options enabled.
</P>
<P>
It tries to allow all connections initiated by the internal network, while
prohibiting connections to the internal network from outside. This is
minimal security, you can add iptables/ipchains commands to block certain
ports on the gateway if you wish.
</P>
<P>
For FTP, IRC, RealAudio, etc, you may have to load additional modules.
</P>
<P>
This script assumes you have a static IP. If you have a dynamic IP (DHCP),
you'll need to determine your current public IP and plug it in. You can run
ifconfig to see the "inet addr:" manually, or modify this script to
automatically determine the current IP.
</P>
<P>
See the iptables/ipchains manual pages for more information, and the
firewalling/masquerading HOWTOs.
</P>
<P>
The 'xx' function displays each command line as it's run.
</P>
<p align="center">See attached <tt><a href="misc/tips/ipmasq.sh.txt">ipmasq.sh.txt</a></tt></p>
<!-- end 14 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/15"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">List tweaks</FONT></H3>
Tue, 4 Dec 2001 09:05:26 -0800
<BR>Dan Wilder (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2315">The Answer Gang</a>)
<P>
Chuck Peters asked:
</P>
<P><STRONG>
Hi,
<br>We are using mailman for our freenet support, CCIL Help Desk Team
<<A HREF="mailto:help@ccil.org"
>help@ccil.org</A>>, and often the users reply to only the
individual who
originally answered the question. As much as I don't want to munge the
header with a reply-to it would be be better than our problem of users not
replying to the list.
</STRONG></P>
<P><STRONG>
I took a quick look at the msg_footer and Python's string formatting
rules, but its not giving me the clues to figure out how you are changing
the reply-to to the list and the user, or the header containing "Original
question from: user". How did you do that?
</STRONG></P>
<P>
A wrapper. I'd threatened to post details, and since
you ask, I'll do so.
</P>
<P>
It was a quick hack. Improvements and generalizations
happily accepted.
</P>
<P>
The list begins by delivering to a procmail recipe. In
/etc/aliases:
</P>
<blockquote><code><font color="#000033"><br>linux-questions-only:
<br> "|/usr/bin/procmail -m /etc/procmailrcs/linux-questions-only"
</font></code></blockquote>
<P>
Because of the location and ownership of the procmailrc,
mail is delivered as the user which owns the procmail
recipe <TT>/etc/procmailrcs/linux-questions-only.</TT> In our case
we have it owned by "list" which has permission to write to
the temporary directory <TT>/var/lib/mailman/tmp/.</TT>
</P>
<P>
After several procmail recipes irrelevant to the present thread,
the final delivering recipe says:
</P>
<blockquote><code><font color="#000033"><br>:0
<br>| /usr/lib/mailman/localbin/hdrs.sh
</font></code></blockquote>
<P>
If you don't need procmail and you can deal with Sendmail's smrsh,
or if you're using exim, postfix, qmail, mmdf, etc, you could deliver
directly to hdrs.sh over <TT>/etc/aliases.</TT>
</P>
<P>
Next, hdrs.sh:
</P>
<p align="center">See attached <tt><a href="misc/tips/hdrs.sh.txt">hdrs.sh.txt</a></tt></p>
<p>and then, hdrs.py:</p>
<p align="center">See attached <tt><a href="misc/tips/hdrs.py.txt">hdrs.py.txt</a></tt></p>
<P>
The data file <TT>/var/lib/mailman/localdata/linux-questions-only</TT>
is generated by script run from a cron job:
</P>
<blockquote><code><font color="#000033"><br>#!/bin/sh
<br>
<br>/usr/lib/mailman/bin/list_members linux-questions-only >/var/lib/mailman/localdata/linux-questions-only
</font></code></blockquote>
<P>
The membership of the list doesn't change very fast, so we
run this nightly.
</P>
<P>
An' that's it.
</P>
<P>
--
Dan Wilder
</P>
<!-- end 15 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/16"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">linux software</FONT></H3>
Fri, 2 Nov 2001 19:21:43 -0600
<BR>dwane boyle (<a href="mailto:linux-questions-only@ssc.com?cc=crystalgroup@hotmail.com&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2316">crystalgroup from hotmail.com</a>)
<P><STRONG>
my queston can linux run on a rs6000 ibm workstation
</STRONG></P>
<P>
Yes. That is a PowerPC architecture. Check distributions which offer
PowerPC support for more details, but I've definitely seen it mentioned
in <A HREF="http://www.debian.org/">Debian</A>, Yellow Dog Linux, and Rock Linux.
</P>
<P>
-- Heather Stern
</P>
<!-- end 16 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/17"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Tux the Penguin</FONT></H3>
Fri, 21 Dec 2001 09:24:01 -0800
<BR>Mike Orr, Ben Okopnik, and Heather Stern
(<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2317"><em>Linux Gazette</em> Editors</a>)
<!-- sig -->
<P><STRONG>
Hardy Boehm asked:
<br>
This may be a stupid question which already
was answerd a million times, but I was
unable to find an answer on the net.
</STRONG></P>
<P><STRONG>
When I gave her a stuffed Tux as a present,
my Girlfriend asked me, what it's sex is?
</STRONG></P>
<P><STRONG>
Can you help me on this???
</STRONG></P>
<P>
<patiently> It's obvious. Geek, of course. -- Ben Okopnik
</P>
<P>
Four out of five sexist computer nerds surveyed agree Tux is male.
-- Mike Orr
</P>
<P>
That might refer to Linus' original comment that penguins are happy
because they have just stuffed themselves full of herring or have been
hanging out with lady penguins. We only <EM>know</EM> that Tux is
stuffed full of herring, but we can assume Tux hangs out with lady
penguins. -- Heather
</P>
<!-- end 17 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/18"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">ftp macro variables</FONT></H3>
Sun, 16 Dec 2001 16:07:57 -0500
<BR>Faber Fedor (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2318">The Answer Gang</a>)
<P><STRONG>jonesrf1 asked:
<br>I am trying to write an ftp macro to run automatically in .netrc.
macro is nammed init as in
</STRONG></P>
<P><strong><code>
macdef init
</code></strong></P>
<P><STRONG>
The macro should get the current date as in
</STRONG></P>
<P><strong><code>
!pre=`date '+%m%d'`
</code></strong></P>
<P>
Is that ! supposed to be there?
</P>
<P><STRONG>
and use that date to retrieve a set of files as in
</STRONG></P>
<P><STRONG><CODE>
cd /var/spool/fax
mget pre*
</CODE></STRONG></P>
<P><STRONG>
where the files are named 1215somethingorother
</STRONG></P>
<P><STRONG>
I can't get the variable pre to be recognized by mget
mget uses <EM> instead of 1215</EM> ie current date*
</STRONG></P>
<P>
I would think you'd need to do
</P>
<P><code>
mget $pre*
</P></code>
<P><STRONG>
Any ideas? Any place to find help on ftp macro? I have tried web search
</STRONG></P>
<P>
I always use the expect programming language
(<A HREF="http://members.cotse.com/dlf/man/expect/index.html"
>http://members.cotse.com/dlf/man/expect/index.html</A>)
when I need to do an "ftp macro".
</P>
<!-- end 18 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/19"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Help... (Gnome)</FONT></H3>
29 Nov 2001 23:41:15 +0000
<BR>mike martin (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2319">The Answer Gang</a>)
<P><STRONG>
I don't know where to start. I have used (and been frustrated by) Windows
for a long time. Linux seem to be a blessing from above. However, the
practical matter is that some things don't work as advertised. There are so
many, I don't know where to begin. Lets start with the Genome Calendar. I
am running Redhat 6.0 and using the Gnome desktop. I have read the
instructions about the Calendar application, but when I set an appointment
it never notifies me of it's passing. I leave the user logged in and the
application running and minimized on the desktop. The date and time of the
appointment comes and goes and nothing happens. Additionally I don't know
where to look for further help. Can you suggest something?
</STRONG></P>
<P><STRONG>
Thank you...
Larry Gilson
</STRONG></P>
<P>
First off RH6 is really old (2 and half years)
Cant really comment on gnomecal, but you may want to upgrade gnome (its
worth it) and try evolution <A HREF="http://www.ximian.com"
>http://www.ximian.com</A>
you can upgrade gnome fairly painlessly from there as well
</P>
<!-- end 19 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/20"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Windows Shares</FONT></H3>
30 Oct 2001 15:05:31 +0000
<BR>mike martin (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2320">The Answer Gang</a>)
<P><STRONG>
I am new to Linux and need to get a network involving a Windows2000 box up
and running.
</STRONG></P>
<P><STRONG>
I have a windows share which has the "everybody full control" permission set
on a windows box on my network.
</STRONG></P>
<P><STRONG>
I can "see" the share on my linux box and can read all data in the share as a
normal user. However as a normal user I am totally unable to write to the
windows share. I do have write access as root
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</STRONG></P>
<P><STRONG>
I have tried using mount with the -o rw options also the chown, chgrp and
chmod commands. All meet with failure. The mounted share just will not
allow me to alter its permissions so that as a normal user I can write to it.
</STRONG></P>
<P><STRONG>
Do you have any suggestions, I would really appreciate any assistance you
can give, this problem has been driving me batty for weeks!
</STRONG></P>
<P><STRONG>
Best Regards
<br>Bevan
</STRONG></P>
<P>
I know that when I was using samba with NT, if you put uid=(any user
uid) that user will be able to write, you may be able to make it work
using gid - never had chance to try it out
</P>
<!-- end 20 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/21"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">linux telnet question</FONT></H3>
Wed, 14 Nov 2001 12:35:02 -0800
<BR>Dan Wilder, Heather Stern, John Karns (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2321">The Answer Gang</a>)
<P>
votecrosby asked:
</P>
<P><STRONG>
I have a problem that occurs with telnet on my linux machines. the only fix
for it i've found is to reload it. telnet will work fine for a few months,
and then the same problem recurs. the issues is that when i try and telnet
into the machines, i get the first part of the prompt
</STRONG></P>
<P><STRONG><code>
<A HREF="http://www.redhat.com/">Red Hat</A> Linux rlease 6.0 (Hedwig)
<br>Kernal 2.2.5-15 on a i 586
</code></STRONG></P>
<P><STRONG>
followed by:
</STRONG></P>
<P><STRONG><code>
/usr/bin/login: no such file or directory
</code></STRONG></P>
<P><STRONG>
of course, that directory doesn't exist when telnet is working either, so i
can't see what the problem is. i have a hacker that's been plauging me,
someone in korea, and i am pretty certain that he's responsible for this
issue, but thus far i haven't been able to keep him out nor keep telnet
running. any suggestions on how to make it work again without reloading
the OS would be appreciated.
</STRONG></P>
<P>
My first suggestion would be to turn off telnetd permanently. The
thing's a horrible security risk, and nobody should use it any more
except within a network containing only trusted hosts.
</P>
<P>
Instead, use Openssh (<A HREF="http://www.openssh.org"
>http://www.openssh.org</A>) which may be available
as .rpms for your Red Hat, someplace.
</P>
<P>
Get OpenSSH-2.9.9p1 or later.
</P>
<P>
If not available, you can build it from source. You'll need to
build OpenSSL and zlib first, as openssh depends on libraries
from these.
</P>
<P>
<A HREF="http://www.info-zip.org/pub/infozip/zlib"
>http://www.info-zip.org/pub/infozip/zlib</A>
</P>
<P>
<A HREF="http://www.openssl.org"
>http://www.openssl.org</A>
</P>
<P>
<A HREF="http://www.openssh.com"
>http://www.openssh.com</A>
</P>
<P>
There's a W*ndows openssh client:
</P>
<P><BLOCKQuote>
<A HREF="http://www.networksimplicity.com/openssh"
>http://www.networksimplicity.com/openssh</A>
</BLOCKQuote></P>
<P>
which I have not personally tried. It requires the cygwin.dll
libraries, which are a pretty fair-sized download. There's also
a small open-source standalone ssh client, putty.exe,
</P>
<P>
<A HREF="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"
>http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</A>
</P>
<P>
-- Dan Wilder
</P>
<P>
It's certainly worth your while to download putty's scp program
too. Even if you continue to use telnet in some places, putty is
a better telnet client than the one that comes with MSwin. -- Heather
</P>
<P>
If someone has cracked your system and messed with <TT>/usr/bin/login</TT> (it's a
binary file rather than a directory - on my <A HREF="http://www.suse.com/">SuSE</A>7.1 system, it's
<TT>/bin/login</TT>) then it would be worth your while, even mandatory to reload
the OS. There's no way to tell to what degree your system has been
compromised, and what kinds of trojan horse binaries may have been
planted.
</P>
<P>
If you're going to stick with RH6.0, then after re-installing you should
visit the RH site and update all the rpm's which were updated for security
fixes. After that install a firewall and <TT>/</TT> or some security programs such
as tripwire, port sentry, etc. Consult the security HowTo(s) for more
info.
</P>
<P>
-- John Karns
</P>
<P>
Also, <A HREF="http://www.linuxsecurity.org"
>http://www.linuxsecurity.org</A> is well worth an extended visit. --
Heather
</P>
<!-- end 21 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/22"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Implementation of a little ToDo list</FONT></H3>
Sat, Nov 03, 2001 at 12:37:20PM +0100
<BR>Matthias Arndt (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2322">The Answer Gang</a>)
<P>
Many users want to keep a little of reminder information for
themselves.
</P>
<P>
Take me for example. Sometimes I want to remind myself of installing a
software package, compiling some code, playing a particular game or
simply to do my homework.
</P>
<P>
What I want is a little reminder display at login.
</P>
<P>
I' m working most of the time in X so I put the following line in my
.xinitrc file BEFORE launching the window manager.
</P>
<blockquote><code><font color="#000033"><br>test -f ~/.ToDo && xmessage -center -file ~/.ToDo -buttons Discard:0,Keep:1 && rm ~/.ToDo
</font></code></blockquote>
<P>
This one checks if the reminder file ($HOME/.ToDo) exists. If yes, the
file is displayed with the xmessage command centered on the screen
giving the choice of either discard it or to keep it. If I want to
keep it, I click on "Keep", if not, the rm command will remove it.
</P>
<P>
To be able to edit the file, I use two methods. First of all I have a
shortcut to my favourite editor loading the ToDo file in my
window managers menu.
</P>
<P>
Second I have the following lines at the very end of my .xinitrc file:
</P>
<blockquote><pre>if [ ! -f ~/.ToDo ]; then
xmessage "Create TODO list?" -center -buttons yes:0,no:1 && xjed ~/.ToDo
fi
</pre></blockquote>
<P>
This block asks me at session end if I want to create a TODO file but
only when this file is non existent. Substitute xjed with your
favourite text editor.
</P>
<P>
Using the console? Simply put the following line in your .profile or
.bash_profile file:
</P>
<blockquote><code><font color="#000033"><br>test -f ~/.ToDo && cat ~/.ToDo
</font></code></blockquote>
<P>
This will simply type the ToDo file on your console at login. With a
little more of shell programming you can achieve a deletion of the
ToDo file at logout as well.
</P>
<P>
Experiment a while with these - it is a nifty feature and you do not
need any extra software. Simply Linux standard packages that come with
all Linux distros.
</P>
<!-- end 22 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/23"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">bind: Address already in use</FONT></H3>
Thu, 20 Dec 2001 16:35:50 -0500
<BR>Faber Fedor (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2323">The Answer Gang</a>)
<P><STRONG>
Harjit Gill asked:
</STRONG></P>
<P><STRONG>
I am having a bit of a problem with suse linux 7.2. My problem is on the
xconsole I get an error message stating the below:
</STRONG></P>
<P><STRONG><BLOCKQuote>
inetd[838] smtp/tcp (2): bind: Address already in use
</BLOCKQuote></STRONG></P>
<P>
The process inetd (process id 83
<IMG SRC="../gx/dennis/smily.gif" ALT="8)"
height="24" width="20" align="middle"> tried to run some SMTP protocol
program (that also uses TCP) but the address that the SMTP program wants
is already in use by someone else.
</P>
<P>
My guess is you're running an email program like sendmail and also
running another SMTP program (read: mail) from inside of inetd. Check
to see what's uncommented in <TT>/etc/inetd.conf</TT>, cross reference that with
<TT>/etc/services</TT> and see if anything uses port 25 (which is listed in
<TT>/etc/services</TT>).
</P>
<!-- end 23 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/24"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Setting up a web-based archive for a mailing list</FONT></H3>
Tue, 06 Nov 2001 11:01:13 +0200 (EET)
<BR>Peter Georgiev (<a href="mailto:linux-questions-only@ssc.com?cc=peterg@mail.bg&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2324">peterg from mail.bg</a>)
<P>
Hiya everyone at the Gazette,
</P>
<P>
Great job again with Issue 72. I especially liked "PDF Service with
Samba" by John Bright.
</P>
<P>
Well I'd like to comment on "Setting Up a Web-based Archive for a Mailing
List" by Lawrence Teo.
</P>
<P>
Let's assume we've already set the mailing list as described in the
previous article -- "A Quick and Easy Way to Set Up a Mailing List" and
also compiled and installed hypermail. So we're at item 2.2. -- Creating
a dummy account, which IMHO has some drawbacks.
</P>
<P>
Well suppose our project has about 20 researchers enlisted in the
mail-list. They also want to share file attachments via e-mail e.g.
drawing charts, spreadsheets, tarballs of source code, whatever. So our
mail traffic is pretty high. It will soon result with a dummy user mbox
several hundred Mbytes of size which will keep growing. Hypermail has to
parse the whole mbox to re-index the archive. On P200 128MB RAM it takes
30 sec to parse a 5 MB mbox and 2 min to parse a 25 MB mbox. Suppose you
have a 500 MB mbox and cron starts hypermail every 2 min -- despite
hypermail's locking mechanism soon you will end with an endless queue of
hypermail processes waiting to be executed or if you switch locking off --
even bring the box down to it's knees.
</P>
<P>
Well all the above may be a bit too far from the real-world situation,
neither have I tested it thourougly.
However there is a way to go around it and it's actually easier to setup.
</P>
<P>
What we have to do is as follows:
</p>
<ol>
<li> <TT>/path/to/hypermail -v > /path/to/projarch.conf</TT>
<br>
This command will dump a sample config file for hypermail which we'll
have to edit. It's pretty self-explanatory so I won't discuss it in
detail.
However look at the "mbox =" option. It sets the mbox to read messages
in from. Giving this option a value of NONE will set hypermail to read
messages from standard input.
<li> Open <TT>/etc/aliases</TT> in your favorite editor and create an alias for
projarch (this we shall use for our archiving purposes)
<blockquote><code><font color="#000033"><br>projarch: "|/path/to/hypermail -c /path/to/projarch.conf"
</font></code></blockquote>
This will pipe each incoming message for <A HREF="mailto:projarch@mybox.example.com"
>projarch@mybox.example.com</A>
into hypermail. Save <TT>/etc/aliases</TT> and issue the
<blockquote><code><font color="#000033"><br>/usr/bin/newaliases
</font></code></blockquote>
command. Do not forget to set the output directory for hypermail
archives somewhere under the web server document root (Option "dir ="
in <TT>/path/to/projarch.conf</TT>). Create the output directory e.g.
<blockquote><code><font color="#000033"><br>/var/www/html/projarch
</font></code></blockquote>
and give the user sendmail runs under (usually user mail) write access
to it.
<blockquote><code><font color="#000033"><br>chown mail:apache /var/www/html/projarch; chmod 750 /var/www/html/projarch
</font></code></blockquote>
Pay attention to possible values of the "dir =" option in the config
file (man hmrc). Using substitution cookies, you can tell hypermail to
archive messages in different directories by the date they were
received.
<li> Test hypermail sending a message to your mailing-list. If sendmail
bounces it back with an error message like:
<blockquote><code><font color="#000033"><br>sh: hypermail not available for sendmail programs
<br>554 5.0.0 |"/path/to/hypermail"... Service unavailable
</font></code></blockquote>
it means sendmail uses smrsh (Sendmail restricted shell) to execute
binaries. In this case do the following:
<blockquote><code><font color="#000033"><br>ln -s /path/to/hypermail /etc/smrsh/hypermail;
</font></code></blockquote>
Then restart sendmail
<blockquote><code><font color="#000033"><br>/etc/init.d/sendmail restart
</font></code></blockquote>
Test hypermail again sending a message to the mailing list and
pointing your web browser to:
<BLOCKQuote>
<A HREF="http://mybox.example.com/projarch"
>http://mybox.example.com/projarch</A>
</BLOCKQuote>
It should be all set up.
</ol>
<P>
With this setup of hypermail we do not have to create a dummy user --
hence no multi-Mbyte mbox to parse. We process messages one by one
straight as they arrive and update the web archive this very instant - so
we don't need no cron job, and we don't need extra setup of <A HREF="http://www.apache.org/">Apache</A>.
</P>
<P>
No need to mention you will need root access to the system but you will
need it in the first place -- setting up the mailing list. And note
your environment paths may differ from above examples depending on the
distribution you use, which is well explained in the original article.
</P>
<P>
Hope this helps,
<br>Peter
</P>
<!-- end 24 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/25"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Boot Screen</FONT></H3>
Mon, 10 Dec 2001 17:34:25 +0530
<BR>Sayamindu Dasgupta (<a href="mailto:linux-questions-only@ssc.com?cc=unmadindu@Softhome.net&subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2325">unmadindu from Softhome.net</a>)
<P>
Joseph Adamo asked:
</P>
<P><STRONG>
I just bought Linux-Mandrake 8.0 and i have it dual booted to my Windows
2000. Linux has a boot up screen menu. The default is Linux , i would
like to know how to change the order default so i can change it to Windows
2000 or DOS 6.22, etc.
</STRONG></P>
<P>
Hi
</P>
<P>
here's what to do
</P>
<P>
login as root
open up <TT>/etc/lilo.conf</TT> in ur favourite text editor
u'll find a line like this
</P>
<blockquote><code><font color="#000033"><br>default=linux
</font></code></blockquote>
<P>
just cange it to dos (or whatever it might be..and u'r done)
oopss.i forgot, run
</P>
<blockquote><code><font color="#000033"><br>lilo -v
</font></code></blockquote>
<P>
after saving the changes in ur file
and if some idiotic winblows antivirus complains abt a changed mbr after
that, don't pay any attention to that
</P>
<P>
cheers
<br>Sayamindu
</P>
<P><em>
Of course, if you have such an antivirus program, you may want to
temporarily disable it, or otherwise advise it that you are deliberately
updating the MBR. Otherwise you risk getting it put back the way it
was... -- Heather
</em></P>
<!-- end 25 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/26"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">whitepaper on CFS?</FONT></H3>
Thu, 13 Dec 2001 19:11:20 +0100 (MET)
<BR>Karl-Heinz Herrmann (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2074%5D%202c%20Tips%20%2326">The Answer Gang</a>)
<P>
moka asked:
</P>
<P><STRONG>
I wonder if one can dig up a short of whitepaper on
crypto file systems(also AES perhaps).
</STRONG></P>
<P>
AES (Advanced Encrytption standard) is the new encryption standard after DES
and the US government finally decided to use the Rijndael algorithm.
This is available with a "free" license and open source.
</P>
<P>
"AES" in google, third link from top:
</P>
<BLOCKQuote>
<A HREF="http://csrc.nist.gov/encryption/aes"
>http://csrc.nist.gov/encryption/aes</A>
</BLOCKQuote>
<P>
which is the official US gov site anouncing Rijndael as chosen AES algorithm
along with details on the algorithm, links to source and executables as well
as links to the Rijndael developers and more material.
</P>
<P><STRONG>
I have been
unable to point a friend who is interested in such
security issues to a document that addresses not the
technical details, but the whys and in broad terms hows
</STRONG></P>
<P>
On the Crypto File system for Linux:
</P>
<BLOCKQuote>
put "crypto File system" in the search filed of www.google.com and the 4th
link from top will be www.crypto.com/papers/cfs.pdf
which seems to be exactly what you are looking for -- not very hard though.
</BLOCKQuote>
<P><STRONG>
Thanks,
</STRONG></P>
<P>
If you would at least use a search engine first you would be more welcome.
</P>
<!-- end 26 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/27"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Linux Journal WNN Tech Tips</FONT></H3>
<h4 align="center"
>Running an X program on a remote display</h4>
<p>
Use <tt>ssh -n</tt> to run an X program from one computer on another.
</p><p>
For example,
</p><p><code>
ssh -n frodo gimp &
</code></p><p>
will run the GIMP on the host frodo, but display locally.
</p><p>
Using ssh for this is much easier and more secure than setting it up
in X manually.
</p>
<HR width="10%" align="center">
<h4 align="center"
>Replicating a Debian system</h4>
<p>
How many times have you installed some cool software on one of the
systems at your office, gotten used to running it, then one day tried
to run it from a different system only to find it wasn't there?
</p><p>
Now there's an answer. Jablicator for Debian:
</p>
<blockquote>
<a href="http://packages.debian.org/testing/admin/jablicator.html"
>http://packages.debian.org/testing/admin/jablicator.html</a>
</blockquote>
</p><p>automatically
builds a package file based on your current software load. Apt-get
that package on all your other hosts, and they'll keep in sync.
</p>
<HR width="10%" align="center">
<h4 align="center"
>Color inkjet printers</h4>
<p>
Color inkjet printers vary widely in their support under Linux.
Vendors make these family-oriented units as dumb as possible to keep
the cost down. (Think of a color inkjet printer as an in-home display
unit to sell you color inkjet cartridges.) As in a Winmodem, all the
decisions get made in the driver, and some vendors offer decent
drivers for Linux while others don't.
</p><p>
You might find the same printer gives you photo-quality prints from a
proprietary OS and a faded, blurry image under Linux. Visit
LinuxPrinting.org:
</p>
<blockquote>
<a href="http://www.linuxprinting.org"
>http://www.linuxprinting.org</a>
</blockquote>
</p><p> for up-to-date reports on printers and
drivers, so you don't get stuck taking your printer back.
</p><p>
For business or even home office use, a reconditioned laser printer
with network interface is less hassle than a parallel port inkjet and
much cheaper per page. Unless you really want color.
</p>
<BLOCKQUOTE><EM>
Your Editor had to replace his color printer recently, and I got an
Epson Stylus C80 based on the evaluations of the Linux Printing site.
It works great from the Gimp with the Gimp Print driver, once I realized
the latest Debian Gimp package is "gimp1.2" rather than "gimp". Still
not working with LPRng/Ghostscript, but that's a configuration issue rather
than a capability issue. My current Debian Ghostscript works fine with
my laser printer but doesn't contain the Gimp Print driver for the C80.
I tried installing a binary version of Ghostscript with that driver, but
that screwed up my LPRng configuration and my other printing. So I can't
print directly from Netscape. For now, I'm just opening pictures a second
time in the Gimp, which is time-consuming but it works. -Iron.
</EM></BLOCKQUOTE>
<HR width="10%" align="center">
<h4 align="center"
>How to include attachments when forwarding mail from mutt</h4>
<p>
Mutt doesn't forward messages with MIME attachments by default. To
give yourself the ability to include MIME attachments when forwarding
a message, set mime_fwd in .muttrc. In our humble opinion this is the
most useful setting; it allows you not to include attachments by
default but to include them when you want.
</p><p><code>
set mime_fwd=ask-no
</code></p>
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<H5 align="center">This page edited and maintained by the Editors
of <I>Linux Gazette</I>
<a href="http://www.linuxgazette.com/copying.html"
>Copyright ©</a> 2002
<BR>Published in issue 74 of <I>Linux Gazette</I> January 2002</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<!-- *** END copyright *** -->
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
<img src="../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="middle">
<font color="#B03060">The Answer Gang</font>
<img src="../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="middle">
</A></H1>
<BR>
<H4>By Jim Dennis, Ben Okopnik, Dan Wilder, Breen, Chris, and the Gang,
the Editors of Linux Gazette...
and You!
<br>Send questions (or interesting answers) to
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a>
</H4>
<p><em><font color="#990000">There is no guarantee</font></em>
that your questions here will <b>ever</b> be answered.
<em><font color="#990000">Readers at confidential sites</font></em>
must provide permission to publish. However,
<em><font color="#990000">you can be published anonymously</font></em>
- just let us know!
</p>
<p>TAG <a href="tag/bios.html">Member bios</a>
| <a href="../tag/members-faq.html">FAQ</a>
| <a href="../tag/kb.html">Knowledge base</a></p>
</center>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<p><hr><p>
<H3>Contents:</H3>
<dl>
<dt><a href="#tag/greeting"
><strong>¶: Greetings From Heather Stern</strong></A></dl>
<DL>
<!-- index_text begins -->
<dt><A HREF="#tag/1"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Control-Left = go left one word doesn't work in X</strong></a>
<dt><A HREF="#tag/2"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Hi Gazzete (Squid)</strong></a>
<dt><A HREF="#tag/3"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>DHCP to DNS</strong></a>
<dt><A HREF="#tag/4"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>printing the timestamp of a given file</strong></a>
<dt><A HREF="#tag/5"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>SQL on the internet</strong></a>
<dt><A HREF="#tag/6"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>pseudo-chroot</strong></a>
<dt><A HREF="#tag/7"
><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
><strong>Getting volume label for CD</strong></a>
<dt><A HREF="#tag/8"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>linux book</strong></a>
<dt><A HREF="#tag/9"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>random crashes - how to prepare bug report?</strong></a>
<!-- index_text ends -->
</DL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/greeting"><HR WIDTH="75%" ALIGN="center"></A>
<H3 align="left"><img src="../gx/dennis/hbubble.gif"
height="50" width="60" alt="(¶) " border="0"
>Greetings from Heather Stern</H3>
<!-- begin hgreeting -->
<p>
Hi folks. I've been having such fun this season. The only thing sad for me
is, I still haven't gotten around to updating my workstation. I did update
my laptop tho. Debian Testing is coming along nicely.
</p><p>
Okay, I'll make the Peeve of the Month quick. First a big hand to most of
our querents for using real subject lines! Some of you still need to work
on it tho. However, abuse of Quoted Printable when you only have plain
English messages jumps back into number one. Our foreign messages are up,
so maybe half the people who did this really had a romance language to defend.
</p><p>
We've got some very good general information this month which I hope you'll
find tasty.
</p><p>
Before I take on this years "New Years Resolution" (21" diagonal sound good?)
I suppose I'd better finish setting up last years... I've got a color inkjet
here, a nice little Epson Stylus. Of course if I want it to work under most
circumstances I have to recompile Ghostscript with gimp-print extensions,
which means adding a half dozen -devel rpms, and... and... you know, this is
a real pain. I don't even see that one of the fancier print environments
would help. Aaaargh.
</p><p>
And to think I was ragging on word processors last year. I have to say
they've gotten much better. They crash less often than Netscape (well, ok,
that isn't saying much for some folks, but I got NS to be pretty stable a
while ago. Leaving JS off seems to help a lot). Documents are getting to
be kinda usable. I saw a freshmeat app pushing to be a desktop publishing
program. What I really wonder is when someone is going to write the
"obvious" wrapper around the GIMP or ImageMagick to do all those old
"Print Shop Deluxe" kind of things in a fairly slick way. Of course I'm
bucking for The GIMP, because it's supposed to make my color printer happy...
</p><p>
Well, enjoy your bit of the bubbly, <em>try</em> not to blow up anything
when you set off your OpenGL firecrackers, and don't get run over, it's
bad for your health. I won't be at LWE New York, I've been travelling way
too much lately, but if you're going, consider writing a show review for
the <em>Gazette</em>, okay?
</p><p>
See ya!
</p>
<!-- end hgreeting -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/1"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 1 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Control-Left = go left one word doesn't work in X</H3>
<p><strong>From Jay Christnach
</strong></p>
<p align="right"><strong>Answered By Ben Okopnik, Dan Wilder, John Karns, Mike Orr, Karl-Heinz Herrman
</strong></p>
<P><STRONG>
I already spent hours trying to fix this annoying problem:
</STRONG></P>
<P><STRONG><BLOCKQuote>
I don't even know if this normally works, but pressing the control and
left-arrow keys simultaneosly should move the cursor one word back.
</BLOCKQuote></STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
</blockQuote>
<blockQuote>
Nope, this doesn't normally work - because there's no such thing as
"normally". The kind of functionality you're talking about is specific to a
given piece of software, or, in several window managers, might even be a
sequence that is caught and handled by the WM itself.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [John K]
In the case of many versions of fvwm2, ctrl-arrow key combos move the
mouse cursor. However, it seems that it no longer holds true as of fvwm2
ver 2.3.31 or so (or maybe it was changed by <A HREF="http://www.suse.com/">SuSE</A>).
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
When you ask this kind of a question, you always need to specify which
application you're using. In Unix, one of the guiding principles is "don't
set policy; provide mechanisms." Unlike other OS's GUIs, there's no single
common interface (unless the window manager - <A HREF="http://www.kde.org/">KDE</A> and Gnome are good
examples - enforces one.)
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Is this a problem in the xkb symbols? Is this a functionality that has to
be provided by the applications and they simply don't have this shortcut?
I don't know anymore where to look to fix this.
Thanks for your help.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Dan]
This is functionality that has to be provided by the application.
</blockQuote>
<HR width="10%" align="left"><P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Thanks for answering and trying to help
</STRONG></P>
<P><STRONG>
Well I asked a friend if this keyboard shortcut would work on his Linux box
(Mandrake KDE) and he tried several applications and found that even xvi
provides this kb shortcut.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Err... Jay? Did you <em>read</em> our answers? Like, the content, not just the
envelope? I'll repeat it again, just in case Dan's one-line statement <EM>and</EM>
my longer explanation weren't clear:
</blockQuote>
<h4 align="center"><br>It's application specific.
</h4>
<blockQuote>
There's no magic file, or download, or anything else that you can install
that will make that combination work in every editor. Whatever the author
of that piece of software decided to put in as the "jump-word" key combo,
that's what you get.
</blockQuote>
<blockQuote>
To correct your misconception, above: it's not "even xvi provides". The
correct version reads "xvi is at least one editor that provides". What
"xvi" provides bears <em>no</em> relation to what an author of another editor
might use.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I asked him to send me a copy of his
<TT>/usr/lib/X11/xkb</TT> directory. I suspected there were a missing Keyboard Symbol
in my xkb config (I hacked it for being able to use dead-circumflexes and
diaeresis for my sf keyboard, those were missing in the files which came
with my debian distro)
I use the Gnome Desktop (ximian) and sawfish window manager. I'm pretty
shure that Abi-Word usually is able to handle the CTRL-Cursor thing. (It is
nearly a copy of MS Word).
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Huh? That makes no sense. It's written for a different OS... with a
different programming interface... everything, except the types of files
that it can open is different from MS Word... and you expect the keystrokes
to be the same? They might be - it's not an unusual key combo for the job -
but expecting it is just plain silly.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Also in most text-widgets I am able to select the
entire line with shift-Home or Shift-End which is consistent to
ctrl-Shift-Cursor for selecting words and I think this is an accepted
standard or at least should be.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Ah, <EM>there's</EM> the problem: "accepted standard or at least should be." I
knew there had to be a root cause of all this somewhere, and I'm glad we
discovered it so early - it could get really bad if left to grow and spread
unchecked. Here, let me excise that for you...
</blockQuote>
<blockQuote>
"Accepted standard" begs the question of "accepted by whom?" "By me" is not
a valid answer; neither is "by MS Windows users." "Should be" according to
you is obviously not a "should be" according to software authors. Since
you're not one (that's a guess, but a fairly informed one), you don't get
to decide what "should be". If the editors that exist don't suit you,
you're always welcome to write one of your own - including whatever
keystrokes you decide it should have.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
This is a bit harsh. The reason KDE and Gnome exist is because ppl see
the importance of adhering to cross-platform user-interface standards.
</blockQuote>
<blockQuote>
There is a standard for word processors/text editors (regarding how they
treat the arrow keys and select/cut/paste operations) that was
originally set by MacWrite years and years back, because ppl who tried
it found it very intuitive to use and remember.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<wince> OK, here's a seemingly minor niggle that's got a hidden kicker to
it: the definition of the word "standard". As you're using it here, it
means "what a lot of folks have been using for a while". What it means to
me is "a defined set of specifications." Confuting the two leads to...
well, MS Windows is an example. The querent's original assumption is
another.
</blockQuote>
<blockQuote>
In a way, I find myself agreeing with a minor premise of Jay's: I would
<em>like</em> it if there was such a thing as an "editor keystroke standard" - to
be exact, if there were several of them, each one a well-thought out,
coherent, non-internally-conflicting set of keystrokes. Then, you could
have a "flagship" implementation for each - Emacs, vi, MSWord, whatever -
and all the other editors could then use, say, a library that simply
eliminated the whole bloody job of writing a command parser. Now, throw in
a couple of editors like the old "PE3" from DOS (gosh, I <em>loved</em> that
thing! I <EM>miss</EM> it...) where you could actually modify the "keydefs" file
any way you wanted to - including building macros to be assigned to
specific key combos - and you'd have the world covered.
</blockQuote>
<blockQuote>
All that... yeah, sure... BUT.
</blockQuote>
<blockQuote>
I'm not a software developer. I don't consider myself as having the right
to moan and groan about the issue without being able to make a material
contribution - which, again, would only become a contribution in the full
sense of the word if it passed the "community acceptance test". The only
thing I can do, IM!NSHO, is to put in the time testing the available
editors (I've installed and run <em>every</em> editor available with <A HREF="http://www.debian.org/">Debian</A>, other
than obvious clones, plus a number of others) to see how well they suit me.
If they don't, I don't use them - but I don't complain about them, either;
they obviously suit other people to a tee.
</blockQuote>
<blockQuote>
Had the querent asked STL "I'm looking for an editor that has the same
keystrokes as the ETAOINSHRDLU editor - do you folks know of any?", I could
have probably found something that would help him - and would have been
glad to; I <em>like</em> being able to help people. As it was, I found the fact
that he completely ignored my and Dan's original responses, and the
attitude of "well, <EM>real</EM> editors all have this!", irritating.
</blockQuote>
<blockQuote>
BTW - I wasn't aware that it was MacWrite that used those keydefs
originally. Interesting nybble of info.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
It has been widely
duplicated in MS Word and practically all Mac and Windows word
processors and text editors ever since. Even the DOS edit command
recognized the sense of this scheme and was compatible with at least
part of it (shift-arrow extends the selection, ctrl-arrow moves by
words, shift-ctrl-arrow does both). However, part of the paradigm
(ctrl-Z/X/C/V for undo/cut/copy/paste) was adopted by everything except
DOS edit and MS Works. (Of course, Mac had to use the clover key
["command key"] because there was no ctrl key on the Mac keyboard at the
time, a stupid unnecessary attempt to improve on standards without
offering anything better, and some programs like Netscape 4 use alt
instead of ctrl, but modifier-key exceptions are easy enough to learn.)
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<grin> Control-Meta-Hyper-Super-Shift-Top-Front-X? According to The Jargon
File, all of the above were modifiers - <EM>at the same time</EM> - on the LISP
machines' keyboards at MIT (does it surprise anyone that this influenced
the design of Emacs?) "Ten-finger typist", indeed...
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
In the Unix world, applying this standard wholesale is a bit difficult.
It's fine for graphical programs that imitate Windows/Mac programs. But
vi and emacs have existing standards that conflict with these. Also,
ctrl-C is very commonly used in Unix to mean "abort this program".
</blockQuote>
<blockQuote>
Also on Unix, you have the problem that when logging in under various
circumstances, the terminal type gets out of sync and the non-typewriter
keys become inaccessible (insert/delete, pgup/pgdown, and sometimes even
backspace). Thus, you must have alphabetic or ctrl-letter keys to
perform these actions as an emergency fallback.
</blockQuote>
<blockQuote>
Also, vi and emacs typists will say they are more efficient
because they never have to take their hands off the typewriter keys.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
If your editor you write now survives
the process of acceptance by the Linux community - i.e., a significant
number of folks start using it - then, <EM>ta-daa!</EM> You've just become one of
the folks who decide what "should be". See how easy that was?
</blockQuote>
<blockQuote>
<sigh> Pardon me if I sound a bit ascerbic... but, over time, I've grown
rather tired of people who are perfectly willing to use the software that
other people have spent thousands of hours writing - <EM>and</EM> complain about
it. To me, that smacks of - uh, no, <EM>defines</EM> - ingratitude.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
This is certainly correct, not just for the current situation but in
general. However, what's really happening here is a clash of worldviews,
which cause two topics that don't have anything to do with each other to
conflict.
</blockQuote>
<blockQuote>
JAY: All programs should stick to the established Windows/Mac standard
re the arrow keys, a standard that has proved itself valuable.
</blockQuote>
<blockQuote>
BEN: Don't you realize that any change you suggest to a program requires
<EM>HOURS OF WORK</EM> by <EM>UNPAID VOLUNTEERS</EM>? Why is it <EM>their</EM> obligation to
code things to <EM>your</EM> specifications?
</blockQuote>
<blockQuote>
MIKE: The issue that's falling off the table is, is the Windows/Mac
arrow-key standard a good one we should generally adopt, working around
conflicts with existing applications as much as feasable? I say yes.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
If I had any say, my input would be "yes, as one of the standards". One of
the reasons I really like using the editor in Midnight Commander is that it
follows that set of keydefs pretty closely. Now that I've had to grit my
teeth and <EM>really</EM> learn to work with "vi" ("VIM", actually), I find that I
like the functionality - and learning only a small subset of the keystrokes
(plus being able to look up all the others via the help facility) is highly
feasible. Those are the two that I've settled on, and they cover the entire
range of what I need in editors.
</blockQuote>
<blockQuote>
Pretty-text editors (word processors) are an entirely different kettle of
fish. I've found that 99.9% of the time, I don't need them; in Windows, I
used to use them because Notepad was <em>so</em> bad (although GTEdit came very
close to Unix functionality), but with Linux, I have <EM>choices</EM>. The
one-in-a-thousand times when I do need that - making up a sign with large
lettering, for example[1] - either HTML (yechhh) or KWord suffice. I'll be
the first to admit that fancy WP stuff is still not a Known Science under
Linux.
</blockQuote>
<blockQuote>
[1] This seems like such an obvious lacuna that I wonder: is it me? Am I
missing something obvious? There <em>must</em> be some quickie LaTeX thing you can
whip up, or something of the sort; I just can't believe that a gap like
that would exist in Unix, where a part of the philosophy seems to be "small
tools that will roll into and eventually fill every crack". E.g. - I want
to print a sign on an 8.5x11 sheet that says "Welcome!" in letters large
enough to pretty much cover the sheet. Can anyone think of a simple way,
using Unix-native (i.e., not fancy modern GUI) tools?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
This requires you to type everything in vi
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle">
cut-paste with mouse is surely
a fancy GUI method, isn't it?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Nope; I've got "gpm" running.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
Seriously - I meant exactly the type of
solution you're suggesting, and I thank you for relieving my sense of
frustration. I just <EM>knew</EM> that there had to be something of the sort -
although I could wish that it was easier, something like
</blockQuote>
<blockquote><pre>echo 'Welcome!'|makebig --pagesize A4 --stretch-percent 90x90|lpr
</pre></blockquote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
Would be nice yes, but even TeX has some idea what a scientific paper should
look like. One has to "switch off" lots of things to get something out of the
normal scope.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I would imagine that a knowledgeable TeXnician could write a macro that
could work that way. I don't know that I want to get into TeX in that much
detail (my previous forays into it left me covered in cold sweat), but I'll
play around with the bits that you've suggested.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
A TeX Macro, even one which chooses the font size automatically is certainly
possible. On the other hand this is possible with plain <em>postscript</em> .
</blockQuote>
<blockQuote>
Have a look at <A HREF="http://www.red-bean.com/~bwf/software/cdlabelgen"
>http://www.red-bean.com/~bwf/software/cdlabelgen</A>
</blockQuote>
<blockQuote>
Thats a perl script which uses a postscript template for creating cdlabels.
On the backside the postscript itself scales the fontsize down if the lines
would be too long otherwise. It should be possible to go that way with lots
more direct control -- but I've never learned the programming language
postscript, never appealed to me as a convenient one
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle">
. But it seems to be
"turing complete" and I know at least one postscript file which prints a
mandelbrot picture -- by <EM>calculating</EM> it. Takes ages on your stock 66MHz
printer if it comes out at all.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Thank you again!
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
Hmm..... sorry no oneliner. At least not if you would like the comments.
Will require any standard TeX installation (like tetex 0.X, 1.X),
dvips should be included with tetex, gv would be nice but gs alone will do.
</blockQuote>
<blockQuote>
You need file HugeTexttestTeX.tex containing:
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/HugeTexttestTeX.tex.txt">HugeTexttestTeX.tex.txt</a></tt></p>
<blockQuote>
then run:
</blockQuote>
<blockquote><pre> > tex HugeTexttestTeX
This is TeX, Version 3.14159 (C version 6.1)
(HugeTexttestTeX.tex
Babel <v3.6h> and hyphenation patterns for american, german, ngerman,
loaded.[1] )
Output written on HugeTexttestTeX.dvi (1 page, 268 bytes).
Transcript written on HugeTexttestTeX.log.
> dvips -T 11in,8.5in HugeTexttestTeX
This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software
' TeX output 2001.11.20:1824' -> HugeTexttestTeX.ps
<tex.pro><8r.enc><texps.pro>. [1]
> gv HugeTexttestTeX
</pre></blockquote>
<blockQuote>
The vertical spacing/centering caused me a little trouble there. Whats
actually happening in that line starting with the "$" is:
</blockQuote>
<blockQuote><ul>
<LI>switch to mathematical mode (seems to cancel most of the predefined
spacings which we don't want fo a sign
<LI>use a vcenter box (only valid in math mode.....) to center vertically
<LI>give it "glue" to center with (\vfil)
<LI>center the line content horizontally
<LI>choose my huge font and put the Text there
<LI>... closing the "brackets"
</ul></blockQuote>
<blockQuote>
Anyway -- nicely centered "Welcome!" on a landscape letter page. How to get
rid of the pagenumber is left as an exercise, I would recommend ther TeXbook
by Donal E. Knuth to get the details.
</blockQuote>
<blockQuote>
One could also increase the letterspacing in TeX so it would exactly fill the
line instead of adding space left and right of the text -- that's definitely
beyond any M$-word I know of. QuarkExpress has a <EM>very</EM> good control of
things like that though.....
</blockQuote>
<blockquote><pre>$\vcenter to \vsize{\vfil\hbox to \hsize{\Myfont W e l c o m e !}\vfil}$
</pre></blockquote>
<blockQuote>
The spaces help in word too, but they won't stretch as far as here and adding
some more spaces will be necessary and they will never add up to the exactly
same linewidth.....
</blockQuote>
<blockQuote>
Try that instead:
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/portrait-large-text.tex.txt">portrait-large-text.tex.txt</a></tt></p>
<blockQuote>
this time it's not landscape so you can just use:
</blockQuote>
<blockquote><pre>tex file[.tex]
dvips -t letter file[.dvi]
gv file[.ps]
</pre></blockquote>
<blockQuote>
One could also become very fancy and write a TeX macro which calculates the
width of a given text and scales <em>that</em> to pagewith by increasing the
fontsize.
</blockQuote>
<blockQuote>
Also in LaTeX there are nice scaling/rotating features which make more
sophisticated stuff possible.
Using a GUI drawing program to make little eps files which are then scaled
comes to my mind.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Of course, we'll have to compromise with ctrl-C and ctrl-Z, but emacs
(for instance) already makes its own compromises in that regard.
(ctrl-Z it emulates; ctrl-C it hijacks for another purpose, but provides
a related command "ctrl-X ctrl-C" that does a safe exit).
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
If that sounds
like I'm saying that you have to earn the right to complain, you're right.
Only the fishermen who bring home the fish get braggin' rights; only those
who've put in the effort get to grouse about the results. Anything else is
whining.
</blockQuote>
<blockQuote>
Here is something you <em>can</em> do to contribute instead of complaining, even
if you're not a programmer. Join a list (if one exists) for a given piece
of software and put your dearest wish on the "wish list" - there usually is
one - and if the author likes your idea, it just might get implemented. If
you find an actual bug in the software and report it in detail, most
authors would be grateful.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Ben is right. Many distributions have the README files in a standard
place (<TT>/usr/share/doc/PACKAGE/*</TT> on Debian, <TT>/usr/doc/packages/PACKAGE/*</TT>
on SuSE). Look at the READMEs for the offending programs and find the
place to report wishlist items. It may be a mailing list or a bug
tracking system. You can also see whether anybody else has also
requested the same thing. If you know enough programming to provide a
patch, so much the better. If you don't, do you know enough programming
to provide even a few technical details? Those details make the maintainer's
job easier, and may even convince them to provide the enhancement if
they wouldn't otherwise.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
No, I am no programmer. But I know what it takes to write a program. I have
some knowledge of programming and wrote a few small programs. Also I am not
really complaining, I only thought this thing wouldn't work on my computer
whereas it works on other machines which are configured differently.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
That's why both Dan and I said "application-specific", right off the bat.
It's not you, it's not your computer, and your friends can't do it any
better.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I really would like to contribute to the development and debugging,
enhancing of Linux apps. Unfortunately my wife already complains that I
spent too much time in front of the screen and I don't have the time to do
better because of my studies.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
As Mike and I have mentioned, there are many other ways to contribute -
some of which take only a little time and effort. Sending in a detailed bug
report, or adding your favorite item to a wishlist - which may just be the
request that tips the scales - are all good things. Writing up and sending
in an article about your battle with the different key-handling mechanisms,
even though it was a frustrating and eventually bootless experience, would
be another good thing.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Yes, that would be a very good article. Would you like to write up your
experiences, Jay, and contrast the keystroke handling of various Unix
applications with non-Unix ones, and explain how the differences impact
the usability of each system?
</blockQuote>
<blockQuote>
Let us know if you want to, so we can hold off publishing the Answer
Gang thread that's been accumulating. We also can send you a tarball of
the existing messages if that would help provide material for the
article.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I think however that it would be a good idea to have a standard for
keybindings.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
As I'd said previously, I agree - with the caveat that it should not be
_a_ standard, but rather a choice of standards, plus an implementation that
lets you build your own.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
The people contributing to the Gnome project are discussing
about it on their mailing list and I hope that if they find a good
compromise that developers will accept that standard (not only for
Gnome-Apps) .
Thanks again for all of your answers.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Yes, you too can participate. Complaints about how things "should be",
without a significant contribution of your own, are... tacky.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
If you had a clue I would be very thankful.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
We have lots of clues - for which I'm certainly very thankful. In fact, we
often have to employ a clue-by-four to drive them home; there are plenty of
times that several of us have found that to be necessary...
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
oh yes I forgot: the Linux Gazette is by far the best Linux magazine,
compared to the magazines I can find in bookshops in lu. I consider
downloading every issue automatically with wget from now on.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Thanks. You can also use the FTP files; then you only have to download
one file per issue (plus the base-new file).
</blockQuote>
<HR width="10%" align="left"><P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
This will also be the last time I will bother you with my word-jumping
problem. I solved the problem by trying another window-manager, I now
use enlightenment and the ctrl-cursor combo now works in x-emacs, lyx,
mozilla, abiword and probably many other apps. You're still right that
it of course is application dependent as long as you consider the
window-manager as an application.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Or even if you don't. All that a WM can do, in that regard, is either
intercept keystrokes before they get to the app or not; it cannot make an
application accept keystrokes that it was not programmed to accept, or make
it perform any functions on those keystrokes that were not programmed in.
<Checking several apps> It works for me, in several of the apps that you
named, under "icewm" (my usual WM) and "twm" (the "baseline" WM - does the
minimum necessary to be a WM and nothing more) - but not in a number of
other apps ("xedit", "gvim", "flipbook", etc.) It seems that most widgets
and toolkits, especially the newer ones, do indeed support the selection
method, but, again, it's a per-application thing.
</blockQuote>
<blockQuote>
Obviously, whatever WM you were using before was intercepting your
"Ctrl-cursor" keystrokes (which would prevent them from being seen by the
application). Clearly, "Enlightenment" doesn't do that, at least not by
default - I'm not very familiar with it, but I seem to remember a
configuration panel in it which allows you to capture specific key combos.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
If you like I will try different WMs and report which ones do that
trick. This feels much better now
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle">
</STRONG></P>
<P><STRONG>
ciao
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
That would be great - especially if you could dig a little bit into the
configuration dialogs and see if the "intercept mechanism" can be enabled
or disabled. In "icewm", for example, I can completely disable "keystroke
grabbing" by tapping the scroll lock key, even though I have several
"Ctrl-Alt-" combos defined in my "keys" file.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
That's neat. I was was just getting used to kde2 (soming along with SuSE per
default) when I found out that I can switch off most key-grabs but <EM>not</EM>
one specific key grab -- Ctrl-Tab. It does some win-like switching between
app-windows.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Yep; that kind of behavior (defaults that can't be disabled, <EM>tons</EM> of
"pre-made decisions" of that sort that are either difficult or impossible
to change, etc.), plus the fact that it is a huge resource hog, are the
things that completely turned me off KDE/KDE2. I'm sure that some people
love it; in my opinion, it comes closest to the feel of the MSWindows GUI,
more so with every release. Me, I want a WM to do the basics, give me just
a touch of pretty stuff (window ornamentation, toolbar clock, APM display,
etc.) with the ability to turn it all off if I want to - and have a
reasonably small memory and CPU footprint. Over the years, I've tried
pretty much every major WM, and none of the others suit me quite as well.
Besides, Marko Macek (the author) has been reading my mind
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
- when I
first started using "icewm", I had a few grumbles about some of the
features (or the lack of them), and he's fixed every one.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
Now I'm an xemacs user and want that key for switching the buffers in xemacs
so fvwm2 is my window manager again
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle">
There I can define the grabs I want and switch off <em>any</em> of the default ones
if necessary.
</blockQuote>
<blockQuote>
I'm aware that I could switch xemacs to a different key, but then just the
idea that I actually coul find no option to switch that off <EM>at all</EM> was
enough to get me "unfriendly" with kde.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Yep. Give'em their due, though: they certainly have quite a large number of
people enthralled, and a number of the "K suite" apps are rather nice.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
icewm's feature to toggle them is quite nice. Mybe I'll have a look at that
one sometime soon.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<rubbing hands> The subversion of the innocents continues apace. My plan
for world domination will soon be complete...
</blockQuote>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/2"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 2 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Hi Gazzete (Squid)</H3>
<p><strong>From Cybernetica Aduanal
</strong></p>
<p align="right"><strong>Answered By Thomas Adam
<p></strong></p>
<!-- sig -->
<blockQuote>
<PLEASE USE AN APPROPRIATE SUBJECT NEXT TIME, WHICH IS
RELIVANT TO THE QUESTION YOU ARE ASKING>
</blockQuote>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Hi Gazzete:
Hi again, write you for help to work with the squid,
I need to control
access to this program, i have been used the ACL
(access control list)
and put the status in "Deny" to avoid that a list
that i make stay in
of the access to the squid. But this continuos
accessing, what a can
do..?
</STRONG></P>
<blockQuote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
It is strange actually, since in my LWM article next
month, I'll be writing about the use of Squid and
SquidGuard
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle">
........
</blockQuote>
<blockQuote>
How is your proxy server set up?? Are you using an
external filtering program such as SquidGuard to
filter your acl's too???
</blockQuote>
<blockQuote>
If you are just using "<TT>/etc/squid.conf</TT>" then you need
to make sure that you do the following under the
appropriate section:
</blockQuote>
<blockQuote><ol>
<LI>Under the ACL section, you should have defined your
ACL in a format such as this:
<blockquote><code><font color="#000033"><br>acl aclname acltype "file"
</font></code></blockquote>
making sure that "file" contains one URL per line.
<br>This has told squid that the "file" contains websites
to which you either want to allow access to or deny
access to.
<br>But there is one final step to implement this...
<li> Having defined the ACL we now need to tell Squid
what to do with it, thus:
<blockquote><code><font color="#000033"><br>http_access deny "aclname" localhost (or IP address)
</font></code></blockquote>
What the above says is that it will deny access to
"aclname" if the request comes from the localhost (or
a suitable other IP address specified).
</ol>
</blockQuote>
<blockQuote>
I hope this helps to solve your problem.
</blockQuote>
<blockQuote>
Should you get stuck, let me (us) know and we'll see
what we can do
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
--Thomas Adam
</blockQuote>
<!-- end 2 -->
<!-- ............................... -->
<HR WIDTH="40%" ALIGN="center">
<!-- begin 3 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>proxy</H3>
<p><strong>From Dadi
</strong></p>
<p align="right"><strong>Answered By Jim Dennis, Mike Orr
</strong></p>
<P><STRONG>
Hello,
</STRONG></P>
<P><STRONG>
I connect to the web thru a LAN and recently the only way I can do that
is thru a proxy (which is also the gateway) at 8080 port. What do I need
to set up (can I?) to get it work with lynx, ftp and any browser? I can
configure Konqueror and any browser with the proxy and the port, but
I need a general connection (that will work with any program, without
any further seting to the program). If I have an antivirus (let's say)
that updates thru the web, it won't work. I hope I was clear enough.
</STRONG></P>
<P><STRONG>
Thanks in advance, Dadi
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [JimD]
</blockQuote>
<blockQuote>
Under UNIX and Linux most HTTP capable programs (such as lynx, wget
and curl) will honor the value of the http_proxy environment variable.
(curl might require that to be HTTP_PROXY, I'm not sure). So the
following settings to your .*profile/.login or env scripts:
</blockQuote>
<blockquote><code><font color="#000033"><br> http_proxy=http://yourproxy.yourdomain:8080/
<br> HTTP_PROXY="$http_proxy"
<br> export http_proxy HTTP_PROXY
</font></code></blockquote>
<blockQuote>
Should work for most browsers and other HTTP capable programs.
I have no idea whether your anti-virus update package would
honor this environment setting.
</blockQuote>
<blockQuote>
Some sites use transparent proxying. You can read about one
approach to providing this at:
</blockQuote>
<blockQuote><DL><DT>
Transparent Proxying with Squid Mini-HOWTO:
<DD><A HREF="http://www.linuxdoc.org/HOWTO/mini/TransparentProxy.html"
>http://www.linuxdoc.org/HOWTO/mini/TransparentProxy.html</A>
</DL></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
Do set both HTTP_PROXY and http_proxy. Some programs use one and other
programs use the other. I think lynx uses the lower-case version.
</blockQuote>
<blockQuote>
There's also FTP_PROXY and ftp_proxy if your proxy server provides that
(squid does).
</blockQuote>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/3"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 10 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>DHCP to DNS</H3>
<p><strong>From Michael Majetich
</strong></p>
<p align="right"><strong>Answered By Heather Stern
</strong></p>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Hello again!
</STRONG></P>
<P><STRONG>
I posted the question below a week ago.
</STRONG></P>
<blockQuote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I remind you (or inform you, if you've never read the top of our web pages)
that The Answer Gang does not quarantee that we will or can answer you.
</blockQuote>
<blockQuote>
<em>IF</em> any amongst the Gang do, though, we also can't guarantee that it will
be in a timely manner. The longest anyone who HAS gotten an answer waited
was <EM>months</EM> ... I think it might have been over a year ... because back in
issue 36 Jim went through his entire backlog. We weren't the "Gang" yet,
and a full backlog check isn't likely to ever happen again.
</blockQuote>
<blockQuote>
Somehow lucky for you, you got me in a good mood even though you make
this annoying assumption that we'd give you instant feedback. Often that
wouldn't be enough - in fact it would encourage me to shuffle your mail
away, since as an editor here I see ALL the TAG mail, and have to go through
it in much detail later - but I see an opportunity to get some useful data
to everyone else out there too. So you win the "Answer Gang" lotto and I'll
give it a shot. You get a slight roasting for free.
</blockQuote>
<blockQuote>
Sadly for you, I still use Bind8, and so any tech I know to sync dhcp with
bind (very little; DHCP's not my specialty anyway and my own network
presently does use static IPs) might not be as useful. Not that this sort
of lack of knowledge has ever stopped me before
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Can anybody at least point me someplace to get the answer
</STRONG></P>
<blockQuote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
[HOWTO use search engines effectively]
</blockQuote>
<blockQuote>
However in going to the Google! Linux area (<A HREF="http://www.google.com/linux"
>http://www.google.com/linux</A>
and make sure NOT to put the slash at the end) ... giving it the keywords:
<tt>bind9 dhcp</tt>
</blockQuote>
<blockQuote>
...the second item might be useful, as he's discussing doing something
like that and gives some parts as a study example:
<A HREF="http://www.asp.ogi.edu/people/paja/linux/dns"
>http://www.asp.ogi.edu/people/paja/linux/dns</A>
</blockQuote>
<blockQuote>
[FAQ item # infinity]
</blockQuote>
<blockQuote>
Q. I need a fast answer for my problem <foo>, and I didn't find it here.
Time's running out for me! What am I gonna DO?
</blockQuote>
<blockQuote>
A. If you need a timely reply from someone who specifically knows a topic,
I recommend hiring a paid consultant on that topic.
</blockQuote>
<blockQuote>
Generically, you may be able to find them by visiting the Consultants HOWTO
in the LinuxDoc project:
<A HREF="http://www.linuxdoc.org/LDP/lcg/html"
>http://www.linuxdoc.org/LDP/lcg/html</A>
</blockQuote>
<blockQuote>
That howto is maintained by the folks at LinuxPorts; they also have searches
into it at:
<A HREF="http://www.linuxports.com"
>http://www.linuxports.com</A>
</blockQuote>
<blockQuote>
That's pretty decent for finding individuals as well as companies of varying
size, just in case you have any prejudice against mega-consultant houses.
</blockQuote>
<blockQuote>
Specifically, any companies who commercially maintain code related to the
programs you are using, may offer "professional services". It is worth
checking their sites for further documentation first though.
</blockQuote>
<blockQuote>
[Now for the good stuff, answers from the real world, that might be able to
lead you in the right direction. Though the direction you eventually choose
may not be where you were heading when you began.]
</blockQuote>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I have a "Mixed" network of linux and microcrap
so this would be a big help. I would rather not use fixed IPs.
</STRONG></P>
<blockQuote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I can certainly sympathize with that; another possibility is to use
network address translation (sometimes called NAT) and the private, reserved
address ranges. Under RFC 1918 (I used
<A HREF="http://asg.web.cmu.edu/rfc/rfc1918.html"
>http://asg.web.cmu.edu/rfc/rfc1918.html</A> but there are mirrors everywhere)
these ranges are:
</blockQuote>
<blockquote><code><font color="#000033"><br> 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
</font></code></blockquote>
<blockQuote>
readable by the rest of us less netmask-aligned sorts as:
</blockQuote>
<blockquote><code><font color="#000033"><br> 192.168.*.*
</font></code></blockquote>
<blockQuote>
although a lot of people wimp out and only use 192.168.0.* or 192.168.1.*,
you can do some pretty cool stuff by using more of them, or avoid possible
collisions with other nets coming in by using s third octet value other than
1 or 0.
</blockQuote>
<blockquote><code><font color="#000033"><br> 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
</font></code></blockquote>
<blockQuote>
aka
</blockQuote>
<blockquote><code><font color="#000033"><br> 172.[16-31].*.*
</font></code></blockquote>
<blockQuote>
For some reason a lot of people forget about this one entirely.
</blockQuote>
<blockQuote>
and the possibly infamous "10 net":
</blockQuote>
<blockquote><code><font color="#000033"><br> 10.0.0.0 - 10.255.255.255 (10/8 prefix)
</font></code></blockquote>
<blockQuote>
aka
</blockQuote>
<blockquote><code><font color="#000033"><br> 10.*.*.*
</font></code></blockquote>
<blockQuote>
where again, a wide tendency to use 0 or 1 sometimes leads people to
unnecessary collisions.
</blockQuote>
<blockQuote>
That is, you could use static IPs for machines which are not going to move
around a lot, without having to request more from your provider. This does
not negate some good uses for DHCP though:
</blockQuote>
<blockQuote><ol>
<LI>it's much easier to renumber a zillion MSwin boxes if they all just use
dhcp. Note renumbering is far less needed with private addresses. Note
if they all come on at the same time there will be a broadcast storm
while the busy server hands out everybody's addresses.
<LI>You may want laptops to only use a limited range of IP addresses. Your
laptop users may not be up to setting their static IP settings to match
your office, and then away to something else for other sites they'll be
visiting.
</ol></blockQuote>
<blockQuote>
However, you do not really need to tie bind to dhcp unless the machines
need to be able to be addressed in the DNS by name. In other words, if
they are providing services of some sort. Most companies of any notable
size think it's a bad idea to let their individual desktops be addressed
by the outside world anyway. But the <EM>inside</EM> world... well, you could
be using split DNS I suppose. That is, the DNS your inside folk see for
your domain is a more complete version, which is not shown to the outside
world. Outsiders only see the usual obvious things like your web server
a few mail servers, and of course, an outside-world nameserver or three.
</blockQuote>
<P><STRONG><FONT COLOR="#000066"><EM><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
This is my first post. I assume that this question has been asked 1000 times
already, but I can't find a resonable answer on the web.
</EM></FONT></STRONG></P>
<P><STRONG><FONT COLOR="#000066"><EM>
How do you get the dhcpd to update BIND9. I am running <A HREF="http://www.suse.com/">SuSE</A>7.3 with the
servers on the same machine. In dhcpd.conf I've made the ddns-hostname(tried
both name and IP) , domain, update-style(ad-hoc) entries. In Bind I've
allowed update from localnet, and localhost. Nothing happens. both start
with no errors that I can see. What am I missing?
</EM></FONT></STRONG></P>
<P><STRONG>
--
Mike Majetich
</STRONG></P>
<blockQuote>
<DL><DT><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Bind (aka named) and DHCP are maintained by the Internet Software Consortium.
<DD><A HREF="http://www.isc.org"
>http://www.isc.org</A>
</DL>
</blockQuote>
<blockQuote>
They have consulting. They point at a book, "DHCP" by Ted Lemon and Ralph
E. Droms.
</blockQuote>
<blockQuote>
Although I will mention that the <A HREF="http://www.openbsd.org/">OpenBSD</A> folk also heartily recommend
"DNS and Bind" by Paul Albitz and Cricket Liu, as being an excellent intro
to the topic.
</blockQuote>
<blockQuote>
In my personal involvements in the community, I also know that Nominum did
a bunch of coding in the Bind9 project. They're a big commercial creature,
and it so happens they are one of the entities offered at ISC as your
possible consultant:
<A HREF="http://www.nominum.com"
>http://www.nominum.com</A>
</blockQuote>
<blockQuote>
The other one -- if you're in Europe somewhere it's probably closer to you --
is Mind:
<A HREF="http://mind.be"
>http://mind.be</A>
</blockQuote>
<blockQuote>
If you go "the enterprise route" then purchasing your support contract through
ISC supports their efforts, bandwidth use, etc. towards these really rather
cool projects.
</blockQuote>
<blockQuote>
For just general DNS questions I find that the very best web based resource
is "Ask Mr.DNS" - although Acme Byte and Wire was bought up, the new owners
have graciously allowed his to continue doing that, and the archives stay
online:
<A HREF="http://www.acmebw.com/askmrdns"
>http://www.acmebw.com/askmrdns</A>
</blockQuote>
<blockQuote>
Cool, he's got a category just for dynamic updates such as you're asking
after...
</blockQuote>
<blockQuote>
Best of luck, happy holidays. If things work for you, please feel free to
let us know, or even to write up an article for us. If you did that, then
the next time someone asks this sort of thing, we can point them at your
successful efforts
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<!-- end 10 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/4"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 4 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>printing the timestamp of a given file</H3>
<p><strong>From Matthias Arndt
</strong></p>
<p align="right"><strong>Answered By Dan Wilder
</strong></p>
<P><STRONG>
Dear Editor,
</STRONG></P>
<P><STRONG>
I was looking for a solution to extract the timestamp of a file with plain
shell methods. So I browsed through a book and found the command cut.
</STRONG></P>
<blockquote><code><font color="#000033"><br>ls -l <some filename> | cut -b44-55
</font></code></blockquote>
<P><STRONG>
does the job pretty well and simply prints the timestamp of the given file.
It works with the GNU ls. If the output of your ls -l command differs,
you'll need to adjust the positions after the -b switch.
It even works with a list of filenames but this would only print the
timestamps not the corresponding filenames.
</STRONG></P>
<P><STRONG>
cheers,
<br>Matthias
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
However "ls" produces dates in two different formats,
according to the age of the file:
</blockQuote>
<blockquote><pre>ls -l host.conf
-rw-r--r-- 1 root root 26 Sep 25 1995 host.conf
ls -l passwd
-rw-r--r-- 1 root root 1179 Nov 12 17:10 passwd
</pre></blockquote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
The fields are correct in their width. The output should be ok in any case
as long as ls doesn't format the long version with other field widths.
</STRONG></P>
<blockQuote><BLOCKQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
OK, but annoyingly different in its format, according to the age
of the file. That works for human readers, but causes complications
for machine readers.
</BLOCKQuote></blockQuote>
<blockQuote><BLOCKQuote>
I use this sort of thing in web page scripting, where the output
will be parsed by other programs, and it saves me time in writing
those other programs.
</BLOCKQuote></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
A slight elaboration allows consistent formatted output. As a shell
script:
</blockQuote>
<blockquote><code><font color="#000033"><br>#!/bin/sh
<br>date -d "$(/bin/ls -l $1 | cut -b44-55)" +"%b-%d-%Y"
</font></code></blockquote>
<blockQuote>
I use "<TT>/bin/ls</TT>" to evade the likelyhood that "ls" may be an alias.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I guess in most cases ls will not point to a much different binary.
But it is more consistent.
</STRONG></P>
<blockQuote><BLOCKQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Also works for me, who normally makes "ls" an alias for something
or other that changes with time.
</BLOCKQuote></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
</blockQuote>
<blockquote><pre>mylittledatescript host.conf
Sep-25-1995
mylittledatescript passwd
Nov-12-2001
</pre></blockquote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Nifty! The whole script is much better than my quick'n'dirty solution.
But it doesn't work on my machine.
</STRONG></P>
<blockquote><code><font color="#000033"><br>$ ./filedate filedate
<br>date: ung?ltiges Datum Dez 6 22:22'
</font></code></blockquote>
<P><STRONG><CODE>
which translates to "invalid date Dec ...." and stands for an error
</CODE></STRONG></P>
<P><STRONG>
Very strange....
</STRONG></P>
<blockQuote><BLOCKQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Araugh. "date" seems to change what it'll accept as input with
each version ... hopefully it'll stabilize some day.
</BLOCKQuote></blockQuote>
<blockquote><code><font color="#000033"><br>date --version
<br>date (GNU sh-utils) 2.0.11
</font></code></blockquote>
<blockQuote><BLOCKQuote>
My little script will no doubt need modification if your
version of date is different from the above.
</BLOCKQuote></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
The "date" command does a great job of formatting a wide range
of inputs. The "+" string to the date command offers many different
output formats. See "man date".
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I didn't have the idea to pipe the output through date as well because the
simple date field from ls is sufficient for me. This adds new perspectives
however.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
A variation allows printing the Discordian date of a file using "ddate"
which is much fussier about its input than "date":
</blockQuote>
<blockquote><pre>#!/bin/sh
ddate $(date -d "$(/bin/ls -l $1 | cut -b44-55)" +"%d %m %Y")
mylittledatescript passwd
Sweetmorn, The Aftermath 24, 3167 YOLD
</pre></blockquote>
<blockQuote>
"ddate" also has formatting options.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
This notation does not make any sense to me. I don't need it now.
But for someone who likes this sort of output, it might be handy.
</STRONG></P>
<P><STRONG>
many thanks,
<br>Matthias
</STRONG></P>
<blockQuote><BLOCKQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
A distraction, joke or diversion:
<A HREF="http://www.kbuxton.com/discordia"
>http://www.kbuxton.com/discordia</A>
</BLOCKQuote></blockQuote>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/5"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 5 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>SQL on the internet</H3>
<p><strong>From Fabiano Bonin
</strong></p>
<p align="right"><strong>Answered By Jim Dennis
</strong></p>
<P><STRONG>
I have a Linux box connected to internet, and a NT box in my intranet.
</STRONG></P>
<P><STRONG>
My NT box is running SQL server (port 1433) and i want that people outside
can access this port through the Linux port.
</STRONG></P>
<P><STRONG>
Example:
- In the SQL Server client, i put the address of my Linux box (real IP) and
the connection is forwarded to my local NT box.
</STRONG></P>
<P><STRONG>
Is there some way?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
First, please realize that this is a reckless way to expose your
database server. If you accomplish this, you will be wholly dependent
on the SQL server's own robustness for the integrity of your data.
</blockQuote>
<blockQuote>
At first it sounds like you want a port forwarder. With IP Masquerading
it's possible for you to "hide" your NT box on an RFC1918 reserved
IP address (such as any from the 192.168.0.0/16 block of class C nets)
behind a Linux box (which, naturally has both an internal address <EM>and</EM>
some sort of DRIP -- directly routable IP). You'd then configure any of
several port forwarding utilities to simply forward packets that arrive
on the DRIP TCP port 1433 to the internal NT port 1433.
</blockQuote>
<blockQuote>
Normally, the portforwarder would only change the destination IP address.
The source (return) address would remain unmodified. Thus the NT box
would attempt to route response packets as normal. The Linux box,
NATurally would be configured as the default router for the NT box so
it's return packets would then be routed appropriately after they arrive
at the Linux system.
</blockQuote>
<blockQuote>
NATurally, the Linux box must be configured to <em>do</em> routing, usually
with a command like:
</blockQuote>
<blockQuote><BLOCKQuote><code>
'echo 1 > /proc/sys/net/ipv4/ip_forward'
</code></BLOCKQuote></blockQuote>
<blockQuote>
... though many distributions may hide the ugly details by offering
some friendlier interface.
</blockQuote>
<blockQuote>
This all sounds easy enough. However you have also said that
you want to configure the MS SQL Server to simply accept addresses
that appear to be from the Linux gateway. In the example I gave,
the Linux gateway is transparent (more like a router). So the SQLServer
connections "appear" to come from some public address on the Internet.
Arguably this is what most people would prefer, since they can then
configure the SQLServer to selectively allow or deny access to specific
blocks of public IP addresses. (Also, it's easier that way).
</blockQuote>
<blockQuote>
You could write a proxy. This sort of proxy could be written in
PERL, Python, C, Java or just about any language that offers lower-level
access than awk and the shell. It would accept connections on the
DRIP/interface TCP port 1433, initiate new connections on the internal
IP address, and relay the application level data from one to the other
and vice versa. It could be blocking (only one connection at a time)
or non-blocking (handling multiple concurrent connections). If it was
written to be called via inetd, and non-blocking, then one child/proxy
process would be started for each connection (and the code would be
much simpler, though the latency and overhead would be higher). If
it was written to run "standalone" it could use any of several models
of threading and/or forking (process spawning) to handle concurrent
connections, lower latency and (possibly) lower it's memory footprint.
</blockQuote>
<blockQuote>
The disadvantage of writing a proxy is that you might have to know a bit
about the application's protocol. In particular it might be that the
MS SQL Server networking protocol uses additional "ephemeral" or
"negotiated" TCP ports. In other words, there might be traffic on
ports other than the TCP 1433 port. I don't know the details.
</blockQuote>
<blockQuote>
It's possible that a simple "plug-gw" proxy might work (plug-gw was
part of the TIS, Trusted Information Systems, FWTK, firewall toolkit).
TIS was eventually absorbed by McAfee Associates (later Network Assoc.
Inc). Although the sources are freely available *for non-commercial
and internal use*, TIS FWTK is not "free software" (no derivative
works, limitations on re-distribution, consultants are not allowed
to install it for customers, etc).
</blockQuote>
<blockQuote>
However, there are tools <EM>like</EM> plug-gw. The most notable is
probably the Juniper FWTK from Obtuse Systems (<A HREF="http://www.obtuse.com"
>http://www.obtuse.com</A> ).
That is currently distributed under a BSDish license.
</blockQuote>
<blockQuote>
I don't know much about the MS SQL Server or the net/wire protocol
that it uses. However, there is a free (GPL) package by David Muse
called SQLRelay (<A HREF="http://www.firstworks.com/sqlrelay.html"
>http://www.firstworks.com/sqlrelay.html</A> ) which
incoporates quite a bit of knowlege about it and various other
SQL servers. SQL relay is probably overkill for what you want,
but it might give you the information you need, and a small subset
of its features might do the trick for you.
</blockQuote>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/6"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 6 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>pseudo-chroot</H3>
<p><strong>From Faber Fedor
</strong></p>
<p align="right"><strong>Answered By Mike "Iron" Orr, Heather Stern
</strong></p>
<P><STRONG>
Hi guys (and Heather)!
</STRONG></P>
<P><STRONG>
Is there a way to chroot a user such that they can't travel out of heir
home dir but without having to copy a bunch of binaries to their home
dirs?
</STRONG></P>
<P><STRONG>
I'd like to restrict my users to not being able to see into <TT>/bin</TT>, <TT>/etc</TT>,
and most importantly <TT>/home/httpd</TT> without jumping through hoops.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
For <TT>/home/httpd</TT>, set the ownership and permissions so the webserver
process has read access, the person who maintains the content has
read/write access, and nobody else has any access.
</blockQuote>
<blockQuote>
The standard <A HREF="http://www.debian.org/">Debian</A> setup is for the webserver to run as user
'www-data', group 'www-data', and the HTML directory (<TT>/var/www</TT>) is:
</blockQuote>
<blockquote><pre>drwxrwsr-x 11 root www-data 1024 Nov 12 17:25 /var/www/
</pre></blockquote>
<blockQuote>
Unix comes with a catchall user 'nobody', group 'nogroup', for processes
that shouldn't have any privileges. But in that case, you'd either have
to make <TT>/home/httpd</TT> world-readable (which is what you said you don't
want), or owned by 'nobody' or group 'nogroup' (which is bad because
'nobody' should never own any files, although some sysadmins disagree).
</blockQuote>
<blockQuote>
Chroot requires you to copy the binaries, as you say.
</blockQuote>
<blockQuote>
The 'bind' filesystem in recent 2.4 kernels allows you to make a
directory appear to be in two different locations, and the shadow
location <EM>can</EM> be inside a chroot jail. Or so some documentation I saw
a few months ago said. That may or may not be more convenient than
copying binaries and shared libraries.
</blockQuote>
<blockQuote>
Why don't you want your users reading files in <TT>/bin</TT> and <TT>/etc?</TT> Normally
it's only a few senstitive files that need to be protected (those
containing passwords). For each case, you'll need to think of a
strategy that allows the user to do their work without being able to
read the password. For programs, make the file world-executable but
not world-readable (mode -rwxrwx--x).
</blockQuote>
<blockQuote>
To prevent users from listing the files in <TT>/bin</TT> (to discover commands
they didn't know existed), but still allow them to run or list programs
whose names they know, make the directry itself world-executable but not
world-readable (mode -rwxrwx--x).
</blockQuote>
<blockQuote>
To prevent users from reading sensitive files in <TT>/etc</TT>, arrange to have
the program run as a different user or group, and give only that
user/group access to the configuration file(s). But that means making
the program setuid or setgid, so that it will run under its own
permissions rather than the user's, but set[ug]id itself is a security risk.
Relatively speaking, setgid is safer than setuid.
</blockQuote>
<blockQuote>
As an alternative to setuid, you can arrange for the programs to run
via 'sudo' or 'super', two proxy programs that do something like suid
but in a safer and more configurable way.
</blockQuote>
<blockQuote>
It's probably a bad idea to make <TT>/etc</TT> non-world-readable. Numerous
standard programs would break.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather]
Hmm, if most of your users don't need to access the web server, and you
aren't offering home based web access... www.example.org/~username ...
then you <EM>could</EM> simply run the web daemon in a more complete than usual
chroot, and only give members of the webmaster team accounts within its
jail. You'd need more than one ssh running... one per jail, and one for
the top... but it can be very effective.
</blockQuote>
<blockQuote>
Each "child jail" can have much more limited <TT>/etc</TT> contents and a seriously
stripped binaries tree, as well as only having the user accounts that
match its purpose. The top can house your syslog, as there's an easy option
for reading multiple <TT>/dev/log</TT> nodes. I think you get up to 19 extras.
</blockQuote>
<blockQuote>
The trick works especially well if combined with some of the recent
"chroot as a one way trip" patches being offered out there. These nearly
always prevent double chrooting, so you'll need to tweak the trapped
daemons to be ok with not being able to chroot any further. The patches
keep changing too, so I haven't settled on a preferred one yet.
</blockQuote>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/7"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 7 -->
<H3 align="left"><img src="../gx/dennis/bbubble.gif"
height="50" width="60" alt="(!) " border="0"
>Getting volume label for CD</H3>
<p><strong>
Useful scripts and tidbits from Ernesto Hernandez-Novich, Michael Blum,
Richard A. Bray
</strong></p>
<p align="right"><strong>Answered By Ben Okopnik, Mike Ellis
</strong></p>
<blockquote><em><font color="#000066"
>It can be argued that there are some dangers in posting code blocks
which are not actually correct. However, I think the thought processes
revealed in deciding which tricks to use or not while reading data
"closer to the metal" than shells normally go is valuable in and of
itself.
-- Heather</font></em></blockquote>
<P><STRONG>
Greetings from Venezuela.
</STRONG></P>
<P><STRONG>
Someone asked that on a mailing-list I suscribe to; I gave the short-short
answer that happens to be in the CD-ROM HOWTO at www.linuxdoc.org. Later
I answered with code that gives you the label and some more... <g>
</STRONG></P>
<P><STRONG>
Check out and feel free to reproduce the code sample at
</STRONG></P>
<P><STRONG>
<A HREF="http://www.kitiara.org/Lists-Archives/caracas-pm-list-0109/msg00000.html"
>http://www.kitiara.org/Lists-Archives/caracas-pm-list-0109/msg00000.html</A>
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Good stuff. Thank you! I've modified it a tiny bit by adding
</blockQuote>
<blockquote><pre>die "Usage: ", $0 =~ m{([^/]*)$}, " <iso_file|cd_device>\n"
unless @ARGV && -e $ARGV[0];
</pre></blockquote>
<blockQuote>
at the beginning - just in case I forget how to use it - and modified the
"open" to check the return value in case of problems:
</blockQuote>
<blockquote><pre>open CD, $ARGV[0] or die "Can't open $ARGV[0]: $!\n";
</pre></blockquote>
<blockQuote>
It's great otherwise - I've already got it stowed away as "iso9660info" in
my "<TT>/usr/local/bin</TT>".
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ernesto]
If your spanish is rusty, the paragraph above the Perl code reads more
or less like:
</STRONG></P>
<P><STRONG><BLOCKQuote>
'Nevertheless, before someone asks "How can I find out who prepared
the CD? When? For what company? Does it belong to a multiple-CD set?
Which one on the set is it?", and since I know <em>that</em> isn't in the
HOWTO, allow me to present a small fragment of (hopefully useful) code.
BTW, the comments along de Volume Descriptor are nothing but the
appropiate mkisofs options needed to fill the values while creating
the ISO image.'
</BLOCKQuote></STRONG></P>
<P><STRONG>
If that sounds harsh is because someone <em>suggested</em> that I didn't know
jack about the ISO-9660 filesystem and was quoting HOWTO's to get
credit <g> (go figure). And so I made a pun at the end of the message,
but only works in spanish.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Didn't sound harsh to me - I certainly give (and get!) credit for quoting
HOWTOs. The trick is knowing which <em>ones</em> to quote, and which part.
Besides, why does it matter where you got the answer as long as it's right?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ernesto]
BTW, feel free to announce the Venezuelan Linux User's Group mailing
list in future installments of LinuxGazette. It's specially well
suited for spanish-speaking Linux users, who can suscribe to l-linux
emailing <A HREF="mailto:majordomo@linux.org.ve"
>majordomo@linux.org.ve</A>; we have our archives available for
browsing in <A HREF="http://www.linux.org.ve/archivo"
>http://www.linux.org.ve/archivo</A> complete with a searching
form working over three years worth of messages.
</STRONG></P>
<P><STRONG>
Keep up the good work!
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather]
Thanks. We are definitely seeing an increase in spanish requests and
I'm sure our readers will find your list handy.
</blockQuote>
<blockQuote>
----
He certainly wasn't the only reader helping out...
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Michael Blum]
I just came across in your November issue a question on reading the
volume label from a CD. If it's in ISO9660 format, which includes the
Joliet type CD your reader was burning, it's actually pretty easy to
write a command line tool to read the label.
</STRONG></P>
<P><STRONG>
Here's a bash shell script:
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/blum-rd_label.bash.txt">blum-rd_label.bash.txt</a></tt></p>
<P><STRONG>
Note that the parameter is the device file for the CD, e.g. <TT>/dev/hdc</TT>,
and that the CD does not have to be mounted. You need to be 'root' to
run the script.
</STRONG></P>
<P><STRONG>
Here's a C program to do the same thing. I've used this program under
both Linux & IBM's AIX.
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/blum-rd_label.c.txt">blum-rd_label.c.txt</a></tt></p>
<P><STRONG>
The only real advantage of the C program is that when compiled the
executable can be made suid to root, allowing you to run the program as
a non-root user. Just as with the shell script the parameter is the
device file for the CD, and the CD does not have to be mounted.
</STRONG></P>
<P><STRONG>
Hope you find this useful! Thanks for your publication - I've learned a
lot from it over the years.
</STRONG></P>
<HR width="10%" align="left"><P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Richard A. Bray]
I finally broke down and read the iso9660 format instead of sleeping the
other night.
</STRONG></P>
<P><STRONG>
Here are the basic commands to get the data. It will clean it up later to
make sure there is a disk in the drive first, and that no errors have
occurred. It should run dd only once to load the CD header into a file.
Then report the results out of that.
</STRONG></P>
<P><STRONG>
I don't know what formats will be compatible with this, but it seemed to
work fine on all of my Windoze CDs and even my <A HREF="http://www.redhat.com/">Red Hat</A> install CD. I guess
I will have to check and make sure that it will work with UDF format someday.
</STRONG></P>
<blockquote><code><font color="#000033"><br>[root@winserver bin]# cat cdinfo
</font></code></blockquote>
<p align="center">See attached <tt><a href="misc/tag/bray-cdinfo.sh.txt">bray-cdinfo.sh.txt</a></tt></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<wince> This is not a good idea. You're hitting the hardware device over
and over when you could do it all in one read:
</blockQuote>
<blockquote><pre>#!/bin/sh
# Make sure that a block device was specified
[ -b "$1" ] && { printf "Usage: ${0##*/} <cd_device>\n"; }
# Read the entire header
data=`dd if=$1 ibs=863 skip=32769 count=1 2>/dev/null`
</pre></blockquote>
<blockQuote>
Now you can let your CD go back to sleep, and extract whatever pieces you
wanted from the variable:
</blockQuote>
<blockquote><pre>echo "FSTYPE: ${data:0:5}"
echo "OSTYPE: ${data:6:32}"
...
...
</pre></blockquote>
<blockQuote>
This also lets you cut out the temporary variables.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Ben's suggestions got me wondering - did all those clever tricks really
work? Unfortunately not, because the CD header format includes a lot of
NUL characters (ASCII 0) which bash treats as "end of variable".
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
</blockQuote>
<blockquote><code><font color="#000033"><br>ben@Baldur:~$ a="`dd if=/dev/hdc ibs=1 skip=32808 count=863 2>/dev/null`"
<br>ben@Baldur:~$ expr length "$a"
<br>863
</font></code></blockquote>
<blockQuote>
Works for me, Mike. The problem may be that you're not quoting the string -
or, quoting the individual chunks (<em>not</em> quoting them is what I use to get
rid of the extra whitespace.) I didn't experiment with this all that much,
but I tested the solution that I suggested, at least for the first few
variables:
</blockQuote>
<blockquote><pre>#!/bin/sh
data="`dd if=/dev/hdc ibs=1024 skip=32 count=1 2>/dev/null`"
echo "FSTYPE :" ${data:1:5}
echo "OSTYPE :" ${data:8:32}
echo "CDNAME :" ${data:40:32}
</pre></blockquote>
<blockQuote>
provides the output:
</blockQuote>
<blockquote><pre>ben@Baldur:~$ ./cdinf
FSTYPE : CD00
OSTYPE : LINUX
CDNAME : LNX
</pre></blockquote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Here's my version of the CD volume label extractor... the handling of non-UTC
timezones is wrong, but otherwise it seems to work OK...
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/ellis-cdlabel_extractor.bash.txt">ellis-cdlabel_extractor.bash.txt</a></tt></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<gazes admiringly at the data = dd stuff piped through tr line>
That <em>is</em> a cute trick, though. <stuffing it away in my own toolbox>
Thanks!
</blockQuote>
<blockQuote>
An even cheaper way to fold that whitespace: don't quote the variable.
"bash" will swallow anything that is defined as the first two characters
of $IFS - and that happens to be spaces and tabs.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
One problem with eating spaces. I need those for the offsets to work.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
That's why you only do that when printing out the individual variables, not
for the entire string. The program flow is "get string -> grab chunks via
offsets -> print w/o spaces."
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Now all I am missing is the cd serial number that Windoze generates. I
can't seem to find how to compute that. I may just checksum the first 32K
of the drive and use that.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I seem to vaguely remember Windows showing some weird number. Are you sure
it's not stored in the CD header itself? Note that I'm not saying that it
is; I'm just wondering.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
OK. Here is my current version of the script. I added error checking to
properly return errors if no media or of wrong type.
</STRONG></P>
<P><STRONG>
Thanks to Ben and Mike.
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/bray-smart_cd_labelreader.sh.txt">bray-smart_cd_labelreader.sh.txt</a></tt></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
</blockQuote>
<blockQuote><CODE>
dd if=$1 bs 1 skip=32768 count 2048 >/tmp/cdinfo$$ 2>/dev/null
</CODE></blockQuote>
<blockQuote><CODE>
[ ... ]
</CODE></blockQuote>
<blockQuote><CODE>
data=`cat /tmp/cdinfo$$ |tr '[\\000-\\037]' '.*'`
</CODE></blockQuote>
<blockQuote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> []
Why'd you go and do that?
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
The file creation is completely unnecessary,
and will leave junk in "<TT>/tmp</TT>" if your script crashes for any reason. If
you want to use that mechanism, simply do it on the fly, like Mike did:
</blockQuote>
<blockquote><code><font color="#000033"><br>data=`dd if=$1 bs=1024 skip=32 count=1 2>/dev/null|tr '[\000-\037]' '.'`
</font></code></blockquote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Well, that is because the pipe to tr will always set $? to 0. Then I
wouldn't be able to test for failure of dd. Sorry, but that's the rub.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
[ -z "$data" ] && { printf "Oops, read failed.\n"; exit; }
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
I think this would be even better. What we <em>really</em> care about is that
we have data in $data, right? Best to test the end result - although
intermediate tests, in addition to the final one, certainly don't hurt.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
If I
want to use tr to trap for weird characters, then I will have to store the
data somewhere. I suppose it is possible for it to crash before reaching
the rm -f <TT>/tmp/cdinfo$$</TT> line but, if that does happen I probably have
something seriously wrong with tr.
</STRONG></P>
<P><STRONG>
I suppose I could stuff the data in a variable from dd and then echo it to
tr, that would work wouldn't it?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Well, Mike's contention was that you would lose anything past a null when
just assigning it that way. I didn't do any rigorous testing, but I'm
willing to believe - "\0"s being the way strings are normally terminated.
The one header that I tested didn't chop off short, but it may not have
contained any nulls.
</blockQuote>
<blockQuote>
BTW, Mike - that "tr" function could stand a bit of twiddling.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
The extra
'\'s in your "first list" convert backslashes to '.'s; the '*' in your
"second list", as the second character, has the "truncated second list"
effect - i.e., all matches other than backslashes will be converted to
asterisks. That's probably not what you wanted.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Well spotted! Gets that's what you get for lazy quoting (well, it doesn't
<EM>usually</EM> cause any nasty problems!)
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Thanks! Just a matter of clean code. Although printing out an unquoted
"$data" has a <em>very</em> interesting result: it shows the header with all the
control chars converted to stars... and immediately followed by a listing
of the current dir. Why is only the last asterisk interpolated? <shrug>
These are the questions that try men's souls.
</blockQuote>
<blockQuote>
I usually try to make sure that my code doesn't do anything that I
didn't tell it to do, like hanging out in seedy bars with suspicious
characters and drinking till all hours. Gotta watch that stuff, or - bam! -
it'll grab your credit card and be buying drinks all around.
</blockQuote>
<blockQuote>
As well, since all of the data is in the first K, it's not necessary to
grab a 2K block; and since the numbers divide neatly by 1024, it's more
effective to have "dd" reading it a K - rather than a byte - at a time.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Also a good point, although I'd go one stage further since the CD block
size is standardised as 2K, it's probably most clear (and quickest...?)
to use
</blockQuote>
<blockquote><code><font color="#000033"><br>data=`dd if=$1 bs=2048 skip=16 count=1 2>/dev/null|tr '[\000-\037]' '.'`
</font></code></blockquote>
<blockQuote>
although I concede that it does read a lot more than is strictly necessary.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Yes... The drivers "probably" optimize the command, but it would be
better to use the correct size blocks.
</STRONG></P>
<P><STRONG>
Thanks for the tr tips. I've never used tr before. I guess I'll have to
actually read the man page.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<grin> "When you have learned to snatch the error code from the trap frame,
grasshoppa, it will be time for you to leave." Good luck with your coding.
</blockQuote>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/8"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 8 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>linux book</H3>
<p><strong>From P.Sreekanth Reddy
</strong></p>
<p align="right"><strong>Answered By Thomas Adam, Karl-Heinz Herrmann, Mike "Iron" Orr, Chuck Peters
</strong></p>
<P><STRONG>
Dear sir,
</STRONG></P>
<P><STRONG>
I am new for Linux operating system in fact i am new to computer field. I know about windows. Please suggest me one good, basic, which eaches easily about linux operating system and a book for operating system concepts.
</STRONG></P>
<P><STRONG>
thank you, sir
</STRONG></P>
<P><STRONG>
P.Sreekanth Reddy
</STRONG></P>
<P><STRONG>
India.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas Adam]
Hello,
</blockQuote>
<blockQuote>
This is a very common question among people new to
Linux. But this question is very broad. There is a
whole plethora of books to choose from.
</blockQuote>
<blockQuote>
The one which got me started was called "Running
Linux" which is published by the leading book
publishers of Linux material --- "O'Reilly". Take a
look at the following website:
</blockQuote>
<blockQuote><BLOCKQuote>
<A HREF="http://www.oreilly.com/catalog/runux3"
>http://www.oreilly.com/catalog/runux3</A>
</BLOCKQuote></blockQuote>
<blockQuote>
To give you more information.
</blockQuote>
<blockQuote>
If you could perhaps be a little more specific as to
what you think you will be using Linux for, then maybe
we here at TAG can tailor our answers to suit your
needs.
</blockQuote>
<blockQuote>
In the meantime, I hope that helps,
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
this is a rather broad question. Since you say you've some windows experience
I assume you've got some computer and you probably need "Linux" and some idea
what to do with it.
</blockQuote>
<blockQuote>
Do you already have a Linux distribution? Did you already install it and want
help with "what now"? At what step do you need help?
</blockQuote>
<blockQuote>
There are lots of books on Unix in general and Linux specifically. If you are
looking for downloadable and/or online versions have a look at:
</blockQuote>
<blockQuote><BLOCKQuote>
<A HREF="http://www.linuxdoc.org/guides.html"
>http://www.linuxdoc.org/guides.html</A>
</BLOCKQuote></blockQuote>
<blockQuote>
especially Linux administrators guide. That one helped me a lot at the
beginning.
</blockQuote>
<blockQuote>
There are several companies or groups putting together packs (distributions)
of kernel, OS programs and application programs which can be easily
installed.
Some have their own manuals (printed or online) for their specific setup.
</blockQuote>
<blockQuote>
Tell us more and we could help you more on your specific problem....
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Chuck]
A basic book designed to help Windows users become productive on Linux
ASAP is Everyday Linux. Its available online at <A HREF="http://EverydayLinux.com"
>http://EverydayLinux.com</A>.
</blockQuote>
<blockQuote>
I should note I am a bit biased as I know the authors well and I own the
domain.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather]
One of my local LUGs received a copy of "A 12 Step Guide To Curing Your
Windows Addiction". It was given away as a door prize at my local LUG,
but I think it was pretty decent. Since you say you know about Windows,
it may help more than some books which might assume you have a bit more
computer knowledge already.
</blockQuote>
<blockQuote>
Way back in the dusty ages when I didn't know UNIX, I learned most of
the good stuff to get me up to speed in Mark Sobell's books. "A
Practical Guide To The Linux System" should help you get a little more
hands-on experience.
</blockQuote>
<blockQuote>
Of course, Jim did co-author a book, "Linux System Administration"
pubbed under the New Riders imprint... it's split half and half, theory
and practical matters, but as some of the intended audience are execs
and other managerial sorts who may not deal with the nuts and bolts,
maybe it will help you too.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
Go to the new Linux Gazette Knowledge Base
<A HREF="../tag/kb.html"
>http://www.linuxgazette.com/tag/kb.html</A>
and scroll down to "How can I get help on Linux?" There are a few books
listed.
</blockQuote>
<blockQuote>
Jim Dennis has also mentioned books in his Answer Gang answers, and the
"Greetings from Heather Stern" entry (the first entry in each The Answer
Gang column) also occasionally mentions books. I would point you to a
specific URL, but searching for "linux books jim dennis" brings up 24 pages
of entries in the search engine, so it would take a while to evaluate all
the pages.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
You know - I'm just <EM>loving</EM> this. This is exactly how I foresaw this
resource being used, a simple place we could point querents.
</blockQuote>
<blockQuote>
Major-league case of warmfuzzies here, as I go back to pounding the topic
list...
</blockQuote>
<!-- end 8 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/9"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 9 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>random crashes - how to prepare bug report?</H3>
<p><strong>From N.P.Strickland
</strong></p>
<p align="right"><strong>Answered By Thomas Adam, Mike Ellis, Ben Okopnik, Huibert Alblas
</strong></p>
<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
My linux machine is crashing randomly once every couple of days - it
freezes up and will not respond to anything (including ctrl-alt-del,
or ping from another machine) except the on/off switch. The load on
the machine is light, and the work it is doing is not particularly
unusual.
</STRONG></P>
<P><STRONG>
1) Can anyone suggest how I could gather useful information about what is
going on?
</STRONG></P>
<P><STRONG>
I put a line like this in <TT>/etc/syslog.conf:</TT>
</STRONG></P>
<blockquote><code><font color="#000033"><br> *.debug;mail.none;authpriv.none;cron.none /var/log/messages
</font></code></blockquote>
<P><STRONG>
As far as I understand it, this should get all possible debugging
information out of syslogd, although I'm not completely clear whether
any more could be squeezed out of klogd. In any case, I'm not getting
any messages around the time of a crash. I've also turned on all the
logging options that I can find in the processes that I am running,
without any helpful effect.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
Have you added any memory to your machine recently??
This has been known to "crash" machines randomly.
</blockQuote>
<blockQuote>
What programs do you have running on default?? Perhaps
you could send me (us) an output of the "pstree"
command so that we can see which process is linked to
what.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
Quite right, Thomas. If you have two or more memory modules (DIMMs
probably) in your machine, try removing one of them if you can. If the
fault goes appears to go away, try putting the module back in and see if
the fault re-appears. If the fault never goes away, replace the first
module and removing another and try again.
</blockQuote>
<blockQuote>
As you're running a 2.4 kernel, make sure you have plenty of swap. Sadly
the 2.4 kernels aren't as good as the older 2.2 and making maximum use of
swap, with the result that you are now strongly recommended to...
look at <A HREF="../issue62/lg_tips62.html#tips/12"
>http://www.linuxgazette.com/issue62/lg_tips62.html#tips/12</A> if you
need help. I haven't heard tales of this causing random lock-ups, but you
never know!
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Halb]
Yes, the early 2.4 kernels had 'some' trouble with swap space.
But at the time of 2.4.9 a completely new ( build from scratch ) VM was
introduced by Andrea Arcangeli, and incorperated by Linus since 2.4.10.
</blockQuote>
<blockQuote><DL><DT>
You can read a good story on:
<DD><A HREF="http://www.byte.com/documents/s=1436/byt20011024s0002/1029_moshe.html"
>http://www.byte.com/documents/s=1436/byt20011024s0002/1029_moshe.html</A>
</DL></blockQuote>
<blockQuote>
It is an interresting, not too long story.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [JimD]
</blockQuote>
<blockQuote>
However, if you're using the new tmpfs, it might be wise to
err on the side of generosity when allocating swap space. Using
tmpfs, your <TT>/tmp</TT> (and/or <TT>/var/tmp</TT> or other designated directories)
can be sharing space with your swap (kernel VM paging).
</blockQuote>
<blockQuote>
Still, one or two swap partitions of 127Mb should be plenty for
most situations. I still like to keep my swap partitions smaller
than 127Mb (the historical limit was 128, but cylinder boundaries
usually round "up"). I also recommend putting one swap partition
on each physical drive (spindle) to allow the kernel to balance
the load across them (small performance gain, but neglible cost
on modern hard disks).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
2) If I can get any usable information about the problem, does anyone
know where I should send it?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
Here, to both me and the rest of TAG.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
If I knew that it was a kernel problem, I'd try the linux-kernel
mailing list. But that looks pretty intimidating, so I'd want to be
sure I knew what I was talking about first! Also, I guess that some
kind of hardware problem is more likely.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
I'm still edging my bets on memory...if it is a Kernel
problem then you could try to re-compile it using the
latest stable release.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I'm using <A HREF="http://www.redhat.com/">Red Hat</A> 7.2, which includes the 2.4.7-10 kernel, on a
machine with an Intel Pentium 4 CPU running at 1.5 GHz and 512M of
RAM. Crashes occur even when I am not running X and no users are
logged on. The main process that I am running is the Jakarta Tomcat
web server, which runs a Java servlet, which runs the symbolic
mathematics program Maple as an external process. As far as I can
tell from the logs, when the last crash occurred, there had been no
request to the web server for some time. It's just possible that a
request triggered the crash, which prevented the request from being
logged, but I doubt it.
</STRONG></P>
<P><STRONG>
Thanks in advance for any suggestions.
</STRONG></P>
<P><STRONG>
Neil Strickland
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
I might also suggest that you run the "strace"
commands on processes you think might be crashing.
That will then tell you where and how...if nothing
else.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I'm pretty much of the same mind as Thomas on this one; Linux is pretty
much bullet-proof, what tends to cause crashes of this sort is hardware -
and that critical path doesn't include too many things, particularly when
the key word is "random". Memory would be the first thing I'd suspect (and
would test by replacement); the hard drive would be the second. I've
<em>heard</em> of wonky motherboards causing problems, but have never experienced
it myself. I've seen a power supply cause funky behavior before - even
though that was on a non-Linux system, it would be much the same - and...
that's pretty much it.
</blockQuote>
<blockQuote>
"strace", in my opinion, is not something you can run on a production
system. It's great for troubleshooting, but running a web server under it?
I just tried running "thttpd" under it, and it took approximately 30
seconds just to connect to the localhost - and about 15 more to cd into a
directory. Not feasible.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
Hum, perhaps I wasn;t too clear on that point. What I
meant was that he should run strace on only one
process which he thinks <EM>might</EM> be causing the crash.
Hence the reason why I initially asked for his
"pstree" output.
</blockQuote>
<blockQuote>
But I agree, strace is not that good when trying to
analyse a "labour intensive" program such as a
webserver, but then I fail to see the need as to why
one would want to run "strace" on such a program
anyway....afterall, <A HREF="http://www.apache.org/">Apache</A> is stable enough
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle">
</blockQuote>
<HR width="10%" align="left"><P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Thanks again for all your help.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike & Ben]
You're welcome.
</blockQuote>
<P><STRONG><FONT COLOR="#000066"><EM><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Memory would be the first thing I'd suspect (and would test by replacement);
</EM></FONT></STRONG></P>
<P><STRONG>
I downloaded memtest86 (from <A HREF="http://www.teresaudio.com/memtest86"
>http://www.teresaudio.com/memtest86</A>) and
ran through its default tests twice (that took about 40 minutes - I
haven't yet tried the additional tests, which are supposed to take
four or five hours, altogether). Nothing came up. Do you think
that's reliable, or would you test by replacement anyway?
</STRONG></P>
<blockQuote><CODE>
.
</CODE></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
The problem may be an intermittent fault: if the tests take 40 minutes and
the machine usually runs for (say) 4 days, you've effectively given it
less than a 1% chance of finding the problem [40/(4*24*60)]. I'd still
seriously consider a test by replacement and/or removal of DIMMs.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
My rule of memory testing, for many years now, has been "a minimum of 24
hours - 48 is better - and hit it with freeze spray at the end." For a
system that needs to be up and running, however, "shotgunning" (wholesale
replacement of suspect hardware) is what offers the highest chance of quick
resolution.
</blockQuote>
<P><STRONG><FONT COLOR="#000066"><EM><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
the hard drive would be the second
</EM></FONT></STRONG></P>
<P><STRONG><FONT COLOR="#000066"><EM>
I've seen a power supply cause funky behavior before
</EM></FONT></STRONG></P>
<P><STRONG>
These don't sound like easy things to test
<IMG SRC="../gx/dennis/unsmily.gif" ALT=":-("
height="24" width="20" align="middle">
. Do you have any
suggestions?
</STRONG></P>
<blockQuote><CODE>
.
</CODE></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
They aren't, sadly. Testing by replacement is really the best option for
these sorts of problems, but beware, we had a machine here with a dodgy
PSU recently which cost us a lot more than a new PSU )-: By the time we'd
tracked down the problem we had...
</blockQuote>
<blockQuote><ul>
<LI>three suspect hard-drives
<LI>two suspect 128M DIMMs
<LI>two suspect motherboards
<LI>two suspect PIII processors
<LI>one suspect network card
<LI>one suspect video card
<LI>one suspect CD-ROM drive
<LI>one suspect floppy drive
<LI>one suspect keyboard
<LI>one suspect mouse
<LI>and a partridge in a pear tree
</ul></blockQuote>
<blockQuote>
The whole lot had to be disposed of because we had used the faulty PSU with
them, and the fault was that it generated occasional over-volt spikes
during power-up. These potentially weakened any or all of the other
components in the system rendering them unsuitable for mission-critical
applications (we actually purchased a cheap case, marked all the bits as
suspect and built them into a gash machine for playing with).
</blockQuote>
<blockQuote>
In your case, try cloning the hard-drive and replacing that. You can use
dd to clone the drive - dd if=/dev/current_hard_disc of=/dev/new_hard_disc
bs=4096 - assuming the hard-drives are the same size. Don't use the
partitions, though - <TT>/dev/hda</TT> and <TT>/dev/hdc</TT> will work, <TT>/dev/hda1</TT> and
<TT>/dev/hdc1</TT> won't since the partition table and MBR won't be copied. Using
the raw devices will also copy any other partitions if you've got them.
</blockQuote>
<blockQuote>
<Ding/> One bright idea that has just occurred to me - are you using any
external devices? If, for example, you've got an external SCSI scanner
on the same chain as your internal SCSI discs, a dodgy connection or
termination could potentially cause random crashes. It might also be
worthwhile checking any USB or fireware devices you've got connected. I
doubt serial or parallel devices would cause a problem, but it might be
worth checking just in case. Internal connections are also suspect - a
CD-ROM drive on the same IDE chain as your boot disc might cause
problems: you might even like to remove it completely if you don't use it
often. Any PCI cards are also candidates for suspicion - make sure they're
all plugged in fully.
</blockQuote>
<blockQuote>
Let us know how you get on!
</blockQuote>
<blockQuote>
Cheers,
</blockQuote>
<blockQuote>
Mike.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Unfortunately, all my best suggestions come down to the above two. I used
to look for noise in power supply output with an oscilloscope -
interestingly enough, it was a fairly reliable method of sussing out the
problematic ones - but I suspect that it's not a common skill today.
There are a number of HDD testers out there, all hiding behind the
innocuous guise of disk performance measurement tools... but
Professor Moriarty is not fooled.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
Seriously, if running one of those (e.g., "bonnie++") for a few hours
doesn't make your HDD fall over and lie there twitching, you're probably
all right on that score.
</blockQuote>
<!-- end 9 -->
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<H5 align="center">This page edited and maintained by the Editors
of <I>Linux Gazette</I>
<a href="http://www.linuxgazette.com/copying.html"
>Copyright ©</a> 2002
<BR>Published in issue 74 of <I>Linux Gazette</I> January 2002</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<!-- *** END copyright *** -->
<H4 ALIGN="center">"Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<HR>
<center>
<table cellpadding=7><tr><td>
<IMG SRC="../gx/bytes.gif" border=1 ALT="News Bytes">
</td><td>
<H3>Contents:</H3>
<ul>
<li><a HREF="#leg">Legislation and More Legislation</a>
<li><a HREF="#links">Linux Links</a>
<li><a HREF="#conferences">Conferences and Events</a>
<li><a HREF="#general">News in General</a>
<li><a HREF="#distro">Distro News</A>
<li><a HREF="#commercial">Software and Product News</a>
</ul>
</td></tr></table>
<STRONG>Selected and formatted by <A HREF="mailto:michael.conry@softhome.net">Michael Conry</A></STRONG>
</center>
<P> Submitters, send your News Bytes items in
<FONT SIZE="+2"><STRONG>PLAIN TEXT</STRONG></FONT>
format. Other formats may be rejected without reading. You have been
warned! A one- or two-paragraph summary plus URL gets you a better
announcement than an entire press release.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<font color="green">
January 2002 <I>Linux Journal</I>
</font>
</H3>
<IMG ALT="[issue 93 cover image]" SRC="misc/bytes/lj-cover93.png" WIDTH=200 HEIGHT=268
ALIGN="left" HSPACE="20">
The December issue of <A HREF="http://www.linuxjournal.com/"><I>Linux
Journal</I></A> is on newsstands now.
This issue focuses on networking, has an interview with
Costa Rica's Minister of Technology (they use Linux!), and has that great
picture of Linux-on-a-wristwatch on the cover (it's a prototype). Click
<A HREF="http://www.linuxjournal.com/modules.php?op=modload&name=NS-lj-issues/issue93&file=index">here</A>
to view the table of contents, or
<A HREF="http://www.linuxjournal.com/subscribe/">here</A>
to subscribe.
<P>
<FONT COLOR="green">All articles through December 1999 are available for
public reading at
<A HREF="http://www.linuxjournal.com/magazine.php">http://www.linuxjournal.com/magazine.php</A></FONT>.
Recent articles are available on-line for subscribers only at
<A HREF="http://interactive.linuxjournal.com">http://interactive.linuxjournal.com/</A>.
<BR CLEAR="all">
<a name="leg"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="green">Legislation and More Legislation</font></H3></center>
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Sklyarov's Charges Dropped
</FONT>
</H3>
<a href="http://www.eff.org/Cases/US_v_Sklyarov/20011213_eff_pr.html">
Good news</a>
for all those following the story of Russian programmer Dmitry Sklyarov.
It looks like Dmitry will not have to face charges under the DMCA
for speaking publicly in the US about software
to circumvent Adobe e-book encryption. The press release from the US
Attorney's Office can be found
<a href="http://linuxtoday.com/news_story.php3?ltsn=2001-12-14-001-20-PS">
here</a>. Basically, the
<a href="http://www.usdoj.gov/usao/can/press/assets/applets/2001_12_13_sklyarov.pdf">
agreement</a>
means that charges against Dmitry will be postponed for one year, or until
the case against
<a href="http://www.elcomsoft.com/">
Elcomsoft</a> (Dmitry's employers during the development of the contested
technology) concludes, whichever is longer. During that time, Dmitry can
return to Russia (as he did, happy news for both himself and his family). He will be
"prohibited from violating any laws" (aren't we all!), and will have to
testify truthfully in the US case against Elcomsoft (to do otherwise would
be perjury). If he fulfills these obligations, then at the end of the
deferment the charges will be dropped permanently.
<p>
Although this development is welcome, and has made headlines throughout the
computer press (e.g.
<a href="http://www.theregister.co.uk/content/55/23403.html">
in The Register</a>,
<a href="http://www.wired.com/news/politics/0,1283,49122,00.html">
in Wired</a>
and
<a href="http://www.planetpdf.com/mainpage.asp?WebPageID=1794">
in Planet PDF</a>
) as well as in the mainstream press
(e.g.
<a href="http://www.usatoday.com/life/cyber/tech/2001/12/13/russian-programmer.htm">
in USA Today</a>), this story is far from over.
Richard Stallman was quick to
<a href="http://www.lwn.net/daily/rms-dmitry.php3">
comment</a>
on the initial news (which was somewhat confused: it appeared the charges
had been unconditionally dropped), cautioning that the DMCA was still a
real threat to freedom. He also made a renewed call for active resistance
and protest against the DMCA and its supporters. Later, under the
impression that a plea bargain had been made, Stallman was quite
<a href="http://www.lwn.net/daily/rms-dmitry2.php3">
critical</a>
of Dmitry, accusing him as a defector. Following clarifications Stallman
<a href="http://www.lwn.net/daily/rms-dmitry2.php3">
apologised</a>
for earlier comments (which many felt were unwarranted, though well
intentioned).
Indeed, there seemed to be generally quite a lot of confusion surrounding
the whole affair, apparently due to som unclear issuings from the State
Attorney's Office.
Some clarifying statements from Dmitry, his employer, and
the defence team can be found
<a href="http://www.oreillynet.com/cs/weblog/view/wlg/983">
here</a>.
<p>
At the end of the whole episode, what has come out as the
most important point is that the DMCA is still there. The US DOJ case
against Elcomsoft should be a crucial test of the legality and
applicability of this law, but as RMS keeps pointing out, it is important
to follow every avenue and opportunity available in the fight for freedom
(hopefully that is not too melodramatic!).
The Electronic Frontier Foundation have an excellent page of
<a href="http://www.eff.org/Cases/US_v_Sklyarov/">
resources</a> on the Sklyarov case (and other DMCA related matters).
Be sure to keep informed.
<hr noshade width="20%">
<P>
In other news, reported by The Register, it appears that
copyright-enforcement happy Adobe is in
<a href="http://www.theregister.co.uk/content/4/23454.html">
hot water</a>
itself. A judge issued an injunction for Adobe to stop selling InDesign, its
Quark-killer program,
pending trial. Trio Systems has sued Adobe, claiming Adobe illegally used Trio's
code in InDesign.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">MS Links
</FONT>
</H3>
<P> Christian Loweth mailed us a link to his website:
<a href="http://www.geocities.com/cloweth/">
The Microsoft Collection</a>.
This site contains quotes and links from many sources which address
Microsoft's role in respect to monopoly activities, consumer privacy, legal
issues, internet, systems interoperability, web standards, corporate ethics
and more. This is probably of some interest given the legal negotiations
Microsoft is involved in at the moment.
<P>
The recent Microsoft Antitrust settlement is still a bone of contention.
Nine dissenting states and certain industry groupings are
<a href="http://www.internetnews.com/bus-news/article/0,,3_936241,00.html">
holding out</a>
for more punitive conditions, such as forcing MS to opensource Internet
Explorer. Among the involved industry figures is Red Hat CEO Matthew
Szulik who
<a href="http://judiciary.senate.gov/te121201f-szulik.htm">
recently testified</a>
before the United States Senate Judiciary Committee on the settlement.
He argued that the 9 dissident states' remedies were more appropriate and
potentially effective than the current arrangement. The Register has given a
<a href="http://www.theregister.co.uk/content/4/23280.html">
lengthy analysis</a>
of the various remedies, but as John Lettice vividly wrote, the dissenting
states `...probably <i>are</i> just flinging themselves in front of a
speeding train'.
Certainly, Microsoft is
<a href="http://www.theregister.co.uk/content/4/23380.html">
pulling no punches</a>
in defending the position of the original settlement.
<p>
An interesting commentary on the proposed settlement can be found in
Lawrence Lessig's
<a href="http://judiciary.senate.gov/te121201f-lessig.htm">
testimony</a>
before the Senate Committee hearing. Lessig's main focus is on the
inadequate enforcement provisions. He also makes the point that Microsoft
is not the only enemy of competition out there (very true) and he even has
some kind words on the .NET strategy. This is worth reading.
<p>
There was also a Slashdot
<a href="http://slashdot.org/article.pl?sid=01/12/14/1547232&mode=nested">
discussion</a>
of these issues which included a useful link to some Linuxplanet
<a href="http://www.linuxplanet.com/linuxplanet/opinions/3952/1/">
advice</a>
for those who want to register their opinion on this matter (there is a 60
day comment period from Nov. 28).
<hr noshade width="20%">
<P>
A more recent cause of concern regarding Microsoft's intentions is the
<a href="http://cryptome.org/ms-drm-os.htm">
patent claim</a> [cryptome.org]
that it has been granted for a `Digital rights management operating
system'. This is an operating system which has certain features to make it
easier to protect `rights-managed data'. For example (taken from patent
abstract) if you are running a trusted program using such data, no
untrusted programs will be allowed to run. There are various other features
along the same general idea.
This story was
<a href="http://www.theregister.co.uk/content/4/23387.html">
reported</a>
by The Register, following the Cryptome.org publication of the patent
claim. Operation of the scheme would require a database of the particulars
of users PC's:
<blockquote>
"the content provider would have to maintain a registry of each
subscriber's DRMOS identity or delegate that function to a trusted third
party,"
</blockquote>
<P>
Seth Johnson of the
<a href="http://realmeasures.dyndns.org/C-FIT/">
Committee for Independent Technology</a> (C-FIT) posted a very bleak
<a href="http://www.aful.org/pipermail/patents/2001-December/002562.html">
assessment</a>
of the situation to the
<a href="http://www.aful.org/">aful.org</a> software patents
<a href="http://www.aful.org/mailman/listinfo/patents">
mailing list</a>
(also
<a href="http://realmeasures.dyndns.org/C-FIT/Release/MS%20DRM%20OS.htm">
here</a>). The MS DRMOS is seen as a large part in an overall movement to
deprive the public of the power to work with and control information, with
the ultimate aim of rendering them nothing more than passive consumers.
This contribution builds on an earlier (and also pessimistic)
<a href="http://davenet.userland.com/2001/11/06/youreFreeToThink">
article</a> by David Winer which speculated on the nature of the deal
done between Microsoft and the DOJ.
Certainly, a patent on a DRMOS is worrying, in particular with legislation
like the SSSCA
<a href="http://www.darwinmag.com/read/swiftkick/column.html?ArticleID=206">
doing the rounds</a>
which could make such technology mandatory.
<a name="links"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="green">Linux Links</font></H3></center>
<A HREF="http://www.linuxfocus.org/">LinuxFocus</A> articles:
<br>
<ul>
<li><a href="http://linuxfocus.org/English/January2002/article132.shtml">QCAD: Technical drawing with Linux</a><br></li>
<li><a href="http://linuxfocus.org/English/January2002/article222.shtml">Running applications remote with X11</a><br></li>
<li><a href="http://linuxfocus.org/English/January2002/article224.shtml">Developing Gnome applications with Python (part 2)</a><br></li>
<li><a href="http://linuxfocus.org/English/January2002/article225.shtml">Chrooting All Services in Linux</a><br></li>
<li><a href="http://linuxfocus.org/English/January2002/article226.shtml">MySQL and Perl, the marriage of convenience</a><br></li>
<li><a href="http://linuxfocus.org/English/January2002/article227.shtml">Writing CDs with Linux</a><br></li>
<li><a href="http://linuxfocus.org/English/January2002/article228.shtml">Linux System Administration - A User's Guide (Book Review)</a><br></li>
</ul>
<p>
<a href="http://www.thedukeofurl.org/">The Duke of URL</a> has
a
<a href="http://www.thedukeofurl.org/reviews/systems/pogoalturaxp">
review</a> of the
Pogo Linux Altura Athlon XP Workstation. Sadly, this is the Duke's last
article, because <A HREF="http://www.thedukeofurl.org/">the site is going
+down</A>.
Another victim of the it's-so-much-work-and-I'm-not-getting-paid-for-it
+syndrome.
We'll miss the "concise and
accurate information on Linux hardware and software" on the site. For now, the
archives are available. Contact the Duke (<A
+HREF="mailto:pat@thedukeofurl.org">Pat</A>)
if you want to make a $$ contribution toward putting the archive on CD-ROM, or
+if you
can donate webspace to host the archive.
<p>
<a href="http://www.google.com/">
Google</a>'s relaunched usenet archive received recent press both in an
<a href="http://www.wired.com/news/culture/0,1284,49016,00.html">
article</a> in Wired and in a
<a href="http://www.theregister.co.uk/content/6/23343.html">
story</a> on The Register. In particular there is a Google
<a href="http://www.google.com/googlegroups/archive_announce_20.html">
archive</a> of historic announcements including Linus and his pet project,
Tim Berners-Lee's announcement of what would become WWW, Microsoft's
first mention in the media, and so on. Good nostalgia, especially at this
time of year.
<P>
NewsForge have a
<a href="http://www.newsforge.com/article.pl?sid=01/12/02/2246230&mode=nocomment">
story</a> on Ximian's release of Evolution 1.0. Also covers the release of Ximian's
proprietary MS Exchange client for Linux. Although some may have qualms
about Ximian releasing such a proprietary extension, there are compelling
reasons for this course of action, not least of which is staying in
business! In any case, it should be a good asset to Linux users who are
forced to operate in a MS Exchange environment. Story also covered
<a href="http://linuxtoday.com/news_story.php3?ltsn=2001-12-03-006-20-NW-GN-SW">
here</a>
and
<a href="http://www.linuxplanet.com/linuxplanet/opinions/3930/1/">
here</a>.
<P>
Caf.Netgod.net have a
<a href="http://caf.netgod.net/ps2linux.html">
review</a>
of Linux on Playstation 2 (
<a href="http://slashdot.org/article.pl?sid=01/12/04/0254229&mode=nested">
courtesy</a>
Slashdot).
<P>
<a href="http://oreillynet.com/">
O'Reilly Net</a>
have some pieces which might be of interest, including
<ul>
<li>
An
<a href="http://oreillynet.com/pub/a/dotnet/2001/12/03/myservices.html">
article</a> on
using Python and XML with Microsoft .NET My Services to create a request
for the simple .NET Contacts service using Python and XML on Linux.
</li>
<li>
An
<a href="http://linux.oreillynet.com/pub/a/linux/2001/11/29/UserModeLinux.html">
article</a> on
system failure and recovery practice
using User-Mode Linux (UML).
By using UML virtual machines, rather than your real system you can emulate
horrible system failures in total safety (like cd'ing to / and typing 'rm
-rf *'). Also can be used to practice more realistic recovery manoeuvers.
</li>
<li>
A
<a href="http://www.onlamp.com/pub/a/bsd/2001/12/06/FreeBSD_Basics.html">
guide</a>
to setting up Procmail to keep your mail under control
</li>
<li>
A
<a href="http://linux.oreillynet.com/pub/a/linux/2001/12/14/rootkit.html">
guide</a>
to understanding rootkits.
</li>
<li>
<a href="http://www.oreilly.com/catalog/wirelesscommnet/chapter/ch03.html">
Sample chapter</a>
from Building Wireless Community Networks
</li>
</ul>
<P>
The following links found on
<a href="http://lwn.net/">
Linux Weekly News</a> are worth checking out:
<ul>
<li>
LWN
<a href="http://lwn.net/2001/1220/">
summarizes</a>
their
<a href="http://lwn.net/2001/features/Timeline/">
2001 timeline</a>
(especially timely given that it is Linux's 10th anniversary)
</li>
<li>
LWN
<a href="http://lwn.net/2001/1220/dists.php3">
summary</a>
of Linux distribution activity during the first half of 2001.
</li>
<li>
LPRng
<a href="http://www.lprng.com/PrintingCookbook/">
printing cookbook</a>. On-line set of printing tips.
</li>
</ul>
<p>
<a href="http://www.theregister.co.uk/">
The Register</a> have the following links
<ul>
<li>
<a href="http://www.theregister.co.uk/content/28/23154.html">
Story</a>
about
<a href="telnet://towel.blinkenlights.nl">
Star Wars over telnet</a>
also, via your browser
<a href="http://www.asciimation.co.nz">
using java</a>.
</li>
<li>
USA
<a href="http://www.theregister.co.uk/content/55/23200.html">
gives AES the official yes</a>, 256-bit encryption standard formally approved.
</li>
<li>
Microsoft Hotmail
<a href="http://www.theregister.co.uk/content/28/23348.html">
still runs on U**x</a>.
</li>
<li>
Chinese
<a href="http://www.theregister.co.uk/content/7/23307.html">
take sip of Linux tea</a>.
</li>
</ul>
<P>Newsforge recently took a
<a href="http://www.newsforge.com/article.pl?sid=01/12/05/1259245&mode=thread">
look</a> at whether one of the biggest problems with Linux usability is
that the people teaching newbies are just too good. Interesting reading.
<a href="http://www.theregister.co.uk/content/4/23245.html">
Also at</a> The Register.
<p>
<a href="http://www.slashdot.org/">
Slashdot</a> have the following links worth noting
<ul>
<li>
linux-kernel
<a href="http://kerneltrap.org/article.php?sid=398">
message thread</a>
that was originally about indentation in the
kernel source files, but led into other philosophical topics about
programming.
</li>
<li>
<a href="http://slashdot.org/articles/01/12/05/1432206.shtml">
Comment</a> on HP's Blade plans and Linux (also
<a href="http://www.theregister.co.uk/content/53/23178.html">
at The Register</a>).
</li>
<li>
Why free software is
<a href="http://news.independent.co.uk/digital/features/story.jsp?story=109188">
a hard sell</a>.
`Perhaps Linux shouldn't be regarded as an operating system at all, but more
as a sophisticated multi-player game with a large number of enthusiastic
players. You can lose yourself in Linux for hours, tweaking here, updating
there. It's great fun if you like that sort of thing.'
</li>
</ul>
<P>
Linux Journal
<a href="http://www.linuxjournal.com/article.php?sid=5650">
article</a>
on perceptions of Linux among undergraduate sysadmin
students.
<a name="conferences"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="green">Upcoming conferences and events</font></H3></center>
<P> Listings courtesy <EM>Linux Journal</EM>. See <EM>LJ</EM>'s
<A HREF="http://www.linuxjournal.com/events.php">Events</A> page for the
latest goings-on.
<!-- *** BEGIN events table [this line needed by Linux Gazette events.py *** -->
<table cellpadding=5 border=0 width=100%>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Consumer Electronics Show (CEA)</b><BR>
<td valign=top>January 1-11, 2002<BR>Las Vegas, NV<BR>
<a href="http://www.cesweb.org/" target="_blank">
http://www.cesweb.org/</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Bioinformatics Technology Conference (O'Reilly)</b><BR>
<td valign=top>January 28-31, 2002<BR>Tucson, AZ<BR>
<a href="http://conferences.oreilly.com/biocon/" target="_blank">
http://conferences.oreilly.com/biocon/</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>COMNET Conference & Expo (IDG)</b><BR>
<td valign=top>January 28-31, 2002<BR>Washington, DC<BR>
<a href="http://www.comnetexpo.com/" target="_blank">
http://www.comnetexpo.com/</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>LinuxWorld Conference & Expo (IDG)</b><BR>
<td valign=top>January 30 - February 1, 2002<BR>New York, NY<BR>
<a href="http://www.linuxworldexpo.com/" target="_blank">
http://www.linuxworldexpo.com/</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>The Tenth Annual Python Conference ("Python10")</b><BR>
<td valign=top>February 4-7, 2002<BR>Alexandria, Virginia<BR>
<a href="http://www.python10.org/" target="_blank">
http://www.python10.com/</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Australian Linux Conference</b><BR>
<td valign=top>February 6-9, 2002<BR>Brisbane, Australia<BR>
<a href="http://www.linux.org.au/conf/" target="_blank">
http://www.linux.org.au/conf/</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Internet Appliance Workshop</b><BR>
<td valign=top>February 19-21, 2002<BR>San Jose, CA<BR>
<a href="http://www.netapplianceconf.com/" target="_blank">
http://www.netapplianceconf.com/</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Internet World Wireless East (Penton)</b><BR>
<td valign=top>February 20-22, 2002<BR>New York, NY<BR>
<a href="http://www.internetworld.com/events/weast2002/" target="_blank"
>
http://www.internetworld.com/events/weast2002/</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Intel Developer Forum (Key3Media)</b><BR>
<td valign=top>February 25-28, 2002<BR>San Francisco, CA<BR>
<a href="http://www.intel94.com/idf/index2.asp" target="_blank">
http://www.intel94.com/idf/index2.asp</A><BR>
</td></tr>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>COMDEX (Key3Media)</b><BR>
<td valign=top>March 5-7, 2002<BR>Chicago, IL<BR> <a href="http://www.key3media.com/comdex/chicago2002/" target="_blank">
http://www.key3media.com/comdex/chicago2002/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>BioIT World Conference & Expo (IDG)</b><BR>
<td valign=top>March 12-14, 2002<BR>Boston, MA<BR>
<a href="http://www.bioitworld.com/" target="_blank">
http://www.bioitworld.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Embedded Systems Conference (CMP)</b><BR>
<td valign=top>March 12-16, 2002<BR>San Francisco, CA<BR>
<a href="http://www.esconline.com/sf/" target="_blank">
http://www.esconline.com/sf/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>CeBIT (Hannover Fairs)</b><BR> <td valign=top>March 14-22, 2002<BR>Hannover, Germany<BR>
<a href="http://www.cebit.de/" target="_blank">
http://www.cebit.de/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>COMDEX (Key3Media)</b><BR>
<td valign=top>March 19-21, 2002<BR>Vancouver, BC<BR>
<a href="http://www.key3media.com/comdex/vancouver2002/" target="_blank"
>
http://www.key3media.com/comdex/vancouver2002/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>FOSE</b><BR>
<td valign=top>March 19-21, 2002<BR>Washington, DC<BR>
<a href="http://www.fose.com/" target="_blank">
http://www.fose.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>SANS 2002 (SANS Institute)</b><BR>
<td valign=top>April 7-9, 2002<BR>Orlando, FL<BR>
<a href="http://www.sans.org/newlook/home.htm" target="_blank">
http://www.sans.org/newlook/home.htm</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>LinuxWorld Conference & Expo Malaysia (IDG)</b><BR>
<td valign=top>April 9-11, 2002<BR>Malaysia<BR>
<A HREF="http://www.idgexpoasia.com/" TARGET="_blank">
http://www.idgexpoasia.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>LinuxWorld Conference & Expo Dublin (IDG)</b><BR>
<td valign=top>April 9-11, 2002<BR>Dublin, Ireland<BR>
<BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Internet World Spring (Penton)</b><BR>
<td valign=top>April 22-24, 2002<BR>Los Angeles, CA<BR>
<a href="http://www.internetworld.com/events/spring2002/" target="_blank
">
http://www.internetworld.com/events/spring2002/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>O'Reilly Emerging Technology Conference (O'Reilly)</b><BR>
<td valign=top>April 22-25, 2002<BR>Santa Clara, CA<BR>
<a href="http://conferences.oreillynet.com/etcon2002/" target="_blank">
http://conferences.oreillynet.com/etcon2002/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Software Development Conference & Expo (CMP)</b><BR>
<td valign=top>April 22-26, 2002<BR>San Jose, CA<BR>
<a href="http://www.sdexpo.com/" target="_blank">
http://www.sdexpo.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Federal Open Source Conference & Expo (IDG)</b><BR>
<td valign=top>April 24-26, 2002<BR>Washington, DC<BR>
<a href="http://www.idgworldexpo.com/" target="_blank">
http://www.idgworldexpo.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Networld + Interop (Key3Media)</b><BR>
<td valign=top>May 7-9, 2002<BR>Las Vegas, NV<BR>
<a href="http://www.key3media.com/" target="_blank">
http://www.key3media.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Strictly e-Business Solutions Expo (Cygnus Expositions)</b><BR>
<td valign=top>May 8-9, 2002<BR>Minneapolis, MN<BR>
8-9, 2002<BR>Minneapolis, MN<BR>
<b>PC Expo (CMP)</b><BR>
<td valign=top>June 25-27, 2002<BR>New York, NY<BR>
<a href="http://www.techxny.com/" target="_blank">
http://www.techxny.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>USENIX Securty Symposium (USENIX)</b><BR>
<td valign=top>August 5-9, 2002<BR>San Francisco, CA<BR>
<a href="http://www.usenix.org/events/sec02/" target="_blank">
http://www.usenix.org/events/sec02/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>LinuxWorld Conference & Expo (IDG)</b><BR>
<td valign=top>August 12-15, 2002<BR>San Francisco, CA<BR>
<a href="http://www.linuxworldexpo.com" target="_blank">
http://www.linuxworldexpo.com</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>LinuxWorld Conference & Expo Australia (IDG)</b><BR>
<td valign=top>August 14 - 16, 2002<BR>Australia<BR>
<a href="http://www.idgexpoasia.com/" target="_blank">
http://www.idgexpoasia.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Communications Design Conference (CMP)</b><BR>
<td valign=top>September 23-26, 2002<BR>San Jose, California<BR>
<a href="http://www.commdesignconference.com/" target="_blank">
http://www.commdesignconference.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
<tr><td valign=top>
<b>Software Development Conference (CMP)</b><BR>
<td valign=top>November 18-22, 2002<BR>Boston, MA<BR>
<a href="http://www.sdexpo.com/" target="_blank">
http://www.sdexpo.com/</A><BR>
<tr><td colspan=2><HR size=5 width=100% noshade align=center></td></tr>
</table>
<!-- *** END events table [this line needed by Linux Gazette events.py *** -->
<a name="general"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="green">News in General</font></H3></center>
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Linux and Viruses
</FONT>
</H3>
<a href="http://www.vnunet.com/">Vnunet.com</a> ran a recent
<a href="http://www.vnunet.com/News/1127347">
article</a> reporting that Linux would be the next virus target (in the
mould of the various email worms currently circulating the Windows world).
It featured quotes from representatives of Trend Micro and McAfee which
were surely well intentioned but at times sounded a little suspect. For
example, did you know that
`In fact it's probably easier to write a virus for Linux because it's open
source and the code is available.'
As Don Marti
<a href="http://www.ssc.com/pipermail/atc/2001-December/000003.html">
commented</a>
in his Aspiring to Crudeness newsletter:
`How many damn "The Linux viruses are coming! Virus checkers are still
relevant!" articles are we going to have to read until even the Mainstream
Media starts ignoring the anti-virus vendors?.'
Don also links to a good
<a href="http://linuxmafia.com/~rick/faq/#virus">
article</a> by Rick Moen explaining why Linux is not such a likely target
as some people believe. Roaring penguin also have a
<a href="http://www.roaringpenguin.com/mimedefang/anti-virus.html">
page</a>
covering various myths regarding Linux and viruses, which specifically
addresses points raised in the vnunet.com article.
<p>
Perhaps the most imminent impact of viruses on Linux lies in the fact that
if the current rash of virus outbreaks continues, it seems likely that many
more security conscious customers will
<a href="http://www.newsforge.com/article.pl?sid=01/12/05/1229211&mode=thread">
seek alternatives</a> to the current market leaders. Secure (or at least
more secure) software is bad news for anti-virus software makers.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Quake 2 Source Code Released Under the GPL
</FONT>
</H3>
John Carmack has released the
<a href="ftp://ftp.idsoftware.com/idstuff/source/quake2.zip">
sources</a>
to the fabled action shoot-em-up
game: Quake 2.
From Carmack's .plan file at id Software (idsoftware.com)
<blockquote>
`However, all in all this may spur the development of many new (free) Linux
games and may encourage some hackers who are not "just" coders (musicians,
graphics artists, and others) to create new games by creating, compiling
and plugging in new data sets.'
</blockquote>
Fine sentiments indeed.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Practical PostgreSQL PDF Now Available
</FONT>
</H3>
<p>
<a href="http://www.commandprompt.com">
Command Prompt</a>,
a developer of Linux and PostgreSQL custom development and
managed services solutions, has announced the pre-production release of
Pratical PostgreSQL. Practical PostgreSQL is a publication co-produced
between Command Prompt, Inc. and O'Reilly & Associates covering the
PostgreSQL ORDBMS. You may retrieve a pre-production PDF from the
following URL:
<a href="http://www.postgresql.info/practicalpostgresql.pdf">
http://www.postgresql.info/practicalpostgresql.pdf</a>
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Special Event of Linux User Club India
</FONT>
</H3>
<P>
Gitesh Trivedi mailed to point out that
the Linux User Group of India is arranging an event for its users.
The subject of the day is System Administration on Linux. It will be held
on
13th January,2002.
10.00 A.M to 6.00 P.M at
26,Jagganathpark,Nr.Malav,
Talav,Jivarajpark,
Ahmedabad-380051 Gujarat INDIA.
Further details
<a href="http://www25.brinkster.com/iluci/meetings.htm">
here</a>.
<a name="distro"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="green">Distro News</font></H3></center>
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Mandrake
</FONT>
</H3>
<P> Linux Today
<a href="http://linuxtoday.com/news_story.php3?ltsn=2001-12-03-011-20-PR-EL-MD">
report</a>
the availability of Mandrake
Linux 8.1 for Intel Itanium Architecture. The Itanium 64-bit
architecture is a high-performance platform commonly used for
servers.
<p>
<hr width="20%" noshade>
<p>
<P>
The Register recently
<a href="http://www.theregister.co.uk/content/4/23436.html">
reviewed</a>
Mandrake 8.1, from the point of view of ease of install, and found it
"easier than Win-XP". Overall, a very positive endorsement of the distro
(particularly following the ordeal which ensued during an earlier Red Hat
install).
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">SuSE
</FONT>
</H3>
<P>
<a href="http://www.suse.de/en/">
SuSE Linux</a>,
has announced a version of "SuSE Linux Firewall on CD"
available for "Virtual Private Networks" (VPN).
<hr noshade width="20%">
<P>
SuSE Linux,
has announced the availability of
<a href="http://www.suse.de/en/products/suse_business/sles/dev_sparc/index.html">
SuSE Linux 7.3 for Sun Microsystems' SPARC architecture</a>.
The new version is available for download. SuSE provides Linux Kernel
2.2.20 for deployment in Sun4c and Sun4m series 32-bit machines and Kernel
2.4.14 for Sun4u series 64-bit systems. Among other features, Kernel 2.4.14
offers an extended range of drivers and USB support for new UltraSPARC
models. SuSE Linux 7.3 for SPARC is based on the program library glibc
2.2.4 and includes XFree86 4.1.0.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Yellow Dog
</FONT>
</H3>
TuxPPC.com have a
<a href="http://www.tuxppc.org/articles.php?single=733+index=0">
report</a> on Yellow Dog Linux and future directions the distribution could
take (courtesy Linux Today).
<a name="commercial"></a>
<p><hr><p>
<!-- =================================================================== -->
<center><H3><font color="green">Software and Product News</font></H3></center>
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Opera 6.0 for Linux Technology Preview
</FONT>
</H3>
<P>
<a href="http://www.opera.com">
Opera Software</a>
has released Opera 6.0 for Linux, Technology Preview 2 (TP)
<a href="http://www.opera.com/download/get.cgi?custom=yes&opsys=4&language=5&version">
for download</a>
with new features, including the ability to display non-Roman characters, a
completely new and customizable user interface, as well as a range of
different improvements that increases the speed and enjoyment of Linux
users' browsing sessions.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Kohan: Immortal Sovereigns Now Available for Linux
</FONT>
</H3>
<P>
<a href="http://www.timegatestudios.com">
TimeGate Studios</a>
and
<a href="http://www.lokigames.com">
Loki Software</a>
have announced that the fantasy and real-time strategy game,
<a href="http://www.kohan.net">
Kohan: Immortal Sovereigns</a>,
shipped for the Linux platform on Saturday, August 25.
<P> Kohan has an MSRP of $49.95 (USD) and is now available for order from the
<a href="http://www.lokigames.com/orders/">
Loki webstore</a>.
A listing of
<a href="http://www.lokigames.com/orders/resellers.php3">
resellers</a>
is also available.
Linux gamers are welcome to sample Kohan by downloading the free demo at
<a href="http://www.lokigames.com/products/demos.php3">
http://www.lokigames.com/products/demos.php3</a>
<hr noshade width="20%">
<P>Proving again that good taste is no substitute for good
gameplay, developer
<a href="http://www.gopostal.com">
Running With Scissors</a>
announced that they will join forces with Loki Software to bring the
long-awaited Linux version of POSTAL PLUS to Windows-weary gameplayers,
everywhere.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">OpenFly
</FONT>
</H3>
<P>
Jim Watkins mailed to draw our attention to
<a href="http://www.openfly.org.uk">
OpenFly</a>:
an open souce game engine for Flight Simulator toolkit that
is Linux Compatible. He says "this looks like an awesome project and would be
linux's first true Combat Flight Simulator".
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">McObject Linux-based Benchmark Paper
</FONT>
</H3>
<P>
<a href="http://www.mcobject.com">
McObject's</a>
have released a new
<a href="http://www.mcobject.com/memorybenchmark.pdf">
white paper</a> (pdf):
"Main Memory vs. RAM-Disk Databases: A Linux-based Comparison". This paper
addresses performance and availability implications of different approaches
to database management in embedded systems running on Linux. It looks at
databases running in embedded applications on hard-disks, on ram-disks, and
in memory only operation.
<P> McObject's benchmark tests the company's MMDB against a widely used embedded
database, which is used in both traditional (disk-based) and RAM-disk modes.
Deployment on RAM-disk boosts the traditional database's performance by as
much as 74 percent, but still lags the memory-only database in this test
(performed on Red Hat Linux version 6.2).
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">VMware
</FONT>
</H3>
<P>
<a href="http://www.vmware.com">
VMware</a>
has
<a href="http://www.vmware.com/news/releases/ws3.html">
announced</a> the
launch of VMware Workstation 3.0.
VMware Workstation enables multiple operating systems to run on physical
computers in secure, transportable, high-performance virtual computers.
Workstation 3.0 provides support for the latest operating systems including
Microsoft Windows XP and the latest Linux distributions, supports
additional peripheral devices, and provides significant enhancements in
networking and overall performance.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Tommy Hilfiger is Dressing Up Linux and Other IBM News
</FONT>
</H3>
<P>
<a href="http://www.ibm.com">
IBM</a>
have announced that Tommy Hilfiger has turned to IBM and Linux for an
e-business infrastructure designed to expand the company's reach to its
specialty retailers, factories and employees.
<P> Tommy Hilfiger is creating three innovative new web portals using IBM
eServer xSeries running Linux, IBM eServer iSeries running Java, DB2
Universal Database and a suite of software products from IBM Business
Partner eOneGroup.
<hr noshade width="20%">
<P>IBM has started shipping its first Eclipse-based tool for Linux --
the WebSphere Studio Application Developer for Linux beta.
This follows IBM's earlier announced strategy, when it donated $40 million
of software -- codenamed
<a href="http://www.eclipse.org">
Eclipse</a>
--
to the new independent open-source community. Developers working on
WebSphere Studio and other Eclipse-based tools use a common,
easy-to-use interface that provides a consistent "look and feel,"
regardless of vendor, which cuts training costs for customers. Eclipse
will also enable customers to integrate business processes used to
create electronic-business applications, such as those for Web
services. 150 software vendors, including IBM, Red Hat,
TogetherSoft and others are already
<a href="http://www.ibm.com/software/ad/workbench">
working together</a>
on Eclipse
software.
<a href="http://www14.software.ibm.com/webapp/download/category.jsp?s=s&cat=ad&source=sd">
Downloads here</a>.
<hr noshade width="20%">
<P> As part of an initiative to stimulate the development of new Linux
solutions specifically for the
<a href="http://www.ibm.com/smallbusiness">
small and medium business</a>
market,
<a href="http://www.ibm.com">
IBM</a>
is
announcing a "virtual Linux server" for independent software vendors. The
<a href="http://www.ibm.com/eserver/iseries">
eServer iSeries</a>
Linux "Test Drive" uses IBM's mainframe-inspired
partitioning technology to give software vendors internet access to their
own iSeries server, where they can write, port and test Linux applications
for eServer iSeries. IBM believes Linux running on eServer iSeries is a
combination that can reduce cost and complexity by consolidating onto a
single, easy-to-manage, mainframe-class server.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Project Management Software for Linux
</FONT>
</H3>
<P> The Project Management Software AUX RDP for Linux has been developed
by SYSI GmbH Software Systeme.
AUX RDP is a multiuser software tool for planning and control schedules,
resources, costs, results and risks with numerous text and graphic reports.
Additionally, AUX RDP includes a generator of Web-based Project Information
System for creating project information within Intranet/Internet automatically.
AUX RDP is available as Shareware and can be downloaded at
<a href="http://www.sysi-software.de">
http://www.sysi-software.de</a>.
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Linux System Administration Course
</FONT>
</H3>
<P>
<a href="http://www.trainingetc.com/">
Training etc</a>
wish to publicise their
<a href="http://www.trainingetc.com/linuxsa.html">
Linux system administration course</a>
This course equips participants with the tools to insure the well
being of a LINUX system. Lab sessions include the installation,
troubleshooting, and maintenance of a LINUX system
<P> <hr> <P>
<!-- =================================================================== -->
<H3><IMG ALT=" " SRC="../gx/bolt.gif">
<FONT COLOR="green">Texas Instruments, RidgeRun and DSP
</FONT>
</H3>
<P>Extending a joint commitment to enable the
rapid development of real-time applications,
<a href="http://www.ti.com">
Texas Instruments</a>
and
<a href="http://www.ridgerun.com">
RidgeRun</a>
have announced the
availability of an end-to-end embedded Linux development suite for TI's
new system-level
<a href="http://www.dspvillage.ti.com/c547xa">
digital signal processors</a>
(DSPs). The
combination of the RidgeRun DSPLinux operating system and Board Support
Package (BSP) with TI's power-efficient, programmable DSPs should "reduce cost,
power consumption and board space by 40 percent for designers of real-time
embedded applications".
<!-- *** BEGIN copyright *** -->
<P> <hr> <P>
<H5 ALIGN=center>
Copyright © 2002, Michael Conry and
the Editors of <A HREF="mailto:gazette@ssc.com"><I>Linux Gazette</I></A>.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Micro web server: how to save CPU time and hard disk space</font></H1>
<H4>By <a href="mailto:marndt@asmsoftware.de">Matthias Arndt</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<h2>Introduction</h2>
<p>
A personal web server. Today, almost any Linux user has one. Some folks do really
serve content with them; others use it for development of PHP or CGI programs.
Others like me just have it to read the documentation via the browser and to
play with it.
I decided that running the Apache web server is
overkill for my personal applications. Currently I have access to a CGI and
PHP capable provider so I do not need support for these on my own machine. Just plain
serving of files without having to run a huge Apache binary in background.
</p>
<p>
As a result, I decided to drop running my own Apache web server in favor of
having a simple micro web server that only answers requests when there are any.
It saves me some disk space and RAM, although that wasn't really a significant factor
since my computer has plenty of capacity. Mostly
I wanted to play around with new software and nifty small but usable solutions.
</p>
<h2>What do I exactly want to do with my web server?</h2>
<p>
Just a few ordinary things, nothing involving PHP or CGI:
</p>
<ul>
<li>serving a few static files and downloads to my friends</li>
<li>read my package documentation through http</li>
</ul>
<p>
This leads to another important thing: at least some sort of directory indexing
must be supported by the web server. That is, if the final URL component is a directory,
redirect to that directory (add the final slash), then serve up the index.html in that
directory. (The redirect is important so that relative links on the page will function
correctly.) Although this can be done with automated scripts run by cronjobs.
But I prefer a simple builtin solution. It doesn't have to be as complex as the
Apache indexing function although that one is very nice indeed.
</p>
<p>
In short: I can use almost any web server that supports the http protocol but it doesn't need many fancy features.
</p>
<h2>Do I need extensive configuration?</h2>
<p>
In fact no. All of these can be accomplished by symlinking external pieces into the web server's root directory.
No need for "Alias" directives or other complicated options. Just the web server root and I'm happy. Perhaps customizing the port the web server listens on.
</p>
<p>
But nothing more. A simple command line like this one should be sufficient for my purpose: "binary /path/to/webserver/root".
</p>
<h2>Standalone server or called via TCP wrapper?</h2>
<p>
I decided to use a TCP wrapper solution. The web server binary gets only called when there really is a request. No need to mess around
with init scripts. Just a simple line in /etc/inetd.conf and off we go.
</p>
<p>
However such a solution is not very performant. In fact, if you plan to have more than a few sporadic accesses to your server, go for a
standalone server that runs all the time.
</p>
<h2>micro_httpd</h2>
<p>
Beside a few really awkward solutions ( there are web servers written in Java, bash or awk out there), I decided to go for a compilable
solution.
</p>
<p>
I found a web server called micro_httpd at <A HREF="http://www.acme.com/software/micro_httpd/">http://www.acme.com/software/micro_httpd/</A>.
This one is written in plain C, takes just around 150 lines of code and does exactly what I want. Runnable from TCP wrapper, no CGI nor PHP, plain serving of files with indexing capability.
</p>
<p>
I just added a few more mime types in the code and it worked out of the box.
</p>
<p>
Grab the sources of micro_http and unpack them.
<ol>
<li>tar xvzf micro_http.tar.gz
<li>cd micro_httpd
<li>rework the source the file if needed, tweak the #define directives to suite your needs
<li>make
<li>su -c "make install"
</ol>
And now you should have a binary called micro_httpd in /usr/local/sbin/.
</p>
<p>
Become root and edit /etc/initd.conf with your favorite editor.
Add a line
<pre>
http stream tcp nowait wwwrun /usr/sbin/tcpd /usr/local/sbin/micro_httpd /var/httpd/wwwroot/
</pre>
to it and restart the Internet super-server inetd.
</p>
<p>
On my SuSE 7.2 Linux, I type "/etc/init.d/inetd restart" as root.
</p>
<p>
Make sure to substitute "/var/httpd/wwwroot/ in the example above with the correct path to your new document root.
</p>
<p>
Substitute the wwwrun with any valid user account, preferably one that has almost no rights on the system for security reasons.
</p>
<p>
Now try it out: put a few html files in your new WWW root and make them readable by the user account specified.
Then point your favorite browser to http://localhost/. You should get either an automated index or your index.html file.
</p>
<p>
Got this far? Great, your small and micro web server is up and running.
</p>
<p>
<b>Note:</b>The TCP wrapper does log all connects to the server to /var/log/messages. But don't expect a complete Apache-style log from it.
Just plain lines like this:
<pre>
micro_httpd[886]: connect from x.x.x.x (x.x.x.x)
</pre>
However with knowledge of the http protocol and the code it should be possible to code an advanced logging facility. I leave that one up to you.
</p>
<p>
In general, any web server that can be run from inetd can be setup like this one. So look around at <a href="http://freshmeat.net/">Freshmeat</a>.
</p>
<h2>Conclusion</h2>
<p>
If your needs are as simple as that, it takes a few minutes to switch from Apache to such a minimalistic solution.
</p>
<p>
It works pretty good although I'm aware that this solution will fail if there are too many requests. For a simple personal web server
without heavy traffic it should be sufficient.
</p>
<p>
At least I'm a bit happier now. Decide - perhaps such a solution would suit your needs as well?
</p>
<BLOCKQUOTE><EM>
[There's also Tux, a micro web server in a Linux kernel module. It works similar
to micro_http, and can chain to a bulkier web server for URLs it can't handle
(e.g., CGI scripts). But note that Tux and micro_http serve different niches.
Tux is for high-traffic sites that serve lots of simple files (e.g., images) and
must keep per-request overhead low to avoid overloading the system. micro_http
via inetd is for sites with light web traffic, where the greater overhead of running
a separate process for each request is overshadowed by the
</EM>no overhead at all<EM> when there are no requests. Of course, both
micro_http and Tux serve a third niche: nifty small usable solutions you can play
with. Or as LG contributing editor Dan Wilder would say, "small sharp tools that
each do one thing well in the honorable UNIX toolbox tradition."
<P> For more information about Tux, see
<A HREF="http://www.redhat.com/docs/manuals/tux/TUX-2.1-Manual/">Red Hat's Tux 2.1 manual</A>.
I thought Tux was in the standard kernel but I can't find it in 2.4.17, so you'll
have to look around for it.
-Iron.]
</EM></BLOCKQUOTE>
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Matthias Arndt</H4>
<EM>I'm a Linux enthusiast from northern Germany.
I like plain old fifties rock'n'roll music, writing
stories and publishing in the Linux Gazette, of course.
Currently I'm studying computer science in conjunction with
economics.</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, Matthias Arndt.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Fil & Lil</font></H1>
<H4>By <a href="mailto:webmaster@whatisnew.com">ESC Technologies</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<P>
<IMG ALT="[cartoon]" SRC="misc/fillil/fillil2001December26.png"
WIDTH="600" HEIGHT="250">
<BR CLEAR="all">
<P>
<IMG ALT="[cartoon]" SRC="misc/fillil/fillil2001December27.png"
WIDTH="444" HEIGHT="245">
<BR CLEAR="all">
<P>
<IMG ALT="[cartoon]" SRC="misc/fillil/fillil2001December28.png"
WIDTH="600" HEIGHT="250">
<BR CLEAR="all">
<P>
<IMG ALT="[cartoon]" SRC="misc/fillil/fillil2001December30.png"
WIDTH="600" HEIGHT="250">
<BR CLEAR="all">
<P>
<IMG ALT="[cartoon]" SRC="misc/fillil/fillil2002January2.png"
WIDTH="414" HEIGHT="241">
<BR CLEAR="all">
<P> <STRONG>Who are Fil & Lil Tux?</STRONG><BR>
They are evolving characters! Fil Tux is a Linux Zealot trying to indoctrinate Lil Tux.
<P> <STRONG>When did Fil & Lil Tux begin?</STRONG><BR>
Concept was created December 18, 2001. The first cartoon appeared on whatisnew.com December 26, 2001.
<P> Would you like to use Fil & Lil on your website? Go for it! All we ask is
that you link back to their home page:
<A HREF="http://www.whatisnew.com/fillil/index.cfm">http://www.whatisnew.com/fillil/index.cfm</A>
<H3>ESC's Lora Heiny writes:</H3>
The first cartoon is a play on the marketing of OS and how the
users react. Windows 95/98 is archaic and users are in the dark about OS
options. Windows XP is primary and attracts basic users. Linux users see
things as black and white, such as, "there should be Linux on every desktop".
<P> Here's a little brief on the characters in the cartoon:
<P>
<STRONG>Fil</STRONG>
<PRE>
Age: 39
Eats: Fish & chips
Favorite TV show: Hawaii Five-0
Favorite cartoon: Batman
Favorite comedian: Groucho Marx
Favorite Marx quote: "You know I could just rent you out as a decoy for duck hunters?"
</PRE>
<STRONG>Lil</STRONG>
<PRE>
Age: 29
Eats: bird seed
Pets: AJ & Gracie (fictitious dogs on <A HREF="http://whatisnew.com">whatisnew.com</A>)
Lil wants to know why people use Linux and what Linux is all about.
Lil's quote: We're not cartoonists. We were just sitting around the table,
Fil started making jokes, and I started writing them down.
</PRE>
<P> Now to more serious stuff:
<P> Fil and Lil are combinations of people we know, customers, distributors,
and manufacturers. ESC Technologies operates computer information websites,
in addition to being a system builder and component supplier. We like Linux
and thought the community needed a chuckle or two.
<P> Layne Heiny, VP ESC Technologies R&D, comes up with most of the jokes and
draws Fil & Lil. Loren Heiny, Founder <A HREF="http://MyEmailStatus.com">MyEmailStatus.com</A>, also comes up with jokes and funny
scenarios.
<P> Lora Heiny, General partner ESC Technologies, draws the background and
layout for the cartoon. I edit and delete the REALLY bad jokes.
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, ESC Technologies.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Installing Software from Source<BR>
-or-<BR>
What Do I Do with this file.tar.gz Thing?</font></H1>
<H4>By <a href="mailto:ben-fuzzybear@yahoo.com">Ben Okopnik</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
The other day, I decided to download "cuyo" (see Mike Orr's
<A HREF="orr3.html">review</A> in this
issue), a new game that had been mentioned on the Answer Gang admin list.
When I went to the website, however, I found only a source tarball instead
of a package - even though the e-mail had mentioned an available Debian
archive. No big deal, I thought - I've done this before...
</P>
<BLOCKQUOTE><EM>
[The cuyo .deb is in the Debian Unstable distribution. But this
article applies to any program you want to install that's either not in your
distribution, or where the distribution's version is old or inadequate. -Iron.]
</EM></BLOCKQUOTE>
For those who don't know, a tarball is a "tar"red and usually "gzip"ped
list of source files that can be compiled to produce a program; the
filename of a tarball is usually either "progfile-1.23.tgz" or
"progfile-1.23.tar.gz", with "progfile" being the name of the program and
"1.23" (obviously, the numbers can be almost anything) standing for the
version. When you install a package - whether RPM, DEB, or whatever your
distro uses - you're simply placing the libraries, documentation, and the
precompiled binary or binaries in the directories where they belong.
Compiling the source is the part that normally gets done for you by the
package maintainer.
<P>
After downloading the tarball to my "/home/ben/TGZs" subdirectory, one I'd
created specifically for the purpose of storing downloaded tarballs, I put
a copy of it in "/tmp", where I would be compiling the sources. Note that
some folks prefer to do it in "~/tmp", a directory under their home; the
reasoning there is that "/tmp" usually gets wiped on bootup, and a compile
that goes REALLY wrong could lock your machine... which would require a
reboot (oops!) I can't fault their thinking, but continue to be the
dangerous daredevil that I am - I trust my Linux. :)
</P>
The file was called "cuyo-1.03.tar.gz" - so, the appropriate bit of magic
which turns it back into useful files is
<P><PRE>tar xvzf cuyo-1.03.tar.gz
</PRE></P>
<P>
This created a directory called "cuyo-1.03" right there in "/tmp".
</P>
(OK, so that's not exactly how I did it; I looked inside the tarball with
Midnight Commander, opened "/tmp" in my second pane, and hit "F5" to copy
out the compressed directory. I'm spelling it out here for those folks who
want to or have to do it manually.)
<P>
Note that some program authors are not that "polite" about making up their
tarballs: sometimes, untarring one dumps the entire list of files in the
current directory. What a mess, especially if it's in your home directory!
Several dozen files intermixed with yours; a bunch of directories, too -
and it gets much worse if some of these have the same name as your files
(not that yours will be overwritten, but it's still a mess) or your
directories (stuff will get dumped into them which you would have to then
fish out.) How rude! This is why I like to peek into tarballs and copy,
instead of just wholesale untarring. For those who don't use Midnight
Commander or another file manager that's capable of looking inside a
tarball, just do
</P>
<P><PRE>tar tvf <filename>
</PRE></P>
<P>
This will show you the contents of it - and if everything isn't prefixed
with a directory name, beware! Well, not really: all you have to do is
create a directory (if you make it the same as the tarball "progname", you
won't lose track of what it is, later) and untar the file inside it.
</P>
<P><PRE>mkdir rudeprogram-6.66
tar xvf rudeprogram-6.66.tgz -C rudeprogram-6.66
</PRE></P>
<P>
Now, all of the files from the "rudeprogram" tarball will be extracted to
the specified subdirectory.
</P>
Fortunately, the author of "cuyo" is a polite fellow (as most authors are),
and "cuyo" was tarred up in a subdir of its own. Inside it, there was the
list of files, including the ones that you should always check out prior to
starting operations: "README" and "INSTALL". The first is usually the
author's instructions, recommendations, etc. The second is fairly standard
- it's a file that explains the operation of "configure", an extremely cool
program usually created by "autoconf" that will check out your system and
correctly (well, usually) set up the Makefile, which is what we need to
compile the program. The huge advantage of this is that, if the author was
careful in writing his program, "configure" will create the correct
Makefile on any version of Unix - and perhaps even other OSs.
<P>
Allow me to digress for a moment: some programs are so simple that they do
not require "configure", and simply come with a Makefile (these may be
capitalized or all lower-case). Others are simpler yet - all you see is a
single "progfile.c", or "progfile.cc". With these, compilation consists of
simply running "make" in the first case, or "cc progfile.c -o progfile" in
the second.
</P>
Anyway - I ran "configure" in the "cuyo" subdir; it chewed on my system for
a while, which is its job, and built me a Makefile. Wasn't that nice of it?
:) There was a bit of a problem, though: "configure" prints out messages as
it runs, and warns you in case of failures (usually by stopping and
printing an error.) The message that it gave me - without stopping, however
- was
<P>
<P><PRE>checking the Qt meta object compiler... (cached) failure
configure: warning: Your Qt installation seems to be broken!
</PRE></P></P>
Hmm. Well, it built the makefile, anyway. Usually, the non-fatal errors
just mean that you won't get some of the features of the program, but it
will still compile. Well, let's try it.
<P>
I then ran "make" - just by typing "make" on the command line, which by
default reads the "Makefile" (or "makefile"), and follows the commands
specified in target "all" and, ...
</P>
Ooops. It failed.
<P>
It was at this point that I decided to write this article. I hadn't been
thinking of doing that; I actually had lot s of work to do this month - but
I believe that installing from tarballs is a skill that is necessary for
any Linux user, and my thought here was to document the process, including
troubleshooting installations that go wrong. It's something I struggled
with in my early Linux days, and I'd like to save others at least a bit of
that pain. :)
</P>
So. We go bravely on. When I say that it failed, exactly what did I see?
Well, a "make" should run without errors. Sometimes - often - you'll get
warnings, which are not the same thing; your libraries may be slightly
different, or perhaps your compiler is a bit more strict about declarations
- but these are usually not fatal. The errors that drop you out of a
compile without finishing it - those are the ones that we have to fix. So,
here's what it all looked like:
<P>
<P><PRE>Baldur:/tmp/cuyo-1.03$ make
make all-recursive
make[1]: Entering directory `/tmp/cuyo-1.03'
Making all in src
make[2]: Entering directory `/tmp/cuyo-1.03/src'
c++ -DHAVE_CONFIG_H -I. -I. -I.. -DPKGDATADIR=\"/usr/local/share/cuyo\"
-Wall -ansi -pedantic -c bildchenptr.cpp
In file included from bildchenptr.h:21,
from bildchenptr.cpp:18:
inkompatibel.h:13: qglobal.h: No such file or directory
make[2]: ** [bildchenptr.o] Error 1
make[2]: Leaving directory `/tmp/cuyo-1.03/src'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/tmp/cuyo-1.03'
make: * [all-recursive-am] Error 2
Baldur:/tmp/cuyo-1.03$
</PRE></P></P>
The error begins at the line that starts with "In file included...", and
ends with (at least the part we want) "...qglobal.h: No such file or
directory". OK - we're missing a header file. I took a quick look through
the source tree of "cuyo", just to make sure that the author didn't forget
to include one of his own files (yeah, it happens) - nope. Must be one of
mine - that is, his program must be looking for a file that comes with a
library which I need to have on my system for his program to compile. Hmm.
Which one? Whichever one contains "qglobal.h", of course.
<P>
On my system, I have set up several scripts to help me with standard
installation tasks. One of these is "pkgf" - it finds whatever file I'm
looking for in the entire Debian distro, and tells me in what package that
file exists (this is not the same as "dpkg -S <file>", which does that for
installed packages only.) If you use Debian, you can get the same
functionality by downloading the current "Packages.gz" from
<A HREF="ftp://ftp.debian.org"><ftp://ftp.debian.org></A> and "zgrep"ping through it for the name of the file
- or, just go to <A HREF="http://www.debian.org/Packages"><http://www.debian.org/Packages></A> and use their search
utility. The point is to find which package contains "qglobal.h" and
install it.
</P>
<P><PRE>pkgf "qglobal.h"
usr/include/qt/qglobal.h devel/libqt-dev
devel/libqt3-emb-dev
devel/libqt3-dev
devel/libqt-emb-dev
</PRE></P>
<P>
Well, well - it looks like I have a choice of packages. OK, "libqt3-dev"
looks like the latest thing:
</P>
<P><PRE>apt-get install libqt3-dev
</PRE></P>
<P>
The installation went fairly quickly, and... I got the same error when I
re-ran "make". And so would you. So, <B>don't do that</B>. The thing to remember
here (and I knew that I would get the error - I did this to make a point)
is that you already ran "./ configure": the old (broken) values are still
in the Makefile, as well as in several other files, so, rather than wasting
time and trying to find out where they may be:
</P>
<P><PRE>ben@Baldur:/tmp/cuyo-1.03$ cd ..
ben@Baldur:/tmp$ rm -rf cuyo-1.03
ben@Baldur:/tmp$ tar xvzf ~/TGZs/cuyo-1.03.tar.gz -C .
ben@Baldur:/tmp$ cd cuyo-1.03
</PRE></P>
<P>
In other words, I just blew away the entire "cuyo" directory and replaced
it with a fresh copy of the source. This is a good rule of thumb in
general: when in doubt, go back to the original sources. Believe it or not,
I learned that trick from a boat mechanic who did extraordinarily good
work. The way Kenny phrased it was "whack it back to the stuff that you
know is good, then build it up from there." I've never seen his advice go
wrong; admittedly, clients tend to scream when you tell them that you have
to throw away the piece of garbage software that they have right now and
replace from the ground up... but after a while, the word spreads: "Hey,
this guy's work is good." You might lose some jobs that way - I know I do -
but, like Kenny, I'm not willing to have my name on a piece of garbage.
</P>
I know, I know - I'm talking about things that are more generalized than
just a plain old tarball install. The thing is, the philosophy of how you
do things has to come from somewhere - and it's best if you figure out how
you're going to do things before you actually do them, overall methodology
as well as job specifics. OK, so, back to the main question - did it work
or not???
<P>
<P><PRE>ben@Baldur:/tmp/cuyo-1.03$ ./configure
<No errors>
ben@Baldur:/tmp/cuyo-1.03$ make
<lots of output elided>
make[2]: Leaving directory `/tmp/cuyo-1.03/src'
Making all in data
make[2]: Entering directory `/tmp/cuyo-1.03/data'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/cuyo-1.03/data'
Making all in docs
make[2]: Entering directory `/tmp/cuyo-1.03/docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/cuyo-1.03/docs'
make[2]: Entering directory `/tmp/cuyo-1.03'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/tmp/cuyo-1.03'
make[1]: Leaving directory `/tmp/cuyo-1.03'
ben@Baldur:/tmp/cuyo-1.03$
</PRE></P></P>
Ta-daaa!!! No errors - and when I enter the "cuyo-1.03/src" directory,
there's a very nice-looking executable called "cuyo" sitting in there. At
this point, if I wanted to continue the installation (rather than just
testing the game to see if I like it), I would type
<P>
<P><PRE>make install
</PRE></P></P>
This would read the Makefile and execute all the commands under the
"install" target which would most likely install the executable[s], the man
pages, and the documentation. However, I tend to play with the program
first, and see if I like it - most tarball makefiles do not include an
"uninstall" target (which I think is a shame; that would make tarball
packages almost as easy to install and remove as it is, say, RPMs or DEBs.)
<P>
To recap the entire tarball install:
</P>
<P><PRE>1) Check if it contains a directory or just (how rude!) scattered files
2) Untar into a directory under "/tmp" or "~/tmp"
3) Run "configure" if it exists.
4) Run "make", or "cc" if it's just a plain single "file.c" or "file.cc"
5) Run "make install" if the result is what you wanted.
</PRE></P>
<P>
That's pretty much it. Note that I did not discuss security anywhere in
here (do you really trust the author of this tarball or package? You're not
logged in as root while playing with that binary, right?), nor many of the
other issues that pertain to system administration; these issues are very
important and highly pertinent, but outside the scope of this short
article. The wise system administrator - and that, my dear home Linux user,
is <I>you</I>; there isn't anyone else for your machine! - will read much, think
deeply, and consider wisely.
</P>
Good luck, and may all your dependencies end up being resolved ones. :)
<P>
Ben Okopnik
</P>
</BODY></HTML>
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Ben Okopnik</H4>
<EM>A cyberjack-of-all-trades, Ben wanders the world in his 38' sailboat, building
networks and hacking on hardware and software whenever he runs out of cruising
money. He's been playing and working with computers since the Elder Days
(anybody remember the Elf II?), and isn't about to stop any time soon.</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, Ben Okopnik.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">The Foolish Things We Do With Our Computers</font></H1>
<H4>By <a href="mailto:gazette@ssc.com">Mike "Iron" Orr</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
The submissions to this column have slowed down. There's only one this month.
<H2>Video Memory</H2>
By <A HREF="mailto:zhoupp@yahoo.com">John Joe</A>
<P> I read "The Foolish Things We Do To Our Computers" and I
have a story of my own.
<P> I have a Trident 9680 display card, bought in 1996.
Recently, uncertain
parts of the screen were blurred in both M$ Windows
and Debian/Linux. When I
screen capture, some pixels' values are wrong. this
makes me think the
monitor is OK. If refresh, they may be clear, they may
not. Finally I
decided to buy a new old card, a fake S3 card and the
screen is OK. the S3
card has 1M memory. I try to add 1M from the 9680
card. I used a screwdriver
to get memory from 9680 and failed. I'd never added
display memory before. I
feared i might destroy display memory. The fake S3 had
difficulty when probed by
XFree86, so I plugged the 9680 back in. This time the screen is
OK!
<P> I guess that when the screwdriver touched the display
memory on 9680, static
electric charge on it might be released.
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Mike Orr</H4>
<EM>Mike ("Iron") is the Editor of <I>Linux Gazette</I>. You can read what he has
to say in the Back Page column in this issue. He has been a Linux enthusiast
since 1991 and a Debian user since 1995. He is SSC's web technical
coordinator, which means he gets to write a lot of Python scripts.
Non-computer interests include Ska/Oi! music and the international language
Esperanto. The nickname Iron was given to him in college--short for Iron Orr,
hahaha.</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, Mike "Iron" Orr.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">LG's Funniest Moments, part 1</font></H1>
<H4>By <a href="mailto:gazette@ssc.com">Mike "Iron" Orr</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<P> To begin the new year, I'm starting a new series "LG's Funniest Moments".
It's a look back at the most hilarious quotes and images from the back issues,
as well as a kind of rough timeline of LG milestones. (Maybe next year
we'll make a <EM>real</EM> timeline....) This month, we'll look at issues
#1 - 11, July 1995 - September 1996.
<P> John Fisk -- LG's illustrious founder, editor of issues #1 - 8,
originator of the Weekend Mechanic column, and all-around swell guy --
introduced the two
<A HREF="../issue01to08/gazette_toc.html">LG slogans</A>/goals/mission
statements all the way back in issue #8 or earlier:
<EM><STRONG>Making Linux just a little bit more fun</STRONG></EM>, and
<EM><STRONG>Sharing ideas and discoveries</STRONG></EM>.
<P> In
<A HREF="../issue01to08/linux_gazette.html">issue #1</A>,
John explained,
"So what <EM>is</EM> the Linux Gazette?"</A>. He answered,
'Primarily writings, ramblings, and other stuff...
and then playing around with things until they either worked or broke
(fortunately, mostly the former :-), Linux finally began to make sense to me.
If you're in the same boat... keep paddling!"
<P>
<A HREF="../issue01to08/linux_gazette.aug.html">Issue #2</A>
showed the first hint of the LG FTP files, although it took several issues to
find a host for the archive. Also, commenting on the formats LG would be
available in, John remarks,
"And if ANYONE broaches the subject of a PostScript file... No."
<P> Typical of John's writing style is
<A HREF="../issue01to08/linux_gazette.aug.html#tar_tricks">this quote</A>:
<BLOCKQUOTE>
Whereas UN*X barely belches when you innocently type in
<PRE>
su
cd / ; rm -rf *
</PRE>
just because your smart aleck roommate told you it'd help clean out some unnecessary
files.
</BLOCKQUOTE>
<P> <A HREF="../issue01to08/linux_gazette.sep.html">Issue #3</A> saw the
inauguration of the first LG FAQ, the first Mailbag and the first 2-Cent Tips.
A few quotes:
<UL>
<LI> <A HREF="../issue01to08/linux_gazette.sep.html#tips">2-Cent Tip</A>:
"Well, you're <EM>really</EM> getting tired of having your LINUX BOX referred
to as WussyCakes just because your techno-dweebe buddies got on when you
weren't around and changed your hostname and you can't figure out how to get
it back." John shows you how to change your hostname back to
SuperBadHombreLINUXBox.
<LI> <A HREF="../issue01to08/linux_gazette.sep.html#fvwm">FVWM article</A>:
"As most of you know, the fvwm program stands for F.... Virtual Window Manager.
The meaning of the 'F...' has apparently been lost somewhere in antiquity with
no original manuscripts extant to shed light on its true meaning. Still, if you
read the docs, there have been suggestions that it might stand for 'Feeble,
Fun, Fantastic, ...'. Who knows."
[See what you learn when you read "LG's Funniest Moments"? I bet you never
thought about what the "F" stands for.]
<LI> <A HREF="../issue01to08/linux_gazette.sep.html">Another gem of a hint</A>:
"Practice safe X."
</UL>
<P> <A HREF="../issue01to08/linux_gazette.nov.html">Issue #5</A> says LG is now
freely available for mirroring. It also gives an indication of how much
reader participation was already going into building the Gazette:
"Well, I've had so much mail recently, and so many great suggestions and such
that this month's LG is "dedicated" to those of you that have written."
<P> <A HREF="../issue09/index.html">Issue #9</A> was the issue that John
Fisk turned LG over to SSC, and Marjorie Richardson became the editor, a
position she would hold for almost three years. (I'm LG's third editor.)
During that time, she gave herself successive promotions, from mere Editor to
Overseer, and finally to Ruler of the Gazette. (By the way, now is the time to
give SSC a bit of recognition. People wondered whether LG would remain free.
Five years later, it still is.)
<P> Issue #9 also shows the inauguration of the TWDT files. John Fisk
published LG with the entire issue in one HTML file. Margie found it more
convenient to put each article in a separate file. However, LG's
most-requested feature immediately became a return to the one-file format.
Margie finally threw up her hands and said, "OK, here's The Whole Damn Thing",
and TWDT became a parallel file in each issue. Nowadays, we don't say "damn"
because of a controversy that erupted a couple years later, but you'll have to
wait till a future "LG's Funniest Moments" to read about <EM>that</EM>. So we
euphemize it to "TWDT" and "the all-in-one file".
<P> Margie's first issue also introduced much of the artwork and formatting
styles that LG is still using. However, the logo was different. It looked
like this:
<IMG ALT="[old LG logo]" SRC="../gx/banner.gif" WIDTH="593" HEIGHT="112"
VSPACE="10">
<P> <A HREF="../issue11/index.html">Issue #11</A>, October 1996, has nice
binder rings on the left side of the title page, some of the common artwork
icons we occasionally recycle (the penguin reading the newspaper, the
Weekend Mechanic looking under the hood of his car), John Fisk's first
<A HREF="../issue11/wkndmech.html">Weekend Mechanic</A> column and Michael
Hammel's first <A HREF="../issue11/gm.html">Graphics Muse</A> column. #11 also
started what has become a Halloween tradition: changing the slogan from
"Making Linux just a little more fun!" to "Making Linux just a little less
scary!", with a jack-o'lantern image.
<P> Not to be missed are
<A HREF="../issue11/lg_tips11.html#emacs">Rick Bronson's thumbs-up
signature</A>, and
<A HREF="../issue11/lg_tips11.html#vi">John R Potter's 2-Cent Tip</A> that
begins, " I thought you might
be interested in my favorite vi trick, which is not a vi trick at all."
<P> Next month, I'll look at the next ten issues or so. See you then.
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Mike Orr</H4>
<EM> Mike ("Iron") is the Editor of <I>Linux Gazette</I>. You can read what he
has to say in the Back Page column in this issue. He has been a Linux
enthusiast since 1991 and a Debian user since 1995. He is SSC's web technical
coordinator, which means he gets to write a lot of Python scripts.
Non-computer interests include Ska/Oi! music and the international language
Esperanto. The nickname Iron was given to him in college--short for Iron Orr,
hahaha.</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, Mike "Iron" Orr.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">The Cute Game 'Cuyo'</font></H1>
<H4>By <a href="mailto:gazette@ssc.com">Mike "Iron" Orr</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<P> A new game appeared in Debian this month, and it's so cute I
have to write about it. Here's the Debian description:
<BLOCKQUOTE>
Description: Tetris-like game with very impressive effects.
Cuyo, named after a Spanish possessive pronoun, shares
with Tetris that things fall down and how to navigate them.
When enough "of the same type" come "together", they explode.
The goal of each level is to blow special "stones" away, you
start with. But what "of the same type" and "together" means,
varies with the levels. If you hear someone shout that a dragon
is always burning his elephants, so that he is not able to blow
the volcano away, there a good chances to find Cuyo on his screen.
WARNING: It is known to successfully get many people away from
more important things to do.
</BLOCKQUOTE>
<H2>Level 1 screenshots</H2>
<P>
<IMG ALT="[screenshot]" SRC="misc/orr3/1.png" HSPACE="10" VSPACE="10" BORDER="2">
<P> The object is to join like colors together. They don't all have to be in a
straight line, they just have to be next to each other.
<BR>
<IMG ALT="[screenshot]" SRC="misc/orr3/3.png" HSPACE="10" VSPACE="10" BORDER="2">
<P> When you get enough like colors joined, they disappear with a
"poof"!
<BR>
<IMG ALT="[screenshot]" SRC="misc/orr3/4.png" HSPACE="10" VSPACE="10" BORDER="2">
<P> You also get these gray little Pac-Man ghosties, of unknown purpose.
<BR>
<IMG ALT="[screenshot]" SRC="misc/orr3/6.png" HSPACE="10" VSPACE="10" BORDER="2">
<P> When one side gets the bottom row taken out, the bottom row slides over from
the other side. In the previous panel, the grass has already slid right, which
is why there are two layers of grass. Now in the next panel, the second row of
grass has slid up, and a row of ghosties is sliding right, to go underneath it.
<BR>
<IMG ALT="[screenshot]" SRC="misc/orr3/7.png" HSPACE="10" VSPACE="10" BORDER="2">
<H2>Level 2 screenshots</H2>
The same principles apply here but the theme is different.
<BR>
<IMG ALT="[screenshot]" SRC="misc/orr3/8.png" HSPACE="10" VSPACE="10" BORDER="2">
<IMG ALT="[screenshot]" SRC="misc/orr3/10.png" HSPACE="10" VSPACE="10" BORDER="2">
<IMG ALT="[screenshot]" SRC="misc/orr3/11.png" HSPACE="10" VSPACE="10" BORDER="2">
<H2>Other comments</H2>
Get the package from Debian Unstable or download the source from the original
site: <A HREF="http://www.karimmi.de/cuyo/">http://www.karimmi.de/cuyo/</A>.
Poor Ben tried to install from source and and found he was missing some QT
library files, as you can read about in <A HREF="okopnik.html">his article</A>.
<P> Ben wasn't happy about the fact that the window isn't resizable. This
caused him problems when an 800x600 window took over his 800x600 screen and he
couldn't reach for his taskbar. To me, the problem is insignificant since my
screen is 1152x864.
<P> I hope the next version has even more cool themes!
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Mike Orr</H4>
<EM> Mike ("Iron") is the Editor of <I>Linux Gazette</I>. You can read what he
has to say in the Back Page column in this issue. He has been a Linux
enthusiast since 1991 and a Debian user since 1995. He is SSC's web technical
coordinator, which means he gets to write a lot of Python scripts.
Non-computer interests include Ska/Oi! music and the international language
Esperanto. The nickname Iron was given to him in college--short for Iron Orr,
hahaha.</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, Mike "Iron" Orr.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Qubism</font></H1>
<H4>By <a href="mailto:sirflakey@core.org.au">Jon "Sir Flakey" Harsem</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<P>
<IMG ALT="[cartoon]" SRC="misc/qubism/qb-gingerisp-s.jpg"
WIDTH="600" HEIGHT="240">
<BR CLEAR="all">
<IMG ALT="[cartoon]" SRC="misc/qubism/qb-cat5-s.jpg"
WIDTH="600" HEIGHT="240">
<BR CLEAR="all">
<IMG ALT="[cartoon]" SRC="misc/qubism/qb-cpu-s.jpg"
WIDTH="600" HEIGHT="240">
<BR CLEAR="all">
<IMG ALT="[cartoon]" SRC="misc/qubism/qb-shareprice-s.jpg"
WIDTH="600" HEIGHT="240">
<BR CLEAR="all">
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Jon "SirFlakey" Harsem</H4>
<EM>Jon is the and creator of the Qubism cartoon strip and current
Editor-in-Chief of the
<A HREF="http://www.core.org.au/">CORE</A> News Site.
Somewhere along the early stages of
his life he picked up a pencil and started drawing on the wallpaper. Now
his cartoons appear 5 days a week on-line, go figure. He confesses to
owning a Mac but swears it is for "personal use".</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, Jon "Sir Flakey" Harsem.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Writing Documentation, Part II: LaTeX with latex2html</font></H1>
<H4>By <a href="mailto:cspiel@hammersmith-consulting.com">Christoph Spiel</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<h3><a name="latex">LaTeX</a></h3>
<p>Let me first define what LaTeX is and what its primary goals are. LaTeX is
a huge add-on macro package for the TeX typesetting system developed by
Prof. Donald E. Knuth. If we are not overly picky, we mean
``TeX plus all LaTeX macros'' when we say ``LaTeX system'' or just ``LaTeX''.
LaTeX itself was written by Leslie Lamport, who found TeX to be very powerful,
but too difficult for everyday use. Therefore he modeled LaTeX after the
Scribe system. Scribe puts its emphasis on the logical structure of a document
instead of the physical markup. (For those readers proficient in HTML
tag <code><em></code> is an example logical markup and tab
<code><i></code> is the corresponding physical markup.)</p>
<p>LaTeX -- as plain TeX -- allows a normal computer user to
typeset documents with production-ready quality. It has been intended that a
LaTeX author prepares articles or even books on her local computer, then walk
over to the printer shop with a diskette to have the document printed on a
high-resolution phototypesetter, and finally have it bound as a book (...
shipped off the book to all bookstores in the alpha-quadrant, make millions
from it, and two years later win the Intergalactic Pulitzer Prize. -- OK, this
is a bit of a stretch).</p>
<p>In the next sections I will introduce very briefly to LaTeX, but I would
like to recommend the <em>Not So Short Introduction to LaTeX</em> to everyone
who wants to learn LaTeX. The 95-pages document is available for free on the
Net. Please see ``<a href="#further reading">Further Reading</a>'' for
details.</p>
<p>LaTeX gets installed by most current Linux distributions. You can check
whether it is available on your machine by asking</p>
<pre>
latex --version
</pre>
<p>at the command line. My system responds with</p>
<pre>
TeX (Web2C 7.3.1) 3.14159
kpathsea version 3.3.1
Copyright (C) 1999 D.E. Knuth.
Kpathsea is copyright (C) 1999 Free Software Foundation, Inc.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the GNU General Public License.
For more information about these matters, see the files
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
Kpathsea written by Karl Berry and others.
</pre>
<h4><a name="overall document structure">Overall Document Structure</a></h4>
<p>Here is an example of a very short, yet complete LaTeX document:</p>
<pre>
\documentclass{article}
% preamble
</pre>
<pre>
\pagestyle{empty}
</pre>
<pre>
\begin{document}
% body
Here comes the text.
\end{document}
</pre>
<p>Every LaTeX document consists of a preamble and a body. The preamble
reaches from the definition of the document's class, <code>
\documentclass[</code><em>options</em><code>]</code>{<em>class</em><code>}</code>,
up to, but excluding <code>\begin{document}</code>. The body is everything
from <code>\begin{document}</code> to <code>\end{document}</code>.</p>
<p>The preamble in the example features only one command, <code>
\pagestyle{empty}</code>, which instructs LaTeX to omit all page decorations
such as running heads or page numbers. The percent signs introduce comments
that extend to the ends of the respective lines.</p>
<h4><a name="syntax">Syntax</a></h4>
<dl>
<dt><strong><a name="item_Paragraphs">Paragraphs</a></strong><br>
</dt>
<dd>Paragraphs are separated by one or more blank lines. The number of blank
lines does not influence the output; one is as good as many. The same holds
true for spaces (which separate words, but didn't you know that?): one hundred
spaces produce the same output as a single space. Newlines, this is
line-terminators, are counted as spaces, so are tabulator characters.
<p>If we apply these simple rules to the three different versions of two
paragraphs that follow, we conclude that they all will be typeset the same. I
have added line numbers at the beginning of each line to point out empty
lines, which separate the paragraphs. The numbers are not part of the
text.</p>
<dl>
<dt><strong><a name="item_Version_A">Version A</a></strong><br>
</dt>
<dd>
<pre>
1 I am a short sentence in the first paragraph.
2
3 I'm the only sentence in the second paragraph.
</pre>
</dd>
<dt><strong><a name="item_Version_B">Version B</a></strong><br>
</dt>
<dd>
<pre>
1 I am a short sentence
2 in the first paragraph.
3
4 I'm the
5 only sentence
6 in the second
7 paragraph.
</pre>
</dd>
<dt><strong><a name="item_Version_C">Version C</a></strong><br>
</dt>
<dd>
<pre>
1 I am a short sentence in the first paragraph.
2
3
4 I'm the only sentence
5 in the
6 second paragraph.
</pre>
</dd>
</dl>
</dd>
<dt><strong><a name="item_Special_Characters">Special
Characters</a></strong><br>
</dt>
<dd>Most non-alphanumeric characters carry a special meaning inside LaTeX.
This is one of the features that appalls LaTeX beginners. However, after some
time, the user is alert of their particular behavior.
<p>I have collected the few most important special characters along with the
ways how to insert them literally into a text.</p>
<dl>
<dt><strong><a name="item_%5C">\</a></strong><br>
</dt>
<dd>Introduce a command, like ``<code>\dots</code>'' or ``<code>\/</code>''.
<p>Note that ``<code>\\</code>'' does not insert a single backslash character
into the text as many C-programmers might assume right now. The control
sequence ``<code>\\</code>'' inserts a line break, whereas a literal
backslash is produced by ``<code>$\backslash$</code>''. To maximize the
confusion, ``<code>\ </code> ''--this is a backslash followed by a blank
space--is a command, too! It inserts a so-called control space, a space (more
precisely: exactly one space) that is never eaten up like ordinary spaces as
explained in section <a href="#item_paragraphs">``Paragraphs''</a>.</p>
</dd>
<dt><strong><a name="item_%7B%7D">{}</a></strong><br>
</dt>
<dd>Group arguments together.
<p>You get literal curly braces by quoting them with a backslash like this
``<code>\{</code>'' and ``<code>\}</code>''.</p>
</dd>
<dt><strong><a name="item_%25">%</a></strong><br>
</dt>
<dd>Start a comment that reaches to the end of the line.
<p>Comments extend up to and include the newline character at the end of a
line. Thus LaTeX comments differ from one-line comments in all general
programming languages, as those exclude the newline character. For the user
this means, he can mask a newline by ending a line with a comment.</p>
<pre>
Hessenberg-%
Triangular % <- note space directly in front of the %-sign
Reduction
</pre>
<p>is equivalent to</p>
<pre>
Hessenberg-Triangular Reduction
</pre>
<p>To typeset a literal percent sign, use ``<code>\%</code>''.</p>
</dd>
<dt><strong><a name="item_%7E">~</a></strong><br>
</dt>
<dd>Make an unbreakable space, like ``&nbsp;'' in HTML.</dd>
<dt><strong><a name="item_%24math%24">$<em>math</em>$</a></strong><br>
</dt>
<dd>Switch to math mode and back.
<p>The sequence <em>math</em> is typeset inline in mathematical
typesetting mode. To get a literal dollar sign, use ``<code>\$</code>''.</p>
</dd>
</dl>
<p>The following table summarizes all ASCII characters that are treated
specially by LaTeX. The rightmost column of the table suggests one or
more possible equivalent sequences to get the plain ASCII character into
the text. As can be guessed from the entries for caret and twiddle,
<code>\char</code><em>code_number</em> inserts the ASCII character with
the decimal index <em>code_number</em> into a document.</p>
<BLOCKQUOTE>
<CITE>
ASCII characters that are special for LaTeX. The right column
denotes the strings (in LaTeX) which produce the ASCII
characters in the middle column.
</CITE>
</BLOCKQUOTE>
<table align="center" border="1" summary="The table provides a
conversion from ASCII characters to LaTeX.">
<tr align="center">
<th>Name</th>
<th>ASCII</th>
<th>LaTeX</th>
</tr>
<tr>
<td>sharp</td>
<td><code>#</code></td>
<td><code>\#</code></td>
</tr>
<tr>
<td>dollar</td>
<td><code>$</code></td>
<td><code>\$</code></td>
</tr>
<tr>
<td>percent</td>
<td><code>%</code></td>
<td><code>\%</code></td>
</tr>
<tr>
<td>ampersand</td>
<td><code>&</code></td>
<td><code>\&</code></td>
</tr>
<tr>
<td>multiplication sign</td>
<td><code>*</code></td>
<td><code>*</code> or <code>$*$</code></td>
</tr>
<tr>
<td>minus sign</td>
<td><code>-</code></td>
<td><code>$-$</code></td>
</tr>
<tr>
<td>less-than sign</td>
<td><code><</code></td>
<td><code>$<$</code></td>
</tr>
<tr>
<td>greater-than sign</td>
<td><code>></code></td>
<td><code>$>$</code></td>
</tr>
<tr>
<td>backslash</td>
<td><code>\</code></td>
<td><code>$\backslash$</code></td>
</tr>
<tr>
<td>caret</td>
<td><code>^</code></td>
<td><code>\char94</code></td>
</tr>
<tr>
<td>underscore</td>
<td><code>_</code></td>
<td><code>\_</code></td>
</tr>
<tr>
<td>curly braces</td>
<td><code>{</code>, <code>}</code></td>
<td><code>\{</code>, <code>\}</code></td>
</tr>
<tr>
<td>vertical bar</td>
<td><code>|</code></td>
<td><code>$|$</code></td>
</tr>
<tr>
<td>twiddle</td>
<td><code>~</code></td>
<td><code>\char126</code></td>
</tr>
</table>
</dd>
<dt><strong><a name="item_Commands">Commands</a></strong><br>
</dt>
<dd>LaTeX commands usually start with a backslash
character ``<code>\</code>'' and either extend from the backslash to the
next non-letter character (kind 1) or consist of exactly one
non-alphanumeric character (kind 2). So ``<code>\raggedleft</code>'' and
``<code>\makebox</code>'' are commands of kind 1 whereas
``<code>\\</code>'' and ``<code>\"</code>'' are commands of kind 2.
Arguments are passed to commands within curly braces ``{'', ``}''.
Empty arguments can be omitted.
<p>Examples:</p>
<pre>
\raggedleft{} % no argument
\raggedleft % same as above
</pre>
<pre>
\makebox{Text inside of a box.} % single argument
</pre>
<pre>
\parbox{160pt}{This text is
typeset inside of a box.} % two arguments
</pre>
<p>The number of arguments passed to a command is fixed. However, some
commands accept optional parameters. These are passed within square brackets
(``<code>[</code>'', ``<code>]</code>'') and usually precede the arguments
just as the options precede the arguments in most UN*X utility programs.</p>
<p>Example:</p>
<pre>
\parbox[t]{10cm}{I am a top-aligned
paragraph.} % one option, two arguments
</pre>
<p>Here <code>t</code> is the optional parameter.</p>
<p>Spaces that follow a type 1 command name without arguments (like the
second ``<code>\raggedleft</code>'' above) are ``eaten''; they are not passed
on to the output.</p>
</dd>
<dt><strong><a name="item_Environments">Environments</a></strong><br>
</dt>
<dd>Environments are pairs in the form
<p><code>\begin{</code><em>environment</em><code>}</code></p>
<p><em>Text within the environment.</em></p>
<p><code>\end{</code><em>environment</em><code>}</code></p>
<p>An environment changes the appearance of the text within it. Environments
control the alignment, the width of the margins and many other things. Some
predefined environments are: <code>center</code>, <code>description</code>,
<code>enumerate</code>, <code>flushleft</code>, <code>flushright</code>,
<code>itemize</code>, <code>list</code>, <code>minipage</code>, <code>
quotation</code>, <code>quote</code>, <code>tabbing</code>, <code>
table</code>, <code>tabular</code>, <code>verbatim</code>, and <code>
verse</code>.</p>
<p>Environments do nest. For example, to get a quotation typeset flush against
the right margin, use the <code>flushright</code> environment and the <code>
quotation</code> environment.</p>
<pre>
\begin{flushright}
\begin{quotation}
Letters are things, \\
not pictures of things. \\
-- Eric Gill
\end{quotation}
\end{flushright}
</pre>
<p>An environment only affects text inside of it; it encapsulates all changes,
like a different indentation occurring within the environment. (Well -- unless
you happen to change a global variable, but I won't tell you how to do that,
so you're safe.)</p>
</dd>
</dl>
<h4><a name="sectioning">Sectioning</a></h4>
<p>LaTeX knows three or four heading levels depending on the <em>
documentclass</em>. Class <code>article</code> has three section levels,
whereas classes <code>book</code> and <code>report</code> feature
chapters as a fourth and topmost heading level.</p>
<p><code>\chapter{</code><em>heading</em><code>}</code> % only for class
<code>book</code> and <code>report</code></p>
<p><code>\section{</code><em>heading</em><code>}</code></p>
<p><code>\subsection{</code><em>heading</em><code>}</code></p>
<p><code>\subsubsection{</code><em>heading</em><code>}</code></p>
<p>Note that as in POD, discussed in <a href=
"http://www.linuxgazette.com/issue73/spiel.html">Part I</a>, sectioning
commands act as separators. They do not group together text with a start
marker and an end marker, but their mere appearance groups the text. This will
be different in DocBook, as I shall show in next month's article.</p>
<h4><a name="lists">Lists</a></h4>
<p>LaTeX ships with three kinds of list-generating environments:</p>
<ul>
<li>itemized lists (sometimes also called ``bulleted lists''),</li>
<li>enumerated lists, and</li>
<li>description lists.</li>
</ul>
<p>They correspond to unnumbered lists, numbered lists, and definition lists
in HTML, or <code>=item *</code>, <code>=item 1</code>, <code>
=item</code> <em>term</em> lists in POD.</p>
<p>The items themselves are introduced with ``<code>\item</code>''. An item
can consist of more than one paragraph.</p>
<p>For description lists the optional parameter given to
``<code>\item</code>'' as in
``<code>\item[</code><em>term</em><code>]</code>'' specifies the <em>
term</em>. The text following
``<code>\item[</code><em>term</em><code>]</code>'' is <em>term</em>'s
definition.</p>
<p>Examples:</p>
<dl>
<dt><strong><a name="item_Itemized_List">Itemized List</a></strong><br>
</dt>
<dd>
<pre>
What emacs can do for you:
\begin{itemize}
\item Cut and paste blocks of text
\item Fill or justify paragraphs
\item Spell check documents
\end{itemize}
</pre>
</dd>
<dt><strong><a name="item_Enumerated_List">Enumerated List</a></strong><br>
</dt>
<dd>
<pre>
Starting emacs for the first time
\begin{enumerate}
\item Start emacs from the command line:
</pre>
<pre>
\texttt{\$ emacs}
</pre>
<pre>
emacs will show you its startup screen and soon switch to a
buffer called \texttt{*scratch*}.
</pre>
<pre>
\item Hold down the Control~key and press~H. You see a prompt
at the bottom of the screen (or emacs window).
</pre>
<pre>
\texttt{C-h (Type ? for further options)-}
</pre>
<pre>
\item Press~T to start the emacs tutorial.
\end{enumerate}
</pre>
</dd>
<dt><strong><a name="item_Description_List">Description List</a></strong><br>
</dt>
<dd>
<pre>
Some emacs commands:
\begin{description}
\item[C-x C-c] Quit emacs.
\item[C-x f] Open a file.
\item[C-x r k]
Kill rectangle defined by mark and point, this is, by the
active region.
\end{description}
</pre>
</dd>
</dl>
<h4><a name="crossreferences">Cross-References</a></h4>
<p>All cross references need two parts: a pointer (the link) and a pointee
(the anchor). Anchors in LaTeX are inserted with <code>
\label{</code><em>anchor-name</em><code>}</code>. Every anchor is located in a
particular section and on a particular page. These two pieces of information
are retrieved with <code>\ref{</code><em>anchor-name</em><code>}</code> and
<code>\pageref{</code><em>anchor-name</em><code>}</code> at any place in the
document.</p>
<p>Example use of <code>\ref</code>:</p>
<pre>
\section{Setup}\label{section:setup}
...
</pre>
<pre>
\section{Summary}\label{section:summary}
As has been pointed out in section~\ref{section:setup} `Setup', ...
</pre>
<p>Example use of <code>\pageref</code>:</p>
<pre>
\section{Setup}\label{section:setup}
The steel used in the sample chamber is alloyed with Ti (0.5\%),
Cr (0.1\%), and Mn (0.1\%).\label{definition:chamber-alloy}
</pre>
<pre>
\section{Experiments}\label{section:experiments}
For sample chamber is made of stainless steel (see
page~\pageref{definition:chamber-alloy} for the exact
metallurgical composition), ...
</pre>
<h4><a name="defining your own commands and environments">Defining Your Own
Commands and Environments</a></h4>
<p>One of the major advantages of the LaTeX typesetting system is to allow the
user to define her own commands and environments. Say you want to mark up all
replaceable parameters in the description of a UN*X utility, like in</p>
<pre>
cd directory
</pre>
<p>to be rendered as, for example,</p>
<p><strong>cd</strong> <em>directory</em></p>
<p>Here, <code>cd</code> is the utility's name, and <code>directory</code> is
the replaceable parameter.</p>
<p>Often utility names are typeset in bold face, and replaceable parameters in
italics. Thus, a good solution would be to write</p>
<pre>
\utilityname{cd} \replaceable{directory}
</pre>
<p>where <code>\utilityname</code> and <code>\replaceable</code> switch fonts
to bold face and italics respectively. With the help of <code>
\utilityname</code> and <code>\replaceable</code> we can consistently mark up
further command lines:</p>
<pre>
\utilityname{pushd} \replaceable{directory}
\utilityname{ls} \replaceable{filename}
</pre>
<p>To define a new LaTeX command, use</p>
<p><code>
\newcommand{</code><em>command-name</em><code>}[</code><em>number-of-arguments</em><code>
]{</code><em>command-sequence</em><code>}</code></p>
<p>where <em>command-name</em> is the new command's name, <em>
number-of-arguments</em> is the number of arguments the new command takes (it
defaults to 0 if omitted), and <em>command-sequence</em> are the LaTeX
commands to execute when <em>command-name</em> is called.</p>
<p>For our example, define <code>\utilityname</code> and <code>
\replaceable</code> as:</p>
<pre>
\newcommand{\utilityname}[1]{\textbf{#1}}
\newcommand{\replaceable}[1]{\textit{#1}}
</pre>
<p>The predefined commands <code>\textbf</code> and <code>\textit</code>
switch fonts to text bold face (in contrary to math bold face) and text
italic. Arguments are referred to by <code>#</code><em>digit</em>, where <em>
digit</em> takes on values from 1 to 9.</p>
<p>To give you an impression of the usefulness of our newly defined commands,
suppose we would like to generate an index entry for each utility that is
mentioned in the text. Command <code>\index{</code><em>term</em><code>}</code>
puts <em>term</em> in the index. We only need to modify the definition of
<code>\utilityname</code> to</p>
<pre>
\newcommand{\utilityname}[1]{\textbf{#1}\index{#1}}
</pre>
<p>and are done. (For the curious: index levels are separated with vertical
bars. So, we probably would prefer <code>\index{utility|#1}</code> as it
neatly groups all utilities together. See the documentation of <strong>
makeindex</strong> for details.)</p>
<p>New environments are defined with</p>
<p><code>
\newenvironment{</code><em>environment-name</em><code>}[</code><em>number-of-arguments</em><code>
]{</code><em>starting-sequence</em><code>}{</code><em>ending-sequence</em><code>
}</code></p>
<p>the only difference being that <code>\newenvironment</code> requires two
command sequences: one to open the environment, <em>starting-sequence</em>,
and one to close it, <em>ending-sequence</em>. Continuing the example of a
quotation typeset flush left against the page's margin, we define our own own
quotation environment:</p>
<pre>
\newenvironment{myquotation}% Note: "%" masks newline
{\begin{flushright}\begin{quotation}}%
{\end{quotation}\end{flushright}}
</pre>
<p>which is then used like this:</p>
<pre>
\begin{myquotation}
Letters are things, \\
not pictures of things. \\
-- Eric Gill
\end{myquotation}
</pre>
<p>Neither commands, nor environments can be defined multiple times with
<code>\newcommand</code> or <code>\newenvironment</code>. These commands only
serve first time definition. Redefinitions are done with <code>
\renewcommand</code> and <code>\renewenvironment</code>, which take on the
same arguments as their first-time cousins.</p>
<h4><a name="inline markup">Inline Markup</a></h4>
<p>LaTeX offers an extremely rich set of inline markup. I restrict the
discussion to the same three inline markup changes which I discussed for
Perl's plain old documentation format: emphasis, italics, bold face, and
typewrite (code) font.</p>
<dl>
<dt><strong><a name="item_Emphasis_and_Italics">Emphasis and
Italics</a></strong><br>
</dt>
<dd><code>\textit{</code><em>argument</em><code>}</code> -- Typeset <em>
argument</em> in text italics.
<p><code>\emph{</code><em>argument</em><code>}</code> -- Emphasize <em>
argument</em>. The default configuration switches to and from italics
depending on the current font setting. If the current font is upright, <code>
\emph</code> uses italics; if the current font is italics, it uses an upright
font. This way the emphasized parts of text always stand out.</p>
<p>Why have <code>\textit</code> and at the same time <code>\emph</code>? The
commands express different requests. <code>\textit</code> unconditionally
demands the argument to be typeset using an italics font. Period.
<code>\emph</code> on the other hand asks for emphasizing its argument, however
the emphasizing may look like. The default uses an italics font as explained
above, but <code>\emph</code> can be redefined to use a bold font, underlining,
or anything else the writer imagines for her preferred method of emphasizing.
The command name <code>emph</code> always catches the concept of emphasis and
hides the implementation.</p>
</dd>
<dt><strong><a name="item_Bold_Face">Bold Face</a></strong><br>
</dt>
<dd><code>\textbf{</code><em>argument</em><code>}</code> -- Typeset <em>
argument</em> in text bold face.
<p>Based on <code>\textbf</code>, we can define our own logical markup
commands, like for example</p>
<pre>
\newcommand{\important}[1]{\textbf{#1}}
</pre>
</dd>
<dt><strong><a name="item_Typewriter_Font">Typewriter Font</a></strong><br>
</dt>
<dd><code>\texttt{</code><em>argument</em><code>}</code> -- Typeset <em>
argument</em> in text typewriter font.
<p>As with <code>\textbf</code>, <code>\texttt</code> can be wrapped into
user-defined commands:</p>
<pre>
\newcommand{\sourcecode}[1]{\texttt{#1}}
</pre>
</dd>
</dl>
<h4><a name="latex tool chain">LaTeX Tool Chain</a></h4>
<p>LaTeX files usually carry the extension <em>tex</em>. LaTeX translates
these <em>tex</em>-files into so called device independent (<em>dvi</em>)
files. <em>dvi</em> files are a binary representation of the source. They can
be previewed to <strong>dvisvga</strong> on the console (given the terminal
supports high-resolution graphics), or, for example, <strong>xdvi</strong>
under the X11 windowing system. Often <em>dvi</em> files are converted to
Postscript with the <strong>dvips</strong> tool. If Portable Document Format
is desired, <strong>pdflatex</strong> transforms <em>tex</em> files into <em>
pdf</em> files in a single step.</p>
<h3><a name="latex2html">latex2html</a></h3>
<p>So far so good. LaTeX makes wonderfully looking Postscript documents, and
its <em>pdf</em> sibling does the same, but outputs Portable Document Format
files. Didn't we say we want HTML, too? Sure, we did! But LaTeX cannot help us
here; we need another tool: <strong>latex2html</strong>. This tool transforms
a LaTeX source file into a set of html files that are properly linked together
according to the source file's structure.</p>
<p>latex2html has a home page at <a href="http://www.latex2html.org">
http://www.latex2html.org</a> where it is available for download. It can also
be obtained from <a href="http://www.ctan.org">http://www.ctan.org</a> or
better one of its many mirrors. To see whether it is installed on your Linux
system, try</p>
<pre>
latex2html --version
</pre>
<p>and you should get an answer like</p>
<pre>
This is LaTeX2HTML Version 2K.1beta (1.57)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.
</pre>
<p>What do I have to change to make my LaTeX document translatable with
latex2html? -- Good news: almost nothing! Just ensure that the packages <code>
html</code> and <code>makeindex</code> are referenced in the document's
preamble, this is, at least add</p>
<pre>
\usepackage{html,makeidx}
</pre>
<p>to it. Now file <em>my_document.tex</em> can be translated to HTML
with the call</p>
<pre>
latex2html my_document.tex
</pre>
<h4><a name="references revisited">References Revisited</a></h4>
<p>latex2html takes care of almost all issues that arise when a LaTeX file is
translated into a set of html files. However, references to other parts in the
document or other documents are conceptually different in printed
documentation and HTML. Consider the LaTeX snippet</p>
<pre>
In the following, we summarize the findings
using a cylindrical coordinate system. See
page~\pageref{definition:coordinate-system}
for the definition of the coordinate system.
</pre>
<p>where LaTeX dutifully replaces <code>
\pageref{definition:coordinate-system}</code> with the page number on which
<code>\label{definition:coordinate-system}</code>, the anchor of the page
reference, occurs. Where is the problem? First, a set of html pages does not
have a rigid notion of a ``page number''. Second, latex2html does replace
<code>\pageref{definition:coordinate-system}</code> with a hyper-link to the
spot where <code>\label{definition:coordinate-system}</code> is rendered. The
link is a dark square for graphical browser or the marker ``<code>[*]</code>''
for text browsers. But the whole construct looks awkward -- almost distracting
and this is not latex2html's fault:</p>
<blockquote>In the following, we will summarize the findings using a
cylindrical coordinate system. See page <a href="#hyperreferences">
[*]</a> for the definition of the coordinate system.</blockquote>
<p>Latex2html needs our help! The paragraph, which contains the reference,
ought to be rephrased for the on-screen version, for example to:</p>
<pre>
In the following, we will summarize the
findings using a <a>cylindrical coordinate
system</a>.
</pre>
<p>where I have indicated the hyperlink with HTML anchor tags. To allow for
two different versions depending on the output format, latex2html defines the
<code>\hyperref</code> command.</p>
<p><code>\hyperref[</code><em>reference-type</em><code>]{</code><em>text for
html version</em><code>}{</code><em>pre-reference text for LaTeX
version</em><code>}{</code><em>post-reference text for LaTeX
version</em><code>}</code></p>
<p>The optional parameter <em>reference-type</em> selects the counter the
reference refers to:</p>
<dl>
<dt><strong><a name="item_%22ref%22">``<code>ref</code>''</a></strong><br>
</dt>
<dd>Cross reference to a section number like <code>\ref</code> does. The
reference text is the section number (``4'', ``1.5.2'', ``3.4.2.1'',
etc.).</dd>
<dt><strong><a name="item_%22page%22_or_%22pageref%22">``<code>page</code>''
or ``<code>pageref</code>''</a></strong><br>
</dt>
<dd>Reference to a page number like <code>\pageref</code> does. The reference
text is a page number (``25'', ``xxiii'', etc.).</dd>
</dl>
<p>Rewritten with <code>\hyperref</code> our example looks like this</p>
<pre>
In the following, we will summarize the
findings using a \hyperref[pageref]%
{cylindrical coordinate system}% for HTML
{cylindrical coordinate system. See page~}% for LaTeX
{ for the definition of the coordinate system}% trailing text for LaTeX
{definition:coordinate-system}.% label the reference refers to
</pre>
<p>LaTeX renders it to</p>
<blockquote>In the following, we will summarize the findings using a
cylindrical coordinate system. See page 97 for the definition of the
coordinate system.</blockquote>
<p>and latex2html produces</p>
<blockquote>In the following, we will summarize the findings using a <a href=
"#hyperreferences">cylindrical coordinate system</a>.</blockquote>
<p>from it.</p>
<h4><a name="hyperlinks">Hyperlinks</a></h4>
<p>A problem related to the one we have just encountered with references
happens when hyperlinks come into play. In the HTML version of the document
hyperlinks are essential; in the printed version, they are of little use:
Compare ``Click here'' with ``Press your pencil against this letter''?
Sometimes, however, the author really wants to include the target of the
hyperlink, an universal resource locator (URL), in the printed text.
latex2html defines two commands that exactly cater these needs.</p>
<p><code>\htmladdnormallink{</code><em>link
text</em><code>}{</code><em>universal resource locator</em><code>}</code></p>
<p><code>\htmladdnormallinkfoot{</code><em>link
text</em><code>}{</code><em>universal resource locator</em><code>}</code></p>
<p>Both commands generate the hyperlink <a href = "<em>universal resource
locator</em>"><em>link text</em></a> in the HTML version. The first
only renders <em>link text</em> in the LaTeX version, suppressing <em>
universal resource locator</em> completely. The second adds a footnote
containing <em>universal resource locator</em>. The typical usage of these
commands is</p>
<blockquote>The text of this article can be downloaded from our
\htmladdnormallink{web site}{http://www.linux-gazette.org}.</blockquote>
<p>and</p>
<blockquote>The text of this article can be downloaded from our
\htmladdnormallinkfoot{web site}{http://www.linux-gazette.org}.</blockquote>
<p>where the LaTeX result of the first looks like this</p>
<blockquote>The text of this article can be downloaded from our web
site.</blockquote>
<p>for the second <code>web site</code> gets a footnote marker and a footnote
with the URL is placed at the bottom of the page. The HTML output will show up
both times as</p>
<blockquote>The text of this article can be downloaded from our <a href=
"http://www.linux-gazette.org">web site</a>.</blockquote>
<h4><a name="format specific commands">Format Specific Commands</a></h4>
<p>As a last resort several commands and environments enable the writer to
divert her text between LaTeX and HTML versions of the document:</p>
<ul>
<li><code>\latex{</code><em>short text for LaTeX only</em><code>}</code></li>
<li><code>\html{</code><em>short text for HTML only</em><code>}</code></li>
<li><code>\latexhtml{</code><em>short text for LaTeX only</em> <code>
}{</code><em>short text for HTML only</em><code>}</code></li>
<li><code>\begin{latexonly}</code> <em>text for LaTeX only</em> <code>
\end{latexonly}</code></li>
<li><code>\begin{htmlonly}</code> <em>text for HTML only</em> <code>
\end{htmlonly}</code></li>
</ul>
<p>I recommend to use diversion of output only if no more specialized
latex2html command or environment can produce the desired markup, for
splitting always requires to keep both branches in sync.</p>
<h3><a name="pros and cons">latex2html Pros and Cons</a></h3>
<dl>
<dt><strong><a name="item_Pros">Pros</a></strong><br>
</dt>
<dd>
<ul>
<li>Completely configurable through user-defined LaTeX commands and
environments</li>
<li>Extremely high-quality printed output</li>
<li>Handles tables and graphics (not shown in this article)</li>
</ul>
</dd>
<dt><strong><a name="item_Cons">Cons</a></strong><br>
</dt>
<dd>
<ul>
<li>``Impedance mismatch'' between LaTeX and HTML not completely compensated
by latex2html</li>
<li>Flat learning curve of LaTeX</li>
</ul>
</dd>
</dl>
<h3><a name="further reading">Further Reading</a></h3>
<ul>
<li>Tobias Oetiker, Hubert Partl, Irene Hyna, and Elisabeth Schlegl, <em>The
Not So Short Introduction to LaTeX</em>. Search for <code>lshort</code> on
your local Linux system, or use the search facilities at
<A HREF="http://www.ctan.org/">www.ctan.org</A> for find
a mirror close to you.</li>
<li>Leslie Lamport, <em>LaTeX -- User's Guide and Reference Manual</em>,
Addison Wesley.</li>
<li>Donald E. Knuth, <em>The TeXbook</em>, Addison Wesley.</li>
<li>If you are lucky, your LaTeX comes bundled with a hypertext help pages,
<em>Hypertext Help with LaTeX</em>. My S.u.S.E. distribution has the entry
point installed at file:///usr/share/texmf/doc/latex/latex2e-html/ltx-2.html
<p>For a beginner the hypertext pages can neither replace the <em>Short
Introduction</em>, nor Lamport's book. For the intermediate LaTeX user,
however, they are a valuable help in case printed documentation is out of
reach.</p>
</li>
</ul>
<p>Next month: DocBook</p>
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Christoph Spiel</H4>
<EM>Chris runs an Open Source Software consulting company in Upper Bavaria, Germany.
Despite being trained as a physicist -- he holds a PhD in physics from Munich
University of Technology -- his main interests revolve around numerics,
heterogenous programming environments, and software engineering. He can be
reached at
<A HREF="mailto:cspiel@hammersmith-consulting.com">cspiel@hammersmith-consulting.com</A>.</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, Christoph Spiel.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Linux Socket Programming In C++</font></H1>
<H4>By <a href="mailto:rtougher@yahoo.com">Rob Tougher</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<h2>Contents</h2>
<dl>
<dt><a href=#1>1. Introduction</a>
<dt><a href=#2>2. Overview of Client-Server Communications</a>
<dt><a href=#3>3. Implementing a Simple Server and Client</a>
<dd><a href=#3.1>3.1 Server - establishing a listening socket</a>
<dd><a href=#3.2>3.2 Client - connecting to the server</a>
<dd><a href=#3.3>3.3 Server - Accepting the client's connection attempt</a>
<dd><a href=#3.4>3.4 Client and Server - sending and receiving data</a>
<dt><a href=#4>4 Compiling and Testing Our Client and Server</a>
<dd><a href=#4.1>4.1 File list</a>
<dd><a href=#4.2>4.2 Compile and test</a>
<dt><a href=#5>5. Conclusion</a>
</dl>
<h2>1. Introduction</h2>
<a name=1></a>
<p>
Sockets are a mechanism for exchanging data between processes.
These processes can either be on the same machine, or on different machines
connected via a network. Once a socket connection is established, data
can be sent in both directions until one of the endpoints closes the
connection.
</p>
<p>
I needed to use sockets for a project I was working on, so I developed and refined
a few C++ classes to encapsulate the raw socket API calls. Generally, the
application requesting the data is called the client, and the application
servicing the request is called the server.
I created two primary classes, <b>ClientSocket</b> and <b>ServerSocket</b>, that the client
and server could use to exchange data.
</p>
<p>
The goal of this article is to teach you how to use the <b>ClientSocket</b> and <b>ServerSocket</b>
classes in your own applications. We will first briefly discuss client-server communications,
and then we will develop a simple example server and client that utilize these two classes.
</p>
<h2>2. Overview of Client-Server Communications</h2>
<a name=2></a>
<p>
Before we go jumping into code, we should briefly go over the set of steps
in a typical client-server connection. The following table outlines these steps:
</p>
<table width="400" cols=2 border=1>
<tr>
<td><b>Server</b></td>
<td><b>Client</b></td>
</tr>
<tr>
<td>1. Establish a listening socket and wait for connections from clients.</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>2. Create a client socket and attempt to connect to server.</td>
</tr>
<tr>
<td>3. Accept the client's connection attempt.</td>
<td> </td>
</tr>
<tr>
<td>4. Send and receive data.</td>
<td>4. Send and receive data.</td>
</tr>
<tr>
<td>5. Close the connection.</td>
<td>5. Close the connection.</td>
</tr>
</table>
<p>
That's basically it. First, the server creates a listening socket, and
waits for connection attempts from clients. The client creates a socket
on its side, and attempts to connect with the server. The server then
accepts the connection, and data exchange can begin. Once all data
has been passed through the socket connection, either endpoint can close
the connection.
</p>
<h2>3. Implementing a Simple Server and Client</h2>
<a name=3></a>
<p>
Now its time to dig into the code. In the following section we will create both a
client and a server that perform all of the steps outlined above in the overview.
We will implement these operations in the order they typically happen - i.e. first
we'll create the server portion that listens to the socket, next we'll create the
client portion that connects to the server, and so on. All of the code in this
section can be found in <a href="misc/tougher/simple_server_main.cpp.txt">
simple_server_main.cpp</a> and
<a href="misc/tougher/simple_client_main.cpp.txt">simple_client_main.cpp</a>.
</p>
If you would rather just examine and experiment with the source code yourself, jump to
<a href=#4>this section</a>. It lists the files in the project,
and discusses how to compile and test them.
<h3>3.1 Server - establishing a listening socket</h3>
<a name=3.1></a>
<p>
The first thing we need to do is create a simple server that listens
for incoming requests from clients. Here is the code required to
establish a server socket:
</p>
listing 1 : creating a server socket ( part of <a href="misc/tougher/simple_server_main.cpp.txt">
simple_server_main.cpp</a> )
<div class=listing>
<pre>
#include "ServerSocket.h"
#include "SocketException.h"
#include <string>
int main ( int argc, int argv[] )
{
try
{
<b>// Create the server socket
ServerSocket server ( 30000 );</b>
// rest of code -
// accept connection, handle request, etc...
}
catch ( SocketException& e )
{
std::cout << "Exception was caught:" << e.description() << "\nExiting.\n";
}
return 0;
}
</pre>
</div>
<p>
That's all there is to it. The constructor for the <b>ServerSocket</b> class
calls the necessary socket APIs to set up the listener socket. It hides the details
from you, so all you have to do is create an instance of this class to begin listening
on a local port.
</p>
<p>
Notice the try/catch block. The <b>ServerSocket</b> and <b>ClientSocket</b>
classes use the exception-handling feature of C++.
If a class method fails for any reason, it throws an exception
of type <b>SocketException</b>, which is defined in
<a href="misc/tougher/SocketException.h.txt">SocketException.h</a>.
Not handling this exception results in program
termination, so it is best to handle it. You can get the text of the error by calling
<b>SocketException</b>'s <b>description()</b> method as shown above.
</p>
<h3>3.2 Client - connecting to the server</h3>
<a name=3.2></a>
<p>
The second step in a typical client-server connection is the client's
responsibility - to attempt to connect to the server. This code is similar to the server
code you just saw:
</p>
listing 2 : creating a client socket ( part of <a href="misc/tougher/simple_client_main.cpp.txt">
simple_client_main.cpp</a> )
<div class=listing>
<pre>
#include "ClientSocket.h"
#include "SocketException.h"
#include <iostream>
#include <string>
int main ( int argc, int argv[] )
{
try
{
<b>// Create the client socket
ClientSocket client_socket ( "localhost", 30000 );</b>
// rest of code -
// send request, retrieve reply, etc...
}
catch ( SocketException& e )
{
std::cout << "Exception was caught:" << e.description() << "\n";
}
return 0;
}
</pre>
</div>
<p>
By simply creating an instance of the <b>ClientSocket</b> class, you create
a linux socket, and connect it to the host and port you pass to the constructor.
Like the <b>ServerSocket</b> class, if the constructor fails for any reason, an exception is thrown.
</p>
<h3>3.3 Server - accepting the client's connection attempt</h3>
<a name=3.3></a>
<p>
The next step of the client-server connection occurs within the server. It is the
responsibility of the server to accept the client's connection attempt, which opens
up a channel of communication between the two socket endpoints.
</p>
<p>
We have to add this functionality to our simple server. Here is the updated version:
</p>
listing 3 : accepting a client connection ( part of <a href="misc/tougher/simple_server_main.cpp.txt">
simple_server_main.cpp</a> )
<div class=listing>
<pre>
#include "ServerSocket.h"
#include "SocketException.h"
#include <string>
int main ( int argc, int argv[] )
{
try
{
// Create the socket
ServerSocket server ( 30000 );
<b>while ( true )
{
ServerSocket new_sock;
server.accept ( new_sock );</b>
// rest of code -
// read request, send reply, etc...
<b>}</b>
}
catch ( SocketException& e )
{
std::cout << "Exception was caught:" << e.description() << "\nExiting.\n";
}
return 0;
}
</pre>
</div>
<p>
Accepting a connection just requires a call to the <b>accept</b> method. This method
accepts the connection attempt, and fills <b>new_sock</b> with the socket information about
the connection. We'll see how <b>new_sock</b> is used in the next section.
</p>
<h3>3.4 Client and Server - sending and receiving data</h3>
<a name=3.4></a>
<p>
Now that the server has accepted the client's connection request, it is
time to send data back and forth over the socket connection.
</p>
<p>
An advanced feature of C++ is the ability to overload operators - or simply, to make
an operator perform a certain operation. In the <b>ClientSocket</b> and <b>ServerSocket</b>
classes I overloaded the << and >> operators, so that when used, they wrote data
to and read data from the socket. Here is the updated version of the simple server:
</p>
listing 4 : a simple implementation of a server ( <a href="misc/tougher/simple_server_main.cpp.txt">
simple_server_main.cpp</a> )
<div class=listing>
<pre>
#include "ServerSocket.h"
#include "SocketException.h"
#include <string>
int main ( int argc, int argv[] )
{
try
{
// Create the socket
ServerSocket server ( 30000 );
while ( true )
{
ServerSocket new_sock;
server.accept ( new_sock );
<b>
try
{
while ( true )
{
std::string data;
new_sock >> data;
new_sock << data;
}
}
catch ( SocketException& ) {}
</b>
}
}
catch ( SocketException& e )
{
std::cout << "Exception was caught:" << e.description() << "\nExiting.\n";
}
return 0;
}
</pre>
</div>
<p>
The <b>new_sock</b> variable contains all of our socket information, so we use it to
exchange data with the client. The line "new_sock >> data;" should be read as "read data
from new_sock, and place that data in our string variable 'data'." Similarly, the next line
sends the data in 'data' back through the socket to the client.
</p>
<p>
If you're paying attention, you'll notice that what we've created here is an echo server.
Every piece of data that gets sent from the client to the server gets sent back
to the client as is. We can write the client so that it sends a piece of data,
and then prints out the server's response:
</p>
listing 5 : a simple implementation of a client ( <a href="misc/tougher/simple_client_main.cpp.txt">
simple_client_main.cpp</a> )
<div class=listing>
<pre>
#include "ClientSocket.h"
#include "SocketException.h"
#include <iostream>
#include <string>
int main ( int argc, int argv[] )
{
try
{
ClientSocket client_socket ( "localhost", 30000 );
<b>
std::string reply;
try
{
client_socket << "Test message.";
client_socket >> reply;
}
catch ( SocketException& ) {}
std::cout << "We received this response from the server:\n\"" << reply << "\"\n";;
</b>
}
catch ( SocketException& e )
{
std::cout << "Exception was caught:" << e.description() << "\n";
}
return 0;
}
</pre>
</div>
<p>
We send the string "Test Message." to the server, read the response from the server,
and print out the response to std output.
</p>
<h2>4. Compiling and Testing Our Client And Server</h2>
<a name=4></a>
<p>
Now that we've gone over the basic usage of the <b>ClientSocket</b> and <b>ServerSocket</b>
classes, we can build the whole project and test it.
</p>
<h3>4.1 File list</h3>
<a name=4.1></a>
<p>
The following files make up our example:
</p>
<dl>
<dt>Miscellaneous:
<dd><a href="misc/tougher/Makefile.txt">Makefile</a> - the Makefile for this project
<dd><a href="misc/tougher/Socket.h.txt">Socket.h</a>,
<a href="misc/tougher/Socket.cpp.txt">Socket.cpp</a> - the
Socket class, which implements the raw socket API calls.
<dd><a href="misc/tougher/SocketException.h.txt">SocketException.h</a> - the SocketException class
<dt>Server:
<dd><a href="misc/tougher/simple_server_main.cpp.txt">simple_server_main.cpp</a> - main file
<dd><a href="misc/tougher/ServerSocket.h.txt">ServerSocket.h</a>,
<a href="misc/tougher/ServerSocket.cpp.txt">ServerSocket.cpp</a>
- the ServerSocket class
<dt>Client:
<dd><a href="misc/tougher/simple_client_main.cpp.txt">simple_client_main.cpp</a> - main file
<dd><a href="misc/tougher/ClientSocket.h.txt">ClientSocket.h</a>,
<a href="misc/tougher/ClientSocket.cpp.txt">ClientSocket.cpp</a>
- the ClientSocket class
</dl>
<h3>4.2 Compile and Test</h3>
<a name=4.2></a>
<p>
Compiling is simple. First save all of the project files into one subdirectory, then
type the following at your command prompt:
</p>
<div class=listing>
<pre>
prompt$ cd <i>directory_you_just_created</i>
prompt$ make
</pre>
</div>
<p>
This will compile all of the files in the project, and create the simple_server and
simple_client output files. To test these two output files, run the server in one
command prompt, and then run the client in another command prompt:
</p>
<div class=listing>
<pre>
<i>first prompt:</i>
prompt$ <b>./simple_server
running....</b>
<i>second prompt:</i>
prompt$ <b>./simple_client
We received this response from the server:
"Test message."</b>
prompt$
</pre>
</div>
<p>
The client will send data to the server, read the response, and print out
the response to std output as shown above. You can run the client
as many times as you want - the server will respond to each request.
</p>
<h2>5. Conclusion</h2>
<a name=5></a>
<p>
Sockets are a simple and efficient way to send data between processes. In this
article we've gone over socket communications, and developed an example
server and client. You should now be able to add socket communications to
your applications!
</p>
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P>
<H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">Rob Tougher</H4>
<EM>Rob is a C++ software engineer in the NYC area.
When not coding on his favorite platform, you can
find Rob strolling on the beach with his girlfriend, Nicole,
and their dog, Halley.</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, Rob Tougher.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H1><font color="maroon">Play with the Lovely Netcat:<BR>
Reinvent /usr/bin/yes</font></H1>
<H4>By <a href="mailto:zw@debian.org">zhaoway</a></H4>
</center>
<P> <HR> <P>
<!-- END header -->
<h2>Netcat and Yescat</h2> <p> The first but secondary purpose of this
article is to introduce you this nifty networking tool:
<code>/usr/bin/netcat</code> which is well available from the Debian
GNU/Linux under the package name <code>netcat</code>. (The drill:
<code>apt-get install netcat</code> and you're done.) There are very
well written companion documentation by the anonymous software author,
and from which a well formatted Unix manual page by my fellow Debian
developers. Reading the companion documentation is really an
interesting experience. It would almost certainly reminds the gentle
reader that there is truly this kind of creature called Unix gurus
living somewhere at the large. That kind of <i>hackish</i> feeling,
think it, insists on and successful in being <i>anonymous</i>, after
written such an excellent piece of software. Only true Unix guru could
do that!
<p> Since the netcat documentation is of such excellent quality, I will
not duplicate it here. (However, I recommend you read the netcat
documentation before reading this article.)
For those of you with
little patience, netcat could forward data stream from stdin to a
TCP or UDP socket, and from a TCP or UDP socket to stdout. Just like
the <code>cat</code> program to forward data from stdin to
stdout. According to unconfirmed sources, that's the origin of the
netcat program name.
<p> The second but primary purpose of this article is to show you how
tedious and clueless an article author (like me) can be,
introducing a piece of software which does not
have any graphical user interface, or any interactive help system. Ya
know, I would simply go crazy if I cannot capture a screenshot or two!
<p> So here we introduce the nutty yescat for a purpose which will
show itself later: <code>/usr/bin/yes</code>. Nearly nobody even
noticed it. But it quietly lies there in a corner of
<code>/usr/bin</code> for so long that nearly none of us latecomers
to the Linux world ever noticed it in any of our Linux systems.
Its origin remains a mystery. Its popularity is just as
<code>/sbin/init</code>! What does it do? Lets' see for our own eyes:
<p>
<pre>
zw@q ~ % yes
y
y
y
y
y
y
y
</pre>
<p> Isn't it wonderful? ;-) (Press <CODE>ctrl-C</CODE> to stop the y's, otherwise
they'll march down the screen forever.) It can even say <i>no</i> too!
<p>
<pre>
zw@q ~ % yes no
no
no
no
no
no
</pre>
<p> In the following sections we will develop two companion utilities
with which we will eventually reinvent <code>/usr/bin/yes</code> with
the help from <code>/usr/bin/netcat</code> of course! Lets' start the
journey now!
<h2>Hub and cable</h2>
<p> The hub (<a href="misc/zhaoway/hub.c.txt">hub.c</a>) and cable (<a
href="misc/zhaoway/cable.c.txt">cable.c</a>) utilities are certainly
inspired by netcat which could forward data stream from a socket to
stdout, and from stdin to a socket. Did I forget to recommend the
netcat companion documentation for you to read? ;-) Hub is designed to
be like a server, and cable is designed to be like a client. Instead
of forwarding data between stdin/stdout and a socket, hub and cable
forward and <i>multiplex</i> data from a socket to any other
sockets. That's where the names come from. They're just like Ethernet
hub and cable. Lets' see a screenshot. Yeah, screenshot! ;-)
<p>
<pre>
zw@q ~ % ./hub
lullaby internetworks lab: (server alike) hub $Revision: 1.2 $
Copyright (C) 2001 zhaoway <zw@debian.org>
Usage: hub [hub buffer size] [tcp port number] [number of hub ports]
o hub buffer size is in bytes. for example 10240.
o tcp port number is at least 1024 so i do not need to be root.
o number of hub ports is at least 2. happy.
zw@q ~ %
</pre>
<p> Hub will listen on a TCP port simulating a many port Ethernet
hub. Data come in from one hub port will be forwarded to other hub
ports. You could test the hub alone without cable using netcat. Note:
nc is the acronym for netcat.
<ol>
<li>Launch hub in the console A: <code>ConA % ./hub 10240 10000 2</code>
<li>From console B, connect a netcat: <code>ConB % nc localhost 10000</code>
<li>From console C, connect another netcat: <code>ConC % nc localhost 10000</code>
<li>Then you could type in ConC and read the output in ConB, vice versa.
</ol>
<p> Then there is cable:
<p>
<pre>
zw@q ~ % ./cable
lullaby internetworks lab: (client alike) cable $Revision: 1.2 $
Copyright (C) 2001 zhaoway <zw@debian.org>
Usage: cable [cable buffer size] [1st ip] [1st port] [2nd ip] [2nd port] ..
o cable buffer size is in bytes. for example 10240.
o ports should be listening or connection attempts will fail.
o number of ip addr and port pairs is at least 2.
zw@q ~ %
</pre>
<p> Cable is more or less like a shared Ethernet bus coaxial cable. It
forwards and multiplexes data between listening socket daemons. Let's
test it too.
<ol>
<li>Launch a netcat daemon in ConA: <code>ConA % nc -l -p 10000</code>
<li>Launch another netcat daemon in ConB: <code>ConB % nc -l -p 10001</code>
<li>Arrange the cable: <code>ConC % ./cable 10240 127.0.0.1 10000 127.0.0.1 10001</code>
<li>Then you could type in ConA and read the output from ConB, vice versa.
</ol>
<p> There are some interesting techniques used in developing hub and
cable. Notably the <code>select()</code> function call. But for now,
we will focus on our course to reinvent the <code>/usr/bin/yes</code>
first. ;-)
<h2>Reinvent the wheel</h2>
<p> It's not a very easy task to reinvent <code>/usr/bin/yes</code>
using netcat and hub and cable. I could only give a cheat answer. And
that's why I need to set the buffer size command line argument. But
anyway, let's begin!
<p> The main idea is as following. First we set up a three-port hub,
then we using cable to connect two hub port together, after that we
could using netcat to echo any character into the remain free hub
port. It's like the following diagram:
<p>
<pre>
| cable
\|/ ,---------,
| | |
V V V
,--[ ]-------[ ]-------[ ]--.
| A B C |
| three-port hub |
`---------------------------'
</pre>
<p> Because the nature of the hub, data sent in from port A, will be
forwarded to port B and port C, since port B and C are connected by a
cable, the data come out of the hub will go right back in, and then
being multiplexed and forwarded to port A and circulating in the cable
loop to eternity. Eventually port A will receive infinite copies of the
original data sent in.
<p> Lets' construct the device.
<ol>
<li>In ConA, we launch the three-port hub: <code>ConA % ./hub 10240 10000 3</code>
<li>In ConB, we loop the cable: <code>ConB % ./cable 10240 127.0.0.1 10000 127.0.0.1 10000</code>
</ol>
<p> Now after we finished construction of our device, then we will
using netcat to finally finish our reinvention of <code>/usr/bin/yes</code>.
<p>
<pre>
ConC % echo "y" | nc localhost 10000
y
y
y
y
y
y
</pre>
<p> The tricky exercises left for the reader is: what if we change the
buffer size of both cable and hub from 10240 to 1? You could try and
see for yourself.
<p> Have fun and good luck!
<!-- *** BEGIN bio *** -->
<SPACER TYPE="vertical" SIZE="30">
<P> <H4><IMG ALIGN=BOTTOM ALT="" SRC="../gx/note.gif">zhaoway</H4>
<EM>zhaoway lives in Nanjing, China. He divides his time among his
beautiful girlfriend, his old Pentium computer, and pure
mathematics. He wants to marry now, which means he needs money, ie., a
job. Feel free to help him come into the sweet cage of marriage by
providing him a job opportunity. He would be very thankful! He is also
another volunteer member of the <a href="http://www.debian.org">Debian
GNU/Linux</a> project.</EM>
<!-- *** END bio *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <!-- P -->
<H5 ALIGN=center>
Copyright © 2002, zhaoway.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
<H4 ALIGN="center">
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <hr> <P>
<H1><font color="maroon">The Back Page</font></H1>
<ul>
<li><a HREF="#wacho">Wacko Freshmeat Entry of the Month</a>
<li><a HREF="#nottag">Not The Answer Gang</a>
<li><a HREF="#spam">World of Spam</a>
<li><a HREF="#joke">Russian Joke of the Month</a>
</ul>
<a name="wacko"></a>
<P> <hr> <P>
<!--====================================================================-->
<center><H3><font color="maroon">Wacko Freshmeat Entry of the Month</font></H3></center>
<P> <HR> <P>
<!--======================================================================-->
<P>
<H3 ALIGN="center"><FONT COLOR="green">PyDDR</FONT></H3>
<p align="right"><FONT COLOR="#000000"><strong>Contributed By Jim Dennis
</strong></FONT></p>
<PRE>
pyDDR 0.2.5<BR>
by theGREENzebra - Saturday, December 22nd 2001 00:39 EST
<P> About: PyDDR is a clone of DDR ("Dance Dance Revolution") written in
Python. The idea of DDR is simple. There's a mat with four
directional arrows, and the game scrolls arrows up the screen to the
beat while playing a song. When the arrows reach the top of the screen
(not sooner and not later), the player hits the corresponding arrow on
the pad, and given that it's hit on time with the beat, points are scored.
Based on how well the dance is put together, s/he is graded at the end
of the song.
<P> Changes: PyDDR now has working DDR mat support. STEP files can now
contain starting/ending markers to shorten a full-length MP3 into a
DDR-length song without modifying the file, and song and group names
are also displayed at the top of the playfield. A few bugfixes and
improvements were made regarding fonts, misses, and combos.
</PRE>
<P> This is a game written in Python 2.1 and using the Pygame package
(which is a set of bindings between Python and the SDL game-development
libraries).
<P> The thing that's wacky is that it's intended to be used with one of
those DDR "dance mats." These are little floor mats with four arrows
arranged in a cross pattern (like old fashioned cursor keys before the
advent of the "inverted T cursor/arrows" on PC keyboards). You can
"dance" on the mat, providing "step" input (timing and direction or
foot placement) for the game. It then awards points based on how
closely you follow the dance step (which it's displaying and scrolling
to the tempo of some MPEG encoded music).
<P> You might have seen video games where kids where dance for a high
score. I know that I saw lots of these in Japan, where it's apparently
*very* popular.
<P> I suppose this is the most exciting non-violent, completely G-rated
fun that's available for kids on the 'net.
<P> (Maybe the fact that *I* think it's "wacky" reveals too much about
me!)
<a name="nottag"></a>
<P> <hr> <P>
<!--====================================================================-->
<center><H3><font color="maroon">Not The Answer Gang</font></H3></center>
<P> <HR> <P>
<!--======================================================================-->
<P>
<H3 ALIGN="center"><FONT COLOR="green">Esperanto</FONT></H3>
<p align="right"><FONT COLOR="#000000"><strong>Answered By Huibert Alblas, Ben Okopnik, Iron, Don Marti, <A HREF="mailto:untecoms@avtlg.ru">untecoms@avtlg.ru</A>
</strong></FONT></p>
<STRONG>
Huibert Alblas asks:<BR>
Ext3 and ext2 are compatible filesystems, you can mount ext3 filesystems
with an "only ext2" kernel, _but_ it has to be cleanly unounted (damn,
what is the correct past tense for that what I want to express?)
</STRONG>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
"Has to have been cleanly unmounted." English can get very funky
sometimes... OTOH, Spanish isn't much better. Hey, Mike! Does Esperanto
suck just as much with tenses, or (being a designed language) did they
actually do something with this mess?
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
It would be the same in Esperanto. (But see below.)
<P>
<EM>Ext2 kaj ext3 estas fajl-sistemoj kunlaborivaj. Oni povas mauxnti
ext3-an fajlsistemon en koro "nur" ext2-a, *sed* gxi devas esti pure
malmauxntita.</EM>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
Hey, that looks like code I've been writing lately! :) I don't think I've
ever seen written Esperanto before, other than single words or so - my
memory says I have but can't provide written proof. This is cool.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
But it would be more natural to transform the sentance:
<PRE>
... *if* it has been cleanly unmounted ==
oni povos ... *se* gxi estos pure malmauxntita.
(-os : both clauses in future tense because of the "if")
... *only if* == *nur se*
... *if* one unmounted it cleanly first ==
*se* oni jam malmauxntos gxin pure
(literally: "already will mount")
</PRE>
There's no way around the fact that "has to be cleanly unmounted"
requires three verbs, with the last one being a past passive participle.
What Esperanto gives you is a complete set of active and passive
participles for all tenses.
<PRE>
mauxnti = to mount (pronounced "mount-ee")
mauxntas = I/you/we/they mount, (s)he mounts
mauxntis = mounted
mauxntos = will mount
mauxntu = mount! (imperative)
mauxntus = would mount (subjunctive, as in:
If I had mounted ext3, my files wouldn't be ruined.
Se mi mauxntus ext3'on, miaj fajloj ne estus ruinitaj.
If I had been accustomed to mounting ext3, my files wouldn't be ruined.
Se mi kutimus mauxnti ext3'on, miaj fajloj ne estus ruinitaj.
(kutimi = to do something habitually)
</PRE>
<P> It's easier to explain the participles with "prezidi" (to preside):
<PRE>
prezidanto = president (he-who-is-presiding)
prezidinto = former president (he-who-was-presiding)
prezidonto = president-elect (he-who-will-preside)
prezidato = subject (he-who-is-presided-over)
prezidinto = former subject (he-who-was-presided-over)
prezidonto = future subject (he-who-will-be-presided-over)
Not officially a part of Esperanto, but you can get away with:
prezidunto = (subjunctive: he-who-would-be-president [but he's not])
preziduto = (subjunctive: he-who-would-be-presided-over [but he's not])
When you want to get away from tense:
prezidento = President (no tense affiliation; a separate word root
...but most verbs don't have an -ent counterpart)
gxi devas esti malmauntita == it must be unmounted (it must have been unmounted)
li devas esti malmauntinta gxin ==
he must have unmounted it
he was obligated to have unmounted it
li devus esti malmauxninta gxin ==
he should have unmounted it (subjunctive: but he didn't)
Unofficially, you can combine "esti malmauxntinta" into one verb:
malmauxntinti (to have unmounted something)
Thus,
gxi devas malmauxntiti (it must have been unmounted)
collapsing three verbs into two.
Or even:
malmauxntintis (is having unmounted something)
So these are equivalent:
li estas malmauxntinta gxin
li malmauxntintas gxin
== he has unmounted it.
li estis malmauxntinta gxin
li malmauxntintis gxin
== he had unmounted it.
</PRE>
But one normally tries to keep the verbs as simple as possible, and not
use participles unless necessary. English and Spanish habitually say
"is doing", "was doing" when the participle isn't necessary: this is
*not* done in Esperanto. Although if you do it, it's not "incorrect",
just weird.
<P> The unofficial forms aren't in the grammar books or used by the great
writers, so they aren't recommended for academic/professional use, but
because they are logical extensions of the grammar system, they aren't
"wrong" per se. If enough people use them, eventually they will be
acknowledged in the Plena Vortaro (Complete Dictionary, literally
"full word-collection").
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
The implications behind all of that are fascinating, "great writers" and
"academic/professional use" particularly. Any estimates on how many
Esperanto speakers there are in the world?
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
The only number I heard was that it's the same size as the smallest countries
in the United Nations. I forget which those were. I suppose we can say, a
bit smaller than Liechtenstein. How big is Liechtenstein now?
<P> The difference is that Esperantists are scattered all over the world rather than
being concentrated in one country. So for instance, you can take an around-the-world
trip and stay only at Esperanto-speaking lodgings using the Pasporta Servo
("passport service",
<A HREF="http://home.planet.nl/~lide/ps/ps_inf_en.htm">http://home.planet.nl/~lide/ps/ps_inf_en.htm</A>). This gets
you the inside scoop on a country whose language you don't know, even if the
hosts don't understand your language.
<P> "Great writers" was an exaggeration. I meant the most respected Esperanto writers
and translators. E-o's creator L L Zamenhof translated the Bible and Hamlet himself
before introducing the language, and wrote numerous original poems and proverbs.
(The regularities of the language make finding rhyming and metric pairs relatively
easy.)
<P> "Famous" original works in Esperanto include _Metropoliteno_ by Vladimir Varankin,
written in the 1920s about the building of the Berlin and Moscow subways. (The
author was either a loyal Soviet or submitted to Soviet censorship rules, so you
have to ignore the propaganda-speak in it.) _Mr Tot Acxetas Mil Okulojn_
(Mr Tot Buys a Thousand Eyes), a humorous look at a travelling salesman with
comments about the invasion of privacy (Carnivore, PGP back doors, I *knew* we
could tie this to Linux somehow!). _Kredu Min, Sinjorino!_ (Believe Me, Ma'am!).
etc. Also the infamous _Knedu Min, Sinjorino!_ (Knead Me, Ma'am!), a dictionary of
"taboo and insulting expressions", whose title is a satire of the previous book.
<P> Most Esperanto books, however, are translations. But whereas most
translations to English come from the top five big languages, translations to
Esperanto come from a wide variety of small languages. Hungary and Bulgaria
were centers for Esperanto translation and academia during part of the 20th
century, and there was also significant activity in England and Germany before
WWII. In the late 20th century, China produced a significant number of
children's books and translations of Chinese literature, due to government
sponsorship of Esperanto. (The way the government is now sponsoring Linux
projects.) Japan produces a science-fiction anthology series _Sferoj_
("spheres", but also a pun: "sferoj => science-fiction-pieces" analogous to
"negxeroj => snowflakes [units of snow]") containing sf from many countries,
sometimes translated, sometimes original. Brazil, Finland and the Netherlands
have translators doing their own national works and also works from many other
countries. There are also works that have been overlooked in English
translation; e.g., _Lirikaj Perloj de Al-Andalus_ (Lyric Pearls of
Al-Andalus_), "Spanish and Jewish lyric poetry from Spain during the Golden Age
of Islam". And of course, the Koran is available, as well as Kempis'
_Imitation of Christ_, Confucian and Buddhist text and apologies, Spinoza,
Hillel, Descartes, etc.
<P> An Esperanto bookstore in Emeryville, California, with several hundred titles:
<A HREF="http://esperanto-usa.org/">http://esperanto-usa.org/</A><BR>
My Esperanto page:
<A HREF="http://iron.cx/esperanto/index.en.html">http://iron.cx/esperanto/index.en.html</A><BR>
A variety of information:
<A HREF="http://www.esperanto.net/">http://www.esperanto.net/</A><BR>
The Linux Esperanto-HOWTO (in Esperanto):
<A HREF="http://www.linuxdoc.org/HOWTO/Esperanto-HOWTO.html">http://www.linuxdoc.org/HOWTO/Esperanto-HOWTO.html</A>
<H3>In another thread...</H3>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
Actually, around that time, my LG connections did put me in touch with
a Linux Esperantist in Vietnam. The only other Linux Esperantist I know of.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
Linux. Esperanto. In Vietnam.
<P> Tell me, Mike - don't you ever get out of that rut and do <EM>anything</EM> out of the
ordinary? I mean, all that sounds so... well... *common*. <grin>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Don]
<P>
The Bay Area is crawling with them. I'm one of the few local Linux
freaks I know who can't at least tell people how to reinstall LILO
in Esperanto.
<P>
<A HREF="http://www.pigdog.org/categories/esperanto.html">http://www.pigdog.org/categories/esperanto.html</A><BR>
<A HREF="http://crackmonkey.org/faq.html#ANSWER34">http://crackmonkey.org/faq.html#ANSWER34</A><BR>
<A HREF="http://www.deirdre.net/wedding_faq.html">http://www.deirdre.net/wedding_faq.html</A>
<P>
It even starts to get on people's nerves.
<A HREF="http://zork.net/pipermail/free-sklyarov/2001-July/000770.html">http://zork.net/pipermail/free-sklyarov/2001-July/000770.html</A>
<H3>Two weeks later, a letter from <A HREF="mailto:untecoms@avtlg.ru">untecoms@avtlg.ru</A></H3>
<STRONG>
Estimata samideano Majk!<BR>
/* Miaopinie Vi ne konas min, cxar mi ne skribis al Vi antawe...
Mallong-dire mi estas 36-jara programmisto el Rusio (urbo Volgograd)
kaj krome la Linux-sxatanto */<BR>
Mi deziregas gratuli Vin al la NovJar-festo kaj deziri al Vi bonan
farton, sukcesan kreadon kaj privatan felicxon!!!
<P>
Mi ankaw volas sekvi Vian konsilon pri plezur-faro al homoj, do mi
informas ke konstante legas artikolojn de la *gazette* rusigitajn far
Sergeo Skorohxodov (dissendolisto comp.soft.linux.gazette en
SUBSCRIBE.RU) kaj opinias tiun La Bona Afero! Unufraze: estu tiel plu!
<P>
Amike, Dmitrij W. Vronskij (aka dww[RU])
</STRONG>
<BLOCKQUOTE><EM>
Esteemed fellow-Esperantist (= member-of-the-same-idea) Mike!<BR>
I don't think you know me since you've never written to me... To make it short, I'm
a 36-year-old programmer in Volgograd, Russia, and also a big Linux fan.<BR>
I'd really like to wish you a Happy New Year, and hope things go well in your
personal affairs.<BR>
I also want to follow your advice about doing good for people (lit: doing pleasure to
people), therefore I inform (keep informed?) and constantly read articles in the
Gazette russified by Sergej Skorohodov (from the list comp.soft.linux.gazette at
SUBSCRIBE.RU) and think it's a Good Thing! In a phrase: keep on truckin'!<BR>
Friendlily, Dmitrij W Vronskij (aka dww[RU])
</EM></BLOCKQUOTE>
"Geniulo inventas, talentulo efikigas, stultulo uzas kaj ne dankas"<BR>
--Kozma Prutkov, fabela rusa filosofiulo
<BLOCKQUOTE><EM>
"A genius invents, a talented person produces, a stupid person uses but doesn't thank."<BR>
--Kozma Prutkov, fabled Russian philosopher
</EM></BLOCKQUOTE>
<P> <HR> <P>
<!--======================================================================-->
<P>
<H3 ALIGN="center"><FONT COLOR="green">More on Ben's reputation</FONT></H3>
<p align="right"><FONT COLOR="#000000"><strong>Answered By Ben Okopnik, Iron, Guy Milliron, Thomas Adam, Chris Gianakopoulos
</strong></FONT></p>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
Heh. In my PC hardware classes, lo these many years past, I used to destroy
my students' MBRs for fun. Or wipe their CMOS... or crunch the DBR... or
even make loops in the File Allocation Table, making DOS/Win loop
infinitely as it tried to read, say, IO.SYS. All quickly fixable.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
I knew it, I just knew it. Never trust anybody who wears dark sunglasses, you
never know what they're hiding. I knew that Ben Okopnik character was going
to be trouble. Heather, call the FBI.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
<shrug> No need to call them; I already offered to corrupt their machines a
long time ago (for a very reasonable fee, even!), but they told me they
were running Wind*ws and were well served in that area.
<P> If you have any contacts at the CIA, however, I'd be grateful.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
You don't already have contacts??? I thought for sure some of your KGB kronies
must be double agents.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
They won't *share*. <pout>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Guy]
<P>
*laugh* Reminds me of a DOS based Fidonet software, Opus. In
the manual under requirements:
<OL>
<LI> Sunglasses
<LI> A Nerf Bat
</OL>
though completely optional in both cases, yet highly recommended.
<P> I can't believe I started in FidoNet when it was a meer 1000 nodes
and left when it was just about to crest 32,000 nodes.
<P>--<BR>
Your mouse has moved. Windows must be restarted<BR>
for the change to take effect. Reboot now? [ OK ]
<H3>In another thread...</H3>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
<P>
Dear TAG,<BR>
Just thought I'd wish you all a merry christmas and a
happy new year!!
<P> I'd just like to apologise for my "attitude" while
answering some of the questions posted here. I have
been under a lot of duress and a heavy workload has
made me irratable.
<P> But as of next year, I'll be usual cherry self :-)
<Ben....stop sniggering>
<IMG ALT=":)" SRC="../gx/dennis/smily.gif" WIDTH="24" HEIGHT="24">
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Chris]
<P>
No way do you have "attitude"! You are easy going.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
<EM>[Who never noticed Thomas being non-cheerful about anything.]</EM>
<P> I guess he'll have to try harder, if he wants ppl to talk about him
like we talk about Ben.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
'Ey! I resemble that remark!
<P> <HR> <P>
<!--======================================================================-->
<P>
<H3 ALIGN="center"><FONT COLOR="green">Uninstalling Linux</FONT></H3>
<p align="right"><FONT COLOR="#000000"><strong>Answered By Iron, Ben Okopnik, Mike Martin
</strong></FONT></p>
<STRONG>
How do you remove linux from the hard drive completely?
</STRONG>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
Go to the LG search engine
(<A HREF="http://www.linuxgazette.com/search.html">http://www.linuxgazette.com/search.html</A>)
and search for "uninstalling" or "uninstall". You'll find several
items. Here's one of the better ones:
<A HREF="http://www.linuxgazette.com/issue64/tag/29.html">http://www.linuxgazette.com/issue64/tag/29.html</A>
<P> (Ben, we need an "uninstalling Linux" entry in the TAG FAQ.)
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
It's already there:
<A HREF="../tag/kb.html#uninstall">http://www.linuxgazette.com/tag/kb.html#uninstall</A>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Mike]
<P>
Not to be too stroppy - but do we?
I would see this as more a question for whatever windows equivalents
there are to the answer gang.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
It comes down to being a responsible OS. Linux has gained lots of brownie
points by being the OS that's compatible with more systems than any other,
access a wider variety of filesystems and network protocols, has a less
buggy compiler and more sysadmin/developer support tools, etc. In essence,
the one that saves the day for sysadmins/developers trying to work around
the shortcomings in other systems. Do we want to lose this good PR by not
recognizing that uninstalling Linux is just as legitimate as installing it,
and people may have good reasons to? Perhaps they're a newbie trying Linux
out and got lost. Perhaps they inherited a computer with Linux on it.
Whatever. It's about making Linux into a system that "plays nice with others".
Or more correctly, enhancing the already-good job Linux does with this.
It's about being a responsible OS.
<P> Now think about what help The Borg gives you if you want to uninstall it to
install Linux. Is there any documentation in the Windoze manuals for this?
What about documentation on how to set up Windoze so that it can share the
system with Linux? Of course not. Nobody in their right mind would want to
uninstall The Borg. It has all the features consumers are demanding, and it's
"innovative". After all, The Borg had Plug-n-Play first!
<P> Thus, it's a feather in Linux's cap to make sure the "uninstalling Linux"
entry is prominently displayed near the top of the FAQ. It shows that we're
confident enough in the OS to help you uninstall it if you want to. (You'll
be back...) It gives newbies a safety valve in case they need to uninstall
Linux someday, they'll know where to look. And finally again, it's a feature
Windows *doesn't* have.
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
Uninstalling Linux works out to pretty much the same thing as uninstalling
Wind*ws - and Microsoft does indeed have an entry in their Knowledge Base
that describes how to do that (I found the link at Dell, while searching
for serial port loopback info. <shrug> Go figure.) In reality, we're
providing instruction for either one. Hmm, <EM>there's</EM> a different way of
looking at it...
<P>
I definitely agree with the above logic if not the fine details.
<P> <HR> <P>
<!--======================================================================-->
<P>
<H3 ALIGN="center"><FONT COLOR="green">Exclamations</FONT></H3>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<P>
Hello!!! Your questions!!! have lots of randomly scattered exclamation!!!
points!!!, so they must!!! be very!!! important!!!!!!!!!!!!!! Thank
you!!!!!! for letting us know!!!!!!!!!!!
<H3>Later...</H3>
Wow, that's really exciting. Is there a reason that you're telling us about
this? I'm sure that if you wanted help, you would have provided a list of
exactly which errors you got (preferably by copying and pasting rather than
retyping), in which kernel version, which module(s), etc. As it is, - well,
my neigbor's favorite goldfish died a month ago, so I'm fresh out of
sympathy. <shrug> I guess that you *are* the only one with this problem...
at least you're the only one who _knows_ about any part of this that's a
problem. The rest of us are completely in the dark, due to lack of
information.
<STRONG>
5. No FTP
I connect to the web thru a LAN! It works!!!
</STRONG>
Wow. More excitement. Now, if we only knew which particular "it" that
refers to... Web connection? FTP? Pouring milk into your breakfast cereal
without spilling any? Tune in for our next exciting episode, when our
mysterious guest reveals all!
<P> <HR> <P>
<!--======================================================================-->
<P>
<H3 ALIGN="center"><FONT COLOR="green">Tux trivia</FONT></H3>
<p align="right"><FONT COLOR="#000000"><strong>Answered By Iron
</strong></FONT></p>
<STRONG>
When I gave her a stuffed Tux as a present,
my Girlfriend asked me, what it's sex is?
</STRONG>
<P>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Iron]
<P>
Four out of five sexist computer nerds surveyed agree Tux is male.
<a name="spam"></a>
<P> <hr> <P>
<!--====================================================================-->
<center><H3><font color="maroon">World of Spam</font></H3></center>
<P> <HR> <P>
<!--======================================================================-->
<P>
From: supercow
<P> YES. What aliens says IS truthpwd We REOPENEDpwd So visit us at XXXXX
<HR NOSHADE WIDTH="80%"> <!--*********************** -->
Subject: Completely FREE to download, join the revolution, NapsterPorn!
<P> Below is the result of your feedback form. It was submitted by
TheNapsterOfPorn@XXXXX on Sunday, December 2, 2001
<P> Dear Sir or Madam: Imagine a place just like napster, but with people
trading porn instead of music?
<HR NOSHADE WIDTH="80%"> <!--*********************** -->
We have recently visited your site:
http://linuxcentral.com/linux/LDP/LDP/LG/copying.html
We thought there was substantial potential for making revenue for you by
placing banners or advertising on your site if you have a reasonable flow of
traffic.
<BLOCKQUOTE><EM>
[The LG </EM>copying<EM> page??? High traffic? -Iron.]
</EM></BLOCKQUOTE>
<P> We operate on the pay per click method and checks are issued on the 5th of
each month. Pay per Click means each time a surfer sees the banner ad on your
site and clicks though to the advertised site you are paid for the click.
<P> Advertising on your site increases the importance and prestige of your site.
<BLOCKQUOTE><EM>
[It does? Are you sure about that? -Iron.]
</EM></BLOCKQUOTE>
<HR NOSHADE WIDTH="80%"> <!--*********************** -->
Do You Suspect Your Spouse Is HavingA Cyber Affair On Your Computer While You Are Away?
Have You Ever Lost Hours Of Hard Work...
Just Because Your Computer Crashed?
Do You Wonder What Your Kids Or Employees REALLY DO Online?
<P>
Introducing... XXXXX -- Secret Keystroke Recorder & Backup Utility
<UL>
<LI>Monitor All Day..All Night In Complete Secrecy!
<LI>Pasword Protected Activity Logs!
<LI>Completely Undetectable To The End User!
<LI>XXXXX can record start-up/shut down time of your computer
<LI>XXXXX can record windows captions of programs used.
<LI>Records Chat Room And Instant Messaging Conversations!
<LI>Record time stamp at time interval you specified.
</UL>
<P>
You received this email because you signed up at one of Vertical Mails websites
or you signed up with a party that has contracted with Vertical Mail.
<HR NOSHADE WIDTH="80%"> <!--*********************** -->
I have visited your website today and noticed that you have a great site
that would work really well selling Evidence Eliminator.
<P> You make a STAGGERING conversion rate, PLUS 10% of earnings of
referred
webmasters and an INCREDIBLE Webmaster loyalty and retention
performance to
bring you the World's premium cash payout. There is nothing better.
<P> This is the World's best and best-selling program. Nothing converts better.
That's official - EE rules. Try it and see how amazing it converts. You will
not be disappointed.
<P> Webmasters ranging from Adult, to Basic Home Sites, are taking
AMAZING
earnings, many Associates are making in excess of 100-200K $ (US) a
year.
<P> Recently the company upgraded the commissions from 30% to an
AMAZING 50% of
their top-selling and World-Famous product, now allowing even the very
newest of Webmasters to generate very generous earnings.
<HR NOSHADE WIDTH="80%"> <!--*********************** -->
You have been selected as a potential candidate for a free listing
in the 2002 Edition of the International Executive Guild
Registry
Please accept our congratulations for this coveted honor
As this edition is so important in view of the new millennium,
the
International Executive Guild Registry will be published in two
different
formats; the searchable CD-ROM and the Online Registry.
<P> Since inclusion can be considered recognition of your career
position
and professionalism, each candidate is evaluated in keeping with
high
standards of individual achievement. In light of this, the
International Executive
Guild thinks that you may make an interesting biographical
subject.
<a name="joke"></a>
<P> <hr> <P>
<!--====================================================================-->
<center><H3><font color="maroon">Russian Joke of the Month</font></H3></center>
<P> <HR> <P>
<!--======================================================================-->
A newspaper boy in Soviet Russia announces his wares:
<UL>
<LI> There's no more "Truth"! (Pravda)
<LI> "Soviet Russia" is completely sold out!
<LI> All that's left is "Labor" for three kopecks!
</UL>
<CITE>--Ben Okopnik</CITE>
<HR> <!-- ************************************************************** -->
<P> Happy Linuxing!
<P> Mike ("Iron") Orr<br>
Editor, <A HREF="http://www.linuxgazette.com/"><i>Linux Gazette</i></A>, <A
HREF="mailto:gazette@ssc.com">gazette@ssc.com</a>
<BR CLEAR="all">
<!-- *** END Not Linux *** -->
<!-- *** BEGIN copyright *** -->
<P> <hr> <P>
<H5 ALIGN=center>
Copyright © 2002, the Editors of <I>Linux Gazette</I>.<BR>
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
Published in Issue 74 of <i>Linux Gazette</i>, January 2002</H5>
<!-- *** END copyright *** -->
</BODY></HTML>
|