debian:debian_fabriquer_un_cd_live
no way to compare when less than two revisions
Différences
Ci-dessous, les différences entre deux révisions de la page.
— | debian:debian_fabriquer_un_cd_live [2018/11/17 12:52] (Version actuelle) – créée - modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== CD live ====== | ||
+ | Source de l' | ||
+ | Voir aussi : [[http:// | ||
+ | |||
+ | ===== Présentation ===== | ||
+ | Un LiveCD ou cédérom vivant, permet d' | ||
+ | |||
+ | Un Live-cd ne modifie rien sur la machine sur laquelle il est exécuté, car il ne touche pas au disque dur et à la configuration de la machine hôte. | ||
+ | |||
+ | Les premiers Live-cd on été utilisé par Slackware dès 1995, actuellement la distribution Knoppix est une des plus connue, réalisée à partir de Debian. Plusieures distibution live-cd basées sur Debian existent, tel que Morphix, Mepis, Kanotix (utilisant Sid) ou encore dsl qui ne fait elle, que 50 MB et peut d' | ||
+ | bootcd | ||
+ | |||
+ | **bootcd** est un programme du projet Debian qui permet de dupliquer son système Debian existant sans risques, car il ne touche en rien la configuration actuel. C'est un programme simple d' | ||
+ | |||
+ | **bootcd** va créer une image ISO du système, qui sera ensuite bootable, c'est à dire que l'on pourrat démarrer dessus lors de l' | ||
+ | Installation de bootcd | ||
+ | |||
+ | |||
+ | ===== Installation ===== | ||
+ | En root : | ||
+ | |||
+ | # apt-get install bootcd | ||
+ | |||
+ | ===== Utilisation ===== | ||
+ | |||
+ | |||
+ | ====Configuration de bootcd===== | ||
+ | |||
+ | |||
+ | Toute la configuration de programme ce passe dans le fichier bootcdwrite.conf, | ||
+ | |||
+ | Mais vous ne pouvez pas exclure directement toute le répertoire ou patition, /home, il faut spécifier tous les noms de dossiers que l'on ne veut pas. Pour ce faire il faut modifier la ligne 37 (du fichier original) NOT_TO_CDROM="" | ||
+ | Editer bootcdwrite.conf | ||
+ | |||
+ | En root: | ||
+ | |||
+ | # nano / | ||
+ | |||
+ | |||
+ | Dans un script il y souvent des commentaires, | ||
+ | |||
+ | # | ||
+ | # bootcdwrite.conf | ||
+ | # | ||
+ | # look for man bootcdwrite.conf(5) for more informations | ||
+ | # | ||
+ | | ||
+ | # this path was added as prefix to KERNEL, INITRD, DISABLE_CRON, | ||
+ | # and NOT_TO_RAM, if this are relativ paths (without starting "/" | ||
+ | SRCDISK=/ | ||
+ | | ||
+ | # Define the kernel which is used. Nom du noyau a utiliser | ||
+ | KERNEL=vmlinuz | ||
+ | | ||
+ | # size of each ramdisk ram1 and ram2 (ram1: /dev /etc /home /root /tmp, | ||
+ | # (ram2: /var). La taille de chaque ramdisk. | ||
+ | RAMDISK_SIZE=8192 | ||
+ | | ||
+ | # typ is CD or DVD. Le type de media CD ou DVD | ||
+ | TYP=CD | ||
+ | | ||
+ | #specify one or more CD devices to boot from, first is default | ||
+ | # " | ||
+ | CDDEV=" | ||
+ | | ||
+ | # Text to Display at Boottime (see syslinux doku) | ||
+ | # This option is not supported for hppa. Message accueil au boot. | ||
+ | DISPLAY="/ | ||
+ | | ||
+ | | ||
+ | # do some checks or not. Faite des vérifications ou non. | ||
+ | DO_CHECK=yes | ||
+ | | ||
+ | # additional options for the kernel | ||
+ | APPEND="" | ||
+ | | ||
+ | # exclude some files or directories from writing to cd. | ||
+ | # Fichiers ou dossiers a exclure du cd. | ||
+ | NOT_TO_CD="/ | ||
+ | | ||
+ | # exclude some files or directories from loading to ram | ||
+ | # fichiers ou dossiers, a ne pas charger en memoire ram | ||
+ | NOT_TO_RAM="" | ||
+ | | ||
+ | # If you are using ssh it is helpfull to have a unique ssh hostkey for | ||
+ | # each CD. Config de SSH key pour chaque CD. | ||
+ | SSHHOSTKEY=yes | ||
+ | | ||
+ | # logfile. | ||
+ | ERRLOG=/ | ||
+ | | ||
+ | # where the image resists after build | ||
+ | # dossier de destination de l' | ||
+ | VAR=/ | ||
+ | | ||
+ | # FLOPPY_RUNTIME_DEV=< | ||
+ | # When you boot from cd you read changes from this device. | ||
+ | FLOPPY_RUNTIME_DEV=/ | ||
+ | | ||
+ | # BOOTFLOPPY=yes|no | ||
+ | # Config pour disquette de boot | ||
+ | # If you want to boot from FLOPPY specify BOOTFLOPPY=yes. This reduces | ||
+ | # space on floppy used by bootcdflopcp. For this to work FLOPPY_CREATE_DEV | ||
+ | # has to be specified. | ||
+ | # For hppa this option is not supported and must be set to no. | ||
+ | # Default: | ||
+ | # | ||
+ | BOOTFLOPPY=no | ||
+ | | ||
+ | # If you want to boot several machines from the same cdrom, you must have | ||
+ | # the individual configuartion (exp: / | ||
+ | # If one can not be mounted it is a good idea to stop booting and to wait | ||
+ | # for manual interaction instead of comming up with a wrong configuration. | ||
+ | BOOT_ONLY_WITH_FLOPPY=no | ||
+ | | ||
+ | # delete some chached files in /var | ||
+ | CLEAN_VAR=yes | ||
+ | | ||
+ | # If FASTBOOT=yes then additional images for the ramdisk will be created | ||
+ | # by bootcdwrite and copied to CD. This allows faster booting, | ||
+ | # but needs extra space on CD | ||
+ | # demarrage rapide en creant des ramdisk supplementaires, | ||
+ | # de place sur le support. | ||
+ | FASTBOOT=yes | ||
+ | | ||
+ | # use isolinux (yes, | ||
+ | ISOLINUX=auto | ||
+ | | ||
+ | # use -s (save, slow, stupid) option on syslinux | ||
+ | SYSLINUX_SAVE=yes | ||
+ | | ||
+ | # choose the architecture specifier une architecture | ||
+ | # ARCH=auto|hppa|i386|ia64 | ||
+ | ARCH=auto | ||
+ | | ||
+ | # use devfs or not | ||
+ | DEVFS=no | ||
+ | | ||
+ | # path to initrd chemin vers l image init | ||
+ | INITRD=" | ||
+ | | ||
+ | # addiditionel entries to fstab | ||
+ | # ajouter des entrées pour fstab pour les | ||
+ | # systemes de fichiers a monter au boot | ||
+ | # TO_FSTAB="/ | ||
+ | # /dev/usb0 /mnt/usb ext3 defaults 1 1 " | ||
+ | TO_FSTAB="" | ||
+ | | ||
+ | # transparent compression of ISO 9660/Rock Ridge filessytem | ||
+ | # (" | ||
+ | # pour compresser le system de fichier ISO 9660/Rock Ridge | ||
+ | # COMPRESS=< | ||
+ | COMPRESS=" | ||
+ | | ||
+ | # Files or Directory-Trees that should never be compressed on CD can be listed | ||
+ | # here. You have to define the Path as it is on the CD, (with / | ||
+ | # instead of /var) | ||
+ | NOTCOMPRESSED="" | ||
+ | | ||
+ | # Files listed in DISABLE_CRON will be on the cdrom with a .no_run_on_bootcd | ||
+ | # suffix so run-parts won't execute them. The original file will be a link to | ||
+ | # /bin/true. | ||
+ | # | ||
+ | DISABLE_CRON=" | ||
+ | | ||
+ | # With this variable you can add or delete some options | ||
+ | # given to mkisofs by bootcdwrite. | ||
+ | # | ||
+ | # | ||
+ | # changer les options donees a mkisofs pour la creation de l' | ||
+ | MKISOFS_CHNG="" | ||
+ | | ||
+ | |||
+ | ====Lancer bootcd==== | ||
+ | |||
+ | Avant de lancer le programme pour la première fois, il est probale, celon votre configuration, | ||
+ | |||
+ | # bootcdwrite | ||
+ | |||
+ | Pendant que la construction se fait, le programme affichera si tout se passe bien, ou les problèmes éventuels, comme par exemple le fait qu'il n'y ai pas assez de place sur un seul CD, et à chaque vous pouvez choisir d' | ||
+ | Récupérer l' | ||
+ | |||
+ | Une fois la construction de l' | ||
+ | |||
+ | Vous pouvez tout de suite tester l' | ||
+ | |||
+ | # ls / | ||
+ | cdimage.iso | ||
+ | # mv / | ||
+ | # chown VotreNom / | ||
+ | # chgrp VotreNom / | ||
+ | |||
+ | Vous pouvez évidemment renomer l' | ||
+ | |||
+ | |||
+ | |||
+ | ====Trucs, astuces==== | ||
+ | |||
+ | Pour mozilla, il faut mettre le répertoire var/ | ||
+ | |||
+ | Si vous voulez créer un système LiveCD vraiment performant, vous pourriez destiner un système ou une machine à cela en installant que les logiciels que vous désiez. On pourrait par exemple installer un environnement graphique légé tel que blackbox, juste les outils utiles pour le web. | ||
+ | |||
+ | Une solution possible est de créer un environnemnt chrooté, pour s'y enfermer, et créer un système sur mesure, avec chrootdebootstrap, | ||
+ | ---- | ||
+ | |||
+ | liens | ||
+ | [[http:// | ||
+ | |||
+ | ---- | ||
+ | // |
debian/debian_fabriquer_un_cd_live.txt · Dernière modification : 2018/11/17 12:52 de 127.0.0.1