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
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
<!ENTITY % globalents SYSTEM "global.ent">
%globalents;
]>
<book id="tuxlab-cookbook">
<title>tuXlab Cookbook</title>
<bookinfo>&jean;
<othercredit>
<firstname>Leonora</firstname>
<surname>van Staden</surname>
<contrib>Illustrator</contrib>
</othercredit>
<edition>&tuxlab-edition;</edition>
&pubdate;
©right;
&legalnotice;
&publisher;
</bookinfo>
<!--
We use an apostrophe to create plural forms in two limited situations:
for pluralized letters of the alphabet and when we are trying to create
the plural form of a word that refers to the word itself. Here we also
should italicize this "word as word," but not the 's ending that belongs
to it. Do not use the apostrophe+s to create the plural of acronyms
(pronounceable abbreviations such as laser and IRA and URL) and other
abbreviations.
http://webster.commnet.edu/grammar/plurals.htm
-->
<!-- I don't capitalise "internet".
http://blog.contentious.com/archives/2004/08/16/jargon-evolution-ditching-unnecessary-capitalization
http://blog.contentious.com/archives/2004/09/30/yes-i-said-internet-and-so-did-npr
-->
<chapter id="introduction">
<title>Introduction</title>
<para>If you're reading this, you're about to embark on a journey of
discovery and empowerment. Welcome! Though it might seem like a uphill
battle now, you'll soon be the master of your tuXlab, with a roomful of
computers humming along and a community of users making them work
hard.</para>
<para>This book is meant for anyone who would like to set up a computer
laboratory according to the specifications of the Shuttleworth Foundation.
This kind of laboratory --- called a
<emphasis>tuXlab</emphasis> after the Linux mascot, Tux the Penguin (XXX:
Tux image) --- uses only free software, is easy to administer, and makes
the best use of old or obsolete hardware. It has been designed to be easy
to administer, and because it is properly documented (for example, in the
book you're holding now), there is a community of tuXlab administrators to
whom you may turn for help if you get stuck.</para>
<para>Although the tuXlab project is primarily aimed at schools, tuXlabs
are not only useful in a school environment. Any kind of community
organisation may benefit from a secure and powerful computer laboratory, so
feel free to pass on this book to anyone who can use it.</para>
<section id="how-to-use-this-book">
<title>How to use this book</title>
<para>This book caters for a couple of different audiences. In the first
place, the book accompanies all the tuXlab installations done by the
volunteers of the
<ulink url="http://www.slug.org.za"> Schools Linux Users Group</ulink>. In
this case, it serves to document what you have, and to help you
understand it in order to keep it in good running order.</para>
<para>In the second place, the book will be sent to schools or centres
that have been selected to become part of the tuXlab program, but that
are too remote for the volunteers to reach in order to do the
installation. In this case, you'll have to take care of it yourself, and
this book is intended to guide you through this process.</para>
<para>Lastly, anyone with enough enthusiasm, as well as access to some
old computers and the other equipment necessary, may use the book as a
blueprint to install a computer lab for their community.</para>
<para>The book is also meant to introduce you to the concept of a
computer laboratory, and to give you some insight into what it takes to
run one. It provides you with the necessary background to apply to the
Shuttleworth Foundation for inclusion in the tuXlabs program, laying out
the requirements for participation.</para>
<itemizedlist>
<listitem>
<para>If you are thinking of applying for a tuXlab, start reading at
<xref linkend="getting-a-lab" /> to see what it takes to get involved
in the tuXlab program.</para>
</listitem>
<listitem>
<para>If you're preparing to install your own tuXlab, turn to
<xref linkend="lab-layout" /> to start readying the space.</para>
</listitem>
<listitem>
<para>If you already have an up and running tuXlab, you'll want to
skip to
<xref linkend="software-components" /> to find out about everything
your tuXlab has installed.</para>
</listitem>
</itemizedlist>
</section>
<section id="why-we-wrote-this-book">
<title>Why we wrote this book</title>
<para>The ultimate aim of the tuXlab project is empowerment: to place
state of the art Information and Communication Technology within the
reach of everyone. This is in line with the
<ulink url="http://www.ictcharter.org.za/"> Empowerment Charter</ulink> for
the ICT Sector, an industry-driven document being put together by major
stakeholders in the ICT sector, together with valuable input from
government represented, in part, by the Department of Communications and
the Department of Trade and Industry. However, computers and networks are
complicated things, and simply knowing how to ask the right questions can
be very hard if you don't already have a lot of experience.</para>
<para>This book is intended to help you to be self-sufficient, and to
enable you to ask for help effectively. It gathers together information
about all the components that make up a tuXlab, and it tells the story
behind the global, grass-roots free software movement that created all
the software, millions upon millions of lines of code, that make it
work.</para>
<para>The book sketches a big picture, relating the individual tuXlab to
all the other tuXlabs out there, and to the wider free software
community, and is intended to foster good communication among all
participants in the project.</para>
</section>
<section id="tuxlab-project-outline">
<title>tuXlab project outline</title>
<para>The tuXlab project has its roots in the Shuttleworth Foundation's
commitment to improve the standard of education in South Africa. This is
a huge task with many facets, and just putting computers in schools is
not nearly enough. The one critical factor in education is the people
involved: the teachers and the learners they have to educate. For
computer labs to make a difference, the people who use them must
understand them and be able to use them for anything that they can
imagine. They must be able to take ownership of the computers and the
software that they run, and to create new learning material to share with
each other and with society as a whole.</para>
<para>While an understanding of computers and information technology is
critical in our modern global society, they are not a sufficient goal in
themselves. There are many other fields of knowledge that beckon to be
explored, and to be discussed and debated with other people. However,
publishing and distributing books on paper is expensive, and unless you
are in a big city with the means to travel around easily, it is awkward
and costly to take part in the global conversation. Information
technology offers us a chance to leapfrog these problems by providing
access to vast resources of texts, curricula, art and music via the
internet, and allows us to stay in touch by electronic means, even in
remote areas.</para>
<para>Without some degree of mastery of technology, it is easy to miss
the debates of real importance on the internet. To understand legislation
concerning intellectual property, access to information and privacy
issues, it is crucial to understand what the technology offers and how it
differs from the possibilities of the past. In a sense, this is the real
meaning of the digital divide: if you don't understand how computers and
networks can be used, you can starve even in the midst of plenty of
conversation and information.</para>
<para>To accomplish these objectives of social innovation and
empowerment, and to further the uptake of technology in South Africa, the
Shuttleworth Foundation launched the tuXlab project. The aim of this
project is to establish a national network of computer laboratories based
exclusively on open source software. The Shuttleworth Foundation strongly
believes that open source software should be the preferred choice of
software for schooling in South Africa. Open source software provides
users with freedoms not obtainable from proprietary software. This
includes the freedom to obtain, use, modify and distribute the
software.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/opensourceyahoo.png" />
</imageobject>
</mediaobject>
<para>The Shuttleworth Foundation believes that the use of open source
software will provide effective and economical access to information and
communication technology.</para>
<section id="open-source-learning-centres-background">
<title>Open Source Learning Centres Background</title>
<para>In 2002 the Foundation started to actively promote the use open
source software as a computer lab solution for schools. The Foundation
funded several projects to establish open source based computer labs in
schools, as well as an internally initiating a pilot to prove the
effectiveness of open source software as a school computing solution.
The Foundation also initiated a project to facilitate the involvement
of volunteers in refurbishing computers and establishing open source
learning centres.</para>
<para>Based on the success of the pilot and volunteer project, the
Foundation extended the pilot to establish a further 80 open source
learning centres in the Western Cape. This goal was reached in November
2004.</para>
</section>
<section id="shuttleworth-tuxlab-program-outline">
<title>Shuttleworth tuXlab Program Outline</title>
<para>Both primary and secondary schools are being targeted. In order
to maximise the impact of the program, schools are selected in
clusters. Through clustering, schools are able to plan the use of the
centres together, and they can share resources and community support.
The Shuttleworth Foundation believes that clustering is the best method
of ensuring that schools remain self-sufficient in terms of support in
the future. This is supported by the
<emphasis>Computers in Schools</emphasis> survey of 2000, which states
(my emphasis):</para>
<blockquote>
<attribution>
<ulink url="http://www.school.za/research/uwc-epu/screen/Executive%20Summary.pdf">
Computers in Schools, 2000</ulink>
</attribution>
<para>Experiences from other countries, whatever their stage of
development, show that factors which accompany the successful
implementation of ICTs in schools are
<emphasis>networks of connectivity</emphasis> and
<emphasis>structured and continuous programmes</emphasis> to train
teachers to use the new technology for educational purposes.</para>
</blockquote>
<para>Within a cluster, schools are selected based on criteria set by
the Foundation. At a very minimum, these criteria will include the
availability of a secure computing environment, guaranteed commitment
of the school (including governing body) to the project, as well as
proof of comprehensive plans to introduce the Shuttleworth tuXlab into
school activities. Additional criteria may be set for each
cluster.</para>
<para>Within each school, a 20 to 24 seat tuXlab is established.
Refurbished hardware is used for the workstation computers, and new
hardware purchased for the server. The Shuttleworth tuXlabs are
implemented using a thin-client paradigm, with GNU/Linux used as the
primary operating system and open source applications wherever
possible.</para>
<para>The Shuttleworth Foundation requires that staff and students
participate fully in the installation process. In accordance with its
mandate, the Foundation adopts a skills transfer methodology during
installation --- all participants will receive the necessary skills to
establish and maintain further Shuttleworth tuXlabs. The Foundation
will also facilitate the involvement of external volunteers, such as
students, throughout the entire process.</para>
<para>Throughout the course of this program, the Foundation intends to
partner with as many organisations as possible. On its own, the
Foundation does not have the resources and infrastructure to take the
tuXlab program national. Through partnership we hope to maximise the
impact of the program, develop skills, reduce costs, grow resources,
and hopefully facilitate the adoption of the program within other
contexts.</para>
<para>In 2005, hundreds of tuXlabs are being installed throughout South
Africa in partnership with local organisations and user groups. The
project is also being launched in Namibia, and reports of roll-outs
overseas (such as a large-scale project in Azerbaijan! (XXX: link))
have also come in.</para>
</section>
</section>
</chapter>
<chapter id="walkthrough">
<title>Walkthrough</title>
<para>Maybe you've just taken acceptance of a brand new tuXlab, or perhaps
you're just dreaming about when it will all be done. Whatever the case may
be, let's take a walk through the completed lab to see how everything fits
together.</para>
<section id="the-lab">
<title>The lab</title>
<para>Every tuXlab consists of a room where people may come to use the
facilities of the lab.</para>
<para>The room is secured with a gate and burglar bars on the windows,
and the really expensive components of the tuXlab are locked away even
further, in another room or in a cage.
<footnote>
<para>See
<xref linkend="lab-layout" />.</para>
</footnote></para>
<para>The room provides a comfortable space to work in, with desks at the
right height for the learners at the school, and with enough plugs and
cables for all the computers. All the users of the tuXlab may sit down at
any of the workstations and log in, to find their working environment
just as they left it, even if they're using a different computer
now.</para>
</section>
<section id="the-machines">
<title>The machines</title>
<para>A tuXlab usually contains between 20 and 25 workstation computers,
although you may add workstations if you already have some computers, or
if you can get donations. These workstations are connected to a server
computer by way of a high-speed network.</para>
<para>The workstations are where the rubber hits the road, so to speak.
They are standing out there on the desks, and everyone who uses the
tuXlab is constantly using their keyboards and adjusting their screens,
and so they do undergo some wear and tear. Because they are intended to
be accessible to use, they are not that easy to secure. If something is
locked away, it's hard to learn how to use it. To deal with this state of
affairs, tuXlabs are designed so as to make the workstations as cheap and
as easy as possible to replace. They should be completely
interchangeable, and they store nothing: no documents, and no information
about any user.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/workstation.png" />
</imageobject>
<caption>A classroom workstation</caption>
</mediaobject>
<para>The server actually does all the work in a tuXlab. If the server
goes away, the workstations will just stand around scratching their
heads, like bees when something happens to the queen bee. Whatever you
see when working at a tuXlab workstation has been sent to the workstation
by the server over the network. All the documents you save, and all the
information regarding users, everything is stored on the server.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/server.png" />
</imageobject>
<caption>A classroom server for a tuXlab</caption>
</mediaobject>
</section>
<section id="the-network">
<title>The network</title>
<para>The third critical component of a tuXlab is the computer network
that connects all the machines in the room. If you're looking at a
finished tuXlab, the network cabling shouldn't be terribly obvious.
However, every workstation has a Ethernet cable plugged into it, and you
should be able to see the switch cabinet where all the cables go.
However, if you were to look inside the trunking running along the walls
or under the desks, you would see that there is an Ethernet cable for
each and every workstation, connecting it to the network switch. The
tuXlab server is also connected to the switch by a fly-lead.</para>
<para>In this configuration, it is as if every workstation in the tuXlab
is connected directly to the server. The switch itself is transparent to
the network. It sees to it that network traffic from the server is sent
as directly as possible to the workstation for which it is intended. From
the perspective of the computers, it looks as though they're all
connected directly to each other.</para>
<para>If anything goes amiss in a tuXlab, there's an even chance that it
may be a problem with the network, since, from the workstation's point of
view, a broken network is just as bad as a broken server. It can't do
anything in either case.</para>
</section>
</chapter>
<chapter id="background">
<title>Background</title>
<section id="starting-from-scratch">
<title>Starting from scratch</title>
<section id="what-goes-in-a-lab">
<title>What goes in a lab?</title>
<para>A tuXlab consists of computers, a lot of cables, a room to put
them in, and software to make the computers do something useful.</para>
<para>Most of the computers are client workstations. They're the
computers that are used every day by the lab users. One or two
computers, however, are
<emphasis>servers</emphasis>. They are locked away and normally only
accessed via the network. The classroom server is by far the most
powerful computer in the lab, and does all the work.</para>
<para>All the equipment in a tuXlab is
<emphasis>networked</emphasis>. For this, all the computers need a
network card, which is connected to a network switch using a length of
cable.</para>
<para>Lastly, the computers need software to run. The software falls
roughly into two categories: the operating system software, and
applications. All the computers in the lab run the Linux operating
system (the workstations fetch their copy from the server upon
startup). This enables the server to display the applications it is
running for all the workstations on the screens of the workstations
themselves, using the
<application>X Windows</application> system, the graphical windowing
environment used by Linux.</para>
<para>The applications installed in a tuXlab are focused on an
educational environment, and include software that is essential for
general computer literacy such as word processors, spreadsheet and web
browsers, as well as educational software that allow learners to
practise skills (e.g. typing, arithmetic) and knowledge (e.g. spelling,
geography). See
<xref linkend="open-source-educational-software" /> for some examples.
Besides these, a tuXlab contains a great variety of programming
languages, tools, texts and examples that can be used to teach
programming and to study how existing programs work, all the way from
first principles to systems architecture. Nothing is proprietary: you
may examine the source code of every component in the system.</para>
<para>In the following sections, we'll look much more closely at how
these parts fit together.</para>
</section>
<section id="what-is-an-operating-system">
<title>What is an Operating System?</title>
<para>In the earliest days of computers, a whole machine was built to
do only one thing, for example numerical integration. There was no
clean distinction between hardware and software, as aspects of the
program might be reflected by physical switches and jumpers set on the
machine itself.</para>
<para>As computers became more general, the same computer could be
programmed to do many different things. All these programs, however,
would still have to deal with the hardware aspects of the machine,
writing to the printer, reading from the magnetic drum memory, and so
on. Since these jobs needed to be done over and over and over again,
the bits of code that dealt with them could be shared among all the
programs that run on that computer. This shared code, the code that
handles the basic tasks any program needs in order to run, was the
beginning of operating systems.</para>
<para>Today's operating systems are complex, sophisticated systems,
that can schedule many different programs to run at once, and that
provide such a comprehensive range of services that many programs can
be compiled to run on many different operating systems, regardless of
the variations in the underlying hardware.</para>
<para>An operating system (
<acronym>OS</acronym> for short) is the most basic layer of the
software, and if your computer is switched on, the operating system
kernel is the one program that will always be executing. It provides a
framework for all the subsystems that make up the computer.</para>
<para>Imagine, for a moment, that a computer is like a ship. The
physical hardware is the steel or wooden hull that floats. The
operating system is like the officers of a ship, and its subsystems are
like the captain, the first mate, the engineer, the cook, and so on.
They see to it that the engine is running and that the ship is on an
even keel.</para>
<para>All the other software that runs on the computer are like the
rest of the crew and the passengers. The operating system manages the
resources of the computer like the captain manages the crew of the
ship. He maintains discipline, sees to it that the crew don't fall all
over one another, do things in an orderly fashion, and keep everything
shipshape.</para>
<para>If a program does something wrong (such as writing to memory that
the operating system is using for something else. In the ship example,
this is like making a hole in the hull!), the operating lets the
offending program know, shutting it down completely if necessary (it
gets thrown in the brig).</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/operatingsystem1.gif" />
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="images/operatingsystem2.gif" />
</imageobject>
</mediaobject>
<section id="what-is-linux">
<title>What is
<emphasis>Linux</emphasis>?</title>
<para>Linux is an
<emphasis>operating system</emphasis> consisting of a
<emphasis>kernel</emphasis> as well as all the hundreds of libraries,
tools and utilities that make it usable as a computing environment.
The kernel was developed by Linus Torvalds, using the tools and
utilities of the
<ulink url="http://www.gnu.org"> GNU project</ulink>. Together, the
whole system is called GNU/Linux. Some other common operating systems
are the Unix family (including members like Linux, BSD, AIX, Solaris,
HP-UX, and others); DOS; Microsoft Windows; Amiga; and Mac
<acronym>OS</acronym>. An upcoming variety of operating systems, such
as Symbian and PalmOS, run on cellphones. There are special-purpose
operating systems wherever you look, far more than you would have
suspected.</para>
<para>Linux is Free Software. So, not only is it OK to make copies of
Linux and give them to your friends, it's also fine to fix things
while you're at it --- as long as you also freely provide your
modified source code to everyone else. When you're doing this, you're
not just providing a freebie to the people who get your fixes: you're
also exercising your right to influence Linux, and to change the way
that you want it to work. In return for this right which has been
granted to you, you must allow those who come after you the same
freedom in making use of your work. The issue is
<ulink url="http://www.gnu.org/philosophy/free-sw.html">
<emphasis>freedom</emphasis>, not price</ulink>.</para>
<note>
<title>Charging for Free Software</title>
<para>How can people build businesses on software if everything
must be given away? Actually, you're welcome to ask money, but then
people are paying for your expertise and services, e.g. assurances
of support that you may give them. You may also provide added
value, such as attractive packaging and shipping. Only the source
code itself must be available at nominal cost.</para>
</note>
<para>No one company or individual "owns" Linux. It was developed,
and is still being improved, by thousands of programmers all over the
world. Some are supported by businesses that make money from their
work, and some are volunteers who like to help people. Some are
scientists who need computers to get their work done, and who find it
convenient to use Linux because they can easily adapt it to do
exactly what they require to get their research done.</para>
</section>
<section id="which-operating-system-is-best">
<title>Which operating system is best?</title>
<para>Our consumer culture puts huge stress on having "the best".
Usually this means wearing some fashionable brand of jeans, or
driving a fancy car. Obviously this is a very superficial
measurement, and we have to look deeper when trying to compare
operating systems.</para>
<para>It's important to remember that computer science is relatively
young. I don't think that any operating system has been in continuous
use for longer than a single human lifespan. At the dawn of the
computer age, there was a great explosion of diversity, like in the
Cambrian period in prehistory, when different designs and
architectures proliferated. This was succeed by a period of
consolidation, with the result that today, even though the details
"under the hood" may be very different, a great deal of consensus has
emerged about the types of services an operating system should
provide.
<footnote>
<para>This consensus is reflected in
<emphasis>standards</emphasis>, such as the
<ulink url="http://www.pasc.org/#POSIX"> Portable Operating System
Interface</ulink> (
<acronym>POSIX</acronym>).</para>
</footnote></para>
<mediaobject>
<imageobject>
<imagedata fileref="images/operating-joke.png" />
</imageobject>
</mediaobject>
<para>At the moment, the operating systems you're likely to encounter
on desktops are to some extent interchangeable. Linux, Macintosh OS X
and Windows all implement
<acronym>POSIX</acronym> to some degree. Software that was written to
make use portable use of the operating system's services may be
compiled to run on all of them.</para>
<para>These operating systems can all do the same jobs, and you may
develop skills that apply to other operating systems on any of them.
Therefor there is no quick, objective answer to the question as which
one is "best". You have to forget that one, and ask a better
question: "Which operating system is best
<emphasis>for me</emphasis>?"</para>
<para>Well, of course that depends on who you are and what you need
it for. If you're interested in tuXlabs then you probably don't have
lots and lots of money, and you're probably interested in learning:
learning about computers, yes, but also education in general. When
answering this question for yourself, here are two things to keep in
mind:</para>
<itemizedlist>
<listitem>
<formalpara>
<title>How does it impact the world I live in?</title>
<para>The software you choose can influence many aspects of
your life. For example, you need to ask: "Who controls the
technology?" If you teach yourself to use a product that
belongs to some company, you'd better hope that they don't go
out of business.</para>
</formalpara>
<para>Governments are also starting to use computers for tasks
such as counting votes. During the previous two elections in
America, there was great controversy about the results turned in
by Diebold's vote counting machines. Diebold controls the
software, and expect voters to take the trustworthiness of their
software on faith. For matters such as this, democracies in the
digital age must use open source software.</para>
</listitem>
<listitem>
<formalpara>
<title>Current technical merit is only one measure</title>
<para>Even if something is imperfect now, if you can get at it,
you can make it better and learn in the process.</para>
</formalpara>
<para>For example, the open source program called the
<application>GIMP</application> (the GNU Image Manipulation
Program) goes head-to-head with Adobe
<application>Photoshop</application>. At the moment, Photoshop
still comes out pretty far ahead, but it has been under
continuous development for a decade or more. Does this mean that
aspiring designers should turn their back on the GIMP? If they
do, they lose the things that the GIMP already gives them which
Photoshop doesn't, such as the ability to write extensions in a
variety of high-level programming languages, and to build on the
contributions of the entire community of users.</para>
</listitem>
</itemizedlist>
</section>
</section>
<section id="what-is-a-distribution">
<title>What is a distribution?</title>
<para>In the following text, you'll read about a number of different
<emphasis>distributions</emphasis>, e.g. Debian, K12LTSP and RedHat
Fedora. This is a term that emerged from the open source way of
gathering and organising software for sharing: a coherent,
well-maintained, up-to-date collection of software (especially on the
scale of an operating system) is called a
<emphasis>distribution</emphasis>.</para>
<para>As you saw above, Linux is the source code of an operating system
being written by hundreds of volunteers who pursue their own goals and
interests. It uses tools from other projects, such as the GNU project,
and is used on a very wide range of machines, for widely varying goals.
From this, you may imagine that it is a hugely complex system, and
you'd be right. Assembling just the subset of code that is relevant to
you, and compiling it to run optimally on the hardware that you happen
to have, is a major undertaking requiring deep skill and experience.
Keeping your system up to date with changes in disparate parts of the
whole is a major undertaking in itself.</para>
<para>In order to have a manageable system, well-understood and
reasonably easy to customise and keep up to date, groups of users began
to band together to collect just the right combinations of software,
and to coordinate this job. Some people built their business around the
process of gathering, labelling, testing, documenting and marketing
free software, for example RedHat and SuSE. Some communities assemble
distributions that conform to their ideals; Debian, for example,
operates in accordance with a
<ulink url="http://www.debian.org/social_contract"> Social
Contract</ulink> which maintains the same principles of good husbandry
and mutual cooperation that prompted Richard Stallman to found the Free
Software Foundation.</para>
<para>tuXlabs and Wizzy actually make use of no less than
<emphasis>four</emphasis> related distributions.
<itemizedlist>
<listitem>
<para>The classroom server runs a modified K12LTSP distribution,
and</para>
</listitem>
<listitem>
<para>the Wizzy server is based on Whitebox Linux.</para>
</listitem>
<listitem>
<para>K12LTSP, in turn, is based on RedHat Fedora;</para>
</listitem>
<listitem>
<para>and Whitebox Linux is based on RedHat Enterprise.</para>
</listitem>
</itemizedlist> In part, the reasons for the variation are historical:
the Wizzy solution was developed independently of the tuXlab
project.</para>
</section>
</section>
<section id="where-it-all-began">
<title>Where it all began</title>
<section id="academic-computer-science-background">
<title>Academic computer science background</title>
<para>The idea of free software, with source code that could be shared
by everyone, started in academia. In America, it was Richard Stallman
at MIT, the Massachusetts Institute of Technology, who started the ball
rolling, but the person who accidentally turned it into an avalanche
was Linus Torvalds, a Finnish university student.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/stallman.png" />
</imageobject>
<caption>Richard Stallman</caption>
</mediaobject>
<para>At MIT, Stallman had been part of a community of programmers that
came to an end when their work was commercialised and access to the
source code was restricted. To Stallman, this felt like having the air
he needed to breathe cut off. Because Stallman believed strongly that
programmers should be able to help one another by sharing their source
code, he set out to write a complete free operating system. He began
systematically, though, first setting out to write all the supporting
tools that an operating system requires to work. This is a mammoth
task, and in fact they're still busy refining better and better
tools.</para>
<para>Linus Torvalds, in Helsinki, wasn't burdened with any such a
sense of responsibility or thoroughness. He just wanted to make the
most of the PC he had at home, which had an Intel 80386
<acronym>CPU</acronym>. The 80386 contained a memory management unit,
which was big news at the time. The operating systems he had at his
disposal didn't take advantage of this and he dearly wanted to use it,
and so he started to write his
<emphasis>own</emphasis> operating system. To do this, he used many of
the tools created by the GNU project. After months and months of steady
work, he released a very early version of the kernel that became known
as Linux to the internet. To his surprise, other people started sending
him fixes and improvements for his kernel, and eventually he found
himself managing and coordinating a global community of programmers.
All of them were using and improving Linux, and building on each
others' work.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/linus.png" />
</imageobject>
<caption>Linus Torvalds</caption>
</mediaobject>
<para>In a sense, the free software community that Stallman had known
at MIT had risen anew, on a global scale. Their rallying point was a
system made up of the Linux kernel, and the GNU development
environment.</para>
</section>
<section id="open-source-software">
<title>Open Source Software</title>
<para>The first one to think of a name for the kind of software that
could be shared without restrictions on how you could use it was
Richard Stallman. He called it Free Software, because he wanted to
emphasise the freedoms that he valued highly enough to dedicate his
life to writing a free operating system.</para>
<para>The
<ulink url="http://www.fsf.org"> Free Software
Foundation</ulink> supports the freedoms of speech, press, and
association on the internet, the right to use encryption software for
private communication, and the right to write software unimpeded by
private monopolies. Stallman formulated a license, the
<ulink url="http://www.gnu.org/copyleft/gpl.html"> GNU Public
License</ulink>, which uses the mechanism of copyright to protect these
freedoms, and to add the responsibility of passing them on to other
users of the software.</para>
<para>When Linux started to be noticed by business, and when it began
to be marketed as a serious IT platform, this emphasis on freedom made
some people uncomfortable. The argument was that people don't run their
businesses in order to advance someone's freedom of speech --- they run
their business to make money!</para>
<para>Instead of emphasising the
<emphasis>freedom</emphasis> aspects so dear to Stallman's heart, more
emphasis was placed on the fact that everyone had access to the source
code of Linux. The programmer and writer Eric Raymond wrote some
<ulink url="http://www.catb.org/~esr/writings/cathedral-bazaar/">
influential papers</ulink> in which he argued that the Linux style of
community development produced
<emphasis>better software</emphasis> than the proprietary alternative.
The choice for open source software could be made on a purely pragmatic
basis. The critical factor, in his view, was the availability of the
source code, and therefor he coined the term
<emphasis>Open Source</emphasis> to describe this kind of
software.</para>
<para>The contrast may be summed up in the sentence: "Open source is a
development methodology; free software is a social movement."
<ulink url="http://www.fsf.org/philosophy/free-software-for-freedom.html">
<acronym>FSF</acronym>
</ulink></para>
<para>Neither one of these approaches encompass the whole truth, they
simply emphasise different aspects of a rich sphere of human endeavour.
The pragmatic approach taken by tuXlabs in the selection of software
for inclusion leans more toward the open source side of the debate, but
the Shuttleworth Foundation's goal of "social innovation" is in line
with the
<acronym>FSF</acronym> philosophy.</para>
<para>Various other streams exists. The BSD license of the
<ulink url="http://www.freebsd.org"> FreeBSD</ulink> project, for
example, does not specify the responsibilities of the GPL, and allows
code under the BSD license to be incorporated into proprietary
software. For many years, for example, the Windows
<acronym>TCP/IP</acronym> stack (see
<xref linkend="tcp-ip" />) was based on BSD code right up to the period
of
<application>Windows 2000</application>--- perhaps it still is?</para>
</section>
<section id="open-source-culture">
<title>Open Source Culture</title>
<para>As the open source culture matured, the principles of mutual
education, self-sufficiency and sharing were applied to many things
besides software. One of the first projects to bring the wider world of
culture into the open source community was
<ulink url="http://www.gutenberg.org/"> Project Gutenberg</ulink>, a
project to make available as many as possible public domain and freely
redistributable texts at no cost. Due to recent changes in American
legislation (which enables copyright holders to keep works out of the
public domain forever), this essentially means works created before
1923. At the moment, there are more than 13,000 books
<ulink url="http://www.gutenberg.org/catalog/"> available for
download</ulink>.</para>
<para>Another open source project is the
<ulink url="http://www.wikipedia.org/"> Wikipedia</ulink>, an online
encyclopedia read and edited entirely by volunteers. The English
edition, started in 2001, already has almost half a million articles.
If your tuXlab includes a Wizzy internet server, the entire Wikipedia
can be made available on the tuXlab network.</para>
<para>
<ulink url="http://www.lessig.org/"> Larry Lessig</ulink>, a law
professor at Stanford, noticed the need to apply the open source
principles of collaboration and sharing in other domains besides
software, and set about crafting a flexible set of licenses that could
be used to bring music, books, movies and educational material into the
open source world. Since his project has as a goal the re-establishment
of a
<emphasis>commons</emphasis>, a area for the use of the community as a
whole, to replace the endangered public domain, these licenses are
called the
<ulink url="http://creativecommons.org/"> Creative
Commons</ulink> licenses.</para>
<section id="why-do-people-do-this">
<title>Why do people do this?</title>
<para>There are many reasons, but I'll mention only one. Far more
expensive than the recording of a song, or the writing of a book, is
the task of promoting, printing and distributing it. Unless this task
can be handed over to everyone who reads or listens, only large media
companies are able to afford this cost. A creative commons license
allows authors to publish work that the media companies are not
interested in.</para>
</section>
</section>
<section id="open-source-in-education">
<title>Open Source in education</title>
<para>Free Software can be a valuable resource in education, and can
also promote the values of the GNU project, namely freedom and
cooperation, in schools.</para>
<para>There are general reasons why all computer users should insist on
free software.
<footnote>
<para>Source for the following paragraphs:
<ulink url="http://www.fsf.org/philosophy/schools.html">
http://www.fsf.org/philosophy/schools.html</ulink></para>
</footnote> It gives users the freedom to control their own computers
--- with proprietary software, the computer does what the software
owner wants it to do, not what you want it to do. Free software also
gives users the freedom to cooperate with each other, to lead an
upright life. These reasons apply to schools as they do to
everyone.</para>
<para>But there are special reasons that apply to schools.</para>
<itemizedlist>
<listitem>
<para>First, free software saves money. Even in the richest
countries, schools are short of money. Free software gives schools,
like other users, the freedom to copy and redistribute the
software, so the school system can make copies for all the
computers they have. This is essential to help close the digital
divide.</para>
</listitem>
<listitem>
<para>Secondly, schools should help learners to build a strong
society after they leave school. They should promote the use of
free software just as they promote recycling and protecting your
environment. If schools teach learners about free software, then
they will use free software after they leave school. This will help
communities to be more self-reliant, and will make them less
dependent on big corporations who repatriate their profits to other
countries.</para>
</listitem>
<listitem>
<para>Thirdly, free software permits learners to find out how
software really works. They can go and look at the source code to
find out how the operations they use were implemented, and
experiment by changing it.</para>
</listitem>
</itemizedlist>
<para>Proprietary software rejects their thirst for knowledge: it says,
"The knowledge you want is a secret --- learning is forbidden!" Free
software encourages everyone to learn. The free software community
rejects the "priesthood of technology", which keeps the general public
in ignorance of how technology works; we encourage students of any age
and situation to read the source code and learn as much as they want to
know. Schools that use free software will enable gifted programming
students to advance.</para>
<section id="resources">
<title>Resources</title>
<para>Here are pointers to a few of the organisations and projects
that work to further the use of free software in education:</para>
<itemizedlist>
<listitem>
<para>The
<ulink url="http://www.nl.debian.org/devel/debian-jr/"> Debian Jr.
Project</ulink> is a custom Debian distribution. It aims to make
Debian an
<acronym>OS</acronym> that children will want to use, by studying
the needs expressed by the children themselves. Their initial
focus is on children up to age 8. Once this goal has been
accomplished, their next target age range is 7 to 12.</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.tux4kids.com/"> Tux4Kids</ulink> provides
some great software packages for Debian Jr.</para>
</listitem>
<listitem>
<para>
<ulink url="http://wiki.debian.net/?DebianEdu">
DebianEdu</ulink> is about improving Debian to make it the best
distribution for educational use.</para>
</listitem>
<listitem>
<para>Because they believe that free and equal access to
information technology is important in modern society, the
<ulink url="http://www.ofset.org/"> Organisation for Free Software
in Education and Teaching</ulink> is actively promoting and
developing free software for schools.</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.schoolforge.net/"> SchoolForge</ulink> is an
umbrella organisation or a communication channel for different
groupings with the mutual goal to advance open resources at
school.</para>
</listitem>
<listitem>
<para>The
<ulink url="http://sourceforge.net/projects/osie"> Open Source in
Education Project</ulink> (OSiE) supports and advocates the use of
GNU/Linux systems in the UK.</para>
<para>This is just one example of a local project. Others exist
in
<ulink url="http://fsub.schule.de/"> Germany</ulink>,
<ulink url="http://www.linuxdidattica.org/"> Italy</ulink>,
<ulink url="http://www.laka.lv/"> Latvia</ulink>,
<ulink url="http://www.gleducar.org.ar/"> Argentina</ulink>, and
many other countries across the globe.</para>
</listitem>
</itemizedlist>
</section>
</section>
</section>
<section id="what-does-this-let-us-do">
<title>What does this let us do?</title>
<para>Great, now we know what we have. What can we do with it? Three
things:</para>
<itemizedlist>
<listitem>
<para>We can start bridging the Digital Divide.</para>
<para>A tuXlab can provide access to information, books, music, news,
and myriads of other resources. It can also provide new ways to
communicate with your peers, near and far, and open channels of
communication to organisations that may be hard to reach because they
are far away or widely distributed.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/ditaldivide.png" />
</imageobject>
</mediaobject>
<para>In order to manage this, we must build something sustainable,
unbreakable and flexible. Instead of leaping ahead, for example by
accepting an expensive lab that we cannot maintain, with proprietary
software that we cannot study, we must build steadily from the ground
up, so that we have a foundation that will last. To do this, we have
to keep some things in mind:</para>
<itemizedlist>
<listitem>
<para>The components of the tuXlab must be as cheap as possible.
Use what's available, and make the parts generic and
interchangeable. Use standards, for example
<acronym>TCP/IP</acronym> for networking. (See
<xref linkend="tcp-ip" />.)</para>
</listitem>
<listitem>
<para>The tuXlab shouldn't require a permanent internet
connection in order to access cultural goods, and enable
participation in the culture.</para>
<para>Especially in South Africa, a high-bandwidth internet
connection is incredibly expensive. Wireless service providers
are just starting to appear in the big urban centres, but even
they cost hundreds of Rands per month, and that's for home
users.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>In this way, we foster self-reliance and create local
expertise, while building an international community.</para>
<para>In one of his essays, Richard Stallman writes about the
importance of free software in developing local IT expertise:</para>
<blockquote>
<attribution>Richard Stallman,
<ulink url="http://www.fsf.org/philosophy/schools.html">
http://www.fsf.org/philosophy/schools.html</ulink></attribution>
<para>Free software permits students to learn how software works.
When students reach their teens, some of them want to learn
everything there is to know about their computer system and its
software. That is the age when people who will be good programmers
should learn it. To learn to write software well, students need to
read a lot of code and write a lot of code. They need to read and
understand real programs that people really use. They will be
intensely curious to read the source code of the programs that they
use every day.</para>
</blockquote>
</listitem>
<listitem>
<para>Lastly, we can also save money. While it's essential to spend
money on education, we have to make sure that the money goes as far
as possible. By using only free software in tuXlabs, you save money
in a couple of ways:</para>
<itemizedlist>
<listitem>
<para>There are no software license fees to be paid. The Linux
operating system is world wide, stable, and FREE.</para>
<para>In addition, for every Windows software product we have
included a Linux alternative that looks for all intents the same.
For example, a word processor (that can read Microsoft word
document files, incidentally), a spreadsheet, a publisher, an
HTML editor for creating web pages, a typing tutorial, etc.
<footnote>
<para>This paragraph is from
<ulink url="http://wizzy.org.za/article/articleview/4/1/3" />.</para>
</footnote></para>
</listitem>
<listitem>
<para>By using free software and open file formats that you can
read without needing expensive software, we save money for the
community.</para>
<para>Whether they intend to or not, teachers make their
learners' families buy proprietary software if they use it at
school. By using free software that learners can take home, the
school helps the community to save money.</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist>
</section>
</chapter>
<chapter id="getting-a-lab">
<title>Getting a lab</title>
<section id="steps-involved-in-getting-a-lab">
<title>Steps involved in getting a lab</title>
<itemizedlist>
<listitem>
<formalpara>
<title>Get in contact</title>
<para>Contact the tuXlab team to gain information. The telephone
number is 0860 OS HELP (0860 674 357); the website, from which you
can download documentation, is
<ulink url="http://www.tuXlab.org.za" />. You should also get in
contact with the tuXlab closest to you, to see how you may assist
each other.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Get on the mailing list</title>
<para>Join the tuXlab mailing list by registering at
<ulink url="http://www.slug.org.za" />. You should join both the
<emphasis>announce</emphasis> and
<emphasis>schools</emphasis> mailing lists.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Submit questionnaire</title>
<para>Submit the completed questionnaire by sending a fax to 0860
674 357. Please complete the questionnaire electronically, or take
care to write legibly if you fill it out by hand. You may find the
questionnaire at the
<!-- XXX: how to protect ampersands in URLs from being
turned into entities? -->
<ulink url="http://tuxlab.org.za/index.php?option=content&task=blogsection&id=30">
tuXlab page</ulink>.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Attend your first tuXlab installation</title>
<para>Attend a tuXlab installation, to gain knowledge of the
technology platform and installation process. The times and dates
of installations are announced on the
<emphasis>announce</emphasis> mailing list mentioned above.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Attend tuXlab induction installation; prepare
proposal</title>
<para>Register to attend a tuXlab induction session. Prepare
proposal as well as infrastructure requirements.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Attend your second tuXlab installation, finalise</title>
<para>After your second tuXlab installation, you can contact the
tuXlab team to finalise outstanding requirements as well as await
final approval.</para>
</formalpara>
</listitem>
</itemizedlist>
</section>
<section id="drawing-up-a-business-plan">
<title>Drawing up a business plan</title>
<para>In order to qualify as the recipient of a tuXlab, you must have a
business plan that shows that you will be able to integrate the lab in
your school's curriculum, that you can muster the resources to keep the
lab in good operating condition, and that you will be able to involve the
wider community to benefit from the lab. Look at
<xref linkend="business-plan-template" /> for a good starting
point.</para>
</section>
<section id="the-lab-in-community-context">
<title>The lab in community context</title>
<section id="clusters-of-schools">
<title>Clusters of schools</title>
<para>Schools will be selected in clusters. Through clustering, schools
are able to jointly plan and prepare for their tuXlabs, and can share
resources and community support. Clustering is a method of ensuring
that schools remain self-sufficient in the future.</para>
<para>A cluster consists of at least three schools. Each cluster will
form a committee consisting of at least two representatives from each
cluster school. These cluster committees should meet on a regular basis
(at least quarterly) to discuss and share ideas, experiences and
methodologies. Cluster communities should be in a position to setup a
future Shuttleworth tuXlab with their collaborative knowledge and
experience.</para>
</section>
<section id="volunteers">
<title>Volunteers</title>
<para>Open source communities are generally formed by developers,
administrators and users that freely provide their expertise and time
to the projects that interest them or that further their way of making
a living. Contributing to an open source project does not just take the
form of submitting source code, but rather any activity which benefits
the community or open source in general. Establishing tuXlabs is
similar in many respects to an open source software project --- rather
than developing software, the Shuttleworth Foundation is installing
labs, but still using the concept of open source volunteerism to
facilitate this process. Establishing a volunteer group is a daunting
task; however, with many possible methods to solicit volunteers, it is
possible.</para>
</section>
</section>
</chapter>
<chapter id="lab-layout">
<title>Lab layout
<footnote>
<para>See
<ulink url="http://www.shuttleworthfoundation.org/images/stories/docs/tuxlablayout.pdf">
tuXlab room layout</ulink> from the Shuttleworth Foundation's site.</para>
</footnote></title>
<para>Before you carry a lot of computers into a room, there needs to be a
good deal of preparation. A classroom will need to be modified to include
special features, such as a lockable cabinet to secure the switch and
server, and a layout that accommodates the re-arrangement, addition, or
removal of furniture. Electricity is another consideration: every computer
needs power, and in order to protect them from power surges, the computers
need to be on a separate power circuit.</para>
<para>Security is also an important consideration, and will involve at
least burglar bars on the windows and an alarm system. The exact security
measures that should be taken will differ from school to school. Several
factors should be considered: for example, the known crime rate in the
area, the isolation of the school, and the affordability of the security
measures.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/lablayout.png" />
</imageobject>
</mediaobject>
<section id="security">
<title>Security
<footnote>
<para>See
<ulink url="http://www.shuttleworthfoundation.org/images/stories/docs/infrastructurespecs.pdf">
Infrastructure and Security</ulink></para>
</footnote></title>
<para>Here are some guidelines to consider when selecting a room for a
tuXlab. They aren't hard and fast rules, and when you look through them,
you'll notice where there's room for initiative. They should however be
taken as a baseline to improve upon where there's opportunity.</para>
<section id="window-security">
<title>Window security</title>
<itemizedlist>
<title>Specifications:</title>
<listitem>
<para>Frame: 25mm square metal tubing, bolted to the wall.</para>
</listitem>
<listitem>
<para>Vertical Bars: 16mm round, 120mm c/c.</para>
</listitem>
<listitem>
<para>Centre Horizontal Bar: 30mm x 5mm flat bar.</para>
</listitem>
</itemizedlist>
<para>While the above may be used as a guide, the diameter and the
finish of the bars can be further determined by the school authorities
and the project manager, as is deemed necessary according to the known
risk in the area.</para>
</section>
<section id="stone-guards">
<title>Stone guards</title>
<para>Galvanised metal mesh should be fitted on all outside
windows.</para>
<para>The sides of the frame should be closed. For fasteners, use
tamperproof coach screws with turn-off heads.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/coach-screw.png" />
</imageobject>
<caption>A coach screw. Note the double head. The top part turns off,
making the screw very hard to remove once it's in.</caption>
</mediaobject>
</section>
<section id="non-concrete-ceiling-security">
<title>Non-concrete ceiling security</title>
<para>Wherever possible, the room identified for the lab should have a
concrete floor above it. This means that in schools with two levels, it
is preferable to select a room on the lower level. Where this is not
possible and the ceiling is of hardboard or something equally flimsy,
the ceiling should be covered with wire mesh or razor wire. In order to
notice tampering, it's probably best for the wire to be
<emphasis>beneath</emphasis> the ceiling.</para>
</section>
<section id="door-security">
<title>Door security</title>
<para>Since the gate is the key security feature, it should be made of
steel of substantial thickness. In some cases, an internal security
cage with steel gate or double steel gates are advised, depending on
finances and risks. Methods of securing and fitting of locks should be
strategic to make breaking in as difficult as possible.</para>
<para>Specifications:</para>
<itemizedlist>
<listitem>
<para>Frame: 50mm x 50mm x 5mm. Angle Iron bolted to the wall on 3
sides.
<mediaobject>
<imageobject>
<imagedata fileref="images/angleironbracket.png" />
</imageobject>
<caption>Angle iron and bracket</caption>
</mediaobject></para>
</listitem>
<listitem>
<para>Bolts should be welded shut, or tamperproof.</para>
</listitem>
<listitem>
<para>The fitting of two barrel type locks covered with metal
plates is advised.
<mediaobject>
<imageobject>
<imagedata fileref="images/barreltypelock.png" />
</imageobject>
</mediaobject></para>
</listitem>
</itemizedlist>
</section>
<section id="alarm-system">
<title>Alarm system</title>
<para>A security alarm system with at least two room sensors is
required. If the lab has a ceiling, a sensor in the ceiling is advised.
The alarm must be monitored around the clock, with armed response in
the event of an alarm event.</para>
<para>The number and location of sensors should be determined with
input from security companies.</para>
</section>
</section>
<section id="infrastructure">
<title>Infrastructure</title>
<section id="specifications-for-desktops">
<title>Specifications for desktops</title>
<para>The design and length of desktops in most cases is determined by
the number of computers and learners, and the size of the room. If
there is room, it's advisable to install desktops for future expansion
of computer network at once, depending on the finances
available.</para>
<para>New desktops should be postform, minimum 28mm thick or similar
stock, with a melamine/Formica/varnished finish. They must be 900mm
deep, to accommodate the keyboard, screen, and cabling without crowding
and with proper ventilation. Depending on the chair height and the age
of the learners, the top of the desktops should be 700 to 720mm from
the floor. It is important for the desks to be at an appropriate height
for the learners who will be using the lab, as an awkward posture can
impair concentration.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/gat-v-draad.png" />
</imageobject>
<caption>For every workstation, the desktops have a hole that
collects and passes through the network and power cables to the
trunking under the desks.</caption>
</mediaobject>
</section>
<section id="wall-brackets-and-centre-aisle-framework">
<title>Wall brackets and centre aisle framework</title>
<para>Desktops should be mounted on 40mm x 40mm x 5mm angle iron
brackets. They should only have legs if brackets are not a option, as
legs tend to get in the way of learners sharing workstations. Each
bracket must be a minimum of 750mm x 650mm. The brackets must be no
less than 1000mm apart and each must be fixed with at two heavy duty
rawlbolts, one of which must be as high up as possible.</para>
<para>Where appropriate, provision should be made for ducting along
which to run wiring and network cabling underneath the work surfaces,
with holes in the desktops to allow the cables to reach the computers
and peripherals.</para>
<para>Where possible, the length of the desk should be chosen to allow
1200mm of space for each computer.</para>
</section>
<section id="specification-for-server-cabinet">
<title>Specification for server cabinet</title>
<para>If it's at all possible, put the server in a separate room, where
it's out of sight and locked away permanently. All that is necessary is
for a network fly-lead to reach from the server to the network switch.
Otherwise, a well ventilated, lockable cabinet should be built.</para>
<para>This cabinet should be at least 900mm square inside, as it will
house the classroom server, another server acting as internet gateway,
and a modem. The cabinet will be set away from the wall to allow for
ventilation, since a pair of servers will generate a good deal of
heat.</para>
<note>
<itemizedlist>
<listitem>
<para>A wall mounted steel mesh cabinet can also be
installed.</para>
</listitem>
<listitem>
<para>Dimensions for steel mesh cage: LxDxH: 1200mm x 750mm x
720mm.</para>
</listitem>
<listitem>
<para>Height: 720mm Includes a 32mm x 900mm Postform Top.</para>
</listitem>
<listitem>
<para>Doors: 2 doors 450mm wide is required on the 900mm
section.</para>
</listitem>
<listitem>
<para>Suitable locks must be fitted so that the doors cannot be
easily opened.</para>
</listitem>
</itemizedlist>
</note>
</section>
</section>
<section id="electrical-requirements">
<title>Electrical requirements</title>
<section id="specification-of-electrical-wall-points">
<title>Specification of electrical wall points</title>
<para>It's important that all electrical work be done by a qualified
technician, who should issue a certificate of compliance to the school
upon completion of the work.</para>
<para>There must be enough 15 amp 3-point plugs to accommodate each
computer on a separate plug, and in addition, there should be enough
plugs for peripherals as well. A good rule of thumb is to have a double
plug for each computer point. For safety reasons, electrical wiring
must be in conduit piping below the work surfaces, but Surfix-type
cable and wall mounted sockets are also acceptable and should be
installed below desktops.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/surfixcable.gif" />
</imageobject>
<caption>This is a cross section of a Surfix cable.</caption>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="images/wallsocket.gif" />
</imageobject>
</mediaobject>
<para>To avoid power spikes and dips, which are extremely damaging to
workstations, the computer lab must be on its own electrical circuit.
The circuit must be broken into segments, each adequate to accommodate
the computers and peripherals on that segment. Air conditioners, or
other equipment that use a lot of electricity, must not share the
circuit with the computers.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/onwettige-plug.png" />
</imageobject>
<caption>Don't use extension leads or multi-plugs. They can cause
shorts and power spikes that may damage your equipment.</caption>
</mediaobject>
<para>Electrical wires to an island worktop in the middle of the room
must preferably be under the floor or must have suitable ducting.
Otherwise, it is a perfect certainty that someone will fall over the
wires, breaking their neck and bringing all the workstations within
reach crashing to the floor.</para>
</section>
<section id="subdistribution-electrical-board">
<title>Sub-distribution electrical board</title>
<para>The sub-distribution board should be fitted with earth leakage
protection, if required. A maximum of five wall plug sockets should be
connected to one circuit, and each circuit should be protected by a 20
amp circuit breaker.</para>
</section>
</section>
<section id="network-infrastructure">
<title>Network infrastructure</title>
<section id="switch-cabinet">
<title>Switch cabinet</title>
<para>Where required, a 4U cabinet will be installed to house a minimum
of two 24-port switches
<footnote>
<para>See
<xref linkend="networking" /> for an explanation of what switches
do.</para>
</footnote>, leaving some space for expansion. Server equipment is a
bit like bricks: they're all the same basic shape. One switch is 1U (or
unit) big, so a 4U cabinet has room for four of them. Computer
suppliers will know what you're talking about.</para>
<para>The placing of the switch cabinet should determined by the lab
layout, and to minimise the required cable lengths, it should be placed
in a central position. If installed in the lab, the cabinet should be
1000mm above or below desktops.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/switch.gif" />
</imageobject>
<caption>Cabinet to house switches</caption>
</mediaobject>
</section>
<section id="network-trunking">
<title>Network trunking</title>
<para>Network cabling must run in 40mm x 40mm square trunking. If
financial considerations require that network cabling share the
trunking of the electrical cabling, it is imperative for the
electricity to be switched off at the sub-distribution board whenever
the trunking is opened during network troubleshooting.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/trunking.gif" />
</imageobject>
<caption>Trunking running under the desks.</caption>
</mediaobject>
<para>Ensure that 10mm holes are made in trunking for the cable ends to
reach their workstations. Allow at least 500mm of free network cable
per computer, and loop and tie the extra length neatly. Network cables
that are too short can be just as irritating as socks that are two
sizes too small, and moreover lead to high blood pressure and increased
risk of cardiac arrest. Cabling to an island desktop must preferably be
under the floor or must have suitable ducting that will ensure the
safety of pupils who have to walk over these cables.</para>
</section>
</section>
</chapter>
<chapter id="thin-client-computing">
<title>Thin-client computing</title>
<para>A tuXlab computer laboratory consists of a classroom full of
<emphasis>thin client</emphasis> workstations communicating with a classroom
server. The specific implementation of thin client computing used in
tuXlabs is discussed in
<xref linkend="linux-terminal-server-project" />.</para>
<section id="what-is-thin-client-computing">
<title>What is Thin Client Computing?</title>
<para>
<emphasis>Thin client</emphasis> and
<emphasis>fat client</emphasis> (also called "thick" or "rich" client) are
mostly marketing terms for different configurations of computer. A thin
client asks a central server to do most of its processing, and keeps as
little hardware and software as possible on the workstation side.
Ideally, the user of a thin client should have only a screen, keyboard,
mouse and enough computing power to handle display and network
communications --- you don't even need (or want) a hard drive. The less
you have, the less there can go wrong.</para>
<para>A fat client does as much processing as possible itself and only
passes data required for communications and storage on to the server. A
standalone PC is the typical fat client with which everyone is
familiar.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/fatclient.gif" />
</imageobject>
<caption>Fat client</caption>
</mediaobject>
<para>A thin client may be a software program executing on a generic PC,
or it may be a hardware device, called a terminal, designed to provide
only user input and display functions. Because old PCs (whether retired,
written off, obsolete or just out of fashion) are easier to find than
specialised thin client hardware, tuXlabs uses them as thin clients, with
the appropriate software. Because they don't do much work themselves, the
hardware requirements for these "old" PCs are very basic. Since every
client in a thin client network asks a central server to do its work, all
the individual workstations look the same: they all share the same
server, and they all behave exactly like the server would if you were
using it directly.</para>
<para>In addition, although everyone who uses the lab can have their own
computing environment stored on the server, with their own files,
desktop, and so on, the individual workstations can't get viruses or be
misconfigured by curious learners --- there simply isn't anything to
configure! The thin client doesn't have enough brains to get
confused.</para>
<para>This means that the lab computers are trivial to keep up and
maintenance is restricted to the server in the back room.</para>
<para>Thin clients are cheaper and require less administration than fat
clients. On the other hand, they tend to require far greater network
bandwidth, as display data will probably need to be passed to the thin
clients. They can't do a single thing on their own --- for each and every
action, they need to talk to the server. This means that a server for a
room full of thin clients must be much more capable than a server used by
fat clients.</para>
<para>One of the advantages that this configuration entails, is that all
the software resides on the server, and so you only have to upgrade it
once. In a fat client configuration, every workstation has its own copies
of the software, and so any upgrade needs to be rolled out to every
workstation.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/thinclient.gif" />
</imageobject>
</mediaobject>
</section>
<section id="linux-terminal-server-project">
<title>Linux Terminal Server Project</title>
<para>The Linux Terminal Server Project (
<acronym>LTSP</acronym>) is a configuration of Linux that allows you to
connect lots of low-powered thin client terminals to a Linux server. The
<acronym>LTSP</acronym> provides a simple way to utilise low cost
workstations as either graphical or character-based terminals on a
GNU/Linux server.</para>
<para>K12LTSP is based on RedHat Fedora Linux and the
<acronym>LTSP</acronym> terminal server packages (see
<xref linkend="about-the-k12ltsp-distribution" /> for more detail). It's
easy to install and configure. It's distributed under the GNU General
Public License. That means it's free and it's based on Open Source
software.</para>
<para>Once installed, K12LTSP lets you boot (see
<xref linkend="glossary" />) diskless workstations from an application
server.</para>
</section>
<section id="how-the-lab-works">
<title>How the lab works</title>
<para>There is a shorter version of this in
<xref linkend="thin-client-startup-process" />.</para>
<orderedlist>
<listitem>
<formalpara>
<title>"Power On Self Test" (
<acronym>POST</acronym>)</title>
<para>When you turn on the workstation, it will go through its
Power On Self Test (
<acronym>POST</acronym>; for this and other acronyms, see
<xref linkend="glossary" />).</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Find the boot
<acronym>ROM</acronym></title>
<para>During the self test, the
<acronym>BIOS</acronym> will search for expansion ROMs. The network
card contains an Etherboot boot-ROM, which is an expansion
<acronym>ROM</acronym>. The
<acronym>BIOS</acronym> will detect the
<acronym>ROM</acronym> on the network card (it doesn't know about
the network card, it only notices the
<acronym>ROM</acronym>).</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Boot</title>
<para>Once the
<acronym>POST</acronym> is complete, execution will jump into the
Etherboot code.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Find the network card</title>
<para>The Etherboot code will scan for a network card. Once it
detects the card, the card will be initialized.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>
<acronym>DHCP</acronym> request</title>
<para>The Etherboot code will then broadcast a
<acronym>DHCP</acronym> request to the local network. The request
will include the
<acronym>MAC</acronym> address of the network card.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>
<acronym>DHCP</acronym> request received</title>
<para>The
<command>dhcpd</command> daemon on the server will see the broadcast
request from the workstation, and look in its configuration file
for an entry that matches the
<acronym>MAC</acronym> address of that workstation.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>
<acronym>DHCP</acronym> request reply</title>
<para>The
<command>dhcpd</command> daemon will construct a reply packet,
containing several pieces of information. This packet will be sent
back to the workstation. The reply information includes:</para>
</formalpara>
<itemizedlist>
<listitem>
<para>an IP address for the workstation,</para>
</listitem>
<listitem>
<para>the netmask setting (see
<xref linkend="glossary" />) for the local network,</para>
</listitem>
<listitem>
<para>the pathname of the kernel to download (this is a
filesystem path on the server),</para>
</listitem>
<listitem>
<para>the pathname of the root filesystem (see
<xref linkend="glossary" />) to mount as the root of the client
filesystem,</para>
</listitem>
<listitem>
<para>optional parameters to be passed to the kernel, via the
kernel command line.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<formalpara>
<title>Boot
<acronym>ROM</acronym> configures
<acronym>TCP/IP</acronym> interface</title>
<para>The Etherboot code will receive the reply from the server,
and it will configure the
<acronym>TCP/IP</acronym> interface in the network card with the
parameters that were supplied. Once this is done, the client
computer has an IP address on the network.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Download the kernel using
<acronym>TFTP</acronym></title>
<para>Using
<acronym>TFTP</acronym> (Trivial File Transfer Protocol), the
Etherboot code will contact the server and begin downloading the
kernel.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Kernel downloaded</title>
<para>Once the kernel has been completely downloaded to the
workstation, the Etherboot code will place the kernel into the
correct location in memory.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Control passes to kernel</title>
<para>Control is then passed to the kernel. The kernel will
initialise the entire system and all of the peripherals that it
recognizes.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Mount temporary boot filesystem as
<acronym>RAM</acronym> disk</title>
<para>This is where the fun really begins. Tacked onto the end of
the kernel is a filesystem image. This is loaded into memory as a
<acronym>RAM</acronym> disk, and temporarily mounted as the root
filesystem. A kernel command line argument of
<literal>root=/dev/ram0</literal> tells the kernel to mount the
image as the root directory.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Kernel boot sequence calls
<literal>linuxrc</literal> shell script (before the normal boot
sequence starts)</title>
<para>Normally, when the kernel is finished booting, it will launch
a program called
<command>init</command>. But, in this case, we've instructed the
kernel to load a shell script (see
<xref linkend="glossary" />) instead. We do this by passing
<literal>init=/linuxrc</literal> on the kernel command line.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Identify kernel module for network card</title>
<para>The
<command>linuxrc</command> script begins by scanning the PCI bus,
looking for a network card. For each PCI device it finds, it does a
lookup in the
<filename>/etc/niclist</filename> file, to see if it finds a match.
Once a match is found, the name of the NIC driver module is
returned, and that kernel module is loaded. For ISA cards, the
driver module MUST be specified on the kernel command line, along
with any IRQ or address parameters that are required.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Load kernel module for network card</title>
<para>Once the network card has been identified, the
<command>linuxrc</command> script will load the kernel module that
supports that card.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>
<command>linuxrc</command> makes
<acronym>DHCP</acronym> query</title>
<para>
<command>dhclient</command> will then be run, to make
<emphasis>another</emphasis> query from the
<acronym>DHCP</acronym> server. We need to do this separate
user-space query. We cannot depend on the query that comes from
Etherboot, because it gets swallowed up when the kernel uses it.
The kernel will also ignore any
<acronym>NFS</acronym> server that might have been specified in the
root-path. This is important if you want the
<acronym>NFS</acronym> server to be different from the
<acronym>TFTP</acronym> server.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Configure
<literal>eth0</literal></title>
<para>When
<command>dhclient</command> gets a reply from the server, it will
run
<filename>/etc/dhclient-script</filename>, which will take the
information retrieved, and configure the
<literal>eth0</literal> interface.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Mount the root filesystem from the server via
<acronym>NFS</acronym></title>
<para>Up to this point, the root filesystem has been a
<acronym>RAM</acronym> disk. Now, the
<command>linuxrc</command> script will mount a new root filesystem
via
<acronym>NFS</acronym>. The directory that is exported from the
server is typically
<filename>/opt/ltsp/i386</filename>. The new filesystem can't just
be mounted as
<filename>/</filename> immediately. It must first be grafted into
the local filesystem by mounting it, typically on the path
<filename>/mnt</filename>. Then, the client can do a
<command>pivot_root</command>.
<command>pivot_root</command> will swap the current root filesystem
for a new filesystem. When it completes, the
<acronym>NFS</acronym> filesystem will be mounted on
<filename>/</filename>, and the old root filesystem will be mounted
on
<filename>/oldroot</filename>.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Hand off to the normal
<command>init</command> program (non-LTSP boot sequence
continues)</title>
<para>Once the mounting and pivoting of the new root filesystem is
complete, we are done with the
<command>linuxrc</command> shell script and we need to invoke the
real
<command>init</command> program.
<note>
<para>Note: from this point, all file paths (except those
starting with
<filename>/oldroot</filename>, of course) refer to files that are
served from the server via
<acronym>NFS</acronym>.</para>
</note></para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>
<command>init</command> processes
<filename>/etc/inittab</filename></title>
<para>
<command>init</command> will read the
<filename>/etc/inittab</filename> file and begin setting up the
workstation environment.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>
<acronym>LTSP</acronym> starts in runlevel 2</title>
<para>
<command>init</command> works in terms of
<emphasis>runlevels</emphasis>. A runlevel has a number, and
specifies a set of services that should be available while the
system is running in that runlevel. The
<acronym>LTSP</acronym> workstation starts in runlevel 2. That is
set by the
<literal>initdefault</literal> line in the
<filename>inittab</filename> file.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Run
<command>rc.local</command></title>
<para>One of the first items in the
<filename>inittab</filename> file is the
<command>rc.local</command> command that will be run while the
workstation is in the
<literal>sysinit</literal> state.</para>
</formalpara>
<orderedlist>
<listitem>
<formalpara>
<title>
<command>rc.local</command> creates a
<acronym>RAM</acronym> disk for volatile data during
bootup.</title>
<para>The
<command>rc.local</command> script will create a 1MB
<acronym>RAM</acronym> disk to contain all of the things that
need to be written to or modified in any way.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>
<acronym>RAM</acronym> disk mounted as
<filename>/tmp</filename></title>
<para>The
<acronym>RAM</acronym> disk will be mounted as the
<filename>/tmp</filename> directory. This directory exists in
order to hold files that need to be written during the boot
process. We don't want to write to these files on the hard
disk, because then we'll change them for all other clients as
well, and the changes pertain only to our client while it's
booting.</para>
</formalpara>
<para>Any files that need to be written will actually exist in
the
<filename>/tmp</filename> directory. On the hard disk of the
server, there are only symbolic links pointing to these
files.</para>
</listitem>
<listitem>
<formalpara>
<title>The
<filename>/proc</filename> filesystem is mounted.</title>
<para>This is a virtual filesystem that exposes information
about all the currently running processes as a hierarchy of
textfiles that may be read exactly as any other file on
disk.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Network swap enabled</title>
<para>If the workstation is configured to swap over
<acronym>NFS</acronym>, the
<filename>/var/opt/ltsp/swapfiles</filename> directory will be
mounted as
<filename>/tmp/swapfiles</filename>. Then, if there isn't a
swap file for this workstation yet, it will be created
automatically. The size of the swap file is configured in the
<filename>lts.conf</filename> file. For more detail about this
file, see
<xref linkend="troubleshooting-reference" />.</para>
</formalpara>
<para>The swap file will then be enabled, using the
<command>swapon</command> command.</para>
</listitem>
<listitem>
<formalpara>
<title>Configure loopback interface</title>
<para>The loopback network interface is configured. This is the
networking interface that has
<literal>127.0.0.1</literal> as its IP address.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Mount
<filename>/home</filename></title>
<para>If LOCAL_APPS is enabled (see below), then the
<filename>/home</filename> directory will be mounted, so that
running applications can access the users' home
directories.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Create
<filename>/tmp</filename></title>
<para>Several directories are created in the
<filename>/tmp</filename> filesystem for holding some of the
transient files that are needed while the system is running.
Directories such as:</para>
</formalpara>
<orderedlist>
<listitem>
<para>/tmp/compiled</para>
</listitem>
<listitem>
<para>/tmp/var</para>
</listitem>
<listitem>
<para>/tmp/var/run</para>
</listitem>
<listitem>
<para>/tmp/var/log</para>
</listitem>
<listitem>
<para>/tmp/var/lock</para>
</listitem>
<listitem>
<para>/tmp/var/lock/subsys</para>
</listitem>
</orderedlist>
<para>will all be created.</para>
</listitem>
<listitem>
<formalpara>
<title>Configure X Windows</title>
<para>The X Windows system will now be configured. In the
<filename>lts.conf</filename> file, there is a parameter called
XSERVER. If this parameter is missing, or set to "auto", then
an automatic detection will be attempted. If the workstation
has a PCI video card, then we will get the PCI Vendor and
Device id, and do a lookup in the
<filename>/etc/vidlist</filename> file.</para>
</formalpara>
<para>If the card is supported by XFree86 31.X, the
<command>pci_scan</command> routine will return the name of the
driver module. If it is only supported by XFree86 32.3.6,
<command>pci_scan</command> will return the name of the X server
to use. The
<command>rc.local</command> script can tell the difference because
the older 33.3.6 server names start with
<literal>XF86_</literal>.</para>
</listitem>
<listitem>
<formalpara>
<title>Generate XF86Config</title>
<para>If XFree86 34.x is used, then the
<command>/etc/rc.setupx</command> script will be called to build
an XF86Config file for X4. If XFree86 35.3.6 is used, then
<command>/etc/rc.setupx3</command> will be called to build the
XF86Config file, based on entries in the
<filename>/etc/lts.conf</filename> file.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>
<command>rc.local</command> resumes,
<filename>start_ws</filename> created</title>
<para>When the
<command>rc.setupx</command> script is finished, it will return
to
<command>rc.local</command>. Then the
<command>/tmp/start_ws</command> script will be created. This
script is responsible for starting the X server.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Configure
<command>syslogd</command></title>
<para>The
<filename>/tmp/syslog.conf</filename> file will be created. This
file tells the
<command>syslogd</command> daemon where to send logging
information (this may be any host on the network). Any program,
including the kernel, that wants to record information for the
purposes of monitoring, auditing, debugging or later reference
can make use of
<command>syslogd</command>, which sees to it that this
information is written to a file, and that the logged
information is eventually cleaned up.
<tip>
<para>The syslog host is specified in the
<filename>lts.conf</filename> file. There is a symbolic link
from
<filename>/etc/syslog.conf</filename> to the
<filename>/tmp/syslog.conf</filename> file.</para>
</tip></para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Start
<command>syslogd</command></title>
<para>The
<command>syslogd</command> daemon is started, using the config
file created in the previous step.</para>
</formalpara>
</listitem>
</orderedlist>
</listitem>
<listitem>
<formalpara>
<title>
<command>init</command> resumes, changes to
<emphasis>default</emphasis> runlevel</title>
<para>Control is then passed back to
<command>init</command>, which will look at the
<literal>initdefault</literal> entry to determine which runlevel to
enter. As of
<literal>lts_core-2.37</literal>, the value of
<literal>initdefault</literal> is 2.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>What the different runlevels do</title>
<para>A runlevel of 2 will cause init to run the
<command>set_runlevel</command> script which will read the
<filename>lts.conf</filename> file and determine what runlevel the
workstation will run in.
<tip>
<para>The standard runlevels for
<acronym>LTSP</acronym> are 3, 4 and 5.</para>
</tip></para>
</formalpara>
<variablelist>
<varlistentry>
<term>3</term>
<listitem>
<para>This will start a shell. This is very useful for
debugging the workstation.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>4</term>
<listitem>
<para>This will run one or more Telnet sessions in character
mode. This is great if you are just replacing old serial
terminals.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>5</term>
<listitem>
<para>GUI mode. This will bring up X windows, and send an XDMCP
query to the server, which will bring up a login dialogue box
to let you log into the server. You will need a display manager
listening on the server, such as XDM, GDM or KDM.</para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</orderedlist>
</section>
<section id="benefits">
<title>Benefits</title>
<section id="easy-maintenance">
<title>Easy maintenance</title>
<para>If a user reconfigures a workstation in a fat client computer
lab, all the other users of that workstation will have to cope with
these changes. This means that if someone inadvertently sets the
workstation to use black type on a black background, for example, then
no-one will be able to see what's going on.</para>
<para>In contrast, in a thin client lab, every user has their own
files, their own email, and their own desktop environment that they can
change to their liking without influencing anyone else, all stored on
the classroom server. A configuration mistake like the above will
inconvenience only themselves.
<footnote>
<para>
<ulink url="http://wizzy.org.za/article/articlestatic/5/1/2/" />
</para>
</footnote></para>
</section>
<section id="cheap-hardware">
<title>Cheap hardware</title>
<para>Most of the equipment in a computer lab are workstations for
learners to use. There may be one or two printers, network switches and
a server, but they are far outnumbered by between 20 and 40 client
workstations.</para>
<para>In a tuXlab, these can all be really old, used,
previous-generation computers. This is because the demands on these
machines is so slight that almost anything will do. All those stacks of
old computers everywhere that no one knows what to do with are suddenly
useful, and saving schools vast amounts of cash that they would
normally have to outlay on relatively new equipment so they can run
contemporary software.</para>
<para>The thin client paradigm also means that requirements for
uniformity among terminals is relaxed. As long as they conform to a
couple of basic requirements (network boot, SVGA graphics card, enough
<acronym>RAM</acronym>) it doesn't matter if they have idiosyncratic
hardware. Only the server configuration needs to be maintained.
Heterogeneous hardware doesn't make life difficult for the
admin.</para>
<para>The thin-client network in the lab ensures that each terminal, no
matter what its own computing characteristics, behaves with all the
speed and capability of the server, so each user has an experience of
top quality, smooth, fast computing. Unfortunately, this does mean that
if some of your client workstations are powerful, modern machines, they
may not be fully utilised in a default tuXlab configuration, as they
will still be letting the server do all the work.</para>
</section>
<section id="less-theft">
<title>Less theft</title>
<para>In a tuXlab, the most accessible hardware is also the easiest to
replace and the hardest to use outside the lab. A tuXlab client
workstation on its own, without the classroom server, is more or less
useless. It's too bulky for a doorstop, and it can't run modern
software. It doesn't even have a hard drive.
<footnote>
<para>
<ulink url="http://wizzy.org.za/article/articlestatic/5/1/2/" />
</para>
</footnote></para>
</section>
<section id="mobile-desktops">
<title>Mobile desktops</title>
<para>As the terminals only serve to display a session from the
classroom server, it doesn't matter which one you use. If one breaks
while you've using it, you can move to the next one, log on, and pick
up where you left off. If someone is using the workstation where you
were working, go to another one and log in there to regain access to
your desktop.</para>
</section>
<section id="data-easy-to-back-up">
<title>Data easy to back up</title>
<para>All the data in a tuXlab resides on the disk array of the
classroom server. Instead of having to backup 20 or 40 individual hard
drives, it's possible to backup only one, and still get a complete
backup of everyone's data.</para>
</section>
</section>
<section id="drawbacks">
<title>Drawbacks</title>
<para>Every solution will have some drawbacks, and a tuXlab is no
exception. I'll just mention a few in passing.</para>
<variablelist>
<varlistentry>
<term>Unreal Tournament will be lethargic or lag in response
rate</term>
<listitem>
<para>Graphics-intensive applications such as games will not
perform well, as all the display information will have to be pushed
over the network by the server. This is hundreds of times slower
than driving a local graphics card. Playing action games, however,
is not a goal of the tuXlab project.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>All the clients run the same
<acronym>OS</acronym></term>
<listitem>
<para>Since it's really only one instance of Linux serving all the
desktops and applications, all the clients in the lab will
necessarily offer a Linux environment. It is possible for the
server to run software such as Wine (which enables many Windows
programs to run under Linux) or VMWare (which allows the server to
run instances of other operating systems), but in these cases the
underlying system will still be Linux, and the server will still be
doing all the work.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Single point of failure</term>
<listitem>
<para>While it's very convenient that the thin-client workstations
are interchangeable and that you can access your desktop from
anywhere, it does mean that a catastrophic failure of the server
will put
<emphasis>all</emphasis> client workstations out of
commission.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<section id="hardware">
<title>Hardware</title>
<section id="minimum-specifications">
<title>Minimum specifications</title>
<variablelist>
<varlistentry>
<term>Server</term>
<listitem>
<para>
<emphasis role="strong">Memory</emphasis>--- The server should
have 2GB
<acronym>RAM</acronym> or more (512MB for the base system, and
50MB for each additional client). As long as you're using it all
up, more
<acronym>RAM</acronym> means more speed (it doesn't help to have
<acronym>RAM</acronym> that you don't use). Too little
<acronym>RAM</acronym> will bring your server to a crawl as it
starts swapping memory to the hard drive. If you run out of
memory, performance will be unacceptable.</para>
<para>
<emphasis role="strong">Hard drive</emphasis>--- SCSI is faster
than IDE: We've seen
<acronym>LTSP</acronym> servers slow to a crawl when more than 10
clients are running from IDE drives. SCSI drives are better
equipped to handle the multiple read/write requests.</para>
<para>
<emphasis role="strong">Network</emphasis>--- Your server will
have at least one Ethernet card to create a private network (
<literal>192.168.0.x</literal>). This card connects to a switch
for terminals. If there is a school network to which you need to
connect, or if the school has a internet connection via the
server, it will have a second Ethernet card, which will get an IP
address on the second network.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Clients</term>
<listitem>
<para>
<emphasis role="strong">Memory</emphasis>--- Client workstations
should have at least 32MB of
<acronym>RAM</acronym>. Clients aren't that dependent on swap
space for extra memory capacity, since memory usage on them is
reasonably constant because they don't execute applications: they
only display them.</para>
<para>
<emphasis role="strong">Hard drive</emphasis>--- Client
workstations should not have hard drives.</para>
<para>
<emphasis role="strong">Network</emphasis>--- Each client
workstation should have one network card with a boot
<acronym>ROM</acronym> to enable booting from the network.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Switch</term>
<listitem>
<para>An Ethernet hub is not acceptable (see
<xref linkend="switches-hubs" />), it's too slow for network boot
and
<acronym>NFS</acronym>. Having a fast Ethernet switch will make
your life better and more colorful.</para>
<para>The number of ports on the switch must be enough for your
clients and server. If you have more than 24 NICs, 2 or more
12-port/16-port fast Ethernet switches are recommended. The
client ports should be 100 megabit, and there should be a gigabit
port for the server. Since all clients get their display from the
server, a slow link to the server would be a bottleneck for the
whole lab.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/switch-front-blinkenlights.gif" />
</imageobject>
<caption>The front panel of the switch shows a light for every
network cable that's been plugged in. The light shows whether
the link is up, whether there is traffic and what its speed
is.</caption>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="images/switch-cables.gif" />
</imageobject>
<caption>The cables from the workstations all terminate at the
switch. If you don't label them, they get very hard to tell
apart!</caption>
</mediaobject>
</listitem>
</varlistentry>
</variablelist>
</section>
<section id="things-to-look-out-for">
<title>Things to look out for</title>
<variablelist>
<varlistentry>
<term>Monitors</term>
<listitem>
<para>The display size should be at least 15", and the monitor
must be capable of SVGA video modes. It should also be compatible
with the video card of the client.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Uniform equipment</term>
<listitem>
<para>If you use the same equipment throughout your tuXlab, it
becomes easier to buy in bulk and to swap out components. It also
makes it easier for tuXlabs to assist each other with skills and
equipment.</para>
<para>Heterogeneous boxes, in comparison, are harder to keep
running, and more likely to be "throw-away" --- not worth trying
to resurrect. As long as they don't cost you anything, this is
worth it, but you have to guard against them becoming a drain on
your time and resources.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<section id="sources-for-second-hand-equipment">
<title>Sources for second hand equipment</title>
<para>Locally, FreeCom supplies tested refurbished computers. Because
of the high volume of hardware required by the large number of tuXlabs
installed, the Shuttleworth Foundation has procured the client
workstations from international distributors such as Computer Aid.
Other workstations have been donated by private industry.</para>
</section>
</section>
<section id="thin-client-configuration">
<title>Thin Client configuration</title>
<para>While there is little to do for the installation of the thin client
workstations, there are a couple of things you can pay attention
to.</para>
<variablelist>
<varlistentry>
<term>Network cards</term>
<listitem>
<para>All the client computers need to get a network card with
space for a boot
<acronym>PROM</acronym> (see
<xref linkend="glossary" />), so that they can start looking for
the server on the classroom network as soon as they are switched
on. The server also needs a network card, and it needs to be a fast
one (gigabit Ethernet), as the link between the server and the
switch is ten times quicker than the link between the switch and
the client workstations.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Boot PROMs</term>
<listitem>
<para>Depending on the network cards you managed to get, the
correct Etherboot image may need to be written to the network
cards. The
<ulink url="http://drbl.sourceforge.net/"> Diskless Remote Boot in
Linux</ulink> project has made available an
<ulink url="http://www.k12os.org/modules.php?op=modload&name=News&file=article&sid=46&mode=thread&order=0&thold=0">
Etherboot NIC Detection Disk</ulink> which can help you to determine
what you need to write to the card.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Dual-booting</term>
<listitem>
<para>The
<acronym>BIOS</acronym> in the client workstations normally needs to
be configured to boot from the network. To do this, watch the
workstation screen after turning the power on --- for a couple of
seconds, the
<acronym>BIOS</acronym> will display a notice that you may press a
key (such as
<keycap>DEL</keycap> or
<keycap>F8</keycap>, depending on the
<acronym>BIOS</acronym>) to enter setup mode. This will enable you
to specify where the computer should look for boot records during
startup; for example on a
<acronym>CD</acronym>, a floppy disk, a hard disk, or the network
card. In the event that you have a relatively capable workstation
with a hard drive, you may want to boot the workstation as a
standalone computer from time to time. To do this, you may
configure the
<acronym>BIOS</acronym> to look for a boot record on a floppy disk
before trying the network card.</para>
<para>One kind of scenario where this may be useful, is where you
have an existing computer lab with software installed at each
workstation. Boot from hard disk to access the standalone
workstations, and boot from the network to have a tuXlab! It is
even possible for the standalone workstations to access the tuXlab
network, and to use the classroom server as a file server, and the
Wizzy server as an internet proxy. Since a tuXlab is implemented
using standard protocols, this will work no matter what operating
system is installed on the workstation computers.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Other resources</term>
<listitem>
<para>This cookbook can do no more than scratch the surface. Some
of the other resources regarding thin-client computing available on
the web include:</para>
<itemizedlist>
<listitem>
<para>
<ulink url="http://drbl.sourceforge.net/redhat/"> Diskless
Remote Boot in Linux (DRBL) for Redhat 8.0, 9, Fedora Core 1,
2, Mandrake 9.2, 10</ulink>
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.tldp.org/HOWTO/Diskless-root-NFS-HOWTO.html">
Root over
<acronym>NFS</acronym> clients & server HOWTO</ulink>, if
your workstations have disks, and you don't want to delegate
processing to the classroom server.</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.tldp.org/HOWTO/Network-boot-HOWTO/index.html">
Network Boot and Exotic Root HOWTO</ulink> This document
explains how to quickly setup a Linux server to provide what
diskless Linux clients require to get up and running, using an
IP network. It is based on the Diskless-HOWTO, the
Diskless-root-NFS-HOWTO, the Linux kernel documentation, the
Etherboot project's documentation, the Linux Terminal Server
Project's homepage, and the author (Brieuc Jeunhomme)'s
personal experience.</para>
</listitem>
</itemizedlist>
</listitem>
</varlistentry>
</variablelist>
</section>
</chapter>
<chapter id="software-components">
<title>Software components</title>
<para>A tuXlab includes both
<xref linkend="open-source-educational-software" /> as well as office tools
and web browsers (see
<xref linkend="applications" />). At its core, however, it consists of the
server software that runs the classroom server and the Wizzy internet proxy
server.</para>
<section id="k12ltsp-classroom-server">
<title>K12LTSP classroom server</title>
<section id="about-the-k12ltsp-distribution">
<title>About the K12LTSP distribution</title>
<para>A tuXlab classroom server is based on the K12LTSP distribution,
with some configuration changes and additional software
packages.</para>
<para>
<ulink url="http://k12ltsp.org/contents.html"> K12LTSP</ulink> is based
on RedHat Fedora Linux and the work of the
<acronym>LTSP</acronym>. It's easy to install and configure. It's
distributed under the GNU General Public License. That means it's free
and it's based on Open Source software.</para>
<para>This is quite a mouthful, so I'll unpack the terms one by
one.</para>
<itemizedlist>
<listitem>
<para>The
<emphasis>
<acronym>LTSP</acronym>
</emphasis> is the Linux Terminal Server Project. This project
assembles all the software components that are necessary for a
computer to act as a fat server for a network of thin clients, and
provides the configuration necessary for the server to function as
such.</para>
</listitem>
<listitem>
<para>RedHat Fedora Linux is the free distribution packaged by
RedHat, Inc. The K12LTSP team has added an option to the RedHat
installation menu, so that installing a classroom server is as
simple as choosing the first installation option and answering some
questions.</para>
</listitem>
</itemizedlist>
<para>The K12LTSP distribution tries to make it as easy as possible for
you. It is a regular Fedora distro with an option to install
<acronym>LTSP</acronym> right there in the setup screen. When
installing, the
<acronym>LTSP</acronym> option is the first item on the menu, added
above the default Workstation, Server and Custom options. This means
that you don't have to mess around with the configuration files until
you've had a chance to see what it is they do, and by then you'll
probably only need to tweak them a little.</para>
<para>The
<acronym>LTSP</acronym> server defaults to an IP gateway and firewall
when two Ethernet cards are present. This will only be the case in
tuXlabs that are permanently online, which will usually not be the
case. Normally, the Wizzy server will be the gateway, as all tuXlabs
with internet access use a Wizzy server.</para>
</section>
</section>
<section id="wizzy-server">
<title>Wizzy server</title>
<para>A Wizzy server can be used to provide a managed internet access
solution for a tuXlab. Currently, a Wizzy server is an extra to a tuXlab
install. The Shuttleworth Foundation may award a Wizzy server to a school
with a tuXlab if the school demonstrates that it is making good use of
the lab. Wizzy is a project of Andy Rabagliati, a techno-philanthropist
who has been wiring rural schools for cheap internet connectivity for
many years now.</para>
<para>The software (like K12LTSP) is based on RedHat Linux, currently
version 8.0. Whereas K12LTSP is based on RedHat Fedora, Wizzy is an
adapted version of
<ulink url="http://www.whiteboxlinux.org/"> Whitebox Linux</ulink>, itself
a straight recompile from source RPMs of
<ulink url="http://www.redhat.com/software/rhel/"> RedHat Enterprise
Linux</ulink>. Many extra packages have been added, all under the GPL
license.</para>
<para>It performs the duties of dialup manager, firewall, mailserver
(IMAP mailserver XXX), web cache, and authentication server (LDAP
authentication server XXX). The Wizzy server does normal dialup via a
telephone line, but it can also do
<acronym>ADSL</acronym> and wireless. It would be possible to do all these
things on the classroom
<acronym>LTSP</acronym> server as well, but a custom mail arrangement
would still be necessary: while the tuXlab is not connected to the
internet, mail needs to be delivered to an remote server. Another reason
to separate the internet gateway from the classroom server, is that it
might not be such a good idea for the classroom server to have a
public-facing IP address. All machines exposed to the internet are
vulnerable to compromise, and the classroom server contains all the user
data.</para>
<para>The way in which the Wizzy server sends and receives email is
customised to work with an intermittent internet connection. It utilises
a protocol that was more commonly used in the days before permanent
internet connections became common, namely UUCP (the Unix-to-Unix Copy
Protocol). UUCP is suited to queueing data to be copied to remote hosts
for delivery when a network connection is established.</para>
<para>Wizzy has the goal of providing all its services via UUCP, in order
to accommodate high latency connections where there may be long
disconnected periods. This type of connection includes situations where a
connection is established by dialling up at night when phone rates are
low, as well as situations without any dialup access at all.</para>
<para>In cases without dialup access, the connection is made by carrying
the data across by hand!
<footnote>
<para>See
<ulink url="http://wizzy.org.za/article/articleview/18/1/3" /></para>
</footnote> The transfer medium may be, for example, a USB memory stick, a
mobile wireless-enabled laptop, or a USB hard drive. The transfer medium
will contain newly fetched data and the queued requests for new web
pages, as well as mail waiting to be sent. This is not a stated goal of
the tuXlabs project, so if your school wishes to pursue this route, you
may have to contact Wizzy to work out the details.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/usbenabling.png" />
</imageobject>
<caption>A wireless antenna that plugs into a USB plug on a laptop or a
PC.</caption>
</mediaobject>
<para>If you do have access to a telephone line for the tuXlab, the
internet is dialled up only at night when the rates are low (Telkom South
Africa provides a particular phone account that allows a single 12 hour
phone call for R7). In this period, approximately 250MB of email and web
material can be downloaded onto the Wizzy server in the classroom. In the
morning, after the phone has been hung up, the learners can access the
downloaded material as though they had a direct web connection. Their
experience of email and web during the school day is almost identical to
a very fast online web experience, with the exception that newly
requested pages will only be available by the next morning.
<footnote>
<para>See
<ulink url="http://wizzy.org.za/article/articleview/4/1/3" /></para>
</footnote></para>
<para>Normally, if you want to connect to the internet, you need a
telephone line and a modem, a satellite uplink, or some other means of
tapping into 'the Net'. Unfortunately, in South Africa, the necessary
telecommunications infrastructure is not always there to tap into. Around
a third of South Africans don't have a phone line, and roughly 88% of
schools in the Northern Province lack an internet connection.
<footnote>
<para>See
<ulink url="http://wizzy.org.za/article/articleview/18/1/3" /></para>
</footnote></para>
<section id="benefits-of-a-wizzy-server">
<title>Benefits of a Wizzy server</title>
<para>Every student can have email and web access without the cost of
being online. This is true even for schools that don't have a
telephone.</para>
<para>While the delay in retrieving web pages is a necessary
consequence of the Wizzy solution, it has a desirable side effect in
that it helps educators to manage web access. Since anybody with an
internet connection can publish on the Web, there is an absolute ocean
of complete trash that threatens to engulf the unwary browser. Groping
through this mess just wastes school resources. Automated solutions to
this issue have been proposed, often by companies that market filtering
products. Apart from the fact that these products suffer from both
false positives and negatives, blocking material unnecessarily and
letting undesirable material through, it shifts responsibility from the
teacher to a software product.</para>
<para>The Wizzy solution believes that it's better to let the teacher
decide what is appropriate. This also allows the teacher to stay in
touch with the material accessed by the learners he or she is teaching.
Teachers can explicitly choose the web material that learners can
access and definitively reject web material that is not appropriate.
They can also set the Wizzy server to monitor websites, retrieving new
versions as they become available.</para>
<para>Because the school is never in direct connection with the
internet, but rather has its web content delivered upon request,
students cannot "surf" the internet. However, since all the web sites
that have been requested by the IT administrator of the school are
delivered and stored on the school's server, the students can "surf"
this local web cache as though it were a miniature internet.</para>
<para>These specially chosen web sites can easily number in the
hundreds. They can be updated daily; and should a new site be desired
on a regular basis, the school would have to wait only one day for the
delivery to begin. The "surfing" of this miniature internet within the
tuXlab costs nothing, and is fast enough to give you whiplash, since
all communication takes place within the tuXlab, between the server and
the client computers.
<footnote>
<para>See
<ulink url="http://wizzy.org.za/article/articlestatic/19/1/2/" /></para>
</footnote></para>
<para>tuXlabs aims to give educators the tools to help learners explore
computers and the Wizzy server allows them to put reasonable limits on
learners' access, guiding them towards independent use of the computer
as they mature. tuXlabs does not make any judgement regarding what
content is regarded as appropriate, but is there to help provide the
tools and documentation to help educators with these decisions. The
focus is more on the "guidance" aspect, rather than restriction, as the
former is a positive activity while the latter is negative.</para>
<para>The Wizzy solution integrates seamlessly with existing labs.
Normally, no additional equipment is required to have this kind of
internet lab.</para>
</section>
<section id="batch-mail-delivery-solutions">
<title>Batch mail delivery solutions</title>
<para>First, a recap of the basics.
<footnote>
<para>See
<ulink url="http://wizzy.com/wizzy/mail.html" /></para>
</footnote> How does mail from far away get to your account, say:
<literal>somebody@myschool.wizzy.org.za</literal>?</para>
<itemizedlist>
<listitem>
<para>The remote mail client probably punts the mail to a smarter
host --- the
<acronym>SMTP</acronym> (Simple Mail Transfer Protocol) server of
their
<acronym>ISP</acronym> (Internet Service Provider). This will have
been configured by the sender when first setting up their mail
client.</para>
</listitem>
<listitem>
<para>Their
<acronym>ISP</acronym> mail server will ask a local nameserver (i.e.
<acronym>DNS</acronym> server) for the
<acronym>MX</acronym> (Mail Exchange) records of
<literal>myschool.wizzy.org.za</literal>. These are the IP
addresses of machines listed as handling mail for this domain. The
<acronym>ISP</acronym> will try to deliver directly to the
lowest-numbered
<acronym>MX</acronym> record in the list, via
<acronym>SMTP</acronym>. If it cannot connect, it will try other
<acronym>MX</acronym> hosts, usually in ascending order.</para>
<para>The
<acronym>DNS</acronym> service for the tuXlab and Wizzy networks is
provided by
<ulink url="http://www.schoolnet.org.za/"> SchoolNet</ulink></para>
</listitem>
<listitem>
<para>With this step, or via intermediate
<acronym>MX</acronym> hosts, the mail will eventually land on the
target host --- the lowest-numbered
<acronym>MX</acronym>, often your local
<acronym>ISP</acronym>. Most of the time, your
<acronym>ISP</acronym> will deliver all the mail for that domain
into a single mailbox, and leave you to figure out the rest.</para>
</listitem>
<listitem>
<para>The reason why the
<acronym>ISP</acronym> can't easily do more, is due to the fact that
<acronym>SMTP</acronym> is not authenticated to specific users, and
therefore relies on name services --- fixed IP addresses --- to
route messages to their destination. This makes it impractical for
intermittently connected machines, that dial up nightly and are
dynamically assigned an IP address by the
<acronym>ISP</acronym>, to function as mail exchangers.</para>
<para>One way to preserve the
<acronym>SMTP</acronym> protocol across dynamic IP addresses is to
batch
<acronym>SMTP</acronym> commands in a file, and pass the file over a
separate transport.
<footnote>
<para>See
<ulink url="http://wizzy.com/wizzy/batch.html" /></para>
</footnote> Batched
<acronym>SMTP</acronym> is similar to normal
<acronym>SMTP</acronym>, but, because it is being written to a
file, all responses are ignored. (Normally, an
<acronym>SMTP</acronym> connection is a conversation of commands and
responses between the sending and the receiving servers, so that
the sender may probe for the capabilities of the receiver, confirm
successful delivery, etc.) Fortunately, this is not critical: as
long as all the responses are known to be
<literal>OK</literal>, everything works.</para>
<para>The Wizzy solution is to write messages to a file, use UUCP
over
<acronym>TCP/IP</acronym> as an authenticated transport from the
<acronym>SMTP</acronym> server of the
<acronym>ISP</acronym> (in this situation, Andy's Cape Town Wizzy
server will be the
<acronym>SMTP</acronym>), and unpack the batch at the final
destination (the tuXlab). The batched
<acronym>SMTP</acronym> format is described in
<ulink url="http://www.faqs.org/rfcs/rfc2442.html"> RFC 2442 --- The
Batch
<acronym>SMTP</acronym> Media Type</ulink></para>
<para>Wizzy uses
<command>exim</command> as the
<acronym>SMTP</acronym> agent at both ends, and Taylor (GNU) UUCP as
the middle transport.</para>
</listitem>
</itemizedlist>
</section>
</section>
<section id="applications">
<title>Applications</title>
<section id="openoffice-org">
<title>OpenOffice.org</title>
<para>OpenOffice is a full office suite, intended to measure up to and
surpass Microsoft Office. This is what its original author, Marco
Börries, intended when he started StarDivision to create the
software that would eventually become OpenOffice in 1984, when he was
just sixteen. He called it StarOffice. By the time Sun Microsystems
bought Marco's company in 1999, over 25 million copies of Star Office
had been sold to customers who needed platform independence (see
<xref linkend="glossary" />) and an alternative to Microsoft.</para>
<para>In July 2000, Sun released most of the Star Office source code
(about 7.5 million lines of C++) to the stewardship of the open source
community, under the
<ulink url="http://www.fsf.org"> Free Software Foundation</ulink>'s LGPL
license. The community project has as its goal: "To create, as a
community, the leading international office suite that will run on all
major platforms and provide access to all functionality and data
through open-component based APIs and an XML-based file format." The
open APIs (see
<xref linkend="glossary" />) and file formats are turning OpenOffice
into a platform in its own right, supporting projects such as
<ulink url="http://opengroupware.org/"> OpenGroupware</ulink>, which
aims to provide an open alternative to Microsoft's Exchange and
SharePoint products.</para>
<para>This is in direct contrast to Microsoft's approach, who have
always used the fact that only their own software could easily use
their document formats to keep customers locked in, in effect reserving
the Office platform to Windows applications.</para>
<para>OpenOffice includes a word processor, spreadsheet, interfaces to
many databases, a presentation builder, and a diagramming tool. It is
now able to decode most variants of Microsoft Office document formats,
but although its StarBasic macro language is syntactically identical to
Visual Basic, OpenOffice cannot execute Visual Basic scripts. Although
these are preserved upon conversion, the scripts need to be adjusted to
use the OpenOffice API before they can be used.</para>
<para>OpenOffice can be used to teach all the basic computer skills
required to enter the job market, and as the design paradigms of the
software is very close to Microsoft Office, the skills learnt are
readily transferable.</para>
</section>
<section id="mozilla">
<title>Mozilla</title>
<para>In 1998, Netscape Communications
<ulink url="http://www.catb.org/%7Eesr/writings/cathedral-bazaar/cathedral-bazaar/ar01s13.html">
released the source code of its Navigator web browser software as open
source</ulink>, and the Mozilla project was born. Netscape released
their software as open source in order to compete with Microsoft, who
were bundling Internet Explorer with every copy of Windows sold.
Netscape hoped that the cooperation of thousands of developers around
the world would create a better product than Internet Explorer. It did,
but it took years, and Netscape fell by the wayside. The code lived on,
though.</para>
<para>In 2004, six years after the start of the project, the non-profit
Mozilla Foundation that was created to coordinate the project finally
released version 1.0 of the Firefox browser. Earlier versions of the
software had been in use for years, but at last it was deemed ready for
a high-profile release to the general public.</para>
<para>The full Mozilla suite includes far more than the web browser. It
includes Thunderbird, a mail client with address books and calendaring
support, and Composer, a web page editor. For developers, it includes
Venkman, a Javascript debugger, and the
<acronym>DOM</acronym> Inspector, a wonderful tool for interactively
exploring the enormous, intricate internal structure of complicated web
pages.</para>
<para>The code base has been painstakingly restructured to get as much
use out of it as possible. So, for instance, all the Mozilla
applications use the same rendering engine, called Gecko, to layout and
display HTML pages on screen. This is critical, since it is extremely
hard work to implement the standards that govern web page structure and
display correctly. Mozilla has the best support for the HTML and CSS
standards of any browser out there. In the past, Microsoft has used
Internet Explorer's idiosyncratic and incomplete implementation of web
standards to coerce people to craft their web pages to look good in
Internet Explorer at the expense of other browsers. For the web to
become a dependable platform, however, developers have to be able to
build on solid public standards that don't leave them at the mercy of
any company's prosperity.</para>
<para>As with OpenOffice, the Mozilla project is becoming a platform
for
<ulink url="https://addons.update.mozilla.org/extensions/">
extensions</ulink> from the community.</para>
<section id="id30">
<title>Security</title>
<para>As the internet has become more popular, viruses, spam, spyware
and trojans have grown to be an enormous problem. These are all
caused by programs that are received and executed on computers
without the knowledge or consent of their users. How can this
happen?</para>
<para>In general, there are two ways for this to happen:</para>
<itemizedlist>
<listitem>
<para>You may have given implicit permission without intending to
do so;</para>
</listitem>
<listitem>
<para>The unwanted program may be exploiting errors or bugs in
some program in order to insinuate themselves into it, so that it
can execute with the permissions of the original program.</para>
</listitem>
</itemizedlist>
<para>Firefox and Thunderbird try to protect you as far as possible
by setting up reasonable defaults. Nothing in an email message is
executed unless you explicitly run it yourself. And execution of
Javascript in web pages can be switched off at any point. Firefox
also allows you to grant or revoke specific permissions (e.g. opening
popups, hiding the status bar, or changing images) to
Javascript.</para>
<para>The Mozilla suite also affords you a measure of protection from
the second case. While Internet Explorer has access to practically
the entire running system of a Windows PC via a powerful integration
technology called ActiveX, Firefox and Thunderbird are far more
restricted. It also helps to be running on Linux, where the user of
the web browser will generally not be able to damage the operating
system, and the system administration account is never used to run
user applications.</para>
</section>
</section>
</section>
</chapter>
<chapter id="networking">
<title>Networking</title>
<section id="why-network">
<title>Why network?</title>
<para>On its own, a computer can be a fascinating tool. However, when you
connect many computers together using a network, worlds of possibility
open up. In a network, better use is made of all the connected resources,
because they can be
<emphasis>shared</emphasis>. For example, if there is one printer,
everyone can use it. It is also possible to concentrate resources where
they will have the greatest benefit --- all the additional memory added
to the server becomes available for running the programs of
<emphasis>all</emphasis> the clients.</para>
<para>The advantages of networking only
<emphasis>start</emphasis> with economies in hardware expenditure. Another
aspect, one that is really far more exciting, is the opening up of
communication channels among lab users, and, if you can reach the
internet, with the world at large. Only some of the lab users will be
interested in computers for their own sake. Many more users will be
writing essays, asking questions, drawing pictures or practising skills
using the educational programs offered in a tuXlab. With a network, they
can easily share documents, discuss them, and have a record of
discussions for the learners that come after them.</para>
<section id="printing">
<title>Printing</title>
<para>A tuXlab will usually have only one or two printers for the lab
as a whole. Since everyone will use these, it's worthwhile to get the
best printers you can afford: as long as they're on a network, everyone
will benefit.</para>
<para>Depending on the make of printer, it may be connected to the
network switch with a network cable, or it may be connected directly to
a print server (which may be the classroom server) with a parallel
cable.</para>
<para>Printing in a tuXlab will be managed using
<acronym>CUPS</acronym>, the Common Unix Printing System. It provides a
web interface (accessible at
<literal>http://printserver:631/</literal>) where you may check the
status of printers and print jobs, print test pages, and so on. (
<literal>printserver</literal> is the hostname of the printer or the
server to which the printer is connected.)</para>
</section>
<section id="email">
<title>Email</title>
<para>Email has been called the "killer application" of the internet.
It's the most ubiquitous and accessible way to communicate with people
across the world.</para>
<para>Not all tuXlabs have email. Generally, you'll only have email if
a Wizzy server is installed along with the classroom application
server. The Wizzy server functions as a post office and a stand-in, or
a proxy, for the world wide web.</para>
<para>If your tuXlab is equipped with a Wizzy server, you'll be able to
send mail to each other and to other schools or mailing lists all over
the world.</para>
<para>XXX: How does Wizzy handle delivery of
<emphasis>local</emphasis> email? Does that also go via the Cape Town
Wizzy server, and take a day for the round trip? Probably not ..</para>
</section>
<section id="file-sharing">
<title>File sharing</title>
<para>Without a network, transferring files from one computer to
another is a difficult and inconvenient process. You have to copy the
file onto some storage medium (such as a floppy disk or a
<acronym>CD</acronym>) and carry it over to the other computer
yourself. Floppy disks tend to break or become silently corrupted.
<acronym>CD</acronym>s can only be written once, and are relatively
expensive. Even rewritable
<acronym>CD</acronym>s are slow to use, and even more expensive.
Finally, all kinds of disk drives have many moving parts, and they have
to deal with a disk platter that spins hundreds of times per second.
They all break eventually.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/floppysilent.png" />
</imageobject>
<caption>Watch out for this one, it only looks innocent.</caption>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="images/floppyviolent.png" />
</imageobject>
<caption>If you're lucky, the floppy will let you know when it's
broken.</caption>
</mediaobject>
<para>It's much better to shift the job to network cables. Once laid, a
cable will keep on working forever. It doesn't cost anything to
transfer data over it, and it's very fast.</para>
<para>In the thin-client configuration of a tuXlab, the reality is even
better. None of the client workstations store any data, so the need for
them to have internal hard disk drives has also been eliminated. The
only computer in a tuXlab that must contain at least one disk drive is
the classroom server. Every user of the tuXlab --- in other words,
every person with a username and password to login at a workstation ---
has some storage space on the classroom server's hard drive allocated
to them, where they may store their data. They all reach their data via
the network.</para>
<para>This means that making a copy of a file for another user comes
down to making a copy elsewhere on the same disk drive. Similarly, for
files that many people need to share without necessarily needing their
own copies to modify, this means that everyone may access the exact
same copy of the file. In a non-networked situation, every single
workstation would need their own copy of such files. This is the case
for all the operating system and application software, for
example.</para>
</section>
<section id="servers-and-clients">
<title>Servers and clients</title>
<para>Without a network, every workstation needs to be sufficient unto
itself, and to provide all the storage space and processing power that
a user is likely to need. With the introduction of a network, it
becomes feasible to differentiate between computers, and equip them
according to their roles. For a tuXlab, this means removing everything
that can break or costs money from the client workstations --- their
role is only to receive data over the network, and to display the
user's desktop, sent from the server. The server does all the work, so
it can have all the memory, disk space and computing power that you can
afford. Everyone benefits from money spent on the server.</para>
</section>
</section>
<section id="equipment">
<title>Equipment</title>
<para>In this section, we have a look at the different kinds of equipment
that we need to set up a network.</para>
<para>There are many different kinds of computer networks, with different
strengths and weaknesses. Some might be designed for the maximum data
transfer speed, some to minimise costs, and others to make it as easy as
possible to connect computers to one another. In the case of tuXlabs, we
need a really fast network, because everything displayed by the client
workstations needs to be sent from the server over the network. We also
need a standard network that allows any kind of computer or peripheral to
be added to the network easily.</para>
<para>In order to meet these criteria, tuXlab uses an
<emphasis>Ethernet</emphasis> network with
<emphasis>category 5</emphasis> network cabling (CAT-5, for short).</para>
<para>In an Ethernet, data packets are broadcast onto the network for all
connected devices to receive. The devices themselves then examine the
data packet to determine whether it was meant for them. If so, they
process it; otherwise, they drop it on the floor and it vanishes.</para>
<para>The name "Ethernet" comes from the ancient Greek concept of
"ether". According to them, this was the fluid that filled the spaces
between stars. Of course there isn't any such thing, but they made it up
because surely there couldn't be
<emphasis>nothing</emphasis> between stars, could there? In an Ethernet,
as far as the communicating computers are concerned, there aren't any
cables either. Of course there really are cables, but you don't have to
send a data packet down a specific cable to a specific computer. You just
entrust it to the "ether", and all computers get the packet.</para>
<section id="switches-hubs">
<title>Switches / Hubs</title>
<para>There are different ways of wiring an Ethernet local area
network. One way is to simply lay coaxial cable from one computer to
the next, until all the computers are connected, forming a
<emphasis>ring</emphasis>. This is relatively simple, but the resulting
network is slow, both because of the electrical properties of the
coaxial cable, as well as because all the data has to share a single
cable.</para>
<para>Since a tuXlab needs more speed, a
<emphasis>star</emphasis> topology is used instead
<emphasis>diagram</emphasis>. In this configuration, a single CAT-5
cable connects each workstation to a central node. This central node
acts as an interchange. In a simple network where speed isn't critical,
this node can be a
<emphasis>hub</emphasis>. This is a device with ports where you can
plug in many network cables; usually 8, 16 or 24. A hub is very chatty:
it simply repeats all the data coming in on one port on all the other
ports. This way, the data is sure to reach the computer it's meant for.
Unfortunately, it also reaches all the other computers, taking up
precious network bandwidth.</para>
<para>Instead of a hub, you can also use a
<emphasis>switch</emphasis>. It looks just like a hub, but it's
cleverer about routing the traffic that moves across it. In short, it
remembers which computer is where, so that when it receives a data
packet meant for a particular computer, it sends it only to the port
where that computer is connected.</para>
<para>Switches can be linked together to form one bigger switch. For
example, if you have a lab with 25 workstations, you can link together
two 16-port switches using a fly-lead. See
<xref linkend="switch-cabinet" />.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/switch-flyleads.gif" />
</imageobject>
<caption>Every switch has a couple of special high-speed ports. These
are used to link the switch to the server, or to link switches to
each other.</caption>
</mediaobject>
</section>
<section id="cabling">
<title>Cabling</title>
<para>Category 5 cable, commonly known as CAT-5, is an unshielded
twisted pair type cable designed for high signal integrity. The actual
standard defines specific electrical properties of the wire, but it is
most commonly known as being rated for its Ethernet capability of 100
MBit/s. Its specific standard designation is EIA/TIA-568. CAT-5 cable
typically has three twists per inch of each twisted pair of 24 gauge
copper wires within the cable. Another important characteristic is that
the wires are insulated with a plastic (FEP) that has low dispersion;
that is, the dielectric constant of the plastic does not depend greatly
on frequency. Special attention also has to be paid to minimising
impedance mismatches at connection points. In practise, this means
that, when you attach connectors to the cable ends, you shouldn't
untwist more of the cable than absolutely necessary.</para>
</section>
<section id="building-the-network">
<title>Building the network</title>
<para>When laying CAT-5 cable, you need a crimping tool, RJ-45 jacks,
and boots for the jacks.</para>
<para>The crimping tool is a clever piece of work. It combines the
functions of a cable-cutter, wire-stripper, and a special grip
specifically designed to fix the RJ-45 jack to the cable. I'll explain
them as I go through the steps of preparing a cable.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/netwerkkabelplug.png" />
</imageobject>
<caption>An RJ-45</caption>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="images/crimptool.png" />
</imageobject>
<caption>A crimping tool</caption>
</mediaobject>
<section id="cutting-the-cables">
<title>Cutting the cables</title>
<para>The first thing you need to do, is to cut the cable into the
appropriate lengths, using the crimping tool's cable-cutter. To do
this, measure the distance from the box where the switch will be
installed to the furthest computer in each row. (Usually, in a
tuXlab, there will be four rows of workstations.) It's easiest to use
the cable itself for this, and to mark the length with a piece of
masking tape.</para>
<para>To keep things organised, write something on the masking tape
to identify the computer which the cable is meant for. Label the rows
using a letter (so that you have rows A, B, C and D), and label each
computer in a row with a number (so that you have A1 to A8, and so
on). Once you have the longest cable in each row, you can figure out
all the other lengths by shortening each subsequent cable with the
distance between two workstations (normally, this will be
1200mm).</para>
<para>While you are cutting the cable into the right lengths, take
care to keep the cables for each row together. Bind all the cables
for a row together in a bundle, using masking tape. At the one end of
the bundle (the switch end) all the cable ends will be together. On
the other end, the ends will vary from the shortest to the
longest.</para>
<para>Besides the cables from the switch to the workstations, you
also need to cut a couple of fly leads. These are used to connect the
server(s) to the switch, and also to link together multiple
switches.</para>
</section>
<section id="laying-the-cables">
<title>Laying the cables</title>
<para>Once all the cables have been cut and gathered together in
bundles, you can take them in to the lab. Put them on the ground
underneath the desks, and ensure that the cables at the switch end
can comfortably reach the switch.</para>
<para>If your network shares the same trunking with the electrical
wiring of the lab, you MUST switch off the lab's power at the
electrical subdivision board for the lab.</para>
<para>Now you need to put the cables inside the trunking. To do this,
get as much help as you can muster, as it's hard work and no fun to
do alone. Take the cover off the trunking. Note carefully where each
workstation will be standing, and drill a small hole in the trunking
below each workstation, for the CAT-5 cable to reach the workstation.
While the cables and the covers are lying on the floor, thread each
cable through the correct hole in the trunking (the cable for
computer A1 goes through the hole for A1, and so on).</para>
<para>Once this is done, carefully put the cables inside the trunking
and put the covers back on. Pass the cable ends up above the desks.
You should have about 1m free cable for each workstation.</para>
</section>
<section id="crimping-the-cables">
<title>Crimping the cables</title>
<para>Stepping back, your lab looks the same as before, with the
addition of cable ends emerging above the desks, and a whole bundle
of cables terminating at the switch cabinet. Now you need to attach
RJ-45 jacks to the cable ends, so that they can be plugged into the
switch at the one end, and into each workstation's network card on
the other end.</para>
<para>To do this, complete the following steps for each cable.</para>
<itemizedlist>
<listitem>
<para>Insert the 'boot' over the cable. This will cover the
exposed wires where the RJ-45 jack is attached to the cable
wires.</para>
</listitem>
<listitem>
<para>Cut through the sheath around the cable to expose the pairs
of coloured wires, without damaging them.</para>
</listitem>
<listitem>
<para>Untwist about 2cm of each pair of wires (no more, as this
impairs the effectiveness of the cable for data
transmission).</para>
</listitem>
<listitem>
<para>Arrange the wires in the correct colour sequence.
(Straight-through cabling for cables between the switch and
workstations, or Cross-over cabling for fly leads that connect
switches, or that connect the switch to the server).</para>
</listitem>
<listitem>
<para>Insert the wires into the RJ-45 connector. Push them up so
that all the wires terminate right at the tip of the
connector.</para>
</listitem>
<listitem>
<para>Check the colour sequence of the wires again.</para>
</listitem>
<listitem>
<para>Crimp the wires to the connector using the tool. You'll
notice that the connector has copper strips along the top. These
connect to matching strips in the plug of the workstation's
network card or the switch. When you crimp the connector, it
bites into the wires through their plastic covering, connecting
its copper strips to the copper wire. This is why it's critical
to push the wires right up to the tip of the connector, so that
the connector's teeth find the wire.</para>
</listitem>
<listitem>
<para>Test the cable using a continuity tester, if you have one.
If you don't, you'll just have to figure out whether it works by
trial and error later.</para>
</listitem>
</itemizedlist>
<mediaobject>
<imageobject>
<imagedata fileref="images/cablingcrossed.png" />
</imageobject>
<caption>Cross-over CAT-5 cable</caption>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="images/cablingstraight.png" />
</imageobject>
<caption>Straight-through CAT-5 cable</caption>
</mediaobject>
</section>
</section>
</section>
<section id="lans-and-wans">
<title>LANs and WANs</title>
<para>You have now constructed a
<emphasis>local area network</emphasis>, or
<acronym>LAN</acronym>. It's what gives your tuXlab life, but it stops at
the classroom walls. To be able to send and receive email or access the
internet, it is necessary to connect to further networks. This happens
over a
<emphasis>wide area network</emphasis>, or WAN. A WAN is a computer
network covering a wide geographical area. The grandest example of a WAN
is the internet.</para>
<para>WANs are used to connect local area networks together, so that
users and computers in one location can communicate with users and
computers in other locations. Many WANs are built for one particular
organisation and are private; others, built by internet service
providers, provide connections from an organisation's
<acronym>LAN</acronym> to the internet. This is the case with a tuXlab
that is connected to the internet.
<emphasis>Private</emphasis> WANs are most often built using leased lines.
At each end of the leased line, a router connects to the
<acronym>LAN</acronym> on one side and a hub or a switch within the WAN on
the other. (XXX: diagram)</para>
<para>While a
<acronym>LAN</acronym> is a network of computers and devices, a WAN is
most often a network of networks. A router, or a computer configured to
function as a router, on each network, connects to routers on other
networks.</para>
<para>Behind every router there may be many computers (or networks) that
are not directly connected to the internet. It is then the function of
the internet gateway computer to route packets from outside networks to
the correct computer on the inside. All the computers on a
<acronym>LAN</acronym> share a single connection to the internet. In the
case of tuXlabs, the Wizzy server, if you have one, acts as a gateway
computer.</para>
<para>However, because a permanent WAN connection is very expensive in
South Africa, especially in rural areas where telecommunication
infrastructure may be lacking, a tuXlab will connect to the internet only
intermittently. When it is not connected, the Wizzy server acts as a
proxy for the internet, serving cached requests, and queueing email to
send later when the connection is established again.</para>
</section>
<section id="tcp-ip">
<title>
<acronym>TCP/IP</acronym>
</title>
<para>The network protocol of the tuXlab
<acronym>LAN</acronym> is the same as that used for communication on the
internet, namely
<acronym>TCP/IP</acronym>. This is the
<emphasis>Transmission Control Protocol (TCP)</emphasis>, encapsulated
within the
<emphasis>Internet Protocol (IP)</emphasis>. The Internet Protocol takes
care of routing data packets from a source IP address to a destination IP
address. An IP address consists of four numbers that look like this:
<literal>192.168.10.200</literal>. IP packets can contain TCP packets.
Whereas an IP packet only knows where it should go, TCP packets contain
information about their position in a sequence of packets.</para>
<para>TCP is wonderful: it makes it possible to treat a flaky network as
though it were perfectly reliable. When you send anything across a
<acronym>TCP/IP</acronym> network (e.g. an email message, an image, or a
document) it is broken down into many TCP packets. These are numbered and
sent, one by one, to the destination computer. At the destination, the
sequence number is used to put the packets in the correct order (as they
may have become mixed up in transit). If there are gaps in the sequence,
only those packets are requested again. If some packets are received more
than once, the extra packets are simply dropped. Once all the packets in
the sequence have been received, the entire file has been transferred
successfully.</para>
<para>Unsurprisingly, an IP address cannot be just any four numbers.
Actually, there is a lot of underlying structure. In the first place, the
numbers are a sequence of four
<emphasis>bytes</emphasis>. Computers generally handle data one byte at a
time, so it's convenient to specify things as a sequence of bytes. A byte
consists of eight binary digits. The binary number system has only two
digits, namely 0 and 1: just as 99999999 is the largest number that you
can express with eight decimal digits, 11111111 is the largest number
that you can express with eight binary digits. If you convert that number
to decimal, you get 256. For this reason, a sequence like
<literal>300.5.502.743</literal> does not make any sense as an IP
address.</para>
<para>In the second place, some address ranges are reserved. For example,
all the networks that start with
<literal>192.168.---.---</literal> as their first two digits are private,
not routed on the internet. The whole public IP address space is divided
among ISPs. Each
<acronym>ISP</acronym> gets a range of numbers that they may portion out
between its customers. This range of numbers is described in terms of a
<emphasis>netmask</emphasis>, a number which looks similar to an IP
address, but is used to match all the IP addresses that belong to a
particular network. Private networks can also be segmented into subnets
using netmasks. Any computer on a network can send IP packets to any
other computer on the network, but to send an IP packet to a computer on
a
<emphasis>different</emphasis> network, there must be a gateway computer
which is configured to help the packets cross from one network to
another.</para>
<para>Gateway computers also implement network management policies, e.g.
by way of firewall software, that specify what traffic is allowed into
and out of a network.</para>
</section>
<section id="ltsp-wizzy-wikipedia">
<title>
<acronym>LTSP</acronym>, Wizzy, Wikipedia</title>
<para>On a tuXlab
<acronym>LAN</acronym>, there may be up to three important
servers.</para>
<itemizedlist>
<listitem>
<para>Most importantly, there will always be an
<emphasis role="strong">
<acronym>LTSP</acronym> classroom server</emphasis>, which serves the
desktop sessions of all the client workstations.</para>
</listitem>
<listitem>
<para>If the tuXlab makes use of the Wizzy solution for internet
connectivity, there will be a
<emphasis role="strong">Wizzy server</emphasis> functioning as mail
server (using Courier for IMAP mail storage, and
<command>exim</command> for sending and receiving of mail via
<acronym>SMTP</acronym>) and web proxy (using
<command>wwwoffle</command>). The address of this server will need to
be configured in the mail clients and web browsers of all tuXlab
users.</para>
<para>For mail clients (XXX: Thunderbird?), the proper ports on the
Wizzy server needs to be configured as
<acronym>SMTP</acronym> and IMAP server. This will normally be ports
25 and 143 of
<literal>XXX.myschool.tuXlab.org.za</literal>. For web browsers, the
Wizzy server needs to be configured as proxy server for all protocols
(HTTP, SSL, FTP).
<command>wwwoffle</command>, the proxy server, usually runs on port
3128.</para>
</listitem>
<listitem>
<para>If a local mirror of the Wikipedia project has been installed,
it will be available as a website on the
<acronym>LAN</acronym>, e.g. at XXX
<literal>http://wikipedia.myschool.tuXlab.org.za/</literal>. As a
website, it's served by
<command>apache</command>, just like the administration pages of the
Wizzy server. The Wikipedia and the mail server / web proxy server
may be the same machine.</para>
</listitem>
</itemizedlist>
</section>
</chapter>
<chapter id="server-configuration">
<title>Server configuration</title>
<section id="wizzy-configuration">
<title>Wizzy configuration</title>
<para>A Wizzy server plays two roles. In the first place, it serves as an
internet proxy, serving cached pages to a lab without a permanent
internet connection. In the second place, it connects to the internet and
retrieves requested pages to store them locally, sends queued email, and
fetches received mail.</para>
<para>These two roles don't have to be fulfilled by the same server: they
may be split across two servers, for example if the school has no
internet access. In this case, there will be a Wizzy in the tuXlab and
another one at a remote location with internet connectivity.</para>
<para>The hardware requirements for the Wizzy server are far less than
those of the classroom application server, since it has to do far less
work. All it needs to do most of the time is to serve up saved pages from
its hard disk. For this, a server with a 200+MHz
<acronym>CPU</acronym>, 256MB
<acronym>RAM</acronym>, and a 40GB RAID 1 disk array is adequate.</para>
<section id="software-used-by-the-wizzy-server">
<title>Software used by the Wizzy server</title>
<itemizedlist>
<listitem>
<para>The Wizzy server uses
<acronym>DHCP</acronym> (
<xref linkend="dynamic-host-configuration-protocol" />) and
<acronym>TFTP</acronym> for booting, the same as the classroom
server.</para>
<para>XXX: What does the Wizzy server use
<acronym>TFTP</acronym> for? Does it also boot from the classroom
server?</para>
</listitem>
<listitem>
<para>It uses the Lightweight Directory Access Protocol (LDAP) for
authentication. When users access their email on the Wizzy server
they will need to supply a username and password. This information
is kept by an LDAP server, which maintains a directory where user
information may be looked up. It is analogous to a telephone
directory.</para>
<para>Ideally, there should be only one directory for a tuXlab,
which contains the information on all the users and resources (such
as printers) in the lab. Currently, however, the directory
maintained by the Wizzy server is separate from the user database
on the classroom server.</para>
</listitem>
<listitem>
<para>The Unix-to-Unix Copy Protocol (UUCP) is used for
<emphasis>all</emphasis> email sending and receiving, as well as for
fetching web pages. As long as a service can be configured to use
UUCP for communication, it is possible to provide the service
without a permanent internet connection. For this reason, Wizzy
sticks to UUCP.</para>
</listitem>
<listitem>
<para>The Wizzy server uses BIND (the Berkeley Internet Name
Daemon) for domain name services (
<acronym>DNS</acronym>), on the local network.
<acronym>DNS</acronym> is how IP addresses, such as
<literal>192.168.0.254</literal>, are resolved to readable domain
names, such as
<literal>server.myschool.tuxlab.org.za</literal>.</para>
<para>XXX: I'm not sure what "on the local network" means here.
Does that mean it only resolves names that are local to the
tuXlab?</para>
<para>XXX: What domain name does a classroom server get?</para>
</listitem>
<listitem>
<para>For email, Wizzy uses the Courier IMAP server for inbound
mail and webmail.</para>
<para>IMAP (the Internet Mail Access Protocol) provides a way for
all kinds of mail clients (such as Thunderbird, or Mozilla's email
component) to access a mail store. In Wizzy's case, the Courier
package handles mail storage and IMAP access. Wizzy also provides a
webmail client to access the mail store using a web browser.</para>
</listitem>
<listitem>
<para>To send mail, Wizzy uses the
<command>exim</command> program.</para>
</listitem>
<listitem>
<para>As discussed in
<xref linkend="wizzy-server" />, one of the most important jobs the
Wizzy does is to provide a browsable offline copy of all the web
pages that interest tuXlab users. It does this using the
<ulink url="http://www.gedanken.demon.co.uk/wwwoffle/">
wwwoffle</ulink> program to provide a local web cache. It augments
<command>wwwoffle</command> (the World Wide Web Offline Explorer)
with some custom programs, since Wizzy's disconnected mode of
operation goes beyond the options offered by
<command>wwwoffle</command> on its own.</para>
</listitem>
<listitem>
<para>The Wizzy server provides its administration functions as
well as webmail as web pages, and uses the
<ulink url="http://www.apache.org/"> apache</ulink> webserver to
serve these pages. They may be accessed by going to XXX
<ulink url="http://wizzy/"> http://wizzy/</ulink> on the tuXlab
<acronym>LAN</acronym>.</para>
</listitem>
<listitem>
<para>For a local FTP server, Wizzy uses XXX: vsftpd (XXX: but what
is the local FTP server used for?)</para>
</listitem>
<listitem>
<para>In its role as a connection to the internet, the Wizzy server
can connect to any
<acronym>ISP</acronym> with which the school has an account, in
order to retrieve web pages. It does not, however, use any email
facilities that the
<acronym>ISP</acronym> may provide: all mail goes through Andy
Rabagliati's server in Cape Town using UUCP.</para>
</listitem>
<listitem>
<para>For the sake of data integrity, Wizzy uses a RAID disk system
for storage. RAID is a
<emphasis>Redundant Array of Inexpensive Disks</emphasis>. It is a
way to federate multiple hard disk drives in such a way that the
failure of any one disk does not result in data loss.</para>
</listitem>
</itemizedlist>
</section>
<section id="wizzy-as-a-classroom-server">
<title>Wizzy as a classroom server</title>
<para>The Wizzy project predates tuXlabs. It can also be configured to
provide a similar range of application serving functions as the tuXlab
classroom server provides. In this configuration, it uses the following
packages:</para>
<itemizedlist>
<listitem>
<para>Like the tuXlab server, Wizzy uses the
<acronym>LTSP</acronym> packages (
<xref linkend="linux-terminal-server-project" />) for its
thin-client NFS-mounted root directory.</para>
</listitem>
<listitem>
<para>It also uses
<acronym>NFS</acronym> (the Network FileSystem) for home directories
that are NFS-mounted by the thin clients.</para>
<para>XXX: I don't know if I'm understanding this correctly. Does
Wizzy mount the users' home directories from the classroom server,
e.g. in order to server web pages from them?</para>
</listitem>
</itemizedlist>
</section>
</section>
<section id="dynamic-host-configuration-protocol">
<title>Dynamic Host Configuration Protocol</title>
<para>Every computer on a local area network (
<acronym>LAN</acronym>) needs to have a unique IP address (see
<xref linkend="tcp-ip" />) so that it may send and receive data. The
Dynamic Host Configuration Protocol (
<acronym>DHCP</acronym>) is a networking protocol that allocates IP
addresses dynamically to computers on a
<acronym>LAN</acronym>. Without it, an administrator needs to give each
client computer a static IP address manually. This may seem simple enough
to begin with, but given time, it slowly turns into a nightmare:
computers are added, removed or moved about, and the number assignments
eventually become arbitrary and troublesome to keep track of. On a
network with manually assigned addresses, it's also awkward to connect
transient devices such as laptop computers that are also used on many
other networks. You have to talk to the system administrator to find out
the network configuration, and then check the network to find a free
address. With
<acronym>DHCP</acronym>, it's easy: just plug in an Ethernet cable for
the new device, and it will immediately request an IP address from the
classroom server, which will assign an unused number to it.</para>
<para>In a tuXlab, the classroom server is configured as a
<acronym>DHCP</acronym> server. A system administrator assigns a range of
IP addresses to the server. Each client computer on the
<acronym>LAN</acronym> has its
<acronym>TCP/IP</acronym> software configured to request an IP address
automatically from the
<acronym>DHCP</acronym> server when that client computer starts up. The
request-and-grant process uses a lease concept with a controllable time
period. This eases the network installation procedure on the client
computer side considerably.</para>
<para>In addition to the IP address, a
<acronym>DHCP</acronym> server can set other configuration information,
such as the address of the
<acronym>DNS</acronym> server, the
<acronym>DNS</acronym> domain of the client, and the gateway IP address,
so that the client computer can be fully functional.</para>
<para>Before I continue, let me explain the concepts I've just
introduced. First, the
<acronym>DNS</acronym> domain: all Linux computers are given a hostname
upon installation of the
<acronym>OS</acronym>, which is used in system messages and
configuration. When the computer joins a network, its hostname and the
domain of the network together combine to form the Fully Qualified Domain
Name (
<acronym>FQDN</acronym>) of the computer. In the case of a tuXlab, the
<acronym>FQDN</acronym> of each workstation will be something like XXX
<literal>client1.myschool.tuxlab.org.za</literal>. The public
<acronym>DNS</acronym> servers that resolve the domain names of tuXlabs on
the internet are maintained by SchoolNet
<ulink url="http://www.schoolnet.org.za/schoolsurveys/suveys_index.htm">
http://www.schoolnet.org.za/schoolsurveys/suveys_index.htm</ulink></para>
<para>Secondly, the gateway IP address. In
<xref linkend="lans-and-wans" /> I explained that the internet is a
<emphasis>network of networks</emphasis>. For data packets from a
computer on one network to reach a server on another network, there needs
to be a gateway that is connected to both networks at once. Usually, the
gateway computer will have a network card for every network to which it
is connected.</para>
<para>By default, the
<acronym>LTSP</acronym> server uses its first network card (
<literal>eth0</literal>, numbered from 0 like most things in the computer
world) for the classroom
<acronym>LAN</acronym>. It runs
<acronym>DHCP</acronym> on this card, and automatically gives out IP
numbers upon request. It then accepts BootP (Boot Protocol) and
<acronym>PXE</acronym> (Pre-boot eXecution Environment) boot requests, and
passes on the Linux kernel to the client using
<acronym>TFTP</acronym> for the transfer. Once the client has received the
kernel, it boots into Linux. The default
<filename>dhcpd.conf</filename> file will support over 200 clients. The
<acronym>LTSP</acronym> server will not answer
<acronym>DHCP</acronym> requests over
<literal>eth1</literal> (with the default settings.)</para>
<section id="files">
<title>Files</title>
<para>The configuration settings for the
<acronym>DHCP</acronym> server are contained in the
<filename>/etc</filename> directory --- standard Linux location for
configuration data --- in the file
<filename>/etc/dhcpd.conf</filename>. XXX which settings in here should
be explained?</para>
</section>
</section>
<section id="network-configuration">
<title>Network configuration</title>
<para>The first network card,
<literal>eth0</literal>, is the interface on the thin-client side of your
<acronym>LTSP</acronym> server. This network card connects to your
terminal hub. The
<literal>192.168.0.x</literal> address range is designated as a "private"
IP range for internal networks. It is not routed on the internet. IP
traffic from your clients are routed to the internet through
<literal>eth1</literal>. (Note that if there is a Wizzy server, it will
be the one with the two network cards.)</para>
<para>The classroom server has the last available address in this range,
namely
<literal>192.168.0.254</literal> (
<literal>192.168.0.255</literal> is the
<emphasis>broadcast</emphasis> address: packets sent to this address reach
all the computers on the network). The first client will be assigned an
IP number of
<literal>192.168.0.253</literal>.
<footnote>
<para>For more information, see
<ulink url="http://www.k12ltsp.org/install.html">
http://www.k12ltsp.org/install.html</ulink></para>
</footnote></para>
<para>(XXX: make a local one) Dialogue (screenshot):
<ulink url="http://www.k12ltsp.org/screen7.gif">
http://www.k12ltsp.org/screen7.gif</ulink></para>
<section id="wizzy-network-configuration">
<title>Wizzy network configuration</title>
<para>When the tuXlab has a Wizzy server, there are a couple of other
aspects to network configuration.</para>
<itemizedlist>
<listitem>
<para>Protocols</para>
<para>Wizzy Digital Courier relies on standard networking protocols
for the interactive portions, linked by UUCP for the intermittent
sections.</para>
</listitem>
<listitem>
<para>Mail configuration</para>
<para>During installation, you must choose a hostname for the Wizzy
server. This hostname will identify the server within the mail
domain, which is
<literal>wizzy.org.za</literal> (because Wizzy provides the email
infrastructure), so that your complete mail domain becomes
<literal>myschool.wizzy.org.za</literal> (where
<emphasis>myschool</emphasis> is the hostname you chose). This means
that all the tuXlab users will get email addresses like
<literal>user@myschool.wizzy.org.za</literal>.</para>
<para>You will also need to contact Andy Rabagliati at XXX, to tell
him your UUCP password, as he must set up mail routing for
you.</para>
<para>For tuXlabs, Wizzy servers have a special configuration
available --- accessible by typing the following at the Syslinux
boot prompt:</para>
<screen>
boot: linux ks=cdrom:/tsf-ks.cfg
</screen>
</listitem>
</itemizedlist>
</section>
</section>
<section id="network-filesystem">
<title>Network Filesystem</title>
<para>tuXlab uses
<acronym>NFS</acronym>, the Network Filesystem, to make the home
directories of lab users appear to be local to the client workstations,
even though they really reside on the classroom server. The
<acronym>NFS</acronym> configuration is specified in the file
<filename>/etc/exports</filename> on the classroom server.</para>
</section>
<section id="ltsp-configuration">
<title>
<acronym>LTSP</acronym> configuration</title>
<para>The
<acronym>LTSP</acronym> configuration is specified in the file
<filename>lts.conf</filename> on the classroom server. For more detail
about this file, see
<xref linkend="troubleshooting-reference" />.</para>
</section>
<section id="tftpboot">
<title>tftpboot</title>
<para>Upon power-up, the
<acronym>BIOS</acronym> of each client workstation contacts the classroom
server, and retrieves the Linux kernel from it via the
<acronym>TFTP</acronym> protocol. XXX: more detail.</para>
</section>
<section id="users-and-groups">
<title>Users and groups</title>
<para>All the users of the tuXlab will have accounts on the classroom
server. (Additionally, if they have email they will have accounts stored
in the Wizzy server's LDAP directory.)</para>
<para>XXX: who adds them? Root? Using some RedHat config tool?</para>
<section id="permissions">
<title>Permissions</title>
<para>Access to directories, files and executable programs under Linux
is managed in terms of users, groups and permissions. Every user
belongs to a group, and every file belongs to a user and a group. The
basic permissions are
<emphasis>read</emphasis>,
<emphasis>write</emphasis> and
<emphasis>execute</emphasis>. For every file and directory, these
permissions can be set for the user who owns the file, the group, and
for all others (i.e. everyone but the owner or the group). For example,
here are the permissions of a user's home directory:</para>
<screen>
jean@klippie jean $ ls -ld /home/jean
drwxr-xr-x 112 jean users 6664 Des 26 17:31 /home/jean
</screen>
<para>The permissions are shown by the string
<literal>drwxr-xr-x</literal>. The first character,
<literal>d</literal>, indicates that this is a directory. You should
read the following 9 characters in groups of three, that show the
permissions for the owner
<literal>jean</literal> (
<literal>rwx</literal>), the group
<literal>users</literal> (
<literal>r-x</literal>), and all others (
<literal>r-x</literal>). In this case, the owner has
<emphasis>read</emphasis> (
<literal>r</literal>),
<emphasis>write</emphasis> (
<literal>w</literal>) and
<emphasis>execute</emphasis> (
<literal>x</literal>) permissions, while the group and others only have
<emphasis>read</emphasis> and
<emphasis>execute</emphasis> permissions. In the case of a directory,
<emphasis>execute</emphasis> permissions means that you are allowed to
access the contents of the directory. This home directory may therefore
be read by everyone, but only the user may change it.</para>
<para>Here are the permissions on the file that contains the system
user database:</para>
<screen>
jean@klippie jean $ ls -l /etc/passwd
-rw-r--r-- 1 root root 2118 Des 1 05:32 /etc/passwd
</screen>
<para>These indicate firstly that this is a regular file, not a
directory (the leading
<literal>-</literal>), and that the owner
<literal>root</literal> has
<emphasis>read</emphasis> and
<emphasis>write</emphasis> permissions (
<literal>rw-</literal>), and everyone else have only
<emphasis>read</emphasis> permissions (
<literal>r--</literal>). In effect, this means that only the
<literal>root</literal> user may add, modify or delete users.</para>
<para>You may further note that the group to which this file belongs is
also
<literal>root</literal>. This group only has one member (the
<literal>root</literal> user), and is used for files that are under
control of only this unique user.</para>
<section id="the-superuser">
<title>The superuser</title>
<para>Every Linux machine normally has a user called
<literal>root</literal>, who has all permissions. When a system
administrator needs to do maintenance, they log in as
<literal>root</literal> only to make the necessary changes, and then
switch to their regular user again.</para>
</section>
</section>
<section id="retiring-users">
<title>Retiring users</title>
<para>XXX: what happens when a user is retired? Is the password just
reset, or is the whole home directory and all email deleted?</para>
</section>
</section>
<section id="id35">
<title>Printing</title>
<para>XXX: Cups ...</para>
</section>
<section id="developing-a-backup-procedure">
<title>Developing a backup procedure</title>
<para>The importance of backing up a system can never be stressed enough.
You never know when the power may cut out or the hard drive may crash.
Even though you can restore the operating system from the distribution
CD-ROM, there are other files that you need to consider. What about the
configuration changes that you made? There are also files created by
users, what about those?</para>
<para>Follow these steps to create a backup plan:</para>
<orderedlist>
<listitem>
<para>Make a list of the files and directories that you need backups
of. You'll always want to backup system configuration files in the
<filename>/etc</filename> directory, other configuration files may be
found in
<filename>/usr/lib</filename>. In addition, you may want to backup
user files in the
<filename>/home</filename> directory as well as the superuser (
<literal>root</literal>) files in
<filename>/root</filename>.</para>
</listitem>
<listitem>
<para>Find a few tools to use when backing up and archiving files and
directories. Several tools are available that will archive a group of
files, and there are tools that will compress files and
archives.</para>
</listitem>
<listitem>
<para>Decide how often the system and individual files need to be
backed up. How often do your files change? If files change
frequently, the your backup frequency should match the change
frequency. So, you may need to perform a backup every day. If you
only make one or two configuration changes on occasion, you can
easily backup the configuration files only when the changes is
made.</para>
</listitem>
<listitem>
<para>Select a storage medium that will store the backup file. If you
have a few files to backup, you could just store them on a floppy
disk. If you have more files, or larger files, you can consider using
a zip drive or a CD-RW drive.</para>
</listitem>
<listitem>
<para>Store the files in a safe place. The safest place to store the
backup media is at a location different from where the computer is
located. To be really safe, this location needs to be protected from
fire and other hazards. You may also want to keep a copy of the
backup files close by so that you can quickly restore lost
files.</para>
</listitem>
</orderedlist>
<para>
<emphasis role="strong">Tip</emphasis>: Always make a copy of
configuration files before you make any configuration changes. That way,
should your new settings not work, you can restore the old configuration
files.</para>
</section>
</chapter>
<chapter id="downloading-the-internet">
<title>Downloading the internet</title>
<para>On the homepage of the Wizzy server, accessible by browsing to the
server using a web browser (XXX domain?), there is a form to request web
sites for caching. Educators may preconfigure the server with a range of
interesting websites, and learners may request new sites per email or in
the classroom situation. When the Wizzy server connects to the internet
(directly, or indirectly via a counterpart in a remote location) it fetches
the requested pages, and refreshes those pages which it should keep up to
date.</para>
<section id="accessibility">
<title>Accessibility</title>
<para>All email and websites browsed by the tuXlab users during the day
are served directly from the server in the classroom. This means
instantaneous and constant connectivity to a local miniature internet
over a top quality hardwired network. There is no waiting.
<footnote>
<para>See
<ulink url="http://wizzy.org.za/article/articlestatic/19/1/2/" /></para>
</footnote></para>
</section>
<section id="the-internet-as-school-library">
<title>The internet as school library</title>
<para>Nothing will ever approach the importance of printed books for
fostering a love to read. Only by curling up with a book somewhere safe
and comfortable can your mind rise on the wings of the pages and take you
to worlds beyond your own. Books are expensive and scarce, though. There
are never enough copies. Furthermore, some books work very well in
electronic form, especially reference works that you don't read from
cover to cover. For these reasons, the internet can be a wonderful
addition to the school library.</para>
<section id="id38">
<title>Wikipedia</title>
<para>If the Wikipedia has been installed, the Wizzy server will also
serve a local mirror of it.</para>
<para>The
<ulink url="http://www.wikipedia.org"> Wikipedia</ulink> is a
one-of-a-kind collaborative effort to create an online encyclopedia. It
is managed and operated by the non-profit Wikimedia Foundation. In
addition to standard encyclopedic knowledge, the Wikipedia project has
developed offshoots that include the kind of information associated
with almanacs and gazetteers, as well as coverage of current events.
With a little effort, it can be used offline in schools.</para>
<para>The Wikipedia is being written collaboratively as an open source
project, using specialised
<emphasis>wiki</emphasis> software called
<literal>mediawiki</literal>. This means that anyone, including you,
can make changes and add information. In fact, the openness of
Wikipedia to local knowledge is one of its most important
characteristics. For the first time, the world is being described not
by an editorial committee but by a global community of volunteers, who
are able to augment academic knowledge with local experience.</para>
<para>A
<emphasis>wiki</emphasis> is a simple form of web-publishing that was
thought up by a software design consultant called Ward Cunningham. His
original wiki is still running at
<ulink url="http://c2.com/cgi/wiki">
http://c2.com/cgi/wiki</ulink></para>
<para>In a wiki, every page is editable as plain text which is
converted to HTML when served, following a number of simple conventions
that convey the structure of the text. Specifically the convention for
linking between pages is what gives wikis their identity. To create a
link to another page, you simply write its title in a special format
(e.g.
<literal>AnotherPage</literal>), and if that page exists the title is
turned into a hyperlink to it. If it
<emphasis>doesn't</emphasis> exist, the title is turned into a link
leading to a blank page where you may create
<literal>AnotherPage</literal> instead. The
<literal>mediawiki</literal> software also keeps a record of all
versions of a page, so that the entire editorial history of a page may
be examined.</para>
<para>For schools that don't have a permanent internet connection, this
entire resource, because of its Open Content license, can be installed
locally. Even for schools that are permanently online there are
advantages to a local install, in preference to a
<literal>wwwoffle</literal> mirror:</para>
<itemizedlist>
<listitem>
<para>It's more effective, since it doesn't fetch all the HTML
furniture (everything that repeats from page to page, such as the
page header and footer) repeatedly.</para>
</listitem>
<listitem>
<para>It's complete. A
<literal>wwwoffle</literal> mirror would contain only the articles
that were requested, piecemeal.</para>
</listitem>
<listitem>
<para>It's searchable via SQL.</para>
</listitem>
</itemizedlist>
<para>A local Wikipedia mirror does introduce some complexity though.
In addition to
<literal>apache</literal>, it requires PHP, Mediawiki and
<literal>mysql</literal>.
<footnote>
<para>See
<ulink url="http://wizzy.org.za/article/articlestatic/23/1/2/" /></para>
</footnote></para>
</section>
<section id="gutenberg">
<title>Gutenberg</title>
<para>
<ulink url="http://www.gutenberg.org/"> Project Gutenberg</ulink> was
started in 1971 by Michael Hart, with the goal to provide books
electronically at no cost.</para>
<para>Their collection numbers more than 13,000 e-books, produced by
hundreds of volunteers. Most of the Project Gutenberg e-books (but not
all) are older literary works that are in the public domain in the
United States.
<footnote>
<para>Incidentally, this emphasises the importance of a public
domain. Current legislation in the United States effectively allows
work to be kept out of the public domain indefinitely. This is bad
news for future generations.</para>
</footnote> All may be freely downloaded and read, and redistributed for
non-commercial use (for complete details, see the
<ulink url="http://www.gutenberg.org/license"> license
page</ulink>).</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/downloadbooks.png" />
</imageobject>
</mediaobject>
</section>
<section id="connexions">
<title>Connexions</title>
<para>The
<ulink url="http://cnx.rice.edu/"> Connexions</ulink> project of
<ulink url="http://www.rice.edu"> Rice University</ulink> is an endeavour
to create open source course material. On their homepage, they state:
"Knowledge should be free, open, and shared. Connexions is a rapidly
growing collection of free scholarly materials and a powerful set of
free software tools to help authors publish and collaborate,
instructors rapidly build and share custom courses, and learners to
explore the links among concepts, courses, and disciplines.</para>
<para>They provide small "knowledge chunks", called modules, that
connect into courses. Thanks to an open license, anyone can take these
materials, adapt them to meet their needs, and contribute them back to
the Commons.</para>
</section>
</section>
</chapter>
<chapter id="open-source-educational-software">
<title>Open source Educational Software</title>
<para>This is just a very quick overview of a few of the educational
software packages that may be suitable for use in schools.</para>
<para>XXX: which of these are in the tuXlab distro?</para>
<section id="the-kde-edutainment-project">
<title>The
<ulink url="http://edu.kde.org"> KDE Edutainment project</ulink></title>
<para>The KDE project comprises many sub-projects that cover a wide range
of computing areas, from office applications to development tools. One of
these projects, the KDE Edutainment project, has education as focus.
<footnote>
<para>The following overview comes from the first edition of
<ulink url="http://fsfeurope.org/projects/education/tgs/tagatschool1.en.html">
TUX&GNU@school</ulink></para>
</footnote></para>
<para>The software is divided into categories. Currently, these are
Astronomy, Chemistry, Languages, Mathematics, Miscellaneous and Planning.
Astronomy contains the very extensive program
<emphasis>KStars</emphasis> which shows the starry night sky with some 10
000 objects. The application
<emphasis>Kalzium</emphasis> belongs to Chemistry category, and offers an
informative and clear presentation of the Periodic Table of the Elements.
In the Languages section are many programs that let you practise a
specific language, or that help you to learn expressions in other
languages.
<emphasis>KHangMan</emphasis> and
<emphasis>KMessedWords</emphasis> are games which let children learn new
words while playing. In the Mathematics category, we find
<emphasis>KGeo</emphasis>, a program for the presentation and
construction of geometric drawings.</para>
<para>Here are some more detailed descriptions of some of the
packages:</para>
<variablelist>
<varlistentry>
<term>Ghemical --- Modelling and computing molecules</term>
<listitem>
<para>
<ulink url="http://bioinformatics.org/ghemical/"> Ghemical</ulink> is
a free program for chemistry, which allows you to model and compute
molecules relatively easily.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Tuxpaint --- Painting is fun</term>
<listitem>
<para>
<ulink url="http://www.newbreedsoftware.com/tuxpaint/">
Tuxpaint</ulink> is a free painting program for children.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>GCompris</term>
<listitem>
<para>
<ulink url="http://www.ofset.org/gcompris"> GCompris</ulink> lets a
learner practise various skills. One module lets you practise
reading clocks and telling the time, another offers a simple
vector-based painting program, and a third teaches you where the
different countries are situated in North and South America.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Kalzium</term>
<listitem>
<para>
<ulink url="http://www.kalzium.org/"> Kalzium --- The Periodic Table
of the Elements (PTE)</ulink> allows you navigate the periodic
table. All the known elements are listed simply and clearly, and
more information about the selected element can be shown.</para>
<para>It also offers a view that lets you go back in history, so
that you can see which elements were already known at which point
in time. Another view lets you can select the display according to
the state of matter, so that you may explore which element are
vapour, liquid or solid at which temperatures.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Klicker</term>
<listitem>
<para>
<ulink url="http://www.duskglow.com/personal/software.shtml">
Klicker, the KDE metronome</ulink>, provides visual and sound
beats. It is becoming a more general music helper application with
a tuning helper, a voicing component, a chords trainer and
more.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>KLogoTurtle</term>
<listitem>
<para>
<ulink url="http://edu.kde.org/klogoturtle"> KLogoTurtle</ulink> is a
<ulink url="http://en.wikipedia.org/wiki/Logo_programming_language">
Logo</ulink> interpreter for KDE. It helps to teach computing and
mathematics to beginning programmers.</para>
<para>While Logo is a general programming language, it is
especially well known for its "turtle graphics": programming
concepts are taught by giving instructions that move a marker
called a "turtle" across the screen, drawing lines as it moves.
While many programming languages make it complicated to interact
with graphics on today's sophisticated computers, Logo sees to it
that the learner has an immediately responsive drawing board to
play with.</para>
<para>If you're interested in learning Logo, you should note that
Brian Harvey has made his famous series of three programming texts
freely available for personal use from his homepage. They
are:</para>
<itemizedlist>
<listitem>
<para>
<ulink url="http://www.cs.berkeley.edu/~bh/v1-toc2.html">
Symbolic Computing</ulink>, a Logo programming text that
concentrates on natural language processing rather than the
graphics most people associate with Logo.</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.cs.berkeley.edu/~bh/v2-toc2.html">
Advanced Techniques</ulink>, in which discussions of more
advanced Logo features alternate with sample projects using
those features, with commentary on the structure and style of
each.</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.cs.berkeley.edu/~bh/v3-toc2.html"> Beyond
Programming</ulink>, brief introductions to six college-level
computer science topics.</para>
</listitem>
</itemizedlist>
</listitem>
</varlistentry>
<varlistentry>
<term>KGeo --- Geometry with the mouse</term>
<listitem>
<para>KGeo is a free geometry education program which recently
became part of the
<ulink url="http://edu.kde.org"> KDE Edutainment
project</ulink></para>
<para>When the program first starts, you are presented with the
main window and function panels at its sides. The main window is a
construction board for geometric shapes, complete with a coordinate
system. The function panels are laid out to be clear, and not
overloaded with functions. Apart from the menu, there are five
panels which the user may arrange themselves. Three of these panels
are used for the construction of geometric shapes, another one
contains functions for measuring and calculating lengths, areas,
and so on, and the last one contains functions for moving or
erasing shapes.</para>
<para>When the user works with KGeo, he is always in one of three
modes: drawing, dragging, or tracing. In the drawing mode, you can
draw geometric shapes and their attributes such as points,
triangles, vectors, centres, parallels and angles. By combining
these shapes and drawing methods, you can even construct
reflections, translations or rotations. You can explore the shapes
using tools to measure the circle areas, distances, angles, slopes
or circumferences. All drawing buttons have an information window
that appears when you hover over them with the mouse.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<section>
<title>Resources</title>
<para>There are numerous sources of educational software on the web. Some
starting places are:</para>
<itemizedlist>
<listitem>
<para>
<ulink url="http://www.schoolforge.net/"> SchoolForge</ulink>.
SchoolForge's mission is to unify independent organisations that
advocate, use, and develop open resources for primary and secondary
education.</para>
</listitem>
<listitem>
<para>
<ulink url="http://eduslug.sourceforge.net/index.php">
Edu-SLUG</ulink>, the workspace of the Schools Linux User Group, for
the creation of educational software for South African
schools.</para>
</listitem>
<listitem>
<para>You may find an informal collection of links loosely related to
the
<ulink url="http://del.icio.us/tag/tuxlab"> tuXlab project at
del.icio.us</ulink>, where you may register and post your own
extensions to the list.</para>
</listitem>
</itemizedlist>
</section>
</chapter>
<chapter id="advanced-topics">
<title>Advanced topics</title>
<para>In this section, I will briefly touch on some more advanced topics
that you may want to investigate as you become familiar with your tuXlab.
The notes here serve only as hints. Contact the tuXlab helpline if you want
to explore the ideas here further.</para>
<section id="incorporating-your-linux-lab-into-an-existing-windows-network">
<title>Incorporating your Linux lab into an existing Windows
network</title>
<para>A tuXlab may easily be accommodated within an existing Windows
network. If you want the Windows workstations to double as thin clients
in your tuXlab, see the note about dual booting in
<xref linkend="thin-client-configuration" />. If the tuXlab is a separate
lab, you can set it up as usual, but the second network card in the
classroom server can act as a bridge to the Windows network. Alternately,
only a Wizzy internet proxy can be introduced to an existing Windows lab,
to provide offline internet access. This is outside the scope of the
Shuttleworth Foundation's Open Source mandate, however.</para>
</section>
<section id="community-wans">
<title>Community WANs?</title>
<para>Using affordable wireless technology, it is possible for nearby
schools to create direct links between their tuXlab LANs, binding them
into a WAN without exposing them to the internet or incurring
<acronym>ISP</acronym> costs. Computers at home for teachers or learners
may be connected to the tuXlab
<acronym>LAN</acronym> in the same way. Note that to enable authentication
and security for wireless access, the connection needs to be established
using PPPoE: the Point-to-Point protocol tunnelled over Ethernet. This is
because PPP offers some features that Ethernet doesn't, specifically
authentication and access control.</para>
</section>
<section id="alternate-sources-of-information">
<title>Alternate sources of information</title>
<para>After the resources mentioned in
<xref linkend="steps-involved-in-getting-a-lab" /> and the other schools
in your tuXlab cluster, your local Linux users' group is a good place to
turn with your questions. With some patience, politeness and carefully
formulated questions, these groups are inexhaustible founts of expert
knowledge and assistance. By the time you have run out of questions to
ask, there will be many newbies asking questions that you will be able to
answer! In the Cape region, try the
<ulink url="http://www.clug.org.za/"> Cape Linux Users' Group</ulink>, and
in the North, try
<ulink url="http://www.linux.org.za/glug/"> Gauteng Linux User
Group</ulink>.</para>
</section>
<section id="programming-running-each-other-s-scripts">
<title>Programming, running each other's scripts</title>
<para>While writing programs for your own edification and amusement does
have its own appeal, sooner or later you'll want to share. Here, the
system administrator has a couple of options.</para>
<itemizedlist>
<listitem>
<para>If the home directories of learners on the classroom server are
left world-readable (i.e. everyone, or at least every learner, with
an account on the server is able to see the contents of someone
else's files), then learners need only tell their classmates the
location of their scripts for them to be able to find and run them.
As long as they don't have write access to each other's directories,
they'll only be able to delete their own files.
<footnote>
<para>Of course, it's always possible to trick someone into running
a script that will damage their data. This is how many viruses
work. Rather than trying to manage this through technology, in the
classroom situation it's probably better to teach learners that
it's better to help one another (and keep backups in case things go
wrong).</para>
</footnote></para>
</listitem>
<listitem>
<para>Alternatively, the system administration team could put scripts
into a directory where everyone has execution rights after auditing
the code themselves. While this may be a bit safer, it is likely to
be an inhibiting factor.</para>
</listitem>
</itemizedlist>
<para>A third possibility is to let learners write CGI scripts that are
called from web pages served by the classroom server. This can be a fun
way to see one's code in use by one's peers.</para>
</section>
</chapter>
<chapter id="problem-solver">
<title>Problem solver</title>
<section id="id51">
<title>Introduction</title>
<para>Welcome to the troubleshooting part of the cookbook. It is aimed at
the tuXlab administrator who needs to find a quick solution to a common
problem.
<footnote>
<para>This section incorporates the
<emphasis>tuXlab Troubleshooting Guide</emphasis> by Jonathan Carter
(version 1.0, December 2004).</para>
</footnote></para>
<para>Administrators are encouraged to involve their entire computer
committee when troubleshooting issues. This will facilitate a skill
transfer process that will improve the sustainability factor of your
tuXlab.</para>
<section id="sections">
<title>Sections</title>
<section id="basic-overview">
<title>Basic overview</title>
<para>In this section, this guide provides a basic overview of how
the tuXlab works on both the hardware and the software side, which
should give you at least a vague idea of where the problem might
lie.</para>
</section>
<section id="troubleshooting-problems">
<title>Troubleshooting problems</title>
<para>In
<xref linkend="troubleshooting-common-tuxlab-problems" />, problems
are listed by symptom, which allows you to quickly find the section
relevant to you. Most of explanations in this section refer to common
tasks performed by tuXlab administrators. Instead of explaining these
tasks in every part, it refers to the
<xref linkend="troubleshooting-reference" />, where you can also find
a walk-through for the
<filename>lts.conf</filename> file.</para>
</section>
<section id="known-issues">
<title>Known issues</title>
<para>In this section, you can find more information on known issues
that need to be worked around. This will typically be issues that
need to be solved by the developers of some software package
installed in a tuXlab, or limitations of the hardware in use.</para>
</section>
<section id="what-to-do-when-you-get-stuck">
<title>What to do when you get stuck</title>
<para>
<xref linkend="further-reading" /> contains an explanation of the
tuXlab support process, so that the tuXlab administrator knows when
to contact the appropriate person/organisation.</para>
<para>If anything in this document is unclear, remember that you may
phone the tuXlab help desk on 0860 67 4357 for further information
and explanations. They will also be able to log requests if you need
any forms (such as the hardware order form or a tuXlab audit
form).</para>
</section>
</section>
</section>
<section id="id54">
<title>Basic overview</title>
<section id="tuxlab-network-topology">
<title>TuXlab Network Topology</title>
<para>Your tuXlab uses a star topology. This means that every thin
client connects directly to the switch, giving it a fast connection to
the tuXlab server. In other topologies, such as ring topologies,
messages are passed on from computer to computer. Star topologies are
the fastest, and are best suited for thin client computers.</para>
<para>In the diagram below, you will notice that all the thin clients,
as well as the server, connect to the switch using CAT-5 cable. The
server connects to a special high-speed port on the switch, called the
"Gigabit" port. It has ten times the data throughput of the other
ports, allowing computers to have fast access to the server. This is
necessary because all the clients are constantly talking to the server,
and not to each other.</para>
<para>If your lab has an internet or e-mail setup, your server will
also be connected to a
<emphasis>gateway</emphasis> computer. This computer will dial up at
night to collect your email and off-line content. The gateway computer
will have a modem attached, that converts the sounds from your phone
line to digital signals that your computer can understand, and
vice-versa.</para>
<para>With troubleshooting, more than half the work is actually
identifying the problem. Once you have a good overview of how things
fit together, it is easier to locate the cause of the problem.</para>
<para>Thin clients rely on a network connection to work, so if
<emphasis>all</emphasis> the computers fail to start up, you might want
to check if the networking switch is turned on, or that the server is
properly connected to a switch. If only one computer fails to start, it
might be a problem with the cable connecting that computer to the
switch. To make sure of this, plug this cable into a computer that
starts successfully. If it stops working while using this cable and
resumes working normally when the original cable is replaced, you know
that the problem lies with the cable.</para>
<para>To fix the cable, you can try crimping the cable ends again.
Examine both the switch end and the workstation end of the cable,
making sure that all the copper wires in the CAT-5 cable are pushed up
right to the end of the cable. If you notice something wrong, cut the
cable a couple of centimetres beyond the RJ-45 jack, and proceed as in
<xref linkend="building-the-network" /></para>
<para>XXX: diagram</para>
</section>
<section id="thin-client-startup-process">
<title>Thin client startup process</title>
<itemizedlist>
<listitem>
<para>As soon as you switch on a thin client, it does a Power On
Self Test (
<acronym>POST</acronym>). This is the part where you normally see
numbers counting, and a prompt to press
<keycap>F1</keycap>,
<keycap>F2</keycap>, or
<keycap>DEL</keycap> to enter setup.</para>
</listitem>
<listitem>
<para>After the
<acronym>POST</acronym> is completed, control is given over to your
network card's boot
<acronym>PROM</acronym> (Programmable Read-Only Memory). This is a
small piece of memory on the network card that allows a computer to
boot from the network. The two methods of booting off the network
are called
<emphasis role="strong">Etherboot</emphasis> and
<emphasis role="strong">
<acronym>PXE</acronym>
</emphasis> (Pre-boot eXecution Environment). If you see one of
these words, then your network card is configured.</para>
</listitem>
<listitem>
<para>If your network card detects a connection to a switch, it
will attempt to search for the server using
<acronym>DHCP</acronym>.
<acronym>DHCP</acronym> is the thin client's way of screaming "I am
here! Please find me! Give me an address so that I can boot up!"
The server will then give the thin client an address, called an IP
(Internet Protocol) address. If a thin client is stuck at this
point, it often means that the switch is on, but the server doesn't
respond, or is not plugged in, or
<acronym>DHCP</acronym> is not running on the server.</para>
</listitem>
<listitem>
<para>
<acronym>DHCP</acronym> tells the thin client that it should use FTP
(File Transfer Protocol) to download the Linux kernel (a file
called
<filename>vmlinuz.ltsp</filename>) from the server. If a thin
client gets stuck here, it's often a problem with the FTP server or
a firewall blocking the FTP port. Perhaps the FTP server is not
being started automatically?</para>
</listitem>
<listitem>
<para>The next step is to gain access to a filesystem on the server
over
<acronym>NFS</acronym> (Network File System). This is the filesystem
that all thin clients use to boot Linux after the kernel load, and
can be found on the server at
<filename>/opt/ltsp/i386</filename>.</para>
</listitem>
<listitem>
<para>XDMCP is the X Display Manager Copier. It sends the graphical
user interface (GUI) from the server to your thin client. If XDPCP
doesn't start, it's often because GDM (Gnome Display Manager) isn't
starting up. This is normally where the problem lies if you get a
grey screen with an X cursor.</para>
</listitem>
</itemizedlist>
</section>
</section>
<section id="troubleshooting-common-tuxlab-problems">
<title>Troubleshooting common tuXlab problems</title>
<section id="thin-client-stops-at-searching-for-dhcp">
<title>Thin client stops at "Searching for
<acronym>DHCP</acronym> "</title>
<section id="symptom">
<title>Symptom</title>
<para>Thin client stops at "Searching for
<acronym>DHCP</acronym>...".</para>
<para>Possible causes:</para>
<orderedlist>
<listitem>
<para>
<acronym>DHCP</acronym> server not running</para>
</listitem>
<listitem>
<para>Server not connected to switch (either the cable is not
plugged in, or it's faulty)</para>
</listitem>
<listitem>
<para>TuXlab server not powered up</para>
</listitem>
</orderedlist>
</section>
<section id="solutions">
<title>Solutions</title>
<orderedlist>
<listitem>
<para>If the
<acronym>DHCP</acronym> server isn't running, you can restart it
by opening a terminal, logging in as root, and then typing in the
following:</para>
<screen>
# /etc/init.d/dhcpd restart
Stopping DHCPD [FAILED]
Starting DHCPD [SUCCESS]
</screen>
<para>In the transcript above, you'll notice that the attempt to
stop the
<acronym>DHCP</acronym> server failed. This means that it wasn't
running when you attempted to boot.</para>
</listitem>
<listitem>
<para>Check if the green light is burning on the network card on
the server. You can also check for a connection on the switch on
the appropriate port. In some cases, it works better if the
server is connected to a specific port (some switches have
<emphasis>two</emphasis> gigabit slots). If only one thin client
has this symptom, check that the connection light is burning on
the network card. Sometimes all that's needed is to press the
"Esc" button on the thin client's keyboard.</para>
</listitem>
<listitem>
<para>Check that the server is powered up. If the previous steps
failed to solve your problem, attach a display, keyboard and
mouse to your server to see any possible error messages.</para>
</listitem>
</orderedlist>
</section>
</section>
<section id="thin-client-stops-at-loading-vmlinuz-ltsp">
<title>Thin client stops at "Loading vmlinuz.ltsp..."</title>
<section id="id55">
<title>Symptom</title>
<para>Thin client says "Loading vmlinuz.ltsp..." then stops.</para>
<para>Possible causes:</para>
<orderedlist>
<listitem>
<para>
<acronym>TFTP</acronym> Server is not running</para>
</listitem>
<listitem>
<para>Firewall is blocking
<acronym>TFTP</acronym> port</para>
</listitem>
</orderedlist>
</section>
<section id="id56">
<title>Solutions</title>
<orderedlist>
<listitem>
<para>Trivial File Transport Protocol (
<acronym>TFTP</acronym>) is used to download the Linux kernel to
the thin client. It is started by a service called
<command>xinetd</command>. Try to restart the server as
root:</para>
<screen>
# /etc/init.d/xinetd restart
Stopping xinet [SUCCESS]
Starting xinetd [SUCCESS]
</screen>
</listitem>
<listitem>
<para>Disable the firewall (as described in section XXX).
Otherwise, you need to reconfigure your firewall to open the
<acronym>TFTP</acronym> port.</para>
<para>
<emphasis role="strong">Note</emphasis>: If your classroom server
connects directly to the internet (without using a gateway
machine), the firewall needs to be enabled. This will only be the
case in a non-standard tuXlab that you may have modified
yourself. Normally, the classroom server will not connect
directly to the internet, but will go through a Wizzy
server.</para>
</listitem>
</orderedlist>
</section>
</section>
<section id="thin-clients-have-grey-screen-showing-only-an-x-cursor">
<title>Thin clients have grey screen showing only an X cursor</title>
<section id="id57">
<title>Symptom</title>
<para>Thin clients display grey screen with an X for a mouse pointer
instead of login screen.</para>
<para>Possible causes:</para>
<orderedlist>
<listitem>
<para>XDMCP is disabled</para>
</listitem>
<listitem>
<para>GDM is not running</para>
</listitem>
<listitem>
<para>Thin clients are connecting to wrong server</para>
</listitem>
</orderedlist>
</section>
<section id="id58">
<title>Solutions</title>
<orderedlist>
<listitem>
<para>Check if XDMCP is enabled. To do this, go to the server
(you may have to connect a display, keyboard and mouse), and
click on the main menu button on the bottom of the screen. Go to
the
<emphasis>System Settings</emphasis> menu, and choose "Login" to
modify your login settings. You will have to enter the root
password. Then, click on the "XDMCP" tab, and ensure that the box
that says "enabled" is selected.</para>
</listitem>
<listitem>
<para>Check if GDM is running. You can gain access to the server
by using a secure shell from one of the thin clients (refer to
<xref linkend="using-a-secure-shell-from-one-of-the-thin-clients" />).
To check if GDM is running (once logged in), type:</para>
<screen>
# ps -e | grep " .dm"
</screen>
<para>If GDM is running, you will see an output similar to
this:</para>
<screen>
1973 ? 00:00:00 gdm
3226 ? 00:00:00 gdm
</screen>
<para>If GDM is not running, or if you'd like to restart GDM, you
can type:</para>
<screen>
# gdm-safe-restart
</screen>
</listitem>
<listitem>
<para>The server to be used for LTS (Linux Terminal Services) is
specified in the
<filename>lts.conf</filename> file using the "server" directive.
This value is normally
<literal>192.168.0.254</literal>, but may be different depending
on your specific setup:</para>
<screen>
# from lts.conf:
server = 192.168.0.254
</screen>
<para>If you have more than one tuXlab server, or if you have
more than one computer network in your school, then this address
might have to be slightly different.</para>
</listitem>
</orderedlist>
</section>
</section>
<section id="thin-client-displays-message-link-cable-error">
<title>Thin client displays message "Link cable error"</title>
<section id="id59">
<title>Symptom</title>
<para>Thin client does not connect, and complains about cable
error.</para>
<para>Possible causes:</para>
<orderedlist>
<listitem>
<para>Networking switch is switched off (in which case
<emphasis>no</emphasis> clients will be able to connect), or
faulty</para>
</listitem>
<listitem>
<para>Cable is not properly crimped</para>
</listitem>
<listitem>
<para>Cable is broken at some point</para>
</listitem>
</orderedlist>
</section>
<section id="id60">
<title>Solutions</title>
<orderedlist>
<listitem>
<para>Check that the switch is powered up. If none of the lights
are on, or they don't flash, then the switch might be faulty. In
this case you need to consult with neighbouring schools and, if
necessary, the tuXlab help desk. If the switch is less than a
year old, then it is still under guarantee, and it needs to go
back to its supplier. The Shuttleworth Foundation will arrange a
loan switch, if possible.</para>
</listitem>
<listitem>
<para>If the cable isn't properly crimped, you need to cut the
network point off, and re-crimp it. If you do not have a crimping
tool of your own, consult with a neighbouring school.</para>
</listitem>
<listitem>
<para>If the cable is damaged at any point, it needs to be
replaced.</para>
</listitem>
</orderedlist>
</section>
</section>
<section id="thin-client-screen-goes-black-or-fuzzy-at-startup">
<title>Thin client screen goes black or fuzzy at startup</title>
<section id="id61">
<title>Symptom</title>
<para>Thin client starts up normally, and displays text on screen,
but as soon as the graphical login manager starts, the screen goes
blank or fuzzy.</para>
</section>
<section id="possible-causes">
<title>Possible causes</title>
<orderedlist>
<listitem>
<para>Display resolution is set too high</para>
</listitem>
<listitem>
<para>Thin client is using incorrect display driver</para>
</listitem>
</orderedlist>
</section>
<section id="solution">
<title>Solution</title>
<orderedlist>
<listitem>
<para>Some screens have trouble displaying resolutions of
1024x768, and you might need to set it down to 800x600. We do not
recommend using 640x480, and if it can only handle that
resolution, we consider it faulty.</para>
</listitem>
<listitem>
<para>To change to the correct display driver, you need to know
which type of display card the thin client has. The best way to
determine this is to open up the box and take a peek. The name of
the card will be written on a black chip on the display card. If
it's an on-board card, it will often be the chip closest to where
you plug in the monitor. [[XXX: A couple of example images and
names would be cool.]]</para>
</listitem>
</orderedlist>
<section id="how-to-change-the-resolution-and-display-driver">
<title>How to change the resolution and display driver</title>
<para>Thin client settings are all stored in a file called
<filename>lts.conf</filename>. The full path to this file on the
server is:</para>
<screen>
/opt/ltsp/i386/etc/lts.conf
</screen>
<para>You can edit this file with a plain-text editor of your
choice (such as
<command>vim</command>,
<command>gedit</command>,
<command>kate</command>, etc.). At the very bottom of this file,
you can configure individual thin clients such as the following
example:</para>
<screen>
[A1:00:08:53:F1:01]
XSERVER = cirrus
X_MODE_0 = 800x600
</screen>
<para>The line in brackets is the thin client's unique network
address. This address is called a
<acronym>MAC</acronym> address, and is determined by the network
card. You can find out what the
<acronym>MAC</acronym> address of a workstation is by pressing
<keycombo>
<keycap>CTRL</keycap>
<keycap>ALT</keycap>
<keycap>F2</keycap>
</keycombo> on the thin client to get a text console terminal
session, and then typing in:</para>
<screen>
# ifconfig
</screen>
<para>This will give you information such as the following:</para>
<screen>
eth0 Link encap:Ethernet HWaddr 00:10:A4:7B:A7:CC
inet addr:192.168.0.50 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x4c00
</screen>
<para>In the above, the
<acronym>MAC</acronym> address is called HWaddr, and is
<literal>00:10:A4:7B:A7:CC</literal>.</para>
<para>After saving the
<filename>lts.conf</filename> file on the server, you can press
<keycombo>
<keycap>CTRL</keycap>
<keycap>ALT</keycap>
<keycap>F1</keycap>
</keycombo> (to go back to the graphical console), and then
<keycombo>
<keycap>CTRL</keycap>
<keycap>ALT</keycap>
<keycap>BACKSPACE</keycap>
</keycombo> (to restart the X server) to test your setting.</para>
<para>The
<literal>XSERVER</literal> directive specifies what driver this
machine should be using. In this case, it's a generic Cirrus Logic
display card. If all fails, you might want to try a
<literal>vesa</literal> driver, which is a very generic display
driver that should work with most display cards.</para>
<para>The X_MODE_0 directive specifies which resolution this thin
client should use. If the resolution is too high, text will become
too small. Your ideal resolution should be 1024x768, followed by
800x600.</para>
</section>
</section>
</section>
<section id="thin-client-freezes-reboots-regularly">
<title>Thin client freezes / reboots regularly</title>
<section id="id62">
<title>Symptom</title>
<para>Thin clients kicks user out or freezes when under load,
especially when using software such as Mozilla or
OpenOffice.org.</para>
</section>
<section id="id63">
<title>Possible causes</title>
<orderedlist>
<listitem>
<para>Thin client runs out of memory</para>
</listitem>
<listitem>
<para>Thin client may contain faulty
<acronym>RAM</acronym> modules</para>
</listitem>
<listitem>
<para>Thin client may have cooling problems</para>
</listitem>
</orderedlist>
</section>
<section id="id64">
<title>Solution</title>
<orderedlist>
<listitem>
<para>Enable swap over
<acronym>NFS</acronym>. In most tuXlabs, this should already be
enabled. To check, press
<keycombo>
<keycap>CTRL</keycap>
<keycap>ALT</keycap>
<keycap>F2</keycap>
</keycombo> (from any thin client after logging in), and then
type:</para>
<screen>
gedit /opt/ltsp/i386/etc/lts.conf
</screen>
<para>Scroll down, and check that the file contains the following
lines under the
<literal>[defaults]</literal> section:</para>
<screen>
ENABLE_NFS_SWAP = Y
SWAPFILE_SIZE = 32m
</screen>
<para>Swap file size should be a minimum of 8MB, but at least
16MB is recommended. Since we have lots of disk space on the
server, we can make it 32MB. When a thin client runs short on
memory, it will use swap space over the network system to avoid
running into problems.</para>
</listitem>
<listitem>
<para>Check for faulty
<acronym>RAM</acronym> modules. The best way to do this is to
remove the memory modules from one thin client, and swap it with
another. If the other thin client gives problems, then you know
it is due to faulty
<acronym>RAM</acronym>.</para>
</listitem>
<listitem>
<para>Check the cooling of thin client. If the
<acronym>CPU</acronym> overheats or there are critical fans that
are faulty, then it needs to be replaced.</para>
</listitem>
</orderedlist>
</section>
</section>
<section id="mouse-doesn-t-move">
<title>Mouse doesn't move</title>
<section id="id65">
<title>Symptom</title>
<para>Mouse is stuck, and doesn't move at all.</para>
</section>
<section id="id66">
<title>Possible causes</title>
<orderedlist>
<listitem>
<para>Incorrect mouse type specified in
<filename>lts.conf</filename> file</para>
</listitem>
<listitem>
<para>Mouse plugged into incorrect port</para>
</listitem>
</orderedlist>
</section>
<section id="id67">
<title>Solution</title>
<orderedlist>
<listitem>
<para>If you replace a PS/2 type mouse with a serial mouse, then
you need to specify this change in your
<filename>lts.conf</filename> file (editing
<filename>lts.conf</filename> is explained in
<xref linkend="thin-client-screen-goes-black-or-fuzzy-at-startup" />).</para>
<para>For serial mice (D-shape connector):</para>
<screen>
[00:08:A1:48:F1:08]
X_MOUSE_PROTOCOL = "microsoft"
X_MOUSE_DEVICE = "/dev/ttyS0"
</screen>
<para>In some cases,
<literal>ttyS0</literal> might have to be
<literal>ttyS1</literal>. If you have used serial mice in Windows
before, then you will know
<literal>ttyS0</literal> as
<literal>com1</literal> and
<literal>ttyS1</literal> as
<literal>com2</literal>.</para>
<para>For PS/2 mice (small, round connector):</para>
<screen>
X_MOUSE_PROTOCOL = "PS/2"
X_MOUSE_DEVICE = "/dev/psaux"
</screen>
<para>If it's a PS/2 scroll mouse, you can change "PS/2" to
"IMPS/2", although this might not work on all
configurations.</para>
</listitem>
<listitem>
<para>Check that the mouse and keyboard are plugged into the
correct port. On most computers, the keyboard should be plugged
into the bottom socket (purple), while the mouse is plugged into
the top socket (green).</para>
</listitem>
</orderedlist>
</section>
</section>
<section id="keyboard-doesn-t-work">
<title>Keyboard doesn't work</title>
<section id="id68">
<title>Symptom</title>
<para>Keyboard is dead.</para>
</section>
<section id="id69">
<title>Possible causes</title>
<orderedlist>
<listitem>
<para>Keyboard is damaged</para>
</listitem>
<listitem>
<para>Keyboard is plugged into incorrect socket</para>
</listitem>
</orderedlist>
</section>
<section id="id70">
<title>Solutions</title>
<orderedlist>
<listitem>
<para>Check that the pins on the keyboard are not bent. If the
keyboard is damaged, it should be replaced.</para>
</listitem>
<listitem>
<para>Please refer to step 2 in
<xref linkend="mouse-doesn-t-move" />.</para>
</listitem>
</orderedlist>
</section>
</section>
</section>
<section id="id71">
<title>Known issues</title>
<section id="thin-client-capabilities">
<title>Thin client capabilities</title>
<para>Thin clients, being network computers, have limits on what
they're capable of. It allows easy administration, and maintenance, but
it has the following limitations:</para>
<itemizedlist>
<listitem>
<para>3D graphics are slow/unusable</para>
</listitem>
<listitem>
<para>Full motion video playback is not possible on all the thin
clients at the same time</para>
</listitem>
<listitem>
<para>OpenGL drivers are not available for older display
cards</para>
</listitem>
<listitem>
<para>Software that uses lots of moving graphics do get slow</para>
</listitem>
</itemizedlist>
</section>
<section id="known-software-issues">
<title>Known software issues</title>
<para>Some of the software we install is very new, and may still be
under development. In this section, we list the software that we know
have issues.</para>
<section id="id72">
<title>GCompris</title>
<para>GCompris is a relatively new piece of software, and in some
parts of the program, it might kick you out of the program. GCompris
is a great piece of software, especially with the lower grade
students, we've included it for the parts that do work. We encourage
teachers to inform our help desk of specific GCompris issues. We can
then compile a list of issues experienced, and forward it on to the
GCompris developers.</para>
</section>
<section id="tuxracer-chromium">
<title>Tuxracer, Chromium</title>
<para>These are games that require a 3D graphics or OpenGL graphics.
They are not supported on thin clients and we recommend that you
remove these two games from your system.</para>
<para>To remove Tuxracer and chromium from your system, click on the
main menu button on the bottom of your screen, point to "System
Settings" and choose "Add/Remove Software". There you will have the
option to remove this software under the Games section.</para>
</section>
</section>
</section>
<section id="troubleshooting-reference">
<title>Troubleshooting reference</title>
<section id="how-do-i-get-access-to-a-terminal">
<title>How do I get access to a terminal?</title>
<para>Simply put, a terminal is a place where you can type instructions
for your computer. Terminal access is often the easiest way to adjust a
wide variety of settings in your tuXlab.</para>
<para>There are several ways to gain access to a terminal. In the
following, we'll show a few of the ways.</para>
<section id="opening-a-terminal-screen-from-your-gnome-desktop">
<title>Opening a terminal screen from your GNOME desktop</title>
<para>If you're already logged in, you can right-click on your GNOME
desktop and click on "Open Terminal" or "New Terminal" (depending on
the version of GNOME you are using). This will open a new terminal
window on your desktop.</para>
</section>
<section id="using-a-console-terminal">
<title>Using a console terminal</title>
<para>Sometimes, it's not possible to log in using a normal account
from a thin client machine. If this is the case, you might want to
use a console terminal on the server. In order to do this, you need
to have a display and keyboard attached to the server. To access a
console terminal on the server, press
<keycombo>
<keycap>CTRL</keycap>
<keycap>ALT</keycap>
<keycap>F1</keycap>
</keycombo>. You can then log on as root from there to change
settings. To return back to the graphical user interface, press
<keycombo>
<keycap>CTRL</keycap>
<keycap>ALT</keycap>
<keycap>F7</keycap>
</keycombo>. If you don't have a display and keyboard attached to
your server, and your thin clients can still start up, you might want
to access the server with a secure shell as described in the next
section.</para>
</section>
<section id="using-a-secure-shell-from-one-of-the-thin-clients">
<title>Using a secure shell from one of the thin clients</title>
<para>Thin clients are generally just connections to the server, but
each thin client also runs its own little Linux system (once it has
booted up) that you can use to access the server. To gain access to
the Linux system, press
<keycombo>
<keycap>CTRL</keycap>
<keycap>ALT</keycap>
<keycap>F2</keycap>
</keycombo> on any thin client. To connect to the server from a thin
client, type:</para>
<screen>
# ssh server
The authenticity of host 'server (192.168.0.254)' can't be established.
RSA key fingerprint is 9e:8e:0e:9a:88:b9:a0:1e:0c:80:15:41:54:47:dd:fa.
Are you sure you want to continue connecting (yes/no)?
</screen>
<para>You will then see a message warning you about a RSA key, this
is normal. Type "yes" and press enter. You must then enter the
server's root password and press enter again. When you're done, you
can press
<keycombo>
<keycap>CTRL</keycap>
<keycap>d</keycap>
</keycombo> to exit the secure session, and
<keycombo>
<keycap>ALT</keycap>
<keycap>F1</keycap>
</keycombo> to return to the thin client's graphical user
interface.</para>
</section>
</section>
<section id="how-to-reset-the-root-password">
<title>How to reset the root password</title>
<para>There are two types of users: those who have forgotten their
password, and those that will forget their password. This is often the
case for system administrators as well.</para>
<para>To reset your root password, you'll need:</para>
<itemizedlist>
<listitem>
<para>Physical access to your server. Note well that anyone with
physical access to your server can reset the root password, so take
care to keep it locked up.</para>
</listitem>
<listitem>
<para>A keyboard and display attached to the server.</para>
</listitem>
</itemizedlist>
<para>Resetting your server in 4 easy steps:</para>
<orderedlist>
<listitem>
<para>Restart the server</para>
</listitem>
<listitem>
<para>When the
<command>GRUB</command>
<footnote>
<para>GRUB is the
<emphasis>Grand Unified Bootloader</emphasis>, so called because
various alternatives existed with different strengths and
weaknesses. GRUB was written to try and take the best from them
and make the choice of a bootloader less of an issue.</para>
<para>Briefly, the bootloader is the first software program that
runs when a computer starts. It is responsible for loading and
transferring control to the operating system kernel (see
<xref linkend="what-is-an-operating-system" />). You can read
<ulink url="http://www.gnu.org/software/grub/"> more about GRUB in
the
<acronym>FSF</acronym> software directory.</ulink></para>
</footnote> screen is displayed, press the
<keycap>e</keycap> button on your keyboard, then the
<keycap>Down arrow</keycap> button, then
<keycap>e</keycap> again. Then press the
<keycap>end</keycap> button, type in a comma, a space and the letter
<keycap>s</keycap> (so that it's ", s" at the end of the line) and
press the
<keycap>b</keycap> button twice. This will boot you into single user
mode.</para>
</listitem>
<listitem>
<para>Once the server has started into single user mode, type
in:</para>
<screen>
# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
</screen>
<para>After typing
<command>passwd</command>, enter your password, and then re-enter
it. Your password (or password length) will not be displayed on the
screen for security purposes, in case someone is watching over your
shoulder.</para>
</listitem>
</orderedlist>
</section>
<section id="lts-conf-walkthrough">
<title>
<filename>lts.conf</filename> walk-through</title>
<para>The
<filename>lts.conf</filename> file stores information about your thin
client setup. Generally, thin client settings are detected
automatically. However, there are times when you want to adjust certain
settings manually. Remember to make comments when you change settings
(it will make it easy for other people to troubleshoot the system).
Comments are any lines in your
<filename>lts.conf</filename> file that start with a
<literal>#</literal>.</para>
<section id="the-default-section">
<title>The
<literal>[default]</literal> section</title>
<para>This is where all the default settings are stored that applies
to
<emphasis role="strong">all</emphasis> your thin clients:</para>
<screen>
[default]
SERVER = 192.168.0.254
XSERVER = vesa
#used to be s3, changed to vesa on 10 December 2004 by Jonathan
</screen>
<para>In the section above, the
<acronym>LAN</acronym> IP address of the Linux terminal server is set
to
<literal>192.168.0.254</literal>, and the default display driver for
thin clients is set to
<literal>vesa</literal>. The last line is a comment, which explains
that the setting has changed from
<literal>s3</literal> to
<literal>vesa</literal>. Whenever possible, try to put reasons for
the changes in your comments as well, as well as identifying yourself
and the date of the change.</para>
<screen>
X_MOUSE_PROTOCOL = microsoft
X_MOUSE_DEVICE = /dev/ttyS0
X_kb_Symboles = us(pc101)
X_kb_Layout = us
</screen>
<para>The
<literal>X_MOUSE</literal> and
<literal>X_kb</literal> section sets the default keyboard and mouse
settings for all the thin clients. Refer to
<xref linkend="keyboard-doesn-t-work" /> for more information on
changing pointing device settings.</para>
<screen>
USE_XFS = N
LOCAL_APPS = N
SCREEN_01 = startx
SCREEN_02 = shell
USE_NFS_SWAP = Y
SWAPFILE_SIZE = 24m
</screen>
<variablelist>
<varlistentry>
<term>
<literal>USE_XFS</literal>
</term>
<listitem>
<para>Specifies whether we want to use an X font server or not.
We generally say
<literal>N</literal> for
<literal>no</literal> here.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>LOCAL_APPS</literal>
</term>
<listitem>
<para>Specifies whether we want to use thin clients to run
their own programs. This can be handy if you have powerful thin
clients (Pentium 2 or better), because it takes load off the
server, and can cause programs to run faster. Even though this
can cause huge performance increases, it's lots of work to set
up, and is still quite experimental. Future versions of
<acronym>LTSP</acronym> will use local applications more as it
matures and as hardware improves.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>SCREEN_01</literal> and
<literal>SCREEN_02</literal></term>
<listitem>
<para>These settings explain what we want to run on our thin
clients. In this case, we will run our graphical user interface
on the first screen of our thin clients, while we run a text
mode shell on the second screen. To switch between screens on
the thin clients, press
<literal>CTRL+ALT+F1</literal> for screen 1, and
<literal>CTRL+ALT+F2</literal> for screen 2.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>USE_NFS_SWAP</literal> and
<literal>SWAPFILE_SIZE</literal></term>
<listitem>
<para>These are used to set up swap files for the thin clients
on the server. When a thin client runs out of memory, it will
use disk space on the server for extra swap memory. Enabling
swap over
<acronym>NFS</acronym> greatly improves thin client performance
as well as stability. If
<literal>SWAPFILE_SIZE</literal> is set too high, then there
will be a waste in hard disk space and some loss in
performance. It is recommended that you use a swap file of
8-32MB. 24MB generally works well.</para>
</listitem>
</varlistentry>
</variablelist>
<screen>
RCFILE_01 = usb
RCFILE_02 = floppyd
</screen>
<para>RC (Run Command) files are scripts that are started up when the
thin clients boot.
<command>usb</command> and
<command>floppyd</command> allows thin clients to connect to local
devices using
<emphasis>mtools</emphasis> (a set of programs that allow you to use
floppies formatted as
<acronym>VFAT</acronym>, the Windows disk format, without needing to
mount and unmount them). If your thin clients have floppy drives,
it's strongly recommended that you enable the
<command>floppyd</command> script.</para>
<screen>
SOUND = Y
SOUND_DAEMON = esd
# SOUND_DAEMON = nasd
VOLUME = 75
SMODULE_01 = sb io=0x220 irq=5 dma=1
</screen>
<para>If you want to enable sound on the thin clients, then
<literal>SOUND</literal> needs to be set to
<literal>Y</literal> and it needs to be uncommented.
<literal>SOUND_DAEMON</literal> selects the sound server to be used.
Normally, only one of the two will work. The best way to set it up is
to try the one, and if it doesn't work, try the other one.
<literal>SMODULE_01</literal> selects the driver module you want to
use with the thin client's sound card. Generally,
<literal>sb</literal> will work with most sound cards. [[XXX: How are
the io and irq parameters determined?]]</para>
<screen>
#60 hz resolutions:
X_MODE_0 = 1024x768 65 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
</screen>
<para>You will normally find a whole bunch of mode lines like the one
above in your
<filename>lts.conf</filename> file.
<literal>X_MODE_0</literal> specifies the resolution your thin clients
should use. 1024x768 at 60hz is usually the best choice.</para>
<para>To change the resolution of one specific thin client, you can
refer to it by its
<acronym>MAC</acronym> address:</para>
<screen>
[00:08:A1:F1:EE:01]
X_MODE_0 = 800x600
LOCAL_APPS = N
USE_NFS_SWAP = N
</screen>
<para>The numbers between brackets is the thin client's
<acronym>MAC</acronym> address. This is the unique address of each
thin client determined by the thin client's network card.
<literal>X_MODE_0</literal> specifies the screen resolution.
<literal>LOCAL_APPS</literal> is disabled for this thin client, as
well as swap over
<acronym>NFS</acronym>. Any of the settings in the
<literal>[default]</literal> section can be applied to a specific thin
client as well.</para>
</section>
</section>
</section>
<section id="further-reading">
<title>Further reading</title>
<section id="tuxlab-support-process">
<title>tuXlab support process</title>
<para>The tuXlab support process is fairly simple. The support process
poster in your tuXlab explains the steps:</para>
<orderedlist>
<listitem>
<formalpara>
<title>Inform your computer committee that you have a
problem</title>
<para>It's important that everyone in your computer committee
knows what's going on in your lab. If a representative from
<acronym>SLUG</acronym> or the foundation phones your school, they
will ask to speak to a tuXlab computer lab committee
member.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Open up your logbook and note the problem in your
logbook</title>
<para>This allows you to keep a record of problems that have been
experienced in your lab, along with the solutions. If you or a
school in your cluster experience the same problem again, you'll
have a reference to fall back on.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Allow staff and students and your facilitator to try and
identify what the problem is.</title>
<para>For your tuXlab to be truly sustainable, you need to have
as much local skills as possible. To promote your own skill
levels, you have to try and solve as many problems as you can
yourself.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>Contact the schools in your cluster to find out if they
know a solution to your problem.</title>
<para>If a neighbouring tuXlab family school have experienced a
similar problem, they will be able to assist you with your
problem. If you get stuck, mention your problem at your next
cluster meeting, or phone the schools directly and speak to their
tuXlab committee.</para>
</formalpara>
</listitem>
<listitem>
<formalpara>
<title>If no solution has been found, contact the tuXlab help
desk at 0860 OS HELP (67 4357)</title>
<para>The help desk also keeps track of problems in tuXlabs, as
well as other general requests. You may also phone the help desk
at any time for help on any problem or help that you may need in
your tuXlab. They will provide you with telephonic
support.</para>
</formalpara>
</listitem>
<listitem>
<para>Contact
<acronym>SLUG</acronym>, the Schools Linux Users Group, a volunteer
group who are very much dedicated to the tuXlab project. They can
generally be reached via email. For more information, see
<ulink url="http://www.slug.org.za" />.</para>
<para>These are students and volunteers who assist schools with
setting up their tuXlabs. They also assist schools after the labs
have been installed. In return, they are encouraged via incentive
by the Foundation with training and certification exams.</para>
</listitem>
<listitem>
<para>If no solution was found using these steps, you can contact
Jonathan Carter at the Shuttleworth Foundation on (021) 970
1230.</para>
<para>This is your last resort helpline. If no one else can help
you, you have to phone Jonathan with a detailed explanation of your
problem.</para>
</listitem>
</orderedlist>
<para>If you experience any hardware problems, it's generally a good
idea to skip ahead to step 5 and phone the help desk, since other
tuXlab schools might not always be able to help you there. Most tuXlab
cluster leaders will have spare parts with them, contact your cluster
leader to find out if they have any spares.</para>
</section>
<section id="where-to-source-hardware-from">
<title>Where to source hardware from</title>
<para>If you'd like to buy additional hardware for your tuXlab, or if
you need to replace faulty equipment of which the guarantee has
expired, you can source hardware from the following suppliers:</para>
<section id="additional-server-hardware">
<title>Additional server hardware</title>
<para>Rectron: (021) 555 7111</para>
<para>For better pricing, you may order server hardware from Rectron
via the Shuttleworth Foundation.</para>
</section>
<section id="networking-hardware">
<title>Networking hardware</title>
<para>Scoop distribution: (021) 555 4740 (Neal Andrews)</para>
<para>Scoop distribution supplies networking equipment such as
switches, cabling, crimping tools, RJ-45 connectors and boots.</para>
</section>
<section id="thin-clients">
<title>Thin clients</title>
<para>Additional thin clients can be obtained from the Foundation
using the hardware order form that can be found in the tuXlab starter
pack.</para>
</section>
</section>
<section id="additional-resources">
<title>Additional resources</title>
<para>These are just pointers to sites on the World Wide Web where you
can read more about some of the topics mentioned, and where you can
search for further information.</para>
<section id="google-for-linux">
<title>Google for Linux</title>
<para>Google has a section dedicated to Linux related questions:
<ulink url="http://www.google.com/linux" /></para>
</section>
<section id="ltsp-related">
<title>
<acronym>LTSP</acronym> Related</title>
<itemizedlist>
<listitem>
<para>The
<ulink url="http://www.k12ltsp.org"> K12LTSP project home
page</ulink>.</para>
</listitem>
<listitem>
<para>The
<ulink url="http://www.ltsp.org">
<acronym>LTSP</acronym> project homepage</ulink>. This is the
distribution from which K12LTSP is derived.</para>
</listitem>
<listitem>
<para>The
<ulink url="http://wiki.ltsp.org">
<acronym>LTSP</acronym> Wiki</ulink>. A
<emphasis>wiki</emphasis> is kind of site that's easy for visitors
to edit. The name apparently means "quick" in Hawaiian, and it's
intended to convey the informality of the typical wiki. It's
often used to collect user-contributed documentation.</para>
</listitem>
</itemizedlist>
</section>
<section id="helpful-linux-sites">
<title>Helpful Linux sites</title>
<para>The
<ulink url="http://www.linuxquestions.org"> Linux questions
forum</ulink>, where you may submit questions to be answered by other
members of the community. Remember to
<acronym>RTFM</acronym> first!</para>
<para>
<ulink url="http://www.tldp.org"> The Linux Documentation Project
(TLDP)</ulink>. This is a magnificent collection of documents that
range from short HOWTOs to full-length books on all aspects of Linux
system administration.</para>
</section>
</section>
</section>
</chapter>
<chapter id="getting-the-most-from-your-lab">
<title>Getting the most from your lab</title>
<!-- XXX fill in
<section id="how-to-apply-the-program-in-your-school">
<title>How to apply the program in your school</title>
</section>
<section id="facilitators">
<title>Facilitators</title>
</section>
-->
<section id="software-updates">
<title>Software updates</title>
<para>Newer versions of all the software components of the tuXlab will be
released from time to time. Often this will simply be the result of
ongoing work to improve the software, but from time to time bugs will be
discovered that represent security risks.</para>
<para>As a rule, only tuXlab system administrators will be able to
perform software updates on the classroom server. Care should be taken
when upgrading software, as it is possible to break things by installing
incompatible versions of programs or by uninstalling packages that you
really need.</para>
<para>Not all upgrades fall into the same category, and they should be
approached differently.</para>
<itemizedlist>
<listitem>
<para>There are application upgrades or new installs, when you want
to offer a new program or updated version to your users. This can
usually be done easily using RedHat's package management facilities
(called RPM), and need not impact core system components.</para>
</listitem>
<listitem>
<para>There are upgrades that fix security issues. In a trusted
environment that is not directly exposed to the internet, such as a
tuXlab, many of these will not be as critical as they would be in an
open environment. The risk of upgrading system software on the
classroom server should be weighed up against the importance of the
fix. Another consideration is that support from the other tuXlabs in
your cluster will be more effective if all the labs have the same
configuration, as far as possible.</para>
</listitem>
<listitem>
<para>As long as the Wizzy server functions as it should, its
software should not be upgraded. It should simply keep on running
forever with no need for maintenance. Considerations that should be
kept in mind with the Wizzy server are: it needs to communicate with
a remote counterpart and should therefore remain compatible with it;
it contains customisations that are not part of the distribution's
package management system and that therefore need to be upgraded
manually.</para>
</listitem>
</itemizedlist>
<para>When you do want to upgrade software, there are various ways of
going about it. The two main options are as follows:</para>
<para>In the first place, you can get the source code from the author's
site. In this case, you would have to configure, compile and install it
locally. This should not be necessary unless you have specific reasons to
do it.</para>
<para>In the second place, you can get the precompiled package for the
software from one of RedHat's distribution sites or from a CD-ROM, and
install it using the Gnome desktop (XXX: details). This is the usual way
of working. The RedHat CDs from which the classroom server is installed
contain a huge amount of software, not all of which may be installed from
the outset.</para>
<para>Users who are not system administrators, and who therefore do not
have the right to install software for other users, may still install
software locally by compiling it themselves, and installing to their home
directory. If they do this, they will need to adjust some environment
variables (such as
<literal>PATH</literal> and
<literal>MANPATH</literal>) to include
<filename>~/bin</filename> and
<filename>~/man</filename> if they aren't there already. This can be a
good way to learn about new software without destabilising the system for
other users.</para>
</section>
<section id="expansion">
<title>Expansion</title>
<para>If your tuXlab is fully utilised and well-maintained, the
Shuttleworth Foundation may allocate further workstations to it.</para>
</section>
<section id="other-uses-for-your-lab">
<title>Other uses for your lab</title>
<para>No one will know the needs of your community as well as you, and
the resources (as far as equipment and available skills are concerned)
will vary from school to school. Therefor the following should only be
seen as an example of the kinds of possibilities you may explore, and
should not limit your thinking.</para>
<variablelist>
<varlistentry>
<term>Training</term>
<listitem>
<para>tuXlabs primarily fulfil an educational purpose, and so
training outside the context of the school's curriculum is an
obvious avenue to explore. This can include
<emphasis>extra lessons for learners</emphasis> who are curious and
want to go beyond computer literacy lessons, or basic skills for
those who have trouble keeping up.</para>
<para>In the interests of sustainability,
<emphasis>volunteer training</emphasis> is also very important.
tuXlabs are installed by volunteers, and rely on volunteers for
maintenance and support. The school can recruit them from its
community and the parents of learners, so that those who are
interested are able to assist in the installation of new
tuXlabs.</para>
<para>As part of community outreach, the school can invite
interested
<emphasis>parents</emphasis> to the tuXlab in order to introduce
them to the environment their children are learning to use. Since
the tuXlab software is freely available for installation at home,
this can empower the parents to learn from their children and put
the software to work at home.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Time sharing</term>
<listitem>
<para>If there are other groups who need computers for their
activities, it may be possible for them to share the lab under
supervision.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>School projects</term>
<listitem>
<para>The tuXlab can be used for school projects such as an events
calendar or a school newsletter. There is also Open Source software
available for libraries, and an enterprising computer club could
put the catalogue of the school library on the tuXlab
network.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>General computer literacy</term>
<listitem>
<para>XXX: "Office" stuff -- Word processing, Spreadsheets, ...
Making screenshots Downloading stuff from the internet Organising
your files</para>
</listitem>
</varlistentry>
</variablelist>
</section>
</chapter>
<chapter id="end-matter">
<title>End matter</title>
<para>End matter to be provided?</para>
</chapter>
<chapter id="appendices">
<title>Appendices</title>
<section id="business-plan-template">
<title>Business plan template</title>
<para>The following may be used as a guideline when drawing up a business
plan for your tuXlab. You need to submit a business plan in order to
apply for a tuXlab from the Shuttleworth Foundation. Please feel free to
add any other information you feel is applicable to the application or
business plan.</para>
<section id="section-1-school-information">
<title>Section 1: School information</title>
<para>Please supply some general information about your school.</para>
<itemizedlist>
<listitem>
<para>Background</para>
</listitem>
<listitem>
<para>Mission</para>
</listitem>
<listitem>
<para>Vision</para>
</listitem>
<listitem>
<para>Achievements</para>
</listitem>
</itemizedlist>
</section>
<section id="section-2-goals-and-objectives-for-a-computer-lab-tuxlab-or-other">
<title>Section 2: Goals and objectives for a computer lab (tuXlab or
other)</title>
<itemizedlist>
<listitem>
<para>What are your plans to promote open source software?</para>
</listitem>
<listitem>
<para>How will lab use be integrated into the school
timetable?</para>
</listitem>
<listitem>
<para>What are your plans to involve the community? Please address
issues such as benefits and development opportunities for the
community.</para>
</listitem>
<listitem>
<para>What are your plans regarding staff development using the
computer lab?</para>
</listitem>
</itemizedlist>
</section>
<section id="section-3-state-of-readiness">
<title>Section 3: State of readiness</title>
<itemizedlist>
<listitem>
<para>Please provide a statement of needs, including your current
computer equipment, if any.</para>
</listitem>
<listitem>
<para>Physical infrastructure --- current infrastructure as well as
outstanding requirements (see
<xref linkend="tuxlab-school-criteria" />).</para>
</listitem>
<listitem>
<para>Plan of lab --- i.e. size and layout of room, including
measurements (please supply a diagram).</para>
</listitem>
<listitem>
<para>Do you have a Computer Committee already established?</para>
</listitem>
<listitem>
<para>Who is the Facilitator?</para>
</listitem>
<listitem>
<para>Please detail your roll-out strategy: financial plans and
actual work in measurable terms</para>
</listitem>
</itemizedlist>
</section>
<section id="section-4-opportunities-and-risks">
<title>Section 4: Opportunities and Risks</title>
<itemizedlist>
<listitem>
<para>What are the risks involved for you with establishing a lab?
Address e.g. financial considerations, burglary as factor,
etc.</para>
</listitem>
<listitem>
<para>How will you be addressing possible risks?</para>
</listitem>
<listitem>
<para>What specific opportunities will be created for you if you
have a computer lab.</para>
</listitem>
</itemizedlist>
</section>
<section id="section-5-general">
<title>Section 5: General</title>
<itemizedlist>
<listitem>
<para>How do you plan to sustain the tuXlab? For example, do you
have a network of volunteers, will you be establishing an internet
cafe or service bureau, etc.</para>
</listitem>
<listitem>
<para>What types of skills transfer do you envisage?</para>
</listitem>
</itemizedlist>
<para>Should you require any further assistance please contact:</para>
<address>Casey-Lea Olson Open Source Project Administrator
<phone>Tel. 021 970 1232</phone> |
<fax>Fax. 021 970 1233</fax>
<email>casey@shuttleworthfoundation.org</email></address>
</section>
</section>
<section id="tuxlab-school-criteria">
<title>tuXlab School Criteria</title>
<para>Schools are selected, and the project implementation initiated,
based on fulfilment of the following minimum criteria and
expectations.</para>
<para>The School will be required to:</para>
<itemizedlist>
<listitem>
<para>Complete an initial survey activities;</para>
</listitem>
<listitem>
<para>Submit a business plan including its initial plans to introduce
the tuXlab into school;</para>
</listitem>
<listitem>
<para>Establish a computer committee;</para>
</listitem>
<listitem>
<para>Ensure that a representative participates in the establishment
of two tuXlabs prior to selection, as well as participation in at
least two labs post installation;</para>
</listitem>
<listitem>
<para>Identify a room to house the tuXlab;</para>
</listitem>
<listitem>
<para>Secure the room with mesh window bars, safety gates and an
alarm;</para>
</listitem>
<listitem>
<para>Ensure that the electrical system is suitable and sufficient
electrical points are available;</para>
</listitem>
<listitem>
<para>Install trunking for networking cable;</para>
</listitem>
<listitem>
<para>Provide a cabinet to securely protect server and networking
switch;</para>
</listitem>
<listitem>
<para>Install a telephone line for telephonic support and e-mail
connectivity;</para>
</listitem>
<listitem>
<para>Ensure that desk space and seating is available;</para>
</listitem>
<listitem>
<para>Ensure participation from the educators and learners during the
installation process;</para>
</listitem>
<listitem>
<para>Appoint or employ a facilitator for training and on-site
support for a one-year period;</para>
</listitem>
<listitem>
<para>Actively play a role in the successful operation of the cluster
unit;</para>
</listitem>
<listitem>
<para>Attend a monthly tuXlab meeting; and</para>
</listitem>
<listitem>
<para>Open the tuXlab at least one Saturday of each month for an
"Open day".</para>
</listitem>
</itemizedlist>
<para>Additional criteria may be set for each school.</para>
<para>Based on successful selection, the exact terms of this project will
be outlined in a
<citetitle>Memorandum of Understanding</citetitle>.</para>
<para>Should you have any further queries with regards to the above
requirements, please do not hesitate to contact us.</para>
</section>
<section id="credits">
<title>Credits</title>
<para>This book is a real open source project, and in writing it I have
incorporated work from a number of other people. Here is a short list in
alphabetical order. I'm sure I've missed some people, so please let me
know.</para>
<itemizedlist>
<listitem>
<para>Jonathan Carter, for his excellent
<citetitle>Troubleshooting Guide</citetitle>.</para>
</listitem>
<listitem>
<para>Jason Hudson, for the outline that started off this
book.</para>
</listitem>
<listitem>
<para>Alistair Otter (XXX?) for his tuXlabs book</para>
</listitem>
<listitem>
<para>Andy Rabagliati, for various documents on the
<ulink url="http://wizzy.org/" /> site.</para>
</listitem>
<listitem>
<para>Hilton Theunissen and Casey-Lea Olson, for various policy and
operating procedures documents on the
<ulink url="http://www.shuttleworthfoundation.org" /> site.</para>
</listitem>
</itemizedlist>
</section>
<section id="glossary">
<title>Glossary</title>
<variablelist>
<varlistentry>
<term>Asymmetric Digital Subscriber Line (
<acronym>ADSL</acronym>)</term>
<listitem>
<para>
<acronym>ADSL</acronym> is a technology for transmitting digital
data across normal copper phone lines at high speeds. It is a
short-range technology, requiring subscribers to be within a few
kilometres of the exchange providing the service. It is called
<emphasis>Asymmetric</emphasis> because download speeds are
configured to be far higher than upload speeds (you can receive
more quickly than you can send).</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Application Programming Interface (API)</term>
<listitem>
<para>Just as a program has a range of menus, icons and buttons
with which a user can control it, it can have a set of method calls
and data structures that can be used by other programs to control
it. This is the
<emphasis>API</emphasis>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Basic In/Out System (
<acronym>BIOS</acronym>)</term>
<listitem>
<para>A small program in non-volatile storage that is executed
immediately after a computer is powered up. Normally, it passes
control to the boot loader of the selected boot media as soon as
possible. However, it also displays some diagnostic information
while executing, including a prompt to enter configuration mode.
While in configuration mode, you may set various basic properties
of the computer, such as the time of the system clock and the
selected boot media (e.g. CD-ROM, hard disk, or network).</para>
</listitem>
</varlistentry>
<varlistentry>
<term>boot</term>
<listitem>
<para>When a computer is powered up, control immediately passes to
the
<acronym>BIOS</acronym>. The
<acronym>BIOS</acronym> finds the program code that should be
executed to continue the startup process, until the operating
system is up and running. The whole procedure is called
<emphasis>booting up</emphasis>, from the expression "pulling
yourself up by your bootlaces". Picture a cartoon figure on flat
land, grabbing hold of his bootlaces and pulling himself up into
the air until he's flying. A computer manages something similar,
when it changes from an inert lump of plastic to a running
system.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Central Processing Unit (
<acronym>CPU</acronym>)</term>
<listitem>
<para>The
<acronym>CPU</acronym> is the core of the computer. It's one of the
smaller pieces, consisting of a flat square of silicon, but it
contains most of the computer's complexity, in the form of millions
of transistors. When the computer is executing programs, all of the
instructions as well as the data are fetched from
<acronym>RAM</acronym> and processed by the
<acronym>CPU</acronym>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Common Gateway Interface (CGI)</term>
<listitem>
<para>This is a specification for calling scripts that are
triggered through the web. The CGI standard specifies what data
must be passed to the script.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>daemon</term>
<listitem>
<para>A program that runs on a server, waiting for requests and
servicing them. The program runs permanently, as long as the
service should be offered.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Document Object Model (
<acronym>DOM</acronym>)</term>
<listitem>
<para>When a web browser parses an HTML page, it doesn't just write
out text to the screen and have done with it. It needs to hold on
to the entire structure in order to be able to rewrite it using
Javascript, changing parts of the page in-place and reflowing the
resulting document immediately. This internal structure is called
the
<emphasis>Document Object Model</emphasis>. You can read all about
it at the World Wide Web Consortium's
<ulink url="http://www.w3.org/DOM/"> Document Object Model
page</ulink>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Domain Name System (
<acronym>DNS</acronym>)</term>
<listitem>
<para>The Domain Name System is part of the core infrastructure of
the internet. It consists of a massive globally distributed
database that matches IP addresses (e.g.
<literal>216.239.57.99</literal>) to domain names that humans like
to remember (e.g.
<literal>google.com</literal>). As long as they keep to the rules,
anyone can run a
<acronym>DNS</acronym> server to resolve local address and to cache
global addresses. No
<acronym>DNS</acronym> server needs to store
<emphasis>all</emphasis> the domain names on earth: the job is
distributed among ISPs who each take responsibility for different
sections of the namespace. If your local nameserver doesn't know an
IP address, it knows who to ask to get an answer.</para>
<para>If
<acronym>DNS</acronym> is unavailable, all the services that depend
on it (such as web browsing and email) don't work.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Dynamic Host Configuration Protocol (
<acronym>DHCP</acronym>)</term>
<listitem>
<para>See
<xref linkend="dynamic-host-configuration-protocol" />.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Etherboot</term>
<listitem>
<para>See
<acronym>PXE</acronym> in
<xref linkend="glossary" />.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Internet Service Provider (
<acronym>ISP</acronym>)</term>
<listitem>
<para>A business which provides internet access to its customers.
The nature of this service may vary widely, from dialup access and
email for home users to wireless broadband and website hosting for
big media companies and everything in between.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>platform independence</term>
<listitem>
<para>A
<emphasis>platform</emphasis> is a short name for the entire
software environment which a specific program requires in order to
run. Programs may target an operating system (the Windows, Linux or
Macintosh platforms), or a virtual machine (the Java platform,
which is available across operating systems). Increasingly, web
applications such as Google's
<ulink url="http://gmail.com"> Gmail</ulink> email service target the
<emphasis>web browser</emphasis> as platform.</para>
<para>When a program is capable of being run on many different
platforms, it is called
<emphasis>cross-platform</emphasis>. In this case, it either needs
to be rather self-contained, not making use of any special
capabilities of any specific platform, or it needs to contain
alternative implementations for all the platforms it caters
for.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Power On Self Test (
<acronym>POST</acronym>)</term>
<listitem>
<para>The
<acronym>POST</acronym> is a series of hardcoded self-tests that a
computer's
<acronym>BIOS</acronym> performs to see whether basic resources such
as its
<acronym>CPU</acronym>, memory, and keyboard are present and
functional.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Pre-boot eXecution Environment (
<acronym>PXE</acronym>)</term>
<listitem>
<para>A small program on the network card that allows a computer to
boot from the network. The
<acronym>PXE</acronym> takes care of finding a server from which to
boot, and transferring the boot loader from the server to the
client across the network.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Programmable
<acronym>ROM</acronym> (
<acronym>PROM</acronym>)</term>
<listitem>
<para>This is a kind of memory that can be written exactly once.
After it's been written, its contents is fixed. It's generally used
for things like network cards with the facility to boot from the
network. Such cards can be used in many different environments,
requiring different software. However, once deployed in some
environment, it normally stays there. Therefor the required
software can be written to a
<acronym>PROM</acronym> on the card, effectively locking down the
card to the deployed environment.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Media Access Control address (
<acronym>MAC</acronym> address)</term>
<listitem>
<para>In computer networking, a
<acronym>MAC</acronym> address is a code on most forms of networking
equipment that allows for that device to be uniquely
identified.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Network File System (
<acronym>NFS</acronym>)</term>
<listitem>
<para>A local filesystem reads data from a hard disk.
<acronym>NFS</acronym> is a protocol that allows a remote filesystem
to be mounted on a path of the local filesystem, so that data read
from files on that path is not read from a local disk, but from a
server on the network.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>netmask</term>
<listitem>
<para>In
<xref linkend="tcp-ip" /> networking, the
<emphasis>netmask</emphasis> specifies all the IP addresses that
belong to a particular network.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<acronym>RAM</acronym> disk</term>
<listitem>
<para>A physical hard disk stores data on magnetic platters. A
<acronym>RAM</acronym> disk emulates a hard disk using the
computer's memory. Whereas a hard disk stores data permanently
until it is rewritten, a
<acronym>RAM</acronym> disk only exists as a running program, and
goes away when the program stops or the computer is powered
down.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Random Access Memory (
<acronym>RAM</acronym>)</term>
<listitem>
<para>Memory that stores code and data only as long as the computer
is powered up. At the first hint of a power interruption,
<acronym>RAM</acronym> becomes as blank as a beach washed clean by
the tide.
<acronym>RAM</acronym> can be written to, and during execution,
programs are continuously rewriting its contents.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Read Only Memory (
<acronym>ROM</acronym>)</term>
<listitem>
<para>Memory that stores code and data permanently, whether or not
the workstation is powered up. It cannot be written to: every time
it's read, it's exactly the same.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Read the FINE Manual (
<acronym>RTFM</acronym>)</term>
<listitem>
<para>Linux is a
<emphasis>self-documenting</emphasis> system. All Linux programs
come with technical documentation, and most commands accept a
<literal>--help</literal> option that will start you off. The
information is sometimes cryptic, or just very dense, but if you
don't read it two, three, four or five times, you'll find yourself
asking the same questions again and again, and never progressing
beyond the basics.</para>
<para>You'll also find that people answer your questions with a
terse "
<acronym>RTFM</acronym>!", meaning that the answer is right there
in the manual. Don't take offence, look it up.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>root</term>
<listitem>
<para>Linux systems loosely use a
<emphasis>tree</emphasis> metaphor to explain some aspects of their
structure. So, for example, the user who is the system
administrator, with all privileges to make or break the system, is
the
<emphasis role="strong">root</emphasis> user. The
<literal>root</literal> user can create other users and groups with
more limited privileges, like the branches of a tree that are
separate and thinner than the trunk.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>root filesystem</term>
<listitem>
<para>The filesystem is an hierarchical tree structure. The
directory which contains all the others is called the
<emphasis role="strong">root</emphasis>, and is written like this:
<filename>/</filename>. This is a subdirectory of the root
directory:
<filename>/etc</filename>. This is a file in that subdirectory:
<filename>/etc/hosts</filename>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>shell</term>
<listitem>
<para>Another metaphor used to express the structure of a Linux
system is that of a nut containing a kernel. The kernel is hidden
inside, it is surrounded by a
<emphasis>shell</emphasis>. As user you can't interact with the
kernel directly, you interact with a
<emphasis>shell</emphasis> program. This is a program which accepts
commands and gives feedback, all via a textual command line
interface. The shell has a number of builtin commands, but it also
does job control, starting and stopping programs that run under its
control.</para>
<para>The shell has a full complement of flow control structures,
so that it can be used to write programs. These are called shell
scripts. Shell scripts are most often used to coordinate the
execution of other programs.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Simple Mail Transfer Protocol (
<acronym>SMTP</acronym>)</term>
<listitem>
<para>When you send an email, your mail server looks at the headers
of the mail to see where it should be delivered. It then uses DNS
to look up the IP address of the mail server on the receiving end.
When it knows whom to contact, it starts an
<acronym>SMTP</acronym> conversation with the remote mailserver. It
asks the server what version of the protocol it supports (so that
it knows how to encode the mail, if necessary) and whether the
server is accepting mail for the user you want to reach. When the
two servers have gotten to know one another, the mail is
transferred and queued for the remote user to read.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>symbolic links</term>
<listitem>
<para>A file can only be stored in one place on a disk. If you want
it to appear to be in other places as well, you can make a
<emphasis>symbolic link</emphasis> from there to the real location
of the file. By most commands, the link will be transparent: it
will be treated exactly as though the file really exists in that
location.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
</chapter>
</book>
|