diff --git a/.gitignore b/.gitignore index a207cc7..6c52d8e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ chroot staging -temp +tmp + diff --git a/README.md b/README.md index d8a7e04..c10de7f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ # LIVE_BOOT -A script to make custom Debian based distros. Based off work by Will Haley - +A script to make custom Debian based distros. Based off work by Will Haley, see original tutorial here: https://www.willhaley.com/blog/custom-debian-live-environment/ diff --git a/debian-custom.iso b/debian-custom.iso index 58b7d0e..db462e2 100644 Binary files a/debian-custom.iso and b/debian-custom.iso differ diff --git a/make_iso.sh b/make_iso.sh index 771eaff..dca1bd5 100755 --- a/make_iso.sh +++ b/make_iso.sh @@ -21,13 +21,13 @@ sudo apt-get install \ # We will use stable for this distribution and amd64 for the architecture. sudo debootstrap \ --arch=amd64 \ - --variant=minbase \ + --variant=buildd \ stable \ "${HOME}/LIVE_BOOT/chroot" \ - http://ftp.us.debian.org/debian/ + https://deb.debian.org/debian # Set a custom hostname for your Debian environment. -echo "debian-live" | sudo tee "${HOME}/LIVE_BOOT/chroot/etc/hostname" +echo "custom-debian" | sudo tee "${HOME}/LIVE_BOOT/chroot/etc/hostname" # Install a Linux kernel of your choosing. # The image linux-image-amd64 is chosen here. @@ -45,13 +45,17 @@ EOF # Install programs of your choosing, and then run apt-get clean to save some space. # I use --no-install-recommends to avoid superfluous packages. # You should decide what you need for your environment. +# Have to try using +# kde-plasma-desktop openbox-kde-session +# xfce4 xfce4-session xfce4-goodies +# obconf lxappearance-obconf lxinput lxrandr lxde sudo chroot "${HOME}/LIVE_BOOT/chroot" << EOF apt-get install -y --no-install-recommends \ iwd \ curl openssh-client \ openbox xserver-xorg-core xserver-xorg xinit xterm \ - wget iputils-ping \ + wget iputils-ping obconf network-manager \ nano EOF @@ -96,13 +100,13 @@ MENU COLOR msg07 37;40 #90ffffff #a0000000 std MENU COLOR tabmsg 31;40 #30ffffff #00000000 std LABEL linux - MENU LABEL Debian Live [BIOS/ISOLINUX] + MENU LABEL Custom Debian [BIOS/ISOLINUX] MENU DEFAULT KERNEL /live/vmlinuz APPEND initrd=/live/initrd boot=live LABEL linux - MENU LABEL Debian Live [BIOS/ISOLINUX] (nomodeset) + MENU LABEL Custom Debian [BIOS/ISOLINUX] (nomodeset) MENU DEFAULT KERNEL /live/vmlinuz APPEND initrd=/live/initrd boot=live nomodeset @@ -125,13 +129,13 @@ set timeout=30 # If X has issues finding screens, experiment with/without nomodeset. -menuentry "Debian Live [EFI/GRUB]" { +menuentry "Custom Debian [EFI/GRUB]" { search --no-floppy --set=root --label DEBLIVE linux ($root)/live/vmlinuz boot=live initrd ($root)/live/initrd } -menuentry "Debian Live [EFI/GRUB] (nomodeset)" { +menuentry "Custom Debian [EFI/GRUB] (nomodeset)" { search --no-floppy --set=root --label DEBLIVE linux ($root)/live/vmlinuz boot=live nomodeset initrd ($root)/live/initrd @@ -160,14 +164,14 @@ EOF # Your LIVE_BOOT directory should now roughly look like this. -IVE_BOOT/chroot/*tons of chroot files* -LIVE_BOOT/staging/live/initrd -LIVE_BOOT/staging/live/vmlinuz -LIVE_BOOT/staging/live/filesystem.squashfs -LIVE_BOOT/staging/isolinux/isolinux.cfg -LIVE_BOOT/staging/EFI/BOOT -LIVE_BOOT/staging/boot/grub/grub.cfg -LIVE_BOOT/staging/boot/grub/x86_64-efi +# LIVE_BOOT/chroot/*tons of chroot files* +# LIVE_BOOT/staging/live/initrd +# LIVE_BOOT/staging/live/vmlinuz +# LIVE_BOOT/staging/live/filesystem.squashfs +# LIVE_BOOT/staging/isolinux/isolinux.cfg +# LIVE_BOOT/staging/EFI/BOOT +# LIVE_BOOT/staging/boot/grub/grub.cfg +# LIVE_BOOT/staging/boot/grub/x86_64-efi # Copy BIOS/legacy boot required files into our workspace. @@ -216,7 +220,7 @@ xorriso \ -iso-level 3 \ -o "${HOME}/LIVE_BOOT/debian-custom.iso" \ -full-iso9660-filenames \ - -volid "DEBLIVE" \ + -volid "DEBCUSTOM" \ --mbr-force-bootable -partition_offset 16 \ -joliet -joliet-long -rational-rock \ -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \