1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4
<!ENTITY % commondata SYSTEM "common.ent" > %commondata;
6
<chapter id="installation">
7
<title>Installation</title>
10
<title>Prérequis</title>
12
<para>Construire des systèmes Debian Live ne nécessite que très peu de prérequis:</para>
15
<listitem><para>Un accès super-utilisateur (root)</para></listitem>
16
<listitem><para>Une version à jour de &live-helper;</para></listitem>
17
<listitem><para>Un shell compatible POSIX comme <command>bash</command> ou
18
<command>dash</command>.</para></listitem>
19
<listitem><para><command>debootstrap</command> ou <command>cdebootstrap</command></para></listitem>
20
<listitem><para>Linux 2.6.x</para></listitem>
23
<para>Noter qu'il n'est pas nécessaire d'utiliser Debian ou une distribution
24
dérivée de Debian.&live-helper;s'exécutera su presque tous les systèmes
25
d'exploitation remplissant les conditions ci-dessus.</para>
30
<title>Installer &live-helper;</title>
32
<para>Vous pouvez installer &live-helper; de manière très variées:</para>
35
<listitem><para>Depuis le dépot Debian</para></listitem>
36
<listitem><para>Depuis les sources</para></listitem>
37
<listitem><para>Depuis les snapshots</para></listitem>
38
<listitem><para>Depuis backports.org</para></listitem>
41
<para>Si vous utilisez &lenny; ou &sid; il est conseillé d'installer &live-helper;
42
depuis le dépot Debian.</para>
45
<title>Depuis le dépot Debian</title>
47
<para>Installer simplement &live-helper; comme n'importe quel autre paquet:</para>
48
<screen># apt-get install live-helper</screen>
50
<screen># aptitude install live-helper</screen>
55
<title>Depuis les sources</title>
57
<para>&live-helper; est développé avec le système de contrôle de version Git. Sur
58
les systèmes Debian, il est fourni par le paquet
59
<command>git-core</command>. Pour rapatrier la dernière version, exécuter:</para>
60
<screen>$ git clone git://live.debian.net/git/live-helper.git</screen>
61
<para>Vous pouvez construire et installer votre propre paquet Debian en exécutant:</para>
64
$ dpkg-buildpackage -rfakeroot -b -uc -us
66
# dpkg -i live-helper*.deb
68
<para>Vous pouvez aussi utiliser une version locale de &live-helper; sans
70
<screen># live-helper/helpers/lh_local</screen>
71
<para>Subsequent calls to <filename>lh_</filename>-prefixed helpers in that shell
72
environment will then use the version located in the directory you executed
73
<filename>lh_local</filename> from.</para>
74
<para>Vous pouvez aussi installer &live-helper; directement sur votre système en
76
<screen># make install</screen>
81
<title>Depuis les 'snapshots'</title>
82
<para>If you do not wish to build or install &live-helper; from source, you can
83
use snapshots. These are built automatically from the latest version in Git
84
and are available on <ulink
85
url="http://live.debian.net/debian/">http://live.debian.net/debian</ulink>.</para>
89
<title>&live-initramfs;</title>
91
<para><emphasis>N.B. Vous n'êtes pas obligé d'installer &live-initramfs; sur votre
92
système pour créer des systèmes Debian Live personnalisés. Cependant,
93
l'installer ne nuira pas</emphasis></para>
96
<title>Utiliser un &live-initramfs; personnalisé</title>
98
<para>Pour modifer le code vous pouvez suivre la procédure suivante. Assurez-vous,
99
svp, d'être familier avec les définitions mentionnées dans <xref
100
linkend="terms"/>.</para>
104
<para>Rapatrier les sources de &live-initramfs;</para>
105
<screen>$ git clone git://live.debian.net/git/live-initramfs.git</screen>
108
<para>Faites les changements sur votre copie locale</para>
109
<para>Et prenez garde que si vous voulez ajouter votre script pre-init à
110
live-bottom, vous devriez le nommer sans tirets '-', par exemple, appeler le
111
"81nouvelle_fonctionalite" et non "81nouvelle-fonctionalite".</para>
114
<para>Constuire un .deb de &live-initramfs;</para>
115
<para>You must build either on your target distribution or in a chroot containing
116
your target platform: this means if your target is lenny then you should
117
build against lenny. You can use a personal builder such as
118
<command>pbuilder</command> to automate building packages in chroot. To
119
build directly on the target platform, use
120
<command>dpkg-buildpackage</command> (provided by the
121
<command>dpkg-dev</command> package):</para>
124
$ dpkg-buildpackage -rfakeroot -b -uc -us
128
<para>Utiliser le <command>.deb</command> ainsi généré de &live-initramfs;</para>
129
<para>As &live-initramfs; is installed by the build system, installing the package
130
in the host system is not sufficient: you should treat the generated
131
<command>.deb</command> like another custom package. Please see <xref
132
linkend="custom-packages"/> for more information. You should pay particular
133
attention to <xref linkend="custom-packages-apt"/>.</para>
139
<title>Using &live-initramfs; snapshots</title>
141
<para>You can let &live-helper; automatically use the latest snapshot of
142
&live-initramfs; by configuring a third-party repository in your live-system
143
configuration. Assuming you have already created a configuration tree with
144
<command>lh config</command>:</para>
148
<para>Créer une entrée dans le fichier sources.list pour l'étape du chroot:</para>
149
<screen>echo "deb http://live.debian.net/ sid-snapshots main contrib non-free" > config/chroot_sources/debian-live_sid-snapshots.chroot</screen>
152
<para>Create a sources.list entry for the binary stage:</para>
153
<screen>cp config/chroot_sources/debian-live_sid-snapshots.chroot config/chroot_sources/debian-live_sid-snapshots.binary</screen>
156
<para>Fetch the archive signing key:</para>
158
wget http://live.debian.net/debian/project/openpgp/archive-key.asc -O config/chroot_sources/debian-live_sid-snapshots.chroot.gpg
159
cp config/chroot_sources/debian-live_sid-snapshots.chroot.gpg config/chroot_sources/debian-live_sid-snapshots.binary.gpg