Debian -->
[ document manifest ]
<< previous TOC next >>
< ^ >

Debian Live Handbuch

Benutzer

3. Installation

3.1 Requirements

Building Debian Live images has very few system requirements:

  • Super user (root) access
  • An up-to-date version of live-build
  • A POSIX-compliant shell, such as bash or dash.
  • debootstrap or cdebootstrap
  • Linux 2.6.x
  • Note that using Debian or a Debian-derived distribution is not required - live-build will run on almost any distribution with the above requirements.

    3.2 Installing live-build

    You can install live-build in a number of different ways:

  • From the Debian repository
  • From source
  • From snapshots
  • If you are using Debian, the recommended way is to install live-build via the Debian repository.

    3.2.1 From the Debian repository

    Simply install live-build like any other package:

    # apt-get install live-build

    or

    # aptitude install live-build

    3.2.2 From source

    live-build is developed using the Git version control system. On Debian based systems, this is provided by the git package. To check out the latest code, execute:

    $ git clone git://live.debian.net/git/live-build.git

    You can build and install your own Debian package by executing:

    $ cd live-build
    $ dpkg-buildpackage -rfakeroot -b -uc -us
    $ cd ..

    Now install whichever of the freshly built .deb files you were interested in, e.g.

    # dpkg -i live-build_2.0.8-1_all.deb

    You can also install live-build directly to your system by executing:

    # make install

    and uninstall it with:

    # make uninstall

    3.2.3 From 'snapshots'

    If you do not wish to build or install live-build from source, you can use snapshots. These are built automatically from the latest version in Git and are available on ‹http://live.debian.net/debian/›.

    3.3 live-boot and live-config

    Note: You do not need to install live-boot or live-config 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 live-boot-doc and live-config-doc packages separately.

    3.3.1 From the Debian repository

    Both live-boot and live-config are available from the Debian repository as per Installing live-build.

    3.3.2 From source

    To use the latest source from git, you can follow the process below. Please ensure you are familiar with the terms mentioned in Terms.

  • Checkout the live-boot and live-config source
  • $ git clone git://live.debian.net/git/live-boot.git
    $ git clone git://live.debian.net/git/live-config.git

    Consult the live-boot and live-config man pages for details on customizing if that is your reason for building these packages from source.

  • Build live-boot and live-config .deb files
  • You must build either on your target distribution or in a chroot containing your target platform: this means if your target is Wheezy then you should build against Wheezy.

    Use a personal builder such as pbuilder or sbuild if you need to build live-boot for a target distribution that differs from your build system. For example, for Wheezy live images, build live-boot in a Wheezy chroot. If your target distribution happens to match your build system distribution, you may build directly on the build system using dpkg-buildpackage (provided by the dpkg-dev package):

    $ cd live-boot
    $ dpkg-buildpackage -b -uc -us
    $ cd ../live-config
    $ dpkg-buildpackage -b -uc -us

  • Use all generated .deb files
  • As live-boot and live-config are installed by live-build 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 Customizing package installation for more information. You should pay particular attention to Additional repositories.

    3.3.3 From 'snapshots'

    You can let live-build automatically use the latest snapshots of live-boot and live-config by configuring a third-party repository in your live-build configuration directory. Assuming you have already created a configuration tree in the current directory with lb config:

    $ lb config --archives live.debian.net


    [ document manifest ]
    << previous TOC next >>
    < ^ >