This file is indexed.

/usr/share/doc/live-manual/html/live-manual.en.html is in live-manual-html 1:3.0.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>
    Debian Live Manual
  </title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <meta name="dc.title" content="Debian Live Manual">
  <meta name="dc.author" content="Debian Live Project &lt;debian-live@lists.debian.org&gt;">
  <meta name="dc.publisher" content="Debian Live Project &lt;debian-live@lists.debian.org&gt;">
  <meta name="dc.date" content="2013-04-30">
  <meta name="dc.rights" content="Copyright (C) 2006-2013 Debian Live Project;&lt;br&gt; License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.&lt;br&gt;&lt;br&gt;This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br&gt;&lt;br&gt;You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. &lt;br&gt;&lt;br&gt;The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3 file.">

  <meta name="generator" content="SiSU 3.3.2 of 2012w26/6 (2012-06-30) (n*x and Ruby!)">
    <link rel="generator" href="http://www.sisudoc.org/">
  <link rel="shortcut icon" href="../_sisu/image/rb7.ico">

  <link rel="stylesheet" href="../_sisu/css/html.css" type="text/css">  <link rel="stylesheet" href="../../_sisu/css/html.css" type="text/css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#003090" lang="en" xml:lang="en">
<a name="top" id="top"></a>
<a name="up" id="up"></a>
<a name="start" id="start"></a>


<p></p>

<center>

</center>


<p class="small_left">Rights: Copyright <sup>©</sup>  2006-2013 Debian Live Project;<br> License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br><br>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<br><br>You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. <br><br>The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3 file.</p>
<p></p>

<br>

<h1 class="toc">
    <b><a href="#1">Debian Live Manual</a></b>
  </h1>

<h2 class="toc">
    <a href="#2">About</a>
  </h2>

<h4 class="toc">
    <a href="#3">1. About this manual</a>
  </h4>

<h5 class="toc">
    <a href="#7">1.1 For the impatient</a>
  </h5>

<h5 class="toc">
    <a href="#11">1.2 Terms</a>
  </h5>

<h5 class="toc">
    <a href="#29">1.3 Authors</a>
  </h5>

<h5 class="toc">
    <a href="#44">1.4 Contributing to this document</a>
  </h5>

<h6 class="toc">
    <a href="#46">1.4.1 Applying changes</a>
  </h6>

<h6 class="toc">
    <a href="#58">1.4.2 Translation</a>
  </h6>

<h4 class="toc">
    <a href="#68">2. About the Debian Live Project</a>
  </h4>

<h5 class="toc">
    <a href="#69">2.1 Motivation</a>
  </h5>

<h6 class="toc">
    <a href="#70">2.1.1 What is wrong with current live systems</a>
  </h6>

<h6 class="toc">
    <a href="#80">2.1.2 Why create our own live system?</a>
  </h6>

<h5 class="toc">
    <a href="#88">2.2 Philosophy</a>
  </h5>

<h6 class="toc">
    <a href="#89">2.2.1 Only unchanged packages from Debian "main"</a>
  </h6>

<h6 class="toc">
    <a href="#93">2.2.2 No package configuration of the live system</a>
  </h6>

<h5 class="toc">
    <a href="#97">2.3 Contact</a>
  </h5>

<h2 class="toc">
    <a href="#101">User</a>
  </h2>

<h4 class="toc">
    <a href="#102">3. Installation</a>
  </h4>

<h5 class="toc">
    <a href="#103">3.1 Requirements</a>
  </h5>

<h5 class="toc">
    <a href="#111">3.2 Installing live-build</a>
  </h5>

<h6 class="toc">
    <a href="#117">3.2.1 From the Debian repository</a>
  </h6>

<h6 class="toc">
    <a href="#120">3.2.2 From source</a>
  </h6>

<h6 class="toc">
    <a href="#131">3.2.3 From 'snapshots'</a>
  </h6>

<h5 class="toc">
    <a href="#133">3.3 Installing live-boot and live-config</a>
  </h5>

<h6 class="toc">
    <a href="#135">3.3.1 From the Debian repository</a>
  </h6>

<h6 class="toc">
    <a href="#137">3.3.2 From source</a>
  </h6>

<h6 class="toc">
    <a href="#149">3.3.3 From 'snapshots'</a>
  </h6>

<h4 class="toc">
    <a href="#152">4. The basics</a>
  </h4>

<h5 class="toc">
    <a href="#155">4.1 What is a live system?</a>
  </h5>

<h5 class="toc">
    <a href="#163">4.2 Downloading prebuilt images</a>
  </h5>

<h5 class="toc">
    <a href="#165">4.3 Using the web live image builder</a>
  </h5>

<h6 class="toc">
    <a href="#167">4.3.1 Web builder usage and caveats</a>
  </h6>

<h5 class="toc">
    <a href="#171">4.4 First steps: building an ISO hybrid image</a>
  </h5>

<h5 class="toc">
    <a href="#181">4.5 Using an ISO hybrid live image</a>
  </h5>

<h6 class="toc">
    <a href="#183">4.5.1 Burning an ISO image to a physical medium</a>
  </h6>

<h6 class="toc">
    <a href="#186">4.5.2 Copying an ISO hybrid image to a USB stick</a>
  </h6>

<h6 class="toc">
    <a href="#190">4.5.3 Using the space left on a USB stick</a>
  </h6>

<h6 class="toc">
    <a href="#197">4.5.4 Booting the live medium</a>
  </h6>

<h5 class="toc">
    <a href="#201">4.6 Using a virtual machine for testing</a>
  </h5>

<h6 class="toc">
    <a href="#208">4.6.1 Testing an ISO image with QEMU</a>
  </h6>

<h6 class="toc">
    <a href="#215">4.6.2 Testing an ISO image with virtualbox</a>
  </h6>

<h5 class="toc">
    <a href="#223">4.7 Building and using an HDD image</a>
  </h5>

<h5 class="toc">
    <a href="#235">4.8 Building a netboot image</a>
  </h5>

<h6 class="toc">
    <a href="#248">4.8.1 DHCP server</a>
  </h6>

<h6 class="toc">
    <a href="#252">4.8.2 TFTP server</a>
  </h6>

<h6 class="toc">
    <a href="#257">4.8.3 NFS server</a>
  </h6>

<h6 class="toc">
    <a href="#265">4.8.4 Netboot testing HowTo</a>
  </h6>

<h6 class="toc">
    <a href="#268">4.8.5 Qemu</a>
  </h6>

<h4 class="toc">
    <a href="#274">5. Overview of tools</a>
  </h4>

<h5 class="toc">
    <a href="#276">5.1 The live-build package</a>
  </h5>

<h6 class="toc">
    <a href="#287">5.1.1 The <tt>lb config</tt> command</a>
  </h6>

<h6 class="toc">
    <a href="#297">5.1.2 The <tt>lb build</tt> command</a>
  </h6>

<h6 class="toc">
    <a href="#299">5.1.3 The <tt>lb clean</tt> command</a>
  </h6>

<h5 class="toc">
    <a href="#301">5.2 The live-boot package</a>
  </h5>

<h5 class="toc">
    <a href="#305">5.3 The live-config package</a>
  </h5>

<h4 class="toc">
    <a href="#307">6. Managing a configuration</a>
  </h4>

<h5 class="toc">
    <a href="#309">6.1 Dealing with configuration changes</a>
  </h5>

<h6 class="toc">
    <a href="#311">6.1.1 Why use auto scripts? What do they do?</a>
  </h6>

<h6 class="toc">
    <a href="#314">6.1.2 Use example auto scripts</a>
  </h6>

<h5 class="toc">
    <a href="#321">6.2 Clone a configuration published via Git</a>
  </h5>

<h4 class="toc">
    <a href="#332">7. Customization overview</a>
  </h4>

<h5 class="toc">
    <a href="#334">7.1 Build time vs. boot time configuration</a>
  </h5>

<h5 class="toc">
    <a href="#337">7.2 Stages of the build</a>
  </h5>

<h5 class="toc">
    <a href="#340">7.3 Supplement lb config with files</a>
  </h5>

<h5 class="toc">
    <a href="#342">7.4 Customization tasks</a>
  </h5>

<h4 class="toc">
    <a href="#344">8. Customizing package installation</a>
  </h4>

<h5 class="toc">
    <a href="#346">8.1 Package sources</a>
  </h5>

<h6 class="toc">
    <a href="#347">8.1.1 Distribution, archive areas and mode</a>
  </h6>

<h6 class="toc">
    <a href="#354">8.1.2 Distribution mirrors</a>
  </h6>

<h6 class="toc">
    <a href="#356">8.1.3 Distribution mirrors used at build time</a>
  </h6>

<h6 class="toc">
    <a href="#360">8.1.4 Distribution mirrors used at run time</a>
  </h6>

<h6 class="toc">
    <a href="#363">8.1.5 Additional repositories</a>
  </h6>

<h5 class="toc">
    <a href="#373">8.2 Choosing packages to install</a>
  </h5>

<h6 class="toc">
    <a href="#375">8.2.1 Package lists</a>
  </h6>

<h6 class="toc">
    <a href="#378">8.2.2 Using metapackages</a>
  </h6>

<h6 class="toc">
    <a href="#386">8.2.3 Local package lists</a>
  </h6>

<h6 class="toc">
    <a href="#390">8.2.4 Local binary package lists</a>
  </h6>

<h6 class="toc">
    <a href="#392">8.2.5 Generated package lists</a>
  </h6>

<h6 class="toc">
    <a href="#396">8.2.6 Using conditionals inside package lists</a>
  </h6>

<h6 class="toc">
    <a href="#405">8.2.7 Desktop and language tasks</a>
  </h6>

<h6 class="toc">
    <a href="#410">8.2.8 Kernel flavour and version</a>
  </h6>

<h6 class="toc">
    <a href="#415">8.2.9 Custom kernels</a>
  </h6>

<h5 class="toc">
    <a href="#423">8.3 Installing modified or third-party packages</a>
  </h5>

<h6 class="toc">
    <a href="#430">8.3.1 Using <tt>packages.chroot</tt> to install custom packages</a>
  </h6>

<h6 class="toc">
    <a href="#437">8.3.2 Using an APT repository to install custom packages</a>
  </h6>

<h6 class="toc">
    <a href="#440">8.3.3 Custom packages and APT</a>
  </h6>

<h5 class="toc">
    <a href="#443">8.4 Configuring APT at build time</a>
  </h5>

<h6 class="toc">
    <a href="#445">8.4.1 Choosing apt or aptitude</a>
  </h6>

<h6 class="toc">
    <a href="#449">8.4.2 Using a proxy with APT</a>
  </h6>

<h6 class="toc">
    <a href="#452">8.4.3 Tweaking APT to save space</a>
  </h6>

<h6 class="toc">
    <a href="#461">8.4.4 Passing options to apt or aptitude</a>
  </h6>

<h6 class="toc">
    <a href="#466">8.4.5 APT pinning</a>
  </h6>

<h4 class="toc">
    <a href="#472">9. Customizing contents</a>
  </h4>

<h5 class="toc">
    <a href="#474">9.1 Includes</a>
  </h5>

<h6 class="toc">
    <a href="#479">9.1.1 Live/chroot local includes</a>
  </h6>

<h6 class="toc">
    <a href="#486">9.1.2 Binary local includes</a>
  </h6>

<h5 class="toc">
    <a href="#490">9.2 Hooks</a>
  </h5>

<h6 class="toc">
    <a href="#492">9.2.1 Live/chroot local hooks</a>
  </h6>

<h6 class="toc">
    <a href="#494">9.2.2 Boot-time hooks</a>
  </h6>

<h6 class="toc">
    <a href="#496">9.2.3 Binary local hooks</a>
  </h6>

<h5 class="toc">
    <a href="#498">9.3 Preseeding Debconf questions</a>
  </h5>

<h4 class="toc">
    <a href="#501">10. Customizing run time behaviours</a>
  </h4>

<h5 class="toc">
    <a href="#503">10.1 Customizing the live user</a>
  </h5>

<h5 class="toc">
    <a href="#512">10.2 Customizing locale and language</a>
  </h5>

<h5 class="toc">
    <a href="#529">10.3 Persistence</a>
  </h5>

<h6 class="toc">
    <a href="#551">10.3.1 The persistence.conf file</a>
  </h6>

<h6 class="toc">
    <a href="#556">10.3.2 Using more than one persistence store</a>
  </h6>

<h4 class="toc">
    <a href="#562">11. Customizing the binary image</a>
  </h4>

<h5 class="toc">
    <a href="#563">11.1 Bootloader</a>
  </h5>

<h5 class="toc">
    <a href="#573">11.2 ISO metadata</a>
  </h5>

<h4 class="toc">
    <a href="#579">12. Customizing Debian Installer</a>
  </h4>

<h5 class="toc">
    <a href="#582">12.1 Types of Debian Installer</a>
  </h5>

<h5 class="toc">
    <a href="#594">12.2 Customizing Debian Installer by preseeding</a>
  </h5>

<h5 class="toc">
    <a href="#597">12.3 Customizing Debian Installer content</a>
  </h5>

<h2 class="toc">
    <a href="#599">Project</a>
  </h2>

<h4 class="toc">
    <a href="#600">13. Contributing to the project</a>
  </h4>

<h5 class="toc">
    <a href="#612">13.1 Making changes</a>
  </h5>

<h4 class="toc">
    <a href="#627">14. Reporting bugs</a>
  </h4>

<h5 class="toc">
    <a href="#633">14.1 Known issues</a>
  </h5>

<h5 class="toc">
    <a href="#638">14.2 Rebuild from scratch</a>
  </h5>

<h5 class="toc">
    <a href="#640">14.3 Use up-to-date packages</a>
  </h5>

<h5 class="toc">
    <a href="#642">14.4 Collect information</a>
  </h5>

<h5 class="toc">
    <a href="#658">14.5 Isolate the failing case if possible</a>
  </h5>

<h5 class="toc">
    <a href="#660">14.6 Use the correct package to report the bug against</a>
  </h5>

<h6 class="toc">
    <a href="#663">14.6.1 At build time while bootstrapping</a>
  </h6>

<h6 class="toc">
    <a href="#666">14.6.2 At build time while installing packages</a>
  </h6>

<h6 class="toc">
    <a href="#670">14.6.3 At boot time</a>
  </h6>

<h6 class="toc">
    <a href="#672">14.6.4 At run time</a>
  </h6>

<h5 class="toc">
    <a href="#674">14.7 Do the research</a>
  </h5>

<h5 class="toc">
    <a href="#678">14.8 Where to report bugs</a>
  </h5>

<h4 class="toc">
    <a href="#682">15. Coding Style</a>
  </h4>

<h5 class="toc">
    <a href="#684">15.1 Compatibility</a>
  </h5>

<h5 class="toc">
    <a href="#689">15.2 Indenting</a>
  </h5>

<h5 class="toc">
    <a href="#691">15.3 Wrapping</a>
  </h5>

<h5 class="toc">
    <a href="#703">15.4 Variables</a>
  </h5>

<h5 class="toc">
    <a href="#722">15.5 Miscellaneous</a>
  </h5>

<h4 class="toc">
    <a href="#727">16. Procedures</a>
  </h4>

<h5 class="toc">
    <a href="#729">16.1 Major Releases</a>
  </h5>

<h5 class="toc">
    <a href="#736">16.2 Point Releases</a>
  </h5>

<h6 class="toc">
    <a href="#740">16.2.1 Last Point Release of a Debian Release</a>
  </h6>

<h6 class="toc">
    <a href="#742">16.2.2 Point release announcement template</a>
  </h6>

<h4 class="toc">
    <a href="#747">17. Git repositories</a>
  </h4>

<h5 class="toc">
    <a href="#761">17.1 Handling multiple repositories</a>
  </h5>

<h2 class="toc">
    <a href="#765">Examples</a>
  </h2>

<h4 class="toc">
    <a href="#766">18. Examples</a>
  </h4>

<h5 class="toc">
    <a href="#768">18.1 Using the examples</a>
  </h5>

<h5 class="toc">
    <a href="#772">18.2 Tutorial 1: A default image</a>
  </h5>

<h5 class="toc">
    <a href="#781">18.3 Tutorial 2: A web browser utility</a>
  </h5>

<h5 class="toc">
    <a href="#789">18.4 Tutorial 3: A personalized image</a>
  </h5>

<h6 class="toc">
    <a href="#792">18.4.1 First revision</a>
  </h6>

<h6 class="toc">
    <a href="#806">18.4.2 Second revision</a>
  </h6>

<h5 class="toc">
    <a href="#818">18.5 A VNC Kiosk Client</a>
  </h5>

<h5 class="toc">
    <a href="#832">18.6 A base image for a 128MB USB key</a>
  </h5>

<h5 class="toc">
    <a href="#843">18.7 A localized GNOME desktop and installer</a>
  </h5>

<h2 class="toc">
    <a href="#855">Appendix</a>
  </h2>

<h5 class="toc">
    <a href="#856">18.8 Guidelines for authors</a>
  </h5>

<h6 class="toc">
    <a href="#859">18.8.1 Linguistic features</a>
  </h6>

<h6 class="toc">
    <a href="#892">18.8.2 Procedures</a>
  </h6>

<h5 class="toc">
    <a href="#931">18.9 Guidelines for translators</a>
  </h5>

<h6 class="toc">
    <a href="#935">18.9.1 Translation hints</a>
  </h6>

<div class="scroll">

<center><hr width="90%"></center>

<div class="substance">
  <label class="ocn"><a name="1" href="#1" class="lnkocn">1</a></label>
  <h1 class="norm" id="o1">
<a name="1"></a>
    <a name="h">Debian Live Manual</a>
  </h1>
</div>

<div class="substance">
  <label class="ocn"><a name="2" href="#2" class="lnkocn">2</a></label>
  <h2 class="norm" id="o2">
<a name="2"></a>
    <a name="h">About</a>
  </h2>
</div>

<div class="substance">
  <label class="ocn"><a name="3" href="#3" class="lnkocn">3</a></label>
  <h4 class="norm" id="o3">
<a name="3"></a>
    <a name="h1"></a><a name="about_this_manual"></a><a name="about-manual"></a><a name="habout-manual">1. About this manual</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="4" href="#4" class="lnkocn">4</a></label>
  <p class="i0" id="o4">
    This manual serves as a single access point to all documentation related to the Debian Live project and in particular applies to the software produced by the project for the Debian 7.0 "<b>wheezy</b>" release. An up-to-date version can always be found at ‹<a href="http://live.debian.net/" target="_top">http://live.debian.net/</a></p>
</div>

<div class="substance">
  <label class="ocn"><a name="5" href="#5" class="lnkocn">5</a></label>
  <p class="i0" id="o5">
    While <i>live-manual</i> is primarily focused on helping you build a live system and not on end-user topics, an end-user may find some useful information in these sections:  <a href="#the-basics">The Basics</a>  covers downloading prebuilt images and preparing images to be booted from media or the network, either using the web builder or running <i>live-build</i> directly on your system.  <a href="#customizing-run-time-behaviours">Customizing run time behaviours</a>  describes some options that may be specified at the boot prompt, such as selecting a keyboard layout and locale, and using persistence.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="6" href="#6" class="lnkocn">6</a></label>
  <p class="i0" id="o6">
    Some of the commands mentioned in the text must be executed with superuser privileges which can be obtained by becoming the root user via <tt>su</tt> or by using <tt>sudo</tt>. To distinguish between commands which may be executed by an unprivileged user and those requiring superuser privileges, commands are prepended by <tt>$</tt> or <tt>#</tt> respectively. This symbol is not a part of the command.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="7" href="#7" class="lnkocn">7</a></label>
  <h5 class="norm" id="o7">
<a name="7"></a>
    <a name="1.1"></a><a name="h1.1"></a><a name="h1.1">1.1 For the impatient</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="8" href="#8" class="lnkocn">8</a></label>
  <p class="i0" id="o8">
    While we believe that everything in this manual is important to at least some of our users, we realize it is a lot of material to cover and that you may wish to experience early success using the software before delving into the details. Therefore, we suggest reading in the following order.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="9" href="#9" class="lnkocn">9</a></label>
  <p class="i0" id="o9">
    First, read this chapter,  <a href="#about-manual">About this manual</a>,  from the beginning and ending with the  <a href="#terms">Terms</a>  section. Next, skip to the three tutorials at the front of the  <a href="#examples">Examples</a>  section designed to teach you image building and customization basics. Read  <a href="#using-the-examples">Using the examples</a>  first, followed by  <a href="#tutorial-1">Tutorial 1: A default image</a>,   <a href="#tutorial-2">Tutorial 2: A web browser utility</a>  and finally  <a href="#tutorial-3">Tutorial 3: A personalized image</a>.  By the end of these tutorials, you will have a taste of what can be done with Debian Live.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="10" href="#10" class="lnkocn">10</a></label>
  <p class="i0" id="o10">
    We encourage you to return to more in-depth study of the manual, perhaps next reading  <a href="#the-basics">The basics</a>,  skimming or skipping  <a href="#building-netboot-image">Building a netboot image</a>,  and finishing by reading the  <a href="#customization-overview">Customization overview</a>  and the chapters that follow it. By this point, we hope you are thoroughly excited by what can be done with Debian Live and motivated to read the rest of the manual, cover-to-cover.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="11" href="#11" class="lnkocn">11</a></label>
  <h5 class="norm" id="o11">
<a name="11"></a>
    <a name="h1.2"></a><a name="terms"></a><a name="hterms">1.2 Terms</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="12" href="#12" class="lnkocn">12</a></label>
  <li class="bullet" id="o12">
    <b>Live system</b>: An operating system that can boot without installation to a hard drive. Live systems do not alter local operating system(s) or file(s) already installed on the computer hard drive unless instructed to do so. Live systems are typically booted from media such as CDs, DVDs or USB sticks. Some may also boot over the network.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="13" href="#13" class="lnkocn">13</a></label>
  <li class="bullet" id="o13">
    <b>Live medium</b>: As distinct from live system, the live medium refers to the CD, DVD or USB stick where the binary produced by <i>live-build</i> and used to boot the live system is written. More broadly, the term also refers to any place where this binary resides for the purposes of booting the live system, such as the location for the network boot files.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="14" href="#14" class="lnkocn">14</a></label>
  <li class="bullet" id="o14">
    <b>Debian Live</b>: The Debian sub-project which maintains, among others, the <i>live-boot</i>, <i>live-build</i>, <i>live-config</i>, <i>live-tools</i> and <i>live-manual</i> packages.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="15" href="#15" class="lnkocn">15</a></label>
  <li class="bullet" id="o15">
    <b>Debian Live system</b>: A live system that uses software from the Debian operating system that may be booted from CDs, DVDs, USB sticks, over the network (via netboot images), and over the Internet (via boot parameter <tt>fetch=URL</tt>).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="16" href="#16" class="lnkocn">16</a></label>
  <li class="bullet" id="o16">
    <b>Host system</b>: The environment used to create the live system.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="17" href="#17" class="lnkocn">17</a></label>
  <li class="bullet" id="o17">
    <b>Target system</b>: The environment used to run the live system.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="18" href="#18" class="lnkocn">18</a></label>
  <li class="bullet" id="o18">
    <b><i>live-boot</i></b>: A collection of scripts used to boot live systems.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="19" href="#19" class="lnkocn">19</a></label>
  <li class="bullet" id="o19">
    <b><i>live-build</i></b>: A collection of scripts used to build customized Debian Live systems.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="20" href="#20" class="lnkocn">20</a></label>
  <li class="bullet" id="o20">
    <b><i>live-config</i></b>: A collection of scripts used to configure a live system during the boot process.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="21" href="#21" class="lnkocn">21</a></label>
  <li class="bullet" id="o21">
    <b><i>live-tools</i></b>: A collection of additional scripts used to perform useful tasks within a running live system.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="22" href="#22" class="lnkocn">22</a></label>
  <li class="bullet" id="o22">
    <b><i>live-manual</i></b>: This document is maintained in a package called <i>live-manual</i>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="23" href="#23" class="lnkocn">23</a></label>
  <li class="bullet" id="o23">
    <b>Debian Installer (d-i)</b>: The official installation system for the Debian distribution.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="24" href="#24" class="lnkocn">24</a></label>
  <li class="bullet" id="o24">
    <b>Boot parameters</b>: Parameters that can be entered at the bootloader prompt to influence the kernel or <i>live-config</i>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="25" href="#25" class="lnkocn">25</a></label>
  <li class="bullet" id="o25">
    <b>chroot</b>: The <i>chroot</i> program, <tt>chroot(8)</tt>, enables us to run different instances of the GNU/Linux environment on a single system simultaneously without rebooting.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="26" href="#26" class="lnkocn">26</a></label>
  <li class="bullet" id="o26">
    <b>Binary image</b>: A file containing the live system, such as binary.iso or binary.img.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="27" href="#27" class="lnkocn">27</a></label>
  <li class="bullet" id="o27">
    <b>Target distribution</b>: The distribution upon which your live system will be based. This can differ from the distribution of your host system.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="28" href="#28" class="lnkocn">28</a></label>
  <li class="bullet" id="o28">
    <b>stable/testing/unstable</b>: The <b>stable</b> distribution contains the latest officially released distribution of Debian. The <b>testing</b> distribution is the staging area for the next <b>stable</b> release. A major advantage of using this distribution is that it has more recent versions of software relative to the <b>stable</b> release. The <b>unstable</b> distribution is where active development of Debian occurs. Generally, this distribution is run by developers and those who like to live on the edge. Throughout the manual, we tend to use codenames for the releases, such as <b>wheezy</b> or <b>sid</b>, as that is what is supported by the tools themselves.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="29" href="#29" class="lnkocn">29</a></label>
  <h5 class="norm" id="o29">
<a name="29"></a>
    <a name="1.3"></a><a name="h1.3"></a><a name="h1.3">1.3 Authors</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="30" href="#30" class="lnkocn">30</a></label>
  <p class="i0" id="o30">
    A list of authors (in alphabetical order):
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="31" href="#31" class="lnkocn">31</a></label>
  <li class="bullet" id="o31">
    Ben Armstrong
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="32" href="#32" class="lnkocn">32</a></label>
  <li class="bullet" id="o32">
    Brendan Sleight
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="33" href="#33" class="lnkocn">33</a></label>
  <li class="bullet" id="o33">
    Carlos Zuferri
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="34" href="#34" class="lnkocn">34</a></label>
  <li class="bullet" id="o34">
    Chris Lamb
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="35" href="#35" class="lnkocn">35</a></label>
  <li class="bullet" id="o35">
    Daniel Baumann
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="36" href="#36" class="lnkocn">36</a></label>
  <li class="bullet" id="o36">
    Franklin Piat
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="37" href="#37" class="lnkocn">37</a></label>
  <li class="bullet" id="o37">
    Jonas Stein
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="38" href="#38" class="lnkocn">38</a></label>
  <li class="bullet" id="o38">
    Kai Hendry
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="39" href="#39" class="lnkocn">39</a></label>
  <li class="bullet" id="o39">
    Marco Amadori
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="40" href="#40" class="lnkocn">40</a></label>
  <li class="bullet" id="o40">
    Mathieu Geli
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="41" href="#41" class="lnkocn">41</a></label>
  <li class="bullet" id="o41">
    Matthias Kirschner
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="42" href="#42" class="lnkocn">42</a></label>
  <li class="bullet" id="o42">
    Richard Nelson
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="43" href="#43" class="lnkocn">43</a></label>
  <li class="bullet" id="o43">
    Trent W. Buck
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="44" href="#44" class="lnkocn">44</a></label>
  <h5 class="norm" id="o44">
<a name="44"></a>
    <a name="h1.4"></a><a name="how-to-contribute"></a><a name="hhow-to-contribute">1.4 Contributing to this document</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="45" href="#45" class="lnkocn">45</a></label>
  <p class="i0" id="o45">
    This manual is intended as a community project and all proposals for improvements and contributions are extremely welcome. Please see the section  <a href="#contributing-to-project">Contributing to the project</a>  for detailed information on how to fetch the commit key and make good commits.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="46" href="#46" class="lnkocn">46</a></label>
  <h6 class="norm" id="o46">
<a name="46"></a>
    <a name="1.4.1"></a><a name="h1.4.1"></a><a name="h1.4.1">1.4.1 Applying changes</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="47" href="#47" class="lnkocn">47</a></label>
  <p class="i0" id="o47">
    In order to make changes to the English manual you have to edit the right files in <tt>manual/en/</tt> but prior to the submission of your contribution, please preview your work. To preview the <i>live-manual</i>, ensure the packages needed for building it are installed by executing:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="48" href="#48" class="lnkocn">48</a></label>
  <p class="code" id="o48">
    # apt-get install make po4a ruby ruby-nokogiri sisu-complete texlive-generic-recommended<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="49" href="#49" class="lnkocn">49</a></label>
  <p class="i0" id="o49">
    You may build the <i>live-manual</i> from the top level directory of your Git checkout by executing:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="50" href="#50" class="lnkocn">50</a></label>
  <p class="code" id="o50">
    $ make build<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="51" href="#51" class="lnkocn">51</a></label>
  <p class="i0" id="o51">
    Since it takes a while to build the manual in all supported languages, you may find it convenient when proofing to build for only one language, e.g. by executing:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="52" href="#52" class="lnkocn">52</a></label>
  <p class="code" id="o52">
    $ make build LANGUAGES=en<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="53" href="#53" class="lnkocn">53</a></label>
  <p class="i0" id="o53">
    It is also possible to build by document type, e.g:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="54" href="#54" class="lnkocn">54</a></label>
  <p class="code" id="o54">
    $ make build FORMATS=pdf<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="55" href="#55" class="lnkocn">55</a></label>
  <p class="i0" id="o55">
    Or combine both, e.g:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="56" href="#56" class="lnkocn">56</a></label>
  <p class="code" id="o56">
    $ make build LANGUAGES=de FORMATS=html<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="57" href="#57" class="lnkocn">57</a></label>
  <p class="i0" id="o57">
    After revising your work and making sure that everything is fine, do not use <tt>make commit</tt> unless you are updating translations in the commit, and in that case, do not mix changes to the English manual and translations in the same commit, but use separate commits for each. See the  <a href="#translation">Translation</a>  section for more details.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="58" href="#58" class="lnkocn">58</a></label>
  <h6 class="norm" id="o58">
<a name="58"></a>
    <a name="h1.4.2"></a><a name="translation"></a><a name="htranslation">1.4.2 Translation</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="59" href="#59" class="lnkocn">59</a></label>
  <p class="i0" id="o59">
    To start a translation for a new language, follow these steps:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="60" href="#60" class="lnkocn">60</a></label>
  <li class="bullet" id="o60">
    Translate the <b>about_manual.ssi.pot</b>, <b>about_project.ssi.pot</b> and <b>index.html.in.pot</b> files to your language with your favourite editor (such as <i>poedit</i>) . Send the translated <tt>.po</tt> files to the mailing list so that the translation team can check their integrity.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="61" href="#61" class="lnkocn">61</a></label>
  <li class="bullet" id="o61">
    To enable a new language in the autobuild it is enough to add the initial translated files to <tt>manual/po/${LANGUAGE}/</tt> and run <tt>make commit</tt>. And then edit <tt>manual/_sisu/home/index.html</tt>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="62" href="#62" class="lnkocn">62</a></label>
  <li class="bullet" id="o62">
    Once the new language is added, you can randomly continue translating the remaining po files in <tt>manual/po/</tt>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="63" href="#63" class="lnkocn">63</a></label>
  <li class="bullet" id="o63">
    Don't forget that you need <tt>make commit</tt> to ensure the translated manuals are updated from the po files and then you can review your changes launching <tt>make build</tt> before <tt>git add .</tt>, <tt>git commit -m "Translating..."</tt> and <tt>git push</tt>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="64" href="#64" class="lnkocn">64</a></label>
  <p class="i0" id="o64">
    After running <tt>make commit</tt> you will see some text scroll by. These are basically informative messages about the processing status and also some hints about what can be done in order to improve <i>live-manual</i>. Unless you see a fatal error, you usually can proceed and submit your contribution.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="65" href="#65" class="lnkocn">65</a></label>
  <p class="i0" id="o65">
    <i>live-manual</i> comes with two utilities that can greatly help translators to find untranslated and changed strings. The first one is "make translate". It launches an script that tells you in detail how many untranslated strings there are in each po file. The second one, the "make fixfuzzy" target, only acts upon changed strings but it helps you to find and fix them one by one.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="66" href="#66" class="lnkocn">66</a></label>
  <p class="i0" id="o66">
    Keep in mind that even though these utilities might be really helpful to do translation work on the command line, the use of an specialized tool like <i>poedit</i> is the recommended way to do the task. It is also a good idea to read the Debian localization (l10n) documentation and, specifically to <i>live-manual</i>, the  <a href="#guidelines-translators">Guidelines for translators</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="67" href="#67" class="lnkocn">67</a></label>
  <p class="i0" id="o67">
    <b>Note:</b> You can use <tt>make clean</tt> to clean your git tree before pushing. This step is not compulsory thanks to the .gitignore file but it is a good practice to avoid committing files involuntarily.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="68" href="#68" class="lnkocn">68</a></label>
  <h4 class="norm" id="o68">
<a name="68"></a>
    <a name="h2"></a><a name="about_the_debian_live_project"></a><a name="about-project"></a><a name="habout-project">2. About the Debian Live Project</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="69" href="#69" class="lnkocn">69</a></label>
  <h5 class="norm" id="o69">
<a name="69"></a>
    <a name="2.1"></a><a name="h2.1"></a><a name="h2.1">2.1 Motivation</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="70" href="#70" class="lnkocn">70</a></label>
  <h6 class="norm" id="o70">
<a name="70"></a>
    <a name="2.1.1"></a><a name="h2.1.1"></a><a name="h2.1.1">2.1.1 What is wrong with current live systems</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="71" href="#71" class="lnkocn">71</a></label>
  <p class="i0" id="o71">
    When Debian Live was initiated, there were already several Debian based live systems available and they are doing a great job. From the Debian perspective most of them have one or more of the following disadvantages:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="72" href="#72" class="lnkocn">72</a></label>
  <li class="bullet" id="o72">
    They are not Debian projects and therefore lack support from within Debian.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="73" href="#73" class="lnkocn">73</a></label>
  <li class="bullet" id="o73">
    They mix different distributions, e.g. <b>testing</b> and <b>unstable</b>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="74" href="#74" class="lnkocn">74</a></label>
  <li class="bullet" id="o74">
    They support i386 only.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="75" href="#75" class="lnkocn">75</a></label>
  <li class="bullet" id="o75">
    They modify the behaviour and/or appearance of packages by stripping them down to save space.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="76" href="#76" class="lnkocn">76</a></label>
  <li class="bullet" id="o76">
    They include packages from outside of the Debian archive.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="77" href="#77" class="lnkocn">77</a></label>
  <li class="bullet" id="o77">
    They ship custom kernels with additional patches that are not part of Debian.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="78" href="#78" class="lnkocn">78</a></label>
  <li class="bullet" id="o78">
    They are large and slow due to their sheer size and thus not suitable for rescue issues.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="79" href="#79" class="lnkocn">79</a></label>
  <li class="bullet" id="o79">
    They are not available in different flavours, e.g. CDs, DVDs, USB-stick and netboot images.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="80" href="#80" class="lnkocn">80</a></label>
  <h6 class="norm" id="o80">
<a name="80"></a>
    <a name="2.1.2"></a><a name="h2.1.2"></a><a name="h2.1.2">2.1.2 Why create our own live system?</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="81" href="#81" class="lnkocn">81</a></label>
  <p class="i0" id="o81">
    Debian is the Universal Operating System: Debian has a live system to show around and to accurately represent the Debian system with the following main advantages:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="82" href="#82" class="lnkocn">82</a></label>
  <li class="bullet" id="o82">
    It is a subproject of Debian.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="83" href="#83" class="lnkocn">83</a></label>
  <li class="bullet" id="o83">
    It reflects the (current) state of one distribution.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="84" href="#84" class="lnkocn">84</a></label>
  <li class="bullet" id="o84">
    It runs on as many architectures as possible.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="85" href="#85" class="lnkocn">85</a></label>
  <li class="bullet" id="o85">
    It consists of unchanged Debian packages only.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="86" href="#86" class="lnkocn">86</a></label>
  <li class="bullet" id="o86">
    It does not contain any packages that are not in the Debian archive.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="87" href="#87" class="lnkocn">87</a></label>
  <li class="bullet" id="o87">
    It uses an unaltered Debian kernel with no additional patches.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="88" href="#88" class="lnkocn">88</a></label>
  <h5 class="norm" id="o88">
<a name="88"></a>
    <a name="2.2"></a><a name="h2.2"></a><a name="h2.2">2.2 Philosophy</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="89" href="#89" class="lnkocn">89</a></label>
  <h6 class="norm" id="o89">
<a name="89"></a>
    <a name="2.2.1"></a><a name="h2.2.1"></a><a name="h2.2.1">2.2.1 Only unchanged packages from Debian "main"</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="90" href="#90" class="lnkocn">90</a></label>
  <p class="i0" id="o90">
    We will only use packages from the Debian repository in the "main" section. The non-free section is not part of Debian and therefore cannot be used for official live system images.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="91" href="#91" class="lnkocn">91</a></label>
  <p class="i0" id="o91">
    We will not change any packages. Whenever we need to change something, we will do that in coordination with its package maintainer in Debian.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="92" href="#92" class="lnkocn">92</a></label>
  <p class="i0" id="o92">
    As an exception, our own packages such as <i>live-boot</i>, <i>live-build</i> or <i>live-config</i> may temporarily be used from our own repository for development reasons (e.g. to create development snapshots). They will be uploaded to Debian on a regular basis.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="93" href="#93" class="lnkocn">93</a></label>
  <h6 class="norm" id="o93">
<a name="93"></a>
    <a name="2.2.2"></a><a name="h2.2.2"></a><a name="h2.2.2">2.2.2 No package configuration of the live system</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="94" href="#94" class="lnkocn">94</a></label>
  <p class="i0" id="o94">
    In this phase we will not ship or install sample or alternative configurations. All packages are used in their default configuration as they are after a regular installation of Debian.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="95" href="#95" class="lnkocn">95</a></label>
  <p class="i0" id="o95">
    Whenever we need a different default configuration, we will do that in coordination with its package maintainer in Debian.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="96" href="#96" class="lnkocn">96</a></label>
  <p class="i0" id="o96">
    A system for configuring packages is provided using debconf allowing custom configured packages to be installed in your custom produced Debian Live images, but for the  <a href="#downloading-prebuilt-images">prebuilt live images</a>  we choose to leave packages in their default configuration, unless absolutely necessary in order to work in the live environment. Wherever possible, we prefer to adapt packages within the Debian archive to work better in a live system versus making changes to the live toolchain or  <a href="#clone-configuration-via-git">prebuilt image configurations</a>.  For more information, please see  <a href="#customization-overview">Customization overview</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="97" href="#97" class="lnkocn">97</a></label>
  <h5 class="norm" id="o97">
<a name="97"></a>
    <a name="h2.3"></a><a name="contact"></a><a name="hcontact">2.3 Contact</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="98" href="#98" class="lnkocn">98</a></label>
  <li class="bullet" id="o98">
    <b>Mailing list</b>: The primary contact for the project is the mailing list at ‹<a href="http://lists.debian.org/debian-live/" target="_top">http://lists.debian.org/debian-live/</a>›. You can email the list directly by addressing your mail to ‹<a href="mailto:debian-live@lists.debian.org.">debian-live@lists.debian.org.</a>› The list archives are available at ‹<a href="http://lists.debian.org/debian-live/" target="_top">http://lists.debian.org/debian-live/</a>›.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="99" href="#99" class="lnkocn">99</a></label>
  <li class="bullet" id="o99">
    <b>IRC</b>: A number of users and developers are present in the #debian-live channel on irc.debian.org (OFTC). When asking a question on IRC, please be patient for an answer. If no answer is forthcoming, please email the mailing list.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="100" href="#100" class="lnkocn">100</a></label>
  <li class="bullet" id="o100">
    <b>BTS</b> : The  <a href="http://www.debian.org/Bugs/">Debian Bug Tracking System</a>  (BTS) contains details of bugs reported by users and developers. Each bug is given a number, and is kept on file until it is marked as having been dealt with. For more information, please see  <a href="#bugs">Reporting bugs</a>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="101" href="#101" class="lnkocn">101</a></label>
  <h2 class="norm" id="o101">
<a name="101"></a>
    <a name="h">User</a>
  </h2>
</div>

<div class="substance">
  <label class="ocn"><a name="102" href="#102" class="lnkocn">102</a></label>
  <h4 class="norm" id="o102">
<a name="102"></a>
    <a name="h3"></a><a name="installation"></a><a name="hinstallation">3. Installation</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="103" href="#103" class="lnkocn">103</a></label>
  <h5 class="norm" id="o103">
<a name="103"></a>
    <a name="h3.1"></a><a name="requirements"></a><a name="hrequirements">3.1 Requirements</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="104" href="#104" class="lnkocn">104</a></label>
  <p class="i0" id="o104">
    Building Debian Live images has very few system requirements:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="105" href="#105" class="lnkocn">105</a></label>
  <li class="bullet" id="o105">
    Superuser (root) access
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="106" href="#106" class="lnkocn">106</a></label>
  <li class="bullet" id="o106">
    An up-to-date version of <i>live-build</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="107" href="#107" class="lnkocn">107</a></label>
  <li class="bullet" id="o107">
    A POSIX-compliant shell, such as <i>bash</i> or <i>dash</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="108" href="#108" class="lnkocn">108</a></label>
  <li class="bullet" id="o108">
    <i>debootstrap</i> or <i>cdebootstrap</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="109" href="#109" class="lnkocn">109</a></label>
  <li class="bullet" id="o109">
    Linux 2.6 or newer.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="110" href="#110" class="lnkocn">110</a></label>
  <p class="i0" id="o110">
    Note that using Debian or a Debian-derived distribution is not required - <i>live-build</i> will run on almost any distribution with the above requirements.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="111" href="#111" class="lnkocn">111</a></label>
  <h5 class="norm" id="o111">
<a name="111"></a>
    <a name="h3.2"></a><a name="installing-live-build"></a><a name="hinstalling-live-build">3.2 Installing live-build</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="112" href="#112" class="lnkocn">112</a></label>
  <p class="i0" id="o112">
    You can install <i>live-build</i> in a number of different ways:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="113" href="#113" class="lnkocn">113</a></label>
  <li class="bullet" id="o113">
    From the Debian repository
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="114" href="#114" class="lnkocn">114</a></label>
  <li class="bullet" id="o114">
    From source
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="115" href="#115" class="lnkocn">115</a></label>
  <li class="bullet" id="o115">
    From snapshots
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="116" href="#116" class="lnkocn">116</a></label>
  <p class="i0" id="o116">
    If you are using Debian, the recommended way is to install <i>live-build</i> via the Debian repository.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="117" href="#117" class="lnkocn">117</a></label>
  <h6 class="norm" id="o117">
<a name="117"></a>
    <a name="3.2.1"></a><a name="h3.2.1"></a><a name="h3.2.1">3.2.1 From the Debian repository</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="118" href="#118" class="lnkocn">118</a></label>
  <p class="i0" id="o118">
    Simply install <i>live-build</i> like any other package:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="119" href="#119" class="lnkocn">119</a></label>
  <p class="code" id="o119">
    # apt-get install live-build<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="120" href="#120" class="lnkocn">120</a></label>
  <h6 class="norm" id="o120">
<a name="120"></a>
    <a name="3.2.2"></a><a name="h3.2.2"></a><a name="h3.2.2">3.2.2 From source</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="121" href="#121" class="lnkocn">121</a></label>
  <p class="i0" id="o121">
    <i>live-build</i> is developed using the Git version control system. On Debian based systems, this is provided by the <i>git</i> package. To check out the latest code, execute:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="122" href="#122" class="lnkocn">122</a></label>
  <p class="code" id="o122">
    $ git clone git://live.debian.net/git/live-build.git<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="123" href="#123" class="lnkocn">123</a></label>
  <p class="i0" id="o123">
    You can build and install your own Debian package by executing:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="124" href="#124" class="lnkocn">124</a></label>
  <p class="code" id="o124">
    $ cd live-build<br>
$ dpkg-buildpackage -b -uc -us<br>
$ cd ..<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="125" href="#125" class="lnkocn">125</a></label>
  <p class="i0" id="o125">
    Now install whichever of the freshly built <tt>.deb</tt> files you were interested in, e.g.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="126" href="#126" class="lnkocn">126</a></label>
  <p class="code" id="o126">
    # dpkg -i live-build_3.0-1_all.deb<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="127" href="#127" class="lnkocn">127</a></label>
  <p class="i0" id="o127">
    You can also install <i>live-build</i> directly to your system by executing:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="128" href="#128" class="lnkocn">128</a></label>
  <p class="code" id="o128">
    # make install<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="129" href="#129" class="lnkocn">129</a></label>
  <p class="i0" id="o129">
    and uninstall it with:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="130" href="#130" class="lnkocn">130</a></label>
  <p class="code" id="o130">
    # make uninstall<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="131" href="#131" class="lnkocn">131</a></label>
  <h6 class="norm" id="o131">
<a name="131"></a>
    <a name="3.2.3"></a><a name="h3.2.3"></a><a name="h3.2.3">3.2.3 From 'snapshots'</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="132" href="#132" class="lnkocn">132</a></label>
  <p class="i0" id="o132">
    If you do not wish to build or install <i>live-build</i> from source, you can use snapshots. These are built automatically from the latest version in Git and are available on ‹<a href="http://live.debian.net/debian/" target="_top">http://live.debian.net/debian/</a>›.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="133" href="#133" class="lnkocn">133</a></label>
  <h5 class="norm" id="o133">
<a name="133"></a>
    <a name="3.3"></a><a name="h3.3"></a><a name="h3.3">3.3 Installing live-boot and live-config</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="134" href="#134" class="lnkocn">134</a></label>
  <p class="i0" id="o134">
    <b>Note:</b> You do not need to install <i>live-boot</i> or <i>live-config</i> on your system to create customized Debian Live systems. However, doing so will do no harm and is useful for reference purposes. If you only want the documentation, you may now install the <i>live-boot-doc</i> and <i>live-config-doc</i> packages separately.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="135" href="#135" class="lnkocn">135</a></label>
  <h6 class="norm" id="o135">
<a name="135"></a>
    <a name="3.3.1"></a><a name="h3.3.1"></a><a name="h3.3.1">3.3.1 From the Debian repository</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="136" href="#136" class="lnkocn">136</a></label>
  <p class="i0" id="o136">
    Both <i>live-boot</i> and <i>live-config</i> are available from the Debian repository as per  <a href="#installing-live-build">Installing live-build</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="137" href="#137" class="lnkocn">137</a></label>
  <h6 class="norm" id="o137">
<a name="137"></a>
    <a name="3.3.2"></a><a name="h3.3.2"></a><a name="h3.3.2">3.3.2 From source</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="138" href="#138" class="lnkocn">138</a></label>
  <p class="i0" id="o138">
    To use the latest source from git, you can follow the process below. Please ensure you are familiar with the terms mentioned in  <a href="#terms">Terms</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="139" href="#139" class="lnkocn">139</a></label>
  <li class="bullet" id="o139">
    Checkout the <i>live-boot</i> and <i>live-config</i> sources
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="140" href="#140" class="lnkocn">140</a></label>
  <p class="code" id="o140">
    $ git clone git://live.debian.net/git/live-boot.git<br>
$ git clone git://live.debian.net/git/live-config.git<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="141" href="#141" class="lnkocn">141</a></label>
  <p class="i0" id="o141">
    Consult the <i>live-boot</i> and <i>live-config</i> man pages for details on customizing if that is your reason for building these packages from source.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="142" href="#142" class="lnkocn">142</a></label>
  <li class="bullet" id="o142">
    Build <i>live-boot</i> and <i>live-config</i> .deb files
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="143" href="#143" class="lnkocn">143</a></label>
  <p class="i0" id="o143">
    You must build either on your target distribution or in a chroot containing your target platform: this means if your target is <b>wheezy</b> then you should build against <b>wheezy</b>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="144" href="#144" class="lnkocn">144</a></label>
  <p class="i0" id="o144">
    Use a personal builder such as <i>pbuilder</i> or <i>sbuild</i> if you need to build <i>live-boot</i> for a target distribution that differs from your build system. For example, for <b>wheezy</b> live images, build <i>live-boot</i> in a <b>wheezy</b> chroot. If your target distribution happens to match your build system distribution, you may build directly on the build system using <tt>dpkg-buildpackage</tt> (provided by the <i>dpkg-dev</i> package):
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="145" href="#145" class="lnkocn">145</a></label>
  <p class="code" id="o145">
    $ cd live-boot<br>
$ dpkg-buildpackage -b -uc -us<br>
$ cd ../live-config<br>
$ dpkg-buildpackage -b -uc -us<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="146" href="#146" class="lnkocn">146</a></label>
  <li class="bullet" id="o146">
    Use applicable generated .deb files
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="147" href="#147" class="lnkocn">147</a></label>
  <p class="i0" id="o147">
    As <i>live-boot</i> and <i>live-config</i> are installed by <i>live-build</i> system, installing the packages in the host system is not sufficient: you should treat the generated .deb files like any other custom packages. Since your purpose for building from source is like to test new things over the short term before the official release, follow  <a href="#installing-modified-or-third-party-packages">Installing modified or third-party packages</a>  to temporarily include the relevant files in your configuration. In particular, notice that both packages are divided into a generic part, a documentation part and one or more back-ends. Include the generic part, only one back-end matching your configuration, and optionally the documentation. Assuming you are building a live image in the current directory and have generated all .deb files for a single version of both packages in the directory above, these bash commands would copy all of the relevant packages including default back-ends:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="148" href="#148" class="lnkocn">148</a></label>
  <p class="code" id="o148">
    $ cp ../live-boot{_,-initramfs-tools,-doc}*.deb  config/packages.chroot/<br>
$ cp ../live-config{_,-sysvinit,-doc}*.deb  config/packages.chroot/<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="149" href="#149" class="lnkocn">149</a></label>
  <h6 class="norm" id="o149">
<a name="149"></a>
    <a name="3.3.3"></a><a name="h3.3.3"></a><a name="h3.3.3">3.3.3 From 'snapshots'</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="150" href="#150" class="lnkocn">150</a></label>
  <p class="i0" id="o150">
    You can let <i>live-build</i> automatically use the latest snapshots of <i>live-boot</i> and <i>live-config</i> by configuring a third-party repository in your <i>live-build</i> configuration directory. Assuming you have already created a configuration tree in the current directory with <tt>lb config</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="151" href="#151" class="lnkocn">151</a></label>
  <p class="code" id="o151">
    $ lb config --archives live.debian.net<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="152" href="#152" class="lnkocn">152</a></label>
  <h4 class="norm" id="o152">
<a name="152"></a>
    <a name="h4"></a><a name="the_basics"></a><a name="the-basics"></a><a name="hthe-basics">4. The basics</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="153" href="#153" class="lnkocn">153</a></label>
  <p class="i0" id="o153">
    This chapter contains a brief overview of the build process and instructions for using the three most commonly used image types. The most versatile image type, <tt>iso-hybrid</tt>, may be used on a virtual machine, optical medium or USB portable storage device. In certain special cases, as explained later, the <tt>hdd</tt> type may be more suitable. The chapter finishes with instructions for building and using a <tt>netboot</tt> type image, which is a bit more involved due to the setup required on the server. This is an slightly advanced topic for anyone who is not familiar already with netbooting, but it is included here because once the setup is done, it is a very convenient way to test and deploy images for booting on the local network without the hassle of dealing with image media.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="154" href="#154" class="lnkocn">154</a></label>
  <p class="i0" id="o154">
    Throughout the chapter, we will often refer to the default filenames produced by <i>live-build</i>. If you are  <a href="#downloading-prebuilt-images">downloading a prebuilt image</a>  instead, the actual filenames may vary.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="155" href="#155" class="lnkocn">155</a></label>
  <h5 class="norm" id="o155">
<a name="155"></a>
    <a name="h4.1"></a><a name="what-is-live"></a><a name="hwhat-is-live">4.1 What is a live system?</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="156" href="#156" class="lnkocn">156</a></label>
  <p class="i0" id="o156">
    A live system usually means an operating system booted on a computer from a removable medium, such as a CD-ROM or USB stick, or from a network, ready to use without any installation on the usual drive(s), with auto-configuration done at run time (see  <a href="#terms">Terms</a>).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="157" href="#157" class="lnkocn">157</a></label>
  <p class="i0" id="o157">
    With Debian Live, it's a Debian GNU/Linux operating system, built for one of the supported architectures (currently amd64 and i386). It is made from the following parts:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="158" href="#158" class="lnkocn">158</a></label>
  <li class="bullet" id="o158">
    <b>Linux kernel image</b>, usually named <tt>vmlinuz*</tt>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="159" href="#159" class="lnkocn">159</a></label>
  <li class="bullet" id="o159">
    <b>Initial RAM disk image (initrd)</b>: a RAM disk set up for the Linux boot, containing modules possibly needed to mount the System image and some scripts to do it.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="160" href="#160" class="lnkocn">160</a></label>
  <li class="bullet" id="o160">
    <b>System image</b>: The operating system's filesystem image. Usually, a SquashFS compressed filesystem is used to minimize the Debian Live image size. Note that it is read-only. So, during boot the Debian Live system will use a RAM disk and 'union' mechanism to enable writing files within the running system. However, all modifications will be lost upon shutdown unless optional persistence is used (see  <a href="#persistence">Persistence</a>).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="161" href="#161" class="lnkocn">161</a></label>
  <li class="bullet" id="o161">
    <b>Bootloader</b>: A small piece of code crafted to boot from the chosen medium, possibly presenting a prompt or menu to allow selection of options/configuration. It loads the Linux kernel and its initrd to run with an associated system filesystem. Different solutions can be used, depending on the target medium and format of the filesystem containing the previously mentioned components: isolinux to boot from a CD or DVD in ISO9660 format, syslinux for HDD or USB drive booting from a VFAT partition, extlinux for ext2/3/4 and btrfs partitions, pxelinux for PXE netboot, GRUB for ext2/3/4 partitions, etc.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="162" href="#162" class="lnkocn">162</a></label>
  <p class="i0" id="o162">
    You can use <i>live-build</i> to build the system image from your specifications, set up a Linux kernel, its initrd, and a bootloader to run them, all in one medium-dependant format (ISO9660 image, disk image, etc.).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="163" href="#163" class="lnkocn">163</a></label>
  <h5 class="norm" id="o163">
<a name="163"></a>
    <a name="h4.2"></a><a name="downloading-prebuilt-images"></a><a name="hdownloading-prebuilt-images">4.2 Downloading prebuilt images</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="164" href="#164" class="lnkocn">164</a></label>
  <p class="i0" id="o164">
    While the focus of this manual is developing and building your own live images, you may simply wish to try one of our prebuilt images, either as an introduction to their use or instead of building your own. These images are built using our  <a href="#clone-configuration-via-git"><i>live-images</i> git repository</a>  and official stable releases are published at ‹<a href="http://www.debian.org/CD/live/" target="_top">http://www.debian.org/CD/live/</a>›. In addition, older and upcoming releases, and unofficial images containing non-free firmware and drivers are available at ‹<a href="http://live.debian.net/cdimage/release/" target="_top">http://live.debian.net/cdimage/release/</a>›.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="165" href="#165" class="lnkocn">165</a></label>
  <h5 class="norm" id="o165">
<a name="165"></a>
    <a name="h4.3"></a><a name="using-web-builder"></a><a name="husing-web-builder">4.3 Using the web live image builder</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="166" href="#166" class="lnkocn">166</a></label>
  <p class="i0" id="o166">
    As a service to the community, we run a web-based live image builder service at ‹<a href="http://live-build.debian.net/" target="_top">http://live-build.debian.net/</a>›. This site is maintained on a best effort basis. That is, although we strive to keep it up-to-date and operational at all times, and do issue notices for significant operational outages, we cannot guarantee 100% availability or fast image building, and the service may occasionally have issues that take some time to resolve. If you have problems or questions about the service, please  <a href="#contact">contact us</a>,  providing us with the link to your build.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="167" href="#167" class="lnkocn">167</a></label>
  <h6 class="norm" id="o167">
<a name="167"></a>
    <a name="4.3.1"></a><a name="h4.3.1"></a><a name="h4.3.1">4.3.1 Web builder usage and caveats</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="168" href="#168" class="lnkocn">168</a></label>
  <p class="i0" id="o168">
    The web interface currently makes no provision to prevent the use of invalid combinations of options, and in particular, where changing an option would normally (i.e. using <i>live-build</i> directly) change defaults of other options listed in the web form, the web builder does not change these defaults. Most notably, if you change <tt>--architectures</tt> from the default <tt>i386</tt> to <tt>amd64</tt>, you must change the corresponding option <tt>--linux-flavours</tt> from the default <tt>486</tt> to <tt>amd64</tt>. See the <tt>lb_config</tt> man page for the version of <i>live-build</i> installed on the web builder for more details. The version number of <i>live-build</i> is listed at the bottom of the web builder page.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="169" href="#169" class="lnkocn">169</a></label>
  <p class="i0" id="o169">
    The time estimate given by the web builder is a crude estimate only and may not reflect how long your build actually takes. Nor is the estimate updated once it is displayed. Please be patient. Do not refresh the page you land on after submitting the build, as this will resubmit a new build with the same parameters. You should  <a href="#contact">contact us</a>  if you don't receive notification of your build only once you are certain you've waited long enough and verified the notification e-mail did not get caught by your own e-mail spam filter.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="170" href="#170" class="lnkocn">170</a></label>
  <p class="i0" id="o170">
    The web builder is limited in the kinds of images it can build. This keeps it simple and efficient to use and maintain. If you would like to make customizations that are not provided for by the web interface, the rest of this manual explains how to build your own images using <i>live-build</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="171" href="#171" class="lnkocn">171</a></label>
  <h5 class="norm" id="o171">
<a name="171"></a>
    <a name="h4.4"></a><a name="building-iso-hybrid"></a><a name="hbuilding-iso-hybrid">4.4 First steps: building an ISO hybrid image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="172" href="#172" class="lnkocn">172</a></label>
  <p class="i0" id="o172">
    Regardless of the image type, you will need to perform the same basic steps to build an image each time. As a first example, create a build directory, change to that directory and then execute the following sequence of <i>live-build</i> commands to create a basic ISO hybrid image containing a default live system without X.org. It is suitable for burning to CD or DVD media, and also to copy onto a USB stick.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="173" href="#173" class="lnkocn">173</a></label>
  <p class="i0" id="o173">
    The name of the working directory is absolutely up to you, but if you take a look at the examples used throughout <i>live-manual</i>, it is a good idea to use a name that helps you identify the image you are working with in each directory, especially if you are working or experimenting with different image types. In this case you are going to build a default system so let's call it, for example, live-default.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="174" href="#174" class="lnkocn">174</a></label>
  <p class="code" id="o174">
    $ mkdir live-default &amp;&amp; cd live-default<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="175" href="#175" class="lnkocn">175</a></label>
  <p class="i0" id="o175">
    Then, run the <tt>lb config</tt> command. This will create a "config/" hierarchy in the current directory for use by other commands:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="176" href="#176" class="lnkocn">176</a></label>
  <p class="code" id="o176">
    $ lb config<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="177" href="#177" class="lnkocn">177</a></label>
  <p class="i0" id="o177">
    No parameters are passed to <tt>lb config</tt>, so defaults for all of its various options will be used. See  <a href="#lb-config">The lb config command</a>  for more details.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="178" href="#178" class="lnkocn">178</a></label>
  <p class="i0" id="o178">
    Now that the "config/" hierarchy exists, build the image with the <tt>lb build</tt> command:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="179" href="#179" class="lnkocn">179</a></label>
  <p class="code" id="o179">
    # lb build<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="180" href="#180" class="lnkocn">180</a></label>
  <p class="i0" id="o180">
    This process can take a while, depending on the speed of your computer and your network connection. When it is complete, there should be a <tt>binary.hybrid.iso</tt> image file, ready to use, in the current directory.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="181" href="#181" class="lnkocn">181</a></label>
  <h5 class="norm" id="o181">
<a name="181"></a>
    <a name="h4.5"></a><a name="using-iso-hybrid"></a><a name="husing-iso-hybrid">4.5 Using an ISO hybrid live image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="182" href="#182" class="lnkocn">182</a></label>
  <p class="i0" id="o182">
    After either building or downloading an ISO hybrid image, which can be obtained at ‹<a href="http://www.debian.org/CD/live/" target="_top">http://www.debian.org/CD/live/</a>›, the usual next step is to prepare your medium for booting, either CD-R(W) or DVD-R(W) optical media or a USB stick.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="183" href="#183" class="lnkocn">183</a></label>
  <h6 class="norm" id="o183">
<a name="183"></a>
    <a name="h4.5.1"></a><a name="burning-iso-image"></a><a name="hburning-iso-image">4.5.1 Burning an ISO image to a physical medium</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="184" href="#184" class="lnkocn">184</a></label>
  <p class="i0" id="o184">
    Burning an ISO image is easy. Just install <i>xorriso</i> and use it from the command-line to burn the image. For instance:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="185" href="#185" class="lnkocn">185</a></label>
  <p class="code" id="o185">
    # apt-get install xorriso<br><br>
$ xorriso -as cdrecord -v dev=/dev/sr0 blank=as_needed binary.hybrid.iso<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="186" href="#186" class="lnkocn">186</a></label>
  <h6 class="norm" id="o186">
<a name="186"></a>
    <a name="h4.5.2"></a><a name="copying-iso-hybrid-to-usb"></a><a name="hcopying-iso-hybrid-to-usb">4.5.2 Copying an ISO hybrid image to a USB stick</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="187" href="#187" class="lnkocn">187</a></label>
  <p class="i0" id="o187">
    ISO images prepared with <tt>xorriso</tt>, can be simply copied to a USB stick with the <tt>dd</tt> program or an equivalent. Plug in a USB stick with a size large enough for your image file and determine which device it is, which we hereafter refer to as <tt>${USBSTICK}</tt>. This is the device file of your key, such as <tt>/dev/sdb</tt>, not a partition, such as <tt>/dev/sdb1</tt>! You can find the right device name by looking in <tt>dmesg</tt>'s output after plugging in the stick, or better yet, <tt>ls -l /dev/disk/by-id</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="188" href="#188" class="lnkocn">188</a></label>
  <p class="i0" id="o188">
    Once you are certain you have the correct device name, use the <tt>dd</tt> command to copy the image to the stick. <b>This will definitely overwrite any previous contents on your stick!</b>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="189" href="#189" class="lnkocn">189</a></label>
  <p class="code" id="o189">
    $ dd if=binary.hybrid.iso of=${USBSTICK}<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="190" href="#190" class="lnkocn">190</a></label>
  <h6 class="norm" id="o190">
<a name="190"></a>
    <a name="h4.5.3"></a><a name="using-usb-extra-space"></a><a name="husing-usb-extra-space">4.5.3 Using the space left on a USB stick</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="191" href="#191" class="lnkocn">191</a></label>
  <p class="i0" id="o191">
    To use the remaining free space after copying <tt>binary.hybrid.iso</tt> to a USB stick, use a partitioning tool such as <i>gparted</i> or <i>parted</i> to create a new partition on the stick. The first partition will be used by the Debian Live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="192" href="#192" class="lnkocn">192</a></label>
  <p class="code" id="o192">
    # gparted ${USBSTICK}<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="193" href="#193" class="lnkocn">193</a></label>
  <p class="i0" id="o193">
    After the partition is created, where <tt>${PARTITION}</tt> is the name of the partition, such as <tt>/dev/sdb2</tt>, you have to create a filesystem on it. One possible choice would be ext4.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="194" href="#194" class="lnkocn">194</a></label>
  <p class="code" id="o194">
    # mkfs.ext4 ${PARTITION}<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="195" href="#195" class="lnkocn">195</a></label>
  <p class="i0" id="o195">
    <b>Note:</b>  If you want to use the extra space with Windows, apparently that OS cannot normally access any partitions but the first. Some solutions to this problem have been discussed on our  <a href="#contact">mailing list</a>,  but it seems there are no easy answers.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="196" href="#196" class="lnkocn">196</a></label>
  <p class="i0" id="o196">
    <b>Remember: Every time you install a new binary.hybrid.iso on the stick, all data on the stick will be lost because the partition table is overwritten by the contents of the image, so back up your extra partition first to restore again after updating the live image.</b>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="197" href="#197" class="lnkocn">197</a></label>
  <h6 class="norm" id="o197">
<a name="197"></a>
    <a name="h4.5.4"></a><a name="booting-live-medium"></a><a name="hbooting-live-medium">4.5.4 Booting the live medium</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="198" href="#198" class="lnkocn">198</a></label>
  <p class="i0" id="o198">
    The first time you boot your live medium, whether CD, DVD, USB key, or PXE boot, some setup in your computer's BIOS may be needed first. Since BIOSes vary greatly in features and key bindings, we cannot get into the topic in depth here. Some BIOSes provide a key to bring up a menu of boot devices at boot time, which is the easiest way if it is available on your system. Otherwise, you need to enter the BIOS configuration menu and change the boot order to place the boot device for the live system before your normal boot device.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="199" href="#199" class="lnkocn">199</a></label>
  <p class="i0" id="o199">
    Once you've booted the medium, you are presented with a boot menu. If you just press enter here, the system will boot using the default entry, <tt>Live</tt> and default options. For more information about boot options, see the "help" entry in the menu and also the <i>live-boot</i> and <i>live-config</i> man pages found within the live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="200" href="#200" class="lnkocn">200</a></label>
  <p class="i0" id="o200">
    Assuming you've selected <tt>Live</tt> and booted a default desktop live image, after the boot messages scroll by, you should be automatically logged into the <tt>user</tt> account and see a desktop, ready to use. If you have booted a console-only image, such as <tt>standard</tt> or <tt>rescue</tt> flavour  <a href="#downloading-prebuilt-images">prebuilt images</a>,  you should be automatically logged in on the console to the <tt>user</tt> account and see a shell prompt, ready to use.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="201" href="#201" class="lnkocn">201</a></label>
  <h5 class="norm" id="o201">
<a name="201"></a>
    <a name="h4.6"></a><a name="using-virtual-machine"></a><a name="husing-virtual-machine">4.6 Using a virtual machine for testing</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="202" href="#202" class="lnkocn">202</a></label>
  <p class="i0" id="o202">
    It can be a great time-saver for the development of live images to run them in a virtual machine (VM). This is not without its caveats:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="203" href="#203" class="lnkocn">203</a></label>
  <li class="bullet" id="o203">
    Running a VM requires enough RAM for both the guest OS and the host and a CPU with hardware support for virtualization is recommended.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="204" href="#204" class="lnkocn">204</a></label>
  <li class="bullet" id="o204">
    There are some inherent limitations to running on a VM, e.g. poor video performance, limited choice of emulated hardware.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="205" href="#205" class="lnkocn">205</a></label>
  <li class="bullet" id="o205">
    When developing for specific hardware, there is no substitute for running on the hardware itself.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="206" href="#206" class="lnkocn">206</a></label>
  <li class="bullet" id="o206">
    Occasionally there are bugs that relate only to running in a VM. When in doubt, test your image directly on the hardware.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="207" href="#207" class="lnkocn">207</a></label>
  <p class="i0" id="o207">
    Provided you can work within these constraints, survey the available VM software and choose one that is suitable for your needs.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="208" href="#208" class="lnkocn">208</a></label>
  <h6 class="norm" id="o208">
<a name="208"></a>
    <a name="h4.6.1"></a><a name="testing-iso-with-qemu"></a><a name="htesting-iso-with-qemu">4.6.1 Testing an ISO image with QEMU</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="209" href="#209" class="lnkocn">209</a></label>
  <p class="i0" id="o209">
    The most versatile VM in Debian is QEMU. If your processor has hardware support for virtualization, use the <i>qemu-kvm</i> package; the <i>qemu-kvm</i> package description briefly lists the requirements.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="210" href="#210" class="lnkocn">210</a></label>
  <p class="i0" id="o210">
    First, install <i>qemu-kvm</i> if your processor supports it. If not, install <i>qemu</i>, in which case the program name is <tt>qemu</tt> instead of <tt>kvm</tt> in the following examples. The <i>qemu-utils</i> package is also valuable for creating virtual disk images with <tt>qemu-img</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="211" href="#211" class="lnkocn">211</a></label>
  <p class="code" id="o211">
    # apt-get install qemu-kvm qemu-utils<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="212" href="#212" class="lnkocn">212</a></label>
  <p class="i0" id="o212">
    Booting an ISO image is simple:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="213" href="#213" class="lnkocn">213</a></label>
  <p class="code" id="o213">
    $ kvm -cdrom binary.hybrid.iso<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="214" href="#214" class="lnkocn">214</a></label>
  <p class="i0" id="o214">
    See the man pages for more details.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="215" href="#215" class="lnkocn">215</a></label>
  <h6 class="norm" id="o215">
<a name="215"></a>
    <a name="h4.6.2"></a><a name="testing-iso-with-virtualbox"></a><a name="htesting-iso-with-virtualbox">4.6.2 Testing an ISO image with virtualbox</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="216" href="#216" class="lnkocn">216</a></label>
  <p class="i0" id="o216">
    In order to test the ISO with <i>virtualbox</i>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="217" href="#217" class="lnkocn">217</a></label>
  <p class="code" id="o217">
    # apt-get install virtualbox virtualbox-qt virtualbox-dkms<br><br>
$ virtualbox<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="218" href="#218" class="lnkocn">218</a></label>
  <p class="i0" id="o218">
    Create a new virtual machine, change the storage settings to use <tt>binary.hybrid.iso</tt> as the CD/DVD device, and start the machine.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="219" href="#219" class="lnkocn">219</a></label>
  <p class="i0" id="o219">
    <b>Note:</b> For live systems containing X.org that you want to test with <i>virtualbox</i>, you may wish to include the VirtualBox X.org driver package, <i>virtualbox-guest-dkms</i> and <i>virtualbox-guest-x11</i>, in your <i>live-build</i> configuration. Otherwise, the resolution is limited to 800x600.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="220" href="#220" class="lnkocn">220</a></label>
  <p class="code" id="o220">
    $ echo "virtualbox-guest-dkms virtualbox-guest-x11" &gt;&gt; config/package-lists/my.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="221" href="#221" class="lnkocn">221</a></label>
  <p class="i0" id="o221">
    In order to make the dkms package work, also the kernel headers for the kernel flavour used in your image need to be installed. Instead of manually listing the correct <i>linux-headers</i> package in above created package list, the selection of the right package can be done automatically by <i>live-build</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="222" href="#222" class="lnkocn">222</a></label>
  <p class="code" id="o222">
      $ lb config --linux-packages "linux-image linux-header"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="223" href="#223" class="lnkocn">223</a></label>
  <h5 class="norm" id="o223">
<a name="223"></a>
    <a name="h4.7"></a><a name="using-hdd-image"></a><a name="husing-hdd-image">4.7 Building and using an HDD image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="224" href="#224" class="lnkocn">224</a></label>
  <p class="i0" id="o224">
    Building an HDD image is similar to an ISO hybrid one in all respects except you specify <tt>-b hdd</tt> and the resulting filename is <tt>binary.img</tt> which cannot be burnt to optical media. It is suitable for booting from USB sticks, USB hard drives, and various other portable storage devices. Normally, an ISO hybrid image can be used for this purpose instead, but if you have a BIOS which does not handle hybrid images properly, you need an HDD image.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="225" href="#225" class="lnkocn">225</a></label>
  <p class="i0" id="o225">
    <b>Note:</b>  if you created an ISO hybrid image with the previous example, you will need to clean up your working directory with the <tt>lb clean</tt> command (see  <a href="#lb-clean">The lb clean command</a>):
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="226" href="#226" class="lnkocn">226</a></label>
  <p class="code" id="o226">
    # lb clean --binary<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="227" href="#227" class="lnkocn">227</a></label>
  <p class="i0" id="o227">
    Run the <tt>lb config</tt> command as before, except this time specifying the HDD image type:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="228" href="#228" class="lnkocn">228</a></label>
  <p class="code" id="o228">
    $ lb config -b hdd<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="229" href="#229" class="lnkocn">229</a></label>
  <p class="i0" id="o229">
    Now build the image with the <tt>lb build</tt> command:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="230" href="#230" class="lnkocn">230</a></label>
  <p class="code" id="o230">
    # lb build<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="231" href="#231" class="lnkocn">231</a></label>
  <p class="i0" id="o231">
    When the build finishes, a <tt>binary.img</tt> file should be present in the current directory.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="232" href="#232" class="lnkocn">232</a></label>
  <p class="i0" id="o232">
    The generated binary image contains a VFAT partition and the syslinux bootloader, ready to be directly written on a USB device. Once again, using an HDD image is just like using an ISO hybrid one on USB. Follow the instructions in  <a href="#using-iso-hybrid">Using an ISO hybrid live image</a>,  except use the filename <tt>binary.img</tt> instead of <tt>binary.hybrid.iso</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="233" href="#233" class="lnkocn">233</a></label>
  <p class="i0" id="o233">
    Likewise, to test an HDD image with Qemu, install <i>qemu</i> as described above in  <a href="#testing-iso-with-qemu">Testing an ISO image with QEMU</a>.  Then run <tt>kvm</tt> or <tt>qemu</tt>, depending on which version your host system needs, specifying <tt>binary.img</tt> as the first hard drive.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="234" href="#234" class="lnkocn">234</a></label>
  <p class="code" id="o234">
    $ kvm -hda binary.img<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="235" href="#235" class="lnkocn">235</a></label>
  <h5 class="norm" id="o235">
<a name="235"></a>
    <a name="h4.8"></a><a name="building-netboot-image"></a><a name="hbuilding-netboot-image">4.8 Building a netboot image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="236" href="#236" class="lnkocn">236</a></label>
  <p class="i0" id="o236">
    The following sequence of commands will create a basic netboot image containing a default live system without X.org. It is suitable for booting over the network.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="237" href="#237" class="lnkocn">237</a></label>
  <p class="i0" id="o237">
    <b>Note:</b> if you performed any previous examples, you will need to clean up your working directory with the <tt>lb clean</tt> command:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="238" href="#238" class="lnkocn">238</a></label>
  <p class="code" id="o238">
    # lb clean<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="239" href="#239" class="lnkocn">239</a></label>
  <p class="i0" id="o239">
    In this specific case, a <tt>lb clean --binary</tt> would be not enough to clean up the necessary stages. The cause for this is that in netboot setups, a different initramfs configuration needs to be used which <i>live-build</i> performs automatically when building netboot images. Since the initramfs creation belongs to the chroot stage, switching to netboot in an existing build directory means to rebuild the chroot stage too. Therefore, <tt>lb clean</tt> (which will remove the chroot stage, too) needs to be used.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="240" href="#240" class="lnkocn">240</a></label>
  <p class="i0" id="o240">
    Run the <tt>lb config</tt> command as follows to configure your image for netbooting:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="241" href="#241" class="lnkocn">241</a></label>
  <p class="code" id="o241">
    $ lb config -b netboot --net-root-path "/srv/debian-live" --net-root-server "192.168.0.1"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="242" href="#242" class="lnkocn">242</a></label>
  <p class="i0" id="o242">
    In contrast with the ISO and HDD images, netbooting does not, itself, serve the filesystem image to the client, so the files must be served via NFS. Different network filesystems can be chosen through lb config. The <tt>--net-root-path</tt> and <tt>--net-root-server</tt> options specify the location and server, respectively, of the NFS server where the filesytem image will be located at boot time. Make sure these are set to suitable values for your network and server.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="243" href="#243" class="lnkocn">243</a></label>
  <p class="i0" id="o243">
    Now build the image with the <tt>lb build</tt> command:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="244" href="#244" class="lnkocn">244</a></label>
  <p class="code" id="o244">
    # lb build<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="245" href="#245" class="lnkocn">245</a></label>
  <p class="i0" id="o245">
    In a network boot, the client runs a small piece of software which usually resides on the EPROM of the Ethernet card. This program sends a DHCP request to get an IP address and information about what to do next. Typically, the next step is getting a higher level bootloader via the TFTP protocol. That could be pxelinux, GRUB, or even boot directly to an operating system like Linux.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="246" href="#246" class="lnkocn">246</a></label>
  <p class="i0" id="o246">
    For example, if you unpack the generated <tt>binary.netboot.tar</tt> archive in the <tt>/srv/debian-live</tt> directory, you'll find the filesystem image in <tt>live/filesystem.squashfs</tt> and the kernel, initrd and pxelinux bootloader in <tt>tftpboot/debian-live/i386</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="247" href="#247" class="lnkocn">247</a></label>
  <p class="i0" id="o247">
    We must now configure three services on the server to enable netboot: the DHCP server, the TFTP server and the NFS server.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="248" href="#248" class="lnkocn">248</a></label>
  <h6 class="norm" id="o248">
<a name="248"></a>
    <a name="4.8.1"></a><a name="h4.8.1"></a><a name="h4.8.1">4.8.1 DHCP server</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="249" href="#249" class="lnkocn">249</a></label>
  <p class="i0" id="o249">
    We must configure our network's DHCP server to be sure to give an IP address to the netbooting client system, and to advertise the location of the PXE bootloader.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="250" href="#250" class="lnkocn">250</a></label>
  <p class="i0" id="o250">
    Here is an example for inspiration, written for the ISC DHCP server <tt>isc-dhcp-server</tt> in the <tt>/etc/dhcp/dhcpd.conf</tt> configuration file:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="251" href="#251" class="lnkocn">251</a></label>
  <p class="code" id="o251">
    # /etc/dhcp/dhcpd.conf - configuration file for isc-dhcp-server<br><br>
ddns-update-style none;<br><br>
option domain-name "example.org";<br>
option domain-name-servers ns1.example.org, ns2.example.org;<br><br>
default-lease-time 600;<br>
max-lease-time 7200;<br><br>
log-facility local7;<br><br>
subnet 192.168.0.0 netmask 255.255.255.0 {<br>
   range 192.168.0.1 192.168.0.254;<br>
   next-server servername;<br>
   filename "pxelinux.0";<br>
}<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="252" href="#252" class="lnkocn">252</a></label>
  <h6 class="norm" id="o252">
<a name="252"></a>
    <a name="4.8.2"></a><a name="h4.8.2"></a><a name="h4.8.2">4.8.2 TFTP server</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="253" href="#253" class="lnkocn">253</a></label>
  <p class="i0" id="o253">
    This serves the kernel and initial ramdisk to the system at run time.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="254" href="#254" class="lnkocn">254</a></label>
  <p class="i0" id="o254">
    You should install the <i>tftpd-hpa</i> package. It can serve all files contained inside a root directory, usually <tt>/srv/tftp</tt>. To let it serve files inside <tt>/srv/debian-live/tftpboot</tt>, run as root the following command:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="255" href="#255" class="lnkocn">255</a></label>
  <p class="code" id="o255">
    # dpkg-reconfigure -plow tftpd-hpa<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="256" href="#256" class="lnkocn">256</a></label>
  <p class="i0" id="o256">
    and fill in the new tftp server directory when being asked about it.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="257" href="#257" class="lnkocn">257</a></label>
  <h6 class="norm" id="o257">
<a name="257"></a>
    <a name="4.8.3"></a><a name="h4.8.3"></a><a name="h4.8.3">4.8.3 NFS server</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="258" href="#258" class="lnkocn">258</a></label>
  <p class="i0" id="o258">
    Once the guest computer has downloaded and booted a Linux kernel and loaded its initrd, it will try to mount the Live filesystem image through a NFS server.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="259" href="#259" class="lnkocn">259</a></label>
  <p class="i0" id="o259">
    You need to install the <i>nfs-kernel-server</i> package.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="260" href="#260" class="lnkocn">260</a></label>
  <p class="i0" id="o260">
    Then, make the filesystem image available through NFS by adding a line like the following to <tt>/etc/exports</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="261" href="#261" class="lnkocn">261</a></label>
  <p class="code" id="o261">
    /srv/debian-live *(ro,async,no_root_squash,no_subtree_check)<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="262" href="#262" class="lnkocn">262</a></label>
  <p class="i0" id="o262">
    and tell the NFS server about this new export with the following command:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="263" href="#263" class="lnkocn">263</a></label>
  <p class="code" id="o263">
    # exportfs -rv<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="264" href="#264" class="lnkocn">264</a></label>
  <p class="i0" id="o264">
    Setting up these three services can be a little tricky. You might need some patience to get all of them working together. For more information, see the syslinux wiki at ‹<a href="http://www.syslinux.org/wiki/index.php/PXELINUX" target="_top">http://www.syslinux.org/wiki/index.php/PXELINUX</a>› or the Debian Installer Manual's TFTP Net Booting section at ‹<a href="http://d-i.alioth.debian.org/manual/en.i386/ch04s05.html" target="_top">http://d-i.alioth.debian.org/manual/en.i386/ch04s05.html</a>›. They might help, as their processes are very similar.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="265" href="#265" class="lnkocn">265</a></label>
  <h6 class="norm" id="o265">
<a name="265"></a>
    <a name="4.8.4"></a><a name="h4.8.4"></a><a name="h4.8.4">4.8.4 Netboot testing HowTo</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="266" href="#266" class="lnkocn">266</a></label>
  <p class="i0" id="o266">
    Netboot image creation is made easy with <i>live-build</i>, but testing the images on physical machines can be really time consuming.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="267" href="#267" class="lnkocn">267</a></label>
  <p class="i0" id="o267">
    To make our life easier, we can use virtualization.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="268" href="#268" class="lnkocn">268</a></label>
  <h6 class="norm" id="o268">
<a name="268"></a>
    <a name="4.8.5"></a><a name="h4.8.5"></a><a name="h4.8.5">4.8.5 Qemu</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="269" href="#269" class="lnkocn">269</a></label>
  <li class="bullet" id="o269">
    Install <i>qemu</i>, <i>bridge-utils</i>, <i>sudo</i>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="270" href="#270" class="lnkocn">270</a></label>
  <p class="i0" id="o270">
    Edit <tt>/etc/qemu-ifup</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="271" href="#271" class="lnkocn">271</a></label>
  <p class="code" id="o271">
    #!/bin/sh<br>
sudo -p "Password for $0:" /sbin/ifconfig $1 172.20.0.1<br>
echo "Executing /etc/qemu-ifup"<br>
echo "Bringing up $1 for bridged mode..."<br>
sudo /sbin/ifconfig $1 0.0.0.0 promisc up<br>
echo "Adding $1 to br0..."<br>
sudo /usr/sbin/brctl addif br0 $1<br>
sleep 2<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="272" href="#272" class="lnkocn">272</a></label>
  <p class="i0" id="o272">
    Get, or build a <tt>grub-floppy-netboot</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="273" href="#273" class="lnkocn">273</a></label>
  <p class="i0" id="o273">
    Launch <tt>qemu</tt> with "<tt>-net nic,vlan=0 -net tap,vlan=0,ifname=tun0</tt>"
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="274" href="#274" class="lnkocn">274</a></label>
  <h4 class="norm" id="o274">
<a name="274"></a>
    <a name="h5"></a><a name="overview_of_tools"></a><a name="overview-of-tools"></a><a name="hoverview-of-tools">5. Overview of tools</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="275" href="#275" class="lnkocn">275</a></label>
  <p class="i0" id="o275">
    This chapter contains an overview of the three main tools used in building Debian Live systems: <i>live-build</i>, <i>live-boot</i> and <i>live-config</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="276" href="#276" class="lnkocn">276</a></label>
  <h5 class="norm" id="o276">
<a name="276"></a>
    <a name="h5.1"></a><a name="live-build"></a><a name="hlive-build">5.1 The live-build package</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="277" href="#277" class="lnkocn">277</a></label>
  <p class="i0" id="o277">
    <i>live-build</i> is a collection of scripts to build Debian Live systems. These scripts are also referred to as "commands".
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="278" href="#278" class="lnkocn">278</a></label>
  <p class="i0" id="o278">
    The idea behind <i>live-build</i> is to be a framework that uses a configuration directory to completely automate and customize all aspects of building a Live image.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="279" href="#279" class="lnkocn">279</a></label>
  <p class="i0" id="o279">
    Many concepts are similar to those used to build Debian packages with <i>debhelper</i>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="280" href="#280" class="lnkocn">280</a></label>
  <li class="bullet" id="o280">
    The scripts have a central location for configuring their operation. In <i>debhelper</i>, this is the <tt>debian/</tt> subdirectory of a package tree. For example, dh_install will look, amongst others, for a file called <tt>debian/install</tt> to determine which files should exist in a particular binary package. In much the same way, <i>live-build</i> stores its configuration entirely under a <tt>config/</tt> subdirectory.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="281" href="#281" class="lnkocn">281</a></label>
  <li class="bullet" id="o281">
    The scripts are independent - that is to say, it is always safe to run each command.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="282" href="#282" class="lnkocn">282</a></label>
  <p class="i0" id="o282">
    Unlike <i>debhelper</i>, <i>live-build</i> contains a tool to generate a skeleton configuration directory, <tt>lb config</tt>. This could be considered to be similar to tools such as <i>dh-make</i>. For more information about <tt>lb config</tt>, please see  <a href="#lb-config">The lb config command</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="283" href="#283" class="lnkocn">283</a></label>
  <p class="i0" id="o283">
    The remainder of this section discusses the three most important commands:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="284" href="#284" class="lnkocn">284</a></label>
  <li class="bullet" id="o284">
    <b>lb config</b>: Responsible for initializing a Live system configuration directory. See  <a href="#lb-config">The lb config command</a>  for more information.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="285" href="#285" class="lnkocn">285</a></label>
  <li class="bullet" id="o285">
    <b>lb build</b>: Responsible for starting a Live system build. See  <a href="#lb-build">The lb build command</a>  for more information.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="286" href="#286" class="lnkocn">286</a></label>
  <li class="bullet" id="o286">
    <b>lb clean</b>: Responsible for removing parts of a Live system build. See  <a href="#lb-clean">The lb clean command</a>  for more information.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="287" href="#287" class="lnkocn">287</a></label>
  <h6 class="norm" id="o287">
<a name="287"></a>
    <a name="h5.1.1"></a><a name="lb-config"></a><a name="hlb-config">5.1.1 The <tt>lb config</tt> command</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="288" href="#288" class="lnkocn">288</a></label>
  <p class="i0" id="o288">
    As discussed in  <a href="#live-build">live-build</a>,  the scripts that make up <i>live-build</i> read their configuration with the <tt>source</tt> command from a single directory named <tt>config/</tt>. As constructing this directory by hand would be time-consuming and error-prone, the <tt>lb config</tt> command can be used to create skeleton configuration folders.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="289" href="#289" class="lnkocn">289</a></label>
  <p class="i0" id="o289">
    Issuing <tt>lb config</tt> without any arguments creates a <tt>config/</tt> subdirectory which it populates with some default settings, and a skeleton <tt>auto/</tt> subdirectory tree.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="290" href="#290" class="lnkocn">290</a></label>
  <p class="code" id="o290">
    $ lb config<br>
[2013-01-01 09:14:22] lb_config<br>
P: Considering defaults defined in /etc/live/build.conf<br>
P: Creating config tree for a debian/i386 system<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="291" href="#291" class="lnkocn">291</a></label>
  <p class="i0" id="o291">
    Using <tt>lb config</tt> without any arguments would be suitable for users who need a very basic image, or who intend to later provide a more complete configuration via <tt>auto/config</tt> (see  <a href="#managing-a-configuration">Managing a configuration</a>  for details).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="292" href="#292" class="lnkocn">292</a></label>
  <p class="i0" id="o292">
    Normally, you will want to specify some options. For example, to specify which distribution you want to build using its codename:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="293" href="#293" class="lnkocn">293</a></label>
  <p class="code" id="o293">
    $ lb config --distribution sid<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="294" href="#294" class="lnkocn">294</a></label>
  <p class="i0" id="o294">
    It is possible to specify many options, such as:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="295" href="#295" class="lnkocn">295</a></label>
  <p class="code" id="o295">
    $ lb config --binary-images netboot --bootappend-live "boot=live config hostname=live-host username=live-user" ...<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="296" href="#296" class="lnkocn">296</a></label>
  <p class="i0" id="o296">
    A full list of options is available in the <tt>lb_config</tt> man page.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="297" href="#297" class="lnkocn">297</a></label>
  <h6 class="norm" id="o297">
<a name="297"></a>
    <a name="h5.1.2"></a><a name="lb-build"></a><a name="hlb-build">5.1.2 The <tt>lb build</tt> command</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="298" href="#298" class="lnkocn">298</a></label>
  <p class="i0" id="o298">
    The <tt>lb build</tt> command reads in your configuration from the <tt>config/</tt> directory. It then runs the lower level commands needed to build your Live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="299" href="#299" class="lnkocn">299</a></label>
  <h6 class="norm" id="o299">
<a name="299"></a>
    <a name="h5.1.3"></a><a name="lb-clean"></a><a name="hlb-clean">5.1.3 The <tt>lb clean</tt> command</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="300" href="#300" class="lnkocn">300</a></label>
  <p class="i0" id="o300">
    It is the job of the <tt>lb clean</tt> command to remove various parts of a build so subsequent builds can start from a clean state. By default, <tt>chroot</tt>, <tt>binary</tt> and <tt>source</tt> stages are cleaned, but the cache is left intact. Also, individual stages can be cleaned. For example, if you have made changes that only affect the binary stage, use <tt>lb clean --binary</tt> prior to building a new binary. See the <tt>lb_clean</tt> man page for a full list of options.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="301" href="#301" class="lnkocn">301</a></label>
  <h5 class="norm" id="o301">
<a name="301"></a>
    <a name="h5.2"></a><a name="live-boot"></a><a name="hlive-boot">5.2 The live-boot package</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="302" href="#302" class="lnkocn">302</a></label>
  <p class="i0" id="o302">
    <i>live-boot</i> is a collection of scripts providing hooks for the <i>initramfs-tools</i>, used to generate an initramfs capable of booting live systems, such as those created by <i>live-build</i>. This includes the Debian Live ISOs, netboot tarballs, and USB stick images.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="303" href="#303" class="lnkocn">303</a></label>
  <p class="i0" id="o303">
    At boot time it will look for read-only media containing a <tt>/live/</tt> directory where a root filesystem (often a compressed filesystem image like squashfs) is stored. If found, it will create a writable environment, using aufs, for Debian like systems to boot from.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="304" href="#304" class="lnkocn">304</a></label>
  <p class="i0" id="o304">
    More information on initial ramfs in Debian can be found in the Debian Linux Kernel Handbook at ‹<a href="http://kernel-handbook.alioth.debian.org/" target="_top">http://kernel-handbook.alioth.debian.org/</a>› in the chapter on initramfs.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="305" href="#305" class="lnkocn">305</a></label>
  <h5 class="norm" id="o305">
<a name="305"></a>
    <a name="h5.3"></a><a name="live-config"></a><a name="hlive-config">5.3 The live-config package</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="306" href="#306" class="lnkocn">306</a></label>
  <p class="i0" id="o306">
    <i>live-config</i> consists of the scripts that run at boot time after <i>live-boot</i> to configure the live system automatically. It handles such tasks as setting the hostname, locales and timezone, creating the live user, inhibiting cron jobs and performing autologin of the live user.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="307" href="#307" class="lnkocn">307</a></label>
  <h4 class="norm" id="o307">
<a name="307"></a>
    <a name="h6"></a><a name="managing_a_configuration"></a><a name="managing-a-configuration"></a><a name="hmanaging-a-configuration">6. Managing a configuration</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="308" href="#308" class="lnkocn">308</a></label>
  <p class="i0" id="o308">
    This chapter explains how to manage a live configuration from initial creation, through successive revisions and successive releases of both the <i>live-build</i> software and the live image itself.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="309" href="#309" class="lnkocn">309</a></label>
  <h5 class="norm" id="o309">
<a name="309"></a>
    <a name="6.1"></a><a name="h6.1"></a><a name="h6.1">6.1 Dealing with configuration changes</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="310" href="#310" class="lnkocn">310</a></label>
  <p class="i0" id="o310">
    Live configurations rarely are perfect on the first try. It may be fine to pass <tt>lb config</tt> options from the command-line to perform a single build, but it is more typical to revise those options and build again until you are satisfied. To support these changes, you will need auto scripts which ensure your configuration is kept in a consistent state.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="311" href="#311" class="lnkocn">311</a></label>
  <h6 class="norm" id="o311">
<a name="311"></a>
    <a name="6.1.1"></a><a name="h6.1.1"></a><a name="h6.1.1">6.1.1 Why use auto scripts? What do they do?</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="312" href="#312" class="lnkocn">312</a></label>
  <p class="i0" id="o312">
    The <tt>lb config</tt> command stores the options you pass to it in <tt>config/*</tt> files along with many other options set to default values. If you run <tt>lb config</tt> again, it will not reset any option that was defaulted based on your initial options. So, for example, if you run <tt>lb config</tt> again with a new value for <tt>--distribution</tt>, any dependent options that were defaulted for the old distribution may no longer work with the new. Nor are these files intended to be read or edited. They store values for over a hundred options, so nobody, let alone yourself, will be able to see in these which options you actually specified. And finally, if you run <tt>lb config</tt>, then upgrade <i>live-build</i> and it happens to rename an option, <tt>config/*</tt> would still contain variables named after the old option that are no longer valid.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="313" href="#313" class="lnkocn">313</a></label>
  <p class="i0" id="o313">
    For all these reasons, <tt>auto/*</tt> scripts will make your life easier. They are simple wrappers to the <tt>lb config</tt>, <tt>lb build</tt> and <tt>lb clean</tt> commands that are designed to help you manage your configuration. The <tt>auto/config</tt> script stores your <tt>lb config</tt> command with all desired options, the <tt>auto/clean</tt> script removes the files containing configuration variable values, and the <tt>auto/build</tt> script keeps a <tt>build.log</tt> of each build. Each of these scripts is run automatically every time you run the corresponding <tt>lb</tt> command. By using these scripts, your configuration is easier to read and is kept internally consistent from one revision to the next. Also, it will be much easier for you identify and fix options which need to change when you upgrade <i>live-build</i> after reading the updated documentation.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="314" href="#314" class="lnkocn">314</a></label>
  <h6 class="norm" id="o314">
<a name="314"></a>
    <a name="6.1.2"></a><a name="h6.1.2"></a><a name="h6.1.2">6.1.2 Use example auto scripts</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="315" href="#315" class="lnkocn">315</a></label>
  <p class="i0" id="o315">
    For your convenience, <i>live-build</i> comes with example auto shell scripts to copy and edit. Start a new, default configuration, then copy the examples into it:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="316" href="#316" class="lnkocn">316</a></label>
  <p class="code" id="o316">
    $ mkdir mylive &amp;&amp; cd mylive &amp;&amp; lb config<br>
$ cp /usr/share/doc/live-build/examples/auto/* auto/<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="317" href="#317" class="lnkocn">317</a></label>
  <p class="i0" id="o317">
    Edit <tt>auto/config</tt>, adding any options as you see fit. For instance:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="318" href="#318" class="lnkocn">318</a></label>
  <p class="code" id="o318">
    #!/bin/sh<br>
lb config noauto \<br>
     --architectures i386 \<br>
     --linux-flavours 686-pae \<br>
     --binary-images hdd \<br>
     --mirror-bootstrap http://ftp.ch.debian.org/debian/ \<br>
     --mirror-binary http://ftp.ch.debian.org/debian/ \<br>
     "${@}"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="319" href="#319" class="lnkocn">319</a></label>
  <p class="i0" id="o319">
    Now, each time you use <tt>lb config</tt>, <tt>auto/config</tt> will reset the configuration based on these options. When you want to make changes to them, edit the options in this file instead of passing them to <tt>lb config</tt>. When you use <tt>lb clean</tt>, <tt>auto/clean</tt> will clean up the <tt>config/*</tt> files along with any other build products. And finally, when you use <tt>lb build</tt>, a log of the build will be written by <tt>auto/build</tt> in <tt>build.log</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="320" href="#320" class="lnkocn">320</a></label>
  <p class="i0" id="o320">
    <b>Note:</b> A special <tt>noauto</tt> parameter is used here to suppress another call to <tt>auto/config</tt>, thereby preventing infinite recursion. Make sure you don't accidentally remove it when making edits. Also, take care to ensure when you split the <tt>lb config</tt> command across multiple lines for readability, as shown in the example above, that you don't forget the backslash (\) at the end of each line that continues to the next.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="321" href="#321" class="lnkocn">321</a></label>
  <h5 class="norm" id="o321">
<a name="321"></a>
    <a name="h6.2"></a><a name="clone-configuration-via-git"></a><a name="hclone-configuration-via-git">6.2 Clone a configuration published via Git</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="322" href="#322" class="lnkocn">322</a></label>
  <p class="i0" id="o322">
    Use the <tt>lb config --config</tt> option to clone a Git repository that contains a Debian Live configuration. If you would like to base your configuration on one maintained by the Debian Live project, look at ‹<a href="http://live.debian.net/gitweb/" target="_top">http://live.debian.net/gitweb/</a>› for the repository named <tt>live-images</tt> in the category <tt>Packages</tt>. This repository contains the configurations for the Debian Live  <a href="#downloading-prebuilt-images">prebuilt images</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="323" href="#323" class="lnkocn">323</a></label>
  <p class="i0" id="o323">
    For example, to build a rescue image, use the <tt>live-images</tt> repository as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="324" href="#324" class="lnkocn">324</a></label>
  <p class="code" id="o324">
    $ mkdir live-images &amp;&amp; cd live-images<br>
$ lb config --config git://live.debian.net/git/live-images.git<br>
$ cd images/rescue<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="325" href="#325" class="lnkocn">325</a></label>
  <p class="i0" id="o325">
    Edit <tt>auto/config</tt> and any other things you need in the <tt>config</tt> tree to suit your needs. For example, the unofficial non-free prebuilt images are made by simply adding <tt>--archive-areas "main contrib non-free"</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="326" href="#326" class="lnkocn">326</a></label>
  <p class="i0" id="o326">
    You may optionally define a shortcut in your Git configuration by adding the following to your <tt>${HOME}/.gitconfig</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="327" href="#327" class="lnkocn">327</a></label>
  <p class="code" id="o327">
    [url "git://live.debian.net/git/"]<br>
         insteadOf = ldn:<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="328" href="#328" class="lnkocn">328</a></label>
  <p class="i0" id="o328">
    This enables you to use <tt>ldn:</tt> anywhere you need to specify the address of a <tt>live.debian.net</tt> git repository. If you also drop the optional <tt>.git</tt> suffix, starting a new image using this configuration is as easy as:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="329" href="#329" class="lnkocn">329</a></label>
  <p class="code" id="o329">
    $ lb config --config ldn:live-images<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="330" href="#330" class="lnkocn">330</a></label>
  <p class="i0" id="o330">
    Cloning the entire <tt>live-images</tt> repository pulls the configurations used for several images. If you feel like building a different image after you have finished with the first one, change to another directory and again and optionally, make any changes to suit your needs.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="331" href="#331" class="lnkocn">331</a></label>
  <p class="i0" id="o331">
    In any case, remember that every time you will have to build the image as superuser: <tt>lb build</tt>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="332" href="#332" class="lnkocn">332</a></label>
  <h4 class="norm" id="o332">
<a name="332"></a>
    <a name="h7"></a><a name="customization_overview"></a><a name="customization-overview"></a><a name="hcustomization-overview">7. Customization overview</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="333" href="#333" class="lnkocn">333</a></label>
  <p class="i0" id="o333">
    This chapter gives an overview of the various ways in which you may customize a Debian Live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="334" href="#334" class="lnkocn">334</a></label>
  <h5 class="norm" id="o334">
<a name="334"></a>
    <a name="7.1"></a><a name="h7.1"></a><a name="h7.1">7.1 Build time vs. boot time configuration</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="335" href="#335" class="lnkocn">335</a></label>
  <p class="i0" id="o335">
    Live system configuration options are divided into build-time options which are options that are applied at build time and boot-time options which are applied at boot time. Boot-time options are further divided into those occurring early in the boot, applied by the <i>live-boot</i> package, and those that happen later in the boot, applied by <i>live-config</i>. Any boot-time option may be modified by the user by specifying it at the boot prompt. The image may also be built with default boot parameters so users can normally just boot directly to the live system without specifying any options when all of the defaults are suitable. In particular, the argument to <tt>lb --bootappend-live</tt> consists of any default kernel command line options for the Live system, such as persistence, keyboard layouts, or timezone. See  <a href="#customizing-locale-and-language">Customizing locale and language</a>,  for example.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="336" href="#336" class="lnkocn">336</a></label>
  <p class="i0" id="o336">
    Build-time configuration options are described in the <tt>lb config</tt> man page. Boot-time options are described in the man pages for <i>live-boot</i> and <i>live-config</i>. Although the <i>live-boot</i> and <i>live-config</i> packages are installed within the live system you are building, it is recommended that you also install them on your build system for easy reference when you are working on your configuration. It is safe to do so, as none of the scripts contained within them are executed unless the system is configured as a live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="337" href="#337" class="lnkocn">337</a></label>
  <h5 class="norm" id="o337">
<a name="337"></a>
    <a name="h7.2"></a><a name="stages-of-the-build"></a><a name="hstages-of-the-build">7.2 Stages of the build</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="338" href="#338" class="lnkocn">338</a></label>
  <p class="i0" id="o338">
    The build process is divided into stages, with various customizations applied in sequence in each. The first stage to run is the <b>bootstrap</b> stage. This is the initial phase of populating the chroot directory with packages to make a barebones Debian system. This is followed by the <b>chroot</b> stage, which completes the construction of chroot directory, populating it with all of the packages listed in the configuration, along with any other materials. Most customization of content occurs in this stage. The final stage of preparing the live image is the <b>binary</b> stage, which builds a bootable image, using the contents of the chroot directory to construct the root filesystem for the Live system, and including the installer and any other additional material on the target medium outside of the Live system's filesystem. After the live image is built, if enabled, the source tarball is built in the <b>source</b> stage.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="339" href="#339" class="lnkocn">339</a></label>
  <p class="i0" id="o339">
    Within each of these stages, there is a particular sequence in which commands are applied. These are arranged in such a way as to ensure customizations can be layered in a reasonable fashion. For example, within the <b>chroot</b> stage, preseeds are applied before any packages are installed, packages are installed before any locally included files are copied, and hooks are run later, after all of the materials are in place.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="340" href="#340" class="lnkocn">340</a></label>
  <h5 class="norm" id="o340">
<a name="340"></a>
    <a name="7.3"></a><a name="h7.3"></a><a name="h7.3">7.3 Supplement lb config with files</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="341" href="#341" class="lnkocn">341</a></label>
  <p class="i0" id="o341">
    Although <tt>lb config</tt> creates a skeletal configuration in the config/ directory, to accomplish your goals, you may need to provide additional files in subdirectories of config/. Depending on where the files are stored in the configuration, they may be copied into the live system's filesystem or into the binary image filesystem, or may provide build-time configurations of the system that would be cumbersome to pass as command-line options. You may include things such as custom lists of packages, custom artwork, or hook scripts to run either at build time or at boot time, boosting the already considerable flexibility of debian-live with code of your own.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="342" href="#342" class="lnkocn">342</a></label>
  <h5 class="norm" id="o342">
<a name="342"></a>
    <a name="7.4"></a><a name="h7.4"></a><a name="h7.4">7.4 Customization tasks</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="343" href="#343" class="lnkocn">343</a></label>
  <p class="i0" id="o343">
    The following chapters are organized by the kinds of customization task users typically perform:  <a href="#customizing-package-installation">Customizing package installation</a>,   <a href="#customizing-contents">Customizing contents</a>  and  <a href="#customizing-locale-and-language">Customizing locale and language</a>  cover just a few of the things you might want to do.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="344" href="#344" class="lnkocn">344</a></label>
  <h4 class="norm" id="o344">
<a name="344"></a>
    <a name="h8"></a><a name="customizing_package_installation"></a><a name="customizing-package-installation"></a><a name="hcustomizing-package-installation">8. Customizing package installation</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="345" href="#345" class="lnkocn">345</a></label>
  <p class="i0" id="o345">
    Perhaps the most basic customization of a Debian live system is the selection of packages to be included in the image. This chapter guides you through the various build-time options to customize <i>live-build</i>' s installation of packages. The broadest choices influencing which packages are available to install in the image are the distribution and archive areas. To ensure decent download speeds, you should choose a nearby distribution mirror. You can also add your own repositories for backports, experimental or custom packages, or include packages directly as files. You can define lists of packages, including metapackages which will install many related packages at once, such as packages for a particular desktop or language. Finally, a number of options give some control over <i>apt</i>, or if you prefer, <i>aptitude</i>, at build time when packages are installed. You may find these handy if you use a proxy, want to disable installation of recommended packages to save space, or need to control which versions of packages are installed via APT pinning, to name a few possibilities.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="346" href="#346" class="lnkocn">346</a></label>
  <h5 class="norm" id="o346">
<a name="346"></a>
    <a name="8.1"></a><a name="h8.1"></a><a name="h8.1">8.1 Package sources</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="347" href="#347" class="lnkocn">347</a></label>
  <h6 class="norm" id="o347">
<a name="347"></a>
    <a name="8.1.1"></a><a name="h8.1.1"></a><a name="h8.1.1">8.1.1 Distribution, archive areas and mode</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="348" href="#348" class="lnkocn">348</a></label>
  <p class="i0" id="o348">
    The distribution you choose has the broadest impact on which packages are available to include in your live image. Specify the codename, which defaults to <b>wheezy</b> for the <b>wheezy</b> version of <i>live-build</i>. Any current distribution carried in the Debian archive may be specified by its codename here. (See  <a href="#terms">Terms</a>  for more details.) The <tt>--distribution</tt> option not only influences the source of packages within the archive, but also instructs <i>live-build</i> to behave as needed to build each supported distribution. For example, to build against the <b>unstable</b> release, <b>sid</b>, specify:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="349" href="#349" class="lnkocn">349</a></label>
  <p class="code" id="o349">
    $ lb config --distribution sid<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="350" href="#350" class="lnkocn">350</a></label>
  <p class="i0" id="o350">
    Within the distribution archive, archive areas are major divisions of the archive. In Debian, these are <tt>main</tt>, <tt>contrib</tt> and <tt>non-free</tt>. Only <tt>main</tt> contains software that is part of the Debian distribution, hence that is the default. One or more values may be specified, e.g.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="351" href="#351" class="lnkocn">351</a></label>
  <p class="code" id="o351">
    $ lb config --archive-areas "main contrib non-free"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="352" href="#352" class="lnkocn">352</a></label>
  <p class="i0" id="o352">
    Experimental support is available for some Debian derivatives through a <tt>--mode</tt> option. By default, this option is set to <tt>debian</tt> only if you are building on a Debian or on an unknown system. If <tt>lb config</tt> is invoked on any of the supported derivatives, it will default to create an image of that derivative. If <tt>lb config</tt> is run in e.g. <tt>ubuntu</tt> mode, the distribution names and archive areas for the specified derivative are supported instead of the ones for Debian. The mode also modifies <i>live-build</i> behaviour to suit the derivatives.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="353" href="#353" class="lnkocn">353</a></label>
  <p class="i0" id="o353">
    <b>Note:</b> The projects for whom these modes were added are primarily responsible for supporting users of these options. The Debian live project, in turn, provides development support on a best-effort basis only, based on feedback from the derivative projects as we do not develop or support these derivatives ourselves.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="354" href="#354" class="lnkocn">354</a></label>
  <h6 class="norm" id="o354">
<a name="354"></a>
    <a name="8.1.2"></a><a name="h8.1.2"></a><a name="h8.1.2">8.1.2 Distribution mirrors</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="355" href="#355" class="lnkocn">355</a></label>
  <p class="i0" id="o355">
    The Debian archive is replicated across a large network of mirrors around the world so that people in each region can choose a nearby mirror for best download speed. Each of the <tt>--mirror-*</tt> options governs which distribution mirror is used at various stages of the build. Recall from  <a href="#stages-of-the-build">Stages of the build</a>  that the <b>bootstrap</b> stage is when the chroot is initially populated by <i>debootstrap</i> with a minimal system, and the <b>chroot</b> stage is when the chroot used to construct the live system's filesystem is built. Thus, the corresponding mirror switches are used for those stages, and later, in the <b>binary</b> stage, the <tt>--mirror-binary</tt> and <tt>--mirror-binary-security</tt> values are used, superseding any mirrors used in an earlier stage.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="356" href="#356" class="lnkocn">356</a></label>
  <h6 class="norm" id="o356">
<a name="356"></a>
    <a name="h8.1.3"></a><a name="distribution-mirrors-build-time"></a><a name="hdistribution-mirrors-build-time">8.1.3 Distribution mirrors used at build time</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="357" href="#357" class="lnkocn">357</a></label>
  <p class="i0" id="o357">
    To set the distribution mirrors used at build time to point at a local mirror, it is sufficient to set <tt>--mirror-bootstrap</tt>, <tt>--mirror-chroot-security</tt> and <tt>--mirror-chroot-backports</tt> as follows.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="358" href="#358" class="lnkocn">358</a></label>
  <p class="code" id="o358">
    $ lb config --mirror-bootstrap http://localhost/debian/ \<br>
          --mirror-chroot-security http://localhost/debian-security/ \<br>
          --mirror-chroot-backports http://localhost/debian-backports/<br> <br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="359" href="#359" class="lnkocn">359</a></label>
  <p class="i0" id="o359">
    The chroot mirror, specified by <tt>--mirror-chroot</tt>, defaults to the <tt>--mirror-bootstrap</tt> value.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="360" href="#360" class="lnkocn">360</a></label>
  <h6 class="norm" id="o360">
<a name="360"></a>
    <a name="8.1.4"></a><a name="h8.1.4"></a><a name="h8.1.4">8.1.4 Distribution mirrors used at run time</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="361" href="#361" class="lnkocn">361</a></label>
  <p class="i0" id="o361">
    The <tt>--mirror-binary*</tt> options govern the distribution mirrors placed in the binary image. These may be used to install additional packages while running the live system. The defaults employ <tt>http.debian.net</tt>, a service that chooses a geographically close mirror based, among other things, on the user's IP family and the availability of the mirrors. This is a suitable choice when you cannot predict which mirror will be best for all of your users. Or you may specify your own values as shown in the example below. An image built from this configuration would only be suitable for users on a network where "<tt>mirror</tt>" is reachable.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="362" href="#362" class="lnkocn">362</a></label>
  <p class="code" id="o362">
    $ lb config --mirror-binary http://mirror/debian/ \<br>
          --mirror-binary-security http://mirror/debian-security/ \<br>
          --mirror-binary-backports http://mirror/debian-backports/<br> <br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="363" href="#363" class="lnkocn">363</a></label>
  <h6 class="norm" id="o363">
<a name="363"></a>
    <a name="h8.1.5"></a><a name="additional-repositories"></a><a name="hadditional-repositories">8.1.5 Additional repositories</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="364" href="#364" class="lnkocn">364</a></label>
  <p class="i0" id="o364">
    You may add more repositories, broadening your package choices beyond what is available in your target distribution. These may be, for example, for backports, experimental or custom packages. To configure additional repositories, create <tt>config/archives/your-repository.list.chroot</tt>, and/or <tt>config/archives/your-repository.list.binary</tt> files. As with the <tt>--mirror-*</tt> options, these govern the repositories used in the <b>chroot</b> stage when building the image, and in the <b>binary</b> stage, i.e. for use when running the live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="365" href="#365" class="lnkocn">365</a></label>
  <p class="i0" id="o365">
    For example, <tt>config/archives/live.list.chroot</tt> allows you to install packages from the debian-live snapshot repository at live system build time.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="366" href="#366" class="lnkocn">366</a></label>
  <p class="code" id="o366">
    deb http://live.debian.net/ sid-snapshots main contrib non-free<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="367" href="#367" class="lnkocn">367</a></label>
  <p class="i0" id="o367">
    If you add the same line to <tt>config/archives/live.list.binary</tt>, the repository will be added to your live system's <tt>/etc/apt/sources.list.d/</tt> directory.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="368" href="#368" class="lnkocn">368</a></label>
  <p class="i0" id="o368">
    If such files exist, they will be picked up automatically.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="369" href="#369" class="lnkocn">369</a></label>
  <p class="i0" id="o369">
    You should also put the GPG key used to sign the repository into <tt>config/archives/your-repository.key.{binary,chroot}</tt> files.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="370" href="#370" class="lnkocn">370</a></label>
  <p class="i0" id="o370">
    Should you need custom APT pinning, such APT preferences snippets can be placed in <tt>config/archives/your-repository.pref.{binary,chroot}</tt> files and will be automatically added to your live system's <tt>/etc/apt/preferences.d/</tt> directory.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="371" href="#371" class="lnkocn">371</a></label>
  <p class="i0" id="o371">
    <b>Note:</b> some preconfigured package repositories are available for easy selection through the <tt>--archives</tt> option, e.g. for enabling live snapshots, a simple command is enough to enable it:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="372" href="#372" class="lnkocn">372</a></label>
  <p class="code" id="o372">
    $ lb config --archives live.debian.net<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="373" href="#373" class="lnkocn">373</a></label>
  <h5 class="norm" id="o373">
<a name="373"></a>
    <a name="h8.2"></a><a name="choosing-packages-to-install"></a><a name="hchoosing-packages-to-install">8.2 Choosing packages to install</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="374" href="#374" class="lnkocn">374</a></label>
  <p class="i0" id="o374">
    There are a number of ways to choose which packages <i>live-build</i> will install in your image, covering a variety of different needs. You can simply name individual packages to install in a package list. You can also use metapackages in those lists, or select them using package control file fields. And finally, you may place package files in your <tt>config/</tt> tree, which is well suited to testing of new or experimental packages before they are available from a repository.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="375" href="#375" class="lnkocn">375</a></label>
  <h6 class="norm" id="o375">
<a name="375"></a>
    <a name="h8.2.1"></a><a name="package-lists"></a><a name="hpackage-lists">8.2.1 Package lists</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="376" href="#376" class="lnkocn">376</a></label>
  <p class="i0" id="o376">
    Package lists are a powerful way of expressing which packages should be installed. The list syntax supports conditional sections which makes it easy to build lists and adapt them for use in multiple configurations. Package names may also be injected into the list using shell helpers at build time.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="377" href="#377" class="lnkocn">377</a></label>
  <p class="i0" id="o377">
    <b>Note:</b>  The behaviour of <i>live-build</i> when specifying a package that does not exist is determined by your choice of APT utility. See  <a href="#choosing-apt-or-aptitude">Choosing apt or aptitude</a>  for more details.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="378" href="#378" class="lnkocn">378</a></label>
  <h6 class="norm" id="o378">
<a name="378"></a>
    <a name="h8.2.2"></a><a name="using-metapackages"></a><a name="husing-metapackages">8.2.2 Using metapackages</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="379" href="#379" class="lnkocn">379</a></label>
  <p class="i0" id="o379">
    The simplest way to populate your package list is to use a task metapackage maintained by your distribution. For example:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="380" href="#380" class="lnkocn">380</a></label>
  <p class="code" id="o380">
    $ lb config<br>
$ echo task-gnome-desktop &gt; config/package-lists/desktop.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="381" href="#381" class="lnkocn">381</a></label>
  <p class="i0" id="o381">
    This supercedes the older predefined list method supported in <tt>live-build</tt> 2.x. Unlike predefined lists, task metapackages are not specific to the Debian Live project. Instead, they are maintained by specialist working groups within the distribution and therefore reflect the consensus of each group about which packages best serve the needs of the intended users. They also cover a much broader range of use cases than the predefined lists they replace.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="382" href="#382" class="lnkocn">382</a></label>
  <p class="i0" id="o382">
    All task metapackages are prefixed <tt>task-</tt>, so a quick way to determine which are available (though it may contain a handful of false hits that match the name but aren't metapackages) is to match on the package name with:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="383" href="#383" class="lnkocn">383</a></label>
  <p class="code" id="o383">
    $ apt-cache search --names-only ^task-<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="384" href="#384" class="lnkocn">384</a></label>
  <p class="i0" id="o384">
    In addition to these, you will find other metapackages with various purposes. Some are subsets of broader task packages, like <tt>gnome-core</tt>, while others are individual specialized parts of a Debian Pure Blend, such as the <tt>education-*</tt> metapackages. To list all metapackages in the archive, install the <tt>debtags</tt> package and list all packages with the <tt>role::metapackage</tt> tag as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="385" href="#385" class="lnkocn">385</a></label>
  <p class="code" id="o385">
    $ debtags search role::metapackage<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="386" href="#386" class="lnkocn">386</a></label>
  <h6 class="norm" id="o386">
<a name="386"></a>
    <a name="8.2.3"></a><a name="h8.2.3"></a><a name="h8.2.3">8.2.3 Local package lists</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="387" href="#387" class="lnkocn">387</a></label>
  <p class="i0" id="o387">
    Whether you list metapackages, individual packages, or a combination of both, all local package lists are stored in <tt>config/package-lists/</tt>. Since more than one list can be used, this lends itself well to modular designs. For example, you may decide to devote one list to a particular choice of desktop, another to a collection of related packages that might as easily be used on top of a different desktop. This allows you to experiment with different combinations of sets of packages with a minimum of fuss, sharing common lists between different live image projects.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="388" href="#388" class="lnkocn">388</a></label>
  <p class="i0" id="o388">
    Package lists that exist in this directory need to have a <tt>.list</tt> suffix in order to be processed, and then an additional stage suffix, <tt>.chroot</tt> or <tt>.binary</tt> to indicate which stage the list is for.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="389" href="#389" class="lnkocn">389</a></label>
  <p class="i0" id="o389">
    <b>Note:</b> If you don't specify the stage suffix, the list will be used for both stages. Normally, you want to specify <tt>.list.chroot</tt> so that the packages will only be installed in the live filesystem and not have an extra copy of the <tt>.deb</tt> placed on the medium.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="390" href="#390" class="lnkocn">390</a></label>
  <h6 class="norm" id="o390">
<a name="390"></a>
    <a name="8.2.4"></a><a name="h8.2.4"></a><a name="h8.2.4">8.2.4 Local binary package lists</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="391" href="#391" class="lnkocn">391</a></label>
  <p class="i0" id="o391">
    To make a binary stage list, place a file suffixed with <tt>.list.binary</tt> in <tt>config/package-lists/</tt>. These packages are not installed in the live filesystem, but are included on the live medium under <tt>pool/</tt>. You would typically use such a list with one of the non-live installer variants. As mentioned above, if you want this list to be the same as your chroot stage list, simply use the <tt>.list</tt> suffix by itself.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="392" href="#392" class="lnkocn">392</a></label>
  <h6 class="norm" id="o392">
<a name="392"></a>
    <a name="h8.2.5"></a><a name="generated-package-lists"></a><a name="hgenerated-package-lists">8.2.5 Generated package lists</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="393" href="#393" class="lnkocn">393</a></label>
  <p class="i0" id="o393">
    It sometimes happens that the best way to compose a list is to generate it with a script. Any line starting with an exclamation point indicates a command to be executed within the chroot when the image is built. For example, one might include the line <tt>! grep-aptavail -n -sPackage -FPriority standard | sort</tt> in a package list to produce a sorted list of available packages with <tt>Priority: standard</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="394" href="#394" class="lnkocn">394</a></label>
  <p class="i0" id="o394">
    In fact, selecting packages with the <tt>grep-aptavail</tt> command (from the <tt>dctrl-tools</tt> package) is so useful that <tt>live-build</tt> provides a <tt>Packages</tt> helper script as a convenience. This script takes two arguments: <tt>field</tt> and <tt>pattern</tt>. Thus, you can create a list with the following contents:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="395" href="#395" class="lnkocn">395</a></label>
  <p class="code" id="o395">
    $ lb config<br>
$ echo '! Packages Priority standard' &gt; config/package-lists/standard.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="396" href="#396" class="lnkocn">396</a></label>
  <h6 class="norm" id="o396">
<a name="396"></a>
    <a name="8.2.6"></a><a name="h8.2.6"></a><a name="h8.2.6">8.2.6 Using conditionals inside package lists</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="397" href="#397" class="lnkocn">397</a></label>
  <p class="i0" id="o397">
    Any of the <i>live-build</i> configuration variables stored in <tt>config/*</tt> (minus the <tt>LB_</tt> prefix) may be used in conditional statements in package lists. Generally, this means any <tt>lb config</tt> option uppercased and with dashes changed to underscores. But in practice, it is only the ones that influence package selection that make sense, such as <tt>DISTRIBUTION</tt>, <tt>ARCHITECTURES</tt> or <tt>ARCHIVE_AREAS</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="398" href="#398" class="lnkocn">398</a></label>
  <p class="i0" id="o398">
    For example, to install <tt>ia32-libs</tt> if the <tt>--architectures amd64</tt> is specified:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="399" href="#399" class="lnkocn">399</a></label>
  <p class="code" id="o399">
    #if ARCHITECTURES amd64<br>
ia32-libs<br>
#endif<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="400" href="#400" class="lnkocn">400</a></label>
  <p class="i0" id="o400">
    You may test for any one of a number of values, e.g. to install <i>memtest86+</i> if either <tt>--architectures i386</tt> or <tt>--architectures amd64</tt> is specified:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="401" href="#401" class="lnkocn">401</a></label>
  <p class="code" id="o401">
    #if ARCHITECTURES i386 amd64<br>
memtest86+<br>
#endif<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="402" href="#402" class="lnkocn">402</a></label>
  <p class="i0" id="o402">
    You may also test against variables that may contain more than one value, e.g. to install <i>vrms</i> if either <tt>contrib</tt> or <tt>non-free</tt> is specified via <tt>--archive-areas</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="403" href="#403" class="lnkocn">403</a></label>
  <p class="code" id="o403">
    #if ARCHIVE_AREAS contrib non-free<br>
vrms<br>
#endif<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="404" href="#404" class="lnkocn">404</a></label>
  <p class="i0" id="o404">
    The nesting of conditionals is not supported.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="405" href="#405" class="lnkocn">405</a></label>
  <h6 class="norm" id="o405">
<a name="405"></a>
    <a name="h8.2.7"></a><a name="desktop-and-language-tasks"></a><a name="hdesktop-and-language-tasks">8.2.7 Desktop and language tasks</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="406" href="#406" class="lnkocn">406</a></label>
  <p class="i0" id="o406">
    Desktop and language tasks are special cases that need some extra planning and configuration. Live images are different from Debian Installer images in this respect. In the Debian Installer, if the medium was prepared for a particular desktop environment flavour, the corresponding task will be automatically installed. Thus, there are internal <tt>gnome-desktop</tt>, <tt>kde-desktop</tt>, <tt>lxde-desktop</tt> and <tt>xfce-desktop</tt> tasks, none of which are offered in <tt>tasksel</tt>'s menu. Likewise, there are no menu entries for tasks for languages, but the user's language choice during the install influences the selection of corresponding language tasks.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="407" href="#407" class="lnkocn">407</a></label>
  <p class="i0" id="o407">
    When developing a desktop live image, the image typically boots directly to a working desktop, the choices of both desktop and default language having been made at build time, not at run time as in the case of the Debian Installer. That's not to say that a live image couldn't be built to support multiple desktops or multiple languages and offer the user a choice, but that is not <i>live-build</i>' s default behaviour.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="408" href="#408" class="lnkocn">408</a></label>
  <p class="i0" id="o408">
    Because there is no provision made automatically for language tasks, which include such things as language-specific fonts and input-method packages, if you want them, you need to specify them in your configuration. For example, a GNOME desktop image containing support for German might include these task metapackages:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="409" href="#409" class="lnkocn">409</a></label>
  <p class="code" id="o409">
    $ lb config<br>
$ echo "task-gnome-desktop task-laptop" &gt;&gt; config/package-lists/my.list.chroot<br>
$ echo "task-german task-german-desktop task-german-gnome-desktop" &gt;&gt; config/package-lists/my.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="410" href="#410" class="lnkocn">410</a></label>
  <h6 class="norm" id="o410">
<a name="410"></a>
    <a name="h8.2.8"></a><a name="kernel-flavour-and-version"></a><a name="hkernel-flavour-and-version">8.2.8 Kernel flavour and version</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="411" href="#411" class="lnkocn">411</a></label>
  <p class="i0" id="o411">
    One or more kernel flavours will be included in your image by default, depending on the architecture. You can choose different flavours via the <tt>--linux-flavours</tt> option. Each flavour is suffixed to the default stub <tt>linux-image</tt> to form each metapackage name which in turn depends on an exact kernel package to be included in your image.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="412" href="#412" class="lnkocn">412</a></label>
  <p class="i0" id="o412">
    Thus by default, an <tt>amd64</tt> architecture image will include the <tt>linux-image-amd64</tt> flavour metapackage, and an <tt>i386</tt> architecture image will include the <tt>linux-image-486</tt> and <tt>linux-image-686-pae</tt> metapackages. At time of writing, these packages depend on <tt>linux-image-3.2.0-4-amd64</tt>, <tt>linux-image-3.2.0-4-486</tt> and <tt>linux-image-3.2.0-4-686-pae</tt>, respectively.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="413" href="#413" class="lnkocn">413</a></label>
  <p class="i0" id="o413">
    When more than one kernel package version is available in your configured archives, you can specify a different kernel package name stub with the <tt>--linux-packages</tt> option. For example, supposing you are building an <tt>amd64</tt> architecture image and add the experimental archive for testing purposes so you can install the <tt>linux-image-3.7-trunk-amd64</tt> kernel. You would configure that image as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="414" href="#414" class="lnkocn">414</a></label>
  <p class="code" id="o414">
    $ lb config --linux-packages linux-image-3.7-trunk<br>
$ echo "deb http://ftp.debian.org/debian/ experimental main" &gt; config/archives/experimental.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="415" href="#415" class="lnkocn">415</a></label>
  <h6 class="norm" id="o415">
<a name="415"></a>
    <a name="h8.2.9"></a><a name="custom-kernels"></a><a name="hcustom-kernels">8.2.9 Custom kernels</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="416" href="#416" class="lnkocn">416</a></label>
  <p class="i0" id="o416">
    You can build and include your own custom kernels, so long as they are integrated within the Debian package management system. The <i>live-build</i> system does not support kernels not built as <tt>.deb</tt> packages.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="417" href="#417" class="lnkocn">417</a></label>
  <p class="i0" id="o417">
    The proper and recommended way to deploy your own kernel packages is to follow the instructions in the <tt>kernel-handbook</tt>. Remember to modify the ABI and flavour suffixes appropriately, then include a complete build of the <tt>linux</tt> and matching <tt>linux-latest</tt> packages in your reposistory.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="418" href="#418" class="lnkocn">418</a></label>
  <p class="i0" id="o418">
    If you opt to build the kernel packages without the matching metapackages, you need to specify an appropriate <tt>--linux-packages</tt> stub as discussed in  <a href="#kernel-flavour-and-version">Kernel flavour and version</a>.  As we explain in  <a href="#installing-modified-or-third-party-packages">Installing modified or third-party packages</a>,  it is best if you include your custom kernel packages in your own repository, though the alternatives discussed in that section work as well.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="419" href="#419" class="lnkocn">419</a></label>
  <p class="i0" id="o419">
    It is beyond the scope of this document to give advice on how to customize your kernel. However, you must at least ensure your configuration satisfies these minimum requirements:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="420" href="#420" class="lnkocn">420</a></label>
  <li class="bullet" id="o420">
    Use an initial ramdisk.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="421" href="#421" class="lnkocn">421</a></label>
  <li class="bullet" id="o421">
    Include the union filesystem module (i.e. usually <tt>aufs</tt>).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="422" href="#422" class="lnkocn">422</a></label>
  <li class="bullet" id="o422">
    Include any other filesystem modules required by your configuration (i.e. usually <tt>squashfs</tt>).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="423" href="#423" class="lnkocn">423</a></label>
  <h5 class="norm" id="o423">
<a name="423"></a>
    <a name="h8.3"></a><a name="installing-modified-or-third-party-packages"></a><a name="hinstalling-modified-or-third-party-packages">8.3 Installing modified or third-party packages</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="424" href="#424" class="lnkocn">424</a></label>
  <p class="i0" id="o424">
    While it is against the philosophy of Debian Live, it may sometimes be necessary to build a Live system with modified versions of packages that are in the Debian repository. This may be to modify or support additional features, languages and branding, or even to remove elements of existing packages that are undesirable. Similarly, "third-party" packages may be used to add bespoke and/or proprietary functionality.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="425" href="#425" class="lnkocn">425</a></label>
  <p class="i0" id="o425">
    This section does not cover advice regarding building or maintaining modified packages. Joachim Breitner's 'How to fork privately' method from ‹<a href="http://www.joachim-breitner.de/blog/archives/282-How-to-fork-privately.html" target="_top">http://www.joachim-breitner.de/blog/archives/282-How-to-fork-privately.html</a>› may be of interest, however. The creation of bespoke packages is covered in the Debian New Maintainers' Guide at ‹<a href="http://www.debian.org/doc/maint-guide/" target="_top">http://www.debian.org/doc/maint-guide/</a>› and elsewhere.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="426" href="#426" class="lnkocn">426</a></label>
  <p class="i0" id="o426">
    There are two ways of installing modified custom packages:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="427" href="#427" class="lnkocn">427</a></label>
  <li class="bullet" id="o427">
    <tt>packages.chroot</tt>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="428" href="#428" class="lnkocn">428</a></label>
  <li class="bullet" id="o428">
    Using a custom APT repository
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="429" href="#429" class="lnkocn">429</a></label>
  <p class="i0" id="o429">
    Using <tt>packages.chroot</tt> is simpler to achieve and useful for "one-off" customizations but has a number of drawbacks, while using a custom APT repository is more time-consuming to set up.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="430" href="#430" class="lnkocn">430</a></label>
  <h6 class="norm" id="o430">
<a name="430"></a>
    <a name="8.3.1"></a><a name="h8.3.1"></a><a name="h8.3.1">8.3.1 Using <tt>packages.chroot</tt> to install custom packages</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="431" href="#431" class="lnkocn">431</a></label>
  <p class="i0" id="o431">
    To install a custom package, simply copy it to the <tt>config/packages.chroot/</tt> directory. Packages that are inside this directory will be automatically installed into the live system during build - you do not need to specify them elsewhere.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="432" href="#432" class="lnkocn">432</a></label>
  <p class="i0" id="o432">
    Packages <b>must</b> be named in the prescribed way. One simple way to do this is to use <tt>dpkg-name</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="433" href="#433" class="lnkocn">433</a></label>
  <p class="i0" id="o433">
    Using <tt>packages.chroot</tt> for installation of custom packages has disadvantages:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="434" href="#434" class="lnkocn">434</a></label>
  <li class="bullet" id="o434">
    It is not possible to use secure APT.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="435" href="#435" class="lnkocn">435</a></label>
  <li class="bullet" id="o435">
    You must install all appropriate packages in the <tt>config/packages.chroot/</tt> directory.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="436" href="#436" class="lnkocn">436</a></label>
  <li class="bullet" id="o436">
    It does not lend itself to storing Debian Live configurations in revision control.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="437" href="#437" class="lnkocn">437</a></label>
  <h6 class="norm" id="o437">
<a name="437"></a>
    <a name="8.3.2"></a><a name="h8.3.2"></a><a name="h8.3.2">8.3.2 Using an APT repository to install custom packages</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="438" href="#438" class="lnkocn">438</a></label>
  <p class="i0" id="o438">
    Unlike using <tt>packages.chroot</tt>, when using a custom APT repository you must ensure that you specify the packages elsewhere. See  <a href="#choosing-packages-to-install">Choosing packages to install</a>  for details.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="439" href="#439" class="lnkocn">439</a></label>
  <p class="i0" id="o439">
    While it may seem unnecessary effort to create an APT repository to install custom packages, the infrastructure can be easily re-used at a later date to offer updates of the modified packages.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="440" href="#440" class="lnkocn">440</a></label>
  <h6 class="norm" id="o440">
<a name="440"></a>
    <a name="8.3.3"></a><a name="h8.3.3"></a><a name="h8.3.3">8.3.3 Custom packages and APT</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="441" href="#441" class="lnkocn">441</a></label>
  <p class="i0" id="o441">
    <i>live-build</i> uses APT to install all packages into the live system so will therefore inherit behaviours from this program. One relevant example is that (assuming a default configuration) given a package available in two different repositories with different version numbers, APT will elect to install the package with the higher version number.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="442" href="#442" class="lnkocn">442</a></label>
  <p class="i0" id="o442">
    Because of this, you may wish to increment the version number in your custom packages' <tt>debian/changelog</tt> files to ensure that your modified version is installed over one in the official Debian repositories. This may also be achieved by altering the live system's APT pinning preferences - see  <a href="#apt-pinning">APT pinning</a>  for more information.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="443" href="#443" class="lnkocn">443</a></label>
  <h5 class="norm" id="o443">
<a name="443"></a>
    <a name="8.4"></a><a name="h8.4"></a><a name="h8.4">8.4 Configuring APT at build time</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="444" href="#444" class="lnkocn">444</a></label>
  <p class="i0" id="o444">
    You can configure APT through a number of options applied only at build time. (APT configuration used in the running live system may be configured in the normal way for live system contents, that is, by including the appropriate configurations through <tt>config/includes.chroot/</tt>.) For a complete list, look for options starting with <tt>apt</tt> in the <tt>lb_config</tt> man page.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="445" href="#445" class="lnkocn">445</a></label>
  <h6 class="norm" id="o445">
<a name="445"></a>
    <a name="h8.4.1"></a><a name="choosing-apt-or-aptitude"></a><a name="hchoosing-apt-or-aptitude">8.4.1 Choosing apt or aptitude</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="446" href="#446" class="lnkocn">446</a></label>
  <p class="i0" id="o446">
    You can elect to use either <i>apt</i> or <i>aptitude</i> when installing packages at build time. Which utility is used is governed by the <tt>--apt</tt> argument to <tt>lb config</tt>. Choose the method implementing the preferred behaviour for package installation, the notable difference being how missing packages are handled.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="447" href="#447" class="lnkocn">447</a></label>
  <li class="bullet" id="o447">
    <tt>apt</tt>: With this method, if a missing package is specified, the package installation will fail. This is the default setting.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="448" href="#448" class="lnkocn">448</a></label>
  <li class="bullet" id="o448">
    <tt>aptitude</tt>: With this method, if a missing package is specified, the package installation will succeed.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="449" href="#449" class="lnkocn">449</a></label>
  <h6 class="norm" id="o449">
<a name="449"></a>
    <a name="8.4.2"></a><a name="h8.4.2"></a><a name="h8.4.2">8.4.2 Using a proxy with APT</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="450" href="#450" class="lnkocn">450</a></label>
  <p class="i0" id="o450">
    One commonly required APT configuration is to deal with building an image behind a proxy. You may specify your APT proxy with the <tt>--apt-ftp-proxy</tt> or <tt>--apt-http-proxy</tt> options as needed, e.g.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="451" href="#451" class="lnkocn">451</a></label>
  <p class="code" id="o451">
    $ lb config --apt-http-proxy http://proxy/<br> <br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="452" href="#452" class="lnkocn">452</a></label>
  <h6 class="norm" id="o452">
<a name="452"></a>
    <a name="h8.4.3"></a><a name="tweaking-apt-to-save-space"></a><a name="htweaking-apt-to-save-space">8.4.3 Tweaking APT to save space</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="453" href="#453" class="lnkocn">453</a></label>
  <p class="i0" id="o453">
    You may find yourself needing to save some space on the image medium, in which case one or the other or both of the following options may be of interest.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="454" href="#454" class="lnkocn">454</a></label>
  <p class="i0" id="o454">
    If you don't want to include APT indices in the image, you can omit those with:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="455" href="#455" class="lnkocn">455</a></label>
  <p class="code" id="o455">
    $ lb config --apt-indices false<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="456" href="#456" class="lnkocn">456</a></label>
  <p class="i0" id="o456">
    This will not influence the entries in <tt>/etc/apt/sources.list</tt>, but merely whether <tt>/var/lib/apt</tt> contains the indices files or not. The tradeoff is that APT needs those indices in order to operate in the live system, so before performing <tt>apt-cache search</tt> or <tt>apt-get install</tt>, for instance, the user must <tt>apt-get update</tt> first to create those indices.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="457" href="#457" class="lnkocn">457</a></label>
  <p class="i0" id="o457">
    If you find the installation of recommended packages bloats your image too much, provided you are prepared to deal with the consequences discussed below, you may disable that default option of APT with:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="458" href="#458" class="lnkocn">458</a></label>
  <p class="code" id="o458">
    $ lb config --apt-recommends false<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="459" href="#459" class="lnkocn">459</a></label>
  <p class="i0" id="o459">
    The most important consequence of turning off recommends is that <tt>live-boot</tt> and <tt>live-config</tt> themselves recommend some packages that provide important functionality used by most Live configurations, such as <tt>user-setup</tt> which <tt>live-config</tt> recommends and is used to create the live user. In all but the most exceptional circumstances you need to add back at least some of these recommends to your package lists or else your image will not work as expected, if at all. Look at the recommended packages for each of the <tt>live-*</tt> packages included in your build and if you are not certain you can omit them, add them back into your package lists.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="460" href="#460" class="lnkocn">460</a></label>
  <p class="i0" id="o460">
    The more general consequence is that if you don't install recommended packages for any given package, that is, "packages that would be found together with this one in all but unusual installations" (Debian Policy Manual, section 7.2), some packages that users of your Live system actually need may be omitted. Therefore, we suggest you review the difference turning off recommends makes to your packages list (see the <tt>binary.packages</tt> file generated by <tt>lb build</tt>) and re-include in your list any missing packages that you still want installed. Alternatively, if you find you only want a small number of recommended packages left out, leave recommends enabled and set a negative APT pin priority on selected packages to prevent them from being installed, as explained in  <a href="#apt-pinning">APT pinning</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="461" href="#461" class="lnkocn">461</a></label>
  <h6 class="norm" id="o461">
<a name="461"></a>
    <a name="8.4.4"></a><a name="h8.4.4"></a><a name="h8.4.4">8.4.4 Passing options to apt or aptitude</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="462" href="#462" class="lnkocn">462</a></label>
  <p class="i0" id="o462">
    If there is not a <tt>lb config</tt> option to alter APT's behaviour in the way you need, use <tt>--apt-options</tt> or <tt>--aptitude-options</tt> to pass any options through to your configured APT tool. See the man pages for <tt>apt</tt> and <tt>aptitude</tt> for details. Note that both options have default values that you will need to retain in addition to any overrides you may provide. So, for example, suppose you have included something from <tt>snapshot.debian.org</tt> for testing purposes and want to specify <tt>Acquire::Check-Valid-Until=false</tt> to make APT happy with the stale <tt>Release</tt> file, you would do so as per the following example, appending the new option after the default value <tt>--yes</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="463" href="#463" class="lnkocn">463</a></label>
  <p class="code" id="o463">
    $ lb config --apt-options "--yes -oAcquire::Check-Valid-Until=false"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="464" href="#464" class="lnkocn">464</a></label>
  <p class="i0" id="o464">
    Please check the man pages to fully understand these options and when to use them. This is an example only and should not be construed as advice to configure your image this way. This option would not be appropriate for, say, a final release of a live image.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="465" href="#465" class="lnkocn">465</a></label>
  <p class="i0" id="o465">
    For more complicated APT configurations involving <tt>apt.conf</tt> options you might want to create a <tt>config/apt/apt.conf</tt> file instead. See also the other <tt>apt-*</tt> options for a few convenient shortcuts for frequently needed options.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="466" href="#466" class="lnkocn">466</a></label>
  <h6 class="norm" id="o466">
<a name="466"></a>
    <a name="h8.4.5"></a><a name="apt-pinning"></a><a name="hapt-pinning">8.4.5 APT pinning</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="467" href="#467" class="lnkocn">467</a></label>
  <p class="i0" id="o467">
    For background, please first read the <tt>apt_preferences(5)</tt> man page. APT pinning can be configured either for build time, or else for run time. For the former, create <tt>config/archives/*.pref</tt>, <tt>config/archives/*.pref.chroot</tt>, and <tt>config/apt/preferences</tt>. For the latter, create <tt>config/includes.chroot/etc/apt/preferences</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="468" href="#468" class="lnkocn">468</a></label>
  <p class="i0" id="o468">
    Let's say you are building a <b>wheezy</b> live system but need all the live packages that end up in the binary image to be installed from <b>sid</b> at build time. You need to add <b>sid</b> to your APT sources and pin the live packages from it higher, but all other packages from it lower, than the default priority. Thus, only the packages you want are installed from <b>sid</b> at build time and all others are taken from the target system distribution, <b>wheezy</b>. The following will accomplish this:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="469" href="#469" class="lnkocn">469</a></label>
  <p class="code" id="o469">
    $ echo "deb http://mirror/debian/ sid main" &gt; config/archives/sid.list.chroot<br>
$ cat &gt;&gt; config/archives/sid.pref.chroot &lt;&lt; EOF<br>
Package: live-*<br>
Pin: release n=sid<br>
Pin-Priority: 600<br><br>
Package: *<br>
Pin: release n=sid<br>
Pin-Priority: 1<br>
EOF<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="470" href="#470" class="lnkocn">470</a></label>
  <p class="i0" id="o470">
    Negative pin priorities will prevent a package from being installed, as in the case where you do not want a package that is recommended by another package. Suppose you are building an LXDE image using <tt>task-lxde-desktop</tt> in <tt>config/package-lists/desktop.list.chroot</tt>, but don't want the user prompted to store wifi passwords in the keyring. This metapackage depends on <i>lxde-core</i>, which recommends <i>gksu</i>, which in turn recommends <i>gnome-keyring</i>. So you want to omit the recommended <i>gnome-keyring</i> package. This can be done by adding the following stanza to <tt>config/apt/preferences</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="471" href="#471" class="lnkocn">471</a></label>
  <p class="code" id="o471">
    Package: gnome-keyring<br>
Pin: version *<br>
Pin-Priority: -1<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="472" href="#472" class="lnkocn">472</a></label>
  <h4 class="norm" id="o472">
<a name="472"></a>
    <a name="h9"></a><a name="customizing_contents"></a><a name="customizing-contents"></a><a name="hcustomizing-contents">9. Customizing contents</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="473" href="#473" class="lnkocn">473</a></label>
  <p class="i0" id="o473">
    This chapter discusses fine-tuning customization of the live system contents beyond merely choosing which packages to include. Includes allow you to add or replace arbitrary files in your Debian Live image, hooks allow you to execute arbitrary commands at different stages of the build and at boot time, and preseeding allows you to configure packages when they are installed by supplying answers to debconf questions.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="474" href="#474" class="lnkocn">474</a></label>
  <h5 class="norm" id="o474">
<a name="474"></a>
    <a name="h9.1"></a><a name="includes"></a><a name="hincludes">9.1 Includes</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="475" href="#475" class="lnkocn">475</a></label>
  <p class="i0" id="o475">
    While ideally a Debian live system would include files entirely provided by unmodified Debian packages, it is sometimes convenient to provide or modify some content by means of files. Using includes, it is possible to add (or replace) arbitrary files in your Debian Live image. <i>live-build</i> provides two mechanisms for using them:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="476" href="#476" class="lnkocn">476</a></label>
  <li class="bullet" id="o476">
    Chroot local includes: These allow you to add or replace files to the chroot/Live filesystem. Please see  <a href="#live-chroot-local-includes">Live/chroot local includes</a>  for more information.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="477" href="#477" class="lnkocn">477</a></label>
  <li class="bullet" id="o477">
    Binary local includes: These allow you to add or replace files in the binary image. Please see  <a href="#binary-local-includes">Binary local includes</a>  for more information.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="478" href="#478" class="lnkocn">478</a></label>
  <p class="i0" id="o478">
    Please see  <a href="#terms">Terms</a>  for more information about the distinction between the "Live" and "binary" images.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="479" href="#479" class="lnkocn">479</a></label>
  <h6 class="norm" id="o479">
<a name="479"></a>
    <a name="h9.1.1"></a><a name="live-chroot-local-includes"></a><a name="hlive-chroot-local-includes">9.1.1 Live/chroot local includes</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="480" href="#480" class="lnkocn">480</a></label>
  <p class="i0" id="o480">
    Chroot local includes can be used to add or replace files in the chroot/Live filesystem so that they may be used in the Live system. A typical use is to populate the skeleton user directory (<tt>/etc/skel</tt>) used by the Live system to create the live user's home directory. Another is to supply configuration files that can be simply added or replaced in the image without processing; see  <a href="#live-chroot-local-hooks">Live/chroot local hooks</a>  if processing is needed.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="481" href="#481" class="lnkocn">481</a></label>
  <p class="i0" id="o481">
    To include files, simply add them to your <tt>config/includes.chroot</tt> directory. This directory corresponds to the root directory <tt>/</tt> of the live system. For example, to add a file <tt>/var/www/index.html</tt> in the live system, use:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="482" href="#482" class="lnkocn">482</a></label>
  <p class="code" id="o482">
    $ mkdir -p config/includes.chroot/var/www<br>
$ cp /path/to/my/index.html config/includes.chroot/var/www<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="483" href="#483" class="lnkocn">483</a></label>
  <p class="i0" id="o483">
    Your configuration will then have the following layout:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="484" href="#484" class="lnkocn">484</a></label>
  <p class="code" id="o484">
    -- config<br>
    [...]<br>
     |-- includes.chroot<br>
     |   `-- var<br>
     |       `-- www<br>
     |           `-- index.html<br>
    [...]<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="485" href="#485" class="lnkocn">485</a></label>
  <p class="i0" id="o485">
    Chroot local includes are installed after package installation so that files installed by packages are overwritten.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="486" href="#486" class="lnkocn">486</a></label>
  <h6 class="norm" id="o486">
<a name="486"></a>
    <a name="h9.1.2"></a><a name="binary-local-includes"></a><a name="hbinary-local-includes">9.1.2 Binary local includes</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="487" href="#487" class="lnkocn">487</a></label>
  <p class="i0" id="o487">
    To include material such as documentation or videos on the medium filesystem so that it is accessible immediately upon insertion of the medium without booting the Live system, you can use binary local includes. This works in a similar fashion to chroot local includes. For example, suppose the files <tt>~/video_demo.*</tt> are demo videos of the live system described by and linked to by an HTML index page. Simply copy the material to <tt>config/includes.binary/</tt> as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="488" href="#488" class="lnkocn">488</a></label>
  <p class="code" id="o488">
    $ cp ~/video_demo.* config/includes.binary/<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="489" href="#489" class="lnkocn">489</a></label>
  <p class="i0" id="o489">
    These files will now appear in the root directory of the live medium.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="490" href="#490" class="lnkocn">490</a></label>
  <h5 class="norm" id="o490">
<a name="490"></a>
    <a name="h9.2"></a><a name="hooks"></a><a name="hhooks">9.2 Hooks</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="491" href="#491" class="lnkocn">491</a></label>
  <p class="i0" id="o491">
    Hooks allow commands to be performed in the chroot and binary stages of the build in order to customize the image.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="492" href="#492" class="lnkocn">492</a></label>
  <h6 class="norm" id="o492">
<a name="492"></a>
    <a name="h9.2.1"></a><a name="live-chroot-local-hooks"></a><a name="hlive-chroot-local-hooks">9.2.1 Live/chroot local hooks</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="493" href="#493" class="lnkocn">493</a></label>
  <p class="i0" id="o493">
    To run commands in the chroot stage, create a hook script with a <tt>.chroot</tt> suffix containing the commands in the <tt>config/hooks/</tt> directory. The hook will run in the chroot after the rest of your chroot configuration has been applied, so remember to ensure your configuration includes all packages and files your hook needs in order to run. See the example chroot hook scripts for various common chroot customization tasks provided in <tt>/usr/share/doc/live-build/examples/hooks</tt> which you can copy or symlink to use them in your own configuration.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="494" href="#494" class="lnkocn">494</a></label>
  <h6 class="norm" id="o494">
<a name="494"></a>
    <a name="h9.2.2"></a><a name="boot-time-hooks"></a><a name="hboot-time-hooks">9.2.2 Boot-time hooks</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="495" href="#495" class="lnkocn">495</a></label>
  <p class="i0" id="o495">
    To execute commands at boot time, you can supply <i>live-config</i> hooks as explained in the "Customization" section of its man page. Examine <i>live-config</i>' s own hooks provided in <tt>/lib/live/config/</tt>, noting the sequence numbers. Then provide your own hook prefixed with an appropriate sequence number, either as a chroot local include in <tt>config/includes.chroot/lib/live/config/</tt>, or as a custom package as discussed in  <a href="#installing-modified-or-third-party-packages">Installing modified or third-party packages</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="496" href="#496" class="lnkocn">496</a></label>
  <h6 class="norm" id="o496">
<a name="496"></a>
    <a name="9.2.3"></a><a name="h9.2.3"></a><a name="h9.2.3">9.2.3 Binary local hooks</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="497" href="#497" class="lnkocn">497</a></label>
  <p class="i0" id="o497">
    To run commands in the binary stage, create a hook script with a <tt>.binary</tt> suffix containing the commands in the <tt>config/hooks/</tt> directory. The hook will run after all other binary commands are run, but before binary_checksums, the very last binary command. The commands in your hook do not run in the chroot, so take care to not modify any files outside of the build tree, or you may damage your build system! See the example binary hook scripts for various common binary customization tasks provided in <tt>/usr/share/doc/live-build/examples/hooks</tt> which you can copy or symlink to use them in your own configuration.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="498" href="#498" class="lnkocn">498</a></label>
  <h5 class="norm" id="o498">
<a name="498"></a>
    <a name="9.3"></a><a name="h9.3"></a><a name="h9.3">9.3 Preseeding Debconf questions</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="499" href="#499" class="lnkocn">499</a></label>
  <p class="i0" id="o499">
    Files in the <tt>config/preseed/</tt> directory suffixed with <tt>.cfg</tt> followed by the stage (<tt>.chroot</tt> or <tt>.binary</tt>) are considered to be debconf preseed files and are installed by <i>live-build</i> using <tt>debconf-set-selections</tt> during the corresponding stage.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="500" href="#500" class="lnkocn">500</a></label>
  <p class="i0" id="o500">
    For more information about debconf, please see <tt>debconf(7)</tt> in the <i>debconf</i> package.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="501" href="#501" class="lnkocn">501</a></label>
  <h4 class="norm" id="o501">
<a name="501"></a>
    <a name="h10"></a><a name="customizing_run_time_behaviours"></a><a name="customizing-run-time-behaviours"></a><a name="hcustomizing-run-time-behaviours">10. Customizing run time behaviours</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="502" href="#502" class="lnkocn">502</a></label>
  <p class="i0" id="o502">
    All configuration that is done during run time is done by <i>live-config</i>. Here are some of the most common options of <i>live-config</i> that users are interested in. A full list of all possibilities can be found in the man page of <i>live-config</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="503" href="#503" class="lnkocn">503</a></label>
  <h5 class="norm" id="o503">
<a name="503"></a>
    <a name="10.1"></a><a name="h10.1"></a><a name="h10.1">10.1 Customizing the live user</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="504" href="#504" class="lnkocn">504</a></label>
  <p class="i0" id="o504">
    One important consideration is that the live user is created by <i>live-boot</i> at boot time, not by <i>live-build</i> at build time. This not only influences where materials relating to the live user are introduced in your build, as discussed in  <a href="#live-chroot-local-includes">Live/chroot local includes</a>,  but also any groups and permissions associated with the live user.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="505" href="#505" class="lnkocn">505</a></label>
  <p class="i0" id="o505">
    You can specify additional groups that the live user will belong to by using any of the possibilities to configure <i>live-config</i>. For example, to add the live user to the <tt>fuse</tt> group, you can either add the following file in <tt>config/includes.chroot/etc/live/config/user-setup.conf</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="506" href="#506" class="lnkocn">506</a></label>
  <p class="code" id="o506">
    LIVE_USER_DEFAULT_GROUPS="audio cdrom dip floppy video plugdev netdev powerdev scanner bluetooth fuse"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="507" href="#507" class="lnkocn">507</a></label>
  <p class="i0" id="o507">
    or use <tt>live-config.user-default-groups=audio,cdrom,dip,floppy,video,plugdev,netdev,powerdev,scanner,bluetooth,fuse</tt> as a boot parameter.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="508" href="#508" class="lnkocn">508</a></label>
  <p class="i0" id="o508">
    It is also possible to change the default username "user" and the default password "live". If you want to do that for any reason, you can easily achieve it as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="509" href="#509" class="lnkocn">509</a></label>
  <p class="i0" id="o509">
    To change the default username you can simply specify it in your config:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="510" href="#510" class="lnkocn">510</a></label>
  <p class="code" id="o510">
    $ lb config --bootappend-live "boot=live config username=live-user"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="511" href="#511" class="lnkocn">511</a></label>
  <p class="i0" id="o511">
    One possible way of changing the default password is by means of a hook as described in  <a href="#boot-time-hooks">Boot-time hooks</a>.  In order to do that you can use the "passwd" hook from <tt>/usr/share/doc/live-config/examples/hooks</tt>, prefix it accordingly (e.g. 2000-passwd) and add it to <tt>config/includes.chroot/lib/live/config/</tt>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="512" href="#512" class="lnkocn">512</a></label>
  <h5 class="norm" id="o512">
<a name="512"></a>
    <a name="h10.2"></a><a name="customizing-locale-and-language"></a><a name="hcustomizing-locale-and-language">10.2 Customizing locale and language</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="513" href="#513" class="lnkocn">513</a></label>
  <p class="i0" id="o513">
    When the live system boots, language is involved in two steps:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="514" href="#514" class="lnkocn">514</a></label>
  <li class="bullet" id="o514">
    the locale generation
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="515" href="#515" class="lnkocn">515</a></label>
  <li class="bullet" id="o515">
    setting the keyboard configuration
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="516" href="#516" class="lnkocn">516</a></label>
  <p class="i0" id="o516">
    The default locale when building a Live system is <tt>locales=en_US.UTF-8</tt>. To define the locale that should be generated, use the <tt>locales</tt> parameter in the <tt>--bootappend-live</tt> option of <tt>lb config</tt>, e.g.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="517" href="#517" class="lnkocn">517</a></label>
  <p class="code" id="o517">
    $ lb config --bootappend-live "boot=live config locales=de_CH.UTF-8"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="518" href="#518" class="lnkocn">518</a></label>
  <p class="i0" id="o518">
    Multiple locales may be specified as a comma-delimited list.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="519" href="#519" class="lnkocn">519</a></label>
  <p class="i0" id="o519">
    This parameter, as well as the keyboard configuration parameters indicated below, can also be used at the kernel command line. You can specify a locale by <tt>language_country</tt> (in which case the default encoding is used) or the full <tt>language_country.encoding</tt> word. A list of supported locales and the encoding for each can be found in <tt>/usr/share/i18n/SUPPORTED</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="520" href="#520" class="lnkocn">520</a></label>
  <p class="i0" id="o520">
    Both the console and X keyboard configuration are performed by <tt>live-config</tt> using the <tt>console-setup</tt> package. To configure them, use the <tt>keyboard-layouts</tt>, <tt>keyboard-variants</tt>, <tt>keyboard-options</tt> and <tt>keyboard-model</tt> boot parameters via the <tt>--bootappend-live</tt> option. Valid options for these can be found in <tt>/usr/share/X11/xkb/rules/base.lst</tt>. To find layouts and variants for a given language, try searching for the English name of the language and/or the country where the language is spoken, e.g:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="521" href="#521" class="lnkocn">521</a></label>
  <p class="code" id="o521">
    $ egrep -i '(^!|german.*switzerland)' /usr/share/X11/xkb/rules/base.lst<br>
! model<br>
! layout<br>
   ch              German (Switzerland)<br>
! variant<br>
   legacy          ch: German (Switzerland, legacy)<br>
   de_nodeadkeys   ch: German (Switzerland, eliminate dead keys)<br>
   de_sundeadkeys  ch: German (Switzerland, Sun dead keys)<br>
   de_mac          ch: German (Switzerland, Macintosh)<br>
! option<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="522" href="#522" class="lnkocn">522</a></label>
  <p class="i0" id="o522">
    Note that each variant lists the layout to which it applies in the description.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="523" href="#523" class="lnkocn">523</a></label>
  <p class="i0" id="o523">
    Often, only the layout needs to be configured. For example, to get the locale files for German and Swiss German keyboard layout in X use:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="524" href="#524" class="lnkocn">524</a></label>
  <p class="code" id="o524">
    $ lb config --bootappend-live "boot=live config locales=de_CH.UTF-8 keyboard-layouts=ch"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="525" href="#525" class="lnkocn">525</a></label>
  <p class="i0" id="o525">
    However, for very specific use cases, you may wish to include other parameters. For example, to set up a French system with a French-Dvorak layout (called Bepo) on a TypeMatrix EZ-Reach 2030 USB keyboard, use:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="526" href="#526" class="lnkocn">526</a></label>
  <p class="code" id="o526">
    $ lb config --bootappend-live \<br>
     "boot=live config locales=fr_FR.UTF-8 keyboard-layouts=fr keyboard-variants=bepo keyboard-model=tm2030usb"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="527" href="#527" class="lnkocn">527</a></label>
  <p class="i0" id="o527">
    Multiple values may be specified as comma-delimited lists for each of the <tt>keyboard-*</tt> options, with the exception of <tt>keyboard-model</tt>, which accepts only one value. Please see the <tt>keyboard(5)</tt> man page for details and examples of <tt>XKBMODEL</tt>, <tt>XKBLAYOUT</tt>, <tt>XKBVARIANT</tt> and <tt>XKBOPTIONS</tt> variables. If multiple <tt>keyboard-variants</tt> values are given, they will be matched one-to-one with <tt>keyboard-layouts</tt> values (see <tt>setxkbmap(1)</tt> <tt>-variant</tt> option). Empty values are allowed; e.g. to define two layouts, the default being US QWERTY and the other being US Dvorak, use:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="528" href="#528" class="lnkocn">528</a></label>
  <p class="code" id="o528">
    $ lb config --bootappend-live \<br>
     "boot=live config keyboard-layouts=us,us keyboard-variants=,dvorak"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="529" href="#529" class="lnkocn">529</a></label>
  <h5 class="norm" id="o529">
<a name="529"></a>
    <a name="h10.3"></a><a name="persistence"></a><a name="hpersistence">10.3 Persistence</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="530" href="#530" class="lnkocn">530</a></label>
  <p class="i0" id="o530">
    A live cd paradigm is a pre-installed system which runs from read-only media, like a cdrom, where writes and modifications do not survive reboots of the host hardware which runs it.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="531" href="#531" class="lnkocn">531</a></label>
  <p class="i0" id="o531">
    A Debian Live system is a generalization of this paradigm and thus supports other media in addition to CDs; but still, in its default behaviour, it should be considered read-only and all the run-time evolutions of the system are lost at shutdown.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="532" href="#532" class="lnkocn">532</a></label>
  <p class="i0" id="o532">
    'Persistence' is a common name for different kinds of solutions for saving across reboots some, or all, of this run-time evolution of the system. To understand how it works it would be handy to know that even if the system is booted and run from read-only media, modifications to the files and directories are written on writable media, typically a ram disk (tmpfs) and ram disks' data do not survive reboots.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="533" href="#533" class="lnkocn">533</a></label>
  <p class="i0" id="o533">
    The data stored on this ramdisk should be saved on a writable persistent medium like local storage media, a network share or even a session of a multisession (re)writable CD/DVD. All these media are supported in Debian Live in different ways, and all but the last one require a special boot parameter to be specified at boot time: <tt>persistence</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="534" href="#534" class="lnkocn">534</a></label>
  <p class="i0" id="o534">
    If the boot parameter <tt>persistence</tt> is set (and <tt>nopersistence</tt> is not set), local storage media (e.g. hard disks, USB drives) will be probed for persistence volumes during boot. It is possible to restrict which types of persistence volumes to use by specifying certain boot parameters described in the <i>live-boot</i>(7) man page. A persistence volume is any of the following:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="535" href="#535" class="lnkocn">535</a></label>
  <li class="bullet" id="o535">
    a partition, identified by its GPT name.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="536" href="#536" class="lnkocn">536</a></label>
  <li class="bullet" id="o536">
    a filesystem, identified by its filesystem label.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="537" href="#537" class="lnkocn">537</a></label>
  <li class="bullet" id="o537">
    an image file located on the root of any readable filesystem (even an NTFS partition of a foreign OS), identified by its filename.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="538" href="#538" class="lnkocn">538</a></label>
  <p class="i0" id="o538">
    The volume label for overlays must be <tt>persistence</tt> but it will be ignored unless it contains in its root a file named <tt>persistence.conf</tt> which is used to fully customize the volume's persistence, this is to say, specifying the directories that you want to save in your persistence volume after a reboot. See  <a href="#persistence-conf">The persistence.conf file</a>  for more details.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="539" href="#539" class="lnkocn">539</a></label>
  <p class="i0" id="o539">
    Here are some examples of how to prepare a volume to be used for persistence. It can be, for instance, an ext4 partition on a hard disk or on a usb key created with, e.g.:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="540" href="#540" class="lnkocn">540</a></label>
  <p class="code" id="o540">
    # mkfs.ext4 -L persistence /dev/sdb1<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="541" href="#541" class="lnkocn">541</a></label>
  <p class="i0" id="o541">
    See also  <a href="#using-usb-extra-space">Using the space left on a USB stick</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="542" href="#542" class="lnkocn">542</a></label>
  <p class="i0" id="o542">
    If you already have a partition on your device, you could just change the label with one of the following:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="543" href="#543" class="lnkocn">543</a></label>
  <p class="code" id="o543">
    # tune2fs -L persistence /dev/sdb1 # for ext2,3,4 filesystems<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="544" href="#544" class="lnkocn">544</a></label>
  <p class="i0" id="o544">
    Here's an example of how to create an ext4-based image file to be used for persistence:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="545" href="#545" class="lnkocn">545</a></label>
  <p class="code" id="o545">
    $ dd if=/dev/null of=persistence bs=1 count=0 seek=1G # for a 1GB sized image file<br>
$ /sbin/mkfs.ext4 -F persistence<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="546" href="#546" class="lnkocn">546</a></label>
  <p class="i0" id="o546">
    Once the image file is created, as an example, to make <tt>/usr</tt> persistent but only saving the changes you make to that directory and not all the contents of <tt>/usr</tt>, you can use the "union" option. If the image file is located in your home directory, copy it to the root of your hard drive's filesystem and mount it in <tt>/mnt</tt> as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="547" href="#547" class="lnkocn">547</a></label>
  <p class="code" id="o547">
    # cp persistence /<br>
# mount -t ext4 /persistence /mnt<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="548" href="#548" class="lnkocn">548</a></label>
  <p class="i0" id="o548">
    Then, create the <tt>persistence.conf</tt> file adding content and unmount the image file.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="549" href="#549" class="lnkocn">549</a></label>
  <p class="code" id="o549">
    # echo "/usr union" &gt;&gt; /mnt/persistence.conf<br>
# umount /mnt<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="550" href="#550" class="lnkocn">550</a></label>
  <p class="i0" id="o550">
    Now, reboot into your live medium with the boot parameter "persistence".
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="551" href="#551" class="lnkocn">551</a></label>
  <h6 class="norm" id="o551">
<a name="551"></a>
    <a name="h10.3.1"></a><a name="persistence-conf"></a><a name="hpersistence-conf">10.3.1 The persistence.conf file</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="552" href="#552" class="lnkocn">552</a></label>
  <p class="i0" id="o552">
    A volume with the label <tt>persistence</tt> must be configured by means of the <tt>persistence.conf</tt> file to make arbitrary directories persistent. That file, located on the volume's filesystem root, controls which directories it makes persistent, and in which way.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="553" href="#553" class="lnkocn">553</a></label>
  <p class="i0" id="o553">
    How custom overlay mounts are configured is described in full detail in the persistence.conf(5) man page, but a simple example should be sufficient for most uses. Let's say we want to make our home directory and APT cache persistent in an ext4 filesystem on the /dev/sdb1 partition:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="554" href="#554" class="lnkocn">554</a></label>
  <p class="code" id="o554">
    # mkfs.ext4 -L persistence /dev/sdb1<br>
# mount -t ext4 /dev/sdb1 /mnt<br>
# echo "/home" &gt;&gt; /mnt/persistence.conf<br>
# echo "/var/cache/apt" &gt;&gt; /mnt/persistence.conf<br>
# umount /mnt<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="555" href="#555" class="lnkocn">555</a></label>
  <p class="i0" id="o555">
    Then we reboot. During the first boot the contents of <tt>/home</tt> and <tt>/var/cache/apt</tt> will be copied into the persistence volume, and from then on all changes to these directories will live in the persistence volume. Please note that any paths listed in the <tt>persistence.conf</tt> file cannot contain white spaces or the special <tt>.</tt> and <tt>..</tt> path components. Also, neither <tt>/lib</tt>, <tt>/lib/live</tt> (or any of their sub-directories) nor <tt>/</tt> can be made persistent using custom mounts. As a workaround for this limitation you can add <tt>/ union</tt> to your <tt>persistence.conf</tt> file to achieve full persistence.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="556" href="#556" class="lnkocn">556</a></label>
  <h6 class="norm" id="o556">
<a name="556"></a>
    <a name="10.3.2"></a><a name="h10.3.2"></a><a name="h10.3.2">10.3.2 Using more than one persistence store</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="557" href="#557" class="lnkocn">557</a></label>
  <p class="i0" id="o557">
    There are different methods of using multiple persistence store for different use cases. For instance, using several volumes at the same time or selecting only one, among various, for very specific purposes.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="558" href="#558" class="lnkocn">558</a></label>
  <p class="i0" id="o558">
    Several different custom overlay volumes (with their own <tt>persistence.conf</tt> files) can be used at the same time, but if several volumes make the same directory persistent, only one of them will be used. If any two mounts are "nested" (i.e. one is a sub-directory of the other) the parent will be mounted before the child so no mount will be hidden by the other. Nested custom mounts are problematic if they are listed in the same <tt>persistence.conf</tt> file. See the persistence.conf(5) man page for how to handle that case if you really need it (hint: you usually don't).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="559" href="#559" class="lnkocn">559</a></label>
  <p class="i0" id="o559">
    One possible use case: If you wish to store the user data i.e. <tt>/home</tt> and the superuser data i.e. <tt>/root</tt> in different partitions, create two partitions with the <tt>persistence</tt> label and add a <tt>persistence.conf</tt> file in each one like this, <tt># echo "/home" &gt; persistence.conf</tt> for the first partition that will save the user's files and <tt># echo "/root" &gt; persistence.conf</tt> for the second partition which will store the superuser's files. Finally use the <tt>persistence</tt> boot parameter.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="560" href="#560" class="lnkocn">560</a></label>
  <p class="i0" id="o560">
    If a user would need multiple persistence store of the same type for different locations or testing, such as <tt>private</tt> and <tt>work</tt>, the boot parameter <tt>persistence-label</tt> used in conjunction with the boot parameter <tt>persistence</tt> will allow for multiple but unique persistence media. An example would be if a user wanted to use a persistence partition labeled <tt>private</tt> for personal data like browser bookmarks or other types, they would use the boot parameters: <tt>persistence</tt> <tt>persistence-label=private</tt>. And to store work related data, like documents, research projects or other types, they would use the boot parameters: <tt>persistence</tt> <tt>persistence-label=work</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="561" href="#561" class="lnkocn">561</a></label>
  <p class="i0" id="o561">
    It is important to remember that each of these volumes, <tt>private</tt> and <tt>work</tt>, also needs a <tt>persistence.conf</tt> file in its root. The <i>live-boot</i> man page contains more information about how to use these labels with legacy names.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="562" href="#562" class="lnkocn">562</a></label>
  <h4 class="norm" id="o562">
<a name="562"></a>
    <a name="h11"></a><a name="customizing_the_binary_image"></a><a name="customizing-binary"></a><a name="hcustomizing-binary">11. Customizing the binary image</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="563" href="#563" class="lnkocn">563</a></label>
  <h5 class="norm" id="o563">
<a name="563"></a>
    <a name="11.1"></a><a name="h11.1"></a><a name="h11.1">11.1 Bootloader</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="564" href="#564" class="lnkocn">564</a></label>
  <p class="i0" id="o564">
    <i>live-build</i> uses <i>syslinux</i> and some of its derivatives (depending on the image type) as bootloaders by default. They can be easily customized in two ways.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="565" href="#565" class="lnkocn">565</a></label>
  <p class="i0" id="o565">
    In order to use a full theme, copy <tt>/usr/share/live/build/bootloaders</tt> into <tt>config/bootloaders</tt> and edit files in there. If you do not want to bother modifying all supported bootloader configurations, only providing a local customized copy of one of the bootloaders, e.g. <b>isolinux</b> in <tt>config/bootloaders/isolinux</tt> is enough too, depending on your use case.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="566" href="#566" class="lnkocn">566</a></label>
  <p class="i0" id="o566">
    There is also the possibility of making smaller changes. For instance, syslinux derivatives are configured by default with a timeout of 0 (zero) which means that they will pause indefinitely at their splash screen until you press a key.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="567" href="#567" class="lnkocn">567</a></label>
  <p class="i0" id="o567">
    To modify the boot timeout of a default <tt>iso-hybrid</tt> image just edit a default <b>isolinux.cfg</b> file specifying the timeout in units of seconds and add it to <tt>config/includes.binary/isolinux/</tt>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="568" href="#568" class="lnkocn">568</a></label>
  <p class="i0" id="o568">
    A modified <b>isolinux.cfg</b> to boot after five seconds would be similar to this:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="569" href="#569" class="lnkocn">569</a></label>
  <p class="code" id="o569">
    include menu.cfg<br>
default vesamenu.c32<br>
prompt 0<br>
timeout 50<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="570" href="#570" class="lnkocn">570</a></label>
  <p class="i0" id="o570">
    An alternative way of achieving the same goal could be writing a hook and adding it to <tt>config/hooks/</tt>. Remember to add the <tt>.binary</tt> suffix to run in the binary stage. A proposed example:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="571" href="#571" class="lnkocn">571</a></label>
  <p class="code" id="o571">
    #!/bin/sh<br><br>
sed -i -e 's|timeout 0|timeout 50|' binary/isolinux/isolinux.cfg<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="572" href="#572" class="lnkocn">572</a></label>
  <p class="i0" id="o572">
    Likewise, if you want to use a personalized splash.png image, add a picture of 640x480 pixels to <tt>config/includes.binary/isolinux/</tt>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="573" href="#573" class="lnkocn">573</a></label>
  <h5 class="norm" id="o573">
<a name="573"></a>
    <a name="11.2"></a><a name="h11.2"></a><a name="h11.2">11.2 ISO metadata</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="574" href="#574" class="lnkocn">574</a></label>
  <p class="i0" id="o574">
    When creating an ISO9660 binary image, you can use the following options to add various textual metadata for your image. This can help you easily identify the version or configuration of an image without booting it.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="575" href="#575" class="lnkocn">575</a></label>
  <li class="bullet" id="o575">
    <tt>LB_ISO_APPLICATION/--iso-application NAME</tt>: This should describe the application that will be on the image. The maximum length for this field is 128 characters.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="576" href="#576" class="lnkocn">576</a></label>
  <li class="bullet" id="o576">
    <tt>LB_ISO_PREPARER/--iso-preparer NAME</tt>: This should describe the preparer of the image, usually with some contact details. The default for this option is the <i>live-build</i> version you are using, which may help with debugging later. The maximum length for this field is 128 characters.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="577" href="#577" class="lnkocn">577</a></label>
  <li class="bullet" id="o577">
    <tt>LB_ISO_PUBLISHER/--iso-publisher NAME</tt>: This should describe the publisher of the image, usually with some contact details. The maximum length for this field is 128 characters.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="578" href="#578" class="lnkocn">578</a></label>
  <li class="bullet" id="o578">
    <tt>LB_ISO_VOLUME/--iso-volume NAME</tt>: This should specify the volume ID of the image. This is used as a user-visible label on some platforms such as Windows and Apple Mac OS. The maximum length for this field is 32 characters.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="579" href="#579" class="lnkocn">579</a></label>
  <h4 class="norm" id="o579">
<a name="579"></a>
    <a name="h12"></a><a name="customizing_debian_installer"></a><a name="customizing-installer"></a><a name="hcustomizing-installer">12. Customizing Debian Installer</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="580" href="#580" class="lnkocn">580</a></label>
  <p class="i0" id="o580">
    Debian Live system images can be integrated with Debian Installer. There are a number of different types of installation, varying in what is included and how the installer operates.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="581" href="#581" class="lnkocn">581</a></label>
  <p class="i0" id="o581">
    Please note the careful use of capital letters when referring to the "Debian Installer" in this section - when used like this we refer explicitly to the official installer for the Debian system, not anything else. It is often seen abbreviated to "d-i".
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="582" href="#582" class="lnkocn">582</a></label>
  <h5 class="norm" id="o582">
<a name="582"></a>
    <a name="12.1"></a><a name="h12.1"></a><a name="h12.1">12.1 Types of Debian Installer</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="583" href="#583" class="lnkocn">583</a></label>
  <p class="i0" id="o583">
    The three main types of installer are:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="584" href="#584" class="lnkocn">584</a></label>
  <p class="i0" id="o584">
    <b>"Normal" Debian Installer</b>: This is a normal Debian Live image with a separate kernel and initrd which (when selected from the appropriate bootloader) launches into a standard Debian Installer instance, just as if you had downloaded a CD image of Debian and booted it. Images containing a live system and such an otherwise independent installer are often referred to as "combined images".
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="585" href="#585" class="lnkocn">585</a></label>
  <p class="i0" id="o585">
    On such images, Debian is installed by fetching and installing .deb packages using <i>debootstrap</i>, from local media or some network-based network, resulting in a default Debian system being installed to the hard disk.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="586" href="#586" class="lnkocn">586</a></label>
  <p class="i0" id="o586">
    This whole process can be preseeded and customized in a number of ways; see the relevant pages in the Debian Installer manual for more information. Once you have a working preseeding file, <i>live-build</i> can automatically put it in the image and enable it for you.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="587" href="#587" class="lnkocn">587</a></label>
  <p class="i0" id="o587">
    <b>"Live" Debian Installer</b>: This is a Debian Live image with a separate kernel and initrd which (when selected from the appropriate bootloader) launches into an instance of the Debian Installer.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="588" href="#588" class="lnkocn">588</a></label>
  <p class="i0" id="o588">
    Installation will proceed in an identical fashion to the "normal" installation described above, but at the actual package installation stage, instead of using <i>debootstrap</i> to fetch and install packages, the live filesystem image is copied to the target. This is achieved with a special udeb called <i>live-installer</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="589" href="#589" class="lnkocn">589</a></label>
  <p class="i0" id="o589">
    After this stage, the Debian Installer continues as normal, installing and configuring items such as bootloaders and local users, etc.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="590" href="#590" class="lnkocn">590</a></label>
  <p class="i0" id="o590">
    <b>Note:</b> to support both normal and live installer entries in the bootloader of the same live medium, you must disable <i>live-installer</i> by preseeding <tt>live-installer/enable=false</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="591" href="#591" class="lnkocn">591</a></label>
  <p class="i0" id="o591">
    <b>"Desktop" Debian Installer</b>: Regardless of the type of Debian Installer included, <tt>d-i</tt> can be launched from the Desktop by clicking on an icon. This is user friendlier in some situations. In order to make use of this, the <i>debian-installer-launcher</i> package needs to be included.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="592" href="#592" class="lnkocn">592</a></label>
  <p class="i0" id="o592">
    Note that by default, <i>live-build</i> does not include Debian Installer images in the images, it needs to be specifically enabled with <tt>lb config</tt>. Also, please note that for the "Desktop" installer to work, the kernel of the live system must match the kernel <tt>d-i</tt> uses for the specified architecture. For example:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="593" href="#593" class="lnkocn">593</a></label>
  <p class="code" id="o593">
    $ lb config --architectures i386 --linux-flavours 486 \<br>
         --debian-installer live<br>
$ echo debian-installer-launcher &gt;&gt; config/package-lists/my.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="594" href="#594" class="lnkocn">594</a></label>
  <h5 class="norm" id="o594">
<a name="594"></a>
    <a name="12.2"></a><a name="h12.2"></a><a name="h12.2">12.2 Customizing Debian Installer by preseeding</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="595" href="#595" class="lnkocn">595</a></label>
  <p class="i0" id="o595">
    As described in the Debian Installer Manual, Appendix B at ‹<a href="http://www.debian.org/releases/stable/i386/apb.html" target="_top">http://www.debian.org/releases/stable/i386/apb.html</a>›, "Preseeding provides a way to set answers to questions asked during the installation process, without having to manually enter the answers while the installation is running. This makes it possible to fully automate most types of installation and even offers some features not available during normal installations." This kind of customization is best accomplished with <i>live-build</i> by placing the configuration in a <tt>preseed.cfg</tt> file included in <tt>config/debian-installer/</tt>. For example, to preseed setting the locale to <tt>en_US</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="596" href="#596" class="lnkocn">596</a></label>
  <p class="code" id="o596">
    $ echo "d-i debian-installer/locale string en_US" \<br>
         &gt;&gt; config/debian-installer/preseed.cfg<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="597" href="#597" class="lnkocn">597</a></label>
  <h5 class="norm" id="o597">
<a name="597"></a>
    <a name="12.3"></a><a name="h12.3"></a><a name="h12.3">12.3 Customizing Debian Installer content</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="598" href="#598" class="lnkocn">598</a></label>
  <p class="i0" id="o598">
    For experimental or debugging purposes, you might want to include locally built <tt>d-i</tt> component udeb packages. Place these in <tt>config/packages.binary/</tt> to include them in the image. Additional or replacement files and directories may be included in the installer initrd as well, in a similar fashion to  <a href="#live-chroot-local-includes">Live/chroot local includes</a>,  by placing the material in <tt>config/includes.debian-installer/</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="599" href="#599" class="lnkocn">599</a></label>
  <h2 class="norm" id="o599">
<a name="599"></a>
    <a name="h">Project</a>
  </h2>
</div>

<div class="substance">
  <label class="ocn"><a name="600" href="#600" class="lnkocn">600</a></label>
  <h4 class="norm" id="o600">
<a name="600"></a>
    <a name="h13"></a><a name="contributing_to_the_project"></a><a name="contributing-to-project"></a><a name="hcontributing-to-project">13. Contributing to the project</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="601" href="#601" class="lnkocn">601</a></label>
  <p class="i0" id="o601">
    When submitting a contribution, please clearly identify its copyright holder and include the licensing statement. Note that to be accepted, the contribution must be licensed under the same license as the rest of the documents, namely, GPL version 3 or later.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="602" href="#602" class="lnkocn">602</a></label>
  <p class="i0" id="o602">
    Contributions to the project, such as translations and patches, are greatly welcome. Anyone can directly commit to the repositories, however, we ask you to send bigger changes to the mailing list to discuss them first. See the section  <a href="#contact">Contact</a>  for more information.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="603" href="#603" class="lnkocn">603</a></label>
  <p class="i0" id="o603">
    The Debian Live Project uses Git as version control system and source code management. As explained in  <a href="#git-repositories">Git repositories</a>  there are two main development branches: <b>debian</b> and <b>debian-next</b>. Everybody can commit to the debian-next branches of the <i>live-boot</i>, <i>live-build</i>, <i>live-config</i>, <i>live-images</i>, <i>live-manual</i> and <i>live-tools</i> repositories.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="604" href="#604" class="lnkocn">604</a></label>
  <p class="i0" id="o604">
    However, there are certain restrictions. The server will reject:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="605" href="#605" class="lnkocn">605</a></label>
  <li class="bullet" id="o605">
    Non fast-forward pushes.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="606" href="#606" class="lnkocn">606</a></label>
  <li class="bullet" id="o606">
    Merge commits.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="607" href="#607" class="lnkocn">607</a></label>
  <li class="bullet" id="o607">
    Adding or removing tags or branches.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="608" href="#608" class="lnkocn">608</a></label>
  <p class="i0" id="o608">
    Even though all commits might be revised, we ask you to use your common sense and make good commits with good commit messages.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="609" href="#609" class="lnkocn">609</a></label>
  <li class="bullet" id="o609">
    Write commit messages that consist of complete, meaningful sentences in English, starting with a capital letter and ending with a full stop. Usually, these will start with the form "Fixing/Adding/Removing/Correcting/Translating/...".
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="610" href="#610" class="lnkocn">610</a></label>
  <li class="bullet" id="o610">
    Write good commit messages. The first line must be an accurate summary of the contents of the commit which will be included in the changelog. If you need to make some further explanations, write them below leaving a blank line after the first one and then another blank line after each paragraph. Lines of paragraphs should not exceed 80 characters in length.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="611" href="#611" class="lnkocn">611</a></label>
  <li class="bullet" id="o611">
    Commit atomically, this is to say, do not mix unrelated things in the same commit. Make one different commit for each change you make.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="612" href="#612" class="lnkocn">612</a></label>
  <h5 class="norm" id="o612">
<a name="612"></a>
    <a name="13.1"></a><a name="h13.1"></a><a name="h13.1">13.1 Making changes</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="613" href="#613" class="lnkocn">613</a></label>
  <p class="i0" id="o613">
    In order to push to the repositories, you must follow the following procedure. Here we use <i>live-manual</i> as an example so replace it with the name of the repository you want to work with. For detailed information on how to edit <i>live-manual</i> see  <a href="#how-to-contribute">Contributing to this document</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="614" href="#614" class="lnkocn">614</a></label>
  <li class="bullet" id="o614">
    Fetch the public commit key:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="615" href="#615" class="lnkocn">615</a></label>
  <p class="code" id="o615">
    $ mkdir -p ~/.ssh/keys<br>
$ wget http://live.debian.net/other/keys/git@live.debian.net -O ~/.ssh/keys/git@live.debian.net<br>
$ wget http://live.debian.net/other/keys/git@live.debian.net.pub -O ~/.ssh/keys/git@live.debian.net.pub<br>
$ chmod 0600 ~/.ssh/keys/git@live.debian.net*<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="616" href="#616" class="lnkocn">616</a></label>
  <li class="bullet" id="o616">
    Add the following section to your openssh-client config:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="617" href="#617" class="lnkocn">617</a></label>
  <p class="code" id="o617">
    $ cat &gt;&gt; ~/.ssh/config &lt;&lt; EOF<br>
Host live.debian.net<br>
     Hostname live.debian.net<br>
     User git<br>
     IdentityFile ~/.ssh/keys/git@live.debian.net<br>
EOF<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="618" href="#618" class="lnkocn">618</a></label>
  <li class="bullet" id="o618">
    Check out a clone of <i>live-manual</i> through ssh:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="619" href="#619" class="lnkocn">619</a></label>
  <p class="code" id="o619">
    $ git clone git@live.debian.net:/live-manual.git<br>
$ cd live-manual &amp;&amp; git checkout debian-next<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="620" href="#620" class="lnkocn">620</a></label>
  <li class="bullet" id="o620">
    Make sure you have Git author and email set:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="621" href="#621" class="lnkocn">621</a></label>
  <p class="code" id="o621">
      $ git config user.name "John Doe"<br>
  $ git config user.email john@example.org<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="622" href="#622" class="lnkocn">622</a></label>
  <p class="i0" id="o622">
    <b>Important:</b> Remember that you should commit any changes on the <b>debian-next</b> branch.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="623" href="#623" class="lnkocn">623</a></label>
  <li class="bullet" id="o623">
    Make your changes. In this example you would first write a new section dealing with applying patches and then prepare to commit adding the files and writing your commit message like this:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="624" href="#624" class="lnkocn">624</a></label>
  <p class="code" id="o624">
    $ git commit -a -m "Adding a section on applying patches."<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="625" href="#625" class="lnkocn">625</a></label>
  <li class="bullet" id="o625">
    Push the commit to the server:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="626" href="#626" class="lnkocn">626</a></label>
  <p class="code" id="o626">
    $ git push<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="627" href="#627" class="lnkocn">627</a></label>
  <h4 class="norm" id="o627">
<a name="627"></a>
    <a name="h14"></a><a name="reporting_bugs"></a><a name="bugs"></a><a name="hbugs">14. Reporting bugs</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="628" href="#628" class="lnkocn">628</a></label>
  <p class="i0" id="o628">
    Debian Live is far from being perfect, but we want to make it as close as possible to perfect - with your help. Do not hesitate to report a bug. It is better to fill a report twice than never. However, this chapter includes recommendations on how to file good bug reports.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="629" href="#629" class="lnkocn">629</a></label>
  <p class="i0" id="o629">
    For the impatient:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="630" href="#630" class="lnkocn">630</a></label>
  <li class="bullet" id="o630">
    Always check first the image status updates on our homepage at ‹<a href="http://live.debian.net/" target="_top">http://live.debian.net/</a>› for known issues.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="631" href="#631" class="lnkocn">631</a></label>
  <li class="bullet" id="o631">
    Always try to reproduce the bug with the <b>most recent versions</b> of <i>live-build</i>, <i>live-boot</i>, <i>live-config</i> and <i>live-tools</i> before submitting a bug report.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="632" href="#632" class="lnkocn">632</a></label>
  <li class="bullet" id="o632">
    Try to give <b>as specific information as possible</b> about the bug. This includes (at least) the version of <i>live-build</i>, <i>live-boot</i>, <i>live-config</i>, and <i>live-tools</i> used and the distribution of the live system you are building.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="633" href="#633" class="lnkocn">633</a></label>
  <h5 class="norm" id="o633">
<a name="633"></a>
    <a name="14.1"></a><a name="h14.1"></a><a name="h14.1">14.1 Known issues</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="634" href="#634" class="lnkocn">634</a></label>
  <p class="i0" id="o634">
    Since Debian <b>testing</b> and Debian <b>unstable</b> distributions are moving targets, when you specify either of them as the target system distribution, a successful build may not always be possible.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="635" href="#635" class="lnkocn">635</a></label>
  <p class="i0" id="o635">
    If this causes too much difficulty for you, do not build a system based on <b>testing</b> or <b>unstable</b>, but rather, use <b>stable</b>. <i>live-build</i> always defaults to the <b>stable</b> release.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="636" href="#636" class="lnkocn">636</a></label>
  <p class="i0" id="o636">
    Currently known issues are listed under the section 'status' on our homepage at ‹<a href="http://live.debian.net/" target="_top">http://live.debian.net/</a>›.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="637" href="#637" class="lnkocn">637</a></label>
  <p class="i0" id="o637">
    It is out of the scope of this manual to train you to correctly identify and fix problems in packages of the development distributions, however, there are two things you can always try: If a build fails when the target distribution is <b>testing</b>, try <b>unstable</b>. If <b>unstable</b> does not work either, revert to <b>testing</b> and pin the newer version of the failing package from <b>unstable</b> (see  <a href="#apt-pinning">APT pinning</a>  for details).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="638" href="#638" class="lnkocn">638</a></label>
  <h5 class="norm" id="o638">
<a name="638"></a>
    <a name="14.2"></a><a name="h14.2"></a><a name="h14.2">14.2 Rebuild from scratch</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="639" href="#639" class="lnkocn">639</a></label>
  <p class="i0" id="o639">
    To ensure that a particular bug is not caused by an uncleanly built system, please always rebuild the whole live system from scratch to see if the bug is reproducible.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="640" href="#640" class="lnkocn">640</a></label>
  <h5 class="norm" id="o640">
<a name="640"></a>
    <a name="14.3"></a><a name="h14.3"></a><a name="h14.3">14.3 Use up-to-date packages</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="641" href="#641" class="lnkocn">641</a></label>
  <p class="i0" id="o641">
    Using outdated packages can cause significant problems when trying to reproduce (and ultimately fix) your problem. Make sure your build system is up-to-date and any packages included in your image are up-to-date as well.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="642" href="#642" class="lnkocn">642</a></label>
  <h5 class="norm" id="o642">
<a name="642"></a>
    <a name="h14.4"></a><a name="collect-information"></a><a name="hcollect-information">14.4 Collect information</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="643" href="#643" class="lnkocn">643</a></label>
  <p class="i0" id="o643">
    Please provide enough information with your report. Include, at least, the exact version of <i>live-build</i> where the bug is encountered and the steps to reproduce it. Please use your common sense and provide any other relevant information if you think that it might help in solving the problem.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="644" href="#644" class="lnkocn">644</a></label>
  <p class="i0" id="o644">
    To make the most out of your bug report, we require at least the following information:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="645" href="#645" class="lnkocn">645</a></label>
  <li class="bullet" id="o645">
    Architecture of the host system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="646" href="#646" class="lnkocn">646</a></label>
  <li class="bullet" id="o646">
    Version of <i>live-build</i> on the host system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="647" href="#647" class="lnkocn">647</a></label>
  <li class="bullet" id="o647">
    Version of <i>debootstrap</i> and/or <i>cdebootstrap</i> on the host system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="648" href="#648" class="lnkocn">648</a></label>
  <li class="bullet" id="o648">
    Architecture of the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="649" href="#649" class="lnkocn">649</a></label>
  <li class="bullet" id="o649">
    Distribution of the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="650" href="#650" class="lnkocn">650</a></label>
  <li class="bullet" id="o650">
    Version of <i>live-boot</i> on the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="651" href="#651" class="lnkocn">651</a></label>
  <li class="bullet" id="o651">
    Version of <i>live-config</i> on the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="652" href="#652" class="lnkocn">652</a></label>
  <li class="bullet" id="o652">
    Version of <i>live-tools</i> on the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="653" href="#653" class="lnkocn">653</a></label>
  <p class="i0" id="o653">
    You can generate a log of the build process by using the <tt>tee</tt> command. We recommend doing this automatically with an <tt>auto/build</tt> script (see  <a href="#managing-a-configuration">Managing a configuration</a>  for details).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="654" href="#654" class="lnkocn">654</a></label>
  <p class="code" id="o654">
    # lb build 2&gt;&amp;1 | tee build.log<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="655" href="#655" class="lnkocn">655</a></label>
  <p class="i0" id="o655">
    At boot time, <i>live-boot</i> and <i>live-config</i> store their logfiles in <tt>/var/log/live/</tt>. Check them for error messages.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="656" href="#656" class="lnkocn">656</a></label>
  <p class="i0" id="o656">
    Additionally, to rule out other errors, it is always a good idea to tar up your <tt>config/</tt> directory and upload it somewhere (do <b>not</b> send it as an attachment to the mailing list), so that we can try to reproduce the errors you encountered. If this is difficult (e.g. due to size) you can use the output of <tt>lb config --dump</tt> which produces a summary of your config tree (i.e. lists files in subdirectories of <tt>config/</tt> but does not include them).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="657" href="#657" class="lnkocn">657</a></label>
  <p class="i0" id="o657">
    Remember to send in any logs that were produced with English locale settings, e.g. run your <i>live-build</i> commands with a leading <tt>LC_ALL=C</tt> or <tt>LC_ALL=en_US</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="658" href="#658" class="lnkocn">658</a></label>
  <h5 class="norm" id="o658">
<a name="658"></a>
    <a name="14.5"></a><a name="h14.5"></a><a name="h14.5">14.5 Isolate the failing case if possible</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="659" href="#659" class="lnkocn">659</a></label>
  <p class="i0" id="o659">
    If possible, isolate the failing case to the smallest possible change that breaks. It is not always easy to do this so if you cannot manage it for your report, do not worry. However, if you plan your development cycle well, using small enough change sets per iteration, you may be able to isolate the problem by constructing a simpler 'base' configuration that closely matches your actual configuration plus just the broken change set added to it. If you have a hard time sorting out which of your changes broke, it may be that you are including too much in each change set and should develop in smaller increments.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="660" href="#660" class="lnkocn">660</a></label>
  <h5 class="norm" id="o660">
<a name="660"></a>
    <a name="14.6"></a><a name="h14.6"></a><a name="h14.6">14.6 Use the correct package to report the bug against</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="661" href="#661" class="lnkocn">661</a></label>
  <p class="i0" id="o661">
    If you do not know what component is responsible for the bug or if the bug is a general bug concerning live systems, you can fill a bug against the debian-live pseudo-package.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="662" href="#662" class="lnkocn">662</a></label>
  <p class="i0" id="o662">
    However, we would appreciate it if you try to narrow it down according to where the bug appears.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="663" href="#663" class="lnkocn">663</a></label>
  <h6 class="norm" id="o663">
<a name="663"></a>
    <a name="14.6.1"></a><a name="h14.6.1"></a><a name="h14.6.1">14.6.1 At build time while bootstrapping</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="664" href="#664" class="lnkocn">664</a></label>
  <p class="i0" id="o664">
    <i>live-build</i> first bootstraps a basic Debian system with <i>debootstrap</i> or <i>cdebootstrap</i>. Depending on the bootstrapping tool used and the Debian distribution it is bootstrapping, it may fail. If a bug appears here, check if the error is related to a specific Debian package (most likely), or if it is related to the bootstrapping tool itself.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="665" href="#665" class="lnkocn">665</a></label>
  <p class="i0" id="o665">
    In both cases, this is not a bug in Debian Live, but rather in Debian itself and probably we cannot fix it directly. Please report such a bug against the bootstrapping tool or the failing package.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="666" href="#666" class="lnkocn">666</a></label>
  <h6 class="norm" id="o666">
<a name="666"></a>
    <a name="14.6.2"></a><a name="h14.6.2"></a><a name="h14.6.2">14.6.2 At build time while installing packages</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="667" href="#667" class="lnkocn">667</a></label>
  <p class="i0" id="o667">
    <i>live-build</i> installs additional packages from the Debian archive and depending on the Debian distribution used and the daily archive state, it can fail. If a bug appears here, check if the error is also reproducible on a normal system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="668" href="#668" class="lnkocn">668</a></label>
  <p class="i0" id="o668">
    If this is the case, this is not a bug in Debian Live, but rather in Debian - please report it against the failing package. Running <i>debootstrap</i> separately from the Live system build or running <tt>lb bootstrap --debug</tt> will give you more information.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="669" href="#669" class="lnkocn">669</a></label>
  <p class="i0" id="o669">
    Also, if you are using a local mirror and/or any sort of proxy and you are experiencing a problem, please always reproduce it first by bootstrapping from an official mirror.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="670" href="#670" class="lnkocn">670</a></label>
  <h6 class="norm" id="o670">
<a name="670"></a>
    <a name="14.6.3"></a><a name="h14.6.3"></a><a name="h14.6.3">14.6.3 At boot time</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="671" href="#671" class="lnkocn">671</a></label>
  <p class="i0" id="o671">
    If your image does not boot, please report it to the mailing list together with the information requested in  <a href="#collect-information">Collect information</a>.  Do not forget to mention, how/when the image failed exactly, whether using virtualization or real hardware. If you are using a virtualization technology of any kind, please always run it on real hardware before reporting a bug. Providing a screenshot of the failure is also very helpful.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="672" href="#672" class="lnkocn">672</a></label>
  <h6 class="norm" id="o672">
<a name="672"></a>
    <a name="14.6.4"></a><a name="h14.6.4"></a><a name="h14.6.4">14.6.4 At run time</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="673" href="#673" class="lnkocn">673</a></label>
  <p class="i0" id="o673">
    If a package was successfully installed, but fails while actually running the Live system, this is probably a bug in Debian Live. However:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="674" href="#674" class="lnkocn">674</a></label>
  <h5 class="norm" id="o674">
<a name="674"></a>
    <a name="14.7"></a><a name="h14.7"></a><a name="h14.7">14.7 Do the research</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="675" href="#675" class="lnkocn">675</a></label>
  <p class="i0" id="o675">
    Before filing the bug, please search the web for the particular error message or symptom you are getting. As it is highly unlikely that you are the only person experiencing a particular problem. There is always a chance that it has been discussed elsewhere and a possible solution, patch, or workaround has been proposed.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="676" href="#676" class="lnkocn">676</a></label>
  <p class="i0" id="o676">
    You should pay particular attention to the Debian Live mailing list, as well as the homepage, as these are likely to contain the most up-to-date information. If such information exists, always include the references to it in your bug report.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="677" href="#677" class="lnkocn">677</a></label>
  <p class="i0" id="o677">
    In addition, you should check the current bug lists for <i>live-build</i>, <i>live-boot</i>, <i>live-config</i> and <i>live-tools</i> to see whether something similar has already been reported.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="678" href="#678" class="lnkocn">678</a></label>
  <h5 class="norm" id="o678">
<a name="678"></a>
    <a name="14.8"></a><a name="h14.8"></a><a name="h14.8">14.8 Where to report bugs</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="679" href="#679" class="lnkocn">679</a></label>
  <p class="i0" id="o679">
    The Debian Live project keeps track of all bugs in the Debian Bug Tracking System (BTS). For information on how to use the system, please see ‹<a href="http://bugs.debian.org/" target="_top">http://bugs.debian.org/</a>›. You can also submit the bugs by using the <tt>reportbug</tt> command from the package with the same name.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="680" href="#680" class="lnkocn">680</a></label>
  <p class="i0" id="o680">
    In general, you should report build time errors against the <i>live-build</i> package, boot time errors against <i>live-boot</i>, and run time errors against <i>live-config</i>. If you are unsure of which package is appropriate or need more help before submitting a bug report, please report it against the debian-live pseudo-package. We will then take care about it and reassign it where appropriate.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="681" href="#681" class="lnkocn">681</a></label>
  <p class="i0" id="o681">
    Please note that bugs found in distributions derived from Debian (such as Ubuntu and others) should <b>not</b> be reported to the Debian BTS unless they can be also reproduced on a Debian system using official Debian packages.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="682" href="#682" class="lnkocn">682</a></label>
  <h4 class="norm" id="o682">
<a name="682"></a>
    <a name="h15"></a><a name="coding_style"></a><a name="coding-style"></a><a name="hcoding-style">15. Coding Style</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="683" href="#683" class="lnkocn">683</a></label>
  <p class="i0" id="o683">
    This chapter documents the coding style used in Debian Live.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="684" href="#684" class="lnkocn">684</a></label>
  <h5 class="norm" id="o684">
<a name="684"></a>
    <a name="15.1"></a><a name="h15.1"></a><a name="h15.1">15.1 Compatibility</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="685" href="#685" class="lnkocn">685</a></label>
  <li class="bullet" id="o685">
    Don't use syntax or semantics that are unique to the Bash shell. For example, the use of array constructs.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="686" href="#686" class="lnkocn">686</a></label>
  <li class="bullet" id="o686">
    Only use the POSIX subset - for example, use $(foo) over `foo`.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="687" href="#687" class="lnkocn">687</a></label>
  <li class="bullet" id="o687">
    You can check your scripts with 'sh -n' and 'checkbashisms'.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="688" href="#688" class="lnkocn">688</a></label>
  <li class="bullet" id="o688">
    Make sure all shell code runs with 'set -e'.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="689" href="#689" class="lnkocn">689</a></label>
  <h5 class="norm" id="o689">
<a name="689"></a>
    <a name="15.2"></a><a name="h15.2"></a><a name="h15.2">15.2 Indenting</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="690" href="#690" class="lnkocn">690</a></label>
  <li class="bullet" id="o690">
    Always use tabs over spaces.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="691" href="#691" class="lnkocn">691</a></label>
  <h5 class="norm" id="o691">
<a name="691"></a>
    <a name="15.3"></a><a name="h15.3"></a><a name="h15.3">15.3 Wrapping</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="692" href="#692" class="lnkocn">692</a></label>
  <li class="bullet" id="o692">
    Generally, lines are 80 chars at maximum.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="693" href="#693" class="lnkocn">693</a></label>
  <li class="bullet" id="o693">
    Use the "Linux style" of line breaks:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="694" href="#694" class="lnkocn">694</a></label>
  <p class="i0" id="o694">
    Bad:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="695" href="#695" class="lnkocn">695</a></label>
  <p class="code" id="o695">
    if foo; then<br>
         bar<br>
fi<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="696" href="#696" class="lnkocn">696</a></label>
  <p class="i0" id="o696">
    Good:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="697" href="#697" class="lnkocn">697</a></label>
  <p class="code" id="o697">
    if foo<br>
then<br>
         bar<br>
fi<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="698" href="#698" class="lnkocn">698</a></label>
  <li class="bullet" id="o698">
    The same holds for functions:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="699" href="#699" class="lnkocn">699</a></label>
  <p class="i0" id="o699">
    Bad:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="700" href="#700" class="lnkocn">700</a></label>
  <p class="code" id="o700">
    Foo () {<br>
         bar<br>
}<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="701" href="#701" class="lnkocn">701</a></label>
  <p class="i0" id="o701">
    Good:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="702" href="#702" class="lnkocn">702</a></label>
  <p class="code" id="o702">
    Foo ()<br>
{<br>
         bar<br>
}<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="703" href="#703" class="lnkocn">703</a></label>
  <h5 class="norm" id="o703">
<a name="703"></a>
    <a name="15.4"></a><a name="h15.4"></a><a name="h15.4">15.4 Variables</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="704" href="#704" class="lnkocn">704</a></label>
  <li class="bullet" id="o704">
    Variables are always in capital letters.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="705" href="#705" class="lnkocn">705</a></label>
  <li class="bullet" id="o705">
    Variables used in <i>live-build</i> always start with <tt>LB_</tt> prefix.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="706" href="#706" class="lnkocn">706</a></label>
  <li class="bullet" id="o706">
    Internal temporary variables in <i>live-build</i> should start with the <tt>_LB_</tt> prefix.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="707" href="#707" class="lnkocn">707</a></label>
  <li class="bullet" id="o707">
    Local variables start with <i>live-build</i> <tt>__LB_</tt> prefix.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="708" href="#708" class="lnkocn">708</a></label>
  <li class="bullet" id="o708">
    Variables in connection to a boot parameter in <i>live-config</i> start with <tt>LIVE_</tt>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="709" href="#709" class="lnkocn">709</a></label>
  <li class="bullet" id="o709">
    All other variables in <i>live-config</i> start with <tt>_</tt> prefix.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="710" href="#710" class="lnkocn">710</a></label>
  <li class="bullet" id="o710">
    Use braces around variables; e.g. write <tt>${FOO}</tt> instead of <tt>$FOO</tt>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="711" href="#711" class="lnkocn">711</a></label>
  <li class="bullet" id="o711">
    Always protect variables with quotes to respect potential whitespaces: write <tt>"${FOO}"</tt> not <tt>${FOO}</tt>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="712" href="#712" class="lnkocn">712</a></label>
  <li class="bullet" id="o712">
    For consistency reasons, always use quotes when assigning values to variables:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="713" href="#713" class="lnkocn">713</a></label>
  <p class="i0" id="o713">
    Bad:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="714" href="#714" class="lnkocn">714</a></label>
  <p class="code" id="o714">
    FOO=bar<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="715" href="#715" class="lnkocn">715</a></label>
  <p class="i0" id="o715">
    Good:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="716" href="#716" class="lnkocn">716</a></label>
  <p class="code" id="o716">
    FOO="bar"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="717" href="#717" class="lnkocn">717</a></label>
  <li class="bullet" id="o717">
    If multiple variables are used, quote the full expression:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="718" href="#718" class="lnkocn">718</a></label>
  <p class="i0" id="o718">
    Bad:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="719" href="#719" class="lnkocn">719</a></label>
  <p class="code" id="o719">
    if [ -f "${FOO}"/foo/"${BAR}"/bar ]<br>
then<br>
         foobar<br>
fi<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="720" href="#720" class="lnkocn">720</a></label>
  <p class="i0" id="o720">
    Good:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="721" href="#721" class="lnkocn">721</a></label>
  <p class="code" id="o721">
    if [ -f "${FOO}/foo/${BAR}/bar" ]<br>
then<br>
         foobar<br>
fi<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="722" href="#722" class="lnkocn">722</a></label>
  <h5 class="norm" id="o722">
<a name="722"></a>
    <a name="15.5"></a><a name="h15.5"></a><a name="h15.5">15.5 Miscellaneous</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="723" href="#723" class="lnkocn">723</a></label>
  <li class="bullet" id="o723">
    Use "<tt>|</tt>" (without the surround quotes) as a separator in calls to sed, e.g. "<tt>sed -e 's|foo|bar|'</tt>" (without "").
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="724" href="#724" class="lnkocn">724</a></label>
  <li class="bullet" id="o724">
    Don't use the <tt>test</tt> command for comparisons or tests, use "<tt>[</tt>" "<tt>]</tt>" (without ""); e.g. "<tt>if [ -x /bin/foo ]; ...</tt>" and not "<tt>if test -x /bin/foo; ...</tt>".
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="725" href="#725" class="lnkocn">725</a></label>
  <li class="bullet" id="o725">
    Use <tt>case</tt> wherever possible over <tt>test</tt>, as it's easier to read and faster in execution.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="726" href="#726" class="lnkocn">726</a></label>
  <li class="bullet" id="o726">
    Use capitalized names for functions to limit messing with the users environment.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="727" href="#727" class="lnkocn">727</a></label>
  <h4 class="norm" id="o727">
<a name="727"></a>
    <a name="h16"></a><a name="procedures"></a><a name="hprocedures">16. Procedures</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="728" href="#728" class="lnkocn">728</a></label>
  <p class="i0" id="o728">
    This chapter documents the procedures within the Debian Live project for various tasks that need cooperation with other teams in Debian.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="729" href="#729" class="lnkocn">729</a></label>
  <h5 class="norm" id="o729">
<a name="729"></a>
    <a name="16.1"></a><a name="h16.1"></a><a name="h16.1">16.1 Major Releases</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="730" href="#730" class="lnkocn">730</a></label>
  <p class="i0" id="o730">
    Releasing a new stable major version of Debian includes a lot of different teams working together to make it happen. At some point, the Live team comes in and builds live system images. The requirements to do this are:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="731" href="#731" class="lnkocn">731</a></label>
  <li class="bullet" id="o731">
    A mirror containing the released versions for the debian and debian-security archives which the debian-live buildd can access.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="732" href="#732" class="lnkocn">732</a></label>
  <li class="bullet" id="o732">
    The names of the image need to be known (e.g. debian-live-VERSION-ARCH-FLAVOUR.iso).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="733" href="#733" class="lnkocn">733</a></label>
  <li class="bullet" id="o733">
    The data from debian-cd needs to be synced (udeb exclude lists).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="734" href="#734" class="lnkocn">734</a></label>
  <li class="bullet" id="o734">
    The includes from debian-cd needs to be synced (README.*, doc/*, etc.).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="735" href="#735" class="lnkocn">735</a></label>
  <li class="bullet" id="o735">
    Images are built and mirrored on cdimage.debian.org.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="736" href="#736" class="lnkocn">736</a></label>
  <h5 class="norm" id="o736">
<a name="736"></a>
    <a name="16.2"></a><a name="h16.2"></a><a name="h16.2">16.2 Point Releases</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="737" href="#737" class="lnkocn">737</a></label>
  <li class="bullet" id="o737">
    Again, we need updated mirrors of debian and debian-security.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="738" href="#738" class="lnkocn">738</a></label>
  <li class="bullet" id="o738">
    Images are built and mirrored on cdimage.debian.org.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="739" href="#739" class="lnkocn">739</a></label>
  <li class="bullet" id="o739">
    Send announcement mail.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="740" href="#740" class="lnkocn">740</a></label>
  <h6 class="norm" id="o740">
<a name="740"></a>
    <a name="16.2.1"></a><a name="h16.2.1"></a><a name="h16.2.1">16.2.1 Last Point Release of a Debian Release</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="741" href="#741" class="lnkocn">741</a></label>
  <p class="i0" id="o741">
    Remember to adjust both chroot and binary mirrors when building the last set of images for a Debian release after it has been moved away from ftp.debian.org to archive.debian.org. That way, old prebuilt live images are still useful without user modifications.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="742" href="#742" class="lnkocn">742</a></label>
  <h6 class="norm" id="o742">
<a name="742"></a>
    <a name="16.2.2"></a><a name="h16.2.2"></a><a name="h16.2.2">16.2.2 Point release announcement template</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="743" href="#743" class="lnkocn">743</a></label>
  <p class="i0" id="o743">
    An annoucement mail for point releases can be generated using the template below and the following command:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="744" href="#744" class="lnkocn">744</a></label>
  <p class="code" id="o744">
    $ sed \<br>
     -e 's|@MAJOR@|7.0|g' \<br>
     -e 's|@MINOR@|7.0.1|g' \<br>
     -e 's|@CODENAME@|wheezy|g' \<br>
     -e 's|@ANNOUNCE@|2013/msgXXXXX.html|g'<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="745" href="#745" class="lnkocn">745</a></label>
  <p class="i0" id="o745">
    Please check the mail carefully before sending and pass it to others for proof-reading.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="746" href="#746" class="lnkocn">746</a></label>
  <p class="code" id="o746">
    Updated Debian Live @MAJOR@: @MINOR@ released<br><br>
The Debian Live project is pleased to announce the @MINOR@ update of the<br>
Live images for the stable distribution Debian @MAJOR@ (codename "@CODENAME@").<br><br>
The images are available for download at:<br><br>
   &lt;http://live.debian.net/cdimage/release/current/&gt;<br> <br>
and later at:<br><br>
   &lt;http://cdimage.debian.org/cdimage/release/current-live/&gt;<br> <br>
This update includes the changes of the Debian @MINOR@ release:<br><br>
   &lt;http://lists.debian.org/debian-announce/@ANNOUNCE@&gt;<br> <br>
Additionally it includes the following Live-specific changes:<br><br>
  * [INSERT LIVE-SPECIFIC CHANGE HERE]<br>
  * [INSERT LIVE-SPECIFIC CHANGE HERE]<br>
  * [LARGER ISSUES MAY DESERVE THEIR OWN SECTION]<br><br>
About Debian Live<br>
-----------------<br>
The Debian Live project produces the tools used to build official<br>
Debian Live systems and the official Debian Live images themselves.<br><br>
About Debian<br>
------------<br>
The Debian Project is an association of Free Software developers who<br>
volunteer their time and effort in order to produce the completely free<br>
operating system Debian.<br><br>
Contact Information<br>
-------------------<br>
For further information, please visit the Debian Live web pages at<br>
&lt;http://live.debian.net/&gt;, or contact the Debian Live team at<br>
&lt;debian-live@lists.debian.org&gt;.<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="747" href="#747" class="lnkocn">747</a></label>
  <h4 class="norm" id="o747">
<a name="747"></a>
    <a name="h17"></a><a name="git_repositories"></a><a name="git-repositories"></a><a name="hgit-repositories">17. Git repositories</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="748" href="#748" class="lnkocn">748</a></label>
  <p class="i0" id="o748">
    The list of all the available repositories of the Debian Live Project can be found at ‹<a href="http://live.debian.net/gitweb/" target="_top">http://live.debian.net/gitweb/</a>›. The project's git URLs have the form: <tt>protocol://live.debian.net/git/repository</tt>. Thus, in order to clone <i>live-manual</i> read-only, launch:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="749" href="#749" class="lnkocn">749</a></label>
  <p class="code" id="o749">
    $ git clone git://live.debian.net/git/live-manual.git<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="750" href="#750" class="lnkocn">750</a></label>
  <p class="i0" id="o750">
    Or,
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="751" href="#751" class="lnkocn">751</a></label>
  <p class="code" id="o751">
    $ git clone https://live.debian.net/git/live-manual.git<br> <br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="752" href="#752" class="lnkocn">752</a></label>
  <p class="i0" id="o752">
    Or,
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="753" href="#753" class="lnkocn">753</a></label>
  <p class="code" id="o753">
    $ git clone http://live.debian.net/git/live-manual.git<br> <br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="754" href="#754" class="lnkocn">754</a></label>
  <p class="i0" id="o754">
    The cloning addresses with write permission have the form: <tt>git@live.debian.net:/repository</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="755" href="#755" class="lnkocn">755</a></label>
  <p class="i0" id="o755">
    So, again, to clone <i>live-manual</i> over ssh you must type:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="756" href="#756" class="lnkocn">756</a></label>
  <p class="code" id="o756">
    $ git clone git@live.debian.net:live-manual.git<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="757" href="#757" class="lnkocn">757</a></label>
  <p class="i0" id="o757">
    The git tree is made up of several different branches. The <b>debian</b> and the <b>debian-next</b> branches are particularly noteworthy because they contain the actual work that will eventually be included in each new release.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="758" href="#758" class="lnkocn">758</a></label>
  <p class="i0" id="o758">
    After cloning any of the existing repositories, you will be on the <b>debian</b> branch. This is appropriate to take a look at the state of the project's latest release but before starting work it is crucial to switch to the <b>debian-next</b> branch. To do so:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="759" href="#759" class="lnkocn">759</a></label>
  <p class="code" id="o759">
    $ git checkout debian-next<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="760" href="#760" class="lnkocn">760</a></label>
  <p class="i0" id="o760">
    The <b>debian-next</b> branch, which is not always fast-forward, is where all the changes are committed first before being merged into the <b>debian</b> branch. To make an analogy, it is like a testing ground. If you are working on this branch and need to pull, you will have to do a <tt>git pull --rebase</tt> so that your local modifications are staged while pulling from the server and then your changes will be put on top of it all.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="761" href="#761" class="lnkocn">761</a></label>
  <h5 class="norm" id="o761">
<a name="761"></a>
    <a name="17.1"></a><a name="h17.1"></a><a name="h17.1">17.1 Handling multiple repositories</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="762" href="#762" class="lnkocn">762</a></label>
  <p class="i0" id="o762">
    If you intend to clone several of the Debian Live repositories and want to switch to the <b>debian-next</b> branch right away to check the latest code, write a patch or contribute with a translation you ought to know that the git server provides a <tt>mrconfig</tt> file to ease the handling of multiple repositories. In order to use it you need to install the <i>mr</i> package and after that, launch:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="763" href="#763" class="lnkocn">763</a></label>
  <p class="code" id="o763">
    $  mr bootstrap http://live.debian.net/other/mr/mrconfig<br> <br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="764" href="#764" class="lnkocn">764</a></label>
  <p class="i0" id="o764">
    This command will automatically clone and checkout to the <b>debian-next</b> branch the development repositories of the Debian packages produced by the project. These include, among others, the <i>live-images</i> repository, which contains the configurations used for the prebuilt images that the project publishes for general use. For more information on how to use this repository, see  <a href="#clone-configuration-via-git">Clone a configuration published via Git</a>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="765" href="#765" class="lnkocn">765</a></label>
  <h2 class="norm" id="o765">
<a name="765"></a>
    <a name="h">Examples</a>
  </h2>
</div>

<div class="substance">
  <label class="ocn"><a name="766" href="#766" class="lnkocn">766</a></label>
  <h4 class="norm" id="o766">
<a name="766"></a>
    <a name="h18"></a><a name="examples"></a><a name="hexamples">18. Examples</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="767" href="#767" class="lnkocn">767</a></label>
  <p class="i0" id="o767">
    This chapter covers example builds for specific use cases with Debian Live. If you are new to building your own Debian Live images, we recommend you first look at the three tutorials in sequence, as each one teaches new techniques that will help you use and understand the remaining examples.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="768" href="#768" class="lnkocn">768</a></label>
  <h5 class="norm" id="o768">
<a name="768"></a>
    <a name="h18.1"></a><a name="using-the-examples"></a><a name="husing-the-examples">18.1 Using the examples</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="769" href="#769" class="lnkocn">769</a></label>
  <p class="i0" id="o769">
    To use these examples you need a system to build them on that meets the requirements listed in  <a href="#requirements">Requirements</a>  and has <i>live-build</i> installed as described in  <a href="#installing-live-build">Installing live-build</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="770" href="#770" class="lnkocn">770</a></label>
  <p class="i0" id="o770">
    Note that, for the sake of brevity, in these examples we do not specify a local mirror to use for the build. You can speed up downloads considerably if you use a local mirror. You may specify the options when you use <tt>lb config</tt>, as described in  <a href="#distribution-mirrors-build-time">Distribution mirrors used at build time</a>,  or for more convenience, set the default for your build system in <tt>/etc/live/build.conf</tt>. Simply create this file and in it, set the corresponding <tt>LB_MIRROR_*</tt> variables to your preferred mirror. All other mirrors used in the build will be defaulted from these values. For example:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="771" href="#771" class="lnkocn">771</a></label>
  <p class="code" id="o771">
    LB_MIRROR_BOOTSTRAP="http://mirror/debian/" <br>
LB_MIRROR_CHROOT_SECURITY="http://mirror/debian-security/" <br>
LB_MIRROR_CHROOT_BACKPORTS="http://mirror/debian-backports/"<br> <br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="772" href="#772" class="lnkocn">772</a></label>
  <h5 class="norm" id="o772">
<a name="772"></a>
    <a name="h18.2"></a><a name="tutorial-1"></a><a name="htutorial-1">18.2 Tutorial 1: A default image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="773" href="#773" class="lnkocn">773</a></label>
  <p class="i0" id="o773">
    <b>Use case:</b> Create a simple first image, learning the basics of <i>live-build</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="774" href="#774" class="lnkocn">774</a></label>
  <p class="i0" id="o774">
    In this tutorial, we will build a default ISO hybrid Debian Live image containing only base packages (no Xorg) and some Debian Live support packages, as a first exercise in using <i>live-build</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="775" href="#775" class="lnkocn">775</a></label>
  <p class="i0" id="o775">
    You can't get much simpler than this:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="776" href="#776" class="lnkocn">776</a></label>
  <p class="code" id="o776">
    $ mkdir tutorial1 ; cd tutorial1 ; lb config<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="777" href="#777" class="lnkocn">777</a></label>
  <p class="i0" id="o777">
    Examine the contents of the <tt>config/</tt> directory if you wish. You will see stored here a skeletal configuration, ready to customize or, in this case, use immediately to build a default image.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="778" href="#778" class="lnkocn">778</a></label>
  <p class="i0" id="o778">
    Now, as superuser, build the image, saving a log as you build with <tt>tee</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="779" href="#779" class="lnkocn">779</a></label>
  <p class="code" id="o779">
    # lb build 2&gt;&amp;1 | tee build.log<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="780" href="#780" class="lnkocn">780</a></label>
  <p class="i0" id="o780">
    Assuming all goes well, after a while, the current directory will contain <tt>binary.hybrid.iso</tt>. This ISO hybrid image can be booted directly in a virtual machine as described in  <a href="#testing-iso-with-qemu">Testing an ISO image with Qemu</a>  and  <a href="#testing-iso-with-virtualbox">Testing an ISO image with virtualbox</a>,  or else imaged onto optical media or a USB flash device as described in  <a href="#burning-iso-image">Burning an ISO image to a physical medium</a>  and  <a href="#copying-iso-hybrid-to-usb">Copying an ISO hybrid image to a USB stick</a>,  respectively.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="781" href="#781" class="lnkocn">781</a></label>
  <h5 class="norm" id="o781">
<a name="781"></a>
    <a name="h18.3"></a><a name="tutorial-2"></a><a name="htutorial-2">18.3 Tutorial 2: A web browser utility</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="782" href="#782" class="lnkocn">782</a></label>
  <p class="i0" id="o782">
    <b>Use case:</b> Create a web browser utility image, learning how to apply customizations.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="783" href="#783" class="lnkocn">783</a></label>
  <p class="i0" id="o783">
    In this tutorial, we will create an image suitable for use as a web browser utility, serving as an introduction to customizing Debian Live images.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="784" href="#784" class="lnkocn">784</a></label>
  <p class="code" id="o784">
    $ mkdir tutorial2<br>
$ cd tutorial2<br>
$ echo "task-lxde-desktop iceweasel" &gt;&gt; config/package-lists/my.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="785" href="#785" class="lnkocn">785</a></label>
  <p class="i0" id="o785">
    Our choice of LXDE for this example reflects our desire to provide a minimal desktop environment, since the focus of the image is the single use we have in mind, the web browser. We could go even further and provide a default configuration for the web browser in <tt>config/includes.chroot/etc/iceweasel/profile/</tt>, or additional support packages for viewing various kinds of web content, but we leave this as an exercise for the reader.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="786" href="#786" class="lnkocn">786</a></label>
  <p class="i0" id="o786">
    Build the image, again as superuser, keeping a log as in  <a href="#tutorial-1">Tutorial 1</a>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="787" href="#787" class="lnkocn">787</a></label>
  <p class="code" id="o787">
    # lb build 2&gt;&amp;1 | tee build.log<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="788" href="#788" class="lnkocn">788</a></label>
  <p class="i0" id="o788">
    Again, verify the image is OK and test, as in  <a href="#tutorial-1">Tutorial 1</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="789" href="#789" class="lnkocn">789</a></label>
  <h5 class="norm" id="o789">
<a name="789"></a>
    <a name="h18.4"></a><a name="tutorial-3"></a><a name="htutorial-3">18.4 Tutorial 3: A personalized image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="790" href="#790" class="lnkocn">790</a></label>
  <p class="i0" id="o790">
    <b>Use case:</b> Create a project to build a personalized image, containing your favourite software to take with you on a USB stick wherever you go, and evolving in successive revisions as your needs and preferences change.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="791" href="#791" class="lnkocn">791</a></label>
  <p class="i0" id="o791">
    Since we will be changing our personalized image over a number of revisions, and we want to track those changes, trying things experimentally and possibly reverting them if things don't work out, we will keep our configuration in the popular <tt>git</tt> version control system. We will also use the best practice of autoconfiguration via <tt>auto</tt> scripts as described in  <a href="#managing-a-configuration">Managing a configuration</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="792" href="#792" class="lnkocn">792</a></label>
  <h6 class="norm" id="o792">
<a name="792"></a>
    <a name="18.4.1"></a><a name="h18.4.1"></a><a name="h18.4.1">18.4.1 First revision</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="793" href="#793" class="lnkocn">793</a></label>
  <p class="code" id="o793">
    $ mkdir -p tutorial3/auto<br>
$ cp /usr/share/doc/live-build/examples/auto/* tutorial3/auto/<br>
$ cd tutorial3<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="794" href="#794" class="lnkocn">794</a></label>
  <p class="i0" id="o794">
    Edit <tt>auto/config</tt> to read as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="795" href="#795" class="lnkocn">795</a></label>
  <p class="code" id="o795">
    #!/bin/sh<br><br>
lb config noauto \<br>
     --architectures i386 \<br>
     --linux-flavours 686-pae \<br>
     "${@}"<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="796" href="#796" class="lnkocn">796</a></label>
  <p class="i0" id="o796">
    Perform <tt>lb config</tt> to generate the config tree, using the <tt>auto/config</tt> script you just created:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="797" href="#797" class="lnkocn">797</a></label>
  <p class="code" id="o797">
    $ lb config<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="798" href="#798" class="lnkocn">798</a></label>
  <p class="i0" id="o798">
    Now populate your local package list:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="799" href="#799" class="lnkocn">799</a></label>
  <p class="code" id="o799">
    $ echo "task-lxde-desktop iceweasel xchat" &gt;&gt; config/package-lists/my.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="800" href="#800" class="lnkocn">800</a></label>
  <p class="i0" id="o800">
    First, <tt>--architectures i386</tt> ensures that on our <tt>amd64</tt> build system, we build a 32-bit version suitable for use on most machines. Second, we use <tt>--linux-flavours 686-pae</tt> because we don't anticipate using this image on much older systems. Third, we have chosen the <i>lxde</i> task metapackage to give us a minimal desktop. And finally, we have added two initial favourite packages: <i>iceweasel</i> and <i>xchat</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="801" href="#801" class="lnkocn">801</a></label>
  <p class="i0" id="o801">
    Now, build the image:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="802" href="#802" class="lnkocn">802</a></label>
  <p class="code" id="o802">
    # lb build<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="803" href="#803" class="lnkocn">803</a></label>
  <p class="i0" id="o803">
    Note that unlike in the first two tutorials, we no longer have to type <tt>2&gt;&amp;1 | tee build.log</tt> as that is now included in <tt>auto/build</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="804" href="#804" class="lnkocn">804</a></label>
  <p class="i0" id="o804">
    Once you've tested the image (as in  <a href="#tutorial-1">Tutorial 1</a>)  and are satisfied it works, it's time to initialize our <tt>git</tt> repository, adding only the auto scripts we just created, and then make the first commit:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="805" href="#805" class="lnkocn">805</a></label>
  <p class="code" id="o805">
    $ git init<br>
$ cp /usr/share/doc/live-build/examples/gitignore .gitignore<br>
$ git add .<br>
$ git commit -a -m "Initial import."<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="806" href="#806" class="lnkocn">806</a></label>
  <h6 class="norm" id="o806">
<a name="806"></a>
    <a name="18.4.2"></a><a name="h18.4.2"></a><a name="h18.4.2">18.4.2 Second revision</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="807" href="#807" class="lnkocn">807</a></label>
  <p class="i0" id="o807">
    In this revision, we're going to clean up from the first build, add the <i>vlc</i> package to our configuration, rebuild, test and commit.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="808" href="#808" class="lnkocn">808</a></label>
  <p class="i0" id="o808">
    The <tt>lb clean</tt> command will clean up all generated files from the previous build except for the cache, which saves having to re-download packages. This ensures that the subsequent <tt>lb build</tt> will re-run all stages to regenerate the files from our new configuration.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="809" href="#809" class="lnkocn">809</a></label>
  <p class="code" id="o809">
    # lb clean<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="810" href="#810" class="lnkocn">810</a></label>
  <p class="i0" id="o810">
    Now append the <i>vlc</i> package to our local package list in <tt>config/package-lists/my.list.chroot</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="811" href="#811" class="lnkocn">811</a></label>
  <p class="code" id="o811">
    $ echo vlc &gt;&gt; config/package-lists/my.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="812" href="#812" class="lnkocn">812</a></label>
  <p class="i0" id="o812">
    Build again:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="813" href="#813" class="lnkocn">813</a></label>
  <p class="code" id="o813">
    # lb build<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="814" href="#814" class="lnkocn">814</a></label>
  <p class="i0" id="o814">
    Test, and when you're satisfied, commit the next revision:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="815" href="#815" class="lnkocn">815</a></label>
  <p class="code" id="o815">
    $ git commit -a -m "Adding vlc media player."<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="816" href="#816" class="lnkocn">816</a></label>
  <p class="i0" id="o816">
    Of course, more complicated changes to the configuration are possible, perhaps adding files in subdirectories of <tt>config/</tt>. When you commit new revisions, just take care not to hand edit or commit the top-level files in <tt>config</tt> containing <tt>LB_*</tt> variables, as these are build products, too, and are always cleaned up by <tt>lb clean</tt> and re-created with <tt>lb config</tt> via their respective <tt>auto</tt> scripts.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="817" href="#817" class="lnkocn">817</a></label>
  <p class="i0" id="o817">
    We've come to the end of our tutorial series. While many more kinds of customization are possible, even just using the few features explored in these simple examples, an almost infinite variety of different images can be created. The remaining examples in this section cover several other use cases drawn from the collected experiences of users of Debian Live.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="818" href="#818" class="lnkocn">818</a></label>
  <h5 class="norm" id="o818">
<a name="818"></a>
    <a name="18.5"></a><a name="h18.5"></a><a name="h18.5">18.5 A VNC Kiosk Client</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="819" href="#819" class="lnkocn">819</a></label>
  <p class="i0" id="o819">
    <b>Use case:</b> Create an image with <i>live-build</i> to boot directly to a VNC server.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="820" href="#820" class="lnkocn">820</a></label>
  <p class="i0" id="o820">
    Make a build directory and create an skeletal configuration inside it, disabling recommends to make a minimal system. And then create two initial package lists: the first one generated with a script provided by <i>live-build</i> named <tt>Packages</tt> (see  <a href="#generated-package-lists">Generated package lists</a>),  and the second one including <i>xorg</i>, <i>gdm3</i>, <i>metacity</i> and <i>xvnc4viewer</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="821" href="#821" class="lnkocn">821</a></label>
  <p class="code" id="o821">
    $ mkdir vnc-kiosk-client<br>
$ cd vnc-kiosk-client<br>
$ lb config -a i386 -k 686-pae --apt-recommends false<br>
$ echo '! Packages Priority standard' &gt; config/package-lists/standard.list.chroot<br>
$ echo "xorg gdm3 metacity xvnc4viewer" &gt; config/package-lists/my.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="822" href="#822" class="lnkocn">822</a></label>
  <p class="i0" id="o822">
    As explained in  <a href="#tweaking-apt-to-save-space">Tweaking APT to save space</a>  you may need to re-add some recommended packages to make your image work properly.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="823" href="#823" class="lnkocn">823</a></label>
  <p class="i0" id="o823">
    An easy way to list recommends is using <i>apt-cache</i>. For example:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="824" href="#824" class="lnkocn">824</a></label>
  <p class="code" id="o824">
    $ apt-cache depends live-config live-boot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="825" href="#825" class="lnkocn">825</a></label>
  <p class="i0" id="o825">
    In this example we found out that we had to re-include several packages recommended by <i>live-config</i> and <i>live-boot</i>: <tt>user-setup</tt> to make autologin work and <tt>sudo</tt> as an essential program to shutdown the system. Besides, it could be handy to add <tt>live-tools</tt> to be able to copy the image to RAM and <tt>eject</tt> to eventually eject the live medium. So:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="826" href="#826" class="lnkocn">826</a></label>
  <p class="code" id="o826">
    $ echo "live-tools user-setup sudo eject" &gt; config/package-lists/recommends.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="827" href="#827" class="lnkocn">827</a></label>
  <p class="i0" id="o827">
    After that, create the directory <tt>/etc/skel</tt> in <tt>config/includes.chroot</tt> and put a custom <tt>.xsession</tt> in it for the default user that will launch <i>metacity</i> and start <i>xvncviewer</i>, connecting to port <tt>5901</tt> on a server at <tt>192.168.1.2</tt>:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="828" href="#828" class="lnkocn">828</a></label>
  <p class="code" id="o828">
    $ mkdir -p config/includes.chroot/etc/skel<br>
$ cat &gt; config/includes.chroot/etc/skel/.xsession &lt;&lt; EOF<br>
#!/bin/sh<br><br>
/usr/bin/metacity &amp;<br>
/usr/bin/xvncviewer 192.168.1.2:1<br><br>
exit<br>
EOF<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="829" href="#829" class="lnkocn">829</a></label>
  <p class="i0" id="o829">
    Build the image:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="830" href="#830" class="lnkocn">830</a></label>
  <p class="code" id="o830">
    # lb build<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="831" href="#831" class="lnkocn">831</a></label>
  <p class="i0" id="o831">
    Enjoy.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="832" href="#832" class="lnkocn">832</a></label>
  <h5 class="norm" id="o832">
<a name="832"></a>
    <a name="18.6"></a><a name="h18.6"></a><a name="h18.6">18.6 A base image for a 128MB USB key</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="833" href="#833" class="lnkocn">833</a></label>
  <p class="i0" id="o833">
    <b>Use case:</b> Create a default image with some components removed in order to fit on a 128MB USB key with a little space left over to use as you see fit.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="834" href="#834" class="lnkocn">834</a></label>
  <p class="i0" id="o834">
    When optimizing an image to fit a certain media size, you need to understand the tradeoffs you are making between size and functionality. In this example, we trim only so much as to make room for additional material within a 128MB media size, but without doing anything to destroy the integrity of the packages contained within, such as the purging of locale data via the <i>localepurge</i> package, or other such "intrusive" optimizations. Of particular note, we use <tt>--debootstrap-options</tt> to create a minimal system from scratch.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="835" href="#835" class="lnkocn">835</a></label>
  <p class="code" id="o835">
    $ lb config -k 486 --apt-indices false --apt-recommends false --debootstrap-options "--variant=minbase" --firmware-chroot false --memtest none<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="836" href="#836" class="lnkocn">836</a></label>
  <p class="i0" id="o836">
    To make the image work properly, we must re-add, at least, two recommended packages which are left out by the <tt>--apt-recommends false</tt> option. See  <a href="#tweaking-apt-to-save-space">Tweaking APT to save space</a>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="837" href="#837" class="lnkocn">837</a></label>
  <p class="code" id="o837">
    $ echo "user-setup sudo" &gt; config/package-lists/recommends.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="838" href="#838" class="lnkocn">838</a></label>
  <p class="i0" id="o838">
    Now, build the image in the usual way:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="839" href="#839" class="lnkocn">839</a></label>
  <p class="code" id="o839">
    # lb build 2&gt;&amp;1 | tee build.log<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="840" href="#840" class="lnkocn">840</a></label>
  <p class="i0" id="o840">
    On the author's system at the time of writing this, the above configuration produced a 77MB image. This compares favourably with the 177MB image produced by the default configuration in  <a href="#tutorial-1">Tutorial 1</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="841" href="#841" class="lnkocn">841</a></label>
  <p class="i0" id="o841">
    The biggest space-saver here, compared to building a default image on an <tt>i386</tt> architecture system, is to select only the <tt>486</tt> kernel flavour instead of the default <tt>-k "486 686-pae"</tt>. Leaving off APT's indices with <tt>--apt-indices false</tt> also saves a fair amount of space, the tradeoff being that you need to do an <tt>apt-get update</tt> before using <i>apt</i> in the live system. Dropping recommended packages with <tt>--apt-recommends false</tt> saves some additional space, at the expense of omitting some packages you might otherwise expect to be there. <tt>--debootstrap-options "--variant=minbase"</tt> bootstraps a minimal system from the start. Not automatically including firmware packages with <tt>--firmware-chroot false</tt> saves some space too. And finally, <tt>--memtest none</tt> prevents the installation of a memory tester.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="842" href="#842" class="lnkocn">842</a></label>
  <p class="i0" id="o842">
    <b>Note:</b> A minimal system can also be achieved using hooks, like for example the <tt>stripped.chroot</tt> hook found in <tt>/usr/share/doc/live-build/examples/hooks</tt>. It may shave off additional small amounts of space and produce an image of 62MB. However, it does so by removal of documentation and other files from packages installed on the system. This violates the integrity of those packages and that, as the comment header warns, may have unforeseen consequences. That is why using a minimal <i>debootstrap</i> is the recommended way of achieving this goal.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="843" href="#843" class="lnkocn">843</a></label>
  <h5 class="norm" id="o843">
<a name="843"></a>
    <a name="18.7"></a><a name="h18.7"></a><a name="h18.7">18.7 A localized GNOME desktop and installer</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="844" href="#844" class="lnkocn">844</a></label>
  <p class="i0" id="o844">
    <b>Use case:</b> Create a GNOME desktop image, localized for Switzerland and including an installer.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="845" href="#845" class="lnkocn">845</a></label>
  <p class="i0" id="o845">
    We want to make an iso-hybrid image for i386 architecture using our preferred desktop, in this case GNOME, containing all of the same packages that would be installed by the standard Debian installer for GNOME.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="846" href="#846" class="lnkocn">846</a></label>
  <p class="i0" id="o846">
    Our initial problem is the discovery of the names of the appropriate language tasks. Currently, <i>live-build</i> cannot help with this. While we might get lucky and find this by trial-and-error, there is a tool, <tt>grep-dctrl</tt>, which can be used to dig it out of the task descriptions in tasksel-data, so to prepare, make sure you have both of those things:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="847" href="#847" class="lnkocn">847</a></label>
  <p class="code" id="o847">
    # apt-get install dctrl-tools tasksel-data<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="848" href="#848" class="lnkocn">848</a></label>
  <p class="i0" id="o848">
    Now we can search for the appropriate tasks, first with:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="849" href="#849" class="lnkocn">849</a></label>
  <p class="code" id="o849">
    $ grep-dctrl -FTest-lang de /usr/share/tasksel/descs/debian-tasks.desc -sTask<br>
Task: german<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="850" href="#850" class="lnkocn">850</a></label>
  <p class="i0" id="o850">
    By this command, we discover the task is called, plainly enough, german. Now to find the related tasks:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="851" href="#851" class="lnkocn">851</a></label>
  <p class="code" id="o851">
    $ grep-dctrl -FEnhances german /usr/share/tasksel/descs/debian-tasks.desc -sTask<br>
Task: german-desktop<br>
Task: german-kde-desktop<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="852" href="#852" class="lnkocn">852</a></label>
  <p class="i0" id="o852">
    At boot time we will generate the <b>de_CH.UTF-8</b> locale and select the <b>ch</b> keyboard layout. Now let's put the pieces together. Recalling from  <a href="#using-metapackages">Using metapackages</a>  that task metapackages are prefixed <tt>task-</tt>, we just specify these language boot parameters, then add standard priority packages and all our discovered task metapackages to our package list as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="853" href="#853" class="lnkocn">853</a></label>
  <p class="code" id="o853">
    $ mkdir live-gnome-ch<br>
$ cd live-gnome-ch<br>
$ lb config \<br>
     -a i386 \<br>
     -k 486 \<br>
     --bootappend-live "boot=live config locales=de_CH.UTF-8 keyboard-layouts=ch" \<br>
     --debian-installer live<br>
$ echo '! Packages Priority standard' &gt; config/package-lists/standard.list.chroot<br>
$ echo task-gnome-desktop task-german task-german-desktop &gt;&gt; config/package-lists/desktop.list.chroot<br>
$ echo debian-installer-launcher &gt;&gt; config/package-lists/installer.list.chroot<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="854" href="#854" class="lnkocn">854</a></label>
  <p class="i0" id="o854">
    Note that we have included the <i>debian-installer-launcher</i> package to launch the installer from the live desktop, and have also specified the 486 flavour kernel, as it is currently necessary to make the installer and live system kernels match for the launcher to work properly.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="855" href="#855" class="lnkocn">855</a></label>
  <h2 class="norm" id="o855">
<a name="855"></a>
    <a name="h">Appendix</a>
  </h2>
</div>

<div class="substance">
  <label class="ocn"><a name="856" href="#856" class="lnkocn">856</a></label>
  <h5 class="norm" id="o856">
<a name="856"></a>
    <a name="18.8"></a><a name="h18.8"></a><a name="h18.8">18.8 Guidelines for authors</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="857" href="#857" class="lnkocn">857</a></label>
  <p class="i0" id="o857">
    This section deals with some general considerations to be taken into account when writing technical documentation for <i>live-manual</i>. They are divided into linguistic features and recommended procedures.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="858" href="#858" class="lnkocn">858</a></label>
  <p class="i0" id="o858">
    <b>Note:</b>  Authors should first read  <a href="#how-to-contribute">Contributing to this document</a>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="859" href="#859" class="lnkocn">859</a></label>
  <h6 class="norm" id="o859">
<a name="859"></a>
    <a name="18.8.1"></a><a name="h18.8.1"></a><a name="h18.8.1">18.8.1 Linguistic features</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="860" href="#860" class="lnkocn">860</a></label>
  <li class="bullet" id="o860">
    <i>Use plain English</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="861" href="#861" class="lnkocn">861</a></label>
  <p class="i0" id="o861">
    Keep in mind that a high percentage of your readers are not native speakers. So as a general rule try to use short, meaningful sentences, followed by a full stop.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="862" href="#862" class="lnkocn">862</a></label>
  <p class="i0" id="o862">
    This does not mean that you have to use a simplistic, naive style. It is a suggestion to try to avoid, as much as possible, complex subordinate sentences that make the text difficult to understand for non-native speakers.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="863" href="#863" class="lnkocn">863</a></label>
  <li class="bullet" id="o863">
    <i>Variety of English</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="864" href="#864" class="lnkocn">864</a></label>
  <p class="i0" id="o864">
    The most widely spread varieties of English are British and American so it is very likely that most authors will use either one or the other. In a collaborative environment, the ideal variety would be "International English" but it is very difficult, not to say impossible, to decide on which variety among all the existing ones, is the best to use.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="865" href="#865" class="lnkocn">865</a></label>
  <p class="i0" id="o865">
    We expect that different varieties may mix without creating misunderstandings but in general terms you should try to be coherent and before deciding on using British, American or any other English flavour at your discretion, please take a look at how other people write and try to imitate them.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="866" href="#866" class="lnkocn">866</a></label>
  <li class="bullet" id="o866">
    <i>Be balanced</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="867" href="#867" class="lnkocn">867</a></label>
  <p class="i0" id="o867">
    Do not be biased. Avoid including references to ideologies completely unrelated to <i>live-manual</i>. Technical writing should be as neutral as possible. It is in the very nature of scientific writing.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="868" href="#868" class="lnkocn">868</a></label>
  <li class="bullet" id="o868">
    <i>Be politically correct</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="869" href="#869" class="lnkocn">869</a></label>
  <p class="i0" id="o869">
    Try to avoid sexist language as much as possible. If you need to make references to the third person singular preferably use "they" rather than "he" or "she" or awkward inventions such as "s/he", "s(he)" and the like.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="870" href="#870" class="lnkocn">870</a></label>
  <li class="bullet" id="o870">
    <i>Be concise</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="871" href="#871" class="lnkocn">871</a></label>
  <p class="i0" id="o871">
    Go straight to the point and do not wander around aimlessly. Give as much information as necessary but do not give more information than necessary, this is to say, do not explain unnecessary details. Your readers are intelligent. Presume some previous knowledge on their part.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="872" href="#872" class="lnkocn">872</a></label>
  <li class="bullet" id="o872">
    <i>Minimize translation work</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="873" href="#873" class="lnkocn">873</a></label>
  <p class="i0" id="o873">
    Keep in mind that whatever you write will have to be translated into several other languages. This implies that a number of people will have to do an extra work if you add useless or redundant information.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="874" href="#874" class="lnkocn">874</a></label>
  <li class="bullet" id="o874">
    <i>Be coherent</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="875" href="#875" class="lnkocn">875</a></label>
  <p class="i0" id="o875">
    As suggested before, it is almost impossible to standardize a collaborative document into a perfectly unified whole. However, every effort on your side to write in a coherent way with the rest of the authors will be appreciated.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="876" href="#876" class="lnkocn">876</a></label>
  <li class="bullet" id="o876">
    <i>Be cohesive</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="877" href="#877" class="lnkocn">877</a></label>
  <p class="i0" id="o877">
    Use as many text-forming devices as necessary to make your text cohesive and unambiguous. (Text-forming devices are linguistic markers such as connectors).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="878" href="#878" class="lnkocn">878</a></label>
  <li class="bullet" id="o878">
    <i>Be descriptive</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="879" href="#879" class="lnkocn">879</a></label>
  <p class="i0" id="o879">
    It is preferable to describe the point in one or several paragraphs than merely using a number of sentences in a typical "changelog" style. Describe it! Your readers will appreciate it.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="880" href="#880" class="lnkocn">880</a></label>
  <li class="bullet" id="o880">
    <i>Dictionary</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="881" href="#881" class="lnkocn">881</a></label>
  <p class="i0" id="o881">
    Look up the meaning of words in a dictionary or encyclopedia if you do not know how to express certain concepts in English. But keep in mind that a dictionary can either be your best friend or can turn into your worst enemy if you do not know how to use it correctly.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="882" href="#882" class="lnkocn">882</a></label>
  <p class="i0" id="o882">
    English has the largest vocabulary that exists (with over one million words). Many of these words are borrowings from other languages. When looking up the meaning of words in a bilingual dictionary the tendency of a non-native speaker is to choose the one that sounds more similar in their mother tongue. This often turns into an excessively formal discourse which does not sound quite natural in English.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="883" href="#883" class="lnkocn">883</a></label>
  <p class="i0" id="o883">
    As a general rule, if a concept can be expressed using different synonyms, it is a good advice to choose the first word proposed by the dictionary. If in doubt, choosing words of Germanic origin (Usually monosyllabic words) is often the right thing to do. Be warned that these two techniques might produce a rather informal discourse but at least your choice of words will be of wide use and generally accepted.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="884" href="#884" class="lnkocn">884</a></label>
  <p class="i0" id="o884">
    Using a dictionary of collocations is recommended. They are extremely helpful when it comes to know which words usually occur together.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="885" href="#885" class="lnkocn">885</a></label>
  <p class="i0" id="o885">
    Again it is a good practice to learn from the work of others. Using a search engine to check how other authors use certain expressions may help a lot.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="886" href="#886" class="lnkocn">886</a></label>
  <li class="bullet" id="o886">
    <i>False friends, idioms and other idiomatic expressions</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="887" href="#887" class="lnkocn">887</a></label>
  <p class="i0" id="o887">
    Watch out for false friends. No matter how proficient you are in a foreign language you cannot help falling from time to time in the trap of the so called "false friends", words that look similar in two languages but whose meanings or uses might be completely different.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="888" href="#888" class="lnkocn">888</a></label>
  <p class="i0" id="o888">
    Try to avoid idioms as much as possible. "Idioms" are expressions that may convey a completely different meaning from what their individual words seem to mean. Sometimes, idioms are difficult to understand even for native speakers!
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="889" href="#889" class="lnkocn">889</a></label>
  <li class="bullet" id="o889">
    <i>Avoid slang, abbreviations, contractions...</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="890" href="#890" class="lnkocn">890</a></label>
  <p class="i0" id="o890">
    Even though you are encouraged to use plain, everyday English, technical writing belongs to the formal register of the language.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="891" href="#891" class="lnkocn">891</a></label>
  <p class="i0" id="o891">
    Try to avoid slang, unusual abbreviations that are difficult to understand and above all contractions that try to imitate the spoken language. Not to mention typical irc and family friendly expressions.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="892" href="#892" class="lnkocn">892</a></label>
  <h6 class="norm" id="o892">
<a name="892"></a>
    <a name="18.8.2"></a><a name="h18.8.2"></a><a name="h18.8.2">18.8.2 Procedures</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="893" href="#893" class="lnkocn">893</a></label>
  <li class="bullet" id="o893">
    <i>Test before write</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="894" href="#894" class="lnkocn">894</a></label>
  <p class="i0" id="o894">
    It is important that authors test their examples before adding them to <i>live-manual</i> to ensure that everything works as described. Testing on a clean chroot or VM can be a good starting point. Besides, it would be ideal if the tests were then carried out on different machines with different hardware to spot possible problems that may arise.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="895" href="#895" class="lnkocn">895</a></label>
  <li class="bullet" id="o895">
    <i>Examples</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="896" href="#896" class="lnkocn">896</a></label>
  <p class="i0" id="o896">
    When providing an example try to be as specific as you can. An example is, after all, just an example.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="897" href="#897" class="lnkocn">897</a></label>
  <p class="i0" id="o897">
    It is often better to use a line that only applies to a specific case than using abstractions that may confuse your readers. In this case you can provide a brief explanation of the effects of the proposed example.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="898" href="#898" class="lnkocn">898</a></label>
  <p class="i0" id="o898">
    There may be some exceptions when the example suggests using some potentially dangerous commands that, if misused, may cause data loss or other similar undesirable effects. In this case you should provide a thorough explanation of the possible side effects.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="899" href="#899" class="lnkocn">899</a></label>
  <li class="bullet" id="o899">
    <i>External links</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="900" href="#900" class="lnkocn">900</a></label>
  <p class="i0" id="o900">
    Links to external sites should only be used when the information on those sites is crucial when it comes to understanding a special point. Even so, try to use links to external sites as sparsely as possible. Internet links are likely to change from time to time resulting in broken links and leaving your arguments in an incomplete state.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="901" href="#901" class="lnkocn">901</a></label>
  <p class="i0" id="o901">
    Besides, people who read the manual offline will not have the chance to follow those links.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="902" href="#902" class="lnkocn">902</a></label>
  <li class="bullet" id="o902">
    <i>Avoid branding and things that violate the license under which the manual is published</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="903" href="#903" class="lnkocn">903</a></label>
  <p class="i0" id="o903">
    Try to avoid branding as much as possible. Keep in mind that other downstream projects might make use of the documentation you write. So you are complicating things for them if you add certain specific material.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="904" href="#904" class="lnkocn">904</a></label>
  <p class="i0" id="o904">
    <i>live-manual</i> is licensed under the GNU GPL. This has a number of implications that apply to the distribution of the material (of any kind, including copyrighted graphics or logos) that is published with it.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="905" href="#905" class="lnkocn">905</a></label>
  <li class="bullet" id="o905">
    <i>Write a first draft, revise, edit, improve, redo if necessary</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="906" href="#906" class="lnkocn">906</a></label>
  <p class="i0" id="o906">
    - Brainstorm!. You need to organize your ideas first in a logical sequence of events.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="907" href="#907" class="lnkocn">907</a></label>
  <p class="i0" id="o907">
    - Once you have somehow organized those ideas in your mind write a first draft.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="908" href="#908" class="lnkocn">908</a></label>
  <p class="i0" id="o908">
    - Revise grammar, syntax and spelling. Keep in mind that the proper names of the releases, such as <b>wheezy</b> or <b>sid</b>, should not be capitalized when referred to as code names.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="909" href="#909" class="lnkocn">909</a></label>
  <p class="i0" id="o909">
    - Improve your statements and redo any part if necessary.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="910" href="#910" class="lnkocn">910</a></label>
  <li class="bullet" id="o910">
    <i>Chapters</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="911" href="#911" class="lnkocn">911</a></label>
  <p class="i0" id="o911">
    Use the conventional numbering system for chapters and subtitles. e.g. 1, 1.1, 1.1.1, 1.1.2 ... 1.2, 1.2.1, 1.2.2 ... 2, 2.1 ... and so on. See markup below.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="912" href="#912" class="lnkocn">912</a></label>
  <p class="i0" id="o912">
    If you have to enumerate a series of steps or stages in your description, you can also use ordinal numbers: First, second, third ... or First, Then, After that, Finally ... Alternatively you can use bulleted items.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="913" href="#913" class="lnkocn">913</a></label>
  <li class="bullet" id="o913">
    <i>Markup</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="914" href="#914" class="lnkocn">914</a></label>
  <p class="i0" id="o914">
    And last but not least, <i>live-manual</i> uses  <a href="http://www.sisudoc.org/">SiSU</a>  to process the text files and produce a multiple format output. It is recommended to take a look at  <a href="http://www.sisudoc.org/sisu/sisu_manual/markup.html">SiSU's manual</a>  to get familiar with its markup, or else type:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="915" href="#915" class="lnkocn">915</a></label>
  <p class="code" id="o915">
    $ sisu --help markup<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="916" href="#916" class="lnkocn">916</a></label>
  <p class="i0" id="o916">
    Here are some markup examples that may prove useful:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="917" href="#917" class="lnkocn">917</a></label>
  <p class="i0" id="o917">
    - For emphasis/bold text:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="918" href="#918" class="lnkocn">918</a></label>
  <p class="code" id="o918">
    *{foo}* or !{foo}!<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="919" href="#919" class="lnkocn">919</a></label>
  <p class="i0" id="o919">
    produces: <b>foo</b> or <b>foo</b>. Use it to emphasize certain key words.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="920" href="#920" class="lnkocn">920</a></label>
  <p class="i0" id="o920">
    - For italics:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="921" href="#921" class="lnkocn">921</a></label>
  <p class="code" id="o921">
    /{foo}/<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="922" href="#922" class="lnkocn">922</a></label>
  <p class="i0" id="o922">
    produces: <i>foo</i>. Use them e.g. for the names of Debian packages.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="923" href="#923" class="lnkocn">923</a></label>
  <p class="i0" id="o923">
    - For monospace:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="924" href="#924" class="lnkocn">924</a></label>
  <p class="code" id="o924">
    #{foo}#<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="925" href="#925" class="lnkocn">925</a></label>
  <p class="i0" id="o925">
    produces: <tt>foo</tt>. Use it e.g. for the names of commands. And also to highlight some key words or things like paths.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="926" href="#926" class="lnkocn">926</a></label>
  <p class="i0" id="o926">
    - For code blocks:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="927" href="#927" class="lnkocn">927</a></label>
  <p class="code" id="o927">
    code{<br><br>
  $ foo<br>
  # bar<br><br>
}code<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="928" href="#928" class="lnkocn">928</a></label>
  <p class="i0" id="o928">
    produces:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="929" href="#929" class="lnkocn">929</a></label>
  <p class="code" id="o929">
    $ foo<br>
# bar<br><br>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="930" href="#930" class="lnkocn">930</a></label>
  <p class="i0" id="o930">
    Use <tt>code{</tt> to open and <tt>}code</tt> to close the tags. It is important to remember to leave a space at the beginning of each line of code.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="931" href="#931" class="lnkocn">931</a></label>
  <h5 class="norm" id="o931">
<a name="931"></a>
    <a name="h18.9"></a><a name="guidelines-translators"></a><a name="hguidelines-translators">18.9 Guidelines for translators</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="932" href="#932" class="lnkocn">932</a></label>
  <p class="i0" id="o932">
    This section deals with some general considerations to be taken into account when translating the contents of <i>live-manual</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="933" href="#933" class="lnkocn">933</a></label>
  <p class="i0" id="o933">
    As a general recommendation, translators should have read and understood the translation rules that apply to their specific languages. Usually, translation groups and mailing lists provide information on how to produce translated work that complies with Debian quality standards.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="934" href="#934" class="lnkocn">934</a></label>
  <p class="i0" id="o934">
    <b>Note:</b>  Translators should also read  <a href="#how-to-contribute">Contributing to this document</a>.  In particular the section  <a href="#translation">Translation</a>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="935" href="#935" class="lnkocn">935</a></label>
  <h6 class="norm" id="o935">
<a name="935"></a>
    <a name="18.9.1"></a><a name="h18.9.1"></a><a name="h18.9.1">18.9.1 Translation hints</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="936" href="#936" class="lnkocn">936</a></label>
  <li class="bullet" id="o936">
    <i>Comments</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="937" href="#937" class="lnkocn">937</a></label>
  <p class="i0" id="o937">
    The role of the translator is to convey as faithfully as possible the meaning of words, sentences, paragraphs and texts as written by the original authors into their target language.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="938" href="#938" class="lnkocn">938</a></label>
  <p class="i0" id="o938">
    So they should refrain from adding personal comments or extra bits of information of their own. If they want to add a comment for other translators working on the same documents, they can leave it in the space reserved for that. That is, the header of the strings in the <b>po</b> files preceded by a number sign <b>#</b>. Most graphical translation programs can automatically handle those types of comments.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="939" href="#939" class="lnkocn">939</a></label>
  <li class="bullet" id="o939">
    <i>TN, Translator's Note</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="940" href="#940" class="lnkocn">940</a></label>
  <p class="i0" id="o940">
    It is perfectly acceptable however, to include a word or an expression in brackets in the translated text if, and only if, that makes the meaning of a difficult word or expression clearer to the reader. Inside the brackets the translator should make evident that the addition was theirs using the abbreviation "TN" or "Translator's Note".
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="941" href="#941" class="lnkocn">941</a></label>
  <li class="bullet" id="o941">
    <i>Impersonal sentences</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="942" href="#942" class="lnkocn">942</a></label>
  <p class="i0" id="o942">
    Documents written in English make an extensive use of the impersonal form "you". In some other languages that do not share this characteristic, this might give the false impression that the original texts are directly addressing the reader when they are actually not doing so. Translators must be aware of that fact and reflect it in their language as accurately as possible.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="943" href="#943" class="lnkocn">943</a></label>
  <li class="bullet" id="o943">
    <i>False friends</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="944" href="#944" class="lnkocn">944</a></label>
  <p class="i0" id="o944">
    The trap of "false friends" explained before especially applies to translators. Double check the meaning of suspicious false friends if in doubt.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="945" href="#945" class="lnkocn">945</a></label>
  <li class="bullet" id="o945">
    <i>Markup</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="946" href="#946" class="lnkocn">946</a></label>
  <p class="i0" id="o946">
    Translators working initially with <b>pot</b> files and later on with <b>po</b> files will find many markup features in the strings. They can translate the text anyway, as long as it is translatable, but it is extremely important that they use exactly the same markup as the original English version.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="947" href="#947" class="lnkocn">947</a></label>
  <li class="bullet" id="o947">
    <i>Code blocks</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="948" href="#948" class="lnkocn">948</a></label>
  <p class="i0" id="o948">
    Even though the code blocks are usually untranslatable, including them in the translation is the only way to score a 100% complete translation. And even though it means more work at first because it requires the intervention of the translators if the code changes, it is the best way, in the long run, to identify what has already been translated and what has not when checking the integrity of the .po files.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="949" href="#949" class="lnkocn">949</a></label>
  <li class="bullet" id="o949">
    <i>Newlines</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="950" href="#950" class="lnkocn">950</a></label>
  <p class="i0" id="o950">
    The translated texts need to have the exact same newlines as the original texts. Be careful to press the "Enter" key or type <b>\n</b> if they appear in the original files. These newlines often appear, for instance, in the code blocks.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="951" href="#951" class="lnkocn">951</a></label>
  <p class="i0" id="o951">
    Make no mistake, this does not mean that the translated text needs to have the same length as the English version. That is nearly impossible.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="952" href="#952" class="lnkocn">952</a></label>
  <li class="bullet" id="o952">
    <i>Untranslatable strings</i>
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="953" href="#953" class="lnkocn">953</a></label>
  <p class="i0" id="o953">
    Translators should never translate:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="954" href="#954" class="lnkocn">954</a></label>
  <p class="i0" id="o954">
    - The code names of releases (which should be written in lowercase)
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="955" href="#955" class="lnkocn">955</a></label>
  <p class="i0" id="o955">
    - The names of programs
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="956" href="#956" class="lnkocn">956</a></label>
  <p class="i0" id="o956">
    - The commands given as examples
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="957" href="#957" class="lnkocn">957</a></label>
  <p class="i0" id="o957">
    - Metadata (often between colons <b>:metadata:</b>)
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="958" href="#958" class="lnkocn">958</a></label>
  <p class="i0" id="o958">
    - Links
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="959" href="#959" class="lnkocn">959</a></label>
  <p class="i0" id="o959">
    - Paths
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name=""> </a></label>
  <p class="norm" id="o">
    </p>
<p></p>
<hr width="90%">
  
</div>

<div class="substance">
  <label class="ocn"><a name=""> </a></label>
  <h2 class="norm" id="o">
<a name=""></a>
    <a name="h"></a>
  </h2>
</div>

<center><hr width="90%"></center>

</div>

<div class="main_column">

<p></p>


<a name="bottom" id="bottom"></a>
<a name="down" id="down"></a>
<a name="end" id="end"></a>
<a name="finish" id="finish"></a>
<a name="stop" id="stop"></a>
<a name="credits"></a>
</div>



</body>
</html>