BACK

Create A Custom Debian Live-CD (ISO File)
(Based on "Debian 10 (buster)" 64Bits)

[07/2019]


In this tutorial you see how to :

- Create a custom "Live-CD" (ISO file) based on Debian 10 (buster) 64Bits
[ After build, you can burn (ISO file) on CD or DVD or create a bootable USB key (Read the "Rufus" tutorial) ]

To perform this tutorial, you need to :

- Download / Install "Debian 10 Buster" (amd64) [NetInstall ISO] : https://www.debian.org/releases/buster/debian-installer/
[If you want, you can install Debian on a virtual machine, with VirtualBox / VMWare / Qemu...]




- Open your Internet browser, then download and install "Debian 10 Buster" (amd64) [if you want, you can install on a virtual machine]:




- Start Debian 10 (buster)

- Open a terminal (If you can as "root" user, else prefix almost all below commands with "sudo ")

- And Install pre-requisites packages with this 2 commands (without #>):
#> apt-get update
#> apt-get install vim live-build live-manual live-tools tree debootstrap squashfs-tools genisoimage syslinux syslinux-efi syslinux-utils isolinux xorriso

- Now create the base live-cd directory (and the project skeleton) with this commands (without #>):
#> mkdir livecd
#> cd livecd/
#> lb config --distribution "buster"
#> cp /usr/share/doc/live-build/examples/auto/* auto/

- Then edit the "auto/config" file (here with "vim" but you can edit with another text editor):
#> vim auto/config

- And copy and save below content on this file (Overwrite all content with this content):

(You can adjust parameters, if you want more informations about "lb config", enter command "man lb config")
(However it's highly recommended to keep the parameter "--apt-recommends" with the "true" value, otherwise you may not be able to auto-login)


- Then edit the "config/package-lists/live.list.chroot" file (here with "vim" but you can edit with another text editor):
#> vim config/package-lists/live.list.chroot

- And copy and save below content on this file (Overwrite all content with this content):



- [Optional] Edit/create a "config/package-lists/custom.list.chroot" new file (here with "vim" but you can edit with another text editor):
#> vim config/package-lists/custom.list.chroot

- And write all additional packages you want on your live-cd (below, this is just an example with "xfce4" desktop and some additional packages for "Debian 10 buster"):

(You can add or remove what you want, just additional packages you want on your live-cd, this example is big => the final size is about 805 MB)


- [Optional] If you want include others files or folders on live-cd, just copy files or folders (from your local system) to "config/includes.chroot/" folder:
  [If you copy files or folders on the "config/includes.chroot/" folder, this is overwrite files or folders on live-cd]

  [Example, here I copy the folder "/opt/" from my local system, and on live-cd I have the same folder and its content on "/opt/" folder]
#> cp -r /opt/ config/includes.chroot/


- OK you are now ready to build the live-cd (ISO file)...



- To build the live-cd (ISO file), just enter this 2 commands:
#> lb clean
#> lb build

- And wait for the end of process... (It takes a lot of time, it depends of your configurations and your PC, soo just waiting...)



- When the process is finished (Without error...), you have now your live-cd (ISO file) !

- To watch if you have build the ISO file, just enter the command "ls -l", and normally you should see something like that:





- To conclude

You can now burn the ISO file on a CD or DVD (depends on the size) or you can also create a bootable USB key (Read the "Rufus" tutorial)
And start your live Debian on your PC (or on a virtual machine)