last update: 2023-09-29 at 04:00:14 CEST

Create A Debian Live CD

see: https://live-team.pages.debian.net/live-manual/html/live-manual/examples.en.html

Building the Image

sudo apt install live-build
mkdir live-build && cd live-build
lb config -d bullseye --archive-areas "main contrib non-free"
echo "task-lxde-desktop firefox-esr" >> config/package-lists/my.list.chroot

Include Data in The Image

mkdir -p config/includes.chroot/home
sudo cp ~/my-file config/includes.chroot/home

Build the Image

sudo lb build

Re-Build The Image

sudo lb clean
# Fix the mistake
sudo lb build

Testing the Image

sudo apt-get install qemu-kvm qemu-utils
kvm -m 2048 -vga std  -cdrom live-image-amd64.hybrid.iso

Copy The Image to an USB-Stick

sudo cp live-image-amd64.hybrid.iso /dev/sdc