This file is indexed.

/usr/share/doc/live-manual/html/live-manual.en.html is in live-manual-html 1:3.0~a9-1ubuntu1.

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
<!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 &#60;debian-live@lists.debian.org&#62;" />
  <meta name="dc.publisher" content="Debian Live Project &#60;debian-live@lists.debian.org&#62;" />
  <meta name="dc.date" content="2011-12-04"  />
  <meta name="dc.rights" content="Copyright (C) 2006-2011 Debian Live Project;&#60;br&#62; 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.&#60;br&#62;&#60;br&#62;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.&#60;br&#62;&#60;br&#62;You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. &#60;br&#62;&#60;br&#62;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.1.9 of 2011w51/1 (2011-12-19) (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>

<table summary="table of contents scroll navigation band" id="toc" width="100%" bgcolor="#ffffff">
<tr><td width="20%">
  <table summary="band" border="0" cellpadding="3" cellspacing="0"><tr><td align="left" bgcolor="#ffffff"><a href="http://live.debian.net/" target="_top"><img border="0" src="../_sisu/image/debian_home.png" alt="Debian --&gt;" /></a></td></tr>
</table>
</td><td align="center" width="60%">
  <table summary="toc segment and scroll with pdf" border="0" cellpadding="3" cellspacing="0">
<tr>
  <td align="center" bgcolor="#ffffff">
  <a href="sisu_manifest.en.html" target="_top" >
      <font face="verdana, arial, georgia, tahoma, sans-serif, helvetica, times, roman" size="2">
    [&nbsp;document&nbsp;manifest&nbsp;]
  </font> 
  </a>
</td>
  
</tr></table>
</td>

<td width="20%">
  &nbsp;
</td></tr>
</table>
<p />

<center>

</center>
<table summary="scroll instrument cover band" width="100%" border="0" cellpadding="8" bgcolor="#ffffff" align="center">
<tr><td align="center">

<p class="centerbold">Debian Live Manual
</p>

<p class="centerbold">Debian Live Project <debian-live@lists.debian.org>
</p>

</td></tr>
</table>

<p class="small_left">Rights: Copyright <sup>&copy;</sup>&nbsp; 2006-2011 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 />

<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="#6">1.1 For the impatient</a>
  </h5>

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

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

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

<h6 class="toc">
    <a href="#50">1.4.1 Applying patches</a>
  </h6>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<h6 class="toc">
    <a href="#185">4.3.3 Booting the live media</a>
  </h6>

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

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

<h6 class="toc">
    <a href="#203">4.4.2 Testing an ISO image with virtualbox-ose</a>
  </h6>

<h5 class="toc">
    <a href="#209">4.5 Building a USB/HDD image</a>
  </h5>

<h5 class="toc">
    <a href="#218">4.6 Using a USB/HDD image</a>
  </h5>

<h6 class="toc">
    <a href="#220">4.6.1 Testing a USB/HDD image with Qemu</a>
  </h6>

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

<h5 class="toc">
    <a href="#230">4.7 Building a netboot image</a>
  </h5>

<h6 class="toc">
    <a href="#242">4.7.1 DHCP server</a>
  </h6>

<h6 class="toc">
    <a href="#246">4.7.2 TFTP server</a>
  </h6>

<h6 class="toc">
    <a href="#251">4.7.3 NFS server</a>
  </h6>

<h6 class="toc">
    <a href="#259">4.7.4 Netboot testing HowTo</a>
  </h6>

<h6 class="toc">
    <a href="#262">4.7.5 Qemu</a>
  </h6>

<h6 class="toc">
    <a href="#268">4.7.6 VMWare Player</a>
  </h6>

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

<h5 class="toc">
    <a href="#278">5.1 live-build</a>
  </h5>

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

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

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

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

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

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

<h5 class="toc">
    <a href="#311">6.1 Use auto to manage configuration changes</a>
  </h5>

<h5 class="toc">
    <a href="#316">6.2 Example auto scripts</a>
  </h5>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<h6 class="toc">
    <a href="#372">8.2.2 Predefined package lists</a>
  </h6>

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

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

<h6 class="toc">
    <a href="#382">8.2.5 Extending a provided package list using includes</a>
  </h6>

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

<h6 class="toc">
    <a href="#397">8.2.7 Tasks</a>
  </h6>

<h6 class="toc">
    <a href="#401">8.2.8 Desktop and language tasks</a>
  </h6>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<h6 class="toc">
    <a href="#475">9.1.3 Binary includes</a>
  </h6>

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

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

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

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

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

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

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

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

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

<h6 class="toc">
    <a href="#521">10.3.1 Full persistence</a>
  </h6>

<h6 class="toc">
    <a href="#530">10.3.2 Home automounting</a>
  </h6>

<h6 class="toc">
    <a href="#532">10.3.3 Snapshots</a>
  </h6>

<h6 class="toc">
    <a href="#536">10.3.4 Persistent SubText</a>
  </h6>

<h6 class="toc">
    <a href="#538">10.3.5 Partial remastering</a>
  </h6>

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

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

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

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

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

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

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

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

<h4 class="toc">
    <a href="#570">13. Reporting bugs</a>
  </h4>

<h5 class="toc">
    <a href="#576">13.1 Known issues</a>
  </h5>

<h5 class="toc">
    <a href="#581">13.2 Rebuild from scratch</a>
  </h5>

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

<h5 class="toc">
    <a href="#585">13.4 Collect information</a>
  </h5>

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

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

<h6 class="toc">
    <a href="#605">13.6.1 At build time whilst bootstrapping</a>
  </h6>

<h6 class="toc">
    <a href="#608">13.6.2 At build time whilst installing packages</a>
  </h6>

<h6 class="toc">
    <a href="#612">13.6.3 At boot time</a>
  </h6>

<h6 class="toc">
    <a href="#614">13.6.4 At run time</a>
  </h6>

<h5 class="toc">
    <a href="#616">13.7 Do the research</a>
  </h5>

<h5 class="toc">
    <a href="#620">13.8 Where to report bugs</a>
  </h5>

<h4 class="toc">
    <a href="#624">14. Coding Style</a>
  </h4>

<h5 class="toc">
    <a href="#626">14.1 Compatibility</a>
  </h5>

<h5 class="toc">
    <a href="#630">14.2 Indenting</a>
  </h5>

<h5 class="toc">
    <a href="#632">14.3 Wrapping</a>
  </h5>

<h5 class="toc">
    <a href="#644">14.4 Variables</a>
  </h5>

<h5 class="toc">
    <a href="#663">14.5 Miscellaneous</a>
  </h5>

<h4 class="toc">
    <a href="#667">15. Procedures</a>
  </h4>

<h5 class="toc">
    <a href="#669">15.1 Udeb Uploads</a>
  </h5>

<h5 class="toc">
    <a href="#672">15.2 Major Releases</a>
  </h5>

<h5 class="toc">
    <a href="#680">15.3 Point Releases</a>
  </h5>

<h6 class="toc">
    <a href="#684">15.3.1 Point release announcement template</a>
  </h6>

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

<h4 class="toc">
    <a href="#690">16. Examples</a>
  </h4>

<h5 class="toc">
    <a href="#692">16.1 Using the examples</a>
  </h5>

<h5 class="toc">
    <a href="#696">16.2 Tutorial 1: A standard image</a>
  </h5>

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

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

<h6 class="toc">
    <a href="#716">16.4.1 First revision</a>
  </h6>

<h6 class="toc">
    <a href="#728">16.4.2 Second revision</a>
  </h6>

<h5 class="toc">
    <a href="#740">16.5 A VNC Kiosk Client</a>
  </h5>

<h5 class="toc">
    <a href="#749">16.6 A base image for a 128M USB key</a>
  </h5>

<h5 class="toc">
    <a href="#757">16.7 A localized KDE desktop and installer</a>
  </h5>

<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">
    The main goal of this manual is to serve as a single access point to all documentation related to the Debian Live project. While it 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 preparing images to be booted from media or the network, and  <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="5" href="#5" class="lnkocn">5</a></label>
  <p class="i0" id="o5">
    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="6" href="#6" class="lnkocn">6</a></label>
  <h5 class="norm" id="o6"><a name="6"></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="7" href="#7" class="lnkocn">7</a></label>
  <p class="i0" id="o7">
    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 have provided three tutorials in 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 standard 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. 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="8" href="#8" class="lnkocn">8</a></label>
  <h5 class="norm" id="o8"><a name="8"></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="9" href="#9" class="lnkocn">9</a></label>
  <li class="bullet" id="o9">
    <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="10" href="#10" class="lnkocn">10</a></label>
  <li class="bullet" id="o10">
    <b>Debian Live</b>: The Debian sub-project which maintains the <i>live-boot</i>, <i>live-build</i>, <i>live-config</i>, and <i>live-manual</i> packages.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="11" href="#11" class="lnkocn">11</a></label>
  <li class="bullet" id="o11">
    <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="12" href="#12" class="lnkocn">12</a></label>
  <li class="bullet" id="o12">
    <b>Host system</b>: The environment used to create the live system.
  </li>
</div>

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

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

<div class="substance">
  <label class="ocn"><a name="15" href="#15" class="lnkocn">15</a></label>
  <li class="bullet" id="o15">
    <b><i>live-build</i></b>: A collection of scripts used to build customized Debian Live systems. <i>live-build</i> was formerly known as live-helper, and even earlier known as live-package.
  </li>
</div>

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

<div class="substance">
  <label class="ocn"><a name="17" href="#17" class="lnkocn">17</a></label>
  <li class="bullet" id="o17">
    <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="18" href="#18" class="lnkocn">18</a></label>
  <li class="bullet" id="o18">
    <b>Debian Installer (d-i)</b>: The official installation system for the Debian distribution.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="19" href="#19" class="lnkocn">19</a></label>
  <li class="bullet" id="o19">
    <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="20" href="#20" class="lnkocn">20</a></label>
  <li class="bullet" id="o20">
    <b>chroot</b>: The chroot 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="21" href="#21" class="lnkocn">21</a></label>
  <li class="bullet" id="o21">
    <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="22" href="#22" class="lnkocn">22</a></label>
  <li class="bullet" id="o22">
    <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="23" href="#23" class="lnkocn">23</a></label>
  <li class="bullet" id="o23">
    <b>Squeeze/Wheezy/Sid (stable/testing/unstable)</b>: Debian codenames for releases. At the time of writing, <b>Squeeze</b> is the current <b>stable</b> release and <b>Wheezy</b> is the current <b>testing</b> release. <b>Sid</b> will always be a synonym for the <b>unstable</b> release. Throughout the manual, we tend to use codenames for the releases, as that is what is supported by the tools themselves.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="24" href="#24" class="lnkocn">24</a></label>
  <p class="i0" id="o24">
    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.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="25" href="#25" class="lnkocn">25</a></label>
  <h5 class="norm" id="o25"><a name="25"></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="26" href="#26" class="lnkocn">26</a></label>
  <p class="i0" id="o26">
    A list of authors (in alphabetical order):
  </p>
</div>

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

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

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

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

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

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

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

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

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

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

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

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

<div class="substance">
  <label class="ocn"><a name="39" href="#39" class="lnkocn">39</a></label>
  <h5 class="norm" id="o39"><a name="39"></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="40" href="#40" class="lnkocn">40</a></label>
  <p class="i0" id="o40">
    This manual is intended as a community project and all proposals for improvements and contributions are extremely welcome. The preferred way to submit a contribution is to send it to the mailing list. Please see the section  <a href="#contact">Contact</a>  for more information.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="41" href="#41" class="lnkocn">41</a></label>
  <p class="i0" id="o41">
    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 document, namely, GPL version 3 or later.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="42" href="#42" class="lnkocn">42</a></label>
  <p class="i0" id="o42">
    The sources for this manual are maintained using the Git version control system. You can check out the latest copy by executing:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="44" href="#44" class="lnkocn">44</a></label>
  <p class="i0" id="o44">
    Prior to submission of your contribution, please preview your work. To preview the <i>live-manual</i>, ensure the packages needed for building are installed by executing:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="45" href="#45" class="lnkocn">45</a></label>
  <p class="code" id="o45">
    # apt-get install make po4a sisu-complete libnokogiri-ruby<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="46" href="#46" class="lnkocn">46</a></label>
  <p class="i0" id="o46">
    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="47" href="#47" class="lnkocn">47</a></label>
  <p class="code" id="o47">
    $ make build<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="48" href="#48" class="lnkocn">48</a></label>
  <p class="i0" id="o48">
    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="49" href="#49" class="lnkocn">49</a></label>
  <p class="code" id="o49">
    $ make build LANGUAGES=en<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="50" href="#50" class="lnkocn">50</a></label>
  <h6 class="norm" id="o50"><a name="50"></a>
    <a name="1.4.1" ></a><a name="h1.4.1" ></a><a name="h1.4.1">1.4.1 Applying patches</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="51" href="#51" class="lnkocn">51</a></label>
  <p class="i0" id="o51">
    Anyone can directly commit to the repository. However, we ask you to send bigger changes to the mailing list to discuss them first. To push to the repository, you must follow this procedure:
  </p>
</div>

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

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

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

<div class="substance">
  <label class="ocn"><a name="55" href="#55" class="lnkocn">55</a></label>
  <p class="code" id="o55">
    $ cat >> ~/.ssh/config << EOF<br />
Host live.debian.net<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hostname live.debian.net<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;User git<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IdentityFile ~/.ssh/identity.d/git@live.debian.net<br />
EOF<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="56" href="#56" class="lnkocn">56</a></label>
  <li class="bullet" id="o56">
    Check out a clone of the manual through ssh:
  </li>
</div>

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

<div class="substance">
  <label class="ocn"><a name="58" href="#58" class="lnkocn">58</a></label>
  <li class="bullet" id="o58">
    Note that you should commit any changes on the debian-next branch, not on the debian branch.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="59" href="#59" class="lnkocn">59</a></label>
  <li class="bullet" id="o59">
    After editing the files in <tt>manual/en/</tt>, please call the 'commit' target in the top level directory to sanitize the files and update the translation files:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="60" href="#60" class="lnkocn">60</a></label>
  <p class="code" id="o60">
    $ make commit<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="61" href="#61" class="lnkocn">61</a></label>
  <li class="bullet" id="o61">
    After sanitizing, commit the changes. Write commit messages that consist of full, useful 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', e.g.
  </li>
</div>

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

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

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

<div class="substance">
  <label class="ocn"><a name="65" href="#65" class="lnkocn">65</a></label>
  <h6 class="norm" id="o65"><a name="65"></a>
    <a name="1.4.2" ></a><a name="h1.4.2" ></a><a name="h1.4.2">1.4.2 Translation</a>
  </h6>
</div>

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

<div class="substance">
  <label class="ocn"><a name="67" href="#67" class="lnkocn">67</a></label>
  <li class="bullet" id="o67">
    Translate the about_manual.ssi.pot, about_project.ssi.pot and index.html.in.pot files to your language with your favourite editor (such as poedit). Send translated files to the mailing list. Once we have reviewed your submission, we will add the new language to the manual (providing the po files) and will enable it in the autobuild.
  </li>
</div>

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

<div class="substance">
  <label class="ocn"><a name="69" href="#69" class="lnkocn">69</a></label>
  <li class="bullet" id="o69">
    Don't forget you need <tt>make commit</tt> to ensure the translated manuals are updated from the po files, before <tt>git commit -a</tt> and <tt>git push</tt>.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="70" href="#70" class="lnkocn">70</a></label>
  <h4 class="norm" id="o70"><a name="70"></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="71" href="#71" class="lnkocn">71</a></label>
  <h5 class="norm" id="o71"><a name="71"></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="72" href="#72" class="lnkocn">72</a></label>
  <h6 class="norm" id="o72"><a name="72"></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="73" href="#73" class="lnkocn">73</a></label>
  <p class="i0" id="o73">
    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="74" href="#74" class="lnkocn">74</a></label>
  <li class="bullet" id="o74">
    They are not Debian projects and therefore lack support from within Debian.
  </li>
</div>

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

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

<div class="substance">
  <label class="ocn"><a name="77" href="#77" class="lnkocn">77</a></label>
  <li class="bullet" id="o77">
    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="78" href="#78" class="lnkocn">78</a></label>
  <li class="bullet" id="o78">
    They include packages from outside of the Debian archive.
  </li>
</div>

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

<div class="substance">
  <label class="ocn"><a name="80" href="#80" class="lnkocn">80</a></label>
  <li class="bullet" id="o80">
    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="81" href="#81" class="lnkocn">81</a></label>
  <li class="bullet" id="o81">
    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="82" href="#82" class="lnkocn">82</a></label>
  <h6 class="norm" id="o82"><a name="82"></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="83" href="#83" class="lnkocn">83</a></label>
  <p class="i0" id="o83">
    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="84" href="#84" class="lnkocn">84</a></label>
  <li class="bullet" id="o84">
    It would be a subproject of Debian.
  </li>
</div>

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

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

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

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

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

<div class="substance">
  <label class="ocn"><a name="90" href="#90" class="lnkocn">90</a></label>
  <h5 class="norm" id="o90"><a name="90"></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="91" href="#91" class="lnkocn">91</a></label>
  <h6 class="norm" id="o91"><a name="91"></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="92" href="#92" class="lnkocn">92</a></label>
  <p class="i0" id="o92">
    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="93" href="#93" class="lnkocn">93</a></label>
  <p class="i0" id="o93">
    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="94" href="#94" class="lnkocn">94</a></label>
  <p class="i0" id="o94">
    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="95" href="#95" class="lnkocn">95</a></label>
  <h6 class="norm" id="o95"><a name="95"></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="96" href="#96" class="lnkocn">96</a></label>
  <p class="i0" id="o96">
    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="97" href="#97" class="lnkocn">97</a></label>
  <p class="i0" id="o97">
    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="98" href="#98" class="lnkocn">98</a></label>
  <p class="i0" id="o98">
    A system for configuring packages is provided using debconf in <tt>lb config</tt> (use --preseed FILE) allowing custom configured packages to be installed in your custom produced Debian Live images, but for official live images only default configuration will be used. For more information, please see  <a href="#customization-overview">Customization overview</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="99" href="#99" class="lnkocn">99</a></label>
  <p class="i0" id="o99">
    Exception: There are a few essential changes needed to bring a live system to life (e.g. configuring pam to allow empty passwords). These essential changes have to be kept as minimal as possible and should be merged within the Debian repository if possible.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="100" href="#100" class="lnkocn">100</a></label>
  <h5 class="norm" id="o100"><a name="100"></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="101" href="#101" class="lnkocn">101</a></label>
  <li class="bullet" id="o101">
    <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="102" href="#102" class="lnkocn">102</a></label>
  <li class="bullet" id="o102">
    <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="103" href="#103" class="lnkocn">103</a></label>
  <li class="bullet" id="o103">
    <b>BTS</b> : The Debian Bug Tracking System (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="104" href="#104" class="lnkocn">104</a></label>
  <li class="bullet" id="o104">
    <b>Wiki</b>: The Debian Live wiki at ‹<a href="http://wiki.debian.org/DebianLive" target="_top">http://wiki.debian.org/DebianLive</a>› is a place to gather information, discuss applied technologies, and document frameworks of Debian Live systems that go beyond the scope of this document.
  </li>
</div>

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

<div class="substance">
  <label class="ocn"><a name="106" href="#106" class="lnkocn">106</a></label>
  <h4 class="norm" id="o106"><a name="106"></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="107" href="#107" class="lnkocn">107</a></label>
  <h5 class="norm" id="o107"><a name="107"></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="108" href="#108" class="lnkocn">108</a></label>
  <p class="i0" id="o108">
    Building Debian Live images has very few system requirements:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="109" href="#109" class="lnkocn">109</a></label>
  <li class="bullet" id="o109">
    Super user (root) access
  </li>
</div>

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

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

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

<div class="substance">
  <label class="ocn"><a name="113" href="#113" class="lnkocn">113</a></label>
  <li class="bullet" id="o113">
    Linux 2.6.x
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="114" href="#114" class="lnkocn">114</a></label>
  <p class="i0" id="o114">
    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="115" href="#115" class="lnkocn">115</a></label>
  <h5 class="norm" id="o115"><a name="115"></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="116" href="#116" class="lnkocn">116</a></label>
  <p class="i0" id="o116">
    You can install <i>live-build</i> in a number of different ways:
  </p>
</div>

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

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

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

<div class="substance">
  <label class="ocn"><a name="120" href="#120" class="lnkocn">120</a></label>
  <p class="i0" id="o120">
    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="121" href="#121" class="lnkocn">121</a></label>
  <h6 class="norm" id="o121"><a name="121"></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="122" href="#122" class="lnkocn">122</a></label>
  <p class="i0" id="o122">
    Simply install <i>live-build</i> like any other package:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="124" href="#124" class="lnkocn">124</a></label>
  <p class="i0" id="o124">
    or
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="125" href="#125" class="lnkocn">125</a></label>
  <p class="code" id="o125">
    # aptitude install live-build<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="126" href="#126" class="lnkocn">126</a></label>
  <h6 class="norm" id="o126"><a name="126"></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="127" href="#127" class="lnkocn">127</a></label>
  <p class="i0" id="o127">
    <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="128" href="#128" class="lnkocn">128</a></label>
  <p class="code" id="o128">
    $ git clone git://live.debian.net/git/live-build.git<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">
    You can build and install your own Debian package by executing:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="131" href="#131" class="lnkocn">131</a></label>
  <p class="i0" id="o131">
    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="132" href="#132" class="lnkocn">132</a></label>
  <p class="code" id="o132">
    # dpkg -i live-build_2.0.8-1_all.deb<br /><br />
  </p>
</div>

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

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

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

<div class="substance">
  <label class="ocn"><a name="136" href="#136" class="lnkocn">136</a></label>
  <p class="code" id="o136">
    # make uninstall<br /><br />
  </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.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="138" href="#138" class="lnkocn">138</a></label>
  <p class="i0" id="o138">
    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="139" href="#139" class="lnkocn">139</a></label>
  <h5 class="norm" id="o139"><a name="139"></a>
    <a name="3.3" ></a><a name="h3.3" ></a><a name="h3.3">3.3 live-boot and live-config</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="140" href="#140" class="lnkocn">140</a></label>
  <p class="i0" id="o140">
    <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</i>-doc and <i>live-config</i>-doc packages separately.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="141" href="#141" class="lnkocn">141</a></label>
  <h6 class="norm" id="o141"><a name="141"></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="142" href="#142" class="lnkocn">142</a></label>
  <p class="i0" id="o142">
    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="143" href="#143" class="lnkocn">143</a></label>
  <h6 class="norm" id="o143"><a name="143"></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="144" href="#144" class="lnkocn">144</a></label>
  <p class="i0" id="o144">
    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="145" href="#145" class="lnkocn">145</a></label>
  <li class="bullet" id="o145">
    Checkout the <i>live-boot</i> and <i>live-config</i> source
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="146" href="#146" class="lnkocn">146</a></label>
  <p class="code" id="o146">
    $ 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="147" href="#147" class="lnkocn">147</a></label>
  <p class="i0" id="o147">
    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="148" href="#148" class="lnkocn">148</a></label>
  <li class="bullet" id="o148">
    Build <i>live-boot</i> and <i>live-config</i> .deb files
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="149" href="#149" class="lnkocn">149</a></label>
  <p class="i0" id="o149">
    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="150" href="#150" class="lnkocn">150</a></label>
  <p class="i0" id="o150">
    Use a personal builder such as <i>pbuilder</i> or <i>sbuild</i> if you need to build <tt>live-boot</tt> for a target distribution that differs from your build system. For example, for <b>Wheezy</b> live images, build <tt>live-boot</tt> 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="151" href="#151" class="lnkocn">151</a></label>
  <p class="code" id="o151">
    $ 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="152" href="#152" class="lnkocn">152</a></label>
  <li class="bullet" id="o152">
    Use all generated .deb files
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="153" href="#153" class="lnkocn">153</a></label>
  <p class="i0" id="o153">
    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. Please see  <a href="#customizing-package-installation">Customizing package installation</a>  for more information. You should pay particular attention to  <a href="#additional-repositories">Additional repositories</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="154" href="#154" class="lnkocn">154</a></label>
  <h6 class="norm" id="o154"><a name="154"></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="155" href="#155" class="lnkocn">155</a></label>
  <p class="i0" id="o155">
    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="156" href="#156" class="lnkocn">156</a></label>
  <p class="code" id="o156">
    $ lb config --archives live.debian.net<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="157" href="#157" class="lnkocn">157</a></label>
  <h4 class="norm" id="o157"><a name="157"></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="158" href="#158" class="lnkocn">158</a></label>
  <p class="i0" id="o158">
    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 media or USB portable storage device. In certain special cases, such as the use of persistence, <tt>usb-hdd</tt> may be more suitable for USB devices. The chapter finishes with instructions for building and using a <tt>net</tt> type image, which is a bit more involved due to the setup required on the server. This is a slightly advanced topic for anyone who is not familiar already with netbooting, but 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="159" href="#159" class="lnkocn">159</a></label>
  <p class="i0" id="o159">
    Throughout the chapter, we will often refer to the default filenames produced by <i>live-build</i>. If you are downloading a prebuilt image instead, the actual filenames may vary.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="160" href="#160" class="lnkocn">160</a></label>
  <h5 class="norm" id="o160"><a name="160"></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="161" href="#161" class="lnkocn">161</a></label>
  <p class="i0" id="o161">
    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="162" href="#162" class="lnkocn">162</a></label>
  <p class="i0" id="o162">
    With Debian Live, it's a Debian GNU/Linux operating system, built for one of the supported architectures (currently amd64, i386, powerpc and sparc). It is made from the following parts:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="164" href="#164" class="lnkocn">164</a></label>
  <li class="bullet" id="o164">
    <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="165" href="#165" class="lnkocn">165</a></label>
  <li class="bullet" id="o165">
    <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="166" href="#166" class="lnkocn">166</a></label>
  <li class="bullet" id="o166">
    <b>Bootloader</b>: A small piece of code crafted to boot from the chosen media, 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 media 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="167" href="#167" class="lnkocn">167</a></label>
  <p class="i0" id="o167">
    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 media-dependant format (ISO9660 image, disk image, etc.).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="168" href="#168" class="lnkocn">168</a></label>
  <h5 class="norm" id="o168"><a name="168"></a>
    <a name="h4.2" ></a><a name="building-iso-hybrid" ></a><a name="hbuilding-iso-hybrid">4.2 First steps: building an ISO hybrid image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="169" href="#169" class="lnkocn">169</a></label>
  <p class="i0" id="o169">
    Regardless of the image type, you will need to perform the same basic steps to build an image each time. As a first example, execute the following sequence of <i>live-build</i> commands to create a basic ISO hybrid image containing just the Debian standard 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="170" href="#170" class="lnkocn">170</a></label>
  <p class="i0" id="o170">
    First, 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="171" href="#171" class="lnkocn">171</a></label>
  <p class="code" id="o171">
    $ lb config<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="172" href="#172" class="lnkocn">172</a></label>
  <p class="i0" id="o172">
    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="173" href="#173" class="lnkocn">173</a></label>
  <p class="i0" id="o173">
    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="174" href="#174" class="lnkocn">174</a></label>
  <p class="code" id="o174">
    # lb build<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">
    This process can take a while, depending on the speed of 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="176" href="#176" class="lnkocn">176</a></label>
  <h5 class="norm" id="o176"><a name="176"></a>
    <a name="h4.3" ></a><a name="using-iso-hybrid" ></a><a name="husing-iso-hybrid">4.3 Using an ISO hybrid live image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="177" href="#177" class="lnkocn">177</a></label>
  <p class="i0" id="o177">
    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 media 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="178" href="#178" class="lnkocn">178</a></label>
  <h6 class="norm" id="o178"><a name="178"></a>
    <a name="h4.3.1" ></a><a name="burning-iso-image" ></a><a name="hburning-iso-image">4.3.1 Burning an ISO image to a physical medium</a>
  </h6>
</div>

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

<div class="substance">
  <label class="ocn"><a name="180" href="#180" class="lnkocn">180</a></label>
  <p class="code" id="o180">
    # apt-get install wodim<br /><br />
$ wodim binary-hybrid.iso<br /><br />
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="182" href="#182" class="lnkocn">182</a></label>
  <p class="i0" id="o182">
    ISO images prepared with the <tt>isohybrid</tt> command, like the images produced by the default <tt>iso-hybrid</tt> binary image type, 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="183" href="#183" class="lnkocn">183</a></label>
  <p class="i0" id="o183">
    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="184" href="#184" class="lnkocn">184</a></label>
  <p class="code" id="o184">
    $ dd if=binary-hybrid.iso of=${USBSTICK}<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="185" href="#185" class="lnkocn">185</a></label>
  <h6 class="norm" id="o185"><a name="185"></a>
    <a name="h4.3.3" ></a><a name="booting-live-media" ></a><a name="hbooting-live-media">4.3.3 Booting the live media</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="186" href="#186" class="lnkocn">186</a></label>
  <p class="i0" id="o186">
    The first time you boot your live media, 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="187" href="#187" class="lnkocn">187</a></label>
  <p class="i0" id="o187">
    Once you've booted the media, 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 <tt>live-boot</tt> and <tt>live-config</tt> man pages found within the live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="188" href="#188" class="lnkocn">188</a></label>
  <p class="i0" id="o188">
    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've booted a console-only image, such as <tt>standard</tt> or <tt>rescue</tt> flavour prebuilt images, 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="189" href="#189" class="lnkocn">189</a></label>
  <h5 class="norm" id="o189"><a name="189"></a>
    <a name="h4.4" ></a><a name="using-virtual-machine" ></a><a name="husing-virtual-machine">4.4 Using a virtual machine for testing</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="190" href="#190" class="lnkocn">190</a></label>
  <p class="i0" id="o190">
    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="191" href="#191" class="lnkocn">191</a></label>
  <li class="bullet" id="o191">
    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="192" href="#192" class="lnkocn">192</a></label>
  <li class="bullet" id="o192">
    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="193" href="#193" class="lnkocn">193</a></label>
  <li class="bullet" id="o193">
    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="194" href="#194" class="lnkocn">194</a></label>
  <li class="bullet" id="o194">
    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="195" href="#195" class="lnkocn">195</a></label>
  <p class="i0" id="o195">
    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="196" href="#196" class="lnkocn">196</a></label>
  <h6 class="norm" id="o196"><a name="196"></a>
    <a name="h4.4.1" ></a><a name="testing-iso-with-qemu" ></a><a name="htesting-iso-with-qemu">4.4.1 Testing an ISO image with QEMU</a>
  </h6>
</div>

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

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

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

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

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

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

<div class="substance">
  <label class="ocn"><a name="203" href="#203" class="lnkocn">203</a></label>
  <h6 class="norm" id="o203"><a name="203"></a>
    <a name="h4.4.2" ></a><a name="testing-iso-with-virtualbox" ></a><a name="htesting-iso-with-virtualbox">4.4.2 Testing an ISO image with virtualbox-ose</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="204" href="#204" class="lnkocn">204</a></label>
  <p class="i0" id="o204">
    In order to test the ISO with <tt>virtualbox-ose</tt>:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="206" href="#206" class="lnkocn">206</a></label>
  <p class="i0" id="o206">
    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="207" href="#207" class="lnkocn">207</a></label>
  <p class="i0" id="o207">
    Note: For live systems containing X.org that you want to test with <tt>virtualbox-ose</tt>, you may wish to include the VirtualBox X.org driver package, <tt>virtualbox-ose-guest-x11</tt>, in your <i>live-build</i> configuration. Otherwise, the resolution is limited to 800x600.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="208" href="#208" class="lnkocn">208</a></label>
  <p class="code" id="o208">
    $ echo virtualbox-ose-guest-x11 >> config/package-lists/my.list.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="209" href="#209" class="lnkocn">209</a></label>
  <h5 class="norm" id="o209"><a name="209"></a>
    <a name="h4.5" ></a><a name="building-usb-hdd" ></a><a name="hbuilding-usb-hdd">4.5 Building a USB/HDD image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="210" href="#210" class="lnkocn">210</a></label>
  <p class="i0" id="o210">
    Building a USB/HDD image is similar to ISO hybrid in all respects except you specify <tt>-b usb-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, or want to use the remaining space on the media for some purpose, such as a persistence partition, you need a USB/HDD image.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="211" href="#211" class="lnkocn">211</a></label>
  <p class="i0" id="o211">
    Note: 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="212" href="#212" class="lnkocn">212</a></label>
  <p class="code" id="o212">
    # lb clean --binary<br /><br />
  </p>
</div>

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

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

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

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

<div class="substance">
  <label class="ocn"><a name="217" href="#217" class="lnkocn">217</a></label>
  <p class="i0" id="o217">
    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="218" href="#218" class="lnkocn">218</a></label>
  <h5 class="norm" id="o218"><a name="218"></a>
    <a name="h4.6" ></a><a name="using-usb-hdd-image" ></a><a name="husing-usb-hdd-image">4.6 Using a USB/HDD image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="219" href="#219" class="lnkocn">219</a></label>
  <p class="i0" id="o219">
    The generated binary image contains a VFAT partition and the syslinux bootloader, ready to be directly written on a USB stick. Since using a USB/HDD image is just like using an ISO hybrid image 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="220" href="#220" class="lnkocn">220</a></label>
  <h6 class="norm" id="o220"><a name="220"></a>
    <a name="h4.6.1" ></a><a name="testing-usb-hdd-with-qemu" ></a><a name="htesting-usb-hdd-with-qemu">4.6.1 Testing a USB/HDD image with Qemu</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="221" href="#221" class="lnkocn">221</a></label>
  <p class="i0" id="o221">
    First, install QEMU 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="222" href="#222" class="lnkocn">222</a></label>
  <p class="code" id="o222">
    $ kvm -hda binary.img<br /><br />
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="224" href="#224" class="lnkocn">224</a></label>
  <p class="i0" id="o224">
    To use the remaining free space after copying <tt>binary.img</tt> to a USB stick, use a partitioning tool such as <tt>gparted</tt> or <tt>parted</tt> 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="225" href="#225" class="lnkocn">225</a></label>
  <p class="code" id="o225">
    # gparted ${USBSTICK}<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="226" href="#226" class="lnkocn">226</a></label>
  <p class="i0" id="o226">
    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="227" href="#227" class="lnkocn">227</a></label>
  <p class="code" id="o227">
    # mkfs.ext4 ${PARTITION}<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="228" href="#228" class="lnkocn">228</a></label>
  <p class="i0" id="o228">
    Note: 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="229" href="#229" class="lnkocn">229</a></label>
  <p class="i0" id="o229">
    <b>Remember: Every time you install a new binary.img 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="230" href="#230" class="lnkocn">230</a></label>
  <h5 class="norm" id="o230"><a name="230"></a>
    <a name="h4.7" ></a><a name="building-netboot-image" ></a><a name="hbuilding-netboot-image">4.7 Building a netboot image</a>
  </h5>
</div>

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

<div class="substance">
  <label class="ocn"><a name="232" href="#232" class="lnkocn">232</a></label>
  <p class="i0" id="o232">
    Note: 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="233" href="#233" class="lnkocn">233</a></label>
  <p class="code" id="o233">
    # lb clean --binary<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="234" href="#234" class="lnkocn">234</a></label>
  <p class="i0" id="o234">
    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="235" href="#235" class="lnkocn">235</a></label>
  <p class="code" id="o235">
    $ lb config -b net --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="236" href="#236" class="lnkocn">236</a></label>
  <p class="i0" id="o236">
    In contrast with the ISO and USB/HDD images, netbooting does not, itself, serve the filesystem image to the client, so the files must be served via NFS. 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="237" href="#237" class="lnkocn">237</a></label>
  <p class="i0" id="o237">
    Now build the image with the <tt>lb build</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 build<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 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="240" href="#240" class="lnkocn">240</a></label>
  <p class="i0" id="o240">
    For example, if you unpack the generated <tt>binary-net.tar.gz</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="241" href="#241" class="lnkocn">241</a></label>
  <p class="i0" id="o241">
    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="242" href="#242" class="lnkocn">242</a></label>
  <h6 class="norm" id="o242"><a name="242"></a>
    <a name="4.7.1" ></a><a name="h4.7.1" ></a><a name="h4.7.1">4.7.1 DHCP server</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="243" href="#243" class="lnkocn">243</a></label>
  <p class="i0" id="o243">
    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="244" href="#244" class="lnkocn">244</a></label>
  <p class="i0" id="o244">
    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="245" href="#245" class="lnkocn">245</a></label>
  <p class="code" id="o245">
    # /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 />
&nbsp;&nbsp;&nbsp;range 192.168.0.1 192.168.0.254;<br />
&nbsp;&nbsp;&nbsp;next-server servername;<br />
&nbsp;&nbsp;&nbsp;filename "pxelinux.0";<br />
}<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="246" href="#246" class="lnkocn">246</a></label>
  <h6 class="norm" id="o246"><a name="246"></a>
    <a name="4.7.2" ></a><a name="h4.7.2" ></a><a name="h4.7.2">4.7.2 TFTP server</a>
  </h6>
</div>

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

<div class="substance">
  <label class="ocn"><a name="248" href="#248" class="lnkocn">248</a></label>
  <p class="i0" id="o248">
    You should install the tftpd-hpa 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="249" href="#249" class="lnkocn">249</a></label>
  <p class="code" id="o249">
    # dpkg-reconfigure -plow tftpd-hpa<br /><br />
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="251" href="#251" class="lnkocn">251</a></label>
  <h6 class="norm" id="o251"><a name="251"></a>
    <a name="4.7.3" ></a><a name="h4.7.3" ></a><a name="h4.7.3">4.7.3 NFS server</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="252" href="#252" class="lnkocn">252</a></label>
  <p class="i0" id="o252">
    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="253" href="#253" class="lnkocn">253</a></label>
  <p class="i0" id="o253">
    You need to install the <tt>nfs-kernel-server</tt> package.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="254" href="#254" class="lnkocn">254</a></label>
  <p class="i0" id="o254">
    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="255" href="#255" class="lnkocn">255</a></label>
  <p class="code" id="o255">
    /srv/debian-live *(ro,async,no_root_squash,no_subtree_check)<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 tell the NFS server about this new export with the following command:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="258" href="#258" class="lnkocn">258</a></label>
  <p class="i0" id="o258">
    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://syslinux.zytor.com/wiki/index.php/PXELINUX" target="_top">http://syslinux.zytor.com/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="259" href="#259" class="lnkocn">259</a></label>
  <h6 class="norm" id="o259"><a name="259"></a>
    <a name="4.7.4" ></a><a name="h4.7.4" ></a><a name="h4.7.4">4.7.4 Netboot testing HowTo</a>
  </h6>
</div>

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

<div class="substance">
  <label class="ocn"><a name="261" href="#261" class="lnkocn">261</a></label>
  <p class="i0" id="o261">
    To make our life easier, we can use virtualization. There are two solutions.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="262" href="#262" class="lnkocn">262</a></label>
  <h6 class="norm" id="o262"><a name="262"></a>
    <a name="4.7.5" ></a><a name="h4.7.5" ></a><a name="h4.7.5">4.7.5 Qemu</a>
  </h6>
</div>

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

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

<div class="substance">
  <label class="ocn"><a name="265" href="#265" class="lnkocn">265</a></label>
  <p class="code" id="o265">
    #!/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="266" href="#266" class="lnkocn">266</a></label>
  <p class="i0" id="o266">
    Get, or build a <tt>grub-floppy-netboot</tt> (in the svn).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="267" href="#267" class="lnkocn">267</a></label>
  <p class="i0" id="o267">
    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="268" href="#268" class="lnkocn">268</a></label>
  <h6 class="norm" id="o268"><a name="268"></a>
    <a name="4.7.6" ></a><a name="h4.7.6" ></a><a name="h4.7.6">4.7.6 VMWare Player</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 VMWare Player ("free as in beer" edition)
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="270" href="#270" class="lnkocn">270</a></label>
  <li class="bullet" id="o270">
    Create a PXETester directory, and create a text file called <tt>pxe.vwx</tt> inside
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="271" href="#271" class="lnkocn">271</a></label>
  <li class="bullet" id="o271">
    Paste this text inside:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="272" href="#272" class="lnkocn">272</a></label>
  <p class="code" id="o272">
    #!/usr/bin/vmware<br />
config.version = "8"<br />
virtualHW.version = "4"<br />
memsize = "512"<br />
MemAllowAutoScaleDown = "FALSE"<br /><br />
ide0:0.present = "FALSE"<br />
ide1:0.present = "FALSE"<br />
floppy0.present = "FALSE"<br />
sound.present = "FALSE"<br />
tools.remindInstall = "FALSE"<br /><br />
ethernet0.present = "TRUE"<br />
ethernet0.addressType = "generated"<br /><br />
displayName = "Test Boot PXE"<br />
guestOS = "other"<br /><br />
ethernet0.generatedAddress = "00:0c:29:8d:71:3b"<br />
uuid.location = "56 4d 83 72 5c c4 de 3f-ae 9e 07 91 1d 8d 71 3b"<br />
uuid.bios = "56 4d 83 72 5c c4 de 3f-ae 9e 07 91 1d 8d 71 3b"<br />
ethernet0.generatedAddressOffset = "0"<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="273" href="#273" class="lnkocn">273</a></label>
  <li class="bullet" id="o273">
    You can play with this configuration file (e.g. change memory limit to 256)
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="274" href="#274" class="lnkocn">274</a></label>
  <li class="bullet" id="o274">
    Double click on this file (or run VMWare player and select this file).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="275" href="#275" class="lnkocn">275</a></label>
  <li class="bullet" id="o275">
    When running just press space if that strange question comes up...
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="276" href="#276" class="lnkocn">276</a></label>
  <h4 class="norm" id="o276"><a name="276"></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="277" href="#277" class="lnkocn">277</a></label>
  <p class="i0" id="o277">
    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="278" href="#278" class="lnkocn">278</a></label>
  <h5 class="norm" id="o278"><a name="278"></a>
    <a name="h5.1" ></a><a name="live-build" ></a><a name="hlive-build">5.1 live-build</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="279" href="#279" class="lnkocn">279</a></label>
  <p class="i0" id="o279">
    <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="280" href="#280" class="lnkocn">280</a></label>
  <p class="i0" id="o280">
    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="281" href="#281" class="lnkocn">281</a></label>
  <p class="i0" id="o281">
    Many concepts are similar to those in the debhelper Debian package tools written by Joey Hess:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="282" href="#282" class="lnkocn">282</a></label>
  <li class="bullet" id="o282">
    The scripts have a central location for configuring their operation. In debhelper, 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="283" href="#283" class="lnkocn">283</a></label>
  <li class="bullet" id="o283">
    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="284" href="#284" class="lnkocn">284</a></label>
  <p class="i0" id="o284">
    Unlike debhelper, <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 <tt>dh-make</tt>. 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="285" href="#285" class="lnkocn">285</a></label>
  <p class="i0" id="o285">
    The remainder of this section discusses the three most important commands:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="286" href="#286" class="lnkocn">286</a></label>
  <li class="bullet" id="o286">
    <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="287" href="#287" class="lnkocn">287</a></label>
  <li class="bullet" id="o287">
    <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="288" href="#288" class="lnkocn">288</a></label>
  <li class="bullet" id="o288">
    <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="289" href="#289" class="lnkocn">289</a></label>
  <h6 class="norm" id="o289"><a name="289"></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="290" href="#290" class="lnkocn">290</a></label>
  <p class="i0" id="o290">
    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="291" href="#291" class="lnkocn">291</a></label>
  <p class="i0" id="o291">
    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="292" href="#292" class="lnkocn">292</a></label>
  <p class="code" id="o292">
    $ lb config<br />
P: Considering defaults defined in /etc/live/build.conf<br />
P: Creating config tree<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="293" href="#293" class="lnkocn">293</a></label>
  <p class="i0" id="o293">
    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="294" href="#294" class="lnkocn">294</a></label>
  <p class="i0" id="o294">
    Normally, you will want to specify some options. For example, to include the 'gnome' package list in your configuration:
  </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 -p gnome<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">
    It is possible to specify many options, such as:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="297" href="#297" class="lnkocn">297</a></label>
  <p class="code" id="o297">
    $ lb config --binary-images net --hostname live-machine --username live-user ...<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="298" href="#298" class="lnkocn">298</a></label>
  <p class="i0" id="o298">
    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="299" href="#299" class="lnkocn">299</a></label>
  <h6 class="norm" id="o299"><a name="299"></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="300" href="#300" class="lnkocn">300</a></label>
  <p class="i0" id="o300">
    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="301" href="#301" class="lnkocn">301</a></label>
  <h6 class="norm" id="o301"><a name="301"></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="302" href="#302" class="lnkocn">302</a></label>
  <p class="i0" id="o302">
    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="303" href="#303" class="lnkocn">303</a></label>
  <h5 class="norm" id="o303"><a name="303"></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="304" href="#304" class="lnkocn">304</a></label>
  <p class="i0" id="o304">
    <i>live-boot</i> is a collection of scripts providing hooks for the initramfs-tools, 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="305" href="#305" class="lnkocn">305</a></label>
  <p class="i0" id="o305">
    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="306" href="#306" class="lnkocn">306</a></label>
  <p class="i0" id="o306">
    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="307" href="#307" class="lnkocn">307</a></label>
  <h5 class="norm" id="o307"><a name="307"></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="308" href="#308" class="lnkocn">308</a></label>
  <p class="i0" id="o308">
    <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="309" href="#309" class="lnkocn">309</a></label>
  <h4 class="norm" id="o309"><a name="309"></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="310" href="#310" class="lnkocn">310</a></label>
  <p class="i0" id="o310">
    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="311" href="#311" class="lnkocn">311</a></label>
  <h5 class="norm" id="o311"><a name="311"></a>
    <a name="6.1" ></a><a name="h6.1" ></a><a name="h6.1">6.1 Use auto to manage configuration changes</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="312" href="#312" class="lnkocn">312</a></label>
  <p class="i0" id="o312">
    Live configurations rarely are perfect on the first try. You'll likely need to make a series of revisions until you are satisfied. However, inconsistencies can creep into your configuration from one revision to the next if you aren't careful. The main problem is, once a variable is given a default value, that value will not be recomputed from other variables that may change in later revisions.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="313" href="#313" class="lnkocn">313</a></label>
  <p class="i0" id="o313">
    For example, when the distribution is first set, many 'dependent' variables are given default values that suit that distribution. However, if you later decide to change the distribution, those dependent variables continue to retain old values that are no longer appropriate.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="314" href="#314" class="lnkocn">314</a></label>
  <p class="i0" id="o314">
    A second, related problem is that if you run <tt>lb config</tt> and then upgrade to a new version of <i>live-build</i> that has changed one of the variable names, you will discover this only by manual review of the variables in your <tt>config/*</tt> files, which you will then need to use to set the appropriate option again.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="315" href="#315" class="lnkocn">315</a></label>
  <p class="i0" id="o315">
    All of this would be a terrible nuisance if it weren't for auto/* scripts, 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. Simply create an auto/config script containing <tt>lb config</tt> command with all desired options, and an auto/clean that removes the files containing configuration variable values, and each time you <tt>lb config</tt> and <tt>lb clean</tt>, these files will be executed. This will ensure that your configuration is kept internally consistent from one revision to the next and from one <i>live-build</i> release to the next (though you will still have to take care and read the documentation when you upgrade <i>live-build</i> and make adjustments as needed).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="316" href="#316" class="lnkocn">316</a></label>
  <h5 class="norm" id="o316"><a name="316"></a>
    <a name="6.2" ></a><a name="h6.2" ></a><a name="h6.2">6.2 Example auto scripts</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="317" href="#317" class="lnkocn">317</a></label>
  <p class="i0" id="o317">
    Use auto script examples such as the following as the starting point for your new <i>live-build</i> configuration. Take note that when you call the <tt>lb</tt> command that the auto script wraps, you must specify <tt>noauto</tt> as its parameter to ensure that the auto script isn't called again, recursively. Also, don't forget to ensure the scripts are executable (e.g. <tt>chmod 755 auto/*</tt>).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="318" href="#318" class="lnkocn">318</a></label>
  <p class="i0" id="o318">
    <tt>auto/config</tt>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="319" href="#319" class="lnkocn">319</a></label>
  <p class="code" id="o319">
    #!/bin/sh<br />
lb config noauto \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--package-lists "standard" \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"${@}"<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="320" href="#320" class="lnkocn">320</a></label>
  <p class="i0" id="o320">
    <tt>auto/clean</tt>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="321" href="#321" class="lnkocn">321</a></label>
  <p class="code" id="o321">
    #!/bin/sh<br />
lb clean noauto "${@}"<br />
rm -f config/binary config/bootstrap \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config/chroot config/common config/source<br />
rm -f binary.log<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="322" href="#322" class="lnkocn">322</a></label>
  <p class="i0" id="o322">
    <tt>auto/build</tt>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="323" href="#323" class="lnkocn">323</a></label>
  <p class="code" id="o323">
    #!/bin/sh<br />
lb build noauto "${@}" 2>&1 | tee binary.log<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="324" href="#324" class="lnkocn">324</a></label>
  <p class="i0" id="o324">
    We now ship example auto scripts with <i>live-build</i> based on the examples above. You may copy those as your starting point.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="325" href="#325" class="lnkocn">325</a></label>
  <p class="code" id="o325">
    $ cp /usr/share/live/build/examples/auto/* auto/<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="326" href="#326" class="lnkocn">326</a></label>
  <p class="i0" id="o326">
    Edit <tt>auto/config</tt>, changing or adding any options as you see fit. In the example above, <tt>--package-lists standard</tt> is set to the default value. Change this to an appropriate value for your image (or delete it if you want to use the default) and add any additional options in continuation lines that follow.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="327" href="#327" class="lnkocn">327</a></label>
  <h4 class="norm" id="o327"><a name="327"></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="328" href="#328" class="lnkocn">328</a></label>
  <p class="i0" id="o328">
    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="329" href="#329" class="lnkocn">329</a></label>
  <h5 class="norm" id="o329"><a name="329"></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="330" href="#330" class="lnkocn">330</a></label>
  <p class="i0" id="o330">
    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="331" href="#331" class="lnkocn">331</a></label>
  <p class="i0" id="o331">
    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="332" href="#332" class="lnkocn">332</a></label>
  <h5 class="norm" id="o332"><a name="332"></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="333" href="#333" class="lnkocn">333</a></label>
  <p class="i0" id="o333">
    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 media 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="334" href="#334" class="lnkocn">334</a></label>
  <p class="i0" id="o334">
    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 or patches are applied, and hooks are run later, after all of the materials are in place.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="335" href="#335" class="lnkocn">335</a></label>
  <h5 class="norm" id="o335"><a name="335"></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="336" href="#336" class="lnkocn">336</a></label>
  <p class="i0" id="o336">
    Although <tt>lb config</tt> does create 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="337" href="#337" class="lnkocn">337</a></label>
  <h5 class="norm" id="o337"><a name="337"></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="338" href="#338" class="lnkocn">338</a></label>
  <p class="i0" id="o338">
    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="339" href="#339" class="lnkocn">339</a></label>
  <h4 class="norm" id="o339"><a name="339"></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="340" href="#340" class="lnkocn">340</a></label>
  <p class="i0" id="o340">
    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 your own lists of packages to include, use <i>live-build</i>' s predefined lists, use <tt>tasksel</tt> tasks, or a combination of all three. Finally, a number of options give some control over apt, or if you prefer, aptitude, 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="341" href="#341" class="lnkocn">341</a></label>
  <h5 class="norm" id="o341"><a name="341"></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="342" href="#342" class="lnkocn">342</a></label>
  <h6 class="norm" id="o342"><a name="342"></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="343" href="#343" class="lnkocn">343</a></label>
  <p class="i0" id="o343">
    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 <tt>wheezy</tt> 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 <tt>live-build</tt> to behave as needed to build each supported distribution. For example, to build against the *unstable* release, <b>Sid</b>, specify:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="345" href="#345" class="lnkocn">345</a></label>
  <p class="i0" id="o345">
    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="346" href="#346" class="lnkocn">346</a></label>
  <p class="code" id="o346">
    $ lb config --archive-areas "main contrib"<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="347" href="#347" class="lnkocn">347</a></label>
  <p class="i0" id="o347">
    Experimental support is available for some Debian derivatives through a <tt>--mode</tt> option. By default, this option is set to <tt>debian</tt>, even if you are building on a non-Debian system. If you specify <tt>--mode ubuntu</tt> or <tt>--mode emdebian</tt>, 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="348" href="#348" class="lnkocn">348</a></label>
  <p class="i0" id="o348">
    <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="349" href="#349" class="lnkocn">349</a></label>
  <h6 class="norm" id="o349"><a name="349"></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="350" href="#350" class="lnkocn">350</a></label>
  <p class="i0" id="o350">
    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>--parent-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 *bootstrap* stage is when the chroot is initially populated by debootstrap with a minimal system, and the *chroot* 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 *binary* stage, the <tt>--parent-mirror-binary</tt> and <tt>--parent-mirror-binary-security</tt> values are used, superceding any mirrors used in an earlier stage.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="351" href="#351" class="lnkocn">351</a></label>
  <h6 class="norm" id="o351"><a name="351"></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="352" href="#352" class="lnkocn">352</a></label>
  <p class="i0" id="o352">
    To set the distribution mirrors used at build time to point at a local mirror, it is sufficient to set <tt>--parent-mirror-bootstrap</tt>, <tt>--parent-mirror-chroot-security</tt> and <tt>--parent-mirror-chroot-backports</tt> as follows.
  </p>
</div>

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

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

<div class="substance">
  <label class="ocn"><a name="355" href="#355" class="lnkocn">355</a></label>
  <h6 class="norm" id="o355"><a name="355"></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="356" href="#356" class="lnkocn">356</a></label>
  <p class="i0" id="o356">
    The <tt>--parent-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>cdn.debian.net</tt>, a service that chooses a geographically close mirror based on the user's IP number. 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="357" href="#357" class="lnkocn">357</a></label>
  <p class="code" id="o357">
    $ lb config --parent-mirror-binary http://mirror/debian/ \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--parent-mirror-binary-security http://mirror/debian-security/<br /> <br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="358" href="#358" class="lnkocn">358</a></label>
  <h6 class="norm" id="o358"><a name="358"></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="359" href="#359" class="lnkocn">359</a></label>
  <p class="i0" id="o359">
    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>--parent-mirror-*</tt> options, these govern the repositories used in the *chroot* stage when building the image, and in the *binary* stage, i.e. for use when running the live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="360" href="#360" class="lnkocn">360</a></label>
  <p class="i0" id="o360">
    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="361" href="#361" class="lnkocn">361</a></label>
  <p class="code" id="o361">
    deb http://live.debian.net/ sid-snapshots main contrib non-free<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="362" href="#362" class="lnkocn">362</a></label>
  <p class="i0" id="o362">
    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="363" href="#363" class="lnkocn">363</a></label>
  <p class="i0" id="o363">
    If such files exist, they will be picked up automatically.
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="365" href="#365" class="lnkocn">365</a></label>
  <p class="i0" id="o365">
    <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="366" href="#366" class="lnkocn">366</a></label>
  <p class="code" id="o366">
    $ lb config --archives live.debian.net<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="367" href="#367" class="lnkocn">367</a></label>
  <h5 class="norm" id="o367"><a name="367"></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="368" href="#368" class="lnkocn">368</a></label>
  <p class="i0" id="o368">
    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 choose predefined lists of packages, or use APT tasks. 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="369" href="#369" class="lnkocn">369</a></label>
  <h6 class="norm" id="o369"><a name="369"></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="370" href="#370" class="lnkocn">370</a></label>
  <p class="i0" id="o370">
    Package lists are a powerful way of expressing which packages should be installed. The list syntax supports included files and conditional sections which makes it easy to build lists from other lists and adapt them for use in multiple configurations. You can use predefined package lists, providing in a modular fashion package selections from each of the major desktop environments and some special purpose lists, as well as standard lists the others are based upon. You can also provide your own package lists, or use a combination of both.
  </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>  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="372" href="#372" class="lnkocn">372</a></label>
  <h6 class="norm" id="o372"><a name="372"></a>
    <a name="8.2.2" ></a><a name="h8.2.2" ></a><a name="h8.2.2">8.2.2 Predefined package lists</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="373" href="#373" class="lnkocn">373</a></label>
  <p class="i0" id="o373">
    The simplest way to use lists is to specify one or more predefined lists with the <tt>--package-lists</tt> option. For example:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="374" href="#374" class="lnkocn">374</a></label>
  <p class="code" id="o374">
    $ lb config --package-lists "gnome rescue"<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="375" href="#375" class="lnkocn">375</a></label>
  <p class="i0" id="o375">
    The default location for the list files on your system is <tt>/usr/share/live/build/package-lists/</tt>. To determine the packages in a given list, read the corresponding file, paying attention to included files and conditionals as described in the following sections.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="376" href="#376" class="lnkocn">376</a></label>
  <h6 class="norm" id="o376"><a name="376"></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="377" href="#377" class="lnkocn">377</a></label>
  <p class="i0" id="o377">
    You may supplement the predefined lists using local package lists stored in <tt>config/package-lists/</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="378" href="#378" class="lnkocn">378</a></label>
  <p class="i0" id="o378">
    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="379" href="#379" class="lnkocn">379</a></label>
  <p class="i0" id="o379">
    <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 media.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="380" href="#380" class="lnkocn">380</a></label>
  <h6 class="norm" id="o380"><a name="380"></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="381" href="#381" class="lnkocn">381</a></label>
  <p class="i0" id="o381">
    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 media 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="382" href="#382" class="lnkocn">382</a></label>
  <h6 class="norm" id="o382"><a name="382"></a>
    <a name="8.2.5" ></a><a name="h8.2.5" ></a><a name="h8.2.5">8.2.5 Extending a provided package list using includes</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="383" href="#383" class="lnkocn">383</a></label>
  <p class="i0" id="o383">
    The package lists that are included with <i>live-build</i> make extensive use of includes. Refer to these in the <tt>/usr/share/live/build/package-lists/</tt> directory, as they serve as good examples of how to write your own lists.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="384" href="#384" class="lnkocn">384</a></label>
  <p class="i0" id="o384">
    For example, to make a list that includes the predefined <tt>gnome</tt> list plus iceweasel, create <tt>config/package-lists/my.list.chroot</tt> with the following contents:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="385" href="#385" class="lnkocn">385</a></label>
  <p class="code" id="o385">
    #include &lt;gnome&gt;<br />
iceweasel<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.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="387" href="#387" class="lnkocn">387</a></label>
  <p class="i0" id="o387">
    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>ARCHITECTURE</tt> or <tt>ARCHIVE_AREAS</tt>.
  </p>
</div>

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

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

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

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

<div class="substance">
  <label class="ocn"><a name="392" href="#392" class="lnkocn">392</a></label>
  <p class="i0" id="o392">
    You may also test against variables that may contain more than one value, e.g. to install <tt>vrms</tt> 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="393" href="#393" class="lnkocn">393</a></label>
  <p class="code" id="o393">
    #if ARCHIVE_AREAS contrib non-free<br />
vrms<br />
#endif<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="394" href="#394" class="lnkocn">394</a></label>
  <p class="i0" id="o394">
    A conditional may surround an <tt>#include</tt> directive:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="395" href="#395" class="lnkocn">395</a></label>
  <p class="code" id="o395">
    #if ARCHITECTURE amd64<br />
#include <gnome-full><br />
#endif<br /><br />
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="397" href="#397" class="lnkocn">397</a></label>
  <h6 class="norm" id="o397"><a name="397"></a>
    <a name="8.2.7" ></a><a name="h8.2.7" ></a><a name="h8.2.7">8.2.7 Tasks</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="398" href="#398" class="lnkocn">398</a></label>
  <p class="i0" id="o398">
    The Debian Installer offers the user choices of a number of preselected lists of packages, each one focused on a particular kind of system, or task a system may be used for, such as "Graphical desktop environment", "Mail server" or "Laptop". These lists are called "tasks" and are supported by APT through the "Task:" field. You can specify one or more tasks in <i>live-build</i> by putting them in a list in <tt>config/task-lists/</tt>, as in the example below.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="399" href="#399" class="lnkocn">399</a></label>
  <p class="code" id="o399">
    $ lb config<br />
$ echo "mail-server file-server" >> config/task-lists/my.list.chroot<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">
    The primary tasks available in the Debian Installer can be listed with <tt>tasksel --list-tasks</tt> in the live system. The contents of any task, including ones not included in this list, may be examined with <tt>tasksel --task-packages</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="401" href="#401" class="lnkocn">401</a></label>
  <h6 class="norm" id="o401"><a name="401"></a>
    <a name="h8.2.8" ></a><a name="desktop-and-language-tasks" ></a><a name="hdesktop-and-language-tasks">8.2.8 Desktop and language tasks</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="402" href="#402" class="lnkocn">402</a></label>
  <p class="i0" id="o402">
    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="403" href="#403" class="lnkocn">403</a></label>
  <p class="i0" id="o403">
    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="404" href="#404" class="lnkocn">404</a></label>
  <p class="i0" id="o404">
    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 Japanese might include these tasks:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="405" href="#405" class="lnkocn">405</a></label>
  <p class="code" id="o405">
    $ lb config<br />
$ echo "gnome-desktop desktop standard laptop" >> config/task-lists/my.list.chroot<br />
$ echo "japanese japanese-desktop japanese-gnome-desktop" >> config/task-lists/my.list.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="406" href="#406" class="lnkocn">406</a></label>
  <p class="i0" id="o406">
    Since desktop tasks are "internal" tasks, for every desktop flavour task included in the image, the corresponding value, if it differs from the default, "gnome", must be preseeded in the "tasksel/desktop" debconf variable or else tasksel will not recognize and install it. Thus:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="407" href="#407" class="lnkocn">407</a></label>
  <p class="code" id="o407">
    $ lb config<br />
$ echo 'tasksel tasksel/desktop multiselect kde' >> config/preseed/my.preseed.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="408" href="#408" class="lnkocn">408</a></label>
  <p class="i0" id="o408">
    This parameter can take multiple values, e.g. "lxde xfce" instead of "kde".
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="409" href="#409" class="lnkocn">409</a></label>
  <h5 class="norm" id="o409"><a name="409"></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="410" href="#410" class="lnkocn">410</a></label>
  <p class="i0" id="o410">
    Whilst 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="411" href="#411" class="lnkocn">411</a></label>
  <p class="i0" id="o411">
    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="412" href="#412" class="lnkocn">412</a></label>
  <p class="i0" id="o412">
    There are two ways of installing modified custom packages:
  </p>
</div>

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

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

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

<div class="substance">
  <label class="ocn"><a name="416" href="#416" class="lnkocn">416</a></label>
  <h6 class="norm" id="o416"><a name="416"></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="417" href="#417" class="lnkocn">417</a></label>
  <p class="i0" id="o417">
    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="418" href="#418" class="lnkocn">418</a></label>
  <p class="i0" id="o418">
    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="419" href="#419" class="lnkocn">419</a></label>
  <p class="i0" id="o419">
    Using <tt>packages.chroot</tt> for installation of custom packages has disadvantages:
  </p>
</div>

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

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

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

<div class="substance">
  <label class="ocn"><a name="423" href="#423" class="lnkocn">423</a></label>
  <h6 class="norm" id="o423"><a name="423"></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="424" href="#424" class="lnkocn">424</a></label>
  <p class="i0" id="o424">
    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="425" href="#425" class="lnkocn">425</a></label>
  <p class="i0" id="o425">
    Whilst 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="426" href="#426" class="lnkocn">426</a></label>
  <h6 class="norm" id="o426"><a name="426"></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="427" href="#427" class="lnkocn">427</a></label>
  <p class="i0" id="o427">
    <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="428" href="#428" class="lnkocn">428</a></label>
  <p class="i0" id="o428">
    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="429" href="#429" class="lnkocn">429</a></label>
  <h5 class="norm" id="o429"><a name="429"></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="430" href="#430" class="lnkocn">430</a></label>
  <p class="i0" id="o430">
    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="431" href="#431" class="lnkocn">431</a></label>
  <h6 class="norm" id="o431"><a name="431"></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="432" href="#432" class="lnkocn">432</a></label>
  <p class="i0" id="o432">
    You can elect to use either <tt>apt</tt> or <tt>aptitude</tt> 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="433" href="#433" class="lnkocn">433</a></label>
  <li class="bullet" id="o433">
    <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="434" href="#434" class="lnkocn">434</a></label>
  <li class="bullet" id="o434">
    <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="435" href="#435" class="lnkocn">435</a></label>
  <h6 class="norm" id="o435"><a name="435"></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="436" href="#436" class="lnkocn">436</a></label>
  <p class="i0" id="o436">
    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="437" href="#437" class="lnkocn">437</a></label>
  <p class="code" id="o437">
    $ lb config --apt-http-proxy http://proxy/<br /> <br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="438" href="#438" class="lnkocn">438</a></label>
  <h6 class="norm" id="o438"><a name="438"></a>
    <a name="8.4.3" ></a><a name="h8.4.3" ></a><a name="h8.4.3">8.4.3 Tweaking APT to save space</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="439" href="#439" class="lnkocn">439</a></label>
  <p class="i0" id="o439">
    You may find yourself needing to save some space on the image media, 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="440" href="#440" class="lnkocn">440</a></label>
  <p class="i0" id="o440">
    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="441" href="#441" class="lnkocn">441</a></label>
  <p class="code" id="o441">
    $ lb config --apt-indices false<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="442" href="#442" class="lnkocn">442</a></label>
  <p class="i0" id="o442">
    This will not influence the entries in /etc/apt/sources.list, but merely whether /var/lib/apt 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="443" href="#443" class="lnkocn">443</a></label>
  <p class="i0" id="o443">
    If you find the installation of recommended packages bloats your image too much, you may disable that default option of APT with:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="445" href="#445" class="lnkocn">445</a></label>
  <p class="i0" id="o445">
    The tradeoff here is that if you don't install recommended packages for a 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 you 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="446" href="#446" class="lnkocn">446</a></label>
  <h6 class="norm" id="o446"><a name="446"></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="447" href="#447" class="lnkocn">447</a></label>
  <p class="i0" id="o447">
    If there is not an <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.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="448" href="#448" class="lnkocn">448</a></label>
  <h6 class="norm" id="o448"><a name="448"></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="449" href="#449" class="lnkocn">449</a></label>
  <p class="i0" id="o449">
    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/chroot_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="450" href="#450" class="lnkocn">450</a></label>
  <p class="i0" id="o450">
    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 it so that only the packages you want are installed from it 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="451" href="#451" class="lnkocn">451</a></label>
  <p class="code" id="o451">
    $ echo "deb http://mirror/debian sid main" > config/archives/sid.list.chroot<br />
$ cat >> config/chroot_apt/preferences <<END<br />
Package: live-boot live-boot-initramfs-tools live-config live-config-sysvinit<br />
Pin: release n=sid<br />
Pin-Priority: 600<br /><br />
Package: *<br />
Pin: release n=sid<br />
Pin-Priority: 1<br />
END<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="452" href="#452" class="lnkocn">452</a></label>
  <p class="i0" id="o452">
    <b>Note:</b> Wildcards can be used in package names (e.g. <b>Package: live-*</b>) with Apt version 0.8.14 or higher. This means that it works with <b>Wheezy</b> using:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="454" href="#454" class="lnkocn">454</a></label>
  <p class="i0" id="o454">
    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>--package-lists lxde</tt> option, but don't want the user prompted to store wifi passwords in the keyring. This list includes <tt>gdm</tt>, which depends on <tt>gksu</tt>, which in turn recommends <tt>gnome-keyring</tt>. So you want to omit the recommended <tt>gnome-keyring</tt> package. This can be done by adding the following stanza to <tt>config/chroot_apt/preferences</tt>:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="456" href="#456" class="lnkocn">456</a></label>
  <h4 class="norm" id="o456"><a name="456"></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="457" href="#457" class="lnkocn">457</a></label>
  <p class="i0" id="o457">
    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="458" href="#458" class="lnkocn">458</a></label>
  <h5 class="norm" id="o458"><a name="458"></a>
    <a name="9.1" ></a><a name="h9.1" ></a><a name="h9.1">9.1 Includes</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="459" href="#459" class="lnkocn">459</a></label>
  <p class="i0" id="o459">
    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 three mechanisms for using them:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="460" href="#460" class="lnkocn">460</a></label>
  <li class="bullet" id="o460">
    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="461" href="#461" class="lnkocn">461</a></label>
  <li class="bullet" id="o461">
    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="462" href="#462" class="lnkocn">462</a></label>
  <li class="bullet" id="o462">
    Binary includes: These allow you to add or replace Debian specific files in the binary image, such as the templates and tools directories. Please see  <a href="#binary-includes">Binary includes</a>  for more information.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="463" href="#463" class="lnkocn">463</a></label>
  <p class="i0" id="o463">
    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="464" href="#464" class="lnkocn">464</a></label>
  <h6 class="norm" id="o464"><a name="464"></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="465" href="#465" class="lnkocn">465</a></label>
  <p class="i0" id="o465">
    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="466" href="#466" class="lnkocn">466</a></label>
  <p class="i0" id="o466">
    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="467" href="#467" class="lnkocn">467</a></label>
  <p class="code" id="o467">
    $ 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="468" href="#468" class="lnkocn">468</a></label>
  <p class="i0" id="o468">
    Your configuration will then have the following layout:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="469" href="#469" class="lnkocn">469</a></label>
  <p class="code" id="o469">
    -- config<br />
&nbsp;&nbsp;&nbsp;&nbsp;[...]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|-- includes.chroot<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;`-- var<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`-- www<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`-- index.html<br />
&nbsp;&nbsp;&nbsp;&nbsp;[...]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`-- templates<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">
    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="471" href="#471" class="lnkocn">471</a></label>
  <h6 class="norm" id="o471"><a name="471"></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="472" href="#472" class="lnkocn">472</a></label>
  <p class="i0" id="o472">
    To include material such as documentation or videos on the media filesystem so that it is accessible immediately upon insertion of the media 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="473" href="#473" class="lnkocn">473</a></label>
  <p class="code" id="o473">
    $ cp ~/video_demo.* config/includes.binary/<br /><br />
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="475" href="#475" class="lnkocn">475</a></label>
  <h6 class="norm" id="o475"><a name="475"></a>
    <a name="h9.1.3" ></a><a name="binary-includes" ></a><a name="hbinary-includes">9.1.3 Binary includes</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="476" href="#476" class="lnkocn">476</a></label>
  <p class="i0" id="o476">
    <i>live-build</i> has some standard files (like documentation) that gets included in the default configuration on every live media. This can be disabled with:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="477" href="#477" class="lnkocn">477</a></label>
  <p class="code" id="o477">
    $ lb config --includes none<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="478" href="#478" class="lnkocn">478</a></label>
  <p class="i0" id="o478">
    Otherwise, the material will be installed by <i>live-build</i> in <tt>/includes/</tt> by default on the media filesystem, or else you can specify an alternate path with <tt>--includes</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="479" href="#479" class="lnkocn">479</a></label>
  <h5 class="norm" id="o479"><a name="479"></a>
    <a name="9.2" ></a><a name="h9.2" ></a><a name="h9.2">9.2 Hooks</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="480" href="#480" class="lnkocn">480</a></label>
  <p class="i0" id="o480">
    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="481" href="#481" class="lnkocn">481</a></label>
  <h6 class="norm" id="o481"><a name="481"></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="482" href="#482" class="lnkocn">482</a></label>
  <p class="i0" id="o482">
    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/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="483" href="#483" class="lnkocn">483</a></label>
  <h6 class="norm" id="o483"><a name="483"></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="484" href="#484" class="lnkocn">484</a></label>
  <p class="i0" id="o484">
    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="485" href="#485" class="lnkocn">485</a></label>
  <h6 class="norm" id="o485"><a name="485"></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="486" href="#486" class="lnkocn">486</a></label>
  <p class="i0" id="o486">
    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/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="487" href="#487" class="lnkocn">487</a></label>
  <h5 class="norm" id="o487"><a name="487"></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="488" href="#488" class="lnkocn">488</a></label>
  <p class="i0" id="o488">
    Files in the <tt>config/preseed/</tt> directory suffixed with <tt>.preseed</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="489" href="#489" class="lnkocn">489</a></label>
  <p class="i0" id="o489">
    For more information about debconf, please see debconf(7) in the <tt>debconf</tt> package.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="490" href="#490" class="lnkocn">490</a></label>
  <h4 class="norm" id="o490"><a name="490"></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="491" href="#491" class="lnkocn">491</a></label>
  <p class="i0" id="o491">
    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 manpage of <i>live-config</i>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="492" href="#492" class="lnkocn">492</a></label>
  <h5 class="norm" id="o492"><a name="492"></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="493" href="#493" class="lnkocn">493</a></label>
  <p class="i0" id="o493">
    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="494" href="#494" class="lnkocn">494</a></label>
  <p class="i0" id="o494">
    You can specify additional groups that the live user will belong to by preseeding the <tt>passwd/user-default-groups</tt> debconf value. For example, to add the live user to the <tt>fuse</tt> group, add the following preseed under <tt>config/preseed/</tt> for the chroot stage:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="495" href="#495" class="lnkocn">495</a></label>
  <p class="code" id="o495">
    $ lb config<br />
$ echo user-setup passwd/user-default-groups string audio cdrom \<br />
&nbsp;&nbsp;&nbsp;dip floppy video plugdev netdev powerdev scanner bluetooth fuse \<br />
&nbsp;&nbsp;&nbsp;>> config/preseed/my.preseed.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="496" href="#496" class="lnkocn">496</a></label>
  <p class="i0" id="o496">
    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="497" href="#497" class="lnkocn">497</a></label>
  <p class="i0" id="o497">
    To change the default username you can simply specify it in your config:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="499" href="#499" class="lnkocn">499</a></label>
  <p class="i0" id="o499">
    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. 200-passwd) and add it to <tt>config/includes.chroot/lib/live/config/</tt>
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="500" href="#500" class="lnkocn">500</a></label>
  <h5 class="norm" id="o500"><a name="500"></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="501" href="#501" class="lnkocn">501</a></label>
  <p class="i0" id="o501">
    When the live system boots, language is involved in three steps:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="503" href="#503" class="lnkocn">503</a></label>
  <li class="bullet" id="o503">
    setting the keyboard layout for the console
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="504" href="#504" class="lnkocn">504</a></label>
  <li class="bullet" id="o504">
    setting the keyboard layout for X
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="505" href="#505" class="lnkocn">505</a></label>
  <p class="i0" id="o505">
    The default locale when building a Live system is "locales=en_US.UTF-8". 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="506" href="#506" class="lnkocn">506</a></label>
  <p class="code" id="o506">
    $ lb config --bootappend-live "locales=de_CH.UTF-8"<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">
    This parameter can also be used at the kernel command line. You can specify a locale by a full <tt>language_country.encoding</tt> word.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="508" href="#508" class="lnkocn">508</a></label>
  <p class="i0" id="o508">
    Both the console and X keyboard configuration depend on the <tt>keyboard-layouts</tt> parameter of the <tt>--bootappend-live</tt> option. Valid options for X keyboard layouts can be found in <tt>/usr/share/X11/xkb/rules/base.xml</tt> (rather limited to two-letters country codes). To find the value (the two characters) corresponding to a language try searching for the english name of the nation where the language is spoken, e.g:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="509" href="#509" class="lnkocn">509</a></label>
  <p class="code" id="o509">
    $ grep -i sweden -C3 /usr/share/X11/xkb/rules/base.xml | grep name<br />
&lt;name&gt;se&lt;/name&gt;<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="510" href="#510" class="lnkocn">510</a></label>
  <p class="i0" id="o510">
    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="511" href="#511" class="lnkocn">511</a></label>
  <p class="code" id="o511">
    $ lb config --bootappend-live "locales=de_CH.UTF-8 keyboard-layouts=ch"<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="512" href="#512" class="lnkocn">512</a></label>
  <p class="i0" id="o512">
    A list of the valid values of the keyboards for the console can be figured with the following command:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="513" href="#513" class="lnkocn">513</a></label>
  <p class="code" id="o513">
    $ for i in $(find /usr/share/keymaps/ -iname "*kmap.gz"); \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do basename $i | head -c -9; echo; done | sort | less<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="514" href="#514" class="lnkocn">514</a></label>
  <p class="i0" id="o514">
    Alternatively, you can use the <tt>console-setup</tt> package, a tool to let you configure console layout using X (XKB) definitions; you can then set your keyboard layout more precisely with <tt>keyboard-layouts</tt>, <tt>keyboard-variant</tt>, <tt>keyboard-options</tt> and <tt>keyboard-model</tt> variables; <i>live-boot</i> will use also these parameters for X configuration. For example, to set up a French system with a French-Dvorak layout (called Bepo) on a TypeMatrix keyboard, both in console and X11, use:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="515" href="#515" class="lnkocn">515</a></label>
  <p class="code" id="o515">
    $ lb config --bootappend-live \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"locales=fr_FR.UTF-8 keyboard-layouts=fr keyboard-variant=bepo keyboard-model=tm2030usb"<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="516" href="#516" class="lnkocn">516</a></label>
  <h5 class="norm" id="o516"><a name="516"></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="517" href="#517" class="lnkocn">517</a></label>
  <p class="i0" id="o517">
    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="518" href="#518" class="lnkocn">518</a></label>
  <p class="i0" id="o518">
    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="519" href="#519" class="lnkocn">519</a></label>
  <p class="i0" id="o519">
    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 could work it could be handy to know that even if the system is booted and run from read-only media, modification 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="520" href="#520" class="lnkocn">520</a></label>
  <p class="i0" id="o520">
    The data stored on this ramdisk should be saved on a writable persistent medium like a Hard Disk, a USB key, 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>persistent</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="521" href="#521" class="lnkocn">521</a></label>
  <h6 class="norm" id="o521"><a name="521"></a>
    <a name="10.3.1" ></a><a name="h10.3.1" ></a><a name="h10.3.1">10.3.1 Full persistence</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="522" href="#522" class="lnkocn">522</a></label>
  <p class="i0" id="o522">
    By 'full persistence' it is meant that instead of using a tmpfs for storing modifications to the read-only media (with the copy-on-write, COW, system) a writable partition is used. In order to use this feature a partition with a clean writable supported filesystem on it labeled "live-rw" must be attached on the system at boot time and the system must be started with the boot parameter 'persistent'. This partition could be an ext2 partition on the hard disk or on a usb key created with, e.g.:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="523" href="#523" class="lnkocn">523</a></label>
  <p class="code" id="o523">
    # mkfs.ext2 -L live-rw /dev/sdb1<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="524" href="#524" class="lnkocn">524</a></label>
  <p class="i0" id="o524">
    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="525" href="#525" class="lnkocn">525</a></label>
  <p class="i0" id="o525">
    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="526" href="#526" class="lnkocn">526</a></label>
  <p class="code" id="o526">
    # tune2fs -L live-rw /dev/sdb1 # for ext2,3,4 filesystems<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">
    But since live system users cannot always use a hard drive partition, and considering that most USB keys have poor write speeds, 'full' persistence could be also used with just image files, so you could create a file representing a partition and put this image file even on a NTFS partition of a foreign OS, with something like:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="528" href="#528" class="lnkocn">528</a></label>
  <p class="code" id="o528">
    $ dd if=/dev/null of=live-rw bs=1G seek=1 # for a 1GB sized image file<br />
$ /sbin/mkfs.ext2 -F live-rw<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="529" href="#529" class="lnkocn">529</a></label>
  <p class="i0" id="o529">
    Then copy the <tt>live-rw</tt> file to a writable partition and reboot with the boot parameter 'persistent'.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="530" href="#530" class="lnkocn">530</a></label>
  <h6 class="norm" id="o530"><a name="530"></a>
    <a name="10.3.2" ></a><a name="h10.3.2" ></a><a name="h10.3.2">10.3.2 Home automounting</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="531" href="#531" class="lnkocn">531</a></label>
  <p class="i0" id="o531">
    If during the boot a partition (filesystem) image file or a partition labeled <tt>home-rw</tt> is discovered, this filesystem will be directly mounted as <tt>/home</tt>, thus permitting persistence of files that belong to e.g. the default user. It can be combined with full persistence.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="532" href="#532" class="lnkocn">532</a></label>
  <h6 class="norm" id="o532"><a name="532"></a>
    <a name="10.3.3" ></a><a name="h10.3.3" ></a><a name="h10.3.3">10.3.3 Snapshots</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="533" href="#533" class="lnkocn">533</a></label>
  <p class="i0" id="o533">
    Snapshots are collections of files and directories which are not mounted while running but which are copied from a persistent device to the system (tmpfs) at boot and which are resynced at reboot/shutdown of the system. The content of a snapshot could reside on a partition or an image file (like the above mentioned types) labeled <tt>live-sn</tt>, but it defaults to a simple cpio archive named <tt>live-sn.cpio.gz</tt>. As above, at boot time, the block devices connected to the system are traversed to see if a partition or a file named like that could be found. A power interruption during run time could lead to data loss, hence a tool invoked <tt>live-snapshot --refresh</tt> could be called to sync important changes. This type of persistence, since it does not write continuously to the persistent media, is the most flash-based device friendly and the fastest of all the persistence systems.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="534" href="#534" class="lnkocn">534</a></label>
  <p class="i0" id="o534">
    A /home version of snapshot exists too and its label is <tt>home-sn.*</tt>; it works the same as the main snapshot but it is only applied to /home.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="535" href="#535" class="lnkocn">535</a></label>
  <p class="i0" id="o535">
    Snapshots cannot currently handle file deletion but full persistence and home automounting can.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="536" href="#536" class="lnkocn">536</a></label>
  <h6 class="norm" id="o536"><a name="536"></a>
    <a name="10.3.4" ></a><a name="h10.3.4" ></a><a name="h10.3.4">10.3.4 Persistent SubText</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="537" href="#537" class="lnkocn">537</a></label>
  <p class="i0" id="o537">
    If a user would need multiple persistent storage of the same type for different locations or testing, such as <tt>live-rw-nonwork</tt> and <tt>live-rw-work</tt>, the boot parameter <tt>persistent-subtext</tt> used in conjunction with the boot parameter <tt>persistent</tt> will allow for multiple but unique persistent media. An example would be if a user wanted to use a persistent partition labeled <tt>live-sn-subText</tt> they would use the boot parameters of: <tt>persistent</tt> <tt>persistent-subtext=subText</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="538" href="#538" class="lnkocn">538</a></label>
  <h6 class="norm" id="o538"><a name="538"></a>
    <a name="10.3.5" ></a><a name="h10.3.5" ></a><a name="h10.3.5">10.3.5 Partial remastering</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="539" href="#539" class="lnkocn">539</a></label>
  <p class="i0" id="o539">
    The run-time modification of the tmpfs could be collected using live-snapshot in a squashfs and added to the cd by remastering the iso in the case of cd-r or adding a session to multisession cd/dvd(rw); <i>live-boot</i> mounts all /live filesystem in order or with the module boot parameter.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="540" href="#540" class="lnkocn">540</a></label>
  <h4 class="norm" id="o540"><a name="540"></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="541" href="#541" class="lnkocn">541</a></label>
  <h5 class="norm" id="o541"><a name="541"></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="542" href="#542" class="lnkocn">542</a></label>
  <p class="i0" id="o542">
    <i>live-build</i> uses syslinux as bootloader by default, which is by default configured to pause indefinitely at its splash screen. To adjust this, you can pass <tt>--syslinux-timeout TIMEOUT</tt> to <tt>lb config</tt>. The value is specified in units of seconds. A timeout of 0 (zero) disables the timeout completely. For more information please see syslinux(1).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="543" href="#543" class="lnkocn">543</a></label>
  <h5 class="norm" id="o543"><a name="543"></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="544" href="#544" class="lnkocn">544</a></label>
  <p class="i0" id="o544">
    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="545" href="#545" class="lnkocn">545</a></label>
  <li class="bullet" id="o545">
    <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="546" href="#546" class="lnkocn">546</a></label>
  <li class="bullet" id="o546">
    <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="547" href="#547" class="lnkocn">547</a></label>
  <li class="bullet" id="o547">
    <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="548" href="#548" class="lnkocn">548</a></label>
  <li class="bullet" id="o548">
    <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="549" href="#549" class="lnkocn">549</a></label>
  <h4 class="norm" id="o549"><a name="549"></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="550" href="#550" class="lnkocn">550</a></label>
  <p class="i0" id="o550">
    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="551" href="#551" class="lnkocn">551</a></label>
  <p class="i0" id="o551">
    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="552" href="#552" class="lnkocn">552</a></label>
  <h5 class="norm" id="o552"><a name="552"></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="553" href="#553" class="lnkocn">553</a></label>
  <p class="i0" id="o553">
    The three main types of installer are:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="554" href="#554" class="lnkocn">554</a></label>
  <p class="i0" id="o554">
    <b>"Regular" Debian Installer</b>: This is a normal Debian Live image with a seperate 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="555" href="#555" class="lnkocn">555</a></label>
  <p class="i0" id="o555">
    On such images, Debian is installed by fetching and installing .deb packages using <tt>debootstrap</tt> or <tt>cdebootstrap</tt>, from the local media or some network-based network, resulting in a standard Debian system being installed to the hard disk.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="556" href="#556" class="lnkocn">556</a></label>
  <p class="i0" id="o556">
    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="557" href="#557" class="lnkocn">557</a></label>
  <p class="i0" id="o557">
    <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="558" href="#558" class="lnkocn">558</a></label>
  <p class="i0" id="o558">
    Installation will proceed in an identical fashion to the "Regular" installation described above, but at the actual package installation stage, instead of using <tt>debootstrap</tt> 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="559" href="#559" class="lnkocn">559</a></label>
  <p class="i0" id="o559">
    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="560" href="#560" class="lnkocn">560</a></label>
  <p class="i0" id="o560">
    Note: to support both normal and live installer entries in the bootloader of the same live media, 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="561" href="#561" class="lnkocn">561</a></label>
  <p class="i0" id="o561">
    <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="562" href="#562" class="lnkocn">562</a></label>
  <p class="i0" id="o562">
    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="563" href="#563" class="lnkocn">563</a></label>
  <p class="code" id="o563">
    $ lb config --architecture i386 --linux-flavours 486 \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--debian-installer live<br />
$ echo debian-installer-launcher >> config/package-lists/my.list.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="564" href="#564" class="lnkocn">564</a></label>
  <h5 class="norm" id="o564"><a name="564"></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="565" href="#565" class="lnkocn">565</a></label>
  <p class="i0" id="o565">
    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/binary_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="566" href="#566" class="lnkocn">566</a></label>
  <p class="code" id="o566">
    $ echo "d-i debian-installer/locale string en_US" \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;>> config/binary_debian-installer/preseed.cfg<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="567" href="#567" class="lnkocn">567</a></label>
  <h5 class="norm" id="o567"><a name="567"></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="568" href="#568" class="lnkocn">568</a></label>
  <p class="i0" id="o568">
    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/binary_debian-installer-includes/</tt>.
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="570" href="#570" class="lnkocn">570</a></label>
  <h4 class="norm" id="o570"><a name="570"></a>
    <a name="h13" ></a><a name="reporting_bugs" ></a><a name="bugs" ></a><a name="hbugs">13. Reporting bugs</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="571" href="#571" class="lnkocn">571</a></label>
  <p class="i0" id="o571">
    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 how to file good bug reports.
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="573" href="#573" class="lnkocn">573</a></label>
  <li class="bullet" id="o573">
    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="574" href="#574" class="lnkocn">574</a></label>
  <li class="bullet" id="o574">
    Always try to reproduce the bug with the <b>most recent versions</b> of <i>live-build</i>, <i>live-boot</i>, and <i>live-config</i> before submitting a bug report.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="575" href="#575" class="lnkocn">575</a></label>
  <li class="bullet" id="o575">
    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>, and <i>live-config</i> used and the distribution of the live system you are building.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="576" href="#576" class="lnkocn">576</a></label>
  <h5 class="norm" id="o576"><a name="576"></a>
    <a name="13.1" ></a><a name="h13.1" ></a><a name="h13.1">13.1 Known issues</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="577" href="#577" class="lnkocn">577</a></label>
  <p class="i0" id="o577">
    Because Debian <b>testing</b> and Debian <b>unstable</b> distributions are a moving target, when you specify either as the target system distribution, a successful build may not always be possible.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="578" href="#578" class="lnkocn">578</a></label>
  <p class="i0" id="o578">
    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> does always default to the <b>stable</b> release.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="579" href="#579" class="lnkocn">579</a></label>
  <p class="i0" id="o579">
    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="580" href="#580" class="lnkocn">580</a></label>
  <p class="i0" id="o580">
    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="581" href="#581" class="lnkocn">581</a></label>
  <h5 class="norm" id="o581"><a name="581"></a>
    <a name="13.2" ></a><a name="h13.2" ></a><a name="h13.2">13.2 Rebuild from scratch</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="582" href="#582" class="lnkocn">582</a></label>
  <p class="i0" id="o582">
    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="583" href="#583" class="lnkocn">583</a></label>
  <h5 class="norm" id="o583"><a name="583"></a>
    <a name="13.3" ></a><a name="h13.3" ></a><a name="h13.3">13.3 Use up-to-date packages</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="584" href="#584" class="lnkocn">584</a></label>
  <p class="i0" id="o584">
    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="585" href="#585" class="lnkocn">585</a></label>
  <h5 class="norm" id="o585"><a name="585"></a>
    <a name="h13.4" ></a><a name="collect-information" ></a><a name="hcollect-information">13.4 Collect information</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="586" href="#586" class="lnkocn">586</a></label>
  <p class="i0" id="o586">
    Please provide enough information with your report. At least include the exact version of <i>live-build</i> version where the bug is encountered and steps to reproduce it. Please use common sense and include other relevant information if you think that it might help in solving the problem.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="587" href="#587" class="lnkocn">587</a></label>
  <p class="i0" id="o587">
    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="588" href="#588" class="lnkocn">588</a></label>
  <li class="bullet" id="o588">
    Architecture of the host system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="589" href="#589" class="lnkocn">589</a></label>
  <li class="bullet" id="o589">
    Version of <i>live-build</i> on the host system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="590" href="#590" class="lnkocn">590</a></label>
  <li class="bullet" id="o590">
    Version of <i>live-boot</i> on the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="591" href="#591" class="lnkocn">591</a></label>
  <li class="bullet" id="o591">
    Version of <i>live-config</i> on the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="592" href="#592" class="lnkocn">592</a></label>
  <li class="bullet" id="o592">
    Version of <tt>debootstrap</tt> and/or <tt>cdebootstrap</tt> on the host system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="593" href="#593" class="lnkocn">593</a></label>
  <li class="bullet" id="o593">
    Architecture of the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="594" href="#594" class="lnkocn">594</a></label>
  <li class="bullet" id="o594">
    Distribution of the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="595" href="#595" class="lnkocn">595</a></label>
  <li class="bullet" id="o595">
    Version of the kernel on the live system
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="596" href="#596" class="lnkocn">596</a></label>
  <p class="i0" id="o596">
    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="597" href="#597" class="lnkocn">597</a></label>
  <p class="code" id="o597">
    # lb build 2>&1 | tee build.log<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="598" href="#598" class="lnkocn">598</a></label>
  <p class="i0" id="o598">
    At boot time, <i>live-boot</i> stores a log in <tt>/var/log/live.log</tt> (or <tt>/var/log/live-boot.log</tt>).
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="599" href="#599" class="lnkocn">599</a></label>
  <p class="i0" id="o599">
    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="600" href="#600" class="lnkocn">600</a></label>
  <p class="i0" id="o600">
    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="601" href="#601" class="lnkocn">601</a></label>
  <h5 class="norm" id="o601"><a name="601"></a>
    <a name="13.5" ></a><a name="h13.5" ></a><a name="h13.5">13.5 Isolate the failing case if possible</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="602" href="#602" class="lnkocn">602</a></label>
  <p class="i0" id="o602">
    If possible, isolate the failing case to the smallest possible change that breaks. It is not always easy to do this, so if you can't manage it for your report, don't 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="603" href="#603" class="lnkocn">603</a></label>
  <h5 class="norm" id="o603"><a name="603"></a>
    <a name="13.6" ></a><a name="h13.6" ></a><a name="h13.6">13.6 Use the correct package to report the bug against</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="604" href="#604" class="lnkocn">604</a></label>
  <p class="i0" id="o604">
    Where does the bug appear?
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="605" href="#605" class="lnkocn">605</a></label>
  <h6 class="norm" id="o605"><a name="605"></a>
    <a name="13.6.1" ></a><a name="h13.6.1" ></a><a name="h13.6.1">13.6.1 At build time whilst bootstrapping</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="606" href="#606" class="lnkocn">606</a></label>
  <p class="i0" id="o606">
    <i>live-build</i> first bootstraps a basic Debian system with <tt>debootstrap</tt> or <tt>cdebootstrap</tt>. 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 bootstrapping tool itself.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="607" href="#607" class="lnkocn">607</a></label>
  <p class="i0" id="o607">
    In both cases, this is not a bug in Debian Live, but rather in Debian itself which we can not fix this directly. Please report such a bug against the bootstrapping tool or the failing package.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="608" href="#608" class="lnkocn">608</a></label>
  <h6 class="norm" id="o608"><a name="608"></a>
    <a name="13.6.2" ></a><a name="h13.6.2" ></a><a name="h13.6.2">13.6.2 At build time whilst installing packages</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="609" href="#609" class="lnkocn">609</a></label>
  <p class="i0" id="o609">
    <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="610" href="#610" class="lnkocn">610</a></label>
  <p class="i0" id="o610">
    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 <tt>debootstrap</tt> 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="611" href="#611" class="lnkocn">611</a></label>
  <p class="i0" id="o611">
    Also, if you are using a local mirror and/or any of 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="612" href="#612" class="lnkocn">612</a></label>
  <h6 class="norm" id="o612"><a name="612"></a>
    <a name="13.6.3" ></a><a name="h13.6.3" ></a><a name="h13.6.3">13.6.3 At boot time</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="613" href="#613" class="lnkocn">613</a></label>
  <p class="i0" id="o613">
    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, in Qemu, Virtualbox, VMWare 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="614" href="#614" class="lnkocn">614</a></label>
  <h6 class="norm" id="o614"><a name="614"></a>
    <a name="13.6.4" ></a><a name="h13.6.4" ></a><a name="h13.6.4">13.6.4 At run time</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="615" href="#615" class="lnkocn">615</a></label>
  <p class="i0" id="o615">
    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="616" href="#616" class="lnkocn">616</a></label>
  <h5 class="norm" id="o616"><a name="616"></a>
    <a name="13.7" ></a><a name="h13.7" ></a><a name="h13.7">13.7 Do the research</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="617" href="#617" class="lnkocn">617</a></label>
  <p class="i0" id="o617">
    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="618" href="#618" class="lnkocn">618</a></label>
  <p class="i0" id="o618">
    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="619" href="#619" class="lnkocn">619</a></label>
  <p class="i0" id="o619">
    In addition, you should check the current bug lists for <i>live-build</i>, <i>live-boot</i>, and <i>live-config</i> to see whether something similar has been reported already.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="620" href="#620" class="lnkocn">620</a></label>
  <h5 class="norm" id="o620"><a name="620"></a>
    <a name="13.8" ></a><a name="h13.8" ></a><a name="h13.8">13.8 Where to report bugs</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="621" href="#621" class="lnkocn">621</a></label>
  <p class="i0" id="o621">
    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="622" href="#622" class="lnkocn">622</a></label>
  <p class="i0" id="o622">
    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 send a message to the mailing list and we will help you to figure it out.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="623" href="#623" class="lnkocn">623</a></label>
  <p class="i0" id="o623">
    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="624" href="#624" class="lnkocn">624</a></label>
  <h4 class="norm" id="o624"><a name="624"></a>
    <a name="h14" ></a><a name="coding_style" ></a><a name="coding-style" ></a><a name="hcoding-style">14. Coding Style</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="625" href="#625" class="lnkocn">625</a></label>
  <p class="i0" id="o625">
    This chapter documents the coding style used in <i>live-boot</i> and others.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="626" href="#626" class="lnkocn">626</a></label>
  <h5 class="norm" id="o626"><a name="626"></a>
    <a name="14.1" ></a><a name="h14.1" ></a><a name="h14.1">14.1 Compatibility</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="627" href="#627" class="lnkocn">627</a></label>
  <li class="bullet" id="o627">
    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="628" href="#628" class="lnkocn">628</a></label>
  <li class="bullet" id="o628">
    Only use the POSIX subset - for example, use $(foo) over `foo`.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="629" href="#629" class="lnkocn">629</a></label>
  <li class="bullet" id="o629">
    You can check your scripts with 'sh -n' and 'checkbashisms'.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="630" href="#630" class="lnkocn">630</a></label>
  <h5 class="norm" id="o630"><a name="630"></a>
    <a name="14.2" ></a><a name="h14.2" ></a><a name="h14.2">14.2 Indenting</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="631" href="#631" class="lnkocn">631</a></label>
  <li class="bullet" id="o631">
    Always use tabs over spaces.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="632" href="#632" class="lnkocn">632</a></label>
  <h5 class="norm" id="o632"><a name="632"></a>
    <a name="14.3" ></a><a name="h14.3" ></a><a name="h14.3">14.3 Wrapping</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="633" href="#633" class="lnkocn">633</a></label>
  <li class="bullet" id="o633">
    Generally, lines are 80 chars at maximum.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="634" href="#634" class="lnkocn">634</a></label>
  <li class="bullet" id="o634">
    Use the "Linux style" of line breaks:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="635" href="#635" class="lnkocn">635</a></label>
  <p class="i0" id="o635">
    Bad:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="636" href="#636" class="lnkocn">636</a></label>
  <p class="code" id="o636">
    if foo; then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bar<br />
fi<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="637" href="#637" class="lnkocn">637</a></label>
  <p class="i0" id="o637">
    Good:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="638" href="#638" class="lnkocn">638</a></label>
  <p class="code" id="o638">
    if foo<br />
then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bar<br />
fi<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="639" href="#639" class="lnkocn">639</a></label>
  <li class="bullet" id="o639">
    The same holds for functions:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="640" href="#640" class="lnkocn">640</a></label>
  <p class="i0" id="o640">
    Bad:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="641" href="#641" class="lnkocn">641</a></label>
  <p class="code" id="o641">
    foo () {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bar<br />
}<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="642" href="#642" class="lnkocn">642</a></label>
  <p class="i0" id="o642">
    Good:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="643" href="#643" class="lnkocn">643</a></label>
  <p class="code" id="o643">
    foo ()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bar<br />
}<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="644" href="#644" class="lnkocn">644</a></label>
  <h5 class="norm" id="o644"><a name="644"></a>
    <a name="14.4" ></a><a name="h14.4" ></a><a name="h14.4">14.4 Variables</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="645" href="#645" class="lnkocn">645</a></label>
  <li class="bullet" id="o645">
    Variables are always in capital letters.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="646" href="#646" class="lnkocn">646</a></label>
  <li class="bullet" id="o646">
    Variables that used in <tt>lb config</tt> always start with <tt>LB_</tt> prefix.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="647" href="#647" class="lnkocn">647</a></label>
  <li class="bullet" id="o647">
    Internal temporary variables in <i>live-build</i> should start with the <tt>&#095;LB_</tt> prefix.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="648" href="#648" class="lnkocn">648</a></label>
  <li class="bullet" id="o648">
    Local variables start with <i>live-build</i> <tt>&#095;&#095;LB_</tt> prefix.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="649" href="#649" class="lnkocn">649</a></label>
  <li class="bullet" id="o649">
    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="650" href="#650" class="lnkocn">650</a></label>
  <li class="bullet" id="o650">
    All other variables in <i>live-config</i> start with <tt>_</tt> prefix.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="651" href="#651" class="lnkocn">651</a></label>
  <li class="bullet" id="o651">
    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="652" href="#652" class="lnkocn">652</a></label>
  <li class="bullet" id="o652">
    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="653" href="#653" class="lnkocn">653</a></label>
  <li class="bullet" id="o653">
    For consistency reasons, always use quotes when assigning values to variables:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="654" href="#654" class="lnkocn">654</a></label>
  <p class="i0" id="o654">
    Bad:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="655" href="#655" class="lnkocn">655</a></label>
  <p class="code" id="o655">
    FOO=bar<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="656" href="#656" class="lnkocn">656</a></label>
  <p class="i0" id="o656">
    Good:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="657" href="#657" class="lnkocn">657</a></label>
  <p class="code" id="o657">
    FOO="bar"<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="658" href="#658" class="lnkocn">658</a></label>
  <li class="bullet" id="o658">
    If multiple variables are used, quote the full expression:
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="659" href="#659" class="lnkocn">659</a></label>
  <p class="i0" id="o659">
    Bad:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="660" href="#660" class="lnkocn">660</a></label>
  <p class="code" id="o660">
    if [ -f "${FOO}"/foo/"${BAR}"/bar ]<br />
then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foobar<br />
fi<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="661" href="#661" class="lnkocn">661</a></label>
  <p class="i0" id="o661">
    Good:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="662" href="#662" class="lnkocn">662</a></label>
  <p class="code" id="o662">
    if [ -f "${FOO}/foo/${BAR}/bar" ]<br />
then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foobar<br />
fi<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="663" href="#663" class="lnkocn">663</a></label>
  <h5 class="norm" id="o663"><a name="663"></a>
    <a name="14.5" ></a><a name="h14.5" ></a><a name="h14.5">14.5 Miscellaneous</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="664" href="#664" class="lnkocn">664</a></label>
  <li class="bullet" id="o664">
    Use "<tt>|</tt>" (without the surround quotes) as a seperator in calls to sed, e.g. "<tt>sed -e 's|foo|bar|'</tt>" (without "").
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="665" href="#665" class="lnkocn">665</a></label>
  <li class="bullet" id="o665">
    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="666" href="#666" class="lnkocn">666</a></label>
  <li class="bullet" id="o666">
    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="667" href="#667" class="lnkocn">667</a></label>
  <h4 class="norm" id="o667"><a name="667"></a>
    <a name="h15" ></a><a name="procedures" ></a><a name="hprocedures">15. Procedures</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="668" href="#668" class="lnkocn">668</a></label>
  <p class="i0" id="o668">
    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="669" href="#669" class="lnkocn">669</a></label>
  <h5 class="norm" id="o669"><a name="669"></a>
    <a name="15.1" ></a><a name="h15.1" ></a><a name="h15.1">15.1 Udeb Uploads</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="670" href="#670" class="lnkocn">670</a></label>
  <p class="i0" id="o670">
    Before commiting releases of a udeb in d-i svn, one has to call:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="671" href="#671" class="lnkocn">671</a></label>
  <p class="code" id="o671">
    $ ../../scripts/l10n/output-l10n-changes . -d<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="672" href="#672" class="lnkocn">672</a></label>
  <h5 class="norm" id="o672"><a name="672"></a>
    <a name="15.2" ></a><a name="h15.2" ></a><a name="h15.2">15.2 Major Releases</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="673" href="#673" class="lnkocn">673</a></label>
  <p class="i0" id="o673">
    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="674" href="#674" class="lnkocn">674</a></label>
  <li class="bullet" id="o674">
    A mirror containing the released versions for the debian, debian-security and debian-volatile archive which the debian-live buildd can access.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="675" href="#675" class="lnkocn">675</a></label>
  <li class="bullet" id="o675">
    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="676" href="#676" class="lnkocn">676</a></label>
  <li class="bullet" id="o676">
    The packagelists need to have been updated.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="677" href="#677" class="lnkocn">677</a></label>
  <li class="bullet" id="o677">
    The data from debian-cd needs to be synced (udeb exclude lists).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="678" href="#678" class="lnkocn">678</a></label>
  <li class="bullet" id="o678">
    The includes from debian-cd needs to be synced (README.*, doc/*, etc.).
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="679" href="#679" class="lnkocn">679</a></label>
  <li class="bullet" id="o679">
    Images are built and mirrored on cdimage.debian.org.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="680" href="#680" class="lnkocn">680</a></label>
  <h5 class="norm" id="o680"><a name="680"></a>
    <a name="15.3" ></a><a name="h15.3" ></a><a name="h15.3">15.3 Point Releases</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="681" href="#681" class="lnkocn">681</a></label>
  <li class="bullet" id="o681">
    Again, we need updated mirror of debian, debian-security and debian-volatile.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="682" href="#682" class="lnkocn">682</a></label>
  <li class="bullet" id="o682">
    Images are built and mirrored on cdimage.debian.org.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="683" href="#683" class="lnkocn">683</a></label>
  <li class="bullet" id="o683">
    Send announcement mail.
  </li>
</div>

<div class="substance">
  <label class="ocn"><a name="684" href="#684" class="lnkocn">684</a></label>
  <h6 class="norm" id="o684"><a name="684"></a>
    <a name="15.3.1" ></a><a name="h15.3.1" ></a><a name="h15.3.1">15.3.1 Point release announcement template</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="685" href="#685" class="lnkocn">685</a></label>
  <p class="i0" id="o685">
    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="686" href="#686" class="lnkocn">686</a></label>
  <p class="code" id="o686">
    $ sed \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-e 's|%major%|5.0|g' \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-e 's|%minor%|5.0.2|g' \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-e 's|%codename%|lenny|g' \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-e 's|%release_mail%|2009/msg00007.html|g'<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="687" href="#687" class="lnkocn">687</a></label>
  <p class="i0" id="o687">
    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="688" href="#688" class="lnkocn">688</a></label>
  <p class="code" id="o688">
    Debian Live images for Debian GNU/Linux %major% updated<br /><br />
The Debian Live project is pleased to announce the availability of<br />
updated Live images for its stable distribution Debian GNU/Linux %major%<br />
(codename "%codename%").<br /><br />
The images are available for download at:<br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<http://cdimage.debian.org/cdimage/release/current-live/><br /> <br />
This update incorporates the changes made in the %minor% point release,<br />
which adds corrections for security problems to the stable release<br />
along with a few adjustments for serious problems. A full list of the<br />
changes may be viewed at:<br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<http://lists.debian.org/debian-announce/%release_mail%><br /> <br />
It also includes the following Live-specific changes:<br /><br />
&nbsp;&nbsp;* [INSERT LIVE-SPECIFIC CHANGE HERE]<br />
&nbsp;&nbsp;* [INSERT LIVE-SPECIFIC CHANGE HERE]<br />
&nbsp;&nbsp;* [LARGER ISSUES MAY DESERVE THEIR OWN SECTION]<br /><br />
URLs<br />
----<br /><br />
Download location of updated images:<br /><br />
&nbsp;&nbsp;&nbsp;<http://cdimage.debian.org/cdimage/release/current-live/><br /> <br />
Debian Live project homepage:<br /><br />
&nbsp;&nbsp;&nbsp;<http://live.debian.net/><br /> <br />
The current stable distribution:<br /><br />
&nbsp;&nbsp;&nbsp;<http://ftp.debian.org/debian/dists/stable><br /> <br />
stable distribution information (release notes, errata etc.):<br /><br />
&nbsp;&nbsp;&nbsp;<http://www.debian.org/releases/stable/><br /> <br />
Security announcements and information:<br /><br />
&nbsp;&nbsp;&nbsp;<http://www.debian.org/security/><br /> <br />
About Debian<br />
-------------<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 GNU/Linux.<br /><br />
About Debian Live<br />
-----------------<br /><br />
Debian Live is an official sub-project of Debian which produces Debian<br />
systems that do not require a classical installer. Images are available<br />
for CD/DVD discs, USB sticks and PXE netbooting as well as a bare<br />
filesystem images for booting directly from the internet.<br /><br />
Contact Information<br />
-------------------<br /><br />
For further information, please visit the Debian Live web pages at<br />
<http://live.debian.net/> or alternatively send mail to<br />
<debian-live@lists.debian.org>.<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="689" href="#689" class="lnkocn">689</a></label>
  <h2 class="norm" id="o689"><a name="689"></a>
    <a name="h">Examples</a>
  </h2>
</div>

<div class="substance">
  <label class="ocn"><a name="690" href="#690" class="lnkocn">690</a></label>
  <h4 class="norm" id="o690"><a name="690"></a>
    <a name="h16" ></a><a name="examples" ></a><a name="hexamples">16. Examples</a>
  </h4>
</div>

<div class="substance">
  <label class="ocn"><a name="691" href="#691" class="lnkocn">691</a></label>
  <p class="i0" id="o691">
    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="692" href="#692" class="lnkocn">692</a></label>
  <h5 class="norm" id="o692"><a name="692"></a>
    <a name="h16.1" ></a><a name="using-the-examples" ></a><a name="husing-the-examples">16.1 Using the examples</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="693" href="#693" class="lnkocn">693</a></label>
  <p class="i0" id="o693">
    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="694" href="#694" class="lnkocn">694</a></label>
  <p class="i0" id="o694">
    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_PARENT_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="695" href="#695" class="lnkocn">695</a></label>
  <p class="code" id="o695">
    LB_PARENT_MIRROR_BOOTSTRAP="http://mirror/debian" <br />
LB_PARENT_MIRROR_CHROOT_SECURITY="http://mirror/debian-security" <br />
LB_PARENT_MIRROR_CHROOT_BACKPORTS="http://mirror/debian-updates"<br /> <br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="696" href="#696" class="lnkocn">696</a></label>
  <h5 class="norm" id="o696"><a name="696"></a>
    <a name="h16.2" ></a><a name="tutorial-1" ></a><a name="htutorial-1">16.2 Tutorial 1: A standard image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="697" href="#697" class="lnkocn">697</a></label>
  <p class="i0" id="o697">
    <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="698" href="#698" class="lnkocn">698</a></label>
  <p class="i0" id="o698">
    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="699" href="#699" class="lnkocn">699</a></label>
  <p class="i0" id="o699">
    You can't get much simpler than this:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="700" href="#700" class="lnkocn">700</a></label>
  <p class="code" id="o700">
    $ mkdir tutorial1 ; cd tutorial1 ; lb config<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">
    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="702" href="#702" class="lnkocn">702</a></label>
  <p class="i0" id="o702">
    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="703" href="#703" class="lnkocn">703</a></label>
  <p class="code" id="o703">
    # lb build 2>&1 | tee binary.log<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="704" href="#704" class="lnkocn">704</a></label>
  <p class="i0" id="o704">
    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-ose</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="705" href="#705" class="lnkocn">705</a></label>
  <h5 class="norm" id="o705"><a name="705"></a>
    <a name="h16.3" ></a><a name="tutorial-2" ></a><a name="htutorial-2">16.3 Tutorial 2: A web browser utility</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="706" href="#706" class="lnkocn">706</a></label>
  <p class="i0" id="o706">
    <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="707" href="#707" class="lnkocn">707</a></label>
  <p class="i0" id="o707">
    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="708" href="#708" class="lnkocn">708</a></label>
  <p class="code" id="o708">
    $ mkdir tutorial2<br />
$ cd tutorial2<br />
$ lb config -p lxde<br />
$ echo iceweasel >> config/package-lists/my.list.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="709" href="#709" class="lnkocn">709</a></label>
  <p class="i0" id="o709">
    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="710" href="#710" class="lnkocn">710</a></label>
  <p class="i0" id="o710">
    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="711" href="#711" class="lnkocn">711</a></label>
  <p class="code" id="o711">
    # lb build 2>&1 | tee binary.log<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="712" href="#712" class="lnkocn">712</a></label>
  <p class="i0" id="o712">
    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="713" href="#713" class="lnkocn">713</a></label>
  <h5 class="norm" id="o713"><a name="713"></a>
    <a name="h16.4" ></a><a name="tutorial-3" ></a><a name="htutorial-3">16.4 Tutorial 3: A personalized image</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="714" href="#714" class="lnkocn">714</a></label>
  <p class="i0" id="o714">
    <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="715" href="#715" class="lnkocn">715</a></label>
  <p class="i0" id="o715">
    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="716" href="#716" class="lnkocn">716</a></label>
  <h6 class="norm" id="o716"><a name="716"></a>
    <a name="16.4.1" ></a><a name="h16.4.1" ></a><a name="h16.4.1">16.4.1 First revision</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="717" href="#717" class="lnkocn">717</a></label>
  <p class="code" id="o717">
    $ mkdir -p tutorial3/auto<br />
$ cp /usr/share/live/build/examples/auto/* tutorial3/auto/<br />
$ cd tutorial3<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="718" href="#718" class="lnkocn">718</a></label>
  <p class="i0" id="o718">
    Edit <tt>auto/config</tt> to read as follows:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="719" href="#719" class="lnkocn">719</a></label>
  <p class="code" id="o719">
    #!/bin/sh<br /><br />
lb config noauto \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--architecture i386 \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--linux-flavours 686-pae \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--package-lists lxde \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"${@}"<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">
    Now populate your local package list:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="721" href="#721" class="lnkocn">721</a></label>
  <p class="code" id="o721">
    $ echo "iceweasel xchat" >> config/package-lists/my.list.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="722" href="#722" class="lnkocn">722</a></label>
  <p class="i0" id="o722">
    First, <tt>--architecture 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've chosen the <tt>lxde</tt> package list to give us a minimal desktop. And finally, we have added two initial favourite packages: <tt>iceweasel</tt> and <tt>xchat</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="723" href="#723" class="lnkocn">723</a></label>
  <p class="i0" id="o723">
    Now, build the image:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="725" href="#725" class="lnkocn">725</a></label>
  <p class="i0" id="o725">
    Note that unlike in the first two tutorials, we no longer have to type <tt>2>&1 | tee binary.log</tt> as that is now included in <tt>auto/build</tt>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="726" href="#726" class="lnkocn">726</a></label>
  <p class="i0" id="o726">
    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="727" href="#727" class="lnkocn">727</a></label>
  <p class="code" id="o727">
    $ git init<br />
$ git add auto<br />
$ git commit -a -m "Initial import."<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="728" href="#728" class="lnkocn">728</a></label>
  <h6 class="norm" id="o728"><a name="728"></a>
    <a name="16.4.2" ></a><a name="h16.4.2" ></a><a name="h16.4.2">16.4.2 Second revision</a>
  </h6>
</div>

<div class="substance">
  <label class="ocn"><a name="729" href="#729" class="lnkocn">729</a></label>
  <p class="i0" id="o729">
    In this revision, we're going to clean up from the first build, add the <tt>vlc</tt> package to our configuration, rebuild, test and commit.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="730" href="#730" class="lnkocn">730</a></label>
  <p class="i0" id="o730">
    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="731" href="#731" class="lnkocn">731</a></label>
  <p class="code" id="o731">
    # lb clean<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="732" href="#732" class="lnkocn">732</a></label>
  <p class="i0" id="o732">
    Now append the <tt>vlc</tt> 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="733" href="#733" class="lnkocn">733</a></label>
  <p class="code" id="o733">
    $ echo vlc >> config/package-lists/my.list.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="734" href="#734" class="lnkocn">734</a></label>
  <p class="i0" id="o734">
    Build again:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="736" href="#736" class="lnkocn">736</a></label>
  <p class="i0" id="o736">
    Test, and when you're satisfied, commit the next revision:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="737" href="#737" class="lnkocn">737</a></label>
  <p class="code" id="o737">
    $ git commit -a -m "Adding vlc media player."<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="738" href="#738" class="lnkocn">738</a></label>
  <p class="i0" id="o738">
    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="739" href="#739" class="lnkocn">739</a></label>
  <p class="i0" id="o739">
    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="740" href="#740" class="lnkocn">740</a></label>
  <h5 class="norm" id="o740"><a name="740"></a>
    <a name="16.5" ></a><a name="h16.5" ></a><a name="h16.5">16.5 A VNC Kiosk Client</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="741" href="#741" class="lnkocn">741</a></label>
  <p class="i0" id="o741">
    <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="742" href="#742" class="lnkocn">742</a></label>
  <p class="i0" id="o742">
    Make a build directory and create a skeletal configuration in it built around the standard-x11 list, including <tt>gdm3</tt>, <tt>metacity</tt> and <tt>xvnc4viewer</tt>, disabling recommends to make a minimal system:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="743" href="#743" class="lnkocn">743</a></label>
  <p class="code" id="o743">
    $ mkdir vnc_kiosk_client<br />
$ cd vnc_kiosk_client<br />
$ lb config -a i386 -k 686-pae -p standard-x11 \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--apt-recommends false<br />
$ echo "gdm3 metacity xvnc4viewer" >> config/package-lists/my.list.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="744" href="#744" class="lnkocn">744</a></label>
  <p class="i0" id="o744">
    Create the directory <tt>/etc/skel</tt> and put a custom <tt>.xsession</tt> in it for the default user that will launch metacity and start xvncviewer, 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="745" href="#745" class="lnkocn">745</a></label>
  <p class="code" id="o745">
    $ mkdir -p config/includes.chroot/etc/skel<br />
$ cat > config/includes.chroot/etc/skel/.xsession <<END<br />
#!/bin/sh<br /><br />
/usr/bin/metacity &<br />
/usr/bin/xvncviewer 192.168.1.2:1<br /><br />
exit<br />
END<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="746" href="#746" class="lnkocn">746</a></label>
  <p class="i0" id="o746">
    Build the image:
  </p>
</div>

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

<div class="substance">
  <label class="ocn"><a name="748" href="#748" class="lnkocn">748</a></label>
  <p class="i0" id="o748">
    Enjoy.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="749" href="#749" class="lnkocn">749</a></label>
  <h5 class="norm" id="o749"><a name="749"></a>
    <a name="16.6" ></a><a name="h16.6" ></a><a name="h16.6">16.6 A base image for a 128M USB key</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="750" href="#750" class="lnkocn">750</a></label>
  <p class="i0" id="o750">
    <b>Use case:</b> Create a standard image with some components removed in order to fit on a 128M USB key with space left over to use as you see fit.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="751" href="#751" class="lnkocn">751</a></label>
  <p class="i0" id="o751">
    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 128M media size, but without doing anything to destroy integrity of the packages contained within, such as the purging of locale data via the <tt>localepurge</tt> package, or other such "intrusive" optimizations. Of particular note, you should not use <tt>--bootstrap-flavour minimal</tt> unless you really know what you're doing, as omitting priority <tt>important</tt> packages will most likely produce a broken live system.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="752" href="#752" class="lnkocn">752</a></label>
  <p class="code" id="o752">
    $ lb config -k 486 -p minimal --apt-indices false \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--memtest none --apt-recommends false --includes none<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="753" href="#753" class="lnkocn">753</a></label>
  <p class="i0" id="o753">
    Now, build the image in the usual way:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="754" href="#754" class="lnkocn">754</a></label>
  <p class="code" id="o754">
    # lb build 2>&1 | tee binary.log<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="755" href="#755" class="lnkocn">755</a></label>
  <p class="i0" id="o755">
    On the author's system at time of writing, the above configuration produced a 78Mbyte image. This compares favourably with the 166Mbyte image produced by the default configuration in  <a href="#tutorial-1">Tutorial 1</a>.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="756" href="#756" class="lnkocn">756</a></label>
  <p class="i0" id="o756">
    The biggest space-saver here, compared to building a standard 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 <tt>apt-get update</tt> before using apt in the live system. Choosing the <tt>minimal</tt> package list leaves out the large <tt>locales</tt> package and associated utilities. 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, such as <tt>firmware-linux-free</tt> which may be needed to support certain hardware. The remaining options shave off additional small amounts of space. It's up to you to decide if the functionality that is sacrificed with each optimization is worth the loss in functionality.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="757" href="#757" class="lnkocn">757</a></label>
  <h5 class="norm" id="o757"><a name="757"></a>
    <a name="16.7" ></a><a name="h16.7" ></a><a name="h16.7">16.7 A localized KDE desktop and installer</a>
  </h5>
</div>

<div class="substance">
  <label class="ocn"><a name="758" href="#758" class="lnkocn">758</a></label>
  <p class="i0" id="o758">
    <b>Use case:</b> Create a KDE desktop image, localized for Brazilian Portuguese and including an installer.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="759" href="#759" class="lnkocn">759</a></label>
  <p class="i0" id="o759">
    We want to make an iso-hybrid image for i386 architecture using our preferred desktop, in this case KDE, containing all of the same packages that would be installed by the standard Debian installer for KDE.
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="760" href="#760" class="lnkocn">760</a></label>
  <p class="i0" id="o760">
    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="761" href="#761" class="lnkocn">761</a></label>
  <p class="code" id="o761">
    # apt-get install dctrl-tools tasksel-data<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="762" href="#762" class="lnkocn">762</a></label>
  <p class="i0" id="o762">
    Now we can search for the appropriate tasks, first with:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="763" href="#763" class="lnkocn">763</a></label>
  <p class="code" id="o763">
    $ grep-dctrl -FTest-lang pt_BR /usr/share/tasksel/descs/debian-tasks.desc -sTask<br />
Task: brazilian-portuguese<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">
    By this command, we discover the task is called, plainly enough, brazilian-portuguese. Now to find the related tasks:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="765" href="#765" class="lnkocn">765</a></label>
  <p class="code" id="o765">
    $ grep-dctrl -FEnhances brazilian-portuguese /usr/share/tasksel/descs/debian-tasks.desc -sTask<br />
Task: brazilian-portuguese-desktop<br />
Task: brazilian-portuguese-kde-desktop<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="766" href="#766" class="lnkocn">766</a></label>
  <p class="i0" id="o766">
    At boot time we will generate the pt_BR.UTF-8 locale and select the pt-latin1 keyboard layout. We will also need to preseed our desktop choice, "kde" so that tasksel will install the correct desktop task, as it differs from the default (see  <a href="#desktop-and-language-tasks">Desktop and languages tasks</a>).  Now let's put the pieces together:
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="767" href="#767" class="lnkocn">767</a></label>
  <p class="code" id="o767">
    $ mkdir live-pt_BR-kde<br />
$ cd live-pt_BR-kde<br />
$ lb config \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-a i386 \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-k 486 \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--bootappend-live "locales=pt_BR.UTF-8 keyboard-layouts=pt-latin1" \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--debian-installer live<br />
$ echo kde-desktop brazilian-portuguese brazilian-portuguese-desktop \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;brazilian-portuguese-kde-desktop >> config/task-lists/my.list.chroot<br />
$ echo debian-installer-launcher >> config/package-lists/my.list.chroot<br />
$ echo tasksel tasksel/desktop multiselect kde >> config/preseed/my.preseed.chroot<br /><br />
  </p>
</div>

<div class="substance">
  <label class="ocn"><a name="768" href="#768" class="lnkocn">768</a></label>
  <p class="i0" id="o768">
    Note that we have included the <tt>debian-installer-launcher</tt> 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=""><a name="">&nbsp;</a></label>
  <p class="norm" id="o">
    <hr /><br />
  </p>
</div>

<div class="substance">
  <label class=""><a name="">&nbsp;</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">
<table summary="table of contents scroll navigation band" id="toc" width="100%" bgcolor="#ffffff">
<tr><td width="20%">
  <table summary="band" border="0" cellpadding="3" cellspacing="0"><tr><td align="left" bgcolor="#ffffff"><a href="http://live.debian.net/" target="_top"><img border="0" src="../_sisu/image/debian_home.png" alt="Debian --&gt;" /></a></td></tr>
</table>
</td><td align="center" width="60%">
  <table summary="toc segment and scroll with pdf" border="0" cellpadding="3" cellspacing="0">
<tr>
  <td align="center" bgcolor="#ffffff">
  <a href="sisu_manifest.en.html" target="_top" >
      <font face="verdana, arial, georgia, tahoma, sans-serif, helvetica, times, roman" size="2">
    [&nbsp;document&nbsp;manifest&nbsp;]
  </font> 
  </a>
</td>
  
</tr></table>
</td>

<td width="20%">
  &nbsp;
</td></tr>
</table>
<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>
</div>
</div>

</body>
</html>