Skip to content

Distro making using live build

srikantharika edited this page Oct 28, 2017 · 2 revisions

Requirements:

The tools that are required for making an iso are

  • apt install live-build
  • apt install debootstrap
  • apt install dh-make devscripts
  • apt install git
  • apt install po4a
  • apt install dh-systemd

Process:

  • git clone http://anonscm.debian.org/git/debian-live/live-build.git
  • git clone http://anonscm.debian.org/git/debian-live/live-boot.git
  • git clone http://anonscm.debian.org/git/debian-live/live-config.git
  • cd live-build
  • dpkg-buildpackage -b -uc -us
  • cd ..

  • cd live-boot
  • dpkg-buildpackage -b -uc -us
  • cd ..

  • cd live-config
  • dpkg-buildpackage -b -uc -us
  • cd ..

  • mkdir -p config/packages.chroot
  • cp ../live-boot{_,-initramfs-tools,-doc}*.deb config/packages.chroot/
  • cp ../live-config{_,-sysvinit,-doc}*.deb config/packages.chroot/

Creating the Iso using live-build:

  • mkdir myiso ; cd myiso
  • lb config

  • Debian Installer Installation:

    • lb config --debian-installer live
    • echo "debian-installer-launcher" >> config/package-lists/my.list.chroot
    • echo "d-i debian-installer/locale string en_US" \ >> config/includes.installer/preseed.cfg

    Now installing desktop environment:

    • echo "task-gnome-desktop" > config/package-lists/desktop.list.chroot
    • This will install gnome desktop environment, if you want another desktop environment instead of gnome then replace "task-gnome-environment" with other environment name like task-cinnamon-desktop.

      Finally building the iso file

    • lb build

    Installing required tools or pre installed tools:

    • cd live-build/myiso
    • chroot chroot
    • Now continue installing required tools by using.

    • apt install package-name
    • Plymouth Installation:

    • apt install plymouth
    • /usr/sbin/plymouth-set-default-theme --list
    • -->Then select the theme shown in the list .
    • /usr/sbin/plymouth-set-default-theme Themename

    Testing the Iso
    Testing the created Iso either by booting into a usb or in a Virtualbox.
    Virtualbox installation:

    • apt install virtualbox virtualbox-qt
    • virtualbox

Clone this wiki locally