Live manual

Live Systems

<< previous toc next >>

Manuale di Live Systems

Installazione

3. Installazione

3.1 Requisiti

Building live system images has very few system requirements:

Si noti che usare Debian o una distribuzione derivata Debian non è richiesto - live-build funzionerà sostanzialmente su qualsiasi distribuzione che soddisfi i requisiti di cui sopra.

3.2 Installare live-build

Si può installare live-build in diversi modi:

Se si sta usando Debian, il metodo raccomandato è di installare live-build attraverso il repository Debian.

3.2.1 Dal repository Debian

Installare live-build come qualsiasi altro pacchetto:

# apt-get install live-build

3.2.2 Da sorgenti

live-build è sviluppato usando il sistema di controllo versione Git. Sui sistemi basati su Debian è fornito dal pacchetto git. Per scaricare il codice aggiornato, eseguire:

$ git clone git://http://anonscm.debian.org/git/debian-live/live-build.git

È possibile costruirsi ed installarsi il proprio pacchetto Debian eseguendo:

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

Si installino ora i file .deb appena generati ai quali si è interessati, ad esempio:

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

Si può anche installare live-build direttamente sul proprio sistema eseguendo:

# make install

e disinstallarlo con:

# make uninstall

3.2.3 Da "istantanee"

Se non si desidera generare o installare live-build da sorgenti, è possibile usare le istantanee. Sono costruite automaticamente dall'ultima versione presente su Git e disponibili su ‹http://debian-live.alioth.debian.org/debian/›.

3.3 Installare 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 Dal repository Debian

Sia live-boot che live-config sono disponibili dai repository Debian come per l' installazione di live-build.

3.3.2 Da sorgenti

Per utilizzare i sorgenti più recenti da Git si può seguire il procedimento seguente. Assicurarsi di conoscere i termini menzionati nel Glossario.

$ git clone git://http://anonscm.debian.org/git/debian-live/live-boot.git
$ git clone git://http://anonscm.debian.org/git/debian-live/live-config.git

Consultare la pagine man di live-boot e live-config per i dettagli sulla personalizzazione se questa è il motivo per compilare questi pacchetti dai sorgenti.

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

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

3.3.3 Da "istantanee"

You can let live-build automatically use the latest snapshots of live-boot and live-config by configuring the package repository on debian-live.alioth.debian.org as a third-party repository in your live-build configuration directory.


<< previous toc next >>