Live manual

Debian Live

<< previous toc next >>

Debian Live Manual

Instalação

3. Instalação

3.1 Requisitos

Building live system images has very few system requirements for the host system:

# mount <your_mount_point> -odev,exec,remount

Observe que usar o Debian ou uma distribuição Debian derivada não é necessária - live-build será executado em quase qualquer distribuição com os requisitos acima.

3.2 Instalando live-build

Você pode instalar live-build em um número de caminhos diferentes:

Se você está usando o Debian, O caminho recomendado é instalar via repositório Debian.

3.2.1 Do repositório Debian

Basta instalar live-build como qualquer outro pacote:

# apt-get install live-build

3.2.2 Da fonte

live-build foi desenvolvido usando o sistema de controle de versão Git. Em sistemas baseados em Debian, esta é fornecida pelo pacote git. Para verificar o código mais recente, execute:

$ git clone https://salsa.debian.org/live-team/live-build.git

Você pode construir e instalar seu próprio pacote Debian executando:

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

Agora instale qualquer dos recém construídos arquivos .deb que você estava interessado, por exemplo,

# dpkg -i live-build_4.0-1_all.deb

Você também pode instalar live-build diretamente ao seu sistema executando:

# make install

e o desinstalar com:

# make uninstall

3.3 Instalando live-boot e live-config

Note: You do not need to install live-boot or live-config on your system to create customized 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 Do repositório Debian

Ambos live-boot e live-config estão disponíveis a partir do repositório Debian como Instalação do live-build.

3.3.2 Da fonte

Para usar a última fonte de git, você pode seguir o processo abaixo. Certifique-se de que você está familiarizado com os termos mencionados em Termos.

_ * Consultar as fontes de live-boot e live-config

$ git clone https://salsa.debian.org/live-team/live-boot.git
$ git clone https://salsa.debian.org/live-team/live-config.git

Consulte as páginas do man live-boot e live-config para obter detalhes sobre a personalização, se essa é a sua razão para a construção desses pacotes a partir da fonte.

You must build either on your target distribution or in a chroot containing your target platform: this means if your target is trixie then you should build against trixie.

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 trixie live images, build live-boot in a trixie 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

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. Since your purpose for building from source is likely to test new things over the short term before the official release, follow Installing modified or third-party packages to temporarily include the relevant files in your configuration. In particular, notice that both packages are divided into a generic part, a documentation part and one or more back-ends. Include the generic part, only one back-end matching your configuration, and optionally the documentation. Assuming you are building a live image in the current directory and have generated all .deb files for a single version of both packages in the directory above, these bash commands would copy all of the relevant packages including default back-ends:

$ cp ../live-boot{_,-initramfs-tools,-doc}*.deb  config/packages.chroot/
$ cp ../live-config{_,-sysvinit,-doc}*.deb  config/packages.chroot/


<< previous toc next >>